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.5.39. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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.5.39' 594PACKAGE_STRING='the fast lexical analyser generator 2.5.39' 595PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="scan.l" 599ac_config_libobj_dir=lib 600gt_needs= 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641ALLOCA 642INDENT 643M4 644HELP2MAN 645BISON 646CXXCPP 647OTOOL64 648OTOOL 649LIPO 650NMEDIT 651DSYMUTIL 652MANIFEST_TOOL 653RANLIB 654ac_ct_AR 655AR 656DLLTOOL 657OBJDUMP 658NM 659ac_ct_DUMPBIN 660DUMPBIN 661LD 662FGREP 663SED 664LIBTOOL 665LN_S 666am__fastdepCXX_FALSE 667am__fastdepCXX_TRUE 668CXXDEPMODE 669ac_ct_CXX 670CXXFLAGS 671CXX 672LEXLIB 673LEX_OUTPUT_ROOT 674LEX 675YFLAGS 676YACC 677POSUB 678LTLIBINTL 679LIBINTL 680INTLLIBS 681LTLIBICONV 682LIBICONV 683INTL_MACOSX_LIBS 684EGREP 685GREP 686CPP 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__quote 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712XGETTEXT_EXTRA_OPTIONS 713MSGMERGE 714XGETTEXT_015 715XGETTEXT 716GMSGFMT_015 717MSGFMT_015 718GMSGFMT 719MSGFMT 720GETTEXT_MACRO_VERSION 721USE_NLS 722am__untar 723am__tar 724AMTAR 725am__leading_dot 726SET_MAKE 727AWK 728mkdir_p 729MKDIR_P 730INSTALL_STRIP_PROGRAM 731STRIP 732install_sh 733MAKEINFO 734AUTOHEADER 735AUTOMAKE 736AUTOCONF 737ACLOCAL 738VERSION 739PACKAGE 740CYGPATH_W 741am__isrc 742INSTALL_DATA 743INSTALL_SCRIPT 744INSTALL_PROGRAM 745SHARED_VERSION_INFO 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_nls 788enable_dependency_tracking 789with_gnu_ld 790enable_rpath 791with_libiconv_prefix 792with_libintl_prefix 793enable_shared 794enable_static 795with_pic 796enable_fast_install 797with_sysroot 798enable_libtool_lock 799' 800 ac_precious_vars='build_alias 801host_alias 802target_alias 803CC 804CFLAGS 805LDFLAGS 806LIBS 807CPPFLAGS 808CPP 809YACC 810YFLAGS 811CXX 812CXXFLAGS 813CCC 814CXXCPP' 815 816 817# Initialize some variables set by options. 818ac_init_help= 819ac_init_version=false 820ac_unrecognized_opts= 821ac_unrecognized_sep= 822# The variables have the same names as the options, with 823# dashes changed to underlines. 824cache_file=/dev/null 825exec_prefix=NONE 826no_create= 827no_recursion= 828prefix=NONE 829program_prefix=NONE 830program_suffix=NONE 831program_transform_name=s,x,x, 832silent= 833site= 834srcdir= 835verbose= 836x_includes=NONE 837x_libraries=NONE 838 839# Installation directory options. 840# These are left unexpanded so users can "make install exec_prefix=/foo" 841# and all the variables that are supposed to be based on exec_prefix 842# by default will actually change. 843# Use braces instead of parens because sh, perl, etc. also accept them. 844# (The list follows the same order as the GNU Coding Standards.) 845bindir='${exec_prefix}/bin' 846sbindir='${exec_prefix}/sbin' 847libexecdir='${exec_prefix}/libexec' 848datarootdir='${prefix}/share' 849datadir='${datarootdir}' 850sysconfdir='${prefix}/etc' 851sharedstatedir='${prefix}/com' 852localstatedir='${prefix}/var' 853includedir='${prefix}/include' 854oldincludedir='/usr/include' 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856infodir='${datarootdir}/info' 857htmldir='${docdir}' 858dvidir='${docdir}' 859pdfdir='${docdir}' 860psdir='${docdir}' 861libdir='${exec_prefix}/lib' 862localedir='${datarootdir}/locale' 863mandir='${datarootdir}/man' 864 865ac_prev= 866ac_dashdash= 867for ac_option 868do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298$as_echo X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures the fast lexical analyser generator 2.5.39 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/flex] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408_ACEOF 1409 1410 cat <<\_ACEOF 1411 1412Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420_ACEOF 1421fi 1422 1423if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.39:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --disable-nls do not use Native Language Support 1434 --disable-dependency-tracking speeds up one-time build 1435 --enable-dependency-tracking do not reject slow dependency extractors 1436 --disable-rpath do not hardcode runtime library paths 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-static[=PKGS] build static libraries [default=yes] 1439 --enable-fast-install[=PKGS] 1440 optimize for fast installation [default=yes] 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 1443Optional Packages: 1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1446 --with-gnu-ld assume the C compiler uses GNU ld default=no 1447 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1448 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1449 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1450 --without-libintl-prefix don't search for libintl in includedir and libdir 1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1452 both] 1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1454 --with-sysroot=DIR Search for dependent libraries within DIR 1455 (or the compiler's sysroot if not specified). 1456 1457Some influential environment variables: 1458 CC C compiler command 1459 CFLAGS C compiler flags 1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1461 nonstandard directory <lib dir> 1462 LIBS libraries to pass to the linker, e.g. -l<library> 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1464 you have headers in a nonstandard directory <include dir> 1465 CPP C preprocessor 1466 YACC The `Yet Another Compiler Compiler' implementation to use. 1467 Defaults to the first program found out of: `bison -y', `byacc', 1468 `yacc'. 1469 YFLAGS The list of arguments that will be passed by default to $YACC. 1470 This script will default YFLAGS to the empty string to avoid a 1471 default value of `-d' given by some make applications. 1472 CXX C++ compiler command 1473 CXXFLAGS C++ compiler flags 1474 CXXCPP C++ preprocessor 1475 1476Use these variables to override the choices made by `configure' or to help 1477it to find libraries and programs with nonstandard names/locations. 1478 1479Report bugs to <flex-help@lists.sourceforge.net>. 1480_ACEOF 1481ac_status=$? 1482fi 1483 1484if test "$ac_init_help" = "recursive"; then 1485 # If there are subdirs, report their specific --help. 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1487 test -d "$ac_dir" || 1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1489 continue 1490 ac_builddir=. 1491 1492case "$ac_dir" in 1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494*) 1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1496 # A ".." for each directory in $ac_dir_suffix. 1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1498 case $ac_top_builddir_sub in 1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1501 esac ;; 1502esac 1503ac_abs_top_builddir=$ac_pwd 1504ac_abs_builddir=$ac_pwd$ac_dir_suffix 1505# for backward compatibility: 1506ac_top_builddir=$ac_top_build_prefix 1507 1508case $srcdir in 1509 .) # We are building in place. 1510 ac_srcdir=. 1511 ac_top_srcdir=$ac_top_builddir_sub 1512 ac_abs_top_srcdir=$ac_pwd ;; 1513 [\\/]* | ?:[\\/]* ) # Absolute name. 1514 ac_srcdir=$srcdir$ac_dir_suffix; 1515 ac_top_srcdir=$srcdir 1516 ac_abs_top_srcdir=$srcdir ;; 1517 *) # Relative name. 1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1519 ac_top_srcdir=$ac_top_build_prefix$srcdir 1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1521esac 1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1523 1524 cd "$ac_dir" || { ac_status=$?; continue; } 1525 # Check for guested configure. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537fi 1538 1539test -n "$ac_init_help" && exit $ac_status 1540if $ac_init_version; then 1541 cat <<\_ACEOF 1542the fast lexical analyser generator configure 2.5.39 1543generated by GNU Autoconf 2.69 1544 1545Copyright (C) 2012 Free Software Foundation, Inc. 1546This configure script is free software; the Free Software Foundation 1547gives unlimited permission to copy, distribute and modify it. 1548_ACEOF 1549 exit 1550fi 1551 1552## ------------------------ ## 1553## Autoconf initialization. ## 1554## ------------------------ ## 1555 1556# ac_fn_c_try_compile LINENO 1557# -------------------------- 1558# Try to compile conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_compile () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext 1563 if { { ac_try="$ac_compile" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_compile 1593 1594# ac_fn_c_try_cpp LINENO 1595# ---------------------- 1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_c_try_cpp () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 if { { ac_try="$ac_cpp conftest.$ac_ext" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606$as_echo "$ac_try_echo"; } >&5 1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } > conftest.i && { 1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1617 test ! -s conftest.err 1618 }; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_cpp 1630 1631# ac_fn_c_try_link LINENO 1632# ----------------------- 1633# Try to link conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_link () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 rm -f conftest.$ac_objext conftest$ac_exeext 1638 if { { ac_try="$ac_link" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_link") 2>conftest.err 1646 ac_status=$? 1647 if test -s conftest.err; then 1648 grep -v '^ *+' conftest.err >conftest.er1 1649 cat conftest.er1 >&5 1650 mv -f conftest.er1 conftest.err 1651 fi 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1653 test $ac_status = 0; } && { 1654 test -z "$ac_c_werror_flag" || 1655 test ! -s conftest.err 1656 } && test -s conftest$ac_exeext && { 1657 test "$cross_compiling" = yes || 1658 test -x conftest$ac_exeext 1659 }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1669 # interfere with the next link command; also delete a directory that is 1670 # left behind by Apple's compiler. We do this before executing the actions. 1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_link 1676 1677# ac_fn_c_try_run LINENO 1678# ---------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1680# that executables *can* be run. 1681ac_fn_c_try_run () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>&5 1692 ac_status=$? 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1695 { { case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_try") 2>&5 1702 ac_status=$? 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; }; }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: program exited with status $ac_status" >&5 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=$ac_status 1712fi 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_run 1718 1719# ac_fn_cxx_try_compile LINENO 1720# ---------------------------- 1721# Try to compile conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_cxx_try_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 rm -f conftest.$ac_objext 1726 if { { ac_try="$ac_compile" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_compile") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { 1742 test -z "$ac_cxx_werror_flag" || 1743 test ! -s conftest.err 1744 } && test -s conftest.$ac_objext; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_cxx_try_compile 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_check_func LINENO FUNC VAR 1789# ---------------------------------- 1790# Tests whether FUNC exists, setting the cache variable VAR accordingly 1791ac_fn_c_check_func () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1803#define $2 innocuous_$2 1804 1805/* System header to define __stub macros and hopefully few prototypes, 1806 which can conflict with char $2 (); below. 1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1808 <limits.h> exists even on freestanding compilers. */ 1809 1810#ifdef __STDC__ 1811# include <limits.h> 1812#else 1813# include <assert.h> 1814#endif 1815 1816#undef $2 1817 1818/* Override any GCC internal prototype to avoid an error. 1819 Use char because int might match the return type of a GCC 1820 builtin and then its argument prototype would still apply. */ 1821#ifdef __cplusplus 1822extern "C" 1823#endif 1824char $2 (); 1825/* The GNU C library defines this for functions which it implements 1826 to always fail with ENOSYS. Some functions are actually named 1827 something starting with __ and the normal name is an alias. */ 1828#if defined __stub_$2 || defined __stub___$2 1829choke me 1830#endif 1831 1832int 1833main () 1834{ 1835return $2 (); 1836 ; 1837 return 0; 1838} 1839_ACEOF 1840if ac_fn_c_try_link "$LINENO"; then : 1841 eval "$3=yes" 1842else 1843 eval "$3=no" 1844fi 1845rm -f core conftest.err conftest.$ac_objext \ 1846 conftest$ac_exeext conftest.$ac_ext 1847fi 1848eval ac_res=\$$3 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850$as_echo "$ac_res" >&6; } 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_c_check_func 1854 1855# ac_fn_cxx_try_cpp LINENO 1856# ------------------------ 1857# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1858ac_fn_cxx_try_cpp () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 if { { ac_try="$ac_cpp conftest.$ac_ext" 1862case "(($ac_try" in 1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1864 *) ac_try_echo=$ac_try;; 1865esac 1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1867$as_echo "$ac_try_echo"; } >&5 1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1869 ac_status=$? 1870 if test -s conftest.err; then 1871 grep -v '^ *+' conftest.err >conftest.er1 1872 cat conftest.er1 >&5 1873 mv -f conftest.er1 conftest.err 1874 fi 1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1876 test $ac_status = 0; } > conftest.i && { 1877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1878 test ! -s conftest.err 1879 }; then : 1880 ac_retval=0 1881else 1882 $as_echo "$as_me: failed program was:" >&5 1883sed 's/^/| /' conftest.$ac_ext >&5 1884 1885 ac_retval=1 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 as_fn_set_status $ac_retval 1889 1890} # ac_fn_cxx_try_cpp 1891 1892# ac_fn_cxx_try_link LINENO 1893# ------------------------- 1894# Try to link conftest.$ac_ext, and return whether this succeeded. 1895ac_fn_cxx_try_link () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 rm -f conftest.$ac_objext conftest$ac_exeext 1899 if { { ac_try="$ac_link" 1900case "(($ac_try" in 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1902 *) ac_try_echo=$ac_try;; 1903esac 1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1905$as_echo "$ac_try_echo"; } >&5 1906 (eval "$ac_link") 2>conftest.err 1907 ac_status=$? 1908 if test -s conftest.err; then 1909 grep -v '^ *+' conftest.err >conftest.er1 1910 cat conftest.er1 >&5 1911 mv -f conftest.er1 conftest.err 1912 fi 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1914 test $ac_status = 0; } && { 1915 test -z "$ac_cxx_werror_flag" || 1916 test ! -s conftest.err 1917 } && test -s conftest$ac_exeext && { 1918 test "$cross_compiling" = yes || 1919 test -x conftest$ac_exeext 1920 }; then : 1921 ac_retval=0 1922else 1923 $as_echo "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926 ac_retval=1 1927fi 1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1930 # interfere with the next link command; also delete a directory that is 1931 # left behind by Apple's compiler. We do this before executing the actions. 1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_cxx_try_link 1937 1938# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1939# ------------------------------------------------------- 1940# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1941# the include files in INCLUDES and setting the cache variable VAR 1942# accordingly. 1943ac_fn_c_check_header_mongrel () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 if eval \${$3+:} false; then : 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948$as_echo_n "checking for $2... " >&6; } 1949if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955else 1956 # Is the header compilable? 1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1958$as_echo_n "checking $2 usability... " >&6; } 1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962#include <$2> 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 ac_header_compiler=yes 1966else 1967 ac_header_compiler=no 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1971$as_echo "$ac_header_compiler" >&6; } 1972 1973# Is the header present? 1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1975$as_echo_n "checking $2 presence... " >&6; } 1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978#include <$2> 1979_ACEOF 1980if ac_fn_c_try_cpp "$LINENO"; then : 1981 ac_header_preproc=yes 1982else 1983 ac_header_preproc=no 1984fi 1985rm -f conftest.err conftest.i conftest.$ac_ext 1986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1987$as_echo "$ac_header_preproc" >&6; } 1988 1989# So? What about this header? 1990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1991 yes:no: ) 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1993$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1996 ;; 1997 no:yes:* ) 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1999$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2001$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2003$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2005$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2007$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2008( $as_echo "## ---------------------------------------------- ## 2009## Report this to flex-help@lists.sourceforge.net ## 2010## ---------------------------------------------- ##" 2011 ) | sed "s/^/$as_me: WARNING: /" >&2 2012 ;; 2013esac 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2015$as_echo_n "checking for $2... " >&6; } 2016if eval \${$3+:} false; then : 2017 $as_echo_n "(cached) " >&6 2018else 2019 eval "$3=\$ac_header_compiler" 2020fi 2021eval ac_res=\$$3 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2023$as_echo "$ac_res" >&6; } 2024fi 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 2027} # ac_fn_c_check_header_mongrel 2028 2029# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2030# ------------------------------------------- 2031# Tests whether TYPE exists after having included INCLUDES, setting cache 2032# variable VAR accordingly. 2033ac_fn_c_check_type () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2037$as_echo_n "checking for $2... " >&6; } 2038if eval \${$3+:} false; then : 2039 $as_echo_n "(cached) " >&6 2040else 2041 eval "$3=no" 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045int 2046main () 2047{ 2048if (sizeof ($2)) 2049 return 0; 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058int 2059main () 2060{ 2061if (sizeof (($2))) 2062 return 0; 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 2069else 2070 eval "$3=yes" 2071fi 2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2073fi 2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075fi 2076eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078$as_echo "$ac_res" >&6; } 2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2080 2081} # ac_fn_c_check_type 2082cat >config.log <<_ACEOF 2083This file contains any messages produced by compilers while 2084running configure, to aid debugging if configure makes a mistake. 2085 2086It was created by the fast lexical analyser generator $as_me 2.5.39, which was 2087generated by GNU Autoconf 2.69. Invocation command line was 2088 2089 $ $0 $@ 2090 2091_ACEOF 2092exec 5>>config.log 2093{ 2094cat <<_ASUNAME 2095## --------- ## 2096## Platform. ## 2097## --------- ## 2098 2099hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2100uname -m = `(uname -m) 2>/dev/null || echo unknown` 2101uname -r = `(uname -r) 2>/dev/null || echo unknown` 2102uname -s = `(uname -s) 2>/dev/null || echo unknown` 2103uname -v = `(uname -v) 2>/dev/null || echo unknown` 2104 2105/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2106/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2107 2108/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2109/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2110/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2111/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2112/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2113/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2114/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2115 2116_ASUNAME 2117 2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2119for as_dir in $PATH 2120do 2121 IFS=$as_save_IFS 2122 test -z "$as_dir" && as_dir=. 2123 $as_echo "PATH: $as_dir" 2124 done 2125IFS=$as_save_IFS 2126 2127} >&5 2128 2129cat >&5 <<_ACEOF 2130 2131 2132## ----------- ## 2133## Core tests. ## 2134## ----------- ## 2135 2136_ACEOF 2137 2138 2139# Keep a trace of the command line. 2140# Strip out --no-create and --no-recursion so they do not pile up. 2141# Strip out --silent because we don't want to record it for future runs. 2142# Also quote any args containing shell meta-characters. 2143# Make two passes to allow for proper duplicate-argument suppression. 2144ac_configure_args= 2145ac_configure_args0= 2146ac_configure_args1= 2147ac_must_keep_next=false 2148for ac_pass in 1 2 2149do 2150 for ac_arg 2151 do 2152 case $ac_arg in 2153 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2155 | -silent | --silent | --silen | --sile | --sil) 2156 continue ;; 2157 *\'*) 2158 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2159 esac 2160 case $ac_pass in 2161 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2162 2) 2163 as_fn_append ac_configure_args1 " '$ac_arg'" 2164 if test $ac_must_keep_next = true; then 2165 ac_must_keep_next=false # Got value, back to normal. 2166 else 2167 case $ac_arg in 2168 *=* | --config-cache | -C | -disable-* | --disable-* \ 2169 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2170 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2171 | -with-* | --with-* | -without-* | --without-* | --x) 2172 case "$ac_configure_args0 " in 2173 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2174 esac 2175 ;; 2176 -* ) ac_must_keep_next=true ;; 2177 esac 2178 fi 2179 as_fn_append ac_configure_args " '$ac_arg'" 2180 ;; 2181 esac 2182 done 2183done 2184{ ac_configure_args0=; unset ac_configure_args0;} 2185{ ac_configure_args1=; unset ac_configure_args1;} 2186 2187# When interrupted or exit'd, cleanup temporary files, and complete 2188# config.log. We remove comments because anyway the quotes in there 2189# would cause problems or look ugly. 2190# WARNING: Use '\'' to represent an apostrophe within the trap. 2191# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2192trap 'exit_status=$? 2193 # Save into config.log some information that might help in debugging. 2194 { 2195 echo 2196 2197 $as_echo "## ---------------- ## 2198## Cache variables. ## 2199## ---------------- ##" 2200 echo 2201 # The following way of writing the cache mishandles newlines in values, 2202( 2203 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2204 eval ac_val=\$$ac_var 2205 case $ac_val in #( 2206 *${as_nl}*) 2207 case $ac_var in #( 2208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2209$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2210 esac 2211 case $ac_var in #( 2212 _ | IFS | as_nl) ;; #( 2213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2214 *) { eval $ac_var=; unset $ac_var;} ;; 2215 esac ;; 2216 esac 2217 done 2218 (set) 2>&1 | 2219 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2220 *${as_nl}ac_space=\ *) 2221 sed -n \ 2222 "s/'\''/'\''\\\\'\'''\''/g; 2223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2224 ;; #( 2225 *) 2226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2227 ;; 2228 esac | 2229 sort 2230) 2231 echo 2232 2233 $as_echo "## ----------------- ## 2234## Output variables. ## 2235## ----------------- ##" 2236 echo 2237 for ac_var in $ac_subst_vars 2238 do 2239 eval ac_val=\$$ac_var 2240 case $ac_val in 2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2242 esac 2243 $as_echo "$ac_var='\''$ac_val'\''" 2244 done | sort 2245 echo 2246 2247 if test -n "$ac_subst_files"; then 2248 $as_echo "## ------------------- ## 2249## File substitutions. ## 2250## ------------------- ##" 2251 echo 2252 for ac_var in $ac_subst_files 2253 do 2254 eval ac_val=\$$ac_var 2255 case $ac_val in 2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2257 esac 2258 $as_echo "$ac_var='\''$ac_val'\''" 2259 done | sort 2260 echo 2261 fi 2262 2263 if test -s confdefs.h; then 2264 $as_echo "## ----------- ## 2265## confdefs.h. ## 2266## ----------- ##" 2267 echo 2268 cat confdefs.h 2269 echo 2270 fi 2271 test "$ac_signal" != 0 && 2272 $as_echo "$as_me: caught signal $ac_signal" 2273 $as_echo "$as_me: exit $exit_status" 2274 } >&5 2275 rm -f core *.core core.conftest.* && 2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2277 exit $exit_status 2278' 0 2279for ac_signal in 1 2 13 15; do 2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2281done 2282ac_signal=0 2283 2284# confdefs.h avoids OS command line length limits that DEFS can exceed. 2285rm -f -r conftest* confdefs.h 2286 2287$as_echo "/* confdefs.h */" > confdefs.h 2288 2289# Predefined preprocessor variables. 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE_NAME "$PACKAGE_NAME" 2293_ACEOF 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_VERSION "$PACKAGE_VERSION" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_STRING "$PACKAGE_STRING" 2305_ACEOF 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2309_ACEOF 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE_URL "$PACKAGE_URL" 2313_ACEOF 2314 2315 2316# Let the site file select an alternate cache file if it wants to. 2317# Prefer an explicitly selected file to automatically selected ones. 2318ac_site_file1=NONE 2319ac_site_file2=NONE 2320if test -n "$CONFIG_SITE"; then 2321 # We do not want a PATH search for config.site. 2322 case $CONFIG_SITE in #(( 2323 -*) ac_site_file1=./$CONFIG_SITE;; 2324 */*) ac_site_file1=$CONFIG_SITE;; 2325 *) ac_site_file1=./$CONFIG_SITE;; 2326 esac 2327elif test "x$prefix" != xNONE; then 2328 ac_site_file1=$prefix/share/config.site 2329 ac_site_file2=$prefix/etc/config.site 2330else 2331 ac_site_file1=$ac_default_prefix/share/config.site 2332 ac_site_file2=$ac_default_prefix/etc/config.site 2333fi 2334for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2335do 2336 test "x$ac_site_file" = xNONE && continue 2337 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2339$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2340 sed 's/^/| /' "$ac_site_file" >&5 2341 . "$ac_site_file" \ 2342 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2344as_fn_error $? "failed to load site script $ac_site_file 2345See \`config.log' for more details" "$LINENO" 5; } 2346 fi 2347done 2348 2349if test -r "$cache_file"; then 2350 # Some versions of bash will fail to source /dev/null (special files 2351 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2352 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2354$as_echo "$as_me: loading cache $cache_file" >&6;} 2355 case $cache_file in 2356 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2357 *) . "./$cache_file";; 2358 esac 2359 fi 2360else 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2362$as_echo "$as_me: creating cache $cache_file" >&6;} 2363 >$cache_file 2364fi 2365 2366gt_needs="$gt_needs " 2367# Check that the precious variables saved in the cache have kept the same 2368# value. 2369ac_cache_corrupted=false 2370for ac_var in $ac_precious_vars; do 2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2372 eval ac_new_set=\$ac_env_${ac_var}_set 2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2374 eval ac_new_val=\$ac_env_${ac_var}_value 2375 case $ac_old_set,$ac_new_set in 2376 set,) 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2378$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2379 ac_cache_corrupted=: ;; 2380 ,set) 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2382$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2383 ac_cache_corrupted=: ;; 2384 ,);; 2385 *) 2386 if test "x$ac_old_val" != "x$ac_new_val"; then 2387 # differences in whitespace do not lead to failure. 2388 ac_old_val_w=`echo x $ac_old_val` 2389 ac_new_val_w=`echo x $ac_new_val` 2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2392$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2393 ac_cache_corrupted=: 2394 else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2396$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2397 eval $ac_var=\$ac_old_val 2398 fi 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2400$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2402$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2403 fi;; 2404 esac 2405 # Pass precious variables to config.status. 2406 if test "$ac_new_set" = set; then 2407 case $ac_new_val in 2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2409 *) ac_arg=$ac_var=$ac_new_val ;; 2410 esac 2411 case " $ac_configure_args " in 2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2414 esac 2415 fi 2416done 2417if $ac_cache_corrupted; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2421$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2423fi 2424## -------------------- ## 2425## Main body of script. ## 2426## -------------------- ## 2427 2428ac_ext=c 2429ac_cpp='$CPP $CPPFLAGS' 2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2432ac_compiler_gnu=$ac_cv_c_compiler_gnu 2433 2434 2435SHARED_VERSION_INFO="2:0:0" 2436 2437 2438 2439am__api_version='1.11' 2440 2441ac_aux_dir= 2442for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2443 if test -f "$ac_dir/install-sh"; then 2444 ac_aux_dir=$ac_dir 2445 ac_install_sh="$ac_aux_dir/install-sh -c" 2446 break 2447 elif test -f "$ac_dir/install.sh"; then 2448 ac_aux_dir=$ac_dir 2449 ac_install_sh="$ac_aux_dir/install.sh -c" 2450 break 2451 elif test -f "$ac_dir/shtool"; then 2452 ac_aux_dir=$ac_dir 2453 ac_install_sh="$ac_aux_dir/shtool install -c" 2454 break 2455 fi 2456done 2457if test -z "$ac_aux_dir"; then 2458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2459fi 2460 2461# These three variables are undocumented and unsupported, 2462# and are intended to be withdrawn in a future Autoconf release. 2463# They can cause serious problems if a builder's source tree is in a directory 2464# whose full name contains unusual characters. 2465ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2466ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2467ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2468 2469 2470# Find a good install program. We prefer a C program (faster), 2471# so one script is as good as another. But avoid the broken or 2472# incompatible versions: 2473# SysV /etc/install, /usr/sbin/install 2474# SunOS /usr/etc/install 2475# IRIX /sbin/install 2476# AIX /bin/install 2477# AmigaOS /C/install, which installs bootblocks on floppy discs 2478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2479# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2481# OS/2's system install, which has a completely different semantic 2482# ./install, which can be erroneously created by make from ./install.sh. 2483# Reject install programs that cannot install multiple files. 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2485$as_echo_n "checking for a BSD-compatible install... " >&6; } 2486if test -z "$INSTALL"; then 2487if ${ac_cv_path_install+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 # Account for people who put trailing slashes in PATH elements. 2496case $as_dir/ in #(( 2497 ./ | .// | /[cC]/* | \ 2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2500 /usr/ucb/* ) ;; 2501 *) 2502 # OSF1 and SCO ODT 3.0 have their own names for install. 2503 # Don't use installbsd from OSF since it installs stuff as root 2504 # by default. 2505 for ac_prog in ginstall scoinst install; do 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2508 if test $ac_prog = install && 2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # AIX install. It has an incompatible calling convention. 2511 : 2512 elif test $ac_prog = install && 2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # program-specific install script used by HP pwplus--don't use. 2515 : 2516 else 2517 rm -rf conftest.one conftest.two conftest.dir 2518 echo one > conftest.one 2519 echo two > conftest.two 2520 mkdir conftest.dir 2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2522 test -s conftest.one && test -s conftest.two && 2523 test -s conftest.dir/conftest.one && 2524 test -s conftest.dir/conftest.two 2525 then 2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2527 break 3 2528 fi 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534esac 2535 2536 done 2537IFS=$as_save_IFS 2538 2539rm -rf conftest.one conftest.two conftest.dir 2540 2541fi 2542 if test "${ac_cv_path_install+set}" = set; then 2543 INSTALL=$ac_cv_path_install 2544 else 2545 # As a last resort, use the slow shell script. Don't cache a 2546 # value for INSTALL within a source directory, because that will 2547 # break other packages using the cache if that directory is 2548 # removed, or if the value is a relative name. 2549 INSTALL=$ac_install_sh 2550 fi 2551fi 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2553$as_echo "$INSTALL" >&6; } 2554 2555# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2556# It thinks the first close brace ends the variable substitution. 2557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2558 2559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2560 2561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2562 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2564$as_echo_n "checking whether build environment is sane... " >&6; } 2565# Just in case 2566sleep 1 2567echo timestamp > conftest.file 2568# Reject unsafe characters in $srcdir or the absolute working directory 2569# name. Accept space and tab only in the latter. 2570am_lf=' 2571' 2572case `pwd` in 2573 *[\\\"\#\$\&\'\`$am_lf]*) 2574 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2575esac 2576case $srcdir in 2577 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2578 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2579esac 2580 2581# Do `set' in a subshell so we don't clobber the current shell's 2582# arguments. Must try -L first in case configure is actually a 2583# symlink; some systems play weird games with the mod time of symlinks 2584# (eg FreeBSD returns the mod time of the symlink's containing 2585# directory). 2586if ( 2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2588 if test "$*" = "X"; then 2589 # -L didn't work. 2590 set X `ls -t "$srcdir/configure" conftest.file` 2591 fi 2592 rm -f conftest.file 2593 if test "$*" != "X $srcdir/configure conftest.file" \ 2594 && test "$*" != "X conftest.file $srcdir/configure"; then 2595 2596 # If neither matched, then we have a broken ls. This can happen 2597 # if, for instance, CONFIG_SHELL is bash and it inherits a 2598 # broken ls alias from the environment. This has actually 2599 # happened. Such a system could not be considered "sane". 2600 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2601alias in your environment" "$LINENO" 5 2602 fi 2603 2604 test "$2" = conftest.file 2605 ) 2606then 2607 # Ok. 2608 : 2609else 2610 as_fn_error $? "newly created file is older than distributed files! 2611Check your system clock" "$LINENO" 5 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2614$as_echo "yes" >&6; } 2615test "$program_prefix" != NONE && 2616 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2617# Use a double $ so make ignores it. 2618test "$program_suffix" != NONE && 2619 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2620# Double any \ or $. 2621# By default was `s,x,x', remove it if useless. 2622ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2623program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2624 2625# expand $ac_aux_dir to an absolute path 2626am_aux_dir=`cd $ac_aux_dir && pwd` 2627 2628if test x"${MISSING+set}" != xset; then 2629 case $am_aux_dir in 2630 *\ * | *\ *) 2631 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2632 *) 2633 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2634 esac 2635fi 2636# Use eval to expand $SHELL 2637if eval "$MISSING --run true"; then 2638 am_missing_run="$MISSING --run " 2639else 2640 am_missing_run= 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2642$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2643fi 2644 2645if test x"${install_sh}" != xset; then 2646 case $am_aux_dir in 2647 *\ * | *\ *) 2648 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2649 *) 2650 install_sh="\${SHELL} $am_aux_dir/install-sh" 2651 esac 2652fi 2653 2654# Installed binaries are usually stripped using `strip' when the user 2655# run `make install-strip'. However `strip' might not be the right 2656# tool to use in cross-compilation environments, therefore Automake 2657# will honor the `STRIP' environment variable to overrule this program. 2658if test "$cross_compiling" != no; then 2659 if test -n "$ac_tool_prefix"; then 2660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2661set dummy ${ac_tool_prefix}strip; ac_word=$2 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2663$as_echo_n "checking for $ac_word... " >&6; } 2664if ${ac_cv_prog_STRIP+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 if test -n "$STRIP"; then 2668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2669else 2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2671for as_dir in $PATH 2672do 2673 IFS=$as_save_IFS 2674 test -z "$as_dir" && as_dir=. 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2677 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2679 break 2 2680 fi 2681done 2682 done 2683IFS=$as_save_IFS 2684 2685fi 2686fi 2687STRIP=$ac_cv_prog_STRIP 2688if test -n "$STRIP"; then 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2690$as_echo "$STRIP" >&6; } 2691else 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2693$as_echo "no" >&6; } 2694fi 2695 2696 2697fi 2698if test -z "$ac_cv_prog_STRIP"; then 2699 ac_ct_STRIP=$STRIP 2700 # Extract the first word of "strip", so it can be a program name with args. 2701set dummy strip; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$ac_ct_STRIP"; then 2708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2717 ac_cv_prog_ac_ct_STRIP="strip" 2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2728if test -n "$ac_ct_STRIP"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2730$as_echo "$ac_ct_STRIP" >&6; } 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734fi 2735 2736 if test "x$ac_ct_STRIP" = x; then 2737 STRIP=":" 2738 else 2739 case $cross_compiling:$ac_tool_warned in 2740yes:) 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2743ac_tool_warned=yes ;; 2744esac 2745 STRIP=$ac_ct_STRIP 2746 fi 2747else 2748 STRIP="$ac_cv_prog_STRIP" 2749fi 2750 2751fi 2752INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2753 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2755$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2756if test -z "$MKDIR_P"; then 2757 if ${ac_cv_path_mkdir+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759else 2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_prog in mkdir gmkdir; do 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2768 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2769 'mkdir (GNU coreutils) '* | \ 2770 'mkdir (coreutils) '* | \ 2771 'mkdir (fileutils) '4.1*) 2772 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2773 break 3;; 2774 esac 2775 done 2776 done 2777 done 2778IFS=$as_save_IFS 2779 2780fi 2781 2782 test -d ./--version && rmdir ./--version 2783 if test "${ac_cv_path_mkdir+set}" = set; then 2784 MKDIR_P="$ac_cv_path_mkdir -p" 2785 else 2786 # As a last resort, use the slow shell script. Don't cache a 2787 # value for MKDIR_P within a source directory, because that will 2788 # break other packages using the cache if that directory is 2789 # removed, or if the value is a relative name. 2790 MKDIR_P="$ac_install_sh -d" 2791 fi 2792fi 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2794$as_echo "$MKDIR_P" >&6; } 2795 2796mkdir_p="$MKDIR_P" 2797case $mkdir_p in 2798 [\\/$]* | ?:[\\/]*) ;; 2799 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2800esac 2801 2802for ac_prog in gawk mawk nawk awk 2803do 2804 # Extract the first word of "$ac_prog", so it can be a program name with args. 2805set dummy $ac_prog; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_AWK+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$AWK"; then 2812 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_AWK="$ac_prog" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831AWK=$ac_cv_prog_AWK 2832if test -n "$AWK"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2834$as_echo "$AWK" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841 test -n "$AWK" && break 2842done 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2845$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2846set x ${MAKE-make} 2847ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2848if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850else 2851 cat >conftest.make <<\_ACEOF 2852SHELL = /bin/sh 2853all: 2854 @echo '@@@%%%=$(MAKE)=@@@%%%' 2855_ACEOF 2856# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2857case `${MAKE-make} -f conftest.make 2>/dev/null` in 2858 *@@@%%%=?*=@@@%%%*) 2859 eval ac_cv_prog_make_${ac_make}_set=yes;; 2860 *) 2861 eval ac_cv_prog_make_${ac_make}_set=no;; 2862esac 2863rm -f conftest.make 2864fi 2865if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2867$as_echo "yes" >&6; } 2868 SET_MAKE= 2869else 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2871$as_echo "no" >&6; } 2872 SET_MAKE="MAKE=${MAKE-make}" 2873fi 2874 2875rm -rf .tst 2>/dev/null 2876mkdir .tst 2>/dev/null 2877if test -d .tst; then 2878 am__leading_dot=. 2879else 2880 am__leading_dot=_ 2881fi 2882rmdir .tst 2>/dev/null 2883 2884if test "`cd $srcdir && pwd`" != "`pwd`"; then 2885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2886 # is not polluted with repeated "-I." 2887 am__isrc=' -I$(srcdir)' 2888 # test to see if srcdir already configured 2889 if test -f $srcdir/config.status; then 2890 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2891 fi 2892fi 2893 2894# test whether we have cygpath 2895if test -z "$CYGPATH_W"; then 2896 if (cygpath --version) >/dev/null 2>/dev/null; then 2897 CYGPATH_W='cygpath -w' 2898 else 2899 CYGPATH_W=echo 2900 fi 2901fi 2902 2903 2904# Define the identity of the package. 2905 PACKAGE='flex' 2906 VERSION='2.5.39' 2907 2908 2909cat >>confdefs.h <<_ACEOF 2910#define PACKAGE "$PACKAGE" 2911_ACEOF 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define VERSION "$VERSION" 2916_ACEOF 2917 2918# Some tools Automake needs. 2919 2920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2921 2922 2923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2924 2925 2926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2927 2928 2929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2930 2931 2932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2933 2934# We need awk for the "check" target. The system "awk" is bad on 2935# some platforms. 2936# Always define AMTAR for backward compatibility. Yes, it's still used 2937# in the wild :-( We should find a proper way to deprecate it ... 2938AMTAR='$${TAR-tar}' 2939 2940am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2941 2942 2943 2944 2945 2946ac_config_headers="$ac_config_headers config.h:conf.in" 2947 2948 2949 2950# checks for programs 2951 2952 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 2954$as_echo_n "checking whether NLS is requested... " >&6; } 2955 # Check whether --enable-nls was given. 2956if test "${enable_nls+set}" = set; then : 2957 enableval=$enable_nls; USE_NLS=$enableval 2958else 2959 USE_NLS=yes 2960fi 2961 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 2963$as_echo "$USE_NLS" >&6; } 2964 2965 2966 2967 2968 GETTEXT_MACRO_VERSION=0.18 2969 2970 2971 2972 2973# Prepare PATH_SEPARATOR. 2974# The user is always right. 2975if test "${PATH_SEPARATOR+set}" != set; then 2976 echo "#! /bin/sh" >conf$$.sh 2977 echo "exit 0" >>conf$$.sh 2978 chmod +x conf$$.sh 2979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2980 PATH_SEPARATOR=';' 2981 else 2982 PATH_SEPARATOR=: 2983 fi 2984 rm -f conf$$.sh 2985fi 2986 2987# Find out how to test for executable files. Don't use a zero-byte file, 2988# as systems may use methods other than mode bits to determine executability. 2989cat >conf$$.file <<_ASEOF 2990#! /bin/sh 2991exit 0 2992_ASEOF 2993chmod +x conf$$.file 2994if test -x conf$$.file >/dev/null 2>&1; then 2995 ac_executable_p="test -x" 2996else 2997 ac_executable_p="test -f" 2998fi 2999rm -f conf$$.file 3000 3001# Extract the first word of "msgfmt", so it can be a program name with args. 3002set dummy msgfmt; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_path_MSGFMT+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 case "$MSGFMT" in 3009 [\\/]* | ?:[\\/]*) 3010 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3011 ;; 3012 *) 3013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3014 for ac_dir in $PATH; do 3015 IFS="$ac_save_IFS" 3016 test -z "$ac_dir" && ac_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3019 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3020 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 3021 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3022 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3023 break 2 3024 fi 3025 fi 3026 done 3027 done 3028 IFS="$ac_save_IFS" 3029 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3030 ;; 3031esac 3032fi 3033MSGFMT="$ac_cv_path_MSGFMT" 3034if test "$MSGFMT" != ":"; then 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3036$as_echo "$MSGFMT" >&6; } 3037else 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3039$as_echo "no" >&6; } 3040fi 3041 3042 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3043set dummy gmsgfmt; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if ${ac_cv_path_GMSGFMT+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 case $GMSGFMT in 3050 [\\/]* | ?:[\\/]*) 3051 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3052 ;; 3053 *) 3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055for as_dir in $PATH 3056do 3057 IFS=$as_save_IFS 3058 test -z "$as_dir" && as_dir=. 3059 for ac_exec_ext in '' $ac_executable_extensions; do 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3061 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065done 3066 done 3067IFS=$as_save_IFS 3068 3069 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3070 ;; 3071esac 3072fi 3073GMSGFMT=$ac_cv_path_GMSGFMT 3074if test -n "$GMSGFMT"; then 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3076$as_echo "$GMSGFMT" >&6; } 3077else 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079$as_echo "no" >&6; } 3080fi 3081 3082 3083 3084 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3085 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 3086 *) MSGFMT_015=$MSGFMT ;; 3087 esac 3088 3089 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3090 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 3091 *) GMSGFMT_015=$GMSGFMT ;; 3092 esac 3093 3094 3095 3096# Prepare PATH_SEPARATOR. 3097# The user is always right. 3098if test "${PATH_SEPARATOR+set}" != set; then 3099 echo "#! /bin/sh" >conf$$.sh 3100 echo "exit 0" >>conf$$.sh 3101 chmod +x conf$$.sh 3102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3103 PATH_SEPARATOR=';' 3104 else 3105 PATH_SEPARATOR=: 3106 fi 3107 rm -f conf$$.sh 3108fi 3109 3110# Find out how to test for executable files. Don't use a zero-byte file, 3111# as systems may use methods other than mode bits to determine executability. 3112cat >conf$$.file <<_ASEOF 3113#! /bin/sh 3114exit 0 3115_ASEOF 3116chmod +x conf$$.file 3117if test -x conf$$.file >/dev/null 2>&1; then 3118 ac_executable_p="test -x" 3119else 3120 ac_executable_p="test -f" 3121fi 3122rm -f conf$$.file 3123 3124# Extract the first word of "xgettext", so it can be a program name with args. 3125set dummy xgettext; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if ${ac_cv_path_XGETTEXT+:} false; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 case "$XGETTEXT" in 3132 [\\/]* | ?:[\\/]*) 3133 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3134 ;; 3135 *) 3136 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3137 for ac_dir in $PATH; do 3138 IFS="$ac_save_IFS" 3139 test -z "$ac_dir" && ac_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3142 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3143 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 3144 (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 3145 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3146 break 2 3147 fi 3148 fi 3149 done 3150 done 3151 IFS="$ac_save_IFS" 3152 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3153 ;; 3154esac 3155fi 3156XGETTEXT="$ac_cv_path_XGETTEXT" 3157if test "$XGETTEXT" != ":"; then 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3159$as_echo "$XGETTEXT" >&6; } 3160else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163fi 3164 3165 rm -f messages.po 3166 3167 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3168 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 3169 *) XGETTEXT_015=$XGETTEXT ;; 3170 esac 3171 3172 3173 3174# Prepare PATH_SEPARATOR. 3175# The user is always right. 3176if test "${PATH_SEPARATOR+set}" != set; then 3177 echo "#! /bin/sh" >conf$$.sh 3178 echo "exit 0" >>conf$$.sh 3179 chmod +x conf$$.sh 3180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3181 PATH_SEPARATOR=';' 3182 else 3183 PATH_SEPARATOR=: 3184 fi 3185 rm -f conf$$.sh 3186fi 3187 3188# Find out how to test for executable files. Don't use a zero-byte file, 3189# as systems may use methods other than mode bits to determine executability. 3190cat >conf$$.file <<_ASEOF 3191#! /bin/sh 3192exit 0 3193_ASEOF 3194chmod +x conf$$.file 3195if test -x conf$$.file >/dev/null 2>&1; then 3196 ac_executable_p="test -x" 3197else 3198 ac_executable_p="test -f" 3199fi 3200rm -f conf$$.file 3201 3202# Extract the first word of "msgmerge", so it can be a program name with args. 3203set dummy msgmerge; ac_word=$2 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3205$as_echo_n "checking for $ac_word... " >&6; } 3206if ${ac_cv_path_MSGMERGE+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 case "$MSGMERGE" in 3210 [\\/]* | ?:[\\/]*) 3211 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3212 ;; 3213 *) 3214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3215 for ac_dir in $PATH; do 3216 IFS="$ac_save_IFS" 3217 test -z "$ac_dir" && ac_dir=. 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3220 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3221 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 3222 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3223 break 2 3224 fi 3225 fi 3226 done 3227 done 3228 IFS="$ac_save_IFS" 3229 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3230 ;; 3231esac 3232fi 3233MSGMERGE="$ac_cv_path_MSGMERGE" 3234if test "$MSGMERGE" != ":"; then 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3236$as_echo "$MSGMERGE" >&6; } 3237else 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3239$as_echo "no" >&6; } 3240fi 3241 3242 3243 test -n "$localedir" || localedir='${datadir}/locale' 3244 3245 3246 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 3247 3248 3249 ac_config_commands="$ac_config_commands po-directories" 3250 3251 3252 3253 if test "X$prefix" = "XNONE"; then 3254 acl_final_prefix="$ac_default_prefix" 3255 else 3256 acl_final_prefix="$prefix" 3257 fi 3258 if test "X$exec_prefix" = "XNONE"; then 3259 acl_final_exec_prefix='${prefix}' 3260 else 3261 acl_final_exec_prefix="$exec_prefix" 3262 fi 3263 acl_save_prefix="$prefix" 3264 prefix="$acl_final_prefix" 3265 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 3266 prefix="$acl_save_prefix" 3267 3268DEPDIR="${am__leading_dot}deps" 3269 3270ac_config_commands="$ac_config_commands depfiles" 3271 3272 3273am_make=${MAKE-make} 3274cat > confinc << 'END' 3275am__doit: 3276 @echo this is the am__doit target 3277.PHONY: am__doit 3278END 3279# If we don't find an include directive, just comment out the code. 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3281$as_echo_n "checking for style of include used by $am_make... " >&6; } 3282am__include="#" 3283am__quote= 3284_am_result=none 3285# First try GNU make style include. 3286echo "include confinc" > confmf 3287# Ignore all kinds of additional output from `make'. 3288case `$am_make -s -f confmf 2> /dev/null` in #( 3289*the\ am__doit\ target*) 3290 am__include=include 3291 am__quote= 3292 _am_result=GNU 3293 ;; 3294esac 3295# Now try BSD make style include. 3296if test "$am__include" = "#"; then 3297 echo '.include "confinc"' > confmf 3298 case `$am_make -s -f confmf 2> /dev/null` in #( 3299 *the\ am__doit\ target*) 3300 am__include=.include 3301 am__quote="\"" 3302 _am_result=BSD 3303 ;; 3304 esac 3305fi 3306 3307 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3309$as_echo "$_am_result" >&6; } 3310rm -f confinc confmf 3311 3312# Check whether --enable-dependency-tracking was given. 3313if test "${enable_dependency_tracking+set}" = set; then : 3314 enableval=$enable_dependency_tracking; 3315fi 3316 3317if test "x$enable_dependency_tracking" != xno; then 3318 am_depcomp="$ac_aux_dir/depcomp" 3319 AMDEPBACKSLASH='\' 3320 am__nodep='_no' 3321fi 3322 if test "x$enable_dependency_tracking" != xno; then 3323 AMDEP_TRUE= 3324 AMDEP_FALSE='#' 3325else 3326 AMDEP_TRUE='#' 3327 AMDEP_FALSE= 3328fi 3329 3330 3331ac_ext=c 3332ac_cpp='$CPP $CPPFLAGS' 3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3335ac_compiler_gnu=$ac_cv_c_compiler_gnu 3336if test -n "$ac_tool_prefix"; then 3337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3338set dummy ${ac_tool_prefix}gcc; ac_word=$2 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340$as_echo_n "checking for $ac_word... " >&6; } 3341if ${ac_cv_prog_CC+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test -n "$CC"; then 3345 ac_cv_prog_CC="$CC" # Let the user override the test. 3346else 3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348for as_dir in $PATH 3349do 3350 IFS=$as_save_IFS 3351 test -z "$as_dir" && as_dir=. 3352 for ac_exec_ext in '' $ac_executable_extensions; do 3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3354 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358done 3359 done 3360IFS=$as_save_IFS 3361 3362fi 3363fi 3364CC=$ac_cv_prog_CC 3365if test -n "$CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3367$as_echo "$CC" >&6; } 3368else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371fi 3372 3373 3374fi 3375if test -z "$ac_cv_prog_CC"; then 3376 ac_ct_CC=$CC 3377 # Extract the first word of "gcc", so it can be a program name with args. 3378set dummy gcc; ac_word=$2 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380$as_echo_n "checking for $ac_word... " >&6; } 3381if ${ac_cv_prog_ac_ct_CC+:} false; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 if test -n "$ac_ct_CC"; then 3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3386else 3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388for as_dir in $PATH 3389do 3390 IFS=$as_save_IFS 3391 test -z "$as_dir" && as_dir=. 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3394 ac_cv_prog_ac_ct_CC="gcc" 3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398done 3399 done 3400IFS=$as_save_IFS 3401 3402fi 3403fi 3404ac_ct_CC=$ac_cv_prog_ac_ct_CC 3405if test -n "$ac_ct_CC"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3407$as_echo "$ac_ct_CC" >&6; } 3408else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410$as_echo "no" >&6; } 3411fi 3412 3413 if test "x$ac_ct_CC" = x; then 3414 CC="" 3415 else 3416 case $cross_compiling:$ac_tool_warned in 3417yes:) 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3420ac_tool_warned=yes ;; 3421esac 3422 CC=$ac_ct_CC 3423 fi 3424else 3425 CC="$ac_cv_prog_CC" 3426fi 3427 3428if test -z "$CC"; then 3429 if test -n "$ac_tool_prefix"; then 3430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3431set dummy ${ac_tool_prefix}cc; ac_word=$2 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3433$as_echo_n "checking for $ac_word... " >&6; } 3434if ${ac_cv_prog_CC+:} false; then : 3435 $as_echo_n "(cached) " >&6 3436else 3437 if test -n "$CC"; then 3438 ac_cv_prog_CC="$CC" # Let the user override the test. 3439else 3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3441for as_dir in $PATH 3442do 3443 IFS=$as_save_IFS 3444 test -z "$as_dir" && as_dir=. 3445 for ac_exec_ext in '' $ac_executable_extensions; do 3446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3447 ac_cv_prog_CC="${ac_tool_prefix}cc" 3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3449 break 2 3450 fi 3451done 3452 done 3453IFS=$as_save_IFS 3454 3455fi 3456fi 3457CC=$ac_cv_prog_CC 3458if test -n "$CC"; then 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3460$as_echo "$CC" >&6; } 3461else 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463$as_echo "no" >&6; } 3464fi 3465 3466 3467 fi 3468fi 3469if test -z "$CC"; then 3470 # Extract the first word of "cc", so it can be a program name with args. 3471set dummy cc; ac_word=$2 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3473$as_echo_n "checking for $ac_word... " >&6; } 3474if ${ac_cv_prog_CC+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 if test -n "$CC"; then 3478 ac_cv_prog_CC="$CC" # Let the user override the test. 3479else 3480 ac_prog_rejected=no 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3489 ac_prog_rejected=yes 3490 continue 3491 fi 3492 ac_cv_prog_CC="cc" 3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3494 break 2 3495 fi 3496done 3497 done 3498IFS=$as_save_IFS 3499 3500if test $ac_prog_rejected = yes; then 3501 # We found a bogon in the path, so make sure we never use it. 3502 set dummy $ac_cv_prog_CC 3503 shift 3504 if test $# != 0; then 3505 # We chose a different compiler from the bogus one. 3506 # However, it has the same basename, so the bogon will be chosen 3507 # first if we set CC to just the basename; use the full file name. 3508 shift 3509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3510 fi 3511fi 3512fi 3513fi 3514CC=$ac_cv_prog_CC 3515if test -n "$CC"; then 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3517$as_echo "$CC" >&6; } 3518else 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520$as_echo "no" >&6; } 3521fi 3522 3523 3524fi 3525if test -z "$CC"; then 3526 if test -n "$ac_tool_prefix"; then 3527 for ac_prog in cl.exe 3528 do 3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3530set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3532$as_echo_n "checking for $ac_word... " >&6; } 3533if ${ac_cv_prog_CC+:} false; then : 3534 $as_echo_n "(cached) " >&6 3535else 3536 if test -n "$CC"; then 3537 ac_cv_prog_CC="$CC" # Let the user override the test. 3538else 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 test -z "$as_dir" && as_dir=. 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3548 break 2 3549 fi 3550done 3551 done 3552IFS=$as_save_IFS 3553 3554fi 3555fi 3556CC=$ac_cv_prog_CC 3557if test -n "$CC"; then 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3559$as_echo "$CC" >&6; } 3560else 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3562$as_echo "no" >&6; } 3563fi 3564 3565 3566 test -n "$CC" && break 3567 done 3568fi 3569if test -z "$CC"; then 3570 ac_ct_CC=$CC 3571 for ac_prog in cl.exe 3572do 3573 # Extract the first word of "$ac_prog", so it can be a program name with args. 3574set dummy $ac_prog; ac_word=$2 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3576$as_echo_n "checking for $ac_word... " >&6; } 3577if ${ac_cv_prog_ac_ct_CC+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 if test -n "$ac_ct_CC"; then 3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3582else 3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3584for as_dir in $PATH 3585do 3586 IFS=$as_save_IFS 3587 test -z "$as_dir" && as_dir=. 3588 for ac_exec_ext in '' $ac_executable_extensions; do 3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3590 ac_cv_prog_ac_ct_CC="$ac_prog" 3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3592 break 2 3593 fi 3594done 3595 done 3596IFS=$as_save_IFS 3597 3598fi 3599fi 3600ac_ct_CC=$ac_cv_prog_ac_ct_CC 3601if test -n "$ac_ct_CC"; then 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3603$as_echo "$ac_ct_CC" >&6; } 3604else 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3606$as_echo "no" >&6; } 3607fi 3608 3609 3610 test -n "$ac_ct_CC" && break 3611done 3612 3613 if test "x$ac_ct_CC" = x; then 3614 CC="" 3615 else 3616 case $cross_compiling:$ac_tool_warned in 3617yes:) 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3620ac_tool_warned=yes ;; 3621esac 3622 CC=$ac_ct_CC 3623 fi 3624fi 3625 3626fi 3627 3628 3629test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3631as_fn_error $? "no acceptable C compiler found in \$PATH 3632See \`config.log' for more details" "$LINENO" 5; } 3633 3634# Provide some information about the compiler. 3635$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3636set X $ac_compile 3637ac_compiler=$2 3638for ac_option in --version -v -V -qversion; do 3639 { { ac_try="$ac_compiler $ac_option >&5" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3647 ac_status=$? 3648 if test -s conftest.err; then 3649 sed '10a\ 3650... rest of stderr output deleted ... 3651 10q' conftest.err >conftest.er1 3652 cat conftest.er1 >&5 3653 fi 3654 rm -f conftest.er1 conftest.err 3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3656 test $ac_status = 0; } 3657done 3658 3659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660/* end confdefs.h. */ 3661 3662int 3663main () 3664{ 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670ac_clean_files_save=$ac_clean_files 3671ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3672# Try to create an executable without -o first, disregard a.out. 3673# It will help us diagnose broken compilers, and finding out an intuition 3674# of exeext. 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3676$as_echo_n "checking whether the C compiler works... " >&6; } 3677ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3678 3679# The possible output files: 3680ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3681 3682ac_rmfiles= 3683for ac_file in $ac_files 3684do 3685 case $ac_file in 3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3687 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3688 esac 3689done 3690rm -f $ac_rmfiles 3691 3692if { { ac_try="$ac_link_default" 3693case "(($ac_try" in 3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3695 *) ac_try_echo=$ac_try;; 3696esac 3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3698$as_echo "$ac_try_echo"; } >&5 3699 (eval "$ac_link_default") 2>&5 3700 ac_status=$? 3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3702 test $ac_status = 0; }; then : 3703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3704# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3705# in a Makefile. We should not override ac_cv_exeext if it was cached, 3706# so that the user can short-circuit this test for compilers unknown to 3707# Autoconf. 3708for ac_file in $ac_files '' 3709do 3710 test -f "$ac_file" || continue 3711 case $ac_file in 3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3713 ;; 3714 [ab].out ) 3715 # We found the default executable, but exeext='' is most 3716 # certainly right. 3717 break;; 3718 *.* ) 3719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3720 then :; else 3721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3722 fi 3723 # We set ac_cv_exeext here because the later test for it is not 3724 # safe: cross compilers may not add the suffix if given an `-o' 3725 # argument, so we may need to know it at that point already. 3726 # Even if this section looks crufty: it has the advantage of 3727 # actually working. 3728 break;; 3729 * ) 3730 break;; 3731 esac 3732done 3733test "$ac_cv_exeext" = no && ac_cv_exeext= 3734 3735else 3736 ac_file='' 3737fi 3738if test -z "$ac_file"; then : 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740$as_echo "no" >&6; } 3741$as_echo "$as_me: failed program was:" >&5 3742sed 's/^/| /' conftest.$ac_ext >&5 3743 3744{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3746as_fn_error 77 "C compiler cannot create executables 3747See \`config.log' for more details" "$LINENO" 5; } 3748else 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3750$as_echo "yes" >&6; } 3751fi 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3753$as_echo_n "checking for C compiler default output file name... " >&6; } 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3755$as_echo "$ac_file" >&6; } 3756ac_exeext=$ac_cv_exeext 3757 3758rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3759ac_clean_files=$ac_clean_files_save 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3761$as_echo_n "checking for suffix of executables... " >&6; } 3762if { { ac_try="$ac_link" 3763case "(($ac_try" in 3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3765 *) ac_try_echo=$ac_try;; 3766esac 3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3768$as_echo "$ac_try_echo"; } >&5 3769 (eval "$ac_link") 2>&5 3770 ac_status=$? 3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3772 test $ac_status = 0; }; then : 3773 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3774# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3775# work properly (i.e., refer to `conftest.exe'), while it won't with 3776# `rm'. 3777for ac_file in conftest.exe conftest conftest.*; do 3778 test -f "$ac_file" || continue 3779 case $ac_file in 3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3782 break;; 3783 * ) break;; 3784 esac 3785done 3786else 3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3789as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3790See \`config.log' for more details" "$LINENO" 5; } 3791fi 3792rm -f conftest conftest$ac_cv_exeext 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3794$as_echo "$ac_cv_exeext" >&6; } 3795 3796rm -f conftest.$ac_ext 3797EXEEXT=$ac_cv_exeext 3798ac_exeext=$EXEEXT 3799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801#include <stdio.h> 3802int 3803main () 3804{ 3805FILE *f = fopen ("conftest.out", "w"); 3806 return ferror (f) || fclose (f) != 0; 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812ac_clean_files="$ac_clean_files conftest.out" 3813# Check that the compiler produces executables we can run. If not, either 3814# the compiler is broken, or we cross compile. 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3816$as_echo_n "checking whether we are cross compiling... " >&6; } 3817if test "$cross_compiling" != yes; then 3818 { { ac_try="$ac_link" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824$as_echo "$ac_try_echo"; } >&5 3825 (eval "$ac_link") 2>&5 3826 ac_status=$? 3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3828 test $ac_status = 0; } 3829 if { ac_try='./conftest$ac_cv_exeext' 3830 { { case "(($ac_try" in 3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3832 *) ac_try_echo=$ac_try;; 3833esac 3834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3835$as_echo "$ac_try_echo"; } >&5 3836 (eval "$ac_try") 2>&5 3837 ac_status=$? 3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3839 test $ac_status = 0; }; }; then 3840 cross_compiling=no 3841 else 3842 if test "$cross_compiling" = maybe; then 3843 cross_compiling=yes 3844 else 3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error $? "cannot run C compiled programs. 3848If you meant to cross compile, use \`--host'. 3849See \`config.log' for more details" "$LINENO" 5; } 3850 fi 3851 fi 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3854$as_echo "$cross_compiling" >&6; } 3855 3856rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3857ac_clean_files=$ac_clean_files_save 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3859$as_echo_n "checking for suffix of object files... " >&6; } 3860if ${ac_cv_objext+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874rm -f conftest.o conftest.obj 3875if { { ac_try="$ac_compile" 3876case "(($ac_try" in 3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3878 *) ac_try_echo=$ac_try;; 3879esac 3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3881$as_echo "$ac_try_echo"; } >&5 3882 (eval "$ac_compile") 2>&5 3883 ac_status=$? 3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3885 test $ac_status = 0; }; then : 3886 for ac_file in conftest.o conftest.obj conftest.*; do 3887 test -f "$ac_file" || continue; 3888 case $ac_file in 3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3891 break;; 3892 esac 3893done 3894else 3895 $as_echo "$as_me: failed program was:" >&5 3896sed 's/^/| /' conftest.$ac_ext >&5 3897 3898{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3900as_fn_error $? "cannot compute suffix of object files: cannot compile 3901See \`config.log' for more details" "$LINENO" 5; } 3902fi 3903rm -f conftest.$ac_cv_objext conftest.$ac_ext 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3906$as_echo "$ac_cv_objext" >&6; } 3907OBJEXT=$ac_cv_objext 3908ac_objext=$OBJEXT 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3910$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3911if ${ac_cv_c_compiler_gnu+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915/* end confdefs.h. */ 3916 3917int 3918main () 3919{ 3920#ifndef __GNUC__ 3921 choke me 3922#endif 3923 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928if ac_fn_c_try_compile "$LINENO"; then : 3929 ac_compiler_gnu=yes 3930else 3931 ac_compiler_gnu=no 3932fi 3933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3934ac_cv_c_compiler_gnu=$ac_compiler_gnu 3935 3936fi 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3938$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3939if test $ac_compiler_gnu = yes; then 3940 GCC=yes 3941else 3942 GCC= 3943fi 3944ac_test_CFLAGS=${CFLAGS+set} 3945ac_save_CFLAGS=$CFLAGS 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3947$as_echo_n "checking whether $CC accepts -g... " >&6; } 3948if ${ac_cv_prog_cc_g+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 ac_save_c_werror_flag=$ac_c_werror_flag 3952 ac_c_werror_flag=yes 3953 ac_cv_prog_cc_g=no 3954 CFLAGS="-g" 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957 3958int 3959main () 3960{ 3961 3962 ; 3963 return 0; 3964} 3965_ACEOF 3966if ac_fn_c_try_compile "$LINENO"; then : 3967 ac_cv_prog_cc_g=yes 3968else 3969 CFLAGS="" 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972 3973int 3974main () 3975{ 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981if ac_fn_c_try_compile "$LINENO"; then : 3982 3983else 3984 ac_c_werror_flag=$ac_save_c_werror_flag 3985 CFLAGS="-g" 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988 3989int 3990main () 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997if ac_fn_c_try_compile "$LINENO"; then : 3998 ac_cv_prog_cc_g=yes 3999fi 4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4001fi 4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4003fi 4004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4005 ac_c_werror_flag=$ac_save_c_werror_flag 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4008$as_echo "$ac_cv_prog_cc_g" >&6; } 4009if test "$ac_test_CFLAGS" = set; then 4010 CFLAGS=$ac_save_CFLAGS 4011elif test $ac_cv_prog_cc_g = yes; then 4012 if test "$GCC" = yes; then 4013 CFLAGS="-g -O2" 4014 else 4015 CFLAGS="-g" 4016 fi 4017else 4018 if test "$GCC" = yes; then 4019 CFLAGS="-O2" 4020 else 4021 CFLAGS= 4022 fi 4023fi 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4025$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4026if ${ac_cv_prog_cc_c89+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 ac_cv_prog_cc_c89=no 4030ac_save_CC=$CC 4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032/* end confdefs.h. */ 4033#include <stdarg.h> 4034#include <stdio.h> 4035struct stat; 4036/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4037struct buf { int x; }; 4038FILE * (*rcsopen) (struct buf *, struct stat *, int); 4039static char *e (p, i) 4040 char **p; 4041 int i; 4042{ 4043 return p[i]; 4044} 4045static char *f (char * (*g) (char **, int), char **p, ...) 4046{ 4047 char *s; 4048 va_list v; 4049 va_start (v,p); 4050 s = g (p, va_arg (v,int)); 4051 va_end (v); 4052 return s; 4053} 4054 4055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4056 function prototypes and stuff, but not '\xHH' hex character constants. 4057 These don't provoke an error unfortunately, instead are silently treated 4058 as 'x'. The following induces an error, until -std is added to get 4059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4060 array size at least. It's necessary to write '\x00'==0 to get something 4061 that's true only with -std. */ 4062int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4063 4064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4065 inside strings and character constants. */ 4066#define FOO(x) 'x' 4067int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4068 4069int test (int i, double x); 4070struct s1 {int (*f) (int a);}; 4071struct s2 {int (*f) (double a);}; 4072int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4073int argc; 4074char **argv; 4075int 4076main () 4077{ 4078return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4085do 4086 CC="$ac_save_CC $ac_arg" 4087 if ac_fn_c_try_compile "$LINENO"; then : 4088 ac_cv_prog_cc_c89=$ac_arg 4089fi 4090rm -f core conftest.err conftest.$ac_objext 4091 test "x$ac_cv_prog_cc_c89" != "xno" && break 4092done 4093rm -f conftest.$ac_ext 4094CC=$ac_save_CC 4095 4096fi 4097# AC_CACHE_VAL 4098case "x$ac_cv_prog_cc_c89" in 4099 x) 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4101$as_echo "none needed" >&6; } ;; 4102 xno) 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4104$as_echo "unsupported" >&6; } ;; 4105 *) 4106 CC="$CC $ac_cv_prog_cc_c89" 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4108$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4109esac 4110if test "x$ac_cv_prog_cc_c89" != xno; then : 4111 4112fi 4113 4114ac_ext=c 4115ac_cpp='$CPP $CPPFLAGS' 4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4118ac_compiler_gnu=$ac_cv_c_compiler_gnu 4119 4120depcc="$CC" am_compiler_list= 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4123$as_echo_n "checking dependency style of $depcc... " >&6; } 4124if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4128 # We make a subdir and do the tests there. Otherwise we can end up 4129 # making bogus files that we don't know about and never remove. For 4130 # instance it was reported that on HP-UX the gcc test will end up 4131 # making a dummy file named `D' -- because `-MD' means `put the output 4132 # in D'. 4133 rm -rf conftest.dir 4134 mkdir conftest.dir 4135 # Copy depcomp to subdir because otherwise we won't find it if we're 4136 # using a relative directory. 4137 cp "$am_depcomp" conftest.dir 4138 cd conftest.dir 4139 # We will build objects and dependencies in a subdirectory because 4140 # it helps to detect inapplicable dependency modes. For instance 4141 # both Tru64's cc and ICC support -MD to output dependencies as a 4142 # side effect of compilation, but ICC will put the dependencies in 4143 # the current directory while Tru64 will put them in the object 4144 # directory. 4145 mkdir sub 4146 4147 am_cv_CC_dependencies_compiler_type=none 4148 if test "$am_compiler_list" = ""; then 4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4150 fi 4151 am__universal=false 4152 case " $depcc " in #( 4153 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4154 esac 4155 4156 for depmode in $am_compiler_list; do 4157 # Setup a source with many dependencies, because some compilers 4158 # like to wrap large dependency lists on column 80 (with \), and 4159 # we should not choose a depcomp mode which is confused by this. 4160 # 4161 # We need to recreate these files for each test, as the compiler may 4162 # overwrite some of them when testing with obscure command lines. 4163 # This happens at least with the AIX C compiler. 4164 : > sub/conftest.c 4165 for i in 1 2 3 4 5 6; do 4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4168 # Solaris 8's {/usr,}/bin/sh. 4169 touch sub/conftst$i.h 4170 done 4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4172 4173 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4174 # mode. It turns out that the SunPro C++ compiler does not properly 4175 # handle `-M -o', and we need to detect this. Also, some Intel 4176 # versions had trouble with output in subdirs 4177 am__obj=sub/conftest.${OBJEXT-o} 4178 am__minus_obj="-o $am__obj" 4179 case $depmode in 4180 gcc) 4181 # This depmode causes a compiler race in universal mode. 4182 test "$am__universal" = false || continue 4183 ;; 4184 nosideeffect) 4185 # after this tag, mechanisms are not by side-effect, so they'll 4186 # only be used when explicitly requested 4187 if test "x$enable_dependency_tracking" = xyes; then 4188 continue 4189 else 4190 break 4191 fi 4192 ;; 4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4194 # This compiler won't grok `-c -o', but also, the minuso test has 4195 # not run yet. These depmodes are late enough in the game, and 4196 # so weak that their functioning should not be impacted. 4197 am__obj=conftest.${OBJEXT-o} 4198 am__minus_obj= 4199 ;; 4200 none) break ;; 4201 esac 4202 if depmode=$depmode \ 4203 source=sub/conftest.c object=$am__obj \ 4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4206 >/dev/null 2>conftest.err && 4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4211 # icc doesn't choke on unknown options, it will just issue warnings 4212 # or remarks (even with -Werror). So we grep stderr for any message 4213 # that says an option was ignored or not supported. 4214 # When given -MP, icc 7.0 and 7.1 complain thusly: 4215 # icc: Command line warning: ignoring option '-M'; no argument required 4216 # The diagnosis changed in icc 8.0: 4217 # icc: Command line remark: option '-MP' not supported 4218 if (grep 'ignoring option' conftest.err || 4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4220 am_cv_CC_dependencies_compiler_type=$depmode 4221 break 4222 fi 4223 fi 4224 done 4225 4226 cd .. 4227 rm -rf conftest.dir 4228else 4229 am_cv_CC_dependencies_compiler_type=none 4230fi 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4234$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4236 4237 if 4238 test "x$enable_dependency_tracking" != xno \ 4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4240 am__fastdepCC_TRUE= 4241 am__fastdepCC_FALSE='#' 4242else 4243 am__fastdepCC_TRUE='#' 4244 am__fastdepCC_FALSE= 4245fi 4246 4247 4248# Make sure we can run config.sub. 4249$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4250 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4253$as_echo_n "checking build system type... " >&6; } 4254if ${ac_cv_build+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 ac_build_alias=$build_alias 4258test "x$ac_build_alias" = x && 4259 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4260test "x$ac_build_alias" = x && 4261 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4262ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4264 4265fi 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4267$as_echo "$ac_cv_build" >&6; } 4268case $ac_cv_build in 4269*-*-*) ;; 4270*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4271esac 4272build=$ac_cv_build 4273ac_save_IFS=$IFS; IFS='-' 4274set x $ac_cv_build 4275shift 4276build_cpu=$1 4277build_vendor=$2 4278shift; shift 4279# Remember, the first character of IFS is used to create $*, 4280# except with old shells: 4281build_os=$* 4282IFS=$ac_save_IFS 4283case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4284 4285 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4287$as_echo_n "checking host system type... " >&6; } 4288if ${ac_cv_host+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if test "x$host_alias" = x; then 4292 ac_cv_host=$ac_cv_build 4293else 4294 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4296fi 4297 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4300$as_echo "$ac_cv_host" >&6; } 4301case $ac_cv_host in 4302*-*-*) ;; 4303*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4304esac 4305host=$ac_cv_host 4306ac_save_IFS=$IFS; IFS='-' 4307set x $ac_cv_host 4308shift 4309host_cpu=$1 4310host_vendor=$2 4311shift; shift 4312# Remember, the first character of IFS is used to create $*, 4313# except with old shells: 4314host_os=$* 4315IFS=$ac_save_IFS 4316case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4317 4318 4319 4320# Check whether --with-gnu-ld was given. 4321if test "${with_gnu_ld+set}" = set; then : 4322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4323else 4324 with_gnu_ld=no 4325fi 4326 4327# Prepare PATH_SEPARATOR. 4328# The user is always right. 4329if test "${PATH_SEPARATOR+set}" != set; then 4330 echo "#! /bin/sh" >conf$$.sh 4331 echo "exit 0" >>conf$$.sh 4332 chmod +x conf$$.sh 4333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4334 PATH_SEPARATOR=';' 4335 else 4336 PATH_SEPARATOR=: 4337 fi 4338 rm -f conf$$.sh 4339fi 4340ac_prog=ld 4341if test "$GCC" = yes; then 4342 # Check if gcc -print-prog-name=ld gives a path. 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 4344$as_echo_n "checking for ld used by GCC... " >&6; } 4345 case $host in 4346 *-*-mingw*) 4347 # gcc leaves a trailing carriage return which upsets mingw 4348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4349 *) 4350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4351 esac 4352 case $ac_prog in 4353 # Accept absolute paths. 4354 [\\/]* | [A-Za-z]:[\\/]*) 4355 re_direlt='/[^/][^/]*/\.\./' 4356 # Canonicalize the path of ld 4357 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4358 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4359 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4360 done 4361 test -z "$LD" && LD="$ac_prog" 4362 ;; 4363 "") 4364 # If it fails, then pretend we aren't using GCC. 4365 ac_prog=ld 4366 ;; 4367 *) 4368 # If it is relative, then search for the first ld in PATH. 4369 with_gnu_ld=unknown 4370 ;; 4371 esac 4372elif test "$with_gnu_ld" = yes; then 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4374$as_echo_n "checking for GNU ld... " >&6; } 4375else 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4377$as_echo_n "checking for non-GNU ld... " >&6; } 4378fi 4379if ${acl_cv_path_LD+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 if test -z "$LD"; then 4383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4384 for ac_dir in $PATH; do 4385 test -z "$ac_dir" && ac_dir=. 4386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4387 acl_cv_path_LD="$ac_dir/$ac_prog" 4388 # Check to see if the program is GNU ld. I'd rather use --version, 4389 # but apparently some GNU ld's only accept -v. 4390 # Break only if it was the GNU/non-GNU ld that we prefer. 4391 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 4392 *GNU* | *'with BFD'*) 4393 test "$with_gnu_ld" != no && break ;; 4394 *) 4395 test "$with_gnu_ld" != yes && break ;; 4396 esac 4397 fi 4398 done 4399 IFS="$ac_save_ifs" 4400else 4401 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4402fi 4403fi 4404 4405LD="$acl_cv_path_LD" 4406if test -n "$LD"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4408$as_echo "$LD" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4415$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4416if ${acl_cv_prog_gnu_ld+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4420case `$LD -v 2>&1 </dev/null` in 4421*GNU* | *'with BFD'*) 4422 acl_cv_prog_gnu_ld=yes ;; 4423*) 4424 acl_cv_prog_gnu_ld=no ;; 4425esac 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 4428$as_echo "$acl_cv_prog_gnu_ld" >&6; } 4429with_gnu_ld=$acl_cv_prog_gnu_ld 4430 4431 4432 4433 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 4435$as_echo_n "checking for shared library run path origin... " >&6; } 4436if ${acl_cv_rpath+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 4440 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4441 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4442 . ./conftest.sh 4443 rm -f ./conftest.sh 4444 acl_cv_rpath=done 4445 4446fi 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 4448$as_echo "$acl_cv_rpath" >&6; } 4449 wl="$acl_cv_wl" 4450 acl_libext="$acl_cv_libext" 4451 acl_shlibext="$acl_cv_shlibext" 4452 acl_libname_spec="$acl_cv_libname_spec" 4453 acl_library_names_spec="$acl_cv_library_names_spec" 4454 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4455 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4456 acl_hardcode_direct="$acl_cv_hardcode_direct" 4457 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 4458 # Check whether --enable-rpath was given. 4459if test "${enable_rpath+set}" = set; then : 4460 enableval=$enable_rpath; : 4461else 4462 enable_rpath=yes 4463fi 4464 4465 4466 4467ac_ext=c 4468ac_cpp='$CPP $CPPFLAGS' 4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4471ac_compiler_gnu=$ac_cv_c_compiler_gnu 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4473$as_echo_n "checking how to run the C preprocessor... " >&6; } 4474# On Suns, sometimes $CPP names a directory. 4475if test -n "$CPP" && test -d "$CPP"; then 4476 CPP= 4477fi 4478if test -z "$CPP"; then 4479 if ${ac_cv_prog_CPP+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 # Double quotes because CPP needs to be expanded 4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4484 do 4485 ac_preproc_ok=false 4486for ac_c_preproc_warn_flag in '' yes 4487do 4488 # Use a header file that comes with gcc, so configuring glibc 4489 # with a fresh cross-compiler works. 4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4491 # <limits.h> exists even on freestanding compilers. 4492 # On the NeXT, cc -E runs the code through the compiler's parser, 4493 # not just through cpp. "Syntax error" is here to catch this case. 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495/* end confdefs.h. */ 4496#ifdef __STDC__ 4497# include <limits.h> 4498#else 4499# include <assert.h> 4500#endif 4501 Syntax error 4502_ACEOF 4503if ac_fn_c_try_cpp "$LINENO"; then : 4504 4505else 4506 # Broken: fails on valid input. 4507continue 4508fi 4509rm -f conftest.err conftest.i conftest.$ac_ext 4510 4511 # OK, works on sane cases. Now check whether nonexistent headers 4512 # can be detected and how. 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515#include <ac_nonexistent.h> 4516_ACEOF 4517if ac_fn_c_try_cpp "$LINENO"; then : 4518 # Broken: success on invalid input. 4519continue 4520else 4521 # Passes both tests. 4522ac_preproc_ok=: 4523break 4524fi 4525rm -f conftest.err conftest.i conftest.$ac_ext 4526 4527done 4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4529rm -f conftest.i conftest.err conftest.$ac_ext 4530if $ac_preproc_ok; then : 4531 break 4532fi 4533 4534 done 4535 ac_cv_prog_CPP=$CPP 4536 4537fi 4538 CPP=$ac_cv_prog_CPP 4539else 4540 ac_cv_prog_CPP=$CPP 4541fi 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4543$as_echo "$CPP" >&6; } 4544ac_preproc_ok=false 4545for ac_c_preproc_warn_flag in '' yes 4546do 4547 # Use a header file that comes with gcc, so configuring glibc 4548 # with a fresh cross-compiler works. 4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4550 # <limits.h> exists even on freestanding compilers. 4551 # On the NeXT, cc -E runs the code through the compiler's parser, 4552 # not just through cpp. "Syntax error" is here to catch this case. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#ifdef __STDC__ 4556# include <limits.h> 4557#else 4558# include <assert.h> 4559#endif 4560 Syntax error 4561_ACEOF 4562if ac_fn_c_try_cpp "$LINENO"; then : 4563 4564else 4565 # Broken: fails on valid input. 4566continue 4567fi 4568rm -f conftest.err conftest.i conftest.$ac_ext 4569 4570 # OK, works on sane cases. Now check whether nonexistent headers 4571 # can be detected and how. 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574#include <ac_nonexistent.h> 4575_ACEOF 4576if ac_fn_c_try_cpp "$LINENO"; then : 4577 # Broken: success on invalid input. 4578continue 4579else 4580 # Passes both tests. 4581ac_preproc_ok=: 4582break 4583fi 4584rm -f conftest.err conftest.i conftest.$ac_ext 4585 4586done 4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4588rm -f conftest.i conftest.err conftest.$ac_ext 4589if $ac_preproc_ok; then : 4590 4591else 4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4594as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4595See \`config.log' for more details" "$LINENO" 5; } 4596fi 4597 4598ac_ext=c 4599ac_cpp='$CPP $CPPFLAGS' 4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4602ac_compiler_gnu=$ac_cv_c_compiler_gnu 4603 4604 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4606$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4607if ${ac_cv_path_GREP+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 if test -z "$GREP"; then 4611 ac_path_GREP_found=false 4612 # Loop through the user's path and test for each of PROGNAME-LIST 4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4615do 4616 IFS=$as_save_IFS 4617 test -z "$as_dir" && as_dir=. 4618 for ac_prog in grep ggrep; do 4619 for ac_exec_ext in '' $ac_executable_extensions; do 4620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4621 as_fn_executable_p "$ac_path_GREP" || continue 4622# Check for GNU ac_path_GREP and select it if it is found. 4623 # Check for GNU $ac_path_GREP 4624case `"$ac_path_GREP" --version 2>&1` in 4625*GNU*) 4626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4627*) 4628 ac_count=0 4629 $as_echo_n 0123456789 >"conftest.in" 4630 while : 4631 do 4632 cat "conftest.in" "conftest.in" >"conftest.tmp" 4633 mv "conftest.tmp" "conftest.in" 4634 cp "conftest.in" "conftest.nl" 4635 $as_echo 'GREP' >> "conftest.nl" 4636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4638 as_fn_arith $ac_count + 1 && ac_count=$as_val 4639 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4640 # Best one so far, save it but keep looking for a better one 4641 ac_cv_path_GREP="$ac_path_GREP" 4642 ac_path_GREP_max=$ac_count 4643 fi 4644 # 10*(2^10) chars as input seems more than enough 4645 test $ac_count -gt 10 && break 4646 done 4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4648esac 4649 4650 $ac_path_GREP_found && break 3 4651 done 4652 done 4653 done 4654IFS=$as_save_IFS 4655 if test -z "$ac_cv_path_GREP"; then 4656 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4657 fi 4658else 4659 ac_cv_path_GREP=$GREP 4660fi 4661 4662fi 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4664$as_echo "$ac_cv_path_GREP" >&6; } 4665 GREP="$ac_cv_path_GREP" 4666 4667 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4669$as_echo_n "checking for egrep... " >&6; } 4670if ${ac_cv_path_EGREP+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4674 then ac_cv_path_EGREP="$GREP -E" 4675 else 4676 if test -z "$EGREP"; then 4677 ac_path_EGREP_found=false 4678 # Loop through the user's path and test for each of PROGNAME-LIST 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4681do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_prog in egrep; do 4685 for ac_exec_ext in '' $ac_executable_extensions; do 4686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4687 as_fn_executable_p "$ac_path_EGREP" || continue 4688# Check for GNU ac_path_EGREP and select it if it is found. 4689 # Check for GNU $ac_path_EGREP 4690case `"$ac_path_EGREP" --version 2>&1` in 4691*GNU*) 4692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4693*) 4694 ac_count=0 4695 $as_echo_n 0123456789 >"conftest.in" 4696 while : 4697 do 4698 cat "conftest.in" "conftest.in" >"conftest.tmp" 4699 mv "conftest.tmp" "conftest.in" 4700 cp "conftest.in" "conftest.nl" 4701 $as_echo 'EGREP' >> "conftest.nl" 4702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4704 as_fn_arith $ac_count + 1 && ac_count=$as_val 4705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4706 # Best one so far, save it but keep looking for a better one 4707 ac_cv_path_EGREP="$ac_path_EGREP" 4708 ac_path_EGREP_max=$ac_count 4709 fi 4710 # 10*(2^10) chars as input seems more than enough 4711 test $ac_count -gt 10 && break 4712 done 4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4714esac 4715 4716 $ac_path_EGREP_found && break 3 4717 done 4718 done 4719 done 4720IFS=$as_save_IFS 4721 if test -z "$ac_cv_path_EGREP"; then 4722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4723 fi 4724else 4725 ac_cv_path_EGREP=$EGREP 4726fi 4727 4728 fi 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4731$as_echo "$ac_cv_path_EGREP" >&6; } 4732 EGREP="$ac_cv_path_EGREP" 4733 4734 4735 4736 4737 acl_libdirstem=lib 4738 acl_libdirstem2= 4739 case "$host_os" in 4740 solaris*) 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 4742$as_echo_n "checking for 64-bit host... " >&6; } 4743if ${gl_cv_solaris_64bit+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748 4749#ifdef _LP64 4750sixtyfour bits 4751#endif 4752 4753_ACEOF 4754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4755 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 4756 gl_cv_solaris_64bit=yes 4757else 4758 gl_cv_solaris_64bit=no 4759fi 4760rm -f conftest* 4761 4762 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 4765$as_echo "$gl_cv_solaris_64bit" >&6; } 4766 if test $gl_cv_solaris_64bit = yes; then 4767 acl_libdirstem=lib/64 4768 case "$host_cpu" in 4769 sparc*) acl_libdirstem2=lib/sparcv9 ;; 4770 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 4771 esac 4772 fi 4773 ;; 4774 *) 4775 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 4776 if test -n "$searchpath"; then 4777 acl_save_IFS="${IFS= }"; IFS=":" 4778 for searchdir in $searchpath; do 4779 if test -d "$searchdir"; then 4780 case "$searchdir" in 4781 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 4782 */../ | */.. ) 4783 # Better ignore directories of this form. They are misleading. 4784 ;; 4785 *) searchdir=`cd "$searchdir" && pwd` 4786 case "$searchdir" in 4787 */lib64 ) acl_libdirstem=lib64 ;; 4788 esac ;; 4789 esac 4790 fi 4791 done 4792 IFS="$acl_save_IFS" 4793 fi 4794 ;; 4795 esac 4796 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 use_additional=yes 4810 4811 acl_save_prefix="$prefix" 4812 prefix="$acl_final_prefix" 4813 acl_save_exec_prefix="$exec_prefix" 4814 exec_prefix="$acl_final_exec_prefix" 4815 4816 eval additional_includedir=\"$includedir\" 4817 eval additional_libdir=\"$libdir\" 4818 4819 exec_prefix="$acl_save_exec_prefix" 4820 prefix="$acl_save_prefix" 4821 4822 4823# Check whether --with-libiconv-prefix was given. 4824if test "${with_libiconv_prefix+set}" = set; then : 4825 withval=$with_libiconv_prefix; 4826 if test "X$withval" = "Xno"; then 4827 use_additional=no 4828 else 4829 if test "X$withval" = "X"; then 4830 4831 acl_save_prefix="$prefix" 4832 prefix="$acl_final_prefix" 4833 acl_save_exec_prefix="$exec_prefix" 4834 exec_prefix="$acl_final_exec_prefix" 4835 4836 eval additional_includedir=\"$includedir\" 4837 eval additional_libdir=\"$libdir\" 4838 4839 exec_prefix="$acl_save_exec_prefix" 4840 prefix="$acl_save_prefix" 4841 4842 else 4843 additional_includedir="$withval/include" 4844 additional_libdir="$withval/$acl_libdirstem" 4845 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 4846 && ! test -d "$withval/$acl_libdirstem"; then 4847 additional_libdir="$withval/$acl_libdirstem2" 4848 fi 4849 fi 4850 fi 4851 4852fi 4853 4854 LIBICONV= 4855 LTLIBICONV= 4856 INCICONV= 4857 LIBICONV_PREFIX= 4858 HAVE_LIBICONV= 4859 rpathdirs= 4860 ltrpathdirs= 4861 names_already_handled= 4862 names_next_round='iconv ' 4863 while test -n "$names_next_round"; do 4864 names_this_round="$names_next_round" 4865 names_next_round= 4866 for name in $names_this_round; do 4867 already_handled= 4868 for n in $names_already_handled; do 4869 if test "$n" = "$name"; then 4870 already_handled=yes 4871 break 4872 fi 4873 done 4874 if test -z "$already_handled"; then 4875 names_already_handled="$names_already_handled $name" 4876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4877 eval value=\"\$HAVE_LIB$uppername\" 4878 if test -n "$value"; then 4879 if test "$value" = yes; then 4880 eval value=\"\$LIB$uppername\" 4881 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4882 eval value=\"\$LTLIB$uppername\" 4883 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4884 else 4885 : 4886 fi 4887 else 4888 found_dir= 4889 found_la= 4890 found_so= 4891 found_a= 4892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 4893 if test -n "$acl_shlibext"; then 4894 shrext=".$acl_shlibext" # typically: shrext=.so 4895 else 4896 shrext= 4897 fi 4898 if test $use_additional = yes; then 4899 dir="$additional_libdir" 4900 if test -n "$acl_shlibext"; then 4901 if test -f "$dir/$libname$shrext"; then 4902 found_dir="$dir" 4903 found_so="$dir/$libname$shrext" 4904 else 4905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 4906 ver=`(cd "$dir" && \ 4907 for f in "$libname$shrext".*; do echo "$f"; done \ 4908 | sed -e "s,^$libname$shrext\\\\.,," \ 4909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 4910 | sed 1q ) 2>/dev/null` 4911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 4912 found_dir="$dir" 4913 found_so="$dir/$libname$shrext.$ver" 4914 fi 4915 else 4916 eval library_names=\"$acl_library_names_spec\" 4917 for f in $library_names; do 4918 if test -f "$dir/$f"; then 4919 found_dir="$dir" 4920 found_so="$dir/$f" 4921 break 4922 fi 4923 done 4924 fi 4925 fi 4926 fi 4927 if test "X$found_dir" = "X"; then 4928 if test -f "$dir/$libname.$acl_libext"; then 4929 found_dir="$dir" 4930 found_a="$dir/$libname.$acl_libext" 4931 fi 4932 fi 4933 if test "X$found_dir" != "X"; then 4934 if test -f "$dir/$libname.la"; then 4935 found_la="$dir/$libname.la" 4936 fi 4937 fi 4938 fi 4939 if test "X$found_dir" = "X"; then 4940 for x in $LDFLAGS $LTLIBICONV; do 4941 4942 acl_save_prefix="$prefix" 4943 prefix="$acl_final_prefix" 4944 acl_save_exec_prefix="$exec_prefix" 4945 exec_prefix="$acl_final_exec_prefix" 4946 eval x=\"$x\" 4947 exec_prefix="$acl_save_exec_prefix" 4948 prefix="$acl_save_prefix" 4949 4950 case "$x" in 4951 -L*) 4952 dir=`echo "X$x" | sed -e 's/^X-L//'` 4953 if test -n "$acl_shlibext"; then 4954 if test -f "$dir/$libname$shrext"; then 4955 found_dir="$dir" 4956 found_so="$dir/$libname$shrext" 4957 else 4958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 4959 ver=`(cd "$dir" && \ 4960 for f in "$libname$shrext".*; do echo "$f"; done \ 4961 | sed -e "s,^$libname$shrext\\\\.,," \ 4962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 4963 | sed 1q ) 2>/dev/null` 4964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 4965 found_dir="$dir" 4966 found_so="$dir/$libname$shrext.$ver" 4967 fi 4968 else 4969 eval library_names=\"$acl_library_names_spec\" 4970 for f in $library_names; do 4971 if test -f "$dir/$f"; then 4972 found_dir="$dir" 4973 found_so="$dir/$f" 4974 break 4975 fi 4976 done 4977 fi 4978 fi 4979 fi 4980 if test "X$found_dir" = "X"; then 4981 if test -f "$dir/$libname.$acl_libext"; then 4982 found_dir="$dir" 4983 found_a="$dir/$libname.$acl_libext" 4984 fi 4985 fi 4986 if test "X$found_dir" != "X"; then 4987 if test -f "$dir/$libname.la"; then 4988 found_la="$dir/$libname.la" 4989 fi 4990 fi 4991 ;; 4992 esac 4993 if test "X$found_dir" != "X"; then 4994 break 4995 fi 4996 done 4997 fi 4998 if test "X$found_dir" != "X"; then 4999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 5000 if test "X$found_so" != "X"; then 5001 if test "$enable_rpath" = no \ 5002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 5003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 5004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5005 else 5006 haveit= 5007 for x in $ltrpathdirs; do 5008 if test "X$x" = "X$found_dir"; then 5009 haveit=yes 5010 break 5011 fi 5012 done 5013 if test -z "$haveit"; then 5014 ltrpathdirs="$ltrpathdirs $found_dir" 5015 fi 5016 if test "$acl_hardcode_direct" = yes; then 5017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5018 else 5019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 5020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5021 haveit= 5022 for x in $rpathdirs; do 5023 if test "X$x" = "X$found_dir"; then 5024 haveit=yes 5025 break 5026 fi 5027 done 5028 if test -z "$haveit"; then 5029 rpathdirs="$rpathdirs $found_dir" 5030 fi 5031 else 5032 haveit= 5033 for x in $LDFLAGS $LIBICONV; do 5034 5035 acl_save_prefix="$prefix" 5036 prefix="$acl_final_prefix" 5037 acl_save_exec_prefix="$exec_prefix" 5038 exec_prefix="$acl_final_exec_prefix" 5039 eval x=\"$x\" 5040 exec_prefix="$acl_save_exec_prefix" 5041 prefix="$acl_save_prefix" 5042 5043 if test "X$x" = "X-L$found_dir"; then 5044 haveit=yes 5045 break 5046 fi 5047 done 5048 if test -z "$haveit"; then 5049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 5050 fi 5051 if test "$acl_hardcode_minus_L" != no; then 5052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5053 else 5054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5055 fi 5056 fi 5057 fi 5058 fi 5059 else 5060 if test "X$found_a" != "X"; then 5061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 5062 else 5063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 5064 fi 5065 fi 5066 additional_includedir= 5067 case "$found_dir" in 5068 */$acl_libdirstem | */$acl_libdirstem/) 5069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 5070 if test "$name" = 'iconv'; then 5071 LIBICONV_PREFIX="$basedir" 5072 fi 5073 additional_includedir="$basedir/include" 5074 ;; 5075 */$acl_libdirstem2 | */$acl_libdirstem2/) 5076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 5077 if test "$name" = 'iconv'; then 5078 LIBICONV_PREFIX="$basedir" 5079 fi 5080 additional_includedir="$basedir/include" 5081 ;; 5082 esac 5083 if test "X$additional_includedir" != "X"; then 5084 if test "X$additional_includedir" != "X/usr/include"; then 5085 haveit= 5086 if test "X$additional_includedir" = "X/usr/local/include"; then 5087 if test -n "$GCC"; then 5088 case $host_os in 5089 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5090 esac 5091 fi 5092 fi 5093 if test -z "$haveit"; then 5094 for x in $CPPFLAGS $INCICONV; do 5095 5096 acl_save_prefix="$prefix" 5097 prefix="$acl_final_prefix" 5098 acl_save_exec_prefix="$exec_prefix" 5099 exec_prefix="$acl_final_exec_prefix" 5100 eval x=\"$x\" 5101 exec_prefix="$acl_save_exec_prefix" 5102 prefix="$acl_save_prefix" 5103 5104 if test "X$x" = "X-I$additional_includedir"; then 5105 haveit=yes 5106 break 5107 fi 5108 done 5109 if test -z "$haveit"; then 5110 if test -d "$additional_includedir"; then 5111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 5112 fi 5113 fi 5114 fi 5115 fi 5116 fi 5117 if test -n "$found_la"; then 5118 save_libdir="$libdir" 5119 case "$found_la" in 5120 */* | *\\*) . "$found_la" ;; 5121 *) . "./$found_la" ;; 5122 esac 5123 libdir="$save_libdir" 5124 for dep in $dependency_libs; do 5125 case "$dep" in 5126 -L*) 5127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 5129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 5130 haveit= 5131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 5132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 5133 if test -n "$GCC"; then 5134 case $host_os in 5135 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5136 esac 5137 fi 5138 fi 5139 if test -z "$haveit"; then 5140 haveit= 5141 for x in $LDFLAGS $LIBICONV; do 5142 5143 acl_save_prefix="$prefix" 5144 prefix="$acl_final_prefix" 5145 acl_save_exec_prefix="$exec_prefix" 5146 exec_prefix="$acl_final_exec_prefix" 5147 eval x=\"$x\" 5148 exec_prefix="$acl_save_exec_prefix" 5149 prefix="$acl_save_prefix" 5150 5151 if test "X$x" = "X-L$additional_libdir"; then 5152 haveit=yes 5153 break 5154 fi 5155 done 5156 if test -z "$haveit"; then 5157 if test -d "$additional_libdir"; then 5158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 5159 fi 5160 fi 5161 haveit= 5162 for x in $LDFLAGS $LTLIBICONV; do 5163 5164 acl_save_prefix="$prefix" 5165 prefix="$acl_final_prefix" 5166 acl_save_exec_prefix="$exec_prefix" 5167 exec_prefix="$acl_final_exec_prefix" 5168 eval x=\"$x\" 5169 exec_prefix="$acl_save_exec_prefix" 5170 prefix="$acl_save_prefix" 5171 5172 if test "X$x" = "X-L$additional_libdir"; then 5173 haveit=yes 5174 break 5175 fi 5176 done 5177 if test -z "$haveit"; then 5178 if test -d "$additional_libdir"; then 5179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 5180 fi 5181 fi 5182 fi 5183 fi 5184 ;; 5185 -R*) 5186 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5187 if test "$enable_rpath" != no; then 5188 haveit= 5189 for x in $rpathdirs; do 5190 if test "X$x" = "X$dir"; then 5191 haveit=yes 5192 break 5193 fi 5194 done 5195 if test -z "$haveit"; then 5196 rpathdirs="$rpathdirs $dir" 5197 fi 5198 haveit= 5199 for x in $ltrpathdirs; do 5200 if test "X$x" = "X$dir"; then 5201 haveit=yes 5202 break 5203 fi 5204 done 5205 if test -z "$haveit"; then 5206 ltrpathdirs="$ltrpathdirs $dir" 5207 fi 5208 fi 5209 ;; 5210 -l*) 5211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5212 ;; 5213 *.la) 5214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5215 ;; 5216 *) 5217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 5218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 5219 ;; 5220 esac 5221 done 5222 fi 5223 else 5224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 5226 fi 5227 fi 5228 fi 5229 done 5230 done 5231 if test "X$rpathdirs" != "X"; then 5232 if test -n "$acl_hardcode_libdir_separator"; then 5233 alldirs= 5234 for found_dir in $rpathdirs; do 5235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 5236 done 5237 acl_save_libdir="$libdir" 5238 libdir="$alldirs" 5239 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5240 libdir="$acl_save_libdir" 5241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5242 else 5243 for found_dir in $rpathdirs; do 5244 acl_save_libdir="$libdir" 5245 libdir="$found_dir" 5246 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5247 libdir="$acl_save_libdir" 5248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5249 done 5250 fi 5251 fi 5252 if test "X$ltrpathdirs" != "X"; then 5253 for found_dir in $ltrpathdirs; do 5254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5255 done 5256 fi 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 5289$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 5290if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 gt_save_LIBS="$LIBS" 5294 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5296/* end confdefs.h. */ 5297#include <CoreFoundation/CFPreferences.h> 5298int 5299main () 5300{ 5301CFPreferencesCopyAppValue(NULL, NULL) 5302 ; 5303 return 0; 5304} 5305_ACEOF 5306if ac_fn_c_try_link "$LINENO"; then : 5307 gt_cv_func_CFPreferencesCopyAppValue=yes 5308else 5309 gt_cv_func_CFPreferencesCopyAppValue=no 5310fi 5311rm -f core conftest.err conftest.$ac_objext \ 5312 conftest$ac_exeext conftest.$ac_ext 5313 LIBS="$gt_save_LIBS" 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 5316$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 5317 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 5318 5319$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 5320 5321 fi 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 5323$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 5324if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 gt_save_LIBS="$LIBS" 5328 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331#include <CoreFoundation/CFLocale.h> 5332int 5333main () 5334{ 5335CFLocaleCopyCurrent(); 5336 ; 5337 return 0; 5338} 5339_ACEOF 5340if ac_fn_c_try_link "$LINENO"; then : 5341 gt_cv_func_CFLocaleCopyCurrent=yes 5342else 5343 gt_cv_func_CFLocaleCopyCurrent=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext \ 5346 conftest$ac_exeext conftest.$ac_ext 5347 LIBS="$gt_save_LIBS" 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 5350$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 5351 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 5352 5353$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 5354 5355 fi 5356 INTL_MACOSX_LIBS= 5357 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 5358 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 5359 fi 5360 5361 5362 5363 5364 5365 5366 LIBINTL= 5367 LTLIBINTL= 5368 POSUB= 5369 5370 case " $gt_needs " in 5371 *" need-formatstring-macros "*) gt_api_version=3 ;; 5372 *" need-ngettext "*) gt_api_version=2 ;; 5373 *) gt_api_version=1 ;; 5374 esac 5375 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 5376 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 5377 5378 if test "$USE_NLS" = "yes"; then 5379 gt_use_preinstalled_gnugettext=no 5380 5381 5382 if test $gt_api_version -ge 3; then 5383 gt_revision_test_code=' 5384#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 5385#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 5386#endif 5387typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 5388' 5389 else 5390 gt_revision_test_code= 5391 fi 5392 if test $gt_api_version -ge 2; then 5393 gt_expression_test_code=' + * ngettext ("", "", 0)' 5394 else 5395 gt_expression_test_code= 5396 fi 5397 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 5399$as_echo_n "checking for GNU gettext in libc... " >&6; } 5400if eval \${$gt_func_gnugettext_libc+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402else 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405#include <libintl.h> 5406$gt_revision_test_code 5407extern int _nl_msg_cat_cntr; 5408extern int *_nl_domain_bindings; 5409int 5410main () 5411{ 5412bindtextdomain ("", ""); 5413return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 5414 ; 5415 return 0; 5416} 5417_ACEOF 5418if ac_fn_c_try_link "$LINENO"; then : 5419 eval "$gt_func_gnugettext_libc=yes" 5420else 5421 eval "$gt_func_gnugettext_libc=no" 5422fi 5423rm -f core conftest.err conftest.$ac_objext \ 5424 conftest$ac_exeext conftest.$ac_ext 5425fi 5426eval ac_res=\$$gt_func_gnugettext_libc 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5428$as_echo "$ac_res" >&6; } 5429 5430 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 5431 5432 5433 5434 5435 5436 am_save_CPPFLAGS="$CPPFLAGS" 5437 5438 for element in $INCICONV; do 5439 haveit= 5440 for x in $CPPFLAGS; do 5441 5442 acl_save_prefix="$prefix" 5443 prefix="$acl_final_prefix" 5444 acl_save_exec_prefix="$exec_prefix" 5445 exec_prefix="$acl_final_exec_prefix" 5446 eval x=\"$x\" 5447 exec_prefix="$acl_save_exec_prefix" 5448 prefix="$acl_save_prefix" 5449 5450 if test "X$x" = "X$element"; then 5451 haveit=yes 5452 break 5453 fi 5454 done 5455 if test -z "$haveit"; then 5456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5457 fi 5458 done 5459 5460 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5462$as_echo_n "checking for iconv... " >&6; } 5463if ${am_cv_func_iconv+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 5467 am_cv_func_iconv="no, consider installing GNU libiconv" 5468 am_cv_lib_iconv=no 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471#include <stdlib.h> 5472#include <iconv.h> 5473int 5474main () 5475{ 5476iconv_t cd = iconv_open("",""); 5477 iconv(cd,NULL,NULL,NULL,NULL); 5478 iconv_close(cd); 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483if ac_fn_c_try_link "$LINENO"; then : 5484 am_cv_func_iconv=yes 5485fi 5486rm -f core conftest.err conftest.$ac_objext \ 5487 conftest$ac_exeext conftest.$ac_ext 5488 if test "$am_cv_func_iconv" != yes; then 5489 am_save_LIBS="$LIBS" 5490 LIBS="$LIBS $LIBICONV" 5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5492/* end confdefs.h. */ 5493#include <stdlib.h> 5494#include <iconv.h> 5495int 5496main () 5497{ 5498iconv_t cd = iconv_open("",""); 5499 iconv(cd,NULL,NULL,NULL,NULL); 5500 iconv_close(cd); 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_c_try_link "$LINENO"; then : 5506 am_cv_lib_iconv=yes 5507 am_cv_func_iconv=yes 5508fi 5509rm -f core conftest.err conftest.$ac_objext \ 5510 conftest$ac_exeext conftest.$ac_ext 5511 LIBS="$am_save_LIBS" 5512 fi 5513 5514fi 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 5516$as_echo "$am_cv_func_iconv" >&6; } 5517 if test "$am_cv_func_iconv" = yes; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 5519$as_echo_n "checking for working iconv... " >&6; } 5520if ${am_cv_func_iconv_works+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 5524 am_save_LIBS="$LIBS" 5525 if test $am_cv_lib_iconv = yes; then 5526 LIBS="$LIBS $LIBICONV" 5527 fi 5528 if test "$cross_compiling" = yes; then : 5529 case "$host_os" in 5530 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 5531 *) am_cv_func_iconv_works="guessing yes" ;; 5532 esac 5533else 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536 5537#include <iconv.h> 5538#include <string.h> 5539int main () 5540{ 5541 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 5542 returns. */ 5543 { 5544 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 5545 if (cd_utf8_to_88591 != (iconv_t)(-1)) 5546 { 5547 static const char input[] = "\342\202\254"; /* EURO SIGN */ 5548 char buf[10]; 5549 const char *inptr = input; 5550 size_t inbytesleft = strlen (input); 5551 char *outptr = buf; 5552 size_t outbytesleft = sizeof (buf); 5553 size_t res = iconv (cd_utf8_to_88591, 5554 (char **) &inptr, &inbytesleft, 5555 &outptr, &outbytesleft); 5556 if (res == 0) 5557 return 1; 5558 } 5559 } 5560 /* Test against Solaris 10 bug: Failures are not distinguishable from 5561 successful returns. */ 5562 { 5563 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 5564 if (cd_ascii_to_88591 != (iconv_t)(-1)) 5565 { 5566 static const char input[] = "\263"; 5567 char buf[10]; 5568 const char *inptr = input; 5569 size_t inbytesleft = strlen (input); 5570 char *outptr = buf; 5571 size_t outbytesleft = sizeof (buf); 5572 size_t res = iconv (cd_ascii_to_88591, 5573 (char **) &inptr, &inbytesleft, 5574 &outptr, &outbytesleft); 5575 if (res == 0) 5576 return 1; 5577 } 5578 } 5579#if 0 /* This bug could be worked around by the caller. */ 5580 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 5581 { 5582 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 5583 if (cd_88591_to_utf8 != (iconv_t)(-1)) 5584 { 5585 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 5586 char buf[50]; 5587 const char *inptr = input; 5588 size_t inbytesleft = strlen (input); 5589 char *outptr = buf; 5590 size_t outbytesleft = sizeof (buf); 5591 size_t res = iconv (cd_88591_to_utf8, 5592 (char **) &inptr, &inbytesleft, 5593 &outptr, &outbytesleft); 5594 if ((int)res > 0) 5595 return 1; 5596 } 5597 } 5598#endif 5599 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 5600 provided. */ 5601 if (/* Try standardized names. */ 5602 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 5603 /* Try IRIX, OSF/1 names. */ 5604 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 5605 /* Try AIX names. */ 5606 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 5607 /* Try HP-UX names. */ 5608 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 5609 return 1; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_run "$LINENO"; then : 5614 am_cv_func_iconv_works=yes 5615else 5616 am_cv_func_iconv_works=no 5617fi 5618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5619 conftest.$ac_objext conftest.beam conftest.$ac_ext 5620fi 5621 5622 LIBS="$am_save_LIBS" 5623 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 5626$as_echo "$am_cv_func_iconv_works" >&6; } 5627 case "$am_cv_func_iconv_works" in 5628 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 5629 *) am_func_iconv=yes ;; 5630 esac 5631 else 5632 am_func_iconv=no am_cv_lib_iconv=no 5633 fi 5634 if test "$am_func_iconv" = yes; then 5635 5636$as_echo "#define HAVE_ICONV 1" >>confdefs.h 5637 5638 fi 5639 if test "$am_cv_lib_iconv" = yes; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 5641$as_echo_n "checking how to link with libiconv... " >&6; } 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 5643$as_echo "$LIBICONV" >&6; } 5644 else 5645 CPPFLAGS="$am_save_CPPFLAGS" 5646 LIBICONV= 5647 LTLIBICONV= 5648 fi 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 use_additional=yes 5661 5662 acl_save_prefix="$prefix" 5663 prefix="$acl_final_prefix" 5664 acl_save_exec_prefix="$exec_prefix" 5665 exec_prefix="$acl_final_exec_prefix" 5666 5667 eval additional_includedir=\"$includedir\" 5668 eval additional_libdir=\"$libdir\" 5669 5670 exec_prefix="$acl_save_exec_prefix" 5671 prefix="$acl_save_prefix" 5672 5673 5674# Check whether --with-libintl-prefix was given. 5675if test "${with_libintl_prefix+set}" = set; then : 5676 withval=$with_libintl_prefix; 5677 if test "X$withval" = "Xno"; then 5678 use_additional=no 5679 else 5680 if test "X$withval" = "X"; then 5681 5682 acl_save_prefix="$prefix" 5683 prefix="$acl_final_prefix" 5684 acl_save_exec_prefix="$exec_prefix" 5685 exec_prefix="$acl_final_exec_prefix" 5686 5687 eval additional_includedir=\"$includedir\" 5688 eval additional_libdir=\"$libdir\" 5689 5690 exec_prefix="$acl_save_exec_prefix" 5691 prefix="$acl_save_prefix" 5692 5693 else 5694 additional_includedir="$withval/include" 5695 additional_libdir="$withval/$acl_libdirstem" 5696 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 5697 && ! test -d "$withval/$acl_libdirstem"; then 5698 additional_libdir="$withval/$acl_libdirstem2" 5699 fi 5700 fi 5701 fi 5702 5703fi 5704 5705 LIBINTL= 5706 LTLIBINTL= 5707 INCINTL= 5708 LIBINTL_PREFIX= 5709 HAVE_LIBINTL= 5710 rpathdirs= 5711 ltrpathdirs= 5712 names_already_handled= 5713 names_next_round='intl ' 5714 while test -n "$names_next_round"; do 5715 names_this_round="$names_next_round" 5716 names_next_round= 5717 for name in $names_this_round; do 5718 already_handled= 5719 for n in $names_already_handled; do 5720 if test "$n" = "$name"; then 5721 already_handled=yes 5722 break 5723 fi 5724 done 5725 if test -z "$already_handled"; then 5726 names_already_handled="$names_already_handled $name" 5727 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5728 eval value=\"\$HAVE_LIB$uppername\" 5729 if test -n "$value"; then 5730 if test "$value" = yes; then 5731 eval value=\"\$LIB$uppername\" 5732 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 5733 eval value=\"\$LTLIB$uppername\" 5734 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 5735 else 5736 : 5737 fi 5738 else 5739 found_dir= 5740 found_la= 5741 found_so= 5742 found_a= 5743 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 5744 if test -n "$acl_shlibext"; then 5745 shrext=".$acl_shlibext" # typically: shrext=.so 5746 else 5747 shrext= 5748 fi 5749 if test $use_additional = yes; then 5750 dir="$additional_libdir" 5751 if test -n "$acl_shlibext"; then 5752 if test -f "$dir/$libname$shrext"; then 5753 found_dir="$dir" 5754 found_so="$dir/$libname$shrext" 5755 else 5756 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 5757 ver=`(cd "$dir" && \ 5758 for f in "$libname$shrext".*; do echo "$f"; done \ 5759 | sed -e "s,^$libname$shrext\\\\.,," \ 5760 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 5761 | sed 1q ) 2>/dev/null` 5762 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 5763 found_dir="$dir" 5764 found_so="$dir/$libname$shrext.$ver" 5765 fi 5766 else 5767 eval library_names=\"$acl_library_names_spec\" 5768 for f in $library_names; do 5769 if test -f "$dir/$f"; then 5770 found_dir="$dir" 5771 found_so="$dir/$f" 5772 break 5773 fi 5774 done 5775 fi 5776 fi 5777 fi 5778 if test "X$found_dir" = "X"; then 5779 if test -f "$dir/$libname.$acl_libext"; then 5780 found_dir="$dir" 5781 found_a="$dir/$libname.$acl_libext" 5782 fi 5783 fi 5784 if test "X$found_dir" != "X"; then 5785 if test -f "$dir/$libname.la"; then 5786 found_la="$dir/$libname.la" 5787 fi 5788 fi 5789 fi 5790 if test "X$found_dir" = "X"; then 5791 for x in $LDFLAGS $LTLIBINTL; do 5792 5793 acl_save_prefix="$prefix" 5794 prefix="$acl_final_prefix" 5795 acl_save_exec_prefix="$exec_prefix" 5796 exec_prefix="$acl_final_exec_prefix" 5797 eval x=\"$x\" 5798 exec_prefix="$acl_save_exec_prefix" 5799 prefix="$acl_save_prefix" 5800 5801 case "$x" in 5802 -L*) 5803 dir=`echo "X$x" | sed -e 's/^X-L//'` 5804 if test -n "$acl_shlibext"; then 5805 if test -f "$dir/$libname$shrext"; then 5806 found_dir="$dir" 5807 found_so="$dir/$libname$shrext" 5808 else 5809 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 5810 ver=`(cd "$dir" && \ 5811 for f in "$libname$shrext".*; do echo "$f"; done \ 5812 | sed -e "s,^$libname$shrext\\\\.,," \ 5813 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 5814 | sed 1q ) 2>/dev/null` 5815 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 5816 found_dir="$dir" 5817 found_so="$dir/$libname$shrext.$ver" 5818 fi 5819 else 5820 eval library_names=\"$acl_library_names_spec\" 5821 for f in $library_names; do 5822 if test -f "$dir/$f"; then 5823 found_dir="$dir" 5824 found_so="$dir/$f" 5825 break 5826 fi 5827 done 5828 fi 5829 fi 5830 fi 5831 if test "X$found_dir" = "X"; then 5832 if test -f "$dir/$libname.$acl_libext"; then 5833 found_dir="$dir" 5834 found_a="$dir/$libname.$acl_libext" 5835 fi 5836 fi 5837 if test "X$found_dir" != "X"; then 5838 if test -f "$dir/$libname.la"; then 5839 found_la="$dir/$libname.la" 5840 fi 5841 fi 5842 ;; 5843 esac 5844 if test "X$found_dir" != "X"; then 5845 break 5846 fi 5847 done 5848 fi 5849 if test "X$found_dir" != "X"; then 5850 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 5851 if test "X$found_so" != "X"; then 5852 if test "$enable_rpath" = no \ 5853 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 5854 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 5855 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5856 else 5857 haveit= 5858 for x in $ltrpathdirs; do 5859 if test "X$x" = "X$found_dir"; then 5860 haveit=yes 5861 break 5862 fi 5863 done 5864 if test -z "$haveit"; then 5865 ltrpathdirs="$ltrpathdirs $found_dir" 5866 fi 5867 if test "$acl_hardcode_direct" = yes; then 5868 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5869 else 5870 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 5871 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5872 haveit= 5873 for x in $rpathdirs; do 5874 if test "X$x" = "X$found_dir"; then 5875 haveit=yes 5876 break 5877 fi 5878 done 5879 if test -z "$haveit"; then 5880 rpathdirs="$rpathdirs $found_dir" 5881 fi 5882 else 5883 haveit= 5884 for x in $LDFLAGS $LIBINTL; do 5885 5886 acl_save_prefix="$prefix" 5887 prefix="$acl_final_prefix" 5888 acl_save_exec_prefix="$exec_prefix" 5889 exec_prefix="$acl_final_exec_prefix" 5890 eval x=\"$x\" 5891 exec_prefix="$acl_save_exec_prefix" 5892 prefix="$acl_save_prefix" 5893 5894 if test "X$x" = "X-L$found_dir"; then 5895 haveit=yes 5896 break 5897 fi 5898 done 5899 if test -z "$haveit"; then 5900 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5901 fi 5902 if test "$acl_hardcode_minus_L" != no; then 5903 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5904 else 5905 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5906 fi 5907 fi 5908 fi 5909 fi 5910 else 5911 if test "X$found_a" != "X"; then 5912 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5913 else 5914 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5915 fi 5916 fi 5917 additional_includedir= 5918 case "$found_dir" in 5919 */$acl_libdirstem | */$acl_libdirstem/) 5920 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 5921 if test "$name" = 'intl'; then 5922 LIBINTL_PREFIX="$basedir" 5923 fi 5924 additional_includedir="$basedir/include" 5925 ;; 5926 */$acl_libdirstem2 | */$acl_libdirstem2/) 5927 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 5928 if test "$name" = 'intl'; then 5929 LIBINTL_PREFIX="$basedir" 5930 fi 5931 additional_includedir="$basedir/include" 5932 ;; 5933 esac 5934 if test "X$additional_includedir" != "X"; then 5935 if test "X$additional_includedir" != "X/usr/include"; then 5936 haveit= 5937 if test "X$additional_includedir" = "X/usr/local/include"; then 5938 if test -n "$GCC"; then 5939 case $host_os in 5940 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5941 esac 5942 fi 5943 fi 5944 if test -z "$haveit"; then 5945 for x in $CPPFLAGS $INCINTL; do 5946 5947 acl_save_prefix="$prefix" 5948 prefix="$acl_final_prefix" 5949 acl_save_exec_prefix="$exec_prefix" 5950 exec_prefix="$acl_final_exec_prefix" 5951 eval x=\"$x\" 5952 exec_prefix="$acl_save_exec_prefix" 5953 prefix="$acl_save_prefix" 5954 5955 if test "X$x" = "X-I$additional_includedir"; then 5956 haveit=yes 5957 break 5958 fi 5959 done 5960 if test -z "$haveit"; then 5961 if test -d "$additional_includedir"; then 5962 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 5963 fi 5964 fi 5965 fi 5966 fi 5967 fi 5968 if test -n "$found_la"; then 5969 save_libdir="$libdir" 5970 case "$found_la" in 5971 */* | *\\*) . "$found_la" ;; 5972 *) . "./$found_la" ;; 5973 esac 5974 libdir="$save_libdir" 5975 for dep in $dependency_libs; do 5976 case "$dep" in 5977 -L*) 5978 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5979 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 5980 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 5981 haveit= 5982 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 5983 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 5984 if test -n "$GCC"; then 5985 case $host_os in 5986 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5987 esac 5988 fi 5989 fi 5990 if test -z "$haveit"; then 5991 haveit= 5992 for x in $LDFLAGS $LIBINTL; do 5993 5994 acl_save_prefix="$prefix" 5995 prefix="$acl_final_prefix" 5996 acl_save_exec_prefix="$exec_prefix" 5997 exec_prefix="$acl_final_exec_prefix" 5998 eval x=\"$x\" 5999 exec_prefix="$acl_save_exec_prefix" 6000 prefix="$acl_save_prefix" 6001 6002 if test "X$x" = "X-L$additional_libdir"; then 6003 haveit=yes 6004 break 6005 fi 6006 done 6007 if test -z "$haveit"; then 6008 if test -d "$additional_libdir"; then 6009 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 6010 fi 6011 fi 6012 haveit= 6013 for x in $LDFLAGS $LTLIBINTL; do 6014 6015 acl_save_prefix="$prefix" 6016 prefix="$acl_final_prefix" 6017 acl_save_exec_prefix="$exec_prefix" 6018 exec_prefix="$acl_final_exec_prefix" 6019 eval x=\"$x\" 6020 exec_prefix="$acl_save_exec_prefix" 6021 prefix="$acl_save_prefix" 6022 6023 if test "X$x" = "X-L$additional_libdir"; then 6024 haveit=yes 6025 break 6026 fi 6027 done 6028 if test -z "$haveit"; then 6029 if test -d "$additional_libdir"; then 6030 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 6031 fi 6032 fi 6033 fi 6034 fi 6035 ;; 6036 -R*) 6037 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6038 if test "$enable_rpath" != no; then 6039 haveit= 6040 for x in $rpathdirs; do 6041 if test "X$x" = "X$dir"; then 6042 haveit=yes 6043 break 6044 fi 6045 done 6046 if test -z "$haveit"; then 6047 rpathdirs="$rpathdirs $dir" 6048 fi 6049 haveit= 6050 for x in $ltrpathdirs; do 6051 if test "X$x" = "X$dir"; then 6052 haveit=yes 6053 break 6054 fi 6055 done 6056 if test -z "$haveit"; then 6057 ltrpathdirs="$ltrpathdirs $dir" 6058 fi 6059 fi 6060 ;; 6061 -l*) 6062 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6063 ;; 6064 *.la) 6065 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6066 ;; 6067 *) 6068 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 6069 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 6070 ;; 6071 esac 6072 done 6073 fi 6074 else 6075 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 6077 fi 6078 fi 6079 fi 6080 done 6081 done 6082 if test "X$rpathdirs" != "X"; then 6083 if test -n "$acl_hardcode_libdir_separator"; then 6084 alldirs= 6085 for found_dir in $rpathdirs; do 6086 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 6087 done 6088 acl_save_libdir="$libdir" 6089 libdir="$alldirs" 6090 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6091 libdir="$acl_save_libdir" 6092 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6093 else 6094 for found_dir in $rpathdirs; do 6095 acl_save_libdir="$libdir" 6096 libdir="$found_dir" 6097 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6098 libdir="$acl_save_libdir" 6099 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6100 done 6101 fi 6102 fi 6103 if test "X$ltrpathdirs" != "X"; then 6104 for found_dir in $ltrpathdirs; do 6105 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6106 done 6107 fi 6108 6109 6110 6111 6112 6113 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 6115$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6116if eval \${$gt_func_gnugettext_libintl+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118else 6119 gt_save_CPPFLAGS="$CPPFLAGS" 6120 CPPFLAGS="$CPPFLAGS $INCINTL" 6121 gt_save_LIBS="$LIBS" 6122 LIBS="$LIBS $LIBINTL" 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125#include <libintl.h> 6126$gt_revision_test_code 6127extern int _nl_msg_cat_cntr; 6128extern 6129#ifdef __cplusplus 6130"C" 6131#endif 6132const char *_nl_expand_alias (const char *); 6133int 6134main () 6135{ 6136bindtextdomain ("", ""); 6137return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 6138 ; 6139 return 0; 6140} 6141_ACEOF 6142if ac_fn_c_try_link "$LINENO"; then : 6143 eval "$gt_func_gnugettext_libintl=yes" 6144else 6145 eval "$gt_func_gnugettext_libintl=no" 6146fi 6147rm -f core conftest.err conftest.$ac_objext \ 6148 conftest$ac_exeext conftest.$ac_ext 6149 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 6150 LIBS="$LIBS $LIBICONV" 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153#include <libintl.h> 6154$gt_revision_test_code 6155extern int _nl_msg_cat_cntr; 6156extern 6157#ifdef __cplusplus 6158"C" 6159#endif 6160const char *_nl_expand_alias (const char *); 6161int 6162main () 6163{ 6164bindtextdomain ("", ""); 6165return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 6166 ; 6167 return 0; 6168} 6169_ACEOF 6170if ac_fn_c_try_link "$LINENO"; then : 6171 LIBINTL="$LIBINTL $LIBICONV" 6172 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6173 eval "$gt_func_gnugettext_libintl=yes" 6174 6175fi 6176rm -f core conftest.err conftest.$ac_objext \ 6177 conftest$ac_exeext conftest.$ac_ext 6178 fi 6179 CPPFLAGS="$gt_save_CPPFLAGS" 6180 LIBS="$gt_save_LIBS" 6181fi 6182eval ac_res=\$$gt_func_gnugettext_libintl 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6184$as_echo "$ac_res" >&6; } 6185 fi 6186 6187 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 6188 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 6189 && test "$PACKAGE" != gettext-runtime \ 6190 && test "$PACKAGE" != gettext-tools; }; then 6191 gt_use_preinstalled_gnugettext=yes 6192 else 6193 LIBINTL= 6194 LTLIBINTL= 6195 INCINTL= 6196 fi 6197 6198 6199 6200 if test -n "$INTL_MACOSX_LIBS"; then 6201 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6202 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6203 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 6204 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 6205 fi 6206 fi 6207 6208 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6209 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6210 6211$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6212 6213 else 6214 USE_NLS=no 6215 fi 6216 fi 6217 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 6219$as_echo_n "checking whether to use NLS... " >&6; } 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6221$as_echo "$USE_NLS" >&6; } 6222 if test "$USE_NLS" = "yes"; then 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 6224$as_echo_n "checking where the gettext function comes from... " >&6; } 6225 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6226 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 6227 gt_source="external libintl" 6228 else 6229 gt_source="libc" 6230 fi 6231 else 6232 gt_source="included intl directory" 6233 fi 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 6235$as_echo "$gt_source" >&6; } 6236 fi 6237 6238 if test "$USE_NLS" = "yes"; then 6239 6240 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6241 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 6243$as_echo_n "checking how to link with libintl... " >&6; } 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6245$as_echo "$LIBINTL" >&6; } 6246 6247 for element in $INCINTL; do 6248 haveit= 6249 for x in $CPPFLAGS; do 6250 6251 acl_save_prefix="$prefix" 6252 prefix="$acl_final_prefix" 6253 acl_save_exec_prefix="$exec_prefix" 6254 exec_prefix="$acl_final_exec_prefix" 6255 eval x=\"$x\" 6256 exec_prefix="$acl_save_exec_prefix" 6257 prefix="$acl_save_prefix" 6258 6259 if test "X$x" = "X$element"; then 6260 haveit=yes 6261 break 6262 fi 6263 done 6264 if test -z "$haveit"; then 6265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6266 fi 6267 done 6268 6269 fi 6270 6271 6272$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6273 6274 6275$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6276 6277 fi 6278 6279 POSUB=po 6280 fi 6281 6282 6283 6284 INTLLIBS="$LIBINTL" 6285 6286 6287 6288 6289 6290 6291 6292for ac_prog in 'bison -y' byacc 6293do 6294 # Extract the first word of "$ac_prog", so it can be a program name with args. 6295set dummy $ac_prog; ac_word=$2 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297$as_echo_n "checking for $ac_word... " >&6; } 6298if ${ac_cv_prog_YACC+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$YACC"; then 6302 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6303else 6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305for as_dir in $PATH 6306do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_prog_YACC="$ac_prog" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315done 6316 done 6317IFS=$as_save_IFS 6318 6319fi 6320fi 6321YACC=$ac_cv_prog_YACC 6322if test -n "$YACC"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6324$as_echo "$YACC" >&6; } 6325else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327$as_echo "no" >&6; } 6328fi 6329 6330 6331 test -n "$YACC" && break 6332done 6333test -n "$YACC" || YACC="yacc" 6334 6335for ac_prog in flex lex 6336do 6337 # Extract the first word of "$ac_prog", so it can be a program name with args. 6338set dummy $ac_prog; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_LEX+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$LEX"; then 6345 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_LEX="$ac_prog" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364LEX=$ac_cv_prog_LEX 6365if test -n "$LEX"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6367$as_echo "$LEX" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374 test -n "$LEX" && break 6375done 6376test -n "$LEX" || LEX=":" 6377 6378if test "x$LEX" != "x:"; then 6379 cat >conftest.l <<_ACEOF 6380%% 6381a { ECHO; } 6382b { REJECT; } 6383c { yymore (); } 6384d { yyless (1); } 6385e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6386 yyless ((input () != 0)); } 6387f { unput (yytext[0]); } 6388. { BEGIN INITIAL; } 6389%% 6390#ifdef YYTEXT_POINTER 6391extern char *yytext; 6392#endif 6393int 6394main (void) 6395{ 6396 return ! yylex () + ! yywrap (); 6397} 6398_ACEOF 6399{ { ac_try="$LEX conftest.l" 6400case "(($ac_try" in 6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6402 *) ac_try_echo=$ac_try;; 6403esac 6404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6405$as_echo "$ac_try_echo"; } >&5 6406 (eval "$LEX conftest.l") 2>&5 6407 ac_status=$? 6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6409 test $ac_status = 0; } 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6411$as_echo_n "checking lex output file root... " >&6; } 6412if ${ac_cv_prog_lex_root+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 6416if test -f lex.yy.c; then 6417 ac_cv_prog_lex_root=lex.yy 6418elif test -f lexyy.c; then 6419 ac_cv_prog_lex_root=lexyy 6420else 6421 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6422fi 6423fi 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6425$as_echo "$ac_cv_prog_lex_root" >&6; } 6426LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6427 6428if test -z "${LEXLIB+set}"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6430$as_echo_n "checking lex library... " >&6; } 6431if ${ac_cv_lib_lex+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 6435 ac_save_LIBS=$LIBS 6436 ac_cv_lib_lex='none needed' 6437 for ac_lib in '' -lfl -ll; do 6438 LIBS="$ac_lib $ac_save_LIBS" 6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441`cat $LEX_OUTPUT_ROOT.c` 6442_ACEOF 6443if ac_fn_c_try_link "$LINENO"; then : 6444 ac_cv_lib_lex=$ac_lib 6445fi 6446rm -f core conftest.err conftest.$ac_objext \ 6447 conftest$ac_exeext conftest.$ac_ext 6448 test "$ac_cv_lib_lex" != 'none needed' && break 6449 done 6450 LIBS=$ac_save_LIBS 6451 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6454$as_echo "$ac_cv_lib_lex" >&6; } 6455 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6456fi 6457 6458 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6460$as_echo_n "checking whether yytext is a pointer... " >&6; } 6461if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 # POSIX says lex can declare yytext either as a pointer or an array; the 6465# default is implementation-dependent. Figure out which it is, since 6466# not all implementations provide the %pointer and %array declarations. 6467ac_cv_prog_lex_yytext_pointer=no 6468ac_save_LIBS=$LIBS 6469LIBS="$LEXLIB $ac_save_LIBS" 6470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472 6473 #define YYTEXT_POINTER 1 6474`cat $LEX_OUTPUT_ROOT.c` 6475_ACEOF 6476if ac_fn_c_try_link "$LINENO"; then : 6477 ac_cv_prog_lex_yytext_pointer=yes 6478fi 6479rm -f core conftest.err conftest.$ac_objext \ 6480 conftest$ac_exeext conftest.$ac_ext 6481LIBS=$ac_save_LIBS 6482 6483fi 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6485$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6486if test $ac_cv_prog_lex_yytext_pointer = yes; then 6487 6488$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6489 6490fi 6491rm -f conftest.l $LEX_OUTPUT_ROOT.c 6492 6493fi 6494if test "$LEX" = :; then 6495 LEX=${am_missing_run}flex 6496fi 6497ac_ext=c 6498ac_cpp='$CPP $CPPFLAGS' 6499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6501ac_compiler_gnu=$ac_cv_c_compiler_gnu 6502if test -n "$ac_tool_prefix"; then 6503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6504set dummy ${ac_tool_prefix}gcc; ac_word=$2 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6506$as_echo_n "checking for $ac_word... " >&6; } 6507if ${ac_cv_prog_CC+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509else 6510 if test -n "$CC"; then 6511 ac_cv_prog_CC="$CC" # Let the user override the test. 6512else 6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6514for as_dir in $PATH 6515do 6516 IFS=$as_save_IFS 6517 test -z "$as_dir" && as_dir=. 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524done 6525 done 6526IFS=$as_save_IFS 6527 6528fi 6529fi 6530CC=$ac_cv_prog_CC 6531if test -n "$CC"; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6533$as_echo "$CC" >&6; } 6534else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536$as_echo "no" >&6; } 6537fi 6538 6539 6540fi 6541if test -z "$ac_cv_prog_CC"; then 6542 ac_ct_CC=$CC 6543 # Extract the first word of "gcc", so it can be a program name with args. 6544set dummy gcc; ac_word=$2 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546$as_echo_n "checking for $ac_word... " >&6; } 6547if ${ac_cv_prog_ac_ct_CC+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 if test -n "$ac_ct_CC"; then 6551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6552else 6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554for as_dir in $PATH 6555do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_ac_ct_CC="gcc" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570ac_ct_CC=$ac_cv_prog_ac_ct_CC 6571if test -n "$ac_ct_CC"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6573$as_echo "$ac_ct_CC" >&6; } 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576$as_echo "no" >&6; } 6577fi 6578 6579 if test "x$ac_ct_CC" = x; then 6580 CC="" 6581 else 6582 case $cross_compiling:$ac_tool_warned in 6583yes:) 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6586ac_tool_warned=yes ;; 6587esac 6588 CC=$ac_ct_CC 6589 fi 6590else 6591 CC="$ac_cv_prog_CC" 6592fi 6593 6594if test -z "$CC"; then 6595 if test -n "$ac_tool_prefix"; then 6596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6597set dummy ${ac_tool_prefix}cc; ac_word=$2 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6599$as_echo_n "checking for $ac_word... " >&6; } 6600if ${ac_cv_prog_CC+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 if test -n "$CC"; then 6604 ac_cv_prog_CC="$CC" # Let the user override the test. 6605else 6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607for as_dir in $PATH 6608do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6613 ac_cv_prog_CC="${ac_tool_prefix}cc" 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617done 6618 done 6619IFS=$as_save_IFS 6620 6621fi 6622fi 6623CC=$ac_cv_prog_CC 6624if test -n "$CC"; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6626$as_echo "$CC" >&6; } 6627else 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6629$as_echo "no" >&6; } 6630fi 6631 6632 6633 fi 6634fi 6635if test -z "$CC"; then 6636 # Extract the first word of "cc", so it can be a program name with args. 6637set dummy cc; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_CC+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$CC"; then 6644 ac_cv_prog_CC="$CC" # Let the user override the test. 6645else 6646 ac_prog_rejected=no 6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6655 ac_prog_rejected=yes 6656 continue 6657 fi 6658 ac_cv_prog_CC="cc" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666if test $ac_prog_rejected = yes; then 6667 # We found a bogon in the path, so make sure we never use it. 6668 set dummy $ac_cv_prog_CC 6669 shift 6670 if test $# != 0; then 6671 # We chose a different compiler from the bogus one. 6672 # However, it has the same basename, so the bogon will be chosen 6673 # first if we set CC to just the basename; use the full file name. 6674 shift 6675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6676 fi 6677fi 6678fi 6679fi 6680CC=$ac_cv_prog_CC 6681if test -n "$CC"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6683$as_echo "$CC" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$CC"; then 6692 if test -n "$ac_tool_prefix"; then 6693 for ac_prog in cl.exe 6694 do 6695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6696set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698$as_echo_n "checking for $ac_word... " >&6; } 6699if ${ac_cv_prog_CC+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$CC"; then 6703 ac_cv_prog_CC="$CC" # Let the user override the test. 6704else 6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6706for as_dir in $PATH 6707do 6708 IFS=$as_save_IFS 6709 test -z "$as_dir" && as_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6714 break 2 6715 fi 6716done 6717 done 6718IFS=$as_save_IFS 6719 6720fi 6721fi 6722CC=$ac_cv_prog_CC 6723if test -n "$CC"; then 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6725$as_echo "$CC" >&6; } 6726else 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 6732 test -n "$CC" && break 6733 done 6734fi 6735if test -z "$CC"; then 6736 ac_ct_CC=$CC 6737 for ac_prog in cl.exe 6738do 6739 # Extract the first word of "$ac_prog", so it can be a program name with args. 6740set dummy $ac_prog; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if ${ac_cv_prog_ac_ct_CC+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$ac_ct_CC"; then 6747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6756 ac_cv_prog_ac_ct_CC="$ac_prog" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766ac_ct_CC=$ac_cv_prog_ac_ct_CC 6767if test -n "$ac_ct_CC"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6769$as_echo "$ac_ct_CC" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 6776 test -n "$ac_ct_CC" && break 6777done 6778 6779 if test "x$ac_ct_CC" = x; then 6780 CC="" 6781 else 6782 case $cross_compiling:$ac_tool_warned in 6783yes:) 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6786ac_tool_warned=yes ;; 6787esac 6788 CC=$ac_ct_CC 6789 fi 6790fi 6791 6792fi 6793 6794 6795test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6797as_fn_error $? "no acceptable C compiler found in \$PATH 6798See \`config.log' for more details" "$LINENO" 5; } 6799 6800# Provide some information about the compiler. 6801$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6802set X $ac_compile 6803ac_compiler=$2 6804for ac_option in --version -v -V -qversion; do 6805 { { ac_try="$ac_compiler $ac_option >&5" 6806case "(($ac_try" in 6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6808 *) ac_try_echo=$ac_try;; 6809esac 6810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6811$as_echo "$ac_try_echo"; } >&5 6812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6813 ac_status=$? 6814 if test -s conftest.err; then 6815 sed '10a\ 6816... rest of stderr output deleted ... 6817 10q' conftest.err >conftest.er1 6818 cat conftest.er1 >&5 6819 fi 6820 rm -f conftest.er1 conftest.err 6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6822 test $ac_status = 0; } 6823done 6824 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6826$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6827if ${ac_cv_c_compiler_gnu+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832 6833int 6834main () 6835{ 6836#ifndef __GNUC__ 6837 choke me 6838#endif 6839 6840 ; 6841 return 0; 6842} 6843_ACEOF 6844if ac_fn_c_try_compile "$LINENO"; then : 6845 ac_compiler_gnu=yes 6846else 6847 ac_compiler_gnu=no 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850ac_cv_c_compiler_gnu=$ac_compiler_gnu 6851 6852fi 6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6854$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6855if test $ac_compiler_gnu = yes; then 6856 GCC=yes 6857else 6858 GCC= 6859fi 6860ac_test_CFLAGS=${CFLAGS+set} 6861ac_save_CFLAGS=$CFLAGS 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6863$as_echo_n "checking whether $CC accepts -g... " >&6; } 6864if ${ac_cv_prog_cc_g+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 ac_save_c_werror_flag=$ac_c_werror_flag 6868 ac_c_werror_flag=yes 6869 ac_cv_prog_cc_g=no 6870 CFLAGS="-g" 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873 6874int 6875main () 6876{ 6877 6878 ; 6879 return 0; 6880} 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 ac_cv_prog_cc_g=yes 6884else 6885 CFLAGS="" 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888 6889int 6890main () 6891{ 6892 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO"; then : 6898 6899else 6900 ac_c_werror_flag=$ac_save_c_werror_flag 6901 CFLAGS="-g" 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904 6905int 6906main () 6907{ 6908 6909 ; 6910 return 0; 6911} 6912_ACEOF 6913if ac_fn_c_try_compile "$LINENO"; then : 6914 ac_cv_prog_cc_g=yes 6915fi 6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6917fi 6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6919fi 6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6921 ac_c_werror_flag=$ac_save_c_werror_flag 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6924$as_echo "$ac_cv_prog_cc_g" >&6; } 6925if test "$ac_test_CFLAGS" = set; then 6926 CFLAGS=$ac_save_CFLAGS 6927elif test $ac_cv_prog_cc_g = yes; then 6928 if test "$GCC" = yes; then 6929 CFLAGS="-g -O2" 6930 else 6931 CFLAGS="-g" 6932 fi 6933else 6934 if test "$GCC" = yes; then 6935 CFLAGS="-O2" 6936 else 6937 CFLAGS= 6938 fi 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6941$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6942if ${ac_cv_prog_cc_c89+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 ac_cv_prog_cc_c89=no 6946ac_save_CC=$CC 6947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949#include <stdarg.h> 6950#include <stdio.h> 6951struct stat; 6952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6953struct buf { int x; }; 6954FILE * (*rcsopen) (struct buf *, struct stat *, int); 6955static char *e (p, i) 6956 char **p; 6957 int i; 6958{ 6959 return p[i]; 6960} 6961static char *f (char * (*g) (char **, int), char **p, ...) 6962{ 6963 char *s; 6964 va_list v; 6965 va_start (v,p); 6966 s = g (p, va_arg (v,int)); 6967 va_end (v); 6968 return s; 6969} 6970 6971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6972 function prototypes and stuff, but not '\xHH' hex character constants. 6973 These don't provoke an error unfortunately, instead are silently treated 6974 as 'x'. The following induces an error, until -std is added to get 6975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6976 array size at least. It's necessary to write '\x00'==0 to get something 6977 that's true only with -std. */ 6978int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6979 6980/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6981 inside strings and character constants. */ 6982#define FOO(x) 'x' 6983int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6984 6985int test (int i, double x); 6986struct s1 {int (*f) (int a);}; 6987struct s2 {int (*f) (double a);}; 6988int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6989int argc; 6990char **argv; 6991int 6992main () 6993{ 6994return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6995 ; 6996 return 0; 6997} 6998_ACEOF 6999for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7001do 7002 CC="$ac_save_CC $ac_arg" 7003 if ac_fn_c_try_compile "$LINENO"; then : 7004 ac_cv_prog_cc_c89=$ac_arg 7005fi 7006rm -f core conftest.err conftest.$ac_objext 7007 test "x$ac_cv_prog_cc_c89" != "xno" && break 7008done 7009rm -f conftest.$ac_ext 7010CC=$ac_save_CC 7011 7012fi 7013# AC_CACHE_VAL 7014case "x$ac_cv_prog_cc_c89" in 7015 x) 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7017$as_echo "none needed" >&6; } ;; 7018 xno) 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7020$as_echo "unsupported" >&6; } ;; 7021 *) 7022 CC="$CC $ac_cv_prog_cc_c89" 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7024$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7025esac 7026if test "x$ac_cv_prog_cc_c89" != xno; then : 7027 7028fi 7029 7030ac_ext=c 7031ac_cpp='$CPP $CPPFLAGS' 7032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7034ac_compiler_gnu=$ac_cv_c_compiler_gnu 7035 7036depcc="$CC" am_compiler_list= 7037 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7039$as_echo_n "checking dependency style of $depcc... " >&6; } 7040if ${am_cv_CC_dependencies_compiler_type+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7044 # We make a subdir and do the tests there. Otherwise we can end up 7045 # making bogus files that we don't know about and never remove. For 7046 # instance it was reported that on HP-UX the gcc test will end up 7047 # making a dummy file named `D' -- because `-MD' means `put the output 7048 # in D'. 7049 rm -rf conftest.dir 7050 mkdir conftest.dir 7051 # Copy depcomp to subdir because otherwise we won't find it if we're 7052 # using a relative directory. 7053 cp "$am_depcomp" conftest.dir 7054 cd conftest.dir 7055 # We will build objects and dependencies in a subdirectory because 7056 # it helps to detect inapplicable dependency modes. For instance 7057 # both Tru64's cc and ICC support -MD to output dependencies as a 7058 # side effect of compilation, but ICC will put the dependencies in 7059 # the current directory while Tru64 will put them in the object 7060 # directory. 7061 mkdir sub 7062 7063 am_cv_CC_dependencies_compiler_type=none 7064 if test "$am_compiler_list" = ""; then 7065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7066 fi 7067 am__universal=false 7068 case " $depcc " in #( 7069 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7070 esac 7071 7072 for depmode in $am_compiler_list; do 7073 # Setup a source with many dependencies, because some compilers 7074 # like to wrap large dependency lists on column 80 (with \), and 7075 # we should not choose a depcomp mode which is confused by this. 7076 # 7077 # We need to recreate these files for each test, as the compiler may 7078 # overwrite some of them when testing with obscure command lines. 7079 # This happens at least with the AIX C compiler. 7080 : > sub/conftest.c 7081 for i in 1 2 3 4 5 6; do 7082 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7083 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7084 # Solaris 8's {/usr,}/bin/sh. 7085 touch sub/conftst$i.h 7086 done 7087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7088 7089 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7090 # mode. It turns out that the SunPro C++ compiler does not properly 7091 # handle `-M -o', and we need to detect this. Also, some Intel 7092 # versions had trouble with output in subdirs 7093 am__obj=sub/conftest.${OBJEXT-o} 7094 am__minus_obj="-o $am__obj" 7095 case $depmode in 7096 gcc) 7097 # This depmode causes a compiler race in universal mode. 7098 test "$am__universal" = false || continue 7099 ;; 7100 nosideeffect) 7101 # after this tag, mechanisms are not by side-effect, so they'll 7102 # only be used when explicitly requested 7103 if test "x$enable_dependency_tracking" = xyes; then 7104 continue 7105 else 7106 break 7107 fi 7108 ;; 7109 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7110 # This compiler won't grok `-c -o', but also, the minuso test has 7111 # not run yet. These depmodes are late enough in the game, and 7112 # so weak that their functioning should not be impacted. 7113 am__obj=conftest.${OBJEXT-o} 7114 am__minus_obj= 7115 ;; 7116 none) break ;; 7117 esac 7118 if depmode=$depmode \ 7119 source=sub/conftest.c object=$am__obj \ 7120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7122 >/dev/null 2>conftest.err && 7123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7127 # icc doesn't choke on unknown options, it will just issue warnings 7128 # or remarks (even with -Werror). So we grep stderr for any message 7129 # that says an option was ignored or not supported. 7130 # When given -MP, icc 7.0 and 7.1 complain thusly: 7131 # icc: Command line warning: ignoring option '-M'; no argument required 7132 # The diagnosis changed in icc 8.0: 7133 # icc: Command line remark: option '-MP' not supported 7134 if (grep 'ignoring option' conftest.err || 7135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7136 am_cv_CC_dependencies_compiler_type=$depmode 7137 break 7138 fi 7139 fi 7140 done 7141 7142 cd .. 7143 rm -rf conftest.dir 7144else 7145 am_cv_CC_dependencies_compiler_type=none 7146fi 7147 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7150$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 7151CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7152 7153 if 7154 test "x$enable_dependency_tracking" != xno \ 7155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7156 am__fastdepCC_TRUE= 7157 am__fastdepCC_FALSE='#' 7158else 7159 am__fastdepCC_TRUE='#' 7160 am__fastdepCC_FALSE= 7161fi 7162 7163 7164ac_ext=cpp 7165ac_cpp='$CXXCPP $CPPFLAGS' 7166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7169if test -z "$CXX"; then 7170 if test -n "$CCC"; then 7171 CXX=$CCC 7172 else 7173 if test -n "$ac_tool_prefix"; then 7174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7175 do 7176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7177set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179$as_echo_n "checking for $ac_word... " >&6; } 7180if ${ac_cv_prog_CXX+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 if test -n "$CXX"; then 7184 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7185else 7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7187for as_dir in $PATH 7188do 7189 IFS=$as_save_IFS 7190 test -z "$as_dir" && as_dir=. 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197done 7198 done 7199IFS=$as_save_IFS 7200 7201fi 7202fi 7203CXX=$ac_cv_prog_CXX 7204if test -n "$CXX"; then 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7206$as_echo "$CXX" >&6; } 7207else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209$as_echo "no" >&6; } 7210fi 7211 7212 7213 test -n "$CXX" && break 7214 done 7215fi 7216if test -z "$CXX"; then 7217 ac_ct_CXX=$CXX 7218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7219do 7220 # Extract the first word of "$ac_prog", so it can be a program name with args. 7221set dummy $ac_prog; ac_word=$2 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7223$as_echo_n "checking for $ac_word... " >&6; } 7224if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 if test -n "$ac_ct_CXX"; then 7228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7229else 7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7231for as_dir in $PATH 7232do 7233 IFS=$as_save_IFS 7234 test -z "$as_dir" && as_dir=. 7235 for ac_exec_ext in '' $ac_executable_extensions; do 7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7237 ac_cv_prog_ac_ct_CXX="$ac_prog" 7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7239 break 2 7240 fi 7241done 7242 done 7243IFS=$as_save_IFS 7244 7245fi 7246fi 7247ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7248if test -n "$ac_ct_CXX"; then 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7250$as_echo "$ac_ct_CXX" >&6; } 7251else 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7253$as_echo "no" >&6; } 7254fi 7255 7256 7257 test -n "$ac_ct_CXX" && break 7258done 7259 7260 if test "x$ac_ct_CXX" = x; then 7261 CXX="g++" 7262 else 7263 case $cross_compiling:$ac_tool_warned in 7264yes:) 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7267ac_tool_warned=yes ;; 7268esac 7269 CXX=$ac_ct_CXX 7270 fi 7271fi 7272 7273 fi 7274fi 7275# Provide some information about the compiler. 7276$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7277set X $ac_compile 7278ac_compiler=$2 7279for ac_option in --version -v -V -qversion; do 7280 { { ac_try="$ac_compiler $ac_option >&5" 7281case "(($ac_try" in 7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7283 *) ac_try_echo=$ac_try;; 7284esac 7285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7286$as_echo "$ac_try_echo"; } >&5 7287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7288 ac_status=$? 7289 if test -s conftest.err; then 7290 sed '10a\ 7291... rest of stderr output deleted ... 7292 10q' conftest.err >conftest.er1 7293 cat conftest.er1 >&5 7294 fi 7295 rm -f conftest.er1 conftest.err 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; } 7298done 7299 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7301$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7302if ${ac_cv_cxx_compiler_gnu+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307 7308int 7309main () 7310{ 7311#ifndef __GNUC__ 7312 choke me 7313#endif 7314 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319if ac_fn_cxx_try_compile "$LINENO"; then : 7320 ac_compiler_gnu=yes 7321else 7322 ac_compiler_gnu=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7326 7327fi 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7329$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7330if test $ac_compiler_gnu = yes; then 7331 GXX=yes 7332else 7333 GXX= 7334fi 7335ac_test_CXXFLAGS=${CXXFLAGS+set} 7336ac_save_CXXFLAGS=$CXXFLAGS 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7338$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7339if ${ac_cv_prog_cxx_g+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7343 ac_cxx_werror_flag=yes 7344 ac_cv_prog_cxx_g=no 7345 CXXFLAGS="-g" 7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348 7349int 7350main () 7351{ 7352 7353 ; 7354 return 0; 7355} 7356_ACEOF 7357if ac_fn_cxx_try_compile "$LINENO"; then : 7358 ac_cv_prog_cxx_g=yes 7359else 7360 CXXFLAGS="" 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363 7364int 7365main () 7366{ 7367 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_cxx_try_compile "$LINENO"; then : 7373 7374else 7375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7376 CXXFLAGS="-g" 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_cxx_try_compile "$LINENO"; then : 7389 ac_cv_prog_cxx_g=yes 7390fi 7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7394fi 7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7399$as_echo "$ac_cv_prog_cxx_g" >&6; } 7400if test "$ac_test_CXXFLAGS" = set; then 7401 CXXFLAGS=$ac_save_CXXFLAGS 7402elif test $ac_cv_prog_cxx_g = yes; then 7403 if test "$GXX" = yes; then 7404 CXXFLAGS="-g -O2" 7405 else 7406 CXXFLAGS="-g" 7407 fi 7408else 7409 if test "$GXX" = yes; then 7410 CXXFLAGS="-O2" 7411 else 7412 CXXFLAGS= 7413 fi 7414fi 7415ac_ext=c 7416ac_cpp='$CPP $CPPFLAGS' 7417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7419ac_compiler_gnu=$ac_cv_c_compiler_gnu 7420 7421depcc="$CXX" am_compiler_list= 7422 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7424$as_echo_n "checking dependency style of $depcc... " >&6; } 7425if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427else 7428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7429 # We make a subdir and do the tests there. Otherwise we can end up 7430 # making bogus files that we don't know about and never remove. For 7431 # instance it was reported that on HP-UX the gcc test will end up 7432 # making a dummy file named `D' -- because `-MD' means `put the output 7433 # in D'. 7434 rm -rf conftest.dir 7435 mkdir conftest.dir 7436 # Copy depcomp to subdir because otherwise we won't find it if we're 7437 # using a relative directory. 7438 cp "$am_depcomp" conftest.dir 7439 cd conftest.dir 7440 # We will build objects and dependencies in a subdirectory because 7441 # it helps to detect inapplicable dependency modes. For instance 7442 # both Tru64's cc and ICC support -MD to output dependencies as a 7443 # side effect of compilation, but ICC will put the dependencies in 7444 # the current directory while Tru64 will put them in the object 7445 # directory. 7446 mkdir sub 7447 7448 am_cv_CXX_dependencies_compiler_type=none 7449 if test "$am_compiler_list" = ""; then 7450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7451 fi 7452 am__universal=false 7453 case " $depcc " in #( 7454 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7455 esac 7456 7457 for depmode in $am_compiler_list; do 7458 # Setup a source with many dependencies, because some compilers 7459 # like to wrap large dependency lists on column 80 (with \), and 7460 # we should not choose a depcomp mode which is confused by this. 7461 # 7462 # We need to recreate these files for each test, as the compiler may 7463 # overwrite some of them when testing with obscure command lines. 7464 # This happens at least with the AIX C compiler. 7465 : > sub/conftest.c 7466 for i in 1 2 3 4 5 6; do 7467 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7469 # Solaris 8's {/usr,}/bin/sh. 7470 touch sub/conftst$i.h 7471 done 7472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7473 7474 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7475 # mode. It turns out that the SunPro C++ compiler does not properly 7476 # handle `-M -o', and we need to detect this. Also, some Intel 7477 # versions had trouble with output in subdirs 7478 am__obj=sub/conftest.${OBJEXT-o} 7479 am__minus_obj="-o $am__obj" 7480 case $depmode in 7481 gcc) 7482 # This depmode causes a compiler race in universal mode. 7483 test "$am__universal" = false || continue 7484 ;; 7485 nosideeffect) 7486 # after this tag, mechanisms are not by side-effect, so they'll 7487 # only be used when explicitly requested 7488 if test "x$enable_dependency_tracking" = xyes; then 7489 continue 7490 else 7491 break 7492 fi 7493 ;; 7494 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7495 # This compiler won't grok `-c -o', but also, the minuso test has 7496 # not run yet. These depmodes are late enough in the game, and 7497 # so weak that their functioning should not be impacted. 7498 am__obj=conftest.${OBJEXT-o} 7499 am__minus_obj= 7500 ;; 7501 none) break ;; 7502 esac 7503 if depmode=$depmode \ 7504 source=sub/conftest.c object=$am__obj \ 7505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7507 >/dev/null 2>conftest.err && 7508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7512 # icc doesn't choke on unknown options, it will just issue warnings 7513 # or remarks (even with -Werror). So we grep stderr for any message 7514 # that says an option was ignored or not supported. 7515 # When given -MP, icc 7.0 and 7.1 complain thusly: 7516 # icc: Command line warning: ignoring option '-M'; no argument required 7517 # The diagnosis changed in icc 8.0: 7518 # icc: Command line remark: option '-MP' not supported 7519 if (grep 'ignoring option' conftest.err || 7520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7521 am_cv_CXX_dependencies_compiler_type=$depmode 7522 break 7523 fi 7524 fi 7525 done 7526 7527 cd .. 7528 rm -rf conftest.dir 7529else 7530 am_cv_CXX_dependencies_compiler_type=none 7531fi 7532 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7535$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7536CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7537 7538 if 7539 test "x$enable_dependency_tracking" != xno \ 7540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7541 am__fastdepCXX_TRUE= 7542 am__fastdepCXX_FALSE='#' 7543else 7544 am__fastdepCXX_TRUE='#' 7545 am__fastdepCXX_FALSE= 7546fi 7547 7548 7549if test "x$CC" != xcc; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7551$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7554$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7555fi 7556set dummy $CC; ac_cc=`$as_echo "$2" | 7557 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7558if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563 7564int 7565main () 7566{ 7567 7568 ; 7569 return 0; 7570} 7571_ACEOF 7572# Make sure it works both with $CC and with simple cc. 7573# We do the test twice because some compilers refuse to overwrite an 7574# existing .o file with -o, though they will create one. 7575ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7576rm -f conftest2.* 7577if { { case "(($ac_try" in 7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7579 *) ac_try_echo=$ac_try;; 7580esac 7581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7582$as_echo "$ac_try_echo"; } >&5 7583 (eval "$ac_try") 2>&5 7584 ac_status=$? 7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7586 test $ac_status = 0; } && 7587 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7589 *) ac_try_echo=$ac_try;; 7590esac 7591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7592$as_echo "$ac_try_echo"; } >&5 7593 (eval "$ac_try") 2>&5 7594 ac_status=$? 7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7596 test $ac_status = 0; }; 7597then 7598 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7599 if test "x$CC" != xcc; then 7600 # Test first that cc exists at all. 7601 if { ac_try='cc -c conftest.$ac_ext >&5' 7602 { { case "(($ac_try" in 7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7604 *) ac_try_echo=$ac_try;; 7605esac 7606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7607$as_echo "$ac_try_echo"; } >&5 7608 (eval "$ac_try") 2>&5 7609 ac_status=$? 7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7611 test $ac_status = 0; }; }; then 7612 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7613 rm -f conftest2.* 7614 if { { case "(($ac_try" in 7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7616 *) ac_try_echo=$ac_try;; 7617esac 7618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7619$as_echo "$ac_try_echo"; } >&5 7620 (eval "$ac_try") 2>&5 7621 ac_status=$? 7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7623 test $ac_status = 0; } && 7624 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7626 *) ac_try_echo=$ac_try;; 7627esac 7628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7629$as_echo "$ac_try_echo"; } >&5 7630 (eval "$ac_try") 2>&5 7631 ac_status=$? 7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7633 test $ac_status = 0; }; 7634 then 7635 # cc works too. 7636 : 7637 else 7638 # cc exists but doesn't like -o. 7639 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7640 fi 7641 fi 7642 fi 7643else 7644 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7645fi 7646rm -f core conftest* 7647 7648fi 7649if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7651$as_echo "yes" >&6; } 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655 7656$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7657 7658fi 7659 7660# FIXME: we rely on the cache variable name because 7661# there is no other way. 7662set dummy $CC 7663am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7664eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 7665if test "$am_t" != yes; then 7666 # Losing compiler, so override with the script. 7667 # FIXME: It is wrong to rewrite CC. 7668 # But if we don't then we get into trouble of one sort or another. 7669 # A longer-term fix would be to have automake use am__CC in this case, 7670 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7671 CC="$am_aux_dir/compile $CC" 7672fi 7673 7674 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7676$as_echo_n "checking whether ln -s works... " >&6; } 7677LN_S=$as_ln_s 7678if test "$LN_S" = "ln -s"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7680$as_echo "yes" >&6; } 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7683$as_echo "no, using $LN_S" >&6; } 7684fi 7685 7686case `pwd` in 7687 *\ * | *\ *) 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7689$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7690esac 7691 7692 7693 7694macro_version='2.4.2' 7695macro_revision='1.3337' 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709ltmain="$ac_aux_dir/ltmain.sh" 7710 7711# Backslashify metacharacters that are still active within 7712# double-quoted strings. 7713sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7714 7715# Same as above, but do not quote variable references. 7716double_quote_subst='s/\(["`\\]\)/\\\1/g' 7717 7718# Sed substitution to delay expansion of an escaped shell variable in a 7719# double_quote_subst'ed string. 7720delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7721 7722# Sed substitution to delay expansion of an escaped single quote. 7723delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7724 7725# Sed substitution to avoid accidental globbing in evaled expressions 7726no_glob_subst='s/\*/\\\*/g' 7727 7728ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7729ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7730ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7731 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7733$as_echo_n "checking how to print strings... " >&6; } 7734# Test print first, because it will be a builtin if present. 7735if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7736 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7737 ECHO='print -r --' 7738elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7739 ECHO='printf %s\n' 7740else 7741 # Use this function as a fallback that always works. 7742 func_fallback_echo () 7743 { 7744 eval 'cat <<_LTECHO_EOF 7745$1 7746_LTECHO_EOF' 7747 } 7748 ECHO='func_fallback_echo' 7749fi 7750 7751# func_echo_all arg... 7752# Invoke $ECHO with all args, space-separated. 7753func_echo_all () 7754{ 7755 $ECHO "" 7756} 7757 7758case "$ECHO" in 7759 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7760$as_echo "printf" >&6; } ;; 7761 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7762$as_echo "print -r" >&6; } ;; 7763 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7764$as_echo "cat" >&6; } ;; 7765esac 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7781$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7782if ${ac_cv_path_SED+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7786 for ac_i in 1 2 3 4 5 6 7; do 7787 ac_script="$ac_script$as_nl$ac_script" 7788 done 7789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7790 { ac_script=; unset ac_script;} 7791 if test -z "$SED"; then 7792 ac_path_SED_found=false 7793 # Loop through the user's path and test for each of PROGNAME-LIST 7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795for as_dir in $PATH 7796do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_prog in sed gsed; do 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7802 as_fn_executable_p "$ac_path_SED" || continue 7803# Check for GNU ac_path_SED and select it if it is found. 7804 # Check for GNU $ac_path_SED 7805case `"$ac_path_SED" --version 2>&1` in 7806*GNU*) 7807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7808*) 7809 ac_count=0 7810 $as_echo_n 0123456789 >"conftest.in" 7811 while : 7812 do 7813 cat "conftest.in" "conftest.in" >"conftest.tmp" 7814 mv "conftest.tmp" "conftest.in" 7815 cp "conftest.in" "conftest.nl" 7816 $as_echo '' >> "conftest.nl" 7817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7819 as_fn_arith $ac_count + 1 && ac_count=$as_val 7820 if test $ac_count -gt ${ac_path_SED_max-0}; then 7821 # Best one so far, save it but keep looking for a better one 7822 ac_cv_path_SED="$ac_path_SED" 7823 ac_path_SED_max=$ac_count 7824 fi 7825 # 10*(2^10) chars as input seems more than enough 7826 test $ac_count -gt 10 && break 7827 done 7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7829esac 7830 7831 $ac_path_SED_found && break 3 7832 done 7833 done 7834 done 7835IFS=$as_save_IFS 7836 if test -z "$ac_cv_path_SED"; then 7837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7838 fi 7839else 7840 ac_cv_path_SED=$SED 7841fi 7842 7843fi 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7845$as_echo "$ac_cv_path_SED" >&6; } 7846 SED="$ac_cv_path_SED" 7847 rm -f conftest.sed 7848 7849test -z "$SED" && SED=sed 7850Xsed="$SED -e 1s/^X//" 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7863$as_echo_n "checking for fgrep... " >&6; } 7864if ${ac_cv_path_FGREP+:} false; then : 7865 $as_echo_n "(cached) " >&6 7866else 7867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7868 then ac_cv_path_FGREP="$GREP -F" 7869 else 7870 if test -z "$FGREP"; then 7871 ac_path_FGREP_found=false 7872 # Loop through the user's path and test for each of PROGNAME-LIST 7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_prog in fgrep; do 7879 for ac_exec_ext in '' $ac_executable_extensions; do 7880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7881 as_fn_executable_p "$ac_path_FGREP" || continue 7882# Check for GNU ac_path_FGREP and select it if it is found. 7883 # Check for GNU $ac_path_FGREP 7884case `"$ac_path_FGREP" --version 2>&1` in 7885*GNU*) 7886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7887*) 7888 ac_count=0 7889 $as_echo_n 0123456789 >"conftest.in" 7890 while : 7891 do 7892 cat "conftest.in" "conftest.in" >"conftest.tmp" 7893 mv "conftest.tmp" "conftest.in" 7894 cp "conftest.in" "conftest.nl" 7895 $as_echo 'FGREP' >> "conftest.nl" 7896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7898 as_fn_arith $ac_count + 1 && ac_count=$as_val 7899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7900 # Best one so far, save it but keep looking for a better one 7901 ac_cv_path_FGREP="$ac_path_FGREP" 7902 ac_path_FGREP_max=$ac_count 7903 fi 7904 # 10*(2^10) chars as input seems more than enough 7905 test $ac_count -gt 10 && break 7906 done 7907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7908esac 7909 7910 $ac_path_FGREP_found && break 3 7911 done 7912 done 7913 done 7914IFS=$as_save_IFS 7915 if test -z "$ac_cv_path_FGREP"; then 7916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7917 fi 7918else 7919 ac_cv_path_FGREP=$FGREP 7920fi 7921 7922 fi 7923fi 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7925$as_echo "$ac_cv_path_FGREP" >&6; } 7926 FGREP="$ac_cv_path_FGREP" 7927 7928 7929test -z "$GREP" && GREP=grep 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949# Check whether --with-gnu-ld was given. 7950if test "${with_gnu_ld+set}" = set; then : 7951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7952else 7953 with_gnu_ld=no 7954fi 7955 7956ac_prog=ld 7957if test "$GCC" = yes; then 7958 # Check if gcc -print-prog-name=ld gives a path. 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7960$as_echo_n "checking for ld used by $CC... " >&6; } 7961 case $host in 7962 *-*-mingw*) 7963 # gcc leaves a trailing carriage return which upsets mingw 7964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7965 *) 7966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7967 esac 7968 case $ac_prog in 7969 # Accept absolute paths. 7970 [\\/]* | ?:[\\/]*) 7971 re_direlt='/[^/][^/]*/\.\./' 7972 # Canonicalize the pathname of ld 7973 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7974 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7975 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7976 done 7977 test -z "$LD" && LD="$ac_prog" 7978 ;; 7979 "") 7980 # If it fails, then pretend we aren't using GCC. 7981 ac_prog=ld 7982 ;; 7983 *) 7984 # If it is relative, then search for the first ld in PATH. 7985 with_gnu_ld=unknown 7986 ;; 7987 esac 7988elif test "$with_gnu_ld" = yes; then 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7990$as_echo_n "checking for GNU ld... " >&6; } 7991else 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7993$as_echo_n "checking for non-GNU ld... " >&6; } 7994fi 7995if ${lt_cv_path_LD+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 if test -z "$LD"; then 7999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8000 for ac_dir in $PATH; do 8001 IFS="$lt_save_ifs" 8002 test -z "$ac_dir" && ac_dir=. 8003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8004 lt_cv_path_LD="$ac_dir/$ac_prog" 8005 # Check to see if the program is GNU ld. I'd rather use --version, 8006 # but apparently some variants of GNU ld only accept -v. 8007 # Break only if it was the GNU/non-GNU ld that we prefer. 8008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8009 *GNU* | *'with BFD'*) 8010 test "$with_gnu_ld" != no && break 8011 ;; 8012 *) 8013 test "$with_gnu_ld" != yes && break 8014 ;; 8015 esac 8016 fi 8017 done 8018 IFS="$lt_save_ifs" 8019else 8020 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8021fi 8022fi 8023 8024LD="$lt_cv_path_LD" 8025if test -n "$LD"; then 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8027$as_echo "$LD" >&6; } 8028else 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8030$as_echo "no" >&6; } 8031fi 8032test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8034$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8035if ${lt_cv_prog_gnu_ld+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8039case `$LD -v 2>&1 </dev/null` in 8040*GNU* | *'with BFD'*) 8041 lt_cv_prog_gnu_ld=yes 8042 ;; 8043*) 8044 lt_cv_prog_gnu_ld=no 8045 ;; 8046esac 8047fi 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8049$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8050with_gnu_ld=$lt_cv_prog_gnu_ld 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8061$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8062if ${lt_cv_path_NM+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 if test -n "$NM"; then 8066 # Let the user override the test. 8067 lt_cv_path_NM="$NM" 8068else 8069 lt_nm_to_check="${ac_tool_prefix}nm" 8070 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8071 lt_nm_to_check="$lt_nm_to_check nm" 8072 fi 8073 for lt_tmp_nm in $lt_nm_to_check; do 8074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8076 IFS="$lt_save_ifs" 8077 test -z "$ac_dir" && ac_dir=. 8078 tmp_nm="$ac_dir/$lt_tmp_nm" 8079 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8080 # Check to see if the nm accepts a BSD-compat flag. 8081 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8082 # nm: unknown option "B" ignored 8083 # Tru64's nm complains that /dev/null is an invalid object file 8084 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8085 */dev/null* | *'Invalid file or object type'*) 8086 lt_cv_path_NM="$tmp_nm -B" 8087 break 8088 ;; 8089 *) 8090 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8091 */dev/null*) 8092 lt_cv_path_NM="$tmp_nm -p" 8093 break 8094 ;; 8095 *) 8096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8097 continue # so that we can try to find one that supports BSD flags 8098 ;; 8099 esac 8100 ;; 8101 esac 8102 fi 8103 done 8104 IFS="$lt_save_ifs" 8105 done 8106 : ${lt_cv_path_NM=no} 8107fi 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8110$as_echo "$lt_cv_path_NM" >&6; } 8111if test "$lt_cv_path_NM" != "no"; then 8112 NM="$lt_cv_path_NM" 8113else 8114 # Didn't find any BSD compatible name lister, look for dumpbin. 8115 if test -n "$DUMPBIN"; then : 8116 # Let the user override the test. 8117 else 8118 if test -n "$ac_tool_prefix"; then 8119 for ac_prog in dumpbin "link -dump" 8120 do 8121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8122set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124$as_echo_n "checking for $ac_word... " >&6; } 8125if ${ac_cv_prog_DUMPBIN+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 if test -n "$DUMPBIN"; then 8129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8130else 8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132for as_dir in $PATH 8133do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142done 8143 done 8144IFS=$as_save_IFS 8145 8146fi 8147fi 8148DUMPBIN=$ac_cv_prog_DUMPBIN 8149if test -n "$DUMPBIN"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8151$as_echo "$DUMPBIN" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 8158 test -n "$DUMPBIN" && break 8159 done 8160fi 8161if test -z "$DUMPBIN"; then 8162 ac_ct_DUMPBIN=$DUMPBIN 8163 for ac_prog in dumpbin "link -dump" 8164do 8165 # Extract the first word of "$ac_prog", so it can be a program name with args. 8166set dummy $ac_prog; ac_word=$2 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8168$as_echo_n "checking for $ac_word... " >&6; } 8169if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 if test -n "$ac_ct_DUMPBIN"; then 8173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8174else 8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8176for as_dir in $PATH 8177do 8178 IFS=$as_save_IFS 8179 test -z "$as_dir" && as_dir=. 8180 for ac_exec_ext in '' $ac_executable_extensions; do 8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8184 break 2 8185 fi 8186done 8187 done 8188IFS=$as_save_IFS 8189 8190fi 8191fi 8192ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8193if test -n "$ac_ct_DUMPBIN"; then 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8195$as_echo "$ac_ct_DUMPBIN" >&6; } 8196else 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8198$as_echo "no" >&6; } 8199fi 8200 8201 8202 test -n "$ac_ct_DUMPBIN" && break 8203done 8204 8205 if test "x$ac_ct_DUMPBIN" = x; then 8206 DUMPBIN=":" 8207 else 8208 case $cross_compiling:$ac_tool_warned in 8209yes:) 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8212ac_tool_warned=yes ;; 8213esac 8214 DUMPBIN=$ac_ct_DUMPBIN 8215 fi 8216fi 8217 8218 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8219 *COFF*) 8220 DUMPBIN="$DUMPBIN -symbols" 8221 ;; 8222 *) 8223 DUMPBIN=: 8224 ;; 8225 esac 8226 fi 8227 8228 if test "$DUMPBIN" != ":"; then 8229 NM="$DUMPBIN" 8230 fi 8231fi 8232test -z "$NM" && NM=nm 8233 8234 8235 8236 8237 8238 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8240$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8241if ${lt_cv_nm_interface+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 lt_cv_nm_interface="BSD nm" 8245 echo "int some_variable = 0;" > conftest.$ac_ext 8246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8247 (eval "$ac_compile" 2>conftest.err) 8248 cat conftest.err >&5 8249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8251 cat conftest.err >&5 8252 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8253 cat conftest.out >&5 8254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8255 lt_cv_nm_interface="MS dumpbin" 8256 fi 8257 rm -f conftest* 8258fi 8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8260$as_echo "$lt_cv_nm_interface" >&6; } 8261 8262# find the maximum length of command line arguments 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8264$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8265if ${lt_cv_sys_max_cmd_len+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 i=0 8269 teststring="ABCD" 8270 8271 case $build_os in 8272 msdosdjgpp*) 8273 # On DJGPP, this test can blow up pretty badly due to problems in libc 8274 # (any single argument exceeding 2000 bytes causes a buffer overrun 8275 # during glob expansion). Even if it were fixed, the result of this 8276 # check would be larger than it should be. 8277 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8278 ;; 8279 8280 gnu*) 8281 # Under GNU Hurd, this test is not required because there is 8282 # no limit to the length of command line arguments. 8283 # Libtool will interpret -1 as no limit whatsoever 8284 lt_cv_sys_max_cmd_len=-1; 8285 ;; 8286 8287 cygwin* | mingw* | cegcc*) 8288 # On Win9x/ME, this test blows up -- it succeeds, but takes 8289 # about 5 minutes as the teststring grows exponentially. 8290 # Worse, since 9x/ME are not pre-emptively multitasking, 8291 # you end up with a "frozen" computer, even though with patience 8292 # the test eventually succeeds (with a max line length of 256k). 8293 # Instead, let's just punt: use the minimum linelength reported by 8294 # all of the supported platforms: 8192 (on NT/2K/XP). 8295 lt_cv_sys_max_cmd_len=8192; 8296 ;; 8297 8298 mint*) 8299 # On MiNT this can take a long time and run out of memory. 8300 lt_cv_sys_max_cmd_len=8192; 8301 ;; 8302 8303 amigaos*) 8304 # On AmigaOS with pdksh, this test takes hours, literally. 8305 # So we just punt and use a minimum line length of 8192. 8306 lt_cv_sys_max_cmd_len=8192; 8307 ;; 8308 8309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8310 # This has been around since 386BSD, at least. Likely further. 8311 if test -x /sbin/sysctl; then 8312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8313 elif test -x /usr/sbin/sysctl; then 8314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8315 else 8316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8317 fi 8318 # And add a safety zone 8319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8321 ;; 8322 8323 interix*) 8324 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8325 lt_cv_sys_max_cmd_len=196608 8326 ;; 8327 8328 os2*) 8329 # The test takes a long time on OS/2. 8330 lt_cv_sys_max_cmd_len=8192 8331 ;; 8332 8333 osf*) 8334 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8335 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8336 # nice to cause kernel panics so lets avoid the loop below. 8337 # First set a reasonable default. 8338 lt_cv_sys_max_cmd_len=16384 8339 # 8340 if test -x /sbin/sysconfig; then 8341 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8342 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8343 esac 8344 fi 8345 ;; 8346 sco3.2v5*) 8347 lt_cv_sys_max_cmd_len=102400 8348 ;; 8349 sysv5* | sco5v6* | sysv4.2uw2*) 8350 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8351 if test -n "$kargmax"; then 8352 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8353 else 8354 lt_cv_sys_max_cmd_len=32768 8355 fi 8356 ;; 8357 *) 8358 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8359 if test -n "$lt_cv_sys_max_cmd_len"; then 8360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8362 else 8363 # Make teststring a little bigger before we do anything with it. 8364 # a 1K string should be a reasonable start. 8365 for i in 1 2 3 4 5 6 7 8 ; do 8366 teststring=$teststring$teststring 8367 done 8368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8369 # If test is not a shell built-in, we'll probably end up computing a 8370 # maximum length that is only half of the actual maximum length, but 8371 # we can't tell. 8372 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 8373 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8374 test $i != 17 # 1/2 MB should be enough 8375 do 8376 i=`expr $i + 1` 8377 teststring=$teststring$teststring 8378 done 8379 # Only check the string length outside the loop. 8380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8381 teststring= 8382 # Add a significant safety factor because C++ compilers can tack on 8383 # massive amounts of additional arguments before passing them to the 8384 # linker. It appears as though 1/2 is a usable value. 8385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8386 fi 8387 ;; 8388 esac 8389 8390fi 8391 8392if test -n $lt_cv_sys_max_cmd_len ; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8394$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8395else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8397$as_echo "none" >&6; } 8398fi 8399max_cmd_len=$lt_cv_sys_max_cmd_len 8400 8401 8402 8403 8404 8405 8406: ${CP="cp -f"} 8407: ${MV="mv -f"} 8408: ${RM="rm -f"} 8409 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8411$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8412# Try some XSI features 8413xsi_shell=no 8414( _lt_dummy="a/b/c" 8415 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8416 = c,a/b,b/c, \ 8417 && eval 'test $(( 1 + 1 )) -eq 2 \ 8418 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8419 && xsi_shell=yes 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8421$as_echo "$xsi_shell" >&6; } 8422 8423 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8425$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8426lt_shell_append=no 8427( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8428 >/dev/null 2>&1 \ 8429 && lt_shell_append=yes 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8431$as_echo "$lt_shell_append" >&6; } 8432 8433 8434if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8435 lt_unset=unset 8436else 8437 lt_unset=false 8438fi 8439 8440 8441 8442 8443 8444# test EBCDIC or ASCII 8445case `echo X|tr X '\101'` in 8446 A) # ASCII based system 8447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8448 lt_SP2NL='tr \040 \012' 8449 lt_NL2SP='tr \015\012 \040\040' 8450 ;; 8451 *) # EBCDIC based system 8452 lt_SP2NL='tr \100 \n' 8453 lt_NL2SP='tr \r\n \100\100' 8454 ;; 8455esac 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8466$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8467if ${lt_cv_to_host_file_cmd+:} false; then : 8468 $as_echo_n "(cached) " >&6 8469else 8470 case $host in 8471 *-*-mingw* ) 8472 case $build in 8473 *-*-mingw* ) # actually msys 8474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8475 ;; 8476 *-*-cygwin* ) 8477 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8478 ;; 8479 * ) # otherwise, assume *nix 8480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8481 ;; 8482 esac 8483 ;; 8484 *-*-cygwin* ) 8485 case $build in 8486 *-*-mingw* ) # actually msys 8487 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8488 ;; 8489 *-*-cygwin* ) 8490 lt_cv_to_host_file_cmd=func_convert_file_noop 8491 ;; 8492 * ) # otherwise, assume *nix 8493 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8494 ;; 8495 esac 8496 ;; 8497 * ) # unhandled hosts (and "normal" native builds) 8498 lt_cv_to_host_file_cmd=func_convert_file_noop 8499 ;; 8500esac 8501 8502fi 8503 8504to_host_file_cmd=$lt_cv_to_host_file_cmd 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8506$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8507 8508 8509 8510 8511 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8513$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8514if ${lt_cv_to_tool_file_cmd+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 #assume ordinary cross tools, or native build. 8518lt_cv_to_tool_file_cmd=func_convert_file_noop 8519case $host in 8520 *-*-mingw* ) 8521 case $build in 8522 *-*-mingw* ) # actually msys 8523 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8524 ;; 8525 esac 8526 ;; 8527esac 8528 8529fi 8530 8531to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8533$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8534 8535 8536 8537 8538 8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8540$as_echo_n "checking for $LD option to reload object files... " >&6; } 8541if ${lt_cv_ld_reload_flag+:} false; then : 8542 $as_echo_n "(cached) " >&6 8543else 8544 lt_cv_ld_reload_flag='-r' 8545fi 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8547$as_echo "$lt_cv_ld_reload_flag" >&6; } 8548reload_flag=$lt_cv_ld_reload_flag 8549case $reload_flag in 8550"" | " "*) ;; 8551*) reload_flag=" $reload_flag" ;; 8552esac 8553reload_cmds='$LD$reload_flag -o $output$reload_objs' 8554case $host_os in 8555 cygwin* | mingw* | pw32* | cegcc*) 8556 if test "$GCC" != yes; then 8557 reload_cmds=false 8558 fi 8559 ;; 8560 darwin*) 8561 if test "$GCC" = yes; then 8562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8563 else 8564 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8565 fi 8566 ;; 8567esac 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577if test -n "$ac_tool_prefix"; then 8578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8579set dummy ${ac_tool_prefix}objdump; ac_word=$2 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8581$as_echo_n "checking for $ac_word... " >&6; } 8582if ${ac_cv_prog_OBJDUMP+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 if test -n "$OBJDUMP"; then 8586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8587else 8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8589for as_dir in $PATH 8590do 8591 IFS=$as_save_IFS 8592 test -z "$as_dir" && as_dir=. 8593 for ac_exec_ext in '' $ac_executable_extensions; do 8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8597 break 2 8598 fi 8599done 8600 done 8601IFS=$as_save_IFS 8602 8603fi 8604fi 8605OBJDUMP=$ac_cv_prog_OBJDUMP 8606if test -n "$OBJDUMP"; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8608$as_echo "$OBJDUMP" >&6; } 8609else 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8611$as_echo "no" >&6; } 8612fi 8613 8614 8615fi 8616if test -z "$ac_cv_prog_OBJDUMP"; then 8617 ac_ct_OBJDUMP=$OBJDUMP 8618 # Extract the first word of "objdump", so it can be a program name with args. 8619set dummy objdump; ac_word=$2 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8621$as_echo_n "checking for $ac_word... " >&6; } 8622if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 if test -n "$ac_ct_OBJDUMP"; then 8626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8627else 8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8629for as_dir in $PATH 8630do 8631 IFS=$as_save_IFS 8632 test -z "$as_dir" && as_dir=. 8633 for ac_exec_ext in '' $ac_executable_extensions; do 8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8635 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8637 break 2 8638 fi 8639done 8640 done 8641IFS=$as_save_IFS 8642 8643fi 8644fi 8645ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8646if test -n "$ac_ct_OBJDUMP"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8648$as_echo "$ac_ct_OBJDUMP" >&6; } 8649else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651$as_echo "no" >&6; } 8652fi 8653 8654 if test "x$ac_ct_OBJDUMP" = x; then 8655 OBJDUMP="false" 8656 else 8657 case $cross_compiling:$ac_tool_warned in 8658yes:) 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8661ac_tool_warned=yes ;; 8662esac 8663 OBJDUMP=$ac_ct_OBJDUMP 8664 fi 8665else 8666 OBJDUMP="$ac_cv_prog_OBJDUMP" 8667fi 8668 8669test -z "$OBJDUMP" && OBJDUMP=objdump 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8680$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8681if ${lt_cv_deplibs_check_method+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 lt_cv_file_magic_cmd='$MAGIC_CMD' 8685lt_cv_file_magic_test_file= 8686lt_cv_deplibs_check_method='unknown' 8687# Need to set the preceding variable on all platforms that support 8688# interlibrary dependencies. 8689# 'none' -- dependencies not supported. 8690# `unknown' -- same as none, but documents that we really don't know. 8691# 'pass_all' -- all dependencies passed with no checks. 8692# 'test_compile' -- check by making test program. 8693# 'file_magic [[regex]]' -- check by looking for files in library path 8694# which responds to the $file_magic_cmd with a given extended regex. 8695# If you have `file' or equivalent on your system and you're not sure 8696# whether `pass_all' will *always* work, you probably want this one. 8697 8698case $host_os in 8699aix[4-9]*) 8700 lt_cv_deplibs_check_method=pass_all 8701 ;; 8702 8703beos*) 8704 lt_cv_deplibs_check_method=pass_all 8705 ;; 8706 8707bsdi[45]*) 8708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8709 lt_cv_file_magic_cmd='/usr/bin/file -L' 8710 lt_cv_file_magic_test_file=/shlib/libc.so 8711 ;; 8712 8713cygwin*) 8714 # func_win32_libid is a shell function defined in ltmain.sh 8715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8716 lt_cv_file_magic_cmd='func_win32_libid' 8717 ;; 8718 8719mingw* | pw32*) 8720 # Base MSYS/MinGW do not provide the 'file' command needed by 8721 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8722 # unless we find 'file', for example because we are cross-compiling. 8723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8726 lt_cv_file_magic_cmd='func_win32_libid' 8727 else 8728 # Keep this pattern in sync with the one in func_win32_libid. 8729 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8730 lt_cv_file_magic_cmd='$OBJDUMP -f' 8731 fi 8732 ;; 8733 8734cegcc*) 8735 # use the weaker test based on 'objdump'. See mingw*. 8736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8737 lt_cv_file_magic_cmd='$OBJDUMP -f' 8738 ;; 8739 8740darwin* | rhapsody*) 8741 lt_cv_deplibs_check_method=pass_all 8742 ;; 8743 8744freebsd* | dragonfly*) 8745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8746 case $host_cpu in 8747 i*86 ) 8748 # Not sure whether the presence of OpenBSD here was a mistake. 8749 # Let's accept both of them until this is cleared up. 8750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8751 lt_cv_file_magic_cmd=/usr/bin/file 8752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8753 ;; 8754 esac 8755 else 8756 lt_cv_deplibs_check_method=pass_all 8757 fi 8758 ;; 8759 8760gnu*) 8761 lt_cv_deplibs_check_method=pass_all 8762 ;; 8763 8764haiku*) 8765 lt_cv_deplibs_check_method=pass_all 8766 ;; 8767 8768hpux10.20* | hpux11*) 8769 lt_cv_file_magic_cmd=/usr/bin/file 8770 case $host_cpu in 8771 ia64*) 8772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8773 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8774 ;; 8775 hppa*64*) 8776 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]' 8777 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8778 ;; 8779 *) 8780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8781 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8782 ;; 8783 esac 8784 ;; 8785 8786interix[3-9]*) 8787 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8789 ;; 8790 8791irix5* | irix6* | nonstopux*) 8792 case $LD in 8793 *-32|*"-32 ") libmagic=32-bit;; 8794 *-n32|*"-n32 ") libmagic=N32;; 8795 *-64|*"-64 ") libmagic=64-bit;; 8796 *) libmagic=never-match;; 8797 esac 8798 lt_cv_deplibs_check_method=pass_all 8799 ;; 8800 8801# This must be glibc/ELF. 8802linux* | k*bsd*-gnu | kopensolaris*-gnu) 8803 lt_cv_deplibs_check_method=pass_all 8804 ;; 8805 8806netbsd* | netbsdelf*-gnu) 8807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8809 else 8810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8811 fi 8812 ;; 8813 8814newos6*) 8815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8816 lt_cv_file_magic_cmd=/usr/bin/file 8817 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8818 ;; 8819 8820*nto* | *qnx*) 8821 lt_cv_deplibs_check_method=pass_all 8822 ;; 8823 8824openbsd*) 8825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8827 else 8828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8829 fi 8830 ;; 8831 8832osf3* | osf4* | osf5*) 8833 lt_cv_deplibs_check_method=pass_all 8834 ;; 8835 8836rdos*) 8837 lt_cv_deplibs_check_method=pass_all 8838 ;; 8839 8840solaris*) 8841 lt_cv_deplibs_check_method=pass_all 8842 ;; 8843 8844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8845 lt_cv_deplibs_check_method=pass_all 8846 ;; 8847 8848sysv4 | sysv4.3*) 8849 case $host_vendor in 8850 motorola) 8851 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]' 8852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8853 ;; 8854 ncr) 8855 lt_cv_deplibs_check_method=pass_all 8856 ;; 8857 sequent) 8858 lt_cv_file_magic_cmd='/bin/file' 8859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8860 ;; 8861 sni) 8862 lt_cv_file_magic_cmd='/bin/file' 8863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8864 lt_cv_file_magic_test_file=/lib/libc.so 8865 ;; 8866 siemens) 8867 lt_cv_deplibs_check_method=pass_all 8868 ;; 8869 pc) 8870 lt_cv_deplibs_check_method=pass_all 8871 ;; 8872 esac 8873 ;; 8874 8875tpf*) 8876 lt_cv_deplibs_check_method=pass_all 8877 ;; 8878esac 8879 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8882$as_echo "$lt_cv_deplibs_check_method" >&6; } 8883 8884file_magic_glob= 8885want_nocaseglob=no 8886if test "$build" = "$host"; then 8887 case $host_os in 8888 mingw* | pw32*) 8889 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8890 want_nocaseglob=yes 8891 else 8892 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8893 fi 8894 ;; 8895 esac 8896fi 8897 8898file_magic_cmd=$lt_cv_file_magic_cmd 8899deplibs_check_method=$lt_cv_deplibs_check_method 8900test -z "$deplibs_check_method" && deplibs_check_method=unknown 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923if test -n "$ac_tool_prefix"; then 8924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8925set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8927$as_echo_n "checking for $ac_word... " >&6; } 8928if ${ac_cv_prog_DLLTOOL+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 if test -n "$DLLTOOL"; then 8932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8933else 8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8935for as_dir in $PATH 8936do 8937 IFS=$as_save_IFS 8938 test -z "$as_dir" && as_dir=. 8939 for ac_exec_ext in '' $ac_executable_extensions; do 8940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8943 break 2 8944 fi 8945done 8946 done 8947IFS=$as_save_IFS 8948 8949fi 8950fi 8951DLLTOOL=$ac_cv_prog_DLLTOOL 8952if test -n "$DLLTOOL"; then 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8954$as_echo "$DLLTOOL" >&6; } 8955else 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8957$as_echo "no" >&6; } 8958fi 8959 8960 8961fi 8962if test -z "$ac_cv_prog_DLLTOOL"; then 8963 ac_ct_DLLTOOL=$DLLTOOL 8964 # Extract the first word of "dlltool", so it can be a program name with args. 8965set dummy dlltool; ac_word=$2 8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8967$as_echo_n "checking for $ac_word... " >&6; } 8968if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8969 $as_echo_n "(cached) " >&6 8970else 8971 if test -n "$ac_ct_DLLTOOL"; then 8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8973else 8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8975for as_dir in $PATH 8976do 8977 IFS=$as_save_IFS 8978 test -z "$as_dir" && as_dir=. 8979 for ac_exec_ext in '' $ac_executable_extensions; do 8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8983 break 2 8984 fi 8985done 8986 done 8987IFS=$as_save_IFS 8988 8989fi 8990fi 8991ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8992if test -n "$ac_ct_DLLTOOL"; then 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8994$as_echo "$ac_ct_DLLTOOL" >&6; } 8995else 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8997$as_echo "no" >&6; } 8998fi 8999 9000 if test "x$ac_ct_DLLTOOL" = x; then 9001 DLLTOOL="false" 9002 else 9003 case $cross_compiling:$ac_tool_warned in 9004yes:) 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9007ac_tool_warned=yes ;; 9008esac 9009 DLLTOOL=$ac_ct_DLLTOOL 9010 fi 9011else 9012 DLLTOOL="$ac_cv_prog_DLLTOOL" 9013fi 9014 9015test -z "$DLLTOOL" && DLLTOOL=dlltool 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9027$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9028if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 lt_cv_sharedlib_from_linklib_cmd='unknown' 9032 9033case $host_os in 9034cygwin* | mingw* | pw32* | cegcc*) 9035 # two different shell functions defined in ltmain.sh 9036 # decide which to use based on capabilities of $DLLTOOL 9037 case `$DLLTOOL --help 2>&1` in 9038 *--identify-strict*) 9039 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9040 ;; 9041 *) 9042 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9043 ;; 9044 esac 9045 ;; 9046*) 9047 # fallback: assume linklib IS sharedlib 9048 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 9049 ;; 9050esac 9051 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9054$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9055sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9056test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9057 9058 9059 9060 9061 9062 9063 9064if test -n "$ac_tool_prefix"; then 9065 for ac_prog in ar 9066 do 9067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9068set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9070$as_echo_n "checking for $ac_word... " >&6; } 9071if ${ac_cv_prog_AR+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073else 9074 if test -n "$AR"; then 9075 ac_cv_prog_AR="$AR" # Let the user override the test. 9076else 9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9078for as_dir in $PATH 9079do 9080 IFS=$as_save_IFS 9081 test -z "$as_dir" && as_dir=. 9082 for ac_exec_ext in '' $ac_executable_extensions; do 9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9084 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9086 break 2 9087 fi 9088done 9089 done 9090IFS=$as_save_IFS 9091 9092fi 9093fi 9094AR=$ac_cv_prog_AR 9095if test -n "$AR"; then 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9097$as_echo "$AR" >&6; } 9098else 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100$as_echo "no" >&6; } 9101fi 9102 9103 9104 test -n "$AR" && break 9105 done 9106fi 9107if test -z "$AR"; then 9108 ac_ct_AR=$AR 9109 for ac_prog in ar 9110do 9111 # Extract the first word of "$ac_prog", so it can be a program name with args. 9112set dummy $ac_prog; ac_word=$2 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9114$as_echo_n "checking for $ac_word... " >&6; } 9115if ${ac_cv_prog_ac_ct_AR+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 if test -n "$ac_ct_AR"; then 9119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9120else 9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9122for as_dir in $PATH 9123do 9124 IFS=$as_save_IFS 9125 test -z "$as_dir" && as_dir=. 9126 for ac_exec_ext in '' $ac_executable_extensions; do 9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9128 ac_cv_prog_ac_ct_AR="$ac_prog" 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9130 break 2 9131 fi 9132done 9133 done 9134IFS=$as_save_IFS 9135 9136fi 9137fi 9138ac_ct_AR=$ac_cv_prog_ac_ct_AR 9139if test -n "$ac_ct_AR"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9141$as_echo "$ac_ct_AR" >&6; } 9142else 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9144$as_echo "no" >&6; } 9145fi 9146 9147 9148 test -n "$ac_ct_AR" && break 9149done 9150 9151 if test "x$ac_ct_AR" = x; then 9152 AR="false" 9153 else 9154 case $cross_compiling:$ac_tool_warned in 9155yes:) 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9158ac_tool_warned=yes ;; 9159esac 9160 AR=$ac_ct_AR 9161 fi 9162fi 9163 9164: ${AR=ar} 9165: ${AR_FLAGS=cru} 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9178$as_echo_n "checking for archiver @FILE support... " >&6; } 9179if ${lt_cv_ar_at_file+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 lt_cv_ar_at_file=no 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185 9186int 9187main () 9188{ 9189 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194if ac_fn_c_try_compile "$LINENO"; then : 9195 echo conftest.$ac_objext > conftest.lst 9196 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9198 (eval $lt_ar_try) 2>&5 9199 ac_status=$? 9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9201 test $ac_status = 0; } 9202 if test "$ac_status" -eq 0; then 9203 # Ensure the archiver fails upon bogus file names. 9204 rm -f conftest.$ac_objext libconftest.a 9205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9206 (eval $lt_ar_try) 2>&5 9207 ac_status=$? 9208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9209 test $ac_status = 0; } 9210 if test "$ac_status" -ne 0; then 9211 lt_cv_ar_at_file=@ 9212 fi 9213 fi 9214 rm -f conftest.* libconftest.a 9215 9216fi 9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9218 9219fi 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9221$as_echo "$lt_cv_ar_at_file" >&6; } 9222 9223if test "x$lt_cv_ar_at_file" = xno; then 9224 archiver_list_spec= 9225else 9226 archiver_list_spec=$lt_cv_ar_at_file 9227fi 9228 9229 9230 9231 9232 9233 9234 9235if test -n "$ac_tool_prefix"; then 9236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9237set dummy ${ac_tool_prefix}strip; ac_word=$2 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9239$as_echo_n "checking for $ac_word... " >&6; } 9240if ${ac_cv_prog_STRIP+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 if test -n "$STRIP"; then 9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9245else 9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9247for as_dir in $PATH 9248do 9249 IFS=$as_save_IFS 9250 test -z "$as_dir" && as_dir=. 9251 for ac_exec_ext in '' $ac_executable_extensions; do 9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9253 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9255 break 2 9256 fi 9257done 9258 done 9259IFS=$as_save_IFS 9260 9261fi 9262fi 9263STRIP=$ac_cv_prog_STRIP 9264if test -n "$STRIP"; then 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9266$as_echo "$STRIP" >&6; } 9267else 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9269$as_echo "no" >&6; } 9270fi 9271 9272 9273fi 9274if test -z "$ac_cv_prog_STRIP"; then 9275 ac_ct_STRIP=$STRIP 9276 # Extract the first word of "strip", so it can be a program name with args. 9277set dummy strip; ac_word=$2 9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9279$as_echo_n "checking for $ac_word... " >&6; } 9280if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 if test -n "$ac_ct_STRIP"; then 9284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9285else 9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9287for as_dir in $PATH 9288do 9289 IFS=$as_save_IFS 9290 test -z "$as_dir" && as_dir=. 9291 for ac_exec_ext in '' $ac_executable_extensions; do 9292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9293 ac_cv_prog_ac_ct_STRIP="strip" 9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9295 break 2 9296 fi 9297done 9298 done 9299IFS=$as_save_IFS 9300 9301fi 9302fi 9303ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9304if test -n "$ac_ct_STRIP"; then 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9306$as_echo "$ac_ct_STRIP" >&6; } 9307else 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9309$as_echo "no" >&6; } 9310fi 9311 9312 if test "x$ac_ct_STRIP" = x; then 9313 STRIP=":" 9314 else 9315 case $cross_compiling:$ac_tool_warned in 9316yes:) 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9319ac_tool_warned=yes ;; 9320esac 9321 STRIP=$ac_ct_STRIP 9322 fi 9323else 9324 STRIP="$ac_cv_prog_STRIP" 9325fi 9326 9327test -z "$STRIP" && STRIP=: 9328 9329 9330 9331 9332 9333 9334if test -n "$ac_tool_prefix"; then 9335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9336set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9338$as_echo_n "checking for $ac_word... " >&6; } 9339if ${ac_cv_prog_RANLIB+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 if test -n "$RANLIB"; then 9343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9344else 9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9346for as_dir in $PATH 9347do 9348 IFS=$as_save_IFS 9349 test -z "$as_dir" && as_dir=. 9350 for ac_exec_ext in '' $ac_executable_extensions; do 9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9354 break 2 9355 fi 9356done 9357 done 9358IFS=$as_save_IFS 9359 9360fi 9361fi 9362RANLIB=$ac_cv_prog_RANLIB 9363if test -n "$RANLIB"; then 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9365$as_echo "$RANLIB" >&6; } 9366else 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9368$as_echo "no" >&6; } 9369fi 9370 9371 9372fi 9373if test -z "$ac_cv_prog_RANLIB"; then 9374 ac_ct_RANLIB=$RANLIB 9375 # Extract the first word of "ranlib", so it can be a program name with args. 9376set dummy ranlib; ac_word=$2 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9378$as_echo_n "checking for $ac_word... " >&6; } 9379if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9380 $as_echo_n "(cached) " >&6 9381else 9382 if test -n "$ac_ct_RANLIB"; then 9383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9384else 9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9386for as_dir in $PATH 9387do 9388 IFS=$as_save_IFS 9389 test -z "$as_dir" && as_dir=. 9390 for ac_exec_ext in '' $ac_executable_extensions; do 9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9392 ac_cv_prog_ac_ct_RANLIB="ranlib" 9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9394 break 2 9395 fi 9396done 9397 done 9398IFS=$as_save_IFS 9399 9400fi 9401fi 9402ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9403if test -n "$ac_ct_RANLIB"; then 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9405$as_echo "$ac_ct_RANLIB" >&6; } 9406else 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9408$as_echo "no" >&6; } 9409fi 9410 9411 if test "x$ac_ct_RANLIB" = x; then 9412 RANLIB=":" 9413 else 9414 case $cross_compiling:$ac_tool_warned in 9415yes:) 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9418ac_tool_warned=yes ;; 9419esac 9420 RANLIB=$ac_ct_RANLIB 9421 fi 9422else 9423 RANLIB="$ac_cv_prog_RANLIB" 9424fi 9425 9426test -z "$RANLIB" && RANLIB=: 9427 9428 9429 9430 9431 9432 9433# Determine commands to create old-style static archives. 9434old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9435old_postinstall_cmds='chmod 644 $oldlib' 9436old_postuninstall_cmds= 9437 9438if test -n "$RANLIB"; then 9439 case $host_os in 9440 openbsd*) 9441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9442 ;; 9443 *) 9444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9445 ;; 9446 esac 9447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9448fi 9449 9450case $host_os in 9451 darwin*) 9452 lock_old_archive_extraction=yes ;; 9453 *) 9454 lock_old_archive_extraction=no ;; 9455esac 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495# If no C compiler was specified, use CC. 9496LTCC=${LTCC-"$CC"} 9497 9498# If no C compiler flags were specified, use CFLAGS. 9499LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9500 9501# Allow CC to be a program name with arguments. 9502compiler=$CC 9503 9504 9505# Check for command to grab the raw symbol name followed by C symbol from nm. 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9507$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9508if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 9512# These are sane defaults that work on at least a few old systems. 9513# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9514 9515# Character class describing NM global symbol codes. 9516symcode='[BCDEGRST]' 9517 9518# Regexp to match symbols that can be accessed directly from C. 9519sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9520 9521# Define system-specific variables. 9522case $host_os in 9523aix*) 9524 symcode='[BCDT]' 9525 ;; 9526cygwin* | mingw* | pw32* | cegcc*) 9527 symcode='[ABCDGISTW]' 9528 ;; 9529hpux*) 9530 if test "$host_cpu" = ia64; then 9531 symcode='[ABCDEGRST]' 9532 fi 9533 ;; 9534irix* | nonstopux*) 9535 symcode='[BCDEGRST]' 9536 ;; 9537osf*) 9538 symcode='[BCDEGQRST]' 9539 ;; 9540solaris*) 9541 symcode='[BDRT]' 9542 ;; 9543sco3.2v5*) 9544 symcode='[DT]' 9545 ;; 9546sysv4.2uw2*) 9547 symcode='[DT]' 9548 ;; 9549sysv5* | sco5v6* | unixware* | OpenUNIX*) 9550 symcode='[ABDT]' 9551 ;; 9552sysv4) 9553 symcode='[DFNSTU]' 9554 ;; 9555esac 9556 9557# If we're using GNU nm, then use its standard symbol codes. 9558case `$NM -V 2>&1` in 9559*GNU* | *'with BFD'*) 9560 symcode='[ABCDGIRSTW]' ;; 9561esac 9562 9563# Transform an extracted symbol line into a proper C declaration. 9564# Some systems (esp. on ia64) link data and code symbols differently, 9565# so use this general approach. 9566lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9567 9568# Transform an extracted symbol line into symbol name and symbol address 9569lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9570lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9571 9572# Handle CRLF in mingw tool chain 9573opt_cr= 9574case $build_os in 9575mingw*) 9576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9577 ;; 9578esac 9579 9580# Try without a prefix underscore, then with it. 9581for ac_symprfx in "" "_"; do 9582 9583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9584 symxfrm="\\1 $ac_symprfx\\2 \\2" 9585 9586 # Write the raw and C identifiers. 9587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9588 # Fake it for dumpbin and say T for any non-static function 9589 # and D for any global variable. 9590 # Also find C++ and __fastcall symbols from MSVC++, 9591 # which start with @ or ?. 9592 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9593" {last_section=section; section=\$ 3};"\ 9594" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9595" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9596" \$ 0!~/External *\|/{next};"\ 9597" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9598" {if(hide[section]) next};"\ 9599" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9600" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9601" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9602" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9603" ' prfx=^$ac_symprfx" 9604 else 9605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9606 fi 9607 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9608 9609 # Check to see that the pipe works correctly. 9610 pipe_works=no 9611 9612 rm -f conftest* 9613 cat > conftest.$ac_ext <<_LT_EOF 9614#ifdef __cplusplus 9615extern "C" { 9616#endif 9617char nm_test_var; 9618void nm_test_func(void); 9619void nm_test_func(void){} 9620#ifdef __cplusplus 9621} 9622#endif 9623int main(){nm_test_var='a';nm_test_func();return(0);} 9624_LT_EOF 9625 9626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9627 (eval $ac_compile) 2>&5 9628 ac_status=$? 9629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9630 test $ac_status = 0; }; then 9631 # Now try to grab the symbols. 9632 nlist=conftest.nm 9633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9634 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9635 ac_status=$? 9636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9637 test $ac_status = 0; } && test -s "$nlist"; then 9638 # Try sorting and uniquifying the output. 9639 if sort "$nlist" | uniq > "$nlist"T; then 9640 mv -f "$nlist"T "$nlist" 9641 else 9642 rm -f "$nlist"T 9643 fi 9644 9645 # Make sure that we snagged all the symbols we need. 9646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9648 cat <<_LT_EOF > conftest.$ac_ext 9649/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9650#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9651/* DATA imports from DLLs on WIN32 con't be const, because runtime 9652 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9653# define LT_DLSYM_CONST 9654#elif defined(__osf__) 9655/* This system does not cope well with relocations in const data. */ 9656# define LT_DLSYM_CONST 9657#else 9658# define LT_DLSYM_CONST const 9659#endif 9660 9661#ifdef __cplusplus 9662extern "C" { 9663#endif 9664 9665_LT_EOF 9666 # Now generate the symbol file. 9667 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9668 9669 cat <<_LT_EOF >> conftest.$ac_ext 9670 9671/* The mapping between symbol names and symbols. */ 9672LT_DLSYM_CONST struct { 9673 const char *name; 9674 void *address; 9675} 9676lt__PROGRAM__LTX_preloaded_symbols[] = 9677{ 9678 { "@PROGRAM@", (void *) 0 }, 9679_LT_EOF 9680 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9681 cat <<\_LT_EOF >> conftest.$ac_ext 9682 {0, (void *) 0} 9683}; 9684 9685/* This works around a problem in FreeBSD linker */ 9686#ifdef FREEBSD_WORKAROUND 9687static const void *lt_preloaded_setup() { 9688 return lt__PROGRAM__LTX_preloaded_symbols; 9689} 9690#endif 9691 9692#ifdef __cplusplus 9693} 9694#endif 9695_LT_EOF 9696 # Now try linking the two files. 9697 mv conftest.$ac_objext conftstm.$ac_objext 9698 lt_globsym_save_LIBS=$LIBS 9699 lt_globsym_save_CFLAGS=$CFLAGS 9700 LIBS="conftstm.$ac_objext" 9701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9703 (eval $ac_link) 2>&5 9704 ac_status=$? 9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9706 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9707 pipe_works=yes 9708 fi 9709 LIBS=$lt_globsym_save_LIBS 9710 CFLAGS=$lt_globsym_save_CFLAGS 9711 else 9712 echo "cannot find nm_test_func in $nlist" >&5 9713 fi 9714 else 9715 echo "cannot find nm_test_var in $nlist" >&5 9716 fi 9717 else 9718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9719 fi 9720 else 9721 echo "$progname: failed program was:" >&5 9722 cat conftest.$ac_ext >&5 9723 fi 9724 rm -rf conftest* conftst* 9725 9726 # Do not use the global_symbol_pipe unless it works. 9727 if test "$pipe_works" = yes; then 9728 break 9729 else 9730 lt_cv_sys_global_symbol_pipe= 9731 fi 9732done 9733 9734fi 9735 9736if test -z "$lt_cv_sys_global_symbol_pipe"; then 9737 lt_cv_sys_global_symbol_to_cdecl= 9738fi 9739if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9741$as_echo "failed" >&6; } 9742else 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9744$as_echo "ok" >&6; } 9745fi 9746 9747# Response file support. 9748if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9749 nm_file_list_spec='@' 9750elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9751 nm_file_list_spec='@' 9752fi 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9781$as_echo_n "checking for sysroot... " >&6; } 9782 9783# Check whether --with-sysroot was given. 9784if test "${with_sysroot+set}" = set; then : 9785 withval=$with_sysroot; 9786else 9787 with_sysroot=no 9788fi 9789 9790 9791lt_sysroot= 9792case ${with_sysroot} in #( 9793 yes) 9794 if test "$GCC" = yes; then 9795 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9796 fi 9797 ;; #( 9798 /*) 9799 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9800 ;; #( 9801 no|'') 9802 ;; #( 9803 *) 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9805$as_echo "${with_sysroot}" >&6; } 9806 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9807 ;; 9808esac 9809 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9811$as_echo "${lt_sysroot:-no}" >&6; } 9812 9813 9814 9815 9816 9817# Check whether --enable-libtool-lock was given. 9818if test "${enable_libtool_lock+set}" = set; then : 9819 enableval=$enable_libtool_lock; 9820fi 9821 9822test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9823 9824# Some flags need to be propagated to the compiler or linker for good 9825# libtool support. 9826case $host in 9827ia64-*-hpux*) 9828 # Find out which ABI we are using. 9829 echo 'int i;' > conftest.$ac_ext 9830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9831 (eval $ac_compile) 2>&5 9832 ac_status=$? 9833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9834 test $ac_status = 0; }; then 9835 case `/usr/bin/file conftest.$ac_objext` in 9836 *ELF-32*) 9837 HPUX_IA64_MODE="32" 9838 ;; 9839 *ELF-64*) 9840 HPUX_IA64_MODE="64" 9841 ;; 9842 esac 9843 fi 9844 rm -rf conftest* 9845 ;; 9846*-*-irix6*) 9847 # Find out which ABI we are using. 9848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9850 (eval $ac_compile) 2>&5 9851 ac_status=$? 9852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9853 test $ac_status = 0; }; then 9854 if test "$lt_cv_prog_gnu_ld" = yes; then 9855 case `/usr/bin/file conftest.$ac_objext` in 9856 *32-bit*) 9857 LD="${LD-ld} -melf32bsmip" 9858 ;; 9859 *N32*) 9860 LD="${LD-ld} -melf32bmipn32" 9861 ;; 9862 *64-bit*) 9863 LD="${LD-ld} -melf64bmip" 9864 ;; 9865 esac 9866 else 9867 case `/usr/bin/file conftest.$ac_objext` in 9868 *32-bit*) 9869 LD="${LD-ld} -32" 9870 ;; 9871 *N32*) 9872 LD="${LD-ld} -n32" 9873 ;; 9874 *64-bit*) 9875 LD="${LD-ld} -64" 9876 ;; 9877 esac 9878 fi 9879 fi 9880 rm -rf conftest* 9881 ;; 9882 9883x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9884s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9885 # Find out which ABI we are using. 9886 echo 'int i;' > conftest.$ac_ext 9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9888 (eval $ac_compile) 2>&5 9889 ac_status=$? 9890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9891 test $ac_status = 0; }; then 9892 case `/usr/bin/file conftest.o` in 9893 *32-bit*) 9894 case $host in 9895 x86_64-*kfreebsd*-gnu) 9896 LD="${LD-ld} -m elf_i386_fbsd" 9897 ;; 9898 x86_64-*linux*) 9899 LD="${LD-ld} -m elf_i386" 9900 ;; 9901 ppc64-*linux*|powerpc64-*linux*) 9902 LD="${LD-ld} -m elf32ppclinux" 9903 ;; 9904 s390x-*linux*) 9905 LD="${LD-ld} -m elf_s390" 9906 ;; 9907 sparc64-*linux*) 9908 LD="${LD-ld} -m elf32_sparc" 9909 ;; 9910 esac 9911 ;; 9912 *64-bit*) 9913 case $host in 9914 x86_64-*kfreebsd*-gnu) 9915 LD="${LD-ld} -m elf_x86_64_fbsd" 9916 ;; 9917 x86_64-*linux*) 9918 LD="${LD-ld} -m elf_x86_64" 9919 ;; 9920 ppc*-*linux*|powerpc*-*linux*) 9921 LD="${LD-ld} -m elf64ppc" 9922 ;; 9923 s390*-*linux*|s390*-*tpf*) 9924 LD="${LD-ld} -m elf64_s390" 9925 ;; 9926 sparc*-*linux*) 9927 LD="${LD-ld} -m elf64_sparc" 9928 ;; 9929 esac 9930 ;; 9931 esac 9932 fi 9933 rm -rf conftest* 9934 ;; 9935 9936*-*-sco3.2v5*) 9937 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9938 SAVE_CFLAGS="$CFLAGS" 9939 CFLAGS="$CFLAGS -belf" 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9941$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9942if ${lt_cv_cc_needs_belf+:} false; then : 9943 $as_echo_n "(cached) " >&6 9944else 9945 ac_ext=c 9946ac_cpp='$CPP $CPPFLAGS' 9947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9949ac_compiler_gnu=$ac_cv_c_compiler_gnu 9950 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953 9954int 9955main () 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO"; then : 9963 lt_cv_cc_needs_belf=yes 9964else 9965 lt_cv_cc_needs_belf=no 9966fi 9967rm -f core conftest.err conftest.$ac_objext \ 9968 conftest$ac_exeext conftest.$ac_ext 9969 ac_ext=c 9970ac_cpp='$CPP $CPPFLAGS' 9971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9973ac_compiler_gnu=$ac_cv_c_compiler_gnu 9974 9975fi 9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9977$as_echo "$lt_cv_cc_needs_belf" >&6; } 9978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9980 CFLAGS="$SAVE_CFLAGS" 9981 fi 9982 ;; 9983*-*solaris*) 9984 # Find out which ABI we are using. 9985 echo 'int i;' > conftest.$ac_ext 9986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9987 (eval $ac_compile) 2>&5 9988 ac_status=$? 9989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9990 test $ac_status = 0; }; then 9991 case `/usr/bin/file conftest.o` in 9992 *64-bit*) 9993 case $lt_cv_prog_gnu_ld in 9994 yes*) 9995 case $host in 9996 i?86-*-solaris*) 9997 LD="${LD-ld} -m elf_x86_64" 9998 ;; 9999 sparc*-*-solaris*) 10000 LD="${LD-ld} -m elf64_sparc" 10001 ;; 10002 esac 10003 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10004 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10005 LD="${LD-ld}_sol2" 10006 fi 10007 ;; 10008 *) 10009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10010 LD="${LD-ld} -64" 10011 fi 10012 ;; 10013 esac 10014 ;; 10015 esac 10016 fi 10017 rm -rf conftest* 10018 ;; 10019esac 10020 10021need_locks="$enable_libtool_lock" 10022 10023if test -n "$ac_tool_prefix"; then 10024 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10025set dummy ${ac_tool_prefix}mt; ac_word=$2 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10027$as_echo_n "checking for $ac_word... " >&6; } 10028if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 if test -n "$MANIFEST_TOOL"; then 10032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10033else 10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10035for as_dir in $PATH 10036do 10037 IFS=$as_save_IFS 10038 test -z "$as_dir" && as_dir=. 10039 for ac_exec_ext in '' $ac_executable_extensions; do 10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10041 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10043 break 2 10044 fi 10045done 10046 done 10047IFS=$as_save_IFS 10048 10049fi 10050fi 10051MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10052if test -n "$MANIFEST_TOOL"; then 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10054$as_echo "$MANIFEST_TOOL" >&6; } 10055else 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10057$as_echo "no" >&6; } 10058fi 10059 10060 10061fi 10062if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10064 # Extract the first word of "mt", so it can be a program name with args. 10065set dummy mt; ac_word=$2 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10067$as_echo_n "checking for $ac_word... " >&6; } 10068if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 if test -n "$ac_ct_MANIFEST_TOOL"; then 10072 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10073else 10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10075for as_dir in $PATH 10076do 10077 IFS=$as_save_IFS 10078 test -z "$as_dir" && as_dir=. 10079 for ac_exec_ext in '' $ac_executable_extensions; do 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10083 break 2 10084 fi 10085done 10086 done 10087IFS=$as_save_IFS 10088 10089fi 10090fi 10091ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10092if test -n "$ac_ct_MANIFEST_TOOL"; then 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10094$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10095else 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10097$as_echo "no" >&6; } 10098fi 10099 10100 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10101 MANIFEST_TOOL=":" 10102 else 10103 case $cross_compiling:$ac_tool_warned in 10104yes:) 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10107ac_tool_warned=yes ;; 10108esac 10109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10110 fi 10111else 10112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10113fi 10114 10115test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10117$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10118if ${lt_cv_path_mainfest_tool+:} false; then : 10119 $as_echo_n "(cached) " >&6 10120else 10121 lt_cv_path_mainfest_tool=no 10122 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10123 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10124 cat conftest.err >&5 10125 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10126 lt_cv_path_mainfest_tool=yes 10127 fi 10128 rm -f conftest* 10129fi 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10131$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10132if test "x$lt_cv_path_mainfest_tool" != xyes; then 10133 MANIFEST_TOOL=: 10134fi 10135 10136 10137 10138 10139 10140 10141 case $host_os in 10142 rhapsody* | darwin*) 10143 if test -n "$ac_tool_prefix"; then 10144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10145set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10147$as_echo_n "checking for $ac_word... " >&6; } 10148if ${ac_cv_prog_DSYMUTIL+:} false; then : 10149 $as_echo_n "(cached) " >&6 10150else 10151 if test -n "$DSYMUTIL"; then 10152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10153else 10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10155for as_dir in $PATH 10156do 10157 IFS=$as_save_IFS 10158 test -z "$as_dir" && as_dir=. 10159 for ac_exec_ext in '' $ac_executable_extensions; do 10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10163 break 2 10164 fi 10165done 10166 done 10167IFS=$as_save_IFS 10168 10169fi 10170fi 10171DSYMUTIL=$ac_cv_prog_DSYMUTIL 10172if test -n "$DSYMUTIL"; then 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10174$as_echo "$DSYMUTIL" >&6; } 10175else 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10177$as_echo "no" >&6; } 10178fi 10179 10180 10181fi 10182if test -z "$ac_cv_prog_DSYMUTIL"; then 10183 ac_ct_DSYMUTIL=$DSYMUTIL 10184 # Extract the first word of "dsymutil", so it can be a program name with args. 10185set dummy dsymutil; ac_word=$2 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10187$as_echo_n "checking for $ac_word... " >&6; } 10188if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 if test -n "$ac_ct_DSYMUTIL"; then 10192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10193else 10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10195for as_dir in $PATH 10196do 10197 IFS=$as_save_IFS 10198 test -z "$as_dir" && as_dir=. 10199 for ac_exec_ext in '' $ac_executable_extensions; do 10200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10203 break 2 10204 fi 10205done 10206 done 10207IFS=$as_save_IFS 10208 10209fi 10210fi 10211ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10212if test -n "$ac_ct_DSYMUTIL"; then 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10214$as_echo "$ac_ct_DSYMUTIL" >&6; } 10215else 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10217$as_echo "no" >&6; } 10218fi 10219 10220 if test "x$ac_ct_DSYMUTIL" = x; then 10221 DSYMUTIL=":" 10222 else 10223 case $cross_compiling:$ac_tool_warned in 10224yes:) 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10227ac_tool_warned=yes ;; 10228esac 10229 DSYMUTIL=$ac_ct_DSYMUTIL 10230 fi 10231else 10232 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10233fi 10234 10235 if test -n "$ac_tool_prefix"; then 10236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10237set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10239$as_echo_n "checking for $ac_word... " >&6; } 10240if ${ac_cv_prog_NMEDIT+:} false; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 if test -n "$NMEDIT"; then 10244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10245else 10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10247for as_dir in $PATH 10248do 10249 IFS=$as_save_IFS 10250 test -z "$as_dir" && as_dir=. 10251 for ac_exec_ext in '' $ac_executable_extensions; do 10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10255 break 2 10256 fi 10257done 10258 done 10259IFS=$as_save_IFS 10260 10261fi 10262fi 10263NMEDIT=$ac_cv_prog_NMEDIT 10264if test -n "$NMEDIT"; then 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10266$as_echo "$NMEDIT" >&6; } 10267else 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10269$as_echo "no" >&6; } 10270fi 10271 10272 10273fi 10274if test -z "$ac_cv_prog_NMEDIT"; then 10275 ac_ct_NMEDIT=$NMEDIT 10276 # Extract the first word of "nmedit", so it can be a program name with args. 10277set dummy nmedit; ac_word=$2 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10279$as_echo_n "checking for $ac_word... " >&6; } 10280if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10281 $as_echo_n "(cached) " >&6 10282else 10283 if test -n "$ac_ct_NMEDIT"; then 10284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10285else 10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10287for as_dir in $PATH 10288do 10289 IFS=$as_save_IFS 10290 test -z "$as_dir" && as_dir=. 10291 for ac_exec_ext in '' $ac_executable_extensions; do 10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10293 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10295 break 2 10296 fi 10297done 10298 done 10299IFS=$as_save_IFS 10300 10301fi 10302fi 10303ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10304if test -n "$ac_ct_NMEDIT"; then 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10306$as_echo "$ac_ct_NMEDIT" >&6; } 10307else 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10309$as_echo "no" >&6; } 10310fi 10311 10312 if test "x$ac_ct_NMEDIT" = x; then 10313 NMEDIT=":" 10314 else 10315 case $cross_compiling:$ac_tool_warned in 10316yes:) 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10319ac_tool_warned=yes ;; 10320esac 10321 NMEDIT=$ac_ct_NMEDIT 10322 fi 10323else 10324 NMEDIT="$ac_cv_prog_NMEDIT" 10325fi 10326 10327 if test -n "$ac_tool_prefix"; then 10328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10329set dummy ${ac_tool_prefix}lipo; ac_word=$2 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10331$as_echo_n "checking for $ac_word... " >&6; } 10332if ${ac_cv_prog_LIPO+:} false; then : 10333 $as_echo_n "(cached) " >&6 10334else 10335 if test -n "$LIPO"; then 10336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10337else 10338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10339for as_dir in $PATH 10340do 10341 IFS=$as_save_IFS 10342 test -z "$as_dir" && as_dir=. 10343 for ac_exec_ext in '' $ac_executable_extensions; do 10344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10347 break 2 10348 fi 10349done 10350 done 10351IFS=$as_save_IFS 10352 10353fi 10354fi 10355LIPO=$ac_cv_prog_LIPO 10356if test -n "$LIPO"; then 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10358$as_echo "$LIPO" >&6; } 10359else 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10361$as_echo "no" >&6; } 10362fi 10363 10364 10365fi 10366if test -z "$ac_cv_prog_LIPO"; then 10367 ac_ct_LIPO=$LIPO 10368 # Extract the first word of "lipo", so it can be a program name with args. 10369set dummy lipo; ac_word=$2 10370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10371$as_echo_n "checking for $ac_word... " >&6; } 10372if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10373 $as_echo_n "(cached) " >&6 10374else 10375 if test -n "$ac_ct_LIPO"; then 10376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10377else 10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10379for as_dir in $PATH 10380do 10381 IFS=$as_save_IFS 10382 test -z "$as_dir" && as_dir=. 10383 for ac_exec_ext in '' $ac_executable_extensions; do 10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10385 ac_cv_prog_ac_ct_LIPO="lipo" 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10387 break 2 10388 fi 10389done 10390 done 10391IFS=$as_save_IFS 10392 10393fi 10394fi 10395ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10396if test -n "$ac_ct_LIPO"; then 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10398$as_echo "$ac_ct_LIPO" >&6; } 10399else 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10401$as_echo "no" >&6; } 10402fi 10403 10404 if test "x$ac_ct_LIPO" = x; then 10405 LIPO=":" 10406 else 10407 case $cross_compiling:$ac_tool_warned in 10408yes:) 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10411ac_tool_warned=yes ;; 10412esac 10413 LIPO=$ac_ct_LIPO 10414 fi 10415else 10416 LIPO="$ac_cv_prog_LIPO" 10417fi 10418 10419 if test -n "$ac_tool_prefix"; then 10420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10421set dummy ${ac_tool_prefix}otool; ac_word=$2 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10423$as_echo_n "checking for $ac_word... " >&6; } 10424if ${ac_cv_prog_OTOOL+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 if test -n "$OTOOL"; then 10428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10429else 10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10431for as_dir in $PATH 10432do 10433 IFS=$as_save_IFS 10434 test -z "$as_dir" && as_dir=. 10435 for ac_exec_ext in '' $ac_executable_extensions; do 10436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10439 break 2 10440 fi 10441done 10442 done 10443IFS=$as_save_IFS 10444 10445fi 10446fi 10447OTOOL=$ac_cv_prog_OTOOL 10448if test -n "$OTOOL"; then 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10450$as_echo "$OTOOL" >&6; } 10451else 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10453$as_echo "no" >&6; } 10454fi 10455 10456 10457fi 10458if test -z "$ac_cv_prog_OTOOL"; then 10459 ac_ct_OTOOL=$OTOOL 10460 # Extract the first word of "otool", so it can be a program name with args. 10461set dummy otool; ac_word=$2 10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10463$as_echo_n "checking for $ac_word... " >&6; } 10464if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 if test -n "$ac_ct_OTOOL"; then 10468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10469else 10470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10471for as_dir in $PATH 10472do 10473 IFS=$as_save_IFS 10474 test -z "$as_dir" && as_dir=. 10475 for ac_exec_ext in '' $ac_executable_extensions; do 10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10477 ac_cv_prog_ac_ct_OTOOL="otool" 10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10479 break 2 10480 fi 10481done 10482 done 10483IFS=$as_save_IFS 10484 10485fi 10486fi 10487ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10488if test -n "$ac_ct_OTOOL"; then 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10490$as_echo "$ac_ct_OTOOL" >&6; } 10491else 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10493$as_echo "no" >&6; } 10494fi 10495 10496 if test "x$ac_ct_OTOOL" = x; then 10497 OTOOL=":" 10498 else 10499 case $cross_compiling:$ac_tool_warned in 10500yes:) 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10503ac_tool_warned=yes ;; 10504esac 10505 OTOOL=$ac_ct_OTOOL 10506 fi 10507else 10508 OTOOL="$ac_cv_prog_OTOOL" 10509fi 10510 10511 if test -n "$ac_tool_prefix"; then 10512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10513set dummy ${ac_tool_prefix}otool64; ac_word=$2 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10515$as_echo_n "checking for $ac_word... " >&6; } 10516if ${ac_cv_prog_OTOOL64+:} false; then : 10517 $as_echo_n "(cached) " >&6 10518else 10519 if test -n "$OTOOL64"; then 10520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10521else 10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10523for as_dir in $PATH 10524do 10525 IFS=$as_save_IFS 10526 test -z "$as_dir" && as_dir=. 10527 for ac_exec_ext in '' $ac_executable_extensions; do 10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10531 break 2 10532 fi 10533done 10534 done 10535IFS=$as_save_IFS 10536 10537fi 10538fi 10539OTOOL64=$ac_cv_prog_OTOOL64 10540if test -n "$OTOOL64"; then 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10542$as_echo "$OTOOL64" >&6; } 10543else 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10545$as_echo "no" >&6; } 10546fi 10547 10548 10549fi 10550if test -z "$ac_cv_prog_OTOOL64"; then 10551 ac_ct_OTOOL64=$OTOOL64 10552 # Extract the first word of "otool64", so it can be a program name with args. 10553set dummy otool64; ac_word=$2 10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10555$as_echo_n "checking for $ac_word... " >&6; } 10556if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 if test -n "$ac_ct_OTOOL64"; then 10560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10561else 10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10563for as_dir in $PATH 10564do 10565 IFS=$as_save_IFS 10566 test -z "$as_dir" && as_dir=. 10567 for ac_exec_ext in '' $ac_executable_extensions; do 10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10569 ac_cv_prog_ac_ct_OTOOL64="otool64" 10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10571 break 2 10572 fi 10573done 10574 done 10575IFS=$as_save_IFS 10576 10577fi 10578fi 10579ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10580if test -n "$ac_ct_OTOOL64"; then 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10582$as_echo "$ac_ct_OTOOL64" >&6; } 10583else 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10585$as_echo "no" >&6; } 10586fi 10587 10588 if test "x$ac_ct_OTOOL64" = x; then 10589 OTOOL64=":" 10590 else 10591 case $cross_compiling:$ac_tool_warned in 10592yes:) 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10595ac_tool_warned=yes ;; 10596esac 10597 OTOOL64=$ac_ct_OTOOL64 10598 fi 10599else 10600 OTOOL64="$ac_cv_prog_OTOOL64" 10601fi 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10630$as_echo_n "checking for -single_module linker flag... " >&6; } 10631if ${lt_cv_apple_cc_single_mod+:} false; then : 10632 $as_echo_n "(cached) " >&6 10633else 10634 lt_cv_apple_cc_single_mod=no 10635 if test -z "${LT_MULTI_MODULE}"; then 10636 # By default we will add the -single_module flag. You can override 10637 # by either setting the environment variable LT_MULTI_MODULE 10638 # non-empty at configure time, or by adding -multi_module to the 10639 # link flags. 10640 rm -rf libconftest.dylib* 10641 echo "int foo(void){return 1;}" > conftest.c 10642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10643-dynamiclib -Wl,-single_module conftest.c" >&5 10644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10646 _lt_result=$? 10647 # If there is a non-empty error log, and "single_module" 10648 # appears in it, assume the flag caused a linker warning 10649 if test -s conftest.err && $GREP single_module conftest.err; then 10650 cat conftest.err >&5 10651 # Otherwise, if the output was created with a 0 exit code from 10652 # the compiler, it worked. 10653 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 10654 lt_cv_apple_cc_single_mod=yes 10655 else 10656 cat conftest.err >&5 10657 fi 10658 rm -rf libconftest.dylib* 10659 rm -f conftest.* 10660 fi 10661fi 10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10663$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10664 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10666$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10667if ${lt_cv_ld_exported_symbols_list+:} false; then : 10668 $as_echo_n "(cached) " >&6 10669else 10670 lt_cv_ld_exported_symbols_list=no 10671 save_LDFLAGS=$LDFLAGS 10672 echo "_main" > conftest.sym 10673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10675/* end confdefs.h. */ 10676 10677int 10678main () 10679{ 10680 10681 ; 10682 return 0; 10683} 10684_ACEOF 10685if ac_fn_c_try_link "$LINENO"; then : 10686 lt_cv_ld_exported_symbols_list=yes 10687else 10688 lt_cv_ld_exported_symbols_list=no 10689fi 10690rm -f core conftest.err conftest.$ac_objext \ 10691 conftest$ac_exeext conftest.$ac_ext 10692 LDFLAGS="$save_LDFLAGS" 10693 10694fi 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10696$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10697 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10699$as_echo_n "checking for -force_load linker flag... " >&6; } 10700if ${lt_cv_ld_force_load+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702else 10703 lt_cv_ld_force_load=no 10704 cat > conftest.c << _LT_EOF 10705int forced_loaded() { return 2;} 10706_LT_EOF 10707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10709 echo "$AR cru libconftest.a conftest.o" >&5 10710 $AR cru libconftest.a conftest.o 2>&5 10711 echo "$RANLIB libconftest.a" >&5 10712 $RANLIB libconftest.a 2>&5 10713 cat > conftest.c << _LT_EOF 10714int main() { return 0;} 10715_LT_EOF 10716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10718 _lt_result=$? 10719 if test -s conftest.err && $GREP force_load conftest.err; then 10720 cat conftest.err >&5 10721 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10722 lt_cv_ld_force_load=yes 10723 else 10724 cat conftest.err >&5 10725 fi 10726 rm -f conftest.err libconftest.a conftest conftest.c 10727 rm -rf conftest.dSYM 10728 10729fi 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10731$as_echo "$lt_cv_ld_force_load" >&6; } 10732 case $host_os in 10733 rhapsody* | darwin1.[012]) 10734 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10735 darwin1.*) 10736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10737 darwin*) # darwin 5.x on 10738 # if running on 10.5 or later, the deployment target defaults 10739 # to the OS version, if on x86, and 10.4, the deployment 10740 # target defaults to 10.4. Don't you love it? 10741 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10742 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10743 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10744 10.[012]*) 10745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10746 10.*) 10747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10748 esac 10749 ;; 10750 esac 10751 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10752 _lt_dar_single_mod='$single_module' 10753 fi 10754 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10755 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10756 else 10757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10758 fi 10759 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10760 _lt_dsymutil='~$DSYMUTIL $lib || :' 10761 else 10762 _lt_dsymutil= 10763 fi 10764 ;; 10765 esac 10766 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10768$as_echo_n "checking for ANSI C header files... " >&6; } 10769if ${ac_cv_header_stdc+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774#include <stdlib.h> 10775#include <stdarg.h> 10776#include <string.h> 10777#include <float.h> 10778 10779int 10780main () 10781{ 10782 10783 ; 10784 return 0; 10785} 10786_ACEOF 10787if ac_fn_c_try_compile "$LINENO"; then : 10788 ac_cv_header_stdc=yes 10789else 10790 ac_cv_header_stdc=no 10791fi 10792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10793 10794if test $ac_cv_header_stdc = yes; then 10795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798#include <string.h> 10799 10800_ACEOF 10801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10802 $EGREP "memchr" >/dev/null 2>&1; then : 10803 10804else 10805 ac_cv_header_stdc=no 10806fi 10807rm -f conftest* 10808 10809fi 10810 10811if test $ac_cv_header_stdc = yes; then 10812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815#include <stdlib.h> 10816 10817_ACEOF 10818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10819 $EGREP "free" >/dev/null 2>&1; then : 10820 10821else 10822 ac_cv_header_stdc=no 10823fi 10824rm -f conftest* 10825 10826fi 10827 10828if test $ac_cv_header_stdc = yes; then 10829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10830 if test "$cross_compiling" = yes; then : 10831 : 10832else 10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835#include <ctype.h> 10836#include <stdlib.h> 10837#if ((' ' & 0x0FF) == 0x020) 10838# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10839# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10840#else 10841# define ISLOWER(c) \ 10842 (('a' <= (c) && (c) <= 'i') \ 10843 || ('j' <= (c) && (c) <= 'r') \ 10844 || ('s' <= (c) && (c) <= 'z')) 10845# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10846#endif 10847 10848#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10849int 10850main () 10851{ 10852 int i; 10853 for (i = 0; i < 256; i++) 10854 if (XOR (islower (i), ISLOWER (i)) 10855 || toupper (i) != TOUPPER (i)) 10856 return 2; 10857 return 0; 10858} 10859_ACEOF 10860if ac_fn_c_try_run "$LINENO"; then : 10861 10862else 10863 ac_cv_header_stdc=no 10864fi 10865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10866 conftest.$ac_objext conftest.beam conftest.$ac_ext 10867fi 10868 10869fi 10870fi 10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10872$as_echo "$ac_cv_header_stdc" >&6; } 10873if test $ac_cv_header_stdc = yes; then 10874 10875$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10876 10877fi 10878 10879# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10880for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10881 inttypes.h stdint.h unistd.h 10882do : 10883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10885" 10886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10887 cat >>confdefs.h <<_ACEOF 10888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10889_ACEOF 10890 10891fi 10892 10893done 10894 10895 10896for ac_header in dlfcn.h 10897do : 10898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10899" 10900if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10901 cat >>confdefs.h <<_ACEOF 10902#define HAVE_DLFCN_H 1 10903_ACEOF 10904 10905fi 10906 10907done 10908 10909 10910 10911 10912func_stripname_cnf () 10913{ 10914 case ${2} in 10915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 10916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 10917 esac 10918} # func_stripname_cnf 10919 10920 10921 10922 10923 10924# Set options 10925 10926 10927 10928 enable_dlopen=no 10929 10930 10931 enable_win32_dll=no 10932 10933 10934 # Check whether --enable-shared was given. 10935if test "${enable_shared+set}" = set; then : 10936 enableval=$enable_shared; p=${PACKAGE-default} 10937 case $enableval in 10938 yes) enable_shared=yes ;; 10939 no) enable_shared=no ;; 10940 *) 10941 enable_shared=no 10942 # Look at the argument we got. We use all the common list separators. 10943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10944 for pkg in $enableval; do 10945 IFS="$lt_save_ifs" 10946 if test "X$pkg" = "X$p"; then 10947 enable_shared=yes 10948 fi 10949 done 10950 IFS="$lt_save_ifs" 10951 ;; 10952 esac 10953else 10954 enable_shared=yes 10955fi 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 # Check whether --enable-static was given. 10966if test "${enable_static+set}" = set; then : 10967 enableval=$enable_static; p=${PACKAGE-default} 10968 case $enableval in 10969 yes) enable_static=yes ;; 10970 no) enable_static=no ;; 10971 *) 10972 enable_static=no 10973 # Look at the argument we got. We use all the common list separators. 10974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10975 for pkg in $enableval; do 10976 IFS="$lt_save_ifs" 10977 if test "X$pkg" = "X$p"; then 10978 enable_static=yes 10979 fi 10980 done 10981 IFS="$lt_save_ifs" 10982 ;; 10983 esac 10984else 10985 enable_static=yes 10986fi 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997# Check whether --with-pic was given. 10998if test "${with_pic+set}" = set; then : 10999 withval=$with_pic; lt_p=${PACKAGE-default} 11000 case $withval in 11001 yes|no) pic_mode=$withval ;; 11002 *) 11003 pic_mode=default 11004 # Look at the argument we got. We use all the common list separators. 11005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11006 for lt_pkg in $withval; do 11007 IFS="$lt_save_ifs" 11008 if test "X$lt_pkg" = "X$lt_p"; then 11009 pic_mode=yes 11010 fi 11011 done 11012 IFS="$lt_save_ifs" 11013 ;; 11014 esac 11015else 11016 pic_mode=default 11017fi 11018 11019 11020test -z "$pic_mode" && pic_mode=default 11021 11022 11023 11024 11025 11026 11027 11028 # Check whether --enable-fast-install was given. 11029if test "${enable_fast_install+set}" = set; then : 11030 enableval=$enable_fast_install; p=${PACKAGE-default} 11031 case $enableval in 11032 yes) enable_fast_install=yes ;; 11033 no) enable_fast_install=no ;; 11034 *) 11035 enable_fast_install=no 11036 # Look at the argument we got. We use all the common list separators. 11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11038 for pkg in $enableval; do 11039 IFS="$lt_save_ifs" 11040 if test "X$pkg" = "X$p"; then 11041 enable_fast_install=yes 11042 fi 11043 done 11044 IFS="$lt_save_ifs" 11045 ;; 11046 esac 11047else 11048 enable_fast_install=yes 11049fi 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061# This can be used to rebuild libtool when needed 11062LIBTOOL_DEPS="$ltmain" 11063 11064# Always use our own libtool. 11065LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096test -z "$LN_S" && LN_S="ln -s" 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111if test -n "${ZSH_VERSION+set}" ; then 11112 setopt NO_GLOB_SUBST 11113fi 11114 11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11116$as_echo_n "checking for objdir... " >&6; } 11117if ${lt_cv_objdir+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 rm -f .libs 2>/dev/null 11121mkdir .libs 2>/dev/null 11122if test -d .libs; then 11123 lt_cv_objdir=.libs 11124else 11125 # MS-DOS does not allow filenames that begin with a dot. 11126 lt_cv_objdir=_libs 11127fi 11128rmdir .libs 2>/dev/null 11129fi 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11131$as_echo "$lt_cv_objdir" >&6; } 11132objdir=$lt_cv_objdir 11133 11134 11135 11136 11137 11138cat >>confdefs.h <<_ACEOF 11139#define LT_OBJDIR "$lt_cv_objdir/" 11140_ACEOF 11141 11142 11143 11144 11145case $host_os in 11146aix3*) 11147 # AIX sometimes has problems with the GCC collect2 program. For some 11148 # reason, if we set the COLLECT_NAMES environment variable, the problems 11149 # vanish in a puff of smoke. 11150 if test "X${COLLECT_NAMES+set}" != Xset; then 11151 COLLECT_NAMES= 11152 export COLLECT_NAMES 11153 fi 11154 ;; 11155esac 11156 11157# Global variables: 11158ofile=libtool 11159can_build_shared=yes 11160 11161# All known linkers require a `.a' archive for static linking (except MSVC, 11162# which needs '.lib'). 11163libext=a 11164 11165with_gnu_ld="$lt_cv_prog_gnu_ld" 11166 11167old_CC="$CC" 11168old_CFLAGS="$CFLAGS" 11169 11170# Set sane defaults for various variables 11171test -z "$CC" && CC=cc 11172test -z "$LTCC" && LTCC=$CC 11173test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11174test -z "$LD" && LD=ld 11175test -z "$ac_objext" && ac_objext=o 11176 11177for cc_temp in $compiler""; do 11178 case $cc_temp in 11179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11181 \-*) ;; 11182 *) break;; 11183 esac 11184done 11185cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11186 11187 11188# Only perform the check for file, if the check method requires it 11189test -z "$MAGIC_CMD" && MAGIC_CMD=file 11190case $deplibs_check_method in 11191file_magic*) 11192 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11194$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11195if ${lt_cv_path_MAGIC_CMD+:} false; then : 11196 $as_echo_n "(cached) " >&6 11197else 11198 case $MAGIC_CMD in 11199[\\/*] | ?:[\\/]*) 11200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11201 ;; 11202*) 11203 lt_save_MAGIC_CMD="$MAGIC_CMD" 11204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11206 for ac_dir in $ac_dummy; do 11207 IFS="$lt_save_ifs" 11208 test -z "$ac_dir" && ac_dir=. 11209 if test -f $ac_dir/${ac_tool_prefix}file; then 11210 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11211 if test -n "$file_magic_test_file"; then 11212 case $deplibs_check_method in 11213 "file_magic "*) 11214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11217 $EGREP "$file_magic_regex" > /dev/null; then 11218 : 11219 else 11220 cat <<_LT_EOF 1>&2 11221 11222*** Warning: the command libtool uses to detect shared libraries, 11223*** $file_magic_cmd, produces output that libtool cannot recognize. 11224*** The result is that libtool may fail to recognize shared libraries 11225*** as such. This will affect the creation of libtool libraries that 11226*** depend on shared libraries, but programs linked with such libtool 11227*** libraries will work regardless of this problem. Nevertheless, you 11228*** may want to report the problem to your system manager and/or to 11229*** bug-libtool@gnu.org 11230 11231_LT_EOF 11232 fi ;; 11233 esac 11234 fi 11235 break 11236 fi 11237 done 11238 IFS="$lt_save_ifs" 11239 MAGIC_CMD="$lt_save_MAGIC_CMD" 11240 ;; 11241esac 11242fi 11243 11244MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11245if test -n "$MAGIC_CMD"; then 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11247$as_echo "$MAGIC_CMD" >&6; } 11248else 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11250$as_echo "no" >&6; } 11251fi 11252 11253 11254 11255 11256 11257if test -z "$lt_cv_path_MAGIC_CMD"; then 11258 if test -n "$ac_tool_prefix"; then 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11260$as_echo_n "checking for file... " >&6; } 11261if ${lt_cv_path_MAGIC_CMD+:} false; then : 11262 $as_echo_n "(cached) " >&6 11263else 11264 case $MAGIC_CMD in 11265[\\/*] | ?:[\\/]*) 11266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11267 ;; 11268*) 11269 lt_save_MAGIC_CMD="$MAGIC_CMD" 11270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11272 for ac_dir in $ac_dummy; do 11273 IFS="$lt_save_ifs" 11274 test -z "$ac_dir" && ac_dir=. 11275 if test -f $ac_dir/file; then 11276 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11277 if test -n "$file_magic_test_file"; then 11278 case $deplibs_check_method in 11279 "file_magic "*) 11280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11283 $EGREP "$file_magic_regex" > /dev/null; then 11284 : 11285 else 11286 cat <<_LT_EOF 1>&2 11287 11288*** Warning: the command libtool uses to detect shared libraries, 11289*** $file_magic_cmd, produces output that libtool cannot recognize. 11290*** The result is that libtool may fail to recognize shared libraries 11291*** as such. This will affect the creation of libtool libraries that 11292*** depend on shared libraries, but programs linked with such libtool 11293*** libraries will work regardless of this problem. Nevertheless, you 11294*** may want to report the problem to your system manager and/or to 11295*** bug-libtool@gnu.org 11296 11297_LT_EOF 11298 fi ;; 11299 esac 11300 fi 11301 break 11302 fi 11303 done 11304 IFS="$lt_save_ifs" 11305 MAGIC_CMD="$lt_save_MAGIC_CMD" 11306 ;; 11307esac 11308fi 11309 11310MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11311if test -n "$MAGIC_CMD"; then 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11313$as_echo "$MAGIC_CMD" >&6; } 11314else 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11316$as_echo "no" >&6; } 11317fi 11318 11319 11320 else 11321 MAGIC_CMD=: 11322 fi 11323fi 11324 11325 fi 11326 ;; 11327esac 11328 11329# Use C for the default configuration in the libtool script 11330 11331lt_save_CC="$CC" 11332ac_ext=c 11333ac_cpp='$CPP $CPPFLAGS' 11334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11336ac_compiler_gnu=$ac_cv_c_compiler_gnu 11337 11338 11339# Source file extension for C test sources. 11340ac_ext=c 11341 11342# Object file extension for compiled C test sources. 11343objext=o 11344objext=$objext 11345 11346# Code to be used in simple compile tests 11347lt_simple_compile_test_code="int some_variable = 0;" 11348 11349# Code to be used in simple link tests 11350lt_simple_link_test_code='int main(){return(0);}' 11351 11352 11353 11354 11355 11356 11357 11358# If no C compiler was specified, use CC. 11359LTCC=${LTCC-"$CC"} 11360 11361# If no C compiler flags were specified, use CFLAGS. 11362LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11363 11364# Allow CC to be a program name with arguments. 11365compiler=$CC 11366 11367# Save the default compiler, since it gets overwritten when the other 11368# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11369compiler_DEFAULT=$CC 11370 11371# save warnings/boilerplate of simple test code 11372ac_outfile=conftest.$ac_objext 11373echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11375_lt_compiler_boilerplate=`cat conftest.err` 11376$RM conftest* 11377 11378ac_outfile=conftest.$ac_objext 11379echo "$lt_simple_link_test_code" >conftest.$ac_ext 11380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11381_lt_linker_boilerplate=`cat conftest.err` 11382$RM -r conftest* 11383 11384 11385## CAVEAT EMPTOR: 11386## There is no encapsulation within the following macros, do not change 11387## the running order or otherwise move them around unless you know exactly 11388## what you are doing... 11389if test -n "$compiler"; then 11390 11391lt_prog_compiler_no_builtin_flag= 11392 11393if test "$GCC" = yes; then 11394 case $cc_basename in 11395 nvcc*) 11396 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11397 *) 11398 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11399 esac 11400 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11402$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11403if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 lt_cv_prog_compiler_rtti_exceptions=no 11407 ac_outfile=conftest.$ac_objext 11408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11409 lt_compiler_flag="-fno-rtti -fno-exceptions" 11410 # Insert the option either (1) after the last *FLAGS variable, or 11411 # (2) before a word containing "conftest.", or (3) at the end. 11412 # Note that $ac_compile itself does not contain backslashes and begins 11413 # with a dollar sign (not a hyphen), so the echo should work correctly. 11414 # The option is referenced via a variable to avoid confusing sed. 11415 lt_compile=`echo "$ac_compile" | $SED \ 11416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11418 -e 's:$: $lt_compiler_flag:'` 11419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11420 (eval "$lt_compile" 2>conftest.err) 11421 ac_status=$? 11422 cat conftest.err >&5 11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11424 if (exit $ac_status) && test -s "$ac_outfile"; then 11425 # The compiler can only warn and ignore the option if not recognized 11426 # So say no if there are warnings other than the usual output. 11427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11430 lt_cv_prog_compiler_rtti_exceptions=yes 11431 fi 11432 fi 11433 $RM conftest* 11434 11435fi 11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11437$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11438 11439if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11441else 11442 : 11443fi 11444 11445fi 11446 11447 11448 11449 11450 11451 11452 lt_prog_compiler_wl= 11453lt_prog_compiler_pic= 11454lt_prog_compiler_static= 11455 11456 11457 if test "$GCC" = yes; then 11458 lt_prog_compiler_wl='-Wl,' 11459 lt_prog_compiler_static='-static' 11460 11461 case $host_os in 11462 aix*) 11463 # All AIX code is PIC. 11464 if test "$host_cpu" = ia64; then 11465 # AIX 5 now supports IA64 processor 11466 lt_prog_compiler_static='-Bstatic' 11467 fi 11468 ;; 11469 11470 amigaos*) 11471 case $host_cpu in 11472 powerpc) 11473 # see comment about AmigaOS4 .so support 11474 lt_prog_compiler_pic='-fPIC' 11475 ;; 11476 m68k) 11477 # FIXME: we need at least 68020 code to build shared libraries, but 11478 # adding the `-m68020' flag to GCC prevents building anything better, 11479 # like `-m68040'. 11480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11481 ;; 11482 esac 11483 ;; 11484 11485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11486 # PIC is the default for these OSes. 11487 ;; 11488 11489 mingw* | cygwin* | pw32* | os2* | cegcc*) 11490 # This hack is so that the source file can tell whether it is being 11491 # built for inclusion in a dll (and should export symbols for example). 11492 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11493 # (--disable-auto-import) libraries 11494 lt_prog_compiler_pic='-DDLL_EXPORT' 11495 ;; 11496 11497 darwin* | rhapsody*) 11498 # PIC is the default on this platform 11499 # Common symbols not allowed in MH_DYLIB files 11500 lt_prog_compiler_pic='-fno-common' 11501 ;; 11502 11503 haiku*) 11504 # PIC is the default for Haiku. 11505 # The "-static" flag exists, but is broken. 11506 lt_prog_compiler_static= 11507 ;; 11508 11509 hpux*) 11510 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11511 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11512 # sets the default TLS model and affects inlining. 11513 case $host_cpu in 11514 hppa*64*) 11515 # +Z the default 11516 ;; 11517 *) 11518 lt_prog_compiler_pic='-fPIC' 11519 ;; 11520 esac 11521 ;; 11522 11523 interix[3-9]*) 11524 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11525 # Instead, we relocate shared libraries at runtime. 11526 ;; 11527 11528 msdosdjgpp*) 11529 # Just because we use GCC doesn't mean we suddenly get shared libraries 11530 # on systems that don't support them. 11531 lt_prog_compiler_can_build_shared=no 11532 enable_shared=no 11533 ;; 11534 11535 *nto* | *qnx*) 11536 # QNX uses GNU C++, but need to define -shared option too, otherwise 11537 # it will coredump. 11538 lt_prog_compiler_pic='-fPIC -shared' 11539 ;; 11540 11541 sysv4*MP*) 11542 if test -d /usr/nec; then 11543 lt_prog_compiler_pic=-Kconform_pic 11544 fi 11545 ;; 11546 11547 *) 11548 lt_prog_compiler_pic='-fPIC' 11549 ;; 11550 esac 11551 11552 case $cc_basename in 11553 nvcc*) # Cuda Compiler Driver 2.2 11554 lt_prog_compiler_wl='-Xlinker ' 11555 if test -n "$lt_prog_compiler_pic"; then 11556 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11557 fi 11558 ;; 11559 esac 11560 else 11561 # PORTME Check for flag to pass linker flags through the system compiler. 11562 case $host_os in 11563 aix*) 11564 lt_prog_compiler_wl='-Wl,' 11565 if test "$host_cpu" = ia64; then 11566 # AIX 5 now supports IA64 processor 11567 lt_prog_compiler_static='-Bstatic' 11568 else 11569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11570 fi 11571 ;; 11572 11573 mingw* | cygwin* | pw32* | os2* | cegcc*) 11574 # This hack is so that the source file can tell whether it is being 11575 # built for inclusion in a dll (and should export symbols for example). 11576 lt_prog_compiler_pic='-DDLL_EXPORT' 11577 ;; 11578 11579 hpux9* | hpux10* | hpux11*) 11580 lt_prog_compiler_wl='-Wl,' 11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11582 # not for PA HP-UX. 11583 case $host_cpu in 11584 hppa*64*|ia64*) 11585 # +Z the default 11586 ;; 11587 *) 11588 lt_prog_compiler_pic='+Z' 11589 ;; 11590 esac 11591 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11592 lt_prog_compiler_static='${wl}-a ${wl}archive' 11593 ;; 11594 11595 irix5* | irix6* | nonstopux*) 11596 lt_prog_compiler_wl='-Wl,' 11597 # PIC (with -KPIC) is the default. 11598 lt_prog_compiler_static='-non_shared' 11599 ;; 11600 11601 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11602 case $cc_basename in 11603 # old Intel for x86_64 which still supported -KPIC. 11604 ecc*) 11605 lt_prog_compiler_wl='-Wl,' 11606 lt_prog_compiler_pic='-KPIC' 11607 lt_prog_compiler_static='-static' 11608 ;; 11609 # icc used to be incompatible with GCC. 11610 # ICC 10 doesn't accept -KPIC any more. 11611 icc* | ifort*) 11612 lt_prog_compiler_wl='-Wl,' 11613 lt_prog_compiler_pic='-fPIC' 11614 lt_prog_compiler_static='-static' 11615 ;; 11616 # Lahey Fortran 8.1. 11617 lf95*) 11618 lt_prog_compiler_wl='-Wl,' 11619 lt_prog_compiler_pic='--shared' 11620 lt_prog_compiler_static='--static' 11621 ;; 11622 nagfor*) 11623 # NAG Fortran compiler 11624 lt_prog_compiler_wl='-Wl,-Wl,,' 11625 lt_prog_compiler_pic='-PIC' 11626 lt_prog_compiler_static='-Bstatic' 11627 ;; 11628 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11629 # Portland Group compilers (*not* the Pentium gcc compiler, 11630 # which looks to be a dead project) 11631 lt_prog_compiler_wl='-Wl,' 11632 lt_prog_compiler_pic='-fpic' 11633 lt_prog_compiler_static='-Bstatic' 11634 ;; 11635 ccc*) 11636 lt_prog_compiler_wl='-Wl,' 11637 # All Alpha code is PIC. 11638 lt_prog_compiler_static='-non_shared' 11639 ;; 11640 xl* | bgxl* | bgf* | mpixl*) 11641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11642 lt_prog_compiler_wl='-Wl,' 11643 lt_prog_compiler_pic='-qpic' 11644 lt_prog_compiler_static='-qstaticlink' 11645 ;; 11646 *) 11647 case `$CC -V 2>&1 | sed 5q` in 11648 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11649 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11650 lt_prog_compiler_pic='-KPIC' 11651 lt_prog_compiler_static='-Bstatic' 11652 lt_prog_compiler_wl='' 11653 ;; 11654 *Sun\ F* | *Sun*Fortran*) 11655 lt_prog_compiler_pic='-KPIC' 11656 lt_prog_compiler_static='-Bstatic' 11657 lt_prog_compiler_wl='-Qoption ld ' 11658 ;; 11659 *Sun\ C*) 11660 # Sun C 5.9 11661 lt_prog_compiler_pic='-KPIC' 11662 lt_prog_compiler_static='-Bstatic' 11663 lt_prog_compiler_wl='-Wl,' 11664 ;; 11665 *Intel*\ [CF]*Compiler*) 11666 lt_prog_compiler_wl='-Wl,' 11667 lt_prog_compiler_pic='-fPIC' 11668 lt_prog_compiler_static='-static' 11669 ;; 11670 *Portland\ Group*) 11671 lt_prog_compiler_wl='-Wl,' 11672 lt_prog_compiler_pic='-fpic' 11673 lt_prog_compiler_static='-Bstatic' 11674 ;; 11675 esac 11676 ;; 11677 esac 11678 ;; 11679 11680 newsos6) 11681 lt_prog_compiler_pic='-KPIC' 11682 lt_prog_compiler_static='-Bstatic' 11683 ;; 11684 11685 *nto* | *qnx*) 11686 # QNX uses GNU C++, but need to define -shared option too, otherwise 11687 # it will coredump. 11688 lt_prog_compiler_pic='-fPIC -shared' 11689 ;; 11690 11691 osf3* | osf4* | osf5*) 11692 lt_prog_compiler_wl='-Wl,' 11693 # All OSF/1 code is PIC. 11694 lt_prog_compiler_static='-non_shared' 11695 ;; 11696 11697 rdos*) 11698 lt_prog_compiler_static='-non_shared' 11699 ;; 11700 11701 solaris*) 11702 lt_prog_compiler_pic='-KPIC' 11703 lt_prog_compiler_static='-Bstatic' 11704 case $cc_basename in 11705 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11706 lt_prog_compiler_wl='-Qoption ld ';; 11707 *) 11708 lt_prog_compiler_wl='-Wl,';; 11709 esac 11710 ;; 11711 11712 sunos4*) 11713 lt_prog_compiler_wl='-Qoption ld ' 11714 lt_prog_compiler_pic='-PIC' 11715 lt_prog_compiler_static='-Bstatic' 11716 ;; 11717 11718 sysv4 | sysv4.2uw2* | sysv4.3*) 11719 lt_prog_compiler_wl='-Wl,' 11720 lt_prog_compiler_pic='-KPIC' 11721 lt_prog_compiler_static='-Bstatic' 11722 ;; 11723 11724 sysv4*MP*) 11725 if test -d /usr/nec ;then 11726 lt_prog_compiler_pic='-Kconform_pic' 11727 lt_prog_compiler_static='-Bstatic' 11728 fi 11729 ;; 11730 11731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11732 lt_prog_compiler_wl='-Wl,' 11733 lt_prog_compiler_pic='-KPIC' 11734 lt_prog_compiler_static='-Bstatic' 11735 ;; 11736 11737 unicos*) 11738 lt_prog_compiler_wl='-Wl,' 11739 lt_prog_compiler_can_build_shared=no 11740 ;; 11741 11742 uts4*) 11743 lt_prog_compiler_pic='-pic' 11744 lt_prog_compiler_static='-Bstatic' 11745 ;; 11746 11747 *) 11748 lt_prog_compiler_can_build_shared=no 11749 ;; 11750 esac 11751 fi 11752 11753case $host_os in 11754 # For platforms which do not support PIC, -DPIC is meaningless: 11755 *djgpp*) 11756 lt_prog_compiler_pic= 11757 ;; 11758 *) 11759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11760 ;; 11761esac 11762 11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11764$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11765if ${lt_cv_prog_compiler_pic+:} false; then : 11766 $as_echo_n "(cached) " >&6 11767else 11768 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11769fi 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11771$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11772lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11773 11774# 11775# Check to make sure the PIC flag actually works. 11776# 11777if test -n "$lt_prog_compiler_pic"; then 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11779$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11780if ${lt_cv_prog_compiler_pic_works+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782else 11783 lt_cv_prog_compiler_pic_works=no 11784 ac_outfile=conftest.$ac_objext 11785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11787 # Insert the option either (1) after the last *FLAGS variable, or 11788 # (2) before a word containing "conftest.", or (3) at the end. 11789 # Note that $ac_compile itself does not contain backslashes and begins 11790 # with a dollar sign (not a hyphen), so the echo should work correctly. 11791 # The option is referenced via a variable to avoid confusing sed. 11792 lt_compile=`echo "$ac_compile" | $SED \ 11793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11795 -e 's:$: $lt_compiler_flag:'` 11796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11797 (eval "$lt_compile" 2>conftest.err) 11798 ac_status=$? 11799 cat conftest.err >&5 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 if (exit $ac_status) && test -s "$ac_outfile"; then 11802 # The compiler can only warn and ignore the option if not recognized 11803 # So say no if there are warnings other than the usual output. 11804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11807 lt_cv_prog_compiler_pic_works=yes 11808 fi 11809 fi 11810 $RM conftest* 11811 11812fi 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11814$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11815 11816if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11817 case $lt_prog_compiler_pic in 11818 "" | " "*) ;; 11819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11820 esac 11821else 11822 lt_prog_compiler_pic= 11823 lt_prog_compiler_can_build_shared=no 11824fi 11825 11826fi 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838# 11839# Check to make sure the static flag actually works. 11840# 11841wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11843$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11844if ${lt_cv_prog_compiler_static_works+:} false; then : 11845 $as_echo_n "(cached) " >&6 11846else 11847 lt_cv_prog_compiler_static_works=no 11848 save_LDFLAGS="$LDFLAGS" 11849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11850 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11852 # The linker can only warn and ignore the option if not recognized 11853 # So say no if there are warnings 11854 if test -s conftest.err; then 11855 # Append any errors to the config.log. 11856 cat conftest.err 1>&5 11857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11859 if diff conftest.exp conftest.er2 >/dev/null; then 11860 lt_cv_prog_compiler_static_works=yes 11861 fi 11862 else 11863 lt_cv_prog_compiler_static_works=yes 11864 fi 11865 fi 11866 $RM -r conftest* 11867 LDFLAGS="$save_LDFLAGS" 11868 11869fi 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11871$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11872 11873if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11874 : 11875else 11876 lt_prog_compiler_static= 11877fi 11878 11879 11880 11881 11882 11883 11884 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11886$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11887if ${lt_cv_prog_compiler_c_o+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 lt_cv_prog_compiler_c_o=no 11891 $RM -r conftest 2>/dev/null 11892 mkdir conftest 11893 cd conftest 11894 mkdir out 11895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11896 11897 lt_compiler_flag="-o out/conftest2.$ac_objext" 11898 # Insert the option either (1) after the last *FLAGS variable, or 11899 # (2) before a word containing "conftest.", or (3) at the end. 11900 # Note that $ac_compile itself does not contain backslashes and begins 11901 # with a dollar sign (not a hyphen), so the echo should work correctly. 11902 lt_compile=`echo "$ac_compile" | $SED \ 11903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11905 -e 's:$: $lt_compiler_flag:'` 11906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11907 (eval "$lt_compile" 2>out/conftest.err) 11908 ac_status=$? 11909 cat out/conftest.err >&5 11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11911 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11912 then 11913 # The compiler can only warn and ignore the option if not recognized 11914 # So say no if there are warnings 11915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11918 lt_cv_prog_compiler_c_o=yes 11919 fi 11920 fi 11921 chmod u+w . 2>&5 11922 $RM conftest* 11923 # SGI C++ compiler will create directory out/ii_files/ for 11924 # template instantiation 11925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11926 $RM out/* && rmdir out 11927 cd .. 11928 $RM -r conftest 11929 $RM conftest* 11930 11931fi 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11933$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11934 11935 11936 11937 11938 11939 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11941$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11942if ${lt_cv_prog_compiler_c_o+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944else 11945 lt_cv_prog_compiler_c_o=no 11946 $RM -r conftest 2>/dev/null 11947 mkdir conftest 11948 cd conftest 11949 mkdir out 11950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11951 11952 lt_compiler_flag="-o out/conftest2.$ac_objext" 11953 # Insert the option either (1) after the last *FLAGS variable, or 11954 # (2) before a word containing "conftest.", or (3) at the end. 11955 # Note that $ac_compile itself does not contain backslashes and begins 11956 # with a dollar sign (not a hyphen), so the echo should work correctly. 11957 lt_compile=`echo "$ac_compile" | $SED \ 11958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11960 -e 's:$: $lt_compiler_flag:'` 11961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11962 (eval "$lt_compile" 2>out/conftest.err) 11963 ac_status=$? 11964 cat out/conftest.err >&5 11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11966 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11967 then 11968 # The compiler can only warn and ignore the option if not recognized 11969 # So say no if there are warnings 11970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11973 lt_cv_prog_compiler_c_o=yes 11974 fi 11975 fi 11976 chmod u+w . 2>&5 11977 $RM conftest* 11978 # SGI C++ compiler will create directory out/ii_files/ for 11979 # template instantiation 11980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11981 $RM out/* && rmdir out 11982 cd .. 11983 $RM -r conftest 11984 $RM conftest* 11985 11986fi 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11988$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11989 11990 11991 11992 11993hard_links="nottested" 11994if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11995 # do not overwrite the value of need_locks provided by the user 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11997$as_echo_n "checking if we can lock with hard links... " >&6; } 11998 hard_links=yes 11999 $RM conftest* 12000 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12001 touch conftest.a 12002 ln conftest.a conftest.b 2>&5 || hard_links=no 12003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12005$as_echo "$hard_links" >&6; } 12006 if test "$hard_links" = no; then 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12008$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12009 need_locks=warn 12010 fi 12011else 12012 need_locks=no 12013fi 12014 12015 12016 12017 12018 12019 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12022 12023 runpath_var= 12024 allow_undefined_flag= 12025 always_export_symbols=no 12026 archive_cmds= 12027 archive_expsym_cmds= 12028 compiler_needs_object=no 12029 enable_shared_with_static_runtimes=no 12030 export_dynamic_flag_spec= 12031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12032 hardcode_automatic=no 12033 hardcode_direct=no 12034 hardcode_direct_absolute=no 12035 hardcode_libdir_flag_spec= 12036 hardcode_libdir_separator= 12037 hardcode_minus_L=no 12038 hardcode_shlibpath_var=unsupported 12039 inherit_rpath=no 12040 link_all_deplibs=unknown 12041 module_cmds= 12042 module_expsym_cmds= 12043 old_archive_from_new_cmds= 12044 old_archive_from_expsyms_cmds= 12045 thread_safe_flag_spec= 12046 whole_archive_flag_spec= 12047 # include_expsyms should be a list of space-separated symbols to be *always* 12048 # included in the symbol list 12049 include_expsyms= 12050 # exclude_expsyms can be an extended regexp of symbols to exclude 12051 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12053 # as well as any symbol that contains `d'. 12054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12056 # platforms (ab)use it in PIC code, but their linkers get confused if 12057 # the symbol is explicitly referenced. Since portable code cannot 12058 # rely on this symbol name, it's probably fine to never include it in 12059 # preloaded symbol tables. 12060 # Exclude shared library initialization/finalization symbols. 12061 extract_expsyms_cmds= 12062 12063 case $host_os in 12064 cygwin* | mingw* | pw32* | cegcc*) 12065 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12066 # When not using gcc, we currently assume that we are using 12067 # Microsoft Visual C++. 12068 if test "$GCC" != yes; then 12069 with_gnu_ld=no 12070 fi 12071 ;; 12072 interix*) 12073 # we just hope/assume this is gcc and not c89 (= MSVC++) 12074 with_gnu_ld=yes 12075 ;; 12076 openbsd*) 12077 with_gnu_ld=no 12078 ;; 12079 linux* | k*bsd*-gnu | gnu*) 12080 link_all_deplibs=no 12081 ;; 12082 esac 12083 12084 ld_shlibs=yes 12085 12086 # On some targets, GNU ld is compatible enough with the native linker 12087 # that we're better off using the native interface for both. 12088 lt_use_gnu_ld_interface=no 12089 if test "$with_gnu_ld" = yes; then 12090 case $host_os in 12091 aix*) 12092 # The AIX port of GNU ld has always aspired to compatibility 12093 # with the native linker. However, as the warning in the GNU ld 12094 # block says, versions before 2.19.5* couldn't really create working 12095 # shared libraries, regardless of the interface used. 12096 case `$LD -v 2>&1` in 12097 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12098 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12099 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12100 *) 12101 lt_use_gnu_ld_interface=yes 12102 ;; 12103 esac 12104 ;; 12105 *) 12106 lt_use_gnu_ld_interface=yes 12107 ;; 12108 esac 12109 fi 12110 12111 if test "$lt_use_gnu_ld_interface" = yes; then 12112 # If archive_cmds runs LD, not CC, wlarc should be empty 12113 wlarc='${wl}' 12114 12115 # Set some defaults for GNU ld with shared library support. These 12116 # are reset later if shared libraries are not supported. Putting them 12117 # here allows them to be overridden if necessary. 12118 runpath_var=LD_RUN_PATH 12119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12120 export_dynamic_flag_spec='${wl}--export-dynamic' 12121 # ancient GNU ld didn't support --whole-archive et. al. 12122 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12123 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12124 else 12125 whole_archive_flag_spec= 12126 fi 12127 supports_anon_versioning=no 12128 case `$LD -v 2>&1` in 12129 *GNU\ gold*) supports_anon_versioning=yes ;; 12130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12133 *\ 2.11.*) ;; # other 2.11 versions 12134 *) supports_anon_versioning=yes ;; 12135 esac 12136 12137 # See if GNU ld supports shared libraries. 12138 case $host_os in 12139 aix[3-9]*) 12140 # On AIX/PPC, the GNU linker is very broken 12141 if test "$host_cpu" != ia64; then 12142 ld_shlibs=no 12143 cat <<_LT_EOF 1>&2 12144 12145*** Warning: the GNU linker, at least up to release 2.19, is reported 12146*** to be unable to reliably create shared libraries on AIX. 12147*** Therefore, libtool is disabling shared libraries support. If you 12148*** really care for shared libraries, you may want to install binutils 12149*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12150*** You will then need to restart the configuration process. 12151 12152_LT_EOF 12153 fi 12154 ;; 12155 12156 amigaos*) 12157 case $host_cpu in 12158 powerpc) 12159 # see comment about AmigaOS4 .so support 12160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12161 archive_expsym_cmds='' 12162 ;; 12163 m68k) 12164 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)' 12165 hardcode_libdir_flag_spec='-L$libdir' 12166 hardcode_minus_L=yes 12167 ;; 12168 esac 12169 ;; 12170 12171 beos*) 12172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12173 allow_undefined_flag=unsupported 12174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12175 # support --undefined. This deserves some investigation. FIXME 12176 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12177 else 12178 ld_shlibs=no 12179 fi 12180 ;; 12181 12182 cygwin* | mingw* | pw32* | cegcc*) 12183 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12184 # as there is no search path for DLLs. 12185 hardcode_libdir_flag_spec='-L$libdir' 12186 export_dynamic_flag_spec='${wl}--export-all-symbols' 12187 allow_undefined_flag=unsupported 12188 always_export_symbols=no 12189 enable_shared_with_static_runtimes=yes 12190 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' 12191 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12192 12193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12195 # If the export-symbols file already is a .def file (1st line 12196 # is EXPORTS), use it as is; otherwise, prepend... 12197 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12198 cp $export_symbols $output_objdir/$soname.def; 12199 else 12200 echo EXPORTS > $output_objdir/$soname.def; 12201 cat $export_symbols >> $output_objdir/$soname.def; 12202 fi~ 12203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12204 else 12205 ld_shlibs=no 12206 fi 12207 ;; 12208 12209 haiku*) 12210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12211 link_all_deplibs=yes 12212 ;; 12213 12214 interix[3-9]*) 12215 hardcode_direct=no 12216 hardcode_shlibpath_var=no 12217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12218 export_dynamic_flag_spec='${wl}-E' 12219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12220 # Instead, shared libraries are loaded at an image base (0x10000000 by 12221 # default) and relocated if they conflict, which is a slow very memory 12222 # consuming and fragmenting process. To avoid this, we pick a random, 12223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12224 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12226 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' 12227 ;; 12228 12229 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12230 tmp_diet=no 12231 if test "$host_os" = linux-dietlibc; then 12232 case $cc_basename in 12233 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12234 esac 12235 fi 12236 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12237 && test "$tmp_diet" = no 12238 then 12239 tmp_addflag=' $pic_flag' 12240 tmp_sharedflag='-shared' 12241 case $cc_basename,$host_cpu in 12242 pgcc*) # Portland Group C compiler 12243 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' 12244 tmp_addflag=' $pic_flag' 12245 ;; 12246 pgf77* | pgf90* | pgf95* | pgfortran*) 12247 # Portland Group f77 and f90 compilers 12248 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' 12249 tmp_addflag=' $pic_flag -Mnomain' ;; 12250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12251 tmp_addflag=' -i_dynamic' ;; 12252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12253 tmp_addflag=' -i_dynamic -nofor_main' ;; 12254 ifc* | ifort*) # Intel Fortran compiler 12255 tmp_addflag=' -nofor_main' ;; 12256 lf95*) # Lahey Fortran 8.1 12257 whole_archive_flag_spec= 12258 tmp_sharedflag='--shared' ;; 12259 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12260 tmp_sharedflag='-qmkshrobj' 12261 tmp_addflag= ;; 12262 nvcc*) # Cuda Compiler Driver 2.2 12263 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' 12264 compiler_needs_object=yes 12265 ;; 12266 esac 12267 case `$CC -V 2>&1 | sed 5q` in 12268 *Sun\ C*) # Sun C 5.9 12269 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' 12270 compiler_needs_object=yes 12271 tmp_sharedflag='-G' ;; 12272 *Sun\ F*) # Sun Fortran 8.3 12273 tmp_sharedflag='-G' ;; 12274 esac 12275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12276 12277 if test "x$supports_anon_versioning" = xyes; then 12278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12280 echo "local: *; };" >> $output_objdir/$libname.ver~ 12281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12282 fi 12283 12284 case $cc_basename in 12285 xlf* | bgf* | bgxlf* | mpixlf*) 12286 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12287 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12289 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12290 if test "x$supports_anon_versioning" = xyes; then 12291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12293 echo "local: *; };" >> $output_objdir/$libname.ver~ 12294 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12295 fi 12296 ;; 12297 esac 12298 else 12299 ld_shlibs=no 12300 fi 12301 ;; 12302 12303 netbsd* | netbsdelf*-gnu) 12304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12306 wlarc= 12307 else 12308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12310 fi 12311 ;; 12312 12313 solaris*) 12314 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12315 ld_shlibs=no 12316 cat <<_LT_EOF 1>&2 12317 12318*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12319*** create shared libraries on Solaris systems. Therefore, libtool 12320*** is disabling shared libraries support. We urge you to upgrade GNU 12321*** binutils to release 2.9.1 or newer. Another option is to modify 12322*** your PATH or compiler configuration so that the native linker is 12323*** used, and then restart. 12324 12325_LT_EOF 12326 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12328 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12329 else 12330 ld_shlibs=no 12331 fi 12332 ;; 12333 12334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12335 case `$LD -v 2>&1` in 12336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12337 ld_shlibs=no 12338 cat <<_LT_EOF 1>&2 12339 12340*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12341*** reliably create shared libraries on SCO systems. Therefore, libtool 12342*** is disabling shared libraries support. We urge you to upgrade GNU 12343*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12344*** your PATH or compiler configuration so that the native linker is 12345*** used, and then restart. 12346 12347_LT_EOF 12348 ;; 12349 *) 12350 # For security reasons, it is highly recommended that you always 12351 # use absolute paths for naming shared libraries, and exclude the 12352 # DT_RUNPATH tag from executables and libraries. But doing so 12353 # requires that you compile everything twice, which is a pain. 12354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12358 else 12359 ld_shlibs=no 12360 fi 12361 ;; 12362 esac 12363 ;; 12364 12365 sunos4*) 12366 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12367 wlarc= 12368 hardcode_direct=yes 12369 hardcode_shlibpath_var=no 12370 ;; 12371 12372 *) 12373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12376 else 12377 ld_shlibs=no 12378 fi 12379 ;; 12380 esac 12381 12382 if test "$ld_shlibs" = no; then 12383 runpath_var= 12384 hardcode_libdir_flag_spec= 12385 export_dynamic_flag_spec= 12386 whole_archive_flag_spec= 12387 fi 12388 else 12389 # PORTME fill in a description of your system's linker (not GNU ld) 12390 case $host_os in 12391 aix3*) 12392 allow_undefined_flag=unsupported 12393 always_export_symbols=yes 12394 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' 12395 # Note: this linker hardcodes the directories in LIBPATH if there 12396 # are no directories specified by -L. 12397 hardcode_minus_L=yes 12398 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12399 # Neither direct hardcoding nor static linking is supported with a 12400 # broken collect2. 12401 hardcode_direct=unsupported 12402 fi 12403 ;; 12404 12405 aix[4-9]*) 12406 if test "$host_cpu" = ia64; then 12407 # On IA64, the linker does run time linking by default, so we don't 12408 # have to do anything special. 12409 aix_use_runtimelinking=no 12410 exp_sym_flag='-Bexport' 12411 no_entry_flag="" 12412 else 12413 # If we're using GNU nm, then we don't want the "-C" option. 12414 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12415 # Also, AIX nm treats weak defined symbols like other global 12416 # defined symbols, whereas GNU nm marks them as "W". 12417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12418 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12419 else 12420 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12421 fi 12422 aix_use_runtimelinking=no 12423 12424 # Test if we are trying to use run time linking or normal 12425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12426 # need to do runtime linking. 12427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12428 for ld_flag in $LDFLAGS; do 12429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12430 aix_use_runtimelinking=yes 12431 break 12432 fi 12433 done 12434 ;; 12435 esac 12436 12437 exp_sym_flag='-bexport' 12438 no_entry_flag='-bnoentry' 12439 fi 12440 12441 # When large executables or shared objects are built, AIX ld can 12442 # have problems creating the table of contents. If linking a library 12443 # or program results in "error TOC overflow" add -mminimal-toc to 12444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12446 12447 archive_cmds='' 12448 hardcode_direct=yes 12449 hardcode_direct_absolute=yes 12450 hardcode_libdir_separator=':' 12451 link_all_deplibs=yes 12452 file_list_spec='${wl}-f,' 12453 12454 if test "$GCC" = yes; then 12455 case $host_os in aix4.[012]|aix4.[012].*) 12456 # We only want to do this on AIX 4.2 and lower, the check 12457 # below for broken collect2 doesn't work under 4.3+ 12458 collect2name=`${CC} -print-prog-name=collect2` 12459 if test -f "$collect2name" && 12460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12461 then 12462 # We have reworked collect2 12463 : 12464 else 12465 # We have old collect2 12466 hardcode_direct=unsupported 12467 # It fails to find uninstalled libraries when the uninstalled 12468 # path is not listed in the libpath. Setting hardcode_minus_L 12469 # to unsupported forces relinking 12470 hardcode_minus_L=yes 12471 hardcode_libdir_flag_spec='-L$libdir' 12472 hardcode_libdir_separator= 12473 fi 12474 ;; 12475 esac 12476 shared_flag='-shared' 12477 if test "$aix_use_runtimelinking" = yes; then 12478 shared_flag="$shared_flag "'${wl}-G' 12479 fi 12480 link_all_deplibs=no 12481 else 12482 # not using gcc 12483 if test "$host_cpu" = ia64; then 12484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12485 # chokes on -Wl,-G. The following line is correct: 12486 shared_flag='-G' 12487 else 12488 if test "$aix_use_runtimelinking" = yes; then 12489 shared_flag='${wl}-G' 12490 else 12491 shared_flag='${wl}-bM:SRE' 12492 fi 12493 fi 12494 fi 12495 12496 export_dynamic_flag_spec='${wl}-bexpall' 12497 # It seems that -bexpall does not export symbols beginning with 12498 # underscore (_), so it is better to generate a list of symbols to export. 12499 always_export_symbols=yes 12500 if test "$aix_use_runtimelinking" = yes; then 12501 # Warning - without using the other runtime loading flags (-brtl), 12502 # -berok will link without error, but may produce a broken library. 12503 allow_undefined_flag='-berok' 12504 # Determine the default libpath from the value encoded in an 12505 # empty executable. 12506 if test "${lt_cv_aix_libpath+set}" = set; then 12507 aix_libpath=$lt_cv_aix_libpath 12508else 12509 if ${lt_cv_aix_libpath_+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514 12515int 12516main () 12517{ 12518 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_link "$LINENO"; then : 12524 12525 lt_aix_libpath_sed=' 12526 /Import File Strings/,/^$/ { 12527 /^0/ { 12528 s/^0 *\([^ ]*\) *$/\1/ 12529 p 12530 } 12531 }' 12532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12533 # Check for a 64-bit object if we didn't find anything. 12534 if test -z "$lt_cv_aix_libpath_"; then 12535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12536 fi 12537fi 12538rm -f core conftest.err conftest.$ac_objext \ 12539 conftest$ac_exeext conftest.$ac_ext 12540 if test -z "$lt_cv_aix_libpath_"; then 12541 lt_cv_aix_libpath_="/usr/lib:/lib" 12542 fi 12543 12544fi 12545 12546 aix_libpath=$lt_cv_aix_libpath_ 12547fi 12548 12549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12550 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12551 else 12552 if test "$host_cpu" = ia64; then 12553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12554 allow_undefined_flag="-z nodefs" 12555 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" 12556 else 12557 # Determine the default libpath from the value encoded in an 12558 # empty executable. 12559 if test "${lt_cv_aix_libpath+set}" = set; then 12560 aix_libpath=$lt_cv_aix_libpath 12561else 12562 if ${lt_cv_aix_libpath_+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567 12568int 12569main () 12570{ 12571 12572 ; 12573 return 0; 12574} 12575_ACEOF 12576if ac_fn_c_try_link "$LINENO"; then : 12577 12578 lt_aix_libpath_sed=' 12579 /Import File Strings/,/^$/ { 12580 /^0/ { 12581 s/^0 *\([^ ]*\) *$/\1/ 12582 p 12583 } 12584 }' 12585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12586 # Check for a 64-bit object if we didn't find anything. 12587 if test -z "$lt_cv_aix_libpath_"; then 12588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12589 fi 12590fi 12591rm -f core conftest.err conftest.$ac_objext \ 12592 conftest$ac_exeext conftest.$ac_ext 12593 if test -z "$lt_cv_aix_libpath_"; then 12594 lt_cv_aix_libpath_="/usr/lib:/lib" 12595 fi 12596 12597fi 12598 12599 aix_libpath=$lt_cv_aix_libpath_ 12600fi 12601 12602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12603 # Warning - without using the other run time loading flags, 12604 # -berok will link without error, but may produce a broken library. 12605 no_undefined_flag=' ${wl}-bernotok' 12606 allow_undefined_flag=' ${wl}-berok' 12607 if test "$with_gnu_ld" = yes; then 12608 # We only use this code for GNU lds that support --whole-archive. 12609 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12610 else 12611 # Exported symbols can be pulled into shared objects from archives 12612 whole_archive_flag_spec='$convenience' 12613 fi 12614 archive_cmds_need_lc=yes 12615 # This is similar to how AIX traditionally builds its shared libraries. 12616 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12617 fi 12618 fi 12619 ;; 12620 12621 amigaos*) 12622 case $host_cpu in 12623 powerpc) 12624 # see comment about AmigaOS4 .so support 12625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12626 archive_expsym_cmds='' 12627 ;; 12628 m68k) 12629 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)' 12630 hardcode_libdir_flag_spec='-L$libdir' 12631 hardcode_minus_L=yes 12632 ;; 12633 esac 12634 ;; 12635 12636 bsdi[45]*) 12637 export_dynamic_flag_spec=-rdynamic 12638 ;; 12639 12640 cygwin* | mingw* | pw32* | cegcc*) 12641 # When not using gcc, we currently assume that we are using 12642 # Microsoft Visual C++. 12643 # hardcode_libdir_flag_spec is actually meaningless, as there is 12644 # no search path for DLLs. 12645 case $cc_basename in 12646 cl*) 12647 # Native MSVC 12648 hardcode_libdir_flag_spec=' ' 12649 allow_undefined_flag=unsupported 12650 always_export_symbols=yes 12651 file_list_spec='@' 12652 # Tell ltmain to make .lib files, not .a files. 12653 libext=lib 12654 # Tell ltmain to make .dll files, not .so files. 12655 shrext_cmds=".dll" 12656 # FIXME: Setting linknames here is a bad hack. 12657 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12659 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12660 else 12661 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12662 fi~ 12663 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12664 linknames=' 12665 # The linker will not automatically build a static lib if we build a DLL. 12666 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12667 enable_shared_with_static_runtimes=yes 12668 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12670 # Don't use ranlib 12671 old_postinstall_cmds='chmod 644 $oldlib' 12672 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12673 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12674 case $lt_outputfile in 12675 *.exe|*.EXE) ;; 12676 *) 12677 lt_outputfile="$lt_outputfile.exe" 12678 lt_tool_outputfile="$lt_tool_outputfile.exe" 12679 ;; 12680 esac~ 12681 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12682 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12683 $RM "$lt_outputfile.manifest"; 12684 fi' 12685 ;; 12686 *) 12687 # Assume MSVC wrapper 12688 hardcode_libdir_flag_spec=' ' 12689 allow_undefined_flag=unsupported 12690 # Tell ltmain to make .lib files, not .a files. 12691 libext=lib 12692 # Tell ltmain to make .dll files, not .so files. 12693 shrext_cmds=".dll" 12694 # FIXME: Setting linknames here is a bad hack. 12695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12696 # The linker will automatically build a .lib file if we build a DLL. 12697 old_archive_from_new_cmds='true' 12698 # FIXME: Should let the user specify the lib program. 12699 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12700 enable_shared_with_static_runtimes=yes 12701 ;; 12702 esac 12703 ;; 12704 12705 darwin* | rhapsody*) 12706 12707 12708 archive_cmds_need_lc=no 12709 hardcode_direct=no 12710 hardcode_automatic=yes 12711 hardcode_shlibpath_var=unsupported 12712 if test "$lt_cv_ld_force_load" = "yes"; then 12713 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\"`' 12714 12715 else 12716 whole_archive_flag_spec='' 12717 fi 12718 link_all_deplibs=yes 12719 allow_undefined_flag="$_lt_dar_allow_undefined" 12720 case $cc_basename in 12721 ifort*) _lt_dar_can_shared=yes ;; 12722 *) _lt_dar_can_shared=$GCC ;; 12723 esac 12724 if test "$_lt_dar_can_shared" = "yes"; then 12725 output_verbose_link_cmd=func_echo_all 12726 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12727 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12728 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}" 12729 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}" 12730 12731 else 12732 ld_shlibs=no 12733 fi 12734 12735 ;; 12736 12737 dgux*) 12738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12739 hardcode_libdir_flag_spec='-L$libdir' 12740 hardcode_shlibpath_var=no 12741 ;; 12742 12743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12744 # support. Future versions do this automatically, but an explicit c++rt0.o 12745 # does not break anything, and helps significantly (at the cost of a little 12746 # extra space). 12747 freebsd2.2*) 12748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12749 hardcode_libdir_flag_spec='-R$libdir' 12750 hardcode_direct=yes 12751 hardcode_shlibpath_var=no 12752 ;; 12753 12754 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12755 freebsd2.*) 12756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12757 hardcode_direct=yes 12758 hardcode_minus_L=yes 12759 hardcode_shlibpath_var=no 12760 ;; 12761 12762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12763 freebsd* | dragonfly*) 12764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12765 hardcode_libdir_flag_spec='-R$libdir' 12766 hardcode_direct=yes 12767 hardcode_shlibpath_var=no 12768 ;; 12769 12770 hpux9*) 12771 if test "$GCC" = yes; then 12772 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12773 else 12774 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12775 fi 12776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12777 hardcode_libdir_separator=: 12778 hardcode_direct=yes 12779 12780 # hardcode_minus_L: Not really in the search PATH, 12781 # but as the default location of the library. 12782 hardcode_minus_L=yes 12783 export_dynamic_flag_spec='${wl}-E' 12784 ;; 12785 12786 hpux10*) 12787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12788 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12789 else 12790 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12791 fi 12792 if test "$with_gnu_ld" = no; then 12793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12794 hardcode_libdir_separator=: 12795 hardcode_direct=yes 12796 hardcode_direct_absolute=yes 12797 export_dynamic_flag_spec='${wl}-E' 12798 # hardcode_minus_L: Not really in the search PATH, 12799 # but as the default location of the library. 12800 hardcode_minus_L=yes 12801 fi 12802 ;; 12803 12804 hpux11*) 12805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12806 case $host_cpu in 12807 hppa*64*) 12808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12809 ;; 12810 ia64*) 12811 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12812 ;; 12813 *) 12814 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12815 ;; 12816 esac 12817 else 12818 case $host_cpu in 12819 hppa*64*) 12820 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12821 ;; 12822 ia64*) 12823 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12824 ;; 12825 *) 12826 12827 # Older versions of the 11.00 compiler do not understand -b yet 12828 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12830$as_echo_n "checking if $CC understands -b... " >&6; } 12831if ${lt_cv_prog_compiler__b+:} false; then : 12832 $as_echo_n "(cached) " >&6 12833else 12834 lt_cv_prog_compiler__b=no 12835 save_LDFLAGS="$LDFLAGS" 12836 LDFLAGS="$LDFLAGS -b" 12837 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12839 # The linker can only warn and ignore the option if not recognized 12840 # So say no if there are warnings 12841 if test -s conftest.err; then 12842 # Append any errors to the config.log. 12843 cat conftest.err 1>&5 12844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12846 if diff conftest.exp conftest.er2 >/dev/null; then 12847 lt_cv_prog_compiler__b=yes 12848 fi 12849 else 12850 lt_cv_prog_compiler__b=yes 12851 fi 12852 fi 12853 $RM -r conftest* 12854 LDFLAGS="$save_LDFLAGS" 12855 12856fi 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12858$as_echo "$lt_cv_prog_compiler__b" >&6; } 12859 12860if test x"$lt_cv_prog_compiler__b" = xyes; then 12861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12862else 12863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12864fi 12865 12866 ;; 12867 esac 12868 fi 12869 if test "$with_gnu_ld" = no; then 12870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12871 hardcode_libdir_separator=: 12872 12873 case $host_cpu in 12874 hppa*64*|ia64*) 12875 hardcode_direct=no 12876 hardcode_shlibpath_var=no 12877 ;; 12878 *) 12879 hardcode_direct=yes 12880 hardcode_direct_absolute=yes 12881 export_dynamic_flag_spec='${wl}-E' 12882 12883 # hardcode_minus_L: Not really in the search PATH, 12884 # but as the default location of the library. 12885 hardcode_minus_L=yes 12886 ;; 12887 esac 12888 fi 12889 ;; 12890 12891 irix5* | irix6* | nonstopux*) 12892 if test "$GCC" = yes; then 12893 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' 12894 # Try to use the -exported_symbol ld option, if it does not 12895 # work, assume that -exports_file does not work either and 12896 # implicitly export all symbols. 12897 # This should be the same for all languages, so no per-tag cache variable. 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12899$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12900if ${lt_cv_irix_exported_symbol+:} false; then : 12901 $as_echo_n "(cached) " >&6 12902else 12903 save_LDFLAGS="$LDFLAGS" 12904 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12906/* end confdefs.h. */ 12907int foo (void) { return 0; } 12908_ACEOF 12909if ac_fn_c_try_link "$LINENO"; then : 12910 lt_cv_irix_exported_symbol=yes 12911else 12912 lt_cv_irix_exported_symbol=no 12913fi 12914rm -f core conftest.err conftest.$ac_objext \ 12915 conftest$ac_exeext conftest.$ac_ext 12916 LDFLAGS="$save_LDFLAGS" 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12919$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12920 if test "$lt_cv_irix_exported_symbol" = yes; then 12921 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' 12922 fi 12923 else 12924 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' 12925 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' 12926 fi 12927 archive_cmds_need_lc='no' 12928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12929 hardcode_libdir_separator=: 12930 inherit_rpath=yes 12931 link_all_deplibs=yes 12932 ;; 12933 12934 netbsd* | netbsdelf*-gnu) 12935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12937 else 12938 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12939 fi 12940 hardcode_libdir_flag_spec='-R$libdir' 12941 hardcode_direct=yes 12942 hardcode_shlibpath_var=no 12943 ;; 12944 12945 newsos6) 12946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12947 hardcode_direct=yes 12948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12949 hardcode_libdir_separator=: 12950 hardcode_shlibpath_var=no 12951 ;; 12952 12953 *nto* | *qnx*) 12954 ;; 12955 12956 openbsd*) 12957 if test -f /usr/libexec/ld.so; then 12958 hardcode_direct=yes 12959 hardcode_shlibpath_var=no 12960 hardcode_direct_absolute=yes 12961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12965 export_dynamic_flag_spec='${wl}-E' 12966 else 12967 case $host_os in 12968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12970 hardcode_libdir_flag_spec='-R$libdir' 12971 ;; 12972 *) 12973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12975 ;; 12976 esac 12977 fi 12978 else 12979 ld_shlibs=no 12980 fi 12981 ;; 12982 12983 os2*) 12984 hardcode_libdir_flag_spec='-L$libdir' 12985 hardcode_minus_L=yes 12986 allow_undefined_flag=unsupported 12987 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12988 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12989 ;; 12990 12991 osf3*) 12992 if test "$GCC" = yes; then 12993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12994 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' 12995 else 12996 allow_undefined_flag=' -expect_unresolved \*' 12997 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' 12998 fi 12999 archive_cmds_need_lc='no' 13000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13001 hardcode_libdir_separator=: 13002 ;; 13003 13004 osf4* | osf5*) # as osf3* with the addition of -msym flag 13005 if test "$GCC" = yes; then 13006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13007 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' 13008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13009 else 13010 allow_undefined_flag=' -expect_unresolved \*' 13011 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' 13012 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~ 13013 $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' 13014 13015 # Both c and cxx compiler support -rpath directly 13016 hardcode_libdir_flag_spec='-rpath $libdir' 13017 fi 13018 archive_cmds_need_lc='no' 13019 hardcode_libdir_separator=: 13020 ;; 13021 13022 solaris*) 13023 no_undefined_flag=' -z defs' 13024 if test "$GCC" = yes; then 13025 wlarc='${wl}' 13026 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13028 $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' 13029 else 13030 case `$CC -V 2>&1` in 13031 *"Compilers 5.0"*) 13032 wlarc='' 13033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13036 ;; 13037 *) 13038 wlarc='${wl}' 13039 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13042 ;; 13043 esac 13044 fi 13045 hardcode_libdir_flag_spec='-R$libdir' 13046 hardcode_shlibpath_var=no 13047 case $host_os in 13048 solaris2.[0-5] | solaris2.[0-5].*) ;; 13049 *) 13050 # The compiler driver will combine and reorder linker options, 13051 # but understands `-z linker_flag'. GCC discards it without `$wl', 13052 # but is careful enough not to reorder. 13053 # Supported since Solaris 2.6 (maybe 2.5.1?) 13054 if test "$GCC" = yes; then 13055 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13056 else 13057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13058 fi 13059 ;; 13060 esac 13061 link_all_deplibs=yes 13062 ;; 13063 13064 sunos4*) 13065 if test "x$host_vendor" = xsequent; then 13066 # Use $CC to link under sequent, because it throws in some extra .o 13067 # files that make .init and .fini sections work. 13068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13069 else 13070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13071 fi 13072 hardcode_libdir_flag_spec='-L$libdir' 13073 hardcode_direct=yes 13074 hardcode_minus_L=yes 13075 hardcode_shlibpath_var=no 13076 ;; 13077 13078 sysv4) 13079 case $host_vendor in 13080 sni) 13081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13082 hardcode_direct=yes # is this really true??? 13083 ;; 13084 siemens) 13085 ## LD is ld it makes a PLAMLIB 13086 ## CC just makes a GrossModule. 13087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13088 reload_cmds='$CC -r -o $output$reload_objs' 13089 hardcode_direct=no 13090 ;; 13091 motorola) 13092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13094 ;; 13095 esac 13096 runpath_var='LD_RUN_PATH' 13097 hardcode_shlibpath_var=no 13098 ;; 13099 13100 sysv4.3*) 13101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13102 hardcode_shlibpath_var=no 13103 export_dynamic_flag_spec='-Bexport' 13104 ;; 13105 13106 sysv4*MP*) 13107 if test -d /usr/nec; then 13108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13109 hardcode_shlibpath_var=no 13110 runpath_var=LD_RUN_PATH 13111 hardcode_runpath_var=yes 13112 ld_shlibs=yes 13113 fi 13114 ;; 13115 13116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13117 no_undefined_flag='${wl}-z,text' 13118 archive_cmds_need_lc=no 13119 hardcode_shlibpath_var=no 13120 runpath_var='LD_RUN_PATH' 13121 13122 if test "$GCC" = yes; then 13123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13125 else 13126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13128 fi 13129 ;; 13130 13131 sysv5* | sco3.2v5* | sco5v6*) 13132 # Note: We can NOT use -z defs as we might desire, because we do not 13133 # link with -lc, and that would cause any symbols used from libc to 13134 # always be unresolved, which means just about no library would 13135 # ever link correctly. If we're not using GNU ld we use -z text 13136 # though, which does catch some bad symbols but isn't as heavy-handed 13137 # as -z defs. 13138 no_undefined_flag='${wl}-z,text' 13139 allow_undefined_flag='${wl}-z,nodefs' 13140 archive_cmds_need_lc=no 13141 hardcode_shlibpath_var=no 13142 hardcode_libdir_flag_spec='${wl}-R,$libdir' 13143 hardcode_libdir_separator=':' 13144 link_all_deplibs=yes 13145 export_dynamic_flag_spec='${wl}-Bexport' 13146 runpath_var='LD_RUN_PATH' 13147 13148 if test "$GCC" = yes; then 13149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13151 else 13152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13154 fi 13155 ;; 13156 13157 uts4*) 13158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13159 hardcode_libdir_flag_spec='-L$libdir' 13160 hardcode_shlibpath_var=no 13161 ;; 13162 13163 *) 13164 ld_shlibs=no 13165 ;; 13166 esac 13167 13168 if test x$host_vendor = xsni; then 13169 case $host in 13170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13171 export_dynamic_flag_spec='${wl}-Blargedynsym' 13172 ;; 13173 esac 13174 fi 13175 fi 13176 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13178$as_echo "$ld_shlibs" >&6; } 13179test "$ld_shlibs" = no && can_build_shared=no 13180 13181with_gnu_ld=$with_gnu_ld 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197# 13198# Do we need to explicitly link libc? 13199# 13200case "x$archive_cmds_need_lc" in 13201x|xyes) 13202 # Assume -lc should be added 13203 archive_cmds_need_lc=yes 13204 13205 if test "$enable_shared" = yes && test "$GCC" = yes; then 13206 case $archive_cmds in 13207 *'~'*) 13208 # FIXME: we may have to deal with multi-command sequences. 13209 ;; 13210 '$CC '*) 13211 # Test whether the compiler implicitly links with -lc since on some 13212 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13213 # to ld, don't add -lc before -lgcc. 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13215$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13216if ${lt_cv_archive_cmds_need_lc+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218else 13219 $RM conftest* 13220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13221 13222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13223 (eval $ac_compile) 2>&5 13224 ac_status=$? 13225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13226 test $ac_status = 0; } 2>conftest.err; then 13227 soname=conftest 13228 lib=conftest 13229 libobjs=conftest.$ac_objext 13230 deplibs= 13231 wl=$lt_prog_compiler_wl 13232 pic_flag=$lt_prog_compiler_pic 13233 compiler_flags=-v 13234 linker_flags=-v 13235 verstring= 13236 output_objdir=. 13237 libname=conftest 13238 lt_save_allow_undefined_flag=$allow_undefined_flag 13239 allow_undefined_flag= 13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13242 ac_status=$? 13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13244 test $ac_status = 0; } 13245 then 13246 lt_cv_archive_cmds_need_lc=no 13247 else 13248 lt_cv_archive_cmds_need_lc=yes 13249 fi 13250 allow_undefined_flag=$lt_save_allow_undefined_flag 13251 else 13252 cat conftest.err 1>&5 13253 fi 13254 $RM conftest* 13255 13256fi 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13258$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13260 ;; 13261 esac 13262 fi 13263 ;; 13264esac 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13418$as_echo_n "checking dynamic linker characteristics... " >&6; } 13419 13420if test "$GCC" = yes; then 13421 case $host_os in 13422 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13423 *) lt_awk_arg="/^libraries:/" ;; 13424 esac 13425 case $host_os in 13426 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 13427 *) lt_sed_strip_eq="s,=/,/,g" ;; 13428 esac 13429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13430 case $lt_search_path_spec in 13431 *\;*) 13432 # if the path contains ";" then we assume it to be the separator 13433 # otherwise default to the standard path separator (i.e. ":") - it is 13434 # assumed that no part of a normal pathname contains ";" but that should 13435 # okay in the real world where ";" in dirpaths is itself problematic. 13436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13437 ;; 13438 *) 13439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13440 ;; 13441 esac 13442 # Ok, now we have the path, separated by spaces, we can step through it 13443 # and add multilib dir if necessary. 13444 lt_tmp_lt_search_path_spec= 13445 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13446 for lt_sys_path in $lt_search_path_spec; do 13447 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13449 else 13450 test -d "$lt_sys_path" && \ 13451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13452 fi 13453 done 13454 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13455BEGIN {RS=" "; FS="/|\n";} { 13456 lt_foo=""; 13457 lt_count=0; 13458 for (lt_i = NF; lt_i > 0; lt_i--) { 13459 if ($lt_i != "" && $lt_i != ".") { 13460 if ($lt_i == "..") { 13461 lt_count++; 13462 } else { 13463 if (lt_count == 0) { 13464 lt_foo="/" $lt_i lt_foo; 13465 } else { 13466 lt_count--; 13467 } 13468 } 13469 } 13470 } 13471 if (lt_foo != "") { lt_freq[lt_foo]++; } 13472 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13473}'` 13474 # AWK program above erroneously prepends '/' to C:/dos/paths 13475 # for these hosts. 13476 case $host_os in 13477 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13478 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 13479 esac 13480 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13481else 13482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13483fi 13484library_names_spec= 13485libname_spec='lib$name' 13486soname_spec= 13487shrext_cmds=".so" 13488postinstall_cmds= 13489postuninstall_cmds= 13490finish_cmds= 13491finish_eval= 13492shlibpath_var= 13493shlibpath_overrides_runpath=unknown 13494version_type=none 13495dynamic_linker="$host_os ld.so" 13496sys_lib_dlsearch_path_spec="/lib /usr/lib" 13497need_lib_prefix=unknown 13498hardcode_into_libs=no 13499 13500# when you set need_version to no, make sure it does not cause -set_version 13501# flags to be left without arguments 13502need_version=unknown 13503 13504case $host_os in 13505aix3*) 13506 version_type=linux # correct to gnu/linux during the next big refactor 13507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13508 shlibpath_var=LIBPATH 13509 13510 # AIX 3 has no versioning support, so we append a major version to the name. 13511 soname_spec='${libname}${release}${shared_ext}$major' 13512 ;; 13513 13514aix[4-9]*) 13515 version_type=linux # correct to gnu/linux during the next big refactor 13516 need_lib_prefix=no 13517 need_version=no 13518 hardcode_into_libs=yes 13519 if test "$host_cpu" = ia64; then 13520 # AIX 5 supports IA64 13521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13522 shlibpath_var=LD_LIBRARY_PATH 13523 else 13524 # With GCC up to 2.95.x, collect2 would create an import file 13525 # for dependence libraries. The import file would start with 13526 # the line `#! .'. This would cause the generated library to 13527 # depend on `.', always an invalid library. This was fixed in 13528 # development snapshots of GCC prior to 3.0. 13529 case $host_os in 13530 aix4 | aix4.[01] | aix4.[01].*) 13531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13532 echo ' yes ' 13533 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13534 : 13535 else 13536 can_build_shared=no 13537 fi 13538 ;; 13539 esac 13540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13541 # soname into executable. Probably we can add versioning support to 13542 # collect2, so additional links can be useful in future. 13543 if test "$aix_use_runtimelinking" = yes; then 13544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13545 # instead of lib<name>.a to let people know that these are not 13546 # typical AIX shared libraries. 13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13548 else 13549 # We preserve .a as extension for shared libraries through AIX4.2 13550 # and later when we are not doing run time linking. 13551 library_names_spec='${libname}${release}.a $libname.a' 13552 soname_spec='${libname}${release}${shared_ext}$major' 13553 fi 13554 shlibpath_var=LIBPATH 13555 fi 13556 ;; 13557 13558amigaos*) 13559 case $host_cpu in 13560 powerpc) 13561 # Since July 2007 AmigaOS4 officially supports .so libraries. 13562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13564 ;; 13565 m68k) 13566 library_names_spec='$libname.ixlibrary $libname.a' 13567 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13568 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13569 ;; 13570 esac 13571 ;; 13572 13573beos*) 13574 library_names_spec='${libname}${shared_ext}' 13575 dynamic_linker="$host_os ld.so" 13576 shlibpath_var=LIBRARY_PATH 13577 ;; 13578 13579bsdi[45]*) 13580 version_type=linux # correct to gnu/linux during the next big refactor 13581 need_version=no 13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13583 soname_spec='${libname}${release}${shared_ext}$major' 13584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13585 shlibpath_var=LD_LIBRARY_PATH 13586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13588 # the default ld.so.conf also contains /usr/contrib/lib and 13589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13590 # libtool to hard-code these into programs 13591 ;; 13592 13593cygwin* | mingw* | pw32* | cegcc*) 13594 version_type=windows 13595 shrext_cmds=".dll" 13596 need_version=no 13597 need_lib_prefix=no 13598 13599 case $GCC,$cc_basename in 13600 yes,*) 13601 # gcc 13602 library_names_spec='$libname.dll.a' 13603 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13604 postinstall_cmds='base_file=`basename \${file}`~ 13605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13606 dldir=$destdir/`dirname \$dlpath`~ 13607 test -d \$dldir || mkdir -p \$dldir~ 13608 $install_prog $dir/$dlname \$dldir/$dlname~ 13609 chmod a+x \$dldir/$dlname~ 13610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13612 fi' 13613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13614 dlpath=$dir/\$dldll~ 13615 $RM \$dlpath' 13616 shlibpath_overrides_runpath=yes 13617 13618 case $host_os in 13619 cygwin*) 13620 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13622 13623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13624 ;; 13625 mingw* | cegcc*) 13626 # MinGW DLLs use traditional 'lib' prefix 13627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13628 ;; 13629 pw32*) 13630 # pw32 DLLs use 'pw' prefix rather than 'lib' 13631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13632 ;; 13633 esac 13634 dynamic_linker='Win32 ld.exe' 13635 ;; 13636 13637 *,cl*) 13638 # Native MSVC 13639 libname_spec='$name' 13640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13641 library_names_spec='${libname}.dll.lib' 13642 13643 case $build_os in 13644 mingw*) 13645 sys_lib_search_path_spec= 13646 lt_save_ifs=$IFS 13647 IFS=';' 13648 for lt_path in $LIB 13649 do 13650 IFS=$lt_save_ifs 13651 # Let DOS variable expansion print the short 8.3 style file name. 13652 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13653 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13654 done 13655 IFS=$lt_save_ifs 13656 # Convert to MSYS style. 13657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13658 ;; 13659 cygwin*) 13660 # Convert to unix form, then to dos form, then back to unix form 13661 # but this time dos style (no spaces!) so that the unix form looks 13662 # like /cygdrive/c/PROGRA~1:/cygdr... 13663 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13664 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13665 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13666 ;; 13667 *) 13668 sys_lib_search_path_spec="$LIB" 13669 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13670 # It is most probably a Windows format PATH. 13671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13672 else 13673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13674 fi 13675 # FIXME: find the short name or the path components, as spaces are 13676 # common. (e.g. "Program Files" -> "PROGRA~1") 13677 ;; 13678 esac 13679 13680 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13681 postinstall_cmds='base_file=`basename \${file}`~ 13682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13683 dldir=$destdir/`dirname \$dlpath`~ 13684 test -d \$dldir || mkdir -p \$dldir~ 13685 $install_prog $dir/$dlname \$dldir/$dlname' 13686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13687 dlpath=$dir/\$dldll~ 13688 $RM \$dlpath' 13689 shlibpath_overrides_runpath=yes 13690 dynamic_linker='Win32 link.exe' 13691 ;; 13692 13693 *) 13694 # Assume MSVC wrapper 13695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13696 dynamic_linker='Win32 ld.exe' 13697 ;; 13698 esac 13699 # FIXME: first we should search . and the directory the executable is in 13700 shlibpath_var=PATH 13701 ;; 13702 13703darwin* | rhapsody*) 13704 dynamic_linker="$host_os dyld" 13705 version_type=darwin 13706 need_lib_prefix=no 13707 need_version=no 13708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13709 soname_spec='${libname}${release}${major}$shared_ext' 13710 shlibpath_overrides_runpath=yes 13711 shlibpath_var=DYLD_LIBRARY_PATH 13712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13713 13714 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13716 ;; 13717 13718dgux*) 13719 version_type=linux # correct to gnu/linux during the next big refactor 13720 need_lib_prefix=no 13721 need_version=no 13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13723 soname_spec='${libname}${release}${shared_ext}$major' 13724 shlibpath_var=LD_LIBRARY_PATH 13725 ;; 13726 13727freebsd* | dragonfly*) 13728 # DragonFly does not have aout. When/if they implement a new 13729 # versioning mechanism, adjust this. 13730 if test -x /usr/bin/objformat; then 13731 objformat=`/usr/bin/objformat` 13732 else 13733 case $host_os in 13734 freebsd[23].*) objformat=aout ;; 13735 *) objformat=elf ;; 13736 esac 13737 fi 13738 version_type=freebsd-$objformat 13739 case $version_type in 13740 freebsd-elf*) 13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13742 need_version=no 13743 need_lib_prefix=no 13744 ;; 13745 freebsd-*) 13746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13747 need_version=yes 13748 ;; 13749 esac 13750 shlibpath_var=LD_LIBRARY_PATH 13751 case $host_os in 13752 freebsd2.*) 13753 shlibpath_overrides_runpath=yes 13754 ;; 13755 freebsd3.[01]* | freebsdelf3.[01]*) 13756 shlibpath_overrides_runpath=yes 13757 hardcode_into_libs=yes 13758 ;; 13759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13761 shlibpath_overrides_runpath=no 13762 hardcode_into_libs=yes 13763 ;; 13764 *) # from 4.6 on, and DragonFly 13765 shlibpath_overrides_runpath=yes 13766 hardcode_into_libs=yes 13767 ;; 13768 esac 13769 ;; 13770 13771gnu*) 13772 version_type=linux # correct to gnu/linux during the next big refactor 13773 need_lib_prefix=no 13774 need_version=no 13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13776 soname_spec='${libname}${release}${shared_ext}$major' 13777 shlibpath_var=LD_LIBRARY_PATH 13778 shlibpath_overrides_runpath=no 13779 hardcode_into_libs=yes 13780 ;; 13781 13782haiku*) 13783 version_type=linux # correct to gnu/linux during the next big refactor 13784 need_lib_prefix=no 13785 need_version=no 13786 dynamic_linker="$host_os runtime_loader" 13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13788 soname_spec='${libname}${release}${shared_ext}$major' 13789 shlibpath_var=LIBRARY_PATH 13790 shlibpath_overrides_runpath=yes 13791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13792 hardcode_into_libs=yes 13793 ;; 13794 13795hpux9* | hpux10* | hpux11*) 13796 # Give a soname corresponding to the major version so that dld.sl refuses to 13797 # link against other versions. 13798 version_type=sunos 13799 need_lib_prefix=no 13800 need_version=no 13801 case $host_cpu in 13802 ia64*) 13803 shrext_cmds='.so' 13804 hardcode_into_libs=yes 13805 dynamic_linker="$host_os dld.so" 13806 shlibpath_var=LD_LIBRARY_PATH 13807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13809 soname_spec='${libname}${release}${shared_ext}$major' 13810 if test "X$HPUX_IA64_MODE" = X32; then 13811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13812 else 13813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13814 fi 13815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13816 ;; 13817 hppa*64*) 13818 shrext_cmds='.sl' 13819 hardcode_into_libs=yes 13820 dynamic_linker="$host_os dld.sl" 13821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13824 soname_spec='${libname}${release}${shared_ext}$major' 13825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13827 ;; 13828 *) 13829 shrext_cmds='.sl' 13830 dynamic_linker="$host_os dld.sl" 13831 shlibpath_var=SHLIB_PATH 13832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13834 soname_spec='${libname}${release}${shared_ext}$major' 13835 ;; 13836 esac 13837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13838 postinstall_cmds='chmod 555 $lib' 13839 # or fails outright, so override atomically: 13840 install_override_mode=555 13841 ;; 13842 13843interix[3-9]*) 13844 version_type=linux # correct to gnu/linux during the next big refactor 13845 need_lib_prefix=no 13846 need_version=no 13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13848 soname_spec='${libname}${release}${shared_ext}$major' 13849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13850 shlibpath_var=LD_LIBRARY_PATH 13851 shlibpath_overrides_runpath=no 13852 hardcode_into_libs=yes 13853 ;; 13854 13855irix5* | irix6* | nonstopux*) 13856 case $host_os in 13857 nonstopux*) version_type=nonstopux ;; 13858 *) 13859 if test "$lt_cv_prog_gnu_ld" = yes; then 13860 version_type=linux # correct to gnu/linux during the next big refactor 13861 else 13862 version_type=irix 13863 fi ;; 13864 esac 13865 need_lib_prefix=no 13866 need_version=no 13867 soname_spec='${libname}${release}${shared_ext}$major' 13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13869 case $host_os in 13870 irix5* | nonstopux*) 13871 libsuff= shlibsuff= 13872 ;; 13873 *) 13874 case $LD in # libtool.m4 will add one of these switches to LD 13875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13876 libsuff= shlibsuff= libmagic=32-bit;; 13877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13878 libsuff=32 shlibsuff=N32 libmagic=N32;; 13879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13880 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13881 *) libsuff= shlibsuff= libmagic=never-match;; 13882 esac 13883 ;; 13884 esac 13885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13886 shlibpath_overrides_runpath=no 13887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13889 hardcode_into_libs=yes 13890 ;; 13891 13892# No shared lib support for Linux oldld, aout, or coff. 13893linux*oldld* | linux*aout* | linux*coff*) 13894 dynamic_linker=no 13895 ;; 13896 13897# This must be glibc/ELF. 13898linux* | k*bsd*-gnu | kopensolaris*-gnu) 13899 version_type=linux # correct to gnu/linux during the next big refactor 13900 need_lib_prefix=no 13901 need_version=no 13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13903 soname_spec='${libname}${release}${shared_ext}$major' 13904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13905 shlibpath_var=LD_LIBRARY_PATH 13906 shlibpath_overrides_runpath=no 13907 13908 # Some binutils ld are patched to set DT_RUNPATH 13909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 lt_cv_shlibpath_overrides_runpath=no 13913 save_LDFLAGS=$LDFLAGS 13914 save_libdir=$libdir 13915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919 13920int 13921main () 13922{ 13923 13924 ; 13925 return 0; 13926} 13927_ACEOF 13928if ac_fn_c_try_link "$LINENO"; then : 13929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13930 lt_cv_shlibpath_overrides_runpath=yes 13931fi 13932fi 13933rm -f core conftest.err conftest.$ac_objext \ 13934 conftest$ac_exeext conftest.$ac_ext 13935 LDFLAGS=$save_LDFLAGS 13936 libdir=$save_libdir 13937 13938fi 13939 13940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13941 13942 # This implies no fast_install, which is unacceptable. 13943 # Some rework will be needed to allow for fast_install 13944 # before this can be enabled. 13945 hardcode_into_libs=yes 13946 13947 # Append ld.so.conf contents to the search path 13948 if test -f /etc/ld.so.conf; then 13949 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' ' '` 13950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13951 fi 13952 13953 # We used to test for /lib/ld.so.1 and disable shared libraries on 13954 # powerpc, because MkLinux only supported shared libraries with the 13955 # GNU dynamic linker. Since this was broken with cross compilers, 13956 # most powerpc-linux boxes support dynamic linking these days and 13957 # people can always --disable-shared, the test was removed, and we 13958 # assume the GNU/Linux dynamic linker is in use. 13959 dynamic_linker='GNU/Linux ld.so' 13960 ;; 13961 13962netbsdelf*-gnu) 13963 version_type=linux 13964 need_lib_prefix=no 13965 need_version=no 13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13967 soname_spec='${libname}${release}${shared_ext}$major' 13968 shlibpath_var=LD_LIBRARY_PATH 13969 shlibpath_overrides_runpath=no 13970 hardcode_into_libs=yes 13971 dynamic_linker='NetBSD ld.elf_so' 13972 ;; 13973 13974netbsd*) 13975 version_type=sunos 13976 need_lib_prefix=no 13977 need_version=no 13978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13981 dynamic_linker='NetBSD (a.out) ld.so' 13982 else 13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13984 soname_spec='${libname}${release}${shared_ext}$major' 13985 dynamic_linker='NetBSD ld.elf_so' 13986 fi 13987 shlibpath_var=LD_LIBRARY_PATH 13988 shlibpath_overrides_runpath=yes 13989 hardcode_into_libs=yes 13990 ;; 13991 13992newsos6) 13993 version_type=linux # correct to gnu/linux during the next big refactor 13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13995 shlibpath_var=LD_LIBRARY_PATH 13996 shlibpath_overrides_runpath=yes 13997 ;; 13998 13999*nto* | *qnx*) 14000 version_type=qnx 14001 need_lib_prefix=no 14002 need_version=no 14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14004 soname_spec='${libname}${release}${shared_ext}$major' 14005 shlibpath_var=LD_LIBRARY_PATH 14006 shlibpath_overrides_runpath=no 14007 hardcode_into_libs=yes 14008 dynamic_linker='ldqnx.so' 14009 ;; 14010 14011openbsd*) 14012 version_type=sunos 14013 sys_lib_dlsearch_path_spec="/usr/lib" 14014 need_lib_prefix=no 14015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14016 case $host_os in 14017 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14018 *) need_version=no ;; 14019 esac 14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14022 shlibpath_var=LD_LIBRARY_PATH 14023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14024 case $host_os in 14025 openbsd2.[89] | openbsd2.[89].*) 14026 shlibpath_overrides_runpath=no 14027 ;; 14028 *) 14029 shlibpath_overrides_runpath=yes 14030 ;; 14031 esac 14032 else 14033 shlibpath_overrides_runpath=yes 14034 fi 14035 ;; 14036 14037os2*) 14038 libname_spec='$name' 14039 shrext_cmds=".dll" 14040 need_lib_prefix=no 14041 library_names_spec='$libname${shared_ext} $libname.a' 14042 dynamic_linker='OS/2 ld.exe' 14043 shlibpath_var=LIBPATH 14044 ;; 14045 14046osf3* | osf4* | osf5*) 14047 version_type=osf 14048 need_lib_prefix=no 14049 need_version=no 14050 soname_spec='${libname}${release}${shared_ext}$major' 14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14052 shlibpath_var=LD_LIBRARY_PATH 14053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14055 ;; 14056 14057rdos*) 14058 dynamic_linker=no 14059 ;; 14060 14061solaris*) 14062 version_type=linux # correct to gnu/linux during the next big refactor 14063 need_lib_prefix=no 14064 need_version=no 14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14066 soname_spec='${libname}${release}${shared_ext}$major' 14067 shlibpath_var=LD_LIBRARY_PATH 14068 shlibpath_overrides_runpath=yes 14069 hardcode_into_libs=yes 14070 # ldd complains unless libraries are executable 14071 postinstall_cmds='chmod +x $lib' 14072 ;; 14073 14074sunos4*) 14075 version_type=sunos 14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14078 shlibpath_var=LD_LIBRARY_PATH 14079 shlibpath_overrides_runpath=yes 14080 if test "$with_gnu_ld" = yes; then 14081 need_lib_prefix=no 14082 fi 14083 need_version=yes 14084 ;; 14085 14086sysv4 | sysv4.3*) 14087 version_type=linux # correct to gnu/linux during the next big refactor 14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14089 soname_spec='${libname}${release}${shared_ext}$major' 14090 shlibpath_var=LD_LIBRARY_PATH 14091 case $host_vendor in 14092 sni) 14093 shlibpath_overrides_runpath=no 14094 need_lib_prefix=no 14095 runpath_var=LD_RUN_PATH 14096 ;; 14097 siemens) 14098 need_lib_prefix=no 14099 ;; 14100 motorola) 14101 need_lib_prefix=no 14102 need_version=no 14103 shlibpath_overrides_runpath=no 14104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14105 ;; 14106 esac 14107 ;; 14108 14109sysv4*MP*) 14110 if test -d /usr/nec ;then 14111 version_type=linux # correct to gnu/linux during the next big refactor 14112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14113 soname_spec='$libname${shared_ext}.$major' 14114 shlibpath_var=LD_LIBRARY_PATH 14115 fi 14116 ;; 14117 14118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14119 version_type=freebsd-elf 14120 need_lib_prefix=no 14121 need_version=no 14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14123 soname_spec='${libname}${release}${shared_ext}$major' 14124 shlibpath_var=LD_LIBRARY_PATH 14125 shlibpath_overrides_runpath=yes 14126 hardcode_into_libs=yes 14127 if test "$with_gnu_ld" = yes; then 14128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14129 else 14130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14131 case $host_os in 14132 sco3.2v5*) 14133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14134 ;; 14135 esac 14136 fi 14137 sys_lib_dlsearch_path_spec='/usr/lib' 14138 ;; 14139 14140tpf*) 14141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14142 version_type=linux # correct to gnu/linux during the next big refactor 14143 need_lib_prefix=no 14144 need_version=no 14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14146 shlibpath_var=LD_LIBRARY_PATH 14147 shlibpath_overrides_runpath=no 14148 hardcode_into_libs=yes 14149 ;; 14150 14151uts4*) 14152 version_type=linux # correct to gnu/linux during the next big refactor 14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14154 soname_spec='${libname}${release}${shared_ext}$major' 14155 shlibpath_var=LD_LIBRARY_PATH 14156 ;; 14157 14158*) 14159 dynamic_linker=no 14160 ;; 14161esac 14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14163$as_echo "$dynamic_linker" >&6; } 14164test "$dynamic_linker" = no && can_build_shared=no 14165 14166variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14167if test "$GCC" = yes; then 14168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14169fi 14170 14171if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14173fi 14174if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14176fi 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14270$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14271hardcode_action= 14272if test -n "$hardcode_libdir_flag_spec" || 14273 test -n "$runpath_var" || 14274 test "X$hardcode_automatic" = "Xyes" ; then 14275 14276 # We can hardcode non-existent directories. 14277 if test "$hardcode_direct" != no && 14278 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14279 # have to relink, otherwise we might link with an installed library 14280 # when we should be linking with a yet-to-be-installed one 14281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 14282 test "$hardcode_minus_L" != no; then 14283 # Linking always hardcodes the temporary library directory. 14284 hardcode_action=relink 14285 else 14286 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14287 hardcode_action=immediate 14288 fi 14289else 14290 # We cannot hardcode anything, or else we can only hardcode existing 14291 # directories. 14292 hardcode_action=unsupported 14293fi 14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14295$as_echo "$hardcode_action" >&6; } 14296 14297if test "$hardcode_action" = relink || 14298 test "$inherit_rpath" = yes; then 14299 # Fast installation is not supported 14300 enable_fast_install=no 14301elif test "$shlibpath_overrides_runpath" = yes || 14302 test "$enable_shared" = no; then 14303 # Fast installation is not necessary 14304 enable_fast_install=needless 14305fi 14306 14307 14308 14309 14310 14311 14312 if test "x$enable_dlopen" != xyes; then 14313 enable_dlopen=unknown 14314 enable_dlopen_self=unknown 14315 enable_dlopen_self_static=unknown 14316else 14317 lt_cv_dlopen=no 14318 lt_cv_dlopen_libs= 14319 14320 case $host_os in 14321 beos*) 14322 lt_cv_dlopen="load_add_on" 14323 lt_cv_dlopen_libs= 14324 lt_cv_dlopen_self=yes 14325 ;; 14326 14327 mingw* | pw32* | cegcc*) 14328 lt_cv_dlopen="LoadLibrary" 14329 lt_cv_dlopen_libs= 14330 ;; 14331 14332 cygwin*) 14333 lt_cv_dlopen="dlopen" 14334 lt_cv_dlopen_libs= 14335 ;; 14336 14337 darwin*) 14338 # if libdl is installed we need to link against it 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14340$as_echo_n "checking for dlopen in -ldl... " >&6; } 14341if ${ac_cv_lib_dl_dlopen+:} false; then : 14342 $as_echo_n "(cached) " >&6 14343else 14344 ac_check_lib_save_LIBS=$LIBS 14345LIBS="-ldl $LIBS" 14346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348 14349/* Override any GCC internal prototype to avoid an error. 14350 Use char because int might match the return type of a GCC 14351 builtin and then its argument prototype would still apply. */ 14352#ifdef __cplusplus 14353extern "C" 14354#endif 14355char dlopen (); 14356int 14357main () 14358{ 14359return dlopen (); 14360 ; 14361 return 0; 14362} 14363_ACEOF 14364if ac_fn_c_try_link "$LINENO"; then : 14365 ac_cv_lib_dl_dlopen=yes 14366else 14367 ac_cv_lib_dl_dlopen=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext \ 14370 conftest$ac_exeext conftest.$ac_ext 14371LIBS=$ac_check_lib_save_LIBS 14372fi 14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14374$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14375if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14377else 14378 14379 lt_cv_dlopen="dyld" 14380 lt_cv_dlopen_libs= 14381 lt_cv_dlopen_self=yes 14382 14383fi 14384 14385 ;; 14386 14387 *) 14388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14389if test "x$ac_cv_func_shl_load" = xyes; then : 14390 lt_cv_dlopen="shl_load" 14391else 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14393$as_echo_n "checking for shl_load in -ldld... " >&6; } 14394if ${ac_cv_lib_dld_shl_load+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 ac_check_lib_save_LIBS=$LIBS 14398LIBS="-ldld $LIBS" 14399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400/* end confdefs.h. */ 14401 14402/* Override any GCC internal prototype to avoid an error. 14403 Use char because int might match the return type of a GCC 14404 builtin and then its argument prototype would still apply. */ 14405#ifdef __cplusplus 14406extern "C" 14407#endif 14408char shl_load (); 14409int 14410main () 14411{ 14412return shl_load (); 14413 ; 14414 return 0; 14415} 14416_ACEOF 14417if ac_fn_c_try_link "$LINENO"; then : 14418 ac_cv_lib_dld_shl_load=yes 14419else 14420 ac_cv_lib_dld_shl_load=no 14421fi 14422rm -f core conftest.err conftest.$ac_objext \ 14423 conftest$ac_exeext conftest.$ac_ext 14424LIBS=$ac_check_lib_save_LIBS 14425fi 14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14427$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14428if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14430else 14431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14432if test "x$ac_cv_func_dlopen" = xyes; then : 14433 lt_cv_dlopen="dlopen" 14434else 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14436$as_echo_n "checking for dlopen in -ldl... " >&6; } 14437if ${ac_cv_lib_dl_dlopen+:} false; then : 14438 $as_echo_n "(cached) " >&6 14439else 14440 ac_check_lib_save_LIBS=$LIBS 14441LIBS="-ldl $LIBS" 14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444 14445/* Override any GCC internal prototype to avoid an error. 14446 Use char because int might match the return type of a GCC 14447 builtin and then its argument prototype would still apply. */ 14448#ifdef __cplusplus 14449extern "C" 14450#endif 14451char dlopen (); 14452int 14453main () 14454{ 14455return dlopen (); 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460if ac_fn_c_try_link "$LINENO"; then : 14461 ac_cv_lib_dl_dlopen=yes 14462else 14463 ac_cv_lib_dl_dlopen=no 14464fi 14465rm -f core conftest.err conftest.$ac_objext \ 14466 conftest$ac_exeext conftest.$ac_ext 14467LIBS=$ac_check_lib_save_LIBS 14468fi 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14470$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14471if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14473else 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14475$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14476if ${ac_cv_lib_svld_dlopen+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 ac_check_lib_save_LIBS=$LIBS 14480LIBS="-lsvld $LIBS" 14481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483 14484/* Override any GCC internal prototype to avoid an error. 14485 Use char because int might match the return type of a GCC 14486 builtin and then its argument prototype would still apply. */ 14487#ifdef __cplusplus 14488extern "C" 14489#endif 14490char dlopen (); 14491int 14492main () 14493{ 14494return dlopen (); 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_link "$LINENO"; then : 14500 ac_cv_lib_svld_dlopen=yes 14501else 14502 ac_cv_lib_svld_dlopen=no 14503fi 14504rm -f core conftest.err conftest.$ac_objext \ 14505 conftest$ac_exeext conftest.$ac_ext 14506LIBS=$ac_check_lib_save_LIBS 14507fi 14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14509$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14510if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14512else 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14514$as_echo_n "checking for dld_link in -ldld... " >&6; } 14515if ${ac_cv_lib_dld_dld_link+:} false; then : 14516 $as_echo_n "(cached) " >&6 14517else 14518 ac_check_lib_save_LIBS=$LIBS 14519LIBS="-ldld $LIBS" 14520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14521/* end confdefs.h. */ 14522 14523/* Override any GCC internal prototype to avoid an error. 14524 Use char because int might match the return type of a GCC 14525 builtin and then its argument prototype would still apply. */ 14526#ifdef __cplusplus 14527extern "C" 14528#endif 14529char dld_link (); 14530int 14531main () 14532{ 14533return dld_link (); 14534 ; 14535 return 0; 14536} 14537_ACEOF 14538if ac_fn_c_try_link "$LINENO"; then : 14539 ac_cv_lib_dld_dld_link=yes 14540else 14541 ac_cv_lib_dld_dld_link=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext \ 14544 conftest$ac_exeext conftest.$ac_ext 14545LIBS=$ac_check_lib_save_LIBS 14546fi 14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14548$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14549if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14551fi 14552 14553 14554fi 14555 14556 14557fi 14558 14559 14560fi 14561 14562 14563fi 14564 14565 14566fi 14567 14568 ;; 14569 esac 14570 14571 if test "x$lt_cv_dlopen" != xno; then 14572 enable_dlopen=yes 14573 else 14574 enable_dlopen=no 14575 fi 14576 14577 case $lt_cv_dlopen in 14578 dlopen) 14579 save_CPPFLAGS="$CPPFLAGS" 14580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14581 14582 save_LDFLAGS="$LDFLAGS" 14583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14584 14585 save_LIBS="$LIBS" 14586 LIBS="$lt_cv_dlopen_libs $LIBS" 14587 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14589$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14590if ${lt_cv_dlopen_self+:} false; then : 14591 $as_echo_n "(cached) " >&6 14592else 14593 if test "$cross_compiling" = yes; then : 14594 lt_cv_dlopen_self=cross 14595else 14596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14597 lt_status=$lt_dlunknown 14598 cat > conftest.$ac_ext <<_LT_EOF 14599#line $LINENO "configure" 14600#include "confdefs.h" 14601 14602#if HAVE_DLFCN_H 14603#include <dlfcn.h> 14604#endif 14605 14606#include <stdio.h> 14607 14608#ifdef RTLD_GLOBAL 14609# define LT_DLGLOBAL RTLD_GLOBAL 14610#else 14611# ifdef DL_GLOBAL 14612# define LT_DLGLOBAL DL_GLOBAL 14613# else 14614# define LT_DLGLOBAL 0 14615# endif 14616#endif 14617 14618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14619 find out it does not work in some platform. */ 14620#ifndef LT_DLLAZY_OR_NOW 14621# ifdef RTLD_LAZY 14622# define LT_DLLAZY_OR_NOW RTLD_LAZY 14623# else 14624# ifdef DL_LAZY 14625# define LT_DLLAZY_OR_NOW DL_LAZY 14626# else 14627# ifdef RTLD_NOW 14628# define LT_DLLAZY_OR_NOW RTLD_NOW 14629# else 14630# ifdef DL_NOW 14631# define LT_DLLAZY_OR_NOW DL_NOW 14632# else 14633# define LT_DLLAZY_OR_NOW 0 14634# endif 14635# endif 14636# endif 14637# endif 14638#endif 14639 14640/* When -fvisbility=hidden is used, assume the code has been annotated 14641 correspondingly for the symbols needed. */ 14642#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14643int fnord () __attribute__((visibility("default"))); 14644#endif 14645 14646int fnord () { return 42; } 14647int main () 14648{ 14649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14650 int status = $lt_dlunknown; 14651 14652 if (self) 14653 { 14654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14655 else 14656 { 14657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14658 else puts (dlerror ()); 14659 } 14660 /* dlclose (self); */ 14661 } 14662 else 14663 puts (dlerror ()); 14664 14665 return status; 14666} 14667_LT_EOF 14668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14669 (eval $ac_link) 2>&5 14670 ac_status=$? 14671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14673 (./conftest; exit; ) >&5 2>/dev/null 14674 lt_status=$? 14675 case x$lt_status in 14676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14679 esac 14680 else : 14681 # compilation failed 14682 lt_cv_dlopen_self=no 14683 fi 14684fi 14685rm -fr conftest* 14686 14687 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14690$as_echo "$lt_cv_dlopen_self" >&6; } 14691 14692 if test "x$lt_cv_dlopen_self" = xyes; then 14693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14695$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14696if ${lt_cv_dlopen_self_static+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 if test "$cross_compiling" = yes; then : 14700 lt_cv_dlopen_self_static=cross 14701else 14702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14703 lt_status=$lt_dlunknown 14704 cat > conftest.$ac_ext <<_LT_EOF 14705#line $LINENO "configure" 14706#include "confdefs.h" 14707 14708#if HAVE_DLFCN_H 14709#include <dlfcn.h> 14710#endif 14711 14712#include <stdio.h> 14713 14714#ifdef RTLD_GLOBAL 14715# define LT_DLGLOBAL RTLD_GLOBAL 14716#else 14717# ifdef DL_GLOBAL 14718# define LT_DLGLOBAL DL_GLOBAL 14719# else 14720# define LT_DLGLOBAL 0 14721# endif 14722#endif 14723 14724/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14725 find out it does not work in some platform. */ 14726#ifndef LT_DLLAZY_OR_NOW 14727# ifdef RTLD_LAZY 14728# define LT_DLLAZY_OR_NOW RTLD_LAZY 14729# else 14730# ifdef DL_LAZY 14731# define LT_DLLAZY_OR_NOW DL_LAZY 14732# else 14733# ifdef RTLD_NOW 14734# define LT_DLLAZY_OR_NOW RTLD_NOW 14735# else 14736# ifdef DL_NOW 14737# define LT_DLLAZY_OR_NOW DL_NOW 14738# else 14739# define LT_DLLAZY_OR_NOW 0 14740# endif 14741# endif 14742# endif 14743# endif 14744#endif 14745 14746/* When -fvisbility=hidden is used, assume the code has been annotated 14747 correspondingly for the symbols needed. */ 14748#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14749int fnord () __attribute__((visibility("default"))); 14750#endif 14751 14752int fnord () { return 42; } 14753int main () 14754{ 14755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14756 int status = $lt_dlunknown; 14757 14758 if (self) 14759 { 14760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14761 else 14762 { 14763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14764 else puts (dlerror ()); 14765 } 14766 /* dlclose (self); */ 14767 } 14768 else 14769 puts (dlerror ()); 14770 14771 return status; 14772} 14773_LT_EOF 14774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14775 (eval $ac_link) 2>&5 14776 ac_status=$? 14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14779 (./conftest; exit; ) >&5 2>/dev/null 14780 lt_status=$? 14781 case x$lt_status in 14782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14785 esac 14786 else : 14787 # compilation failed 14788 lt_cv_dlopen_self_static=no 14789 fi 14790fi 14791rm -fr conftest* 14792 14793 14794fi 14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14796$as_echo "$lt_cv_dlopen_self_static" >&6; } 14797 fi 14798 14799 CPPFLAGS="$save_CPPFLAGS" 14800 LDFLAGS="$save_LDFLAGS" 14801 LIBS="$save_LIBS" 14802 ;; 14803 esac 14804 14805 case $lt_cv_dlopen_self in 14806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14807 *) enable_dlopen_self=unknown ;; 14808 esac 14809 14810 case $lt_cv_dlopen_self_static in 14811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14812 *) enable_dlopen_self_static=unknown ;; 14813 esac 14814fi 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832striplib= 14833old_striplib= 14834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14835$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14836if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14838 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14840$as_echo "yes" >&6; } 14841else 14842# FIXME - insert some real tests, host_os isn't really good enough 14843 case $host_os in 14844 darwin*) 14845 if test -n "$STRIP" ; then 14846 striplib="$STRIP -x" 14847 old_striplib="$STRIP -S" 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14849$as_echo "yes" >&6; } 14850 else 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14852$as_echo "no" >&6; } 14853 fi 14854 ;; 14855 *) 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14857$as_echo "no" >&6; } 14858 ;; 14859 esac 14860fi 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 # Report which library types will actually be built 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14875$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14877$as_echo "$can_build_shared" >&6; } 14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14880$as_echo_n "checking whether to build shared libraries... " >&6; } 14881 test "$can_build_shared" = "no" && enable_shared=no 14882 14883 # On AIX, shared libraries and static libraries use the same namespace, and 14884 # are all built from PIC. 14885 case $host_os in 14886 aix3*) 14887 test "$enable_shared" = yes && enable_static=no 14888 if test -n "$RANLIB"; then 14889 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14890 postinstall_cmds='$RANLIB $lib' 14891 fi 14892 ;; 14893 14894 aix[4-9]*) 14895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14896 test "$enable_shared" = yes && enable_static=no 14897 fi 14898 ;; 14899 esac 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14901$as_echo "$enable_shared" >&6; } 14902 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14904$as_echo_n "checking whether to build static libraries... " >&6; } 14905 # Make sure either enable_shared or enable_static is yes. 14906 test "$enable_shared" = yes || enable_static=yes 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14908$as_echo "$enable_static" >&6; } 14909 14910 14911 14912 14913fi 14914ac_ext=c 14915ac_cpp='$CPP $CPPFLAGS' 14916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14918ac_compiler_gnu=$ac_cv_c_compiler_gnu 14919 14920CC="$lt_save_CC" 14921 14922 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14924 (test "X$CXX" != "Xg++"))) ; then 14925 ac_ext=cpp 14926ac_cpp='$CXXCPP $CPPFLAGS' 14927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14931$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14932if test -z "$CXXCPP"; then 14933 if ${ac_cv_prog_CXXCPP+:} false; then : 14934 $as_echo_n "(cached) " >&6 14935else 14936 # Double quotes because CXXCPP needs to be expanded 14937 for CXXCPP in "$CXX -E" "/lib/cpp" 14938 do 14939 ac_preproc_ok=false 14940for ac_cxx_preproc_warn_flag in '' yes 14941do 14942 # Use a header file that comes with gcc, so configuring glibc 14943 # with a fresh cross-compiler works. 14944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14945 # <limits.h> exists even on freestanding compilers. 14946 # On the NeXT, cc -E runs the code through the compiler's parser, 14947 # not just through cpp. "Syntax error" is here to catch this case. 14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14949/* end confdefs.h. */ 14950#ifdef __STDC__ 14951# include <limits.h> 14952#else 14953# include <assert.h> 14954#endif 14955 Syntax error 14956_ACEOF 14957if ac_fn_cxx_try_cpp "$LINENO"; then : 14958 14959else 14960 # Broken: fails on valid input. 14961continue 14962fi 14963rm -f conftest.err conftest.i conftest.$ac_ext 14964 14965 # OK, works on sane cases. Now check whether nonexistent headers 14966 # can be detected and how. 14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14968/* end confdefs.h. */ 14969#include <ac_nonexistent.h> 14970_ACEOF 14971if ac_fn_cxx_try_cpp "$LINENO"; then : 14972 # Broken: success on invalid input. 14973continue 14974else 14975 # Passes both tests. 14976ac_preproc_ok=: 14977break 14978fi 14979rm -f conftest.err conftest.i conftest.$ac_ext 14980 14981done 14982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14983rm -f conftest.i conftest.err conftest.$ac_ext 14984if $ac_preproc_ok; then : 14985 break 14986fi 14987 14988 done 14989 ac_cv_prog_CXXCPP=$CXXCPP 14990 14991fi 14992 CXXCPP=$ac_cv_prog_CXXCPP 14993else 14994 ac_cv_prog_CXXCPP=$CXXCPP 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14997$as_echo "$CXXCPP" >&6; } 14998ac_preproc_ok=false 14999for ac_cxx_preproc_warn_flag in '' yes 15000do 15001 # Use a header file that comes with gcc, so configuring glibc 15002 # with a fresh cross-compiler works. 15003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15004 # <limits.h> exists even on freestanding compilers. 15005 # On the NeXT, cc -E runs the code through the compiler's parser, 15006 # not just through cpp. "Syntax error" is here to catch this case. 15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008/* end confdefs.h. */ 15009#ifdef __STDC__ 15010# include <limits.h> 15011#else 15012# include <assert.h> 15013#endif 15014 Syntax error 15015_ACEOF 15016if ac_fn_cxx_try_cpp "$LINENO"; then : 15017 15018else 15019 # Broken: fails on valid input. 15020continue 15021fi 15022rm -f conftest.err conftest.i conftest.$ac_ext 15023 15024 # OK, works on sane cases. Now check whether nonexistent headers 15025 # can be detected and how. 15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15027/* end confdefs.h. */ 15028#include <ac_nonexistent.h> 15029_ACEOF 15030if ac_fn_cxx_try_cpp "$LINENO"; then : 15031 # Broken: success on invalid input. 15032continue 15033else 15034 # Passes both tests. 15035ac_preproc_ok=: 15036break 15037fi 15038rm -f conftest.err conftest.i conftest.$ac_ext 15039 15040done 15041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15042rm -f conftest.i conftest.err conftest.$ac_ext 15043if $ac_preproc_ok; then : 15044 15045else 15046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15048as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15049See \`config.log' for more details" "$LINENO" 5; } 15050fi 15051 15052ac_ext=c 15053ac_cpp='$CPP $CPPFLAGS' 15054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15056ac_compiler_gnu=$ac_cv_c_compiler_gnu 15057 15058else 15059 _lt_caught_CXX_error=yes 15060fi 15061 15062ac_ext=cpp 15063ac_cpp='$CXXCPP $CPPFLAGS' 15064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15067 15068archive_cmds_need_lc_CXX=no 15069allow_undefined_flag_CXX= 15070always_export_symbols_CXX=no 15071archive_expsym_cmds_CXX= 15072compiler_needs_object_CXX=no 15073export_dynamic_flag_spec_CXX= 15074hardcode_direct_CXX=no 15075hardcode_direct_absolute_CXX=no 15076hardcode_libdir_flag_spec_CXX= 15077hardcode_libdir_separator_CXX= 15078hardcode_minus_L_CXX=no 15079hardcode_shlibpath_var_CXX=unsupported 15080hardcode_automatic_CXX=no 15081inherit_rpath_CXX=no 15082module_cmds_CXX= 15083module_expsym_cmds_CXX= 15084link_all_deplibs_CXX=unknown 15085old_archive_cmds_CXX=$old_archive_cmds 15086reload_flag_CXX=$reload_flag 15087reload_cmds_CXX=$reload_cmds 15088no_undefined_flag_CXX= 15089whole_archive_flag_spec_CXX= 15090enable_shared_with_static_runtimes_CXX=no 15091 15092# Source file extension for C++ test sources. 15093ac_ext=cpp 15094 15095# Object file extension for compiled C++ test sources. 15096objext=o 15097objext_CXX=$objext 15098 15099# No sense in running all these tests if we already determined that 15100# the CXX compiler isn't working. Some variables (like enable_shared) 15101# are currently assumed to apply to all compilers on this platform, 15102# and will be corrupted by setting them based on a non-working compiler. 15103if test "$_lt_caught_CXX_error" != yes; then 15104 # Code to be used in simple compile tests 15105 lt_simple_compile_test_code="int some_variable = 0;" 15106 15107 # Code to be used in simple link tests 15108 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15109 15110 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15111 15112 15113 15114 15115 15116 15117# If no C compiler was specified, use CC. 15118LTCC=${LTCC-"$CC"} 15119 15120# If no C compiler flags were specified, use CFLAGS. 15121LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15122 15123# Allow CC to be a program name with arguments. 15124compiler=$CC 15125 15126 15127 # save warnings/boilerplate of simple test code 15128 ac_outfile=conftest.$ac_objext 15129echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15130eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15131_lt_compiler_boilerplate=`cat conftest.err` 15132$RM conftest* 15133 15134 ac_outfile=conftest.$ac_objext 15135echo "$lt_simple_link_test_code" >conftest.$ac_ext 15136eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15137_lt_linker_boilerplate=`cat conftest.err` 15138$RM -r conftest* 15139 15140 15141 # Allow CC to be a program name with arguments. 15142 lt_save_CC=$CC 15143 lt_save_CFLAGS=$CFLAGS 15144 lt_save_LD=$LD 15145 lt_save_GCC=$GCC 15146 GCC=$GXX 15147 lt_save_with_gnu_ld=$with_gnu_ld 15148 lt_save_path_LD=$lt_cv_path_LD 15149 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15150 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15151 else 15152 $as_unset lt_cv_prog_gnu_ld 15153 fi 15154 if test -n "${lt_cv_path_LDCXX+set}"; then 15155 lt_cv_path_LD=$lt_cv_path_LDCXX 15156 else 15157 $as_unset lt_cv_path_LD 15158 fi 15159 test -z "${LDCXX+set}" || LD=$LDCXX 15160 CC=${CXX-"c++"} 15161 CFLAGS=$CXXFLAGS 15162 compiler=$CC 15163 compiler_CXX=$CC 15164 for cc_temp in $compiler""; do 15165 case $cc_temp in 15166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15168 \-*) ;; 15169 *) break;; 15170 esac 15171done 15172cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15173 15174 15175 if test -n "$compiler"; then 15176 # We don't want -fno-exception when compiling C++ code, so set the 15177 # no_builtin_flag separately 15178 if test "$GXX" = yes; then 15179 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15180 else 15181 lt_prog_compiler_no_builtin_flag_CXX= 15182 fi 15183 15184 if test "$GXX" = yes; then 15185 # Set up default GNU C++ configuration 15186 15187 15188 15189# Check whether --with-gnu-ld was given. 15190if test "${with_gnu_ld+set}" = set; then : 15191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15192else 15193 with_gnu_ld=no 15194fi 15195 15196ac_prog=ld 15197if test "$GCC" = yes; then 15198 # Check if gcc -print-prog-name=ld gives a path. 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15200$as_echo_n "checking for ld used by $CC... " >&6; } 15201 case $host in 15202 *-*-mingw*) 15203 # gcc leaves a trailing carriage return which upsets mingw 15204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15205 *) 15206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15207 esac 15208 case $ac_prog in 15209 # Accept absolute paths. 15210 [\\/]* | ?:[\\/]*) 15211 re_direlt='/[^/][^/]*/\.\./' 15212 # Canonicalize the pathname of ld 15213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15216 done 15217 test -z "$LD" && LD="$ac_prog" 15218 ;; 15219 "") 15220 # If it fails, then pretend we aren't using GCC. 15221 ac_prog=ld 15222 ;; 15223 *) 15224 # If it is relative, then search for the first ld in PATH. 15225 with_gnu_ld=unknown 15226 ;; 15227 esac 15228elif test "$with_gnu_ld" = yes; then 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15230$as_echo_n "checking for GNU ld... " >&6; } 15231else 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15233$as_echo_n "checking for non-GNU ld... " >&6; } 15234fi 15235if ${lt_cv_path_LD+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237else 15238 if test -z "$LD"; then 15239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15240 for ac_dir in $PATH; do 15241 IFS="$lt_save_ifs" 15242 test -z "$ac_dir" && ac_dir=. 15243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15244 lt_cv_path_LD="$ac_dir/$ac_prog" 15245 # Check to see if the program is GNU ld. I'd rather use --version, 15246 # but apparently some variants of GNU ld only accept -v. 15247 # Break only if it was the GNU/non-GNU ld that we prefer. 15248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15249 *GNU* | *'with BFD'*) 15250 test "$with_gnu_ld" != no && break 15251 ;; 15252 *) 15253 test "$with_gnu_ld" != yes && break 15254 ;; 15255 esac 15256 fi 15257 done 15258 IFS="$lt_save_ifs" 15259else 15260 lt_cv_path_LD="$LD" # Let the user override the test with a path. 15261fi 15262fi 15263 15264LD="$lt_cv_path_LD" 15265if test -n "$LD"; then 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15267$as_echo "$LD" >&6; } 15268else 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15270$as_echo "no" >&6; } 15271fi 15272test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15274$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15275if ${lt_cv_prog_gnu_ld+:} false; then : 15276 $as_echo_n "(cached) " >&6 15277else 15278 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15279case `$LD -v 2>&1 </dev/null` in 15280*GNU* | *'with BFD'*) 15281 lt_cv_prog_gnu_ld=yes 15282 ;; 15283*) 15284 lt_cv_prog_gnu_ld=no 15285 ;; 15286esac 15287fi 15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15289$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15290with_gnu_ld=$lt_cv_prog_gnu_ld 15291 15292 15293 15294 15295 15296 15297 15298 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15299 # archiving commands below assume that GNU ld is being used. 15300 if test "$with_gnu_ld" = yes; then 15301 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15302 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' 15303 15304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15306 15307 # If archive_cmds runs LD, not CC, wlarc should be empty 15308 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15309 # investigate it a little bit more. (MM) 15310 wlarc='${wl}' 15311 15312 # ancient GNU ld didn't support --whole-archive et. al. 15313 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15314 $GREP 'no-whole-archive' > /dev/null; then 15315 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15316 else 15317 whole_archive_flag_spec_CXX= 15318 fi 15319 else 15320 with_gnu_ld=no 15321 wlarc= 15322 15323 # A generic and very simple default shared library creation 15324 # command for GNU C++ for the case where it uses the native 15325 # linker, instead of GNU ld. If possible, this setting should 15326 # overridden to take advantage of the native linker features on 15327 # the platform it is being used on. 15328 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15329 fi 15330 15331 # Commands to make compiler produce verbose output that lists 15332 # what "hidden" libraries, object files and flags are used when 15333 # linking a shared library. 15334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15335 15336 else 15337 GXX=no 15338 with_gnu_ld=no 15339 wlarc= 15340 fi 15341 15342 # PORTME: fill in a description of your system's C++ link characteristics 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15344$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15345 ld_shlibs_CXX=yes 15346 case $host_os in 15347 aix3*) 15348 # FIXME: insert proper C++ library support 15349 ld_shlibs_CXX=no 15350 ;; 15351 aix[4-9]*) 15352 if test "$host_cpu" = ia64; then 15353 # On IA64, the linker does run time linking by default, so we don't 15354 # have to do anything special. 15355 aix_use_runtimelinking=no 15356 exp_sym_flag='-Bexport' 15357 no_entry_flag="" 15358 else 15359 aix_use_runtimelinking=no 15360 15361 # Test if we are trying to use run time linking or normal 15362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15363 # need to do runtime linking. 15364 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15365 for ld_flag in $LDFLAGS; do 15366 case $ld_flag in 15367 *-brtl*) 15368 aix_use_runtimelinking=yes 15369 break 15370 ;; 15371 esac 15372 done 15373 ;; 15374 esac 15375 15376 exp_sym_flag='-bexport' 15377 no_entry_flag='-bnoentry' 15378 fi 15379 15380 # When large executables or shared objects are built, AIX ld can 15381 # have problems creating the table of contents. If linking a library 15382 # or program results in "error TOC overflow" add -mminimal-toc to 15383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15385 15386 archive_cmds_CXX='' 15387 hardcode_direct_CXX=yes 15388 hardcode_direct_absolute_CXX=yes 15389 hardcode_libdir_separator_CXX=':' 15390 link_all_deplibs_CXX=yes 15391 file_list_spec_CXX='${wl}-f,' 15392 15393 if test "$GXX" = yes; then 15394 case $host_os in aix4.[012]|aix4.[012].*) 15395 # We only want to do this on AIX 4.2 and lower, the check 15396 # below for broken collect2 doesn't work under 4.3+ 15397 collect2name=`${CC} -print-prog-name=collect2` 15398 if test -f "$collect2name" && 15399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15400 then 15401 # We have reworked collect2 15402 : 15403 else 15404 # We have old collect2 15405 hardcode_direct_CXX=unsupported 15406 # It fails to find uninstalled libraries when the uninstalled 15407 # path is not listed in the libpath. Setting hardcode_minus_L 15408 # to unsupported forces relinking 15409 hardcode_minus_L_CXX=yes 15410 hardcode_libdir_flag_spec_CXX='-L$libdir' 15411 hardcode_libdir_separator_CXX= 15412 fi 15413 esac 15414 shared_flag='-shared' 15415 if test "$aix_use_runtimelinking" = yes; then 15416 shared_flag="$shared_flag "'${wl}-G' 15417 fi 15418 else 15419 # not using gcc 15420 if test "$host_cpu" = ia64; then 15421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15422 # chokes on -Wl,-G. The following line is correct: 15423 shared_flag='-G' 15424 else 15425 if test "$aix_use_runtimelinking" = yes; then 15426 shared_flag='${wl}-G' 15427 else 15428 shared_flag='${wl}-bM:SRE' 15429 fi 15430 fi 15431 fi 15432 15433 export_dynamic_flag_spec_CXX='${wl}-bexpall' 15434 # It seems that -bexpall does not export symbols beginning with 15435 # underscore (_), so it is better to generate a list of symbols to 15436 # export. 15437 always_export_symbols_CXX=yes 15438 if test "$aix_use_runtimelinking" = yes; then 15439 # Warning - without using the other runtime loading flags (-brtl), 15440 # -berok will link without error, but may produce a broken library. 15441 allow_undefined_flag_CXX='-berok' 15442 # Determine the default libpath from the value encoded in an empty 15443 # executable. 15444 if test "${lt_cv_aix_libpath+set}" = set; then 15445 aix_libpath=$lt_cv_aix_libpath 15446else 15447 if ${lt_cv_aix_libpath__CXX+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452 15453int 15454main () 15455{ 15456 15457 ; 15458 return 0; 15459} 15460_ACEOF 15461if ac_fn_cxx_try_link "$LINENO"; then : 15462 15463 lt_aix_libpath_sed=' 15464 /Import File Strings/,/^$/ { 15465 /^0/ { 15466 s/^0 *\([^ ]*\) *$/\1/ 15467 p 15468 } 15469 }' 15470 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15471 # Check for a 64-bit object if we didn't find anything. 15472 if test -z "$lt_cv_aix_libpath__CXX"; then 15473 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15474 fi 15475fi 15476rm -f core conftest.err conftest.$ac_objext \ 15477 conftest$ac_exeext conftest.$ac_ext 15478 if test -z "$lt_cv_aix_libpath__CXX"; then 15479 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15480 fi 15481 15482fi 15483 15484 aix_libpath=$lt_cv_aix_libpath__CXX 15485fi 15486 15487 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15488 15489 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15490 else 15491 if test "$host_cpu" = ia64; then 15492 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 15493 allow_undefined_flag_CXX="-z nodefs" 15494 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" 15495 else 15496 # Determine the default libpath from the value encoded in an 15497 # empty executable. 15498 if test "${lt_cv_aix_libpath+set}" = set; then 15499 aix_libpath=$lt_cv_aix_libpath 15500else 15501 if ${lt_cv_aix_libpath__CXX+:} false; then : 15502 $as_echo_n "(cached) " >&6 15503else 15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15505/* end confdefs.h. */ 15506 15507int 15508main () 15509{ 15510 15511 ; 15512 return 0; 15513} 15514_ACEOF 15515if ac_fn_cxx_try_link "$LINENO"; then : 15516 15517 lt_aix_libpath_sed=' 15518 /Import File Strings/,/^$/ { 15519 /^0/ { 15520 s/^0 *\([^ ]*\) *$/\1/ 15521 p 15522 } 15523 }' 15524 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15525 # Check for a 64-bit object if we didn't find anything. 15526 if test -z "$lt_cv_aix_libpath__CXX"; then 15527 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15528 fi 15529fi 15530rm -f core conftest.err conftest.$ac_objext \ 15531 conftest$ac_exeext conftest.$ac_ext 15532 if test -z "$lt_cv_aix_libpath__CXX"; then 15533 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15534 fi 15535 15536fi 15537 15538 aix_libpath=$lt_cv_aix_libpath__CXX 15539fi 15540 15541 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15542 # Warning - without using the other run time loading flags, 15543 # -berok will link without error, but may produce a broken library. 15544 no_undefined_flag_CXX=' ${wl}-bernotok' 15545 allow_undefined_flag_CXX=' ${wl}-berok' 15546 if test "$with_gnu_ld" = yes; then 15547 # We only use this code for GNU lds that support --whole-archive. 15548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15549 else 15550 # Exported symbols can be pulled into shared objects from archives 15551 whole_archive_flag_spec_CXX='$convenience' 15552 fi 15553 archive_cmds_need_lc_CXX=yes 15554 # This is similar to how AIX traditionally builds its shared 15555 # libraries. 15556 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15557 fi 15558 fi 15559 ;; 15560 15561 beos*) 15562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15563 allow_undefined_flag_CXX=unsupported 15564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15565 # support --undefined. This deserves some investigation. FIXME 15566 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15567 else 15568 ld_shlibs_CXX=no 15569 fi 15570 ;; 15571 15572 chorus*) 15573 case $cc_basename in 15574 *) 15575 # FIXME: insert proper C++ library support 15576 ld_shlibs_CXX=no 15577 ;; 15578 esac 15579 ;; 15580 15581 cygwin* | mingw* | pw32* | cegcc*) 15582 case $GXX,$cc_basename in 15583 ,cl* | no,cl*) 15584 # Native MSVC 15585 # hardcode_libdir_flag_spec is actually meaningless, as there is 15586 # no search path for DLLs. 15587 hardcode_libdir_flag_spec_CXX=' ' 15588 allow_undefined_flag_CXX=unsupported 15589 always_export_symbols_CXX=yes 15590 file_list_spec_CXX='@' 15591 # Tell ltmain to make .lib files, not .a files. 15592 libext=lib 15593 # Tell ltmain to make .dll files, not .so files. 15594 shrext_cmds=".dll" 15595 # FIXME: Setting linknames here is a bad hack. 15596 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15597 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15598 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15599 else 15600 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15601 fi~ 15602 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15603 linknames=' 15604 # The linker will not automatically build a static lib if we build a DLL. 15605 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15606 enable_shared_with_static_runtimes_CXX=yes 15607 # Don't use ranlib 15608 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15609 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15610 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15611 case $lt_outputfile in 15612 *.exe|*.EXE) ;; 15613 *) 15614 lt_outputfile="$lt_outputfile.exe" 15615 lt_tool_outputfile="$lt_tool_outputfile.exe" 15616 ;; 15617 esac~ 15618 func_to_tool_file "$lt_outputfile"~ 15619 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15620 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15621 $RM "$lt_outputfile.manifest"; 15622 fi' 15623 ;; 15624 *) 15625 # g++ 15626 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15627 # as there is no search path for DLLs. 15628 hardcode_libdir_flag_spec_CXX='-L$libdir' 15629 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 15630 allow_undefined_flag_CXX=unsupported 15631 always_export_symbols_CXX=no 15632 enable_shared_with_static_runtimes_CXX=yes 15633 15634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15635 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' 15636 # If the export-symbols file already is a .def file (1st line 15637 # is EXPORTS), use it as is; otherwise, prepend... 15638 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15639 cp $export_symbols $output_objdir/$soname.def; 15640 else 15641 echo EXPORTS > $output_objdir/$soname.def; 15642 cat $export_symbols >> $output_objdir/$soname.def; 15643 fi~ 15644 $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' 15645 else 15646 ld_shlibs_CXX=no 15647 fi 15648 ;; 15649 esac 15650 ;; 15651 darwin* | rhapsody*) 15652 15653 15654 archive_cmds_need_lc_CXX=no 15655 hardcode_direct_CXX=no 15656 hardcode_automatic_CXX=yes 15657 hardcode_shlibpath_var_CXX=unsupported 15658 if test "$lt_cv_ld_force_load" = "yes"; then 15659 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\"`' 15660 15661 else 15662 whole_archive_flag_spec_CXX='' 15663 fi 15664 link_all_deplibs_CXX=yes 15665 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 15666 case $cc_basename in 15667 ifort*) _lt_dar_can_shared=yes ;; 15668 *) _lt_dar_can_shared=$GCC ;; 15669 esac 15670 if test "$_lt_dar_can_shared" = "yes"; then 15671 output_verbose_link_cmd=func_echo_all 15672 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}" 15673 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15674 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}" 15675 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}" 15676 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 15677 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}" 15678 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}" 15679 fi 15680 15681 else 15682 ld_shlibs_CXX=no 15683 fi 15684 15685 ;; 15686 15687 dgux*) 15688 case $cc_basename in 15689 ec++*) 15690 # FIXME: insert proper C++ library support 15691 ld_shlibs_CXX=no 15692 ;; 15693 ghcx*) 15694 # Green Hills C++ Compiler 15695 # FIXME: insert proper C++ library support 15696 ld_shlibs_CXX=no 15697 ;; 15698 *) 15699 # FIXME: insert proper C++ library support 15700 ld_shlibs_CXX=no 15701 ;; 15702 esac 15703 ;; 15704 15705 freebsd2.*) 15706 # C++ shared libraries reported to be fairly broken before 15707 # switch to ELF 15708 ld_shlibs_CXX=no 15709 ;; 15710 15711 freebsd-elf*) 15712 archive_cmds_need_lc_CXX=no 15713 ;; 15714 15715 freebsd* | dragonfly*) 15716 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15717 # conventions 15718 ld_shlibs_CXX=yes 15719 ;; 15720 15721 gnu*) 15722 ;; 15723 15724 haiku*) 15725 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15726 link_all_deplibs_CXX=yes 15727 ;; 15728 15729 hpux9*) 15730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15731 hardcode_libdir_separator_CXX=: 15732 export_dynamic_flag_spec_CXX='${wl}-E' 15733 hardcode_direct_CXX=yes 15734 hardcode_minus_L_CXX=yes # Not in the search PATH, 15735 # but as the default 15736 # location of the library. 15737 15738 case $cc_basename in 15739 CC*) 15740 # FIXME: insert proper C++ library support 15741 ld_shlibs_CXX=no 15742 ;; 15743 aCC*) 15744 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15745 # Commands to make compiler produce verbose output that lists 15746 # what "hidden" libraries, object files and flags are used when 15747 # linking a shared library. 15748 # 15749 # There doesn't appear to be a way to prevent this compiler from 15750 # explicitly linking system object files so we need to strip them 15751 # from the output so that they don't get included in the library 15752 # dependencies. 15753 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"' 15754 ;; 15755 *) 15756 if test "$GXX" = yes; then 15757 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15758 else 15759 # FIXME: insert proper C++ library support 15760 ld_shlibs_CXX=no 15761 fi 15762 ;; 15763 esac 15764 ;; 15765 15766 hpux10*|hpux11*) 15767 if test $with_gnu_ld = no; then 15768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15769 hardcode_libdir_separator_CXX=: 15770 15771 case $host_cpu in 15772 hppa*64*|ia64*) 15773 ;; 15774 *) 15775 export_dynamic_flag_spec_CXX='${wl}-E' 15776 ;; 15777 esac 15778 fi 15779 case $host_cpu in 15780 hppa*64*|ia64*) 15781 hardcode_direct_CXX=no 15782 hardcode_shlibpath_var_CXX=no 15783 ;; 15784 *) 15785 hardcode_direct_CXX=yes 15786 hardcode_direct_absolute_CXX=yes 15787 hardcode_minus_L_CXX=yes # Not in the search PATH, 15788 # but as the default 15789 # location of the library. 15790 ;; 15791 esac 15792 15793 case $cc_basename in 15794 CC*) 15795 # FIXME: insert proper C++ library support 15796 ld_shlibs_CXX=no 15797 ;; 15798 aCC*) 15799 case $host_cpu in 15800 hppa*64*) 15801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15802 ;; 15803 ia64*) 15804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15805 ;; 15806 *) 15807 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15808 ;; 15809 esac 15810 # Commands to make compiler produce verbose output that lists 15811 # what "hidden" libraries, object files and flags are used when 15812 # linking a shared library. 15813 # 15814 # There doesn't appear to be a way to prevent this compiler from 15815 # explicitly linking system object files so we need to strip them 15816 # from the output so that they don't get included in the library 15817 # dependencies. 15818 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"' 15819 ;; 15820 *) 15821 if test "$GXX" = yes; then 15822 if test $with_gnu_ld = no; then 15823 case $host_cpu in 15824 hppa*64*) 15825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15826 ;; 15827 ia64*) 15828 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15829 ;; 15830 *) 15831 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' 15832 ;; 15833 esac 15834 fi 15835 else 15836 # FIXME: insert proper C++ library support 15837 ld_shlibs_CXX=no 15838 fi 15839 ;; 15840 esac 15841 ;; 15842 15843 interix[3-9]*) 15844 hardcode_direct_CXX=no 15845 hardcode_shlibpath_var_CXX=no 15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15847 export_dynamic_flag_spec_CXX='${wl}-E' 15848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15849 # Instead, shared libraries are loaded at an image base (0x10000000 by 15850 # default) and relocated if they conflict, which is a slow very memory 15851 # consuming and fragmenting process. To avoid this, we pick a random, 15852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15853 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15854 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' 15855 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' 15856 ;; 15857 irix5* | irix6*) 15858 case $cc_basename in 15859 CC*) 15860 # SGI C++ 15861 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' 15862 15863 # Archives containing C++ object files must be created using 15864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15865 # necessary to make sure instantiated templates are included 15866 # in the archive. 15867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15868 ;; 15869 *) 15870 if test "$GXX" = yes; then 15871 if test "$with_gnu_ld" = no; then 15872 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' 15873 else 15874 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' 15875 fi 15876 fi 15877 link_all_deplibs_CXX=yes 15878 ;; 15879 esac 15880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15881 hardcode_libdir_separator_CXX=: 15882 inherit_rpath_CXX=yes 15883 ;; 15884 15885 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15886 case $cc_basename in 15887 KCC*) 15888 # Kuck and Associates, Inc. (KAI) C++ Compiler 15889 15890 # KCC will only create a shared library if the output file 15891 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15892 # to its proper name (with version) after linking. 15893 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' 15894 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' 15895 # Commands to make compiler produce verbose output that lists 15896 # what "hidden" libraries, object files and flags are used when 15897 # linking a shared library. 15898 # 15899 # There doesn't appear to be a way to prevent this compiler from 15900 # explicitly linking system object files so we need to strip them 15901 # from the output so that they don't get included in the library 15902 # dependencies. 15903 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"' 15904 15905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15907 15908 # Archives containing C++ object files must be created using 15909 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15911 ;; 15912 icpc* | ecpc* ) 15913 # Intel C++ 15914 with_gnu_ld=yes 15915 # version 8.0 and above of icpc choke on multiply defined symbols 15916 # if we add $predep_objects and $postdep_objects, however 7.1 and 15917 # earlier do not add the objects themselves. 15918 case `$CC -V 2>&1` in 15919 *"Version 7."*) 15920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15921 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' 15922 ;; 15923 *) # Version 8.0 or newer 15924 tmp_idyn= 15925 case $host_cpu in 15926 ia64*) tmp_idyn=' -i_dynamic';; 15927 esac 15928 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15929 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' 15930 ;; 15931 esac 15932 archive_cmds_need_lc_CXX=no 15933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15935 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15936 ;; 15937 pgCC* | pgcpp*) 15938 # Portland Group C++ compiler 15939 case `$CC -V` in 15940 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15941 prelink_cmds_CXX='tpldir=Template.dir~ 15942 rm -rf $tpldir~ 15943 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15944 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15945 old_archive_cmds_CXX='tpldir=Template.dir~ 15946 rm -rf $tpldir~ 15947 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15948 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15949 $RANLIB $oldlib' 15950 archive_cmds_CXX='tpldir=Template.dir~ 15951 rm -rf $tpldir~ 15952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15953 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15954 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15955 rm -rf $tpldir~ 15956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15957 $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' 15958 ;; 15959 *) # Version 6 and above use weak symbols 15960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15961 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' 15962 ;; 15963 esac 15964 15965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 15966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15967 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' 15968 ;; 15969 cxx*) 15970 # Compaq C++ 15971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15972 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' 15973 15974 runpath_var=LD_RUN_PATH 15975 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15976 hardcode_libdir_separator_CXX=: 15977 15978 # Commands to make compiler produce verbose output that lists 15979 # what "hidden" libraries, object files and flags are used when 15980 # linking a shared library. 15981 # 15982 # There doesn't appear to be a way to prevent this compiler from 15983 # explicitly linking system object files so we need to strip them 15984 # from the output so that they don't get included in the library 15985 # dependencies. 15986 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' 15987 ;; 15988 xl* | mpixl* | bgxl*) 15989 # IBM XL 8.0 on PPC, with GNU ld 15990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15992 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15993 if test "x$supports_anon_versioning" = xyes; then 15994 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15996 echo "local: *; };" >> $output_objdir/$libname.ver~ 15997 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15998 fi 15999 ;; 16000 *) 16001 case `$CC -V 2>&1 | sed 5q` in 16002 *Sun\ C*) 16003 # Sun C++ 5.9 16004 no_undefined_flag_CXX=' -zdefs' 16005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16006 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' 16007 hardcode_libdir_flag_spec_CXX='-R$libdir' 16008 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' 16009 compiler_needs_object_CXX=yes 16010 16011 # Not sure whether something based on 16012 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16013 # would be better. 16014 output_verbose_link_cmd='func_echo_all' 16015 16016 # Archives containing C++ object files must be created using 16017 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16018 # necessary to make sure instantiated templates are included 16019 # in the archive. 16020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16021 ;; 16022 esac 16023 ;; 16024 esac 16025 ;; 16026 16027 lynxos*) 16028 # FIXME: insert proper C++ library support 16029 ld_shlibs_CXX=no 16030 ;; 16031 16032 m88k*) 16033 # FIXME: insert proper C++ library support 16034 ld_shlibs_CXX=no 16035 ;; 16036 16037 mvs*) 16038 case $cc_basename in 16039 cxx*) 16040 # FIXME: insert proper C++ library support 16041 ld_shlibs_CXX=no 16042 ;; 16043 *) 16044 # FIXME: insert proper C++ library support 16045 ld_shlibs_CXX=no 16046 ;; 16047 esac 16048 ;; 16049 16050 netbsd*) 16051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16053 wlarc= 16054 hardcode_libdir_flag_spec_CXX='-R$libdir' 16055 hardcode_direct_CXX=yes 16056 hardcode_shlibpath_var_CXX=no 16057 fi 16058 # Workaround some broken pre-1.5 toolchains 16059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16060 ;; 16061 16062 *nto* | *qnx*) 16063 ld_shlibs_CXX=yes 16064 ;; 16065 16066 openbsd2*) 16067 # C++ shared libraries are fairly broken 16068 ld_shlibs_CXX=no 16069 ;; 16070 16071 openbsd*) 16072 if test -f /usr/libexec/ld.so; then 16073 hardcode_direct_CXX=yes 16074 hardcode_shlibpath_var_CXX=no 16075 hardcode_direct_absolute_CXX=yes 16076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 16080 export_dynamic_flag_spec_CXX='${wl}-E' 16081 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16082 fi 16083 output_verbose_link_cmd=func_echo_all 16084 else 16085 ld_shlibs_CXX=no 16086 fi 16087 ;; 16088 16089 osf3* | osf4* | osf5*) 16090 case $cc_basename in 16091 KCC*) 16092 # Kuck and Associates, Inc. (KAI) C++ Compiler 16093 16094 # KCC will only create a shared library if the output file 16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16096 # to its proper name (with version) after linking. 16097 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' 16098 16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16100 hardcode_libdir_separator_CXX=: 16101 16102 # Archives containing C++ object files must be created using 16103 # the KAI C++ compiler. 16104 case $host in 16105 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16106 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16107 esac 16108 ;; 16109 RCC*) 16110 # Rational C++ 2.4.1 16111 # FIXME: insert proper C++ library support 16112 ld_shlibs_CXX=no 16113 ;; 16114 cxx*) 16115 case $host in 16116 osf3*) 16117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16118 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' 16119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16120 ;; 16121 *) 16122 allow_undefined_flag_CXX=' -expect_unresolved \*' 16123 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' 16124 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16125 echo "-hidden">> $lib.exp~ 16126 $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~ 16127 $RM $lib.exp' 16128 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16129 ;; 16130 esac 16131 16132 hardcode_libdir_separator_CXX=: 16133 16134 # Commands to make compiler produce verbose output that lists 16135 # what "hidden" libraries, object files and flags are used when 16136 # linking a shared library. 16137 # 16138 # There doesn't appear to be a way to prevent this compiler from 16139 # explicitly linking system object files so we need to strip them 16140 # from the output so that they don't get included in the library 16141 # dependencies. 16142 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"' 16143 ;; 16144 *) 16145 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16147 case $host in 16148 osf3*) 16149 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' 16150 ;; 16151 *) 16152 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' 16153 ;; 16154 esac 16155 16156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16157 hardcode_libdir_separator_CXX=: 16158 16159 # Commands to make compiler produce verbose output that lists 16160 # what "hidden" libraries, object files and flags are used when 16161 # linking a shared library. 16162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16163 16164 else 16165 # FIXME: insert proper C++ library support 16166 ld_shlibs_CXX=no 16167 fi 16168 ;; 16169 esac 16170 ;; 16171 16172 psos*) 16173 # FIXME: insert proper C++ library support 16174 ld_shlibs_CXX=no 16175 ;; 16176 16177 sunos4*) 16178 case $cc_basename in 16179 CC*) 16180 # Sun C++ 4.x 16181 # FIXME: insert proper C++ library support 16182 ld_shlibs_CXX=no 16183 ;; 16184 lcc*) 16185 # Lucid 16186 # FIXME: insert proper C++ library support 16187 ld_shlibs_CXX=no 16188 ;; 16189 *) 16190 # FIXME: insert proper C++ library support 16191 ld_shlibs_CXX=no 16192 ;; 16193 esac 16194 ;; 16195 16196 solaris*) 16197 case $cc_basename in 16198 CC* | sunCC*) 16199 # Sun C++ 4.2, 5.x and Centerline C++ 16200 archive_cmds_need_lc_CXX=yes 16201 no_undefined_flag_CXX=' -zdefs' 16202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16204 $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' 16205 16206 hardcode_libdir_flag_spec_CXX='-R$libdir' 16207 hardcode_shlibpath_var_CXX=no 16208 case $host_os in 16209 solaris2.[0-5] | solaris2.[0-5].*) ;; 16210 *) 16211 # The compiler driver will combine and reorder linker options, 16212 # but understands `-z linker_flag'. 16213 # Supported since Solaris 2.6 (maybe 2.5.1?) 16214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16215 ;; 16216 esac 16217 link_all_deplibs_CXX=yes 16218 16219 output_verbose_link_cmd='func_echo_all' 16220 16221 # Archives containing C++ object files must be created using 16222 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16223 # necessary to make sure instantiated templates are included 16224 # in the archive. 16225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16226 ;; 16227 gcx*) 16228 # Green Hills C++ Compiler 16229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16230 16231 # The C++ compiler must be used to create the archive. 16232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16233 ;; 16234 *) 16235 # GNU C++ compiler with Solaris linker 16236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 16238 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16239 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16241 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16242 16243 # Commands to make compiler produce verbose output that lists 16244 # what "hidden" libraries, object files and flags are used when 16245 # linking a shared library. 16246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16247 else 16248 # g++ 2.7 appears to require `-G' NOT `-shared' on this 16249 # platform. 16250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16253 16254 # Commands to make compiler produce verbose output that lists 16255 # what "hidden" libraries, object files and flags are used when 16256 # linking a shared library. 16257 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16258 fi 16259 16260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 16261 case $host_os in 16262 solaris2.[0-5] | solaris2.[0-5].*) ;; 16263 *) 16264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16265 ;; 16266 esac 16267 fi 16268 ;; 16269 esac 16270 ;; 16271 16272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16273 no_undefined_flag_CXX='${wl}-z,text' 16274 archive_cmds_need_lc_CXX=no 16275 hardcode_shlibpath_var_CXX=no 16276 runpath_var='LD_RUN_PATH' 16277 16278 case $cc_basename in 16279 CC*) 16280 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16282 ;; 16283 *) 16284 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16286 ;; 16287 esac 16288 ;; 16289 16290 sysv5* | sco3.2v5* | sco5v6*) 16291 # Note: We can NOT use -z defs as we might desire, because we do not 16292 # link with -lc, and that would cause any symbols used from libc to 16293 # always be unresolved, which means just about no library would 16294 # ever link correctly. If we're not using GNU ld we use -z text 16295 # though, which does catch some bad symbols but isn't as heavy-handed 16296 # as -z defs. 16297 no_undefined_flag_CXX='${wl}-z,text' 16298 allow_undefined_flag_CXX='${wl}-z,nodefs' 16299 archive_cmds_need_lc_CXX=no 16300 hardcode_shlibpath_var_CXX=no 16301 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 16302 hardcode_libdir_separator_CXX=':' 16303 link_all_deplibs_CXX=yes 16304 export_dynamic_flag_spec_CXX='${wl}-Bexport' 16305 runpath_var='LD_RUN_PATH' 16306 16307 case $cc_basename in 16308 CC*) 16309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16311 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16312 '"$old_archive_cmds_CXX" 16313 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16314 '"$reload_cmds_CXX" 16315 ;; 16316 *) 16317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16319 ;; 16320 esac 16321 ;; 16322 16323 tandem*) 16324 case $cc_basename in 16325 NCC*) 16326 # NonStop-UX NCC 3.20 16327 # FIXME: insert proper C++ library support 16328 ld_shlibs_CXX=no 16329 ;; 16330 *) 16331 # FIXME: insert proper C++ library support 16332 ld_shlibs_CXX=no 16333 ;; 16334 esac 16335 ;; 16336 16337 vxworks*) 16338 # FIXME: insert proper C++ library support 16339 ld_shlibs_CXX=no 16340 ;; 16341 16342 *) 16343 # FIXME: insert proper C++ library support 16344 ld_shlibs_CXX=no 16345 ;; 16346 esac 16347 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16349$as_echo "$ld_shlibs_CXX" >&6; } 16350 test "$ld_shlibs_CXX" = no && can_build_shared=no 16351 16352 GCC_CXX="$GXX" 16353 LD_CXX="$LD" 16354 16355 ## CAVEAT EMPTOR: 16356 ## There is no encapsulation within the following macros, do not change 16357 ## the running order or otherwise move them around unless you know exactly 16358 ## what you are doing... 16359 # Dependencies to place before and after the object being linked: 16360predep_objects_CXX= 16361postdep_objects_CXX= 16362predeps_CXX= 16363postdeps_CXX= 16364compiler_lib_search_path_CXX= 16365 16366cat > conftest.$ac_ext <<_LT_EOF 16367class Foo 16368{ 16369public: 16370 Foo (void) { a = 0; } 16371private: 16372 int a; 16373}; 16374_LT_EOF 16375 16376 16377_lt_libdeps_save_CFLAGS=$CFLAGS 16378case "$CC $CFLAGS " in #( 16379*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16380*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16381*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16382esac 16383 16384if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16385 (eval $ac_compile) 2>&5 16386 ac_status=$? 16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16388 test $ac_status = 0; }; then 16389 # Parse the compiler output and extract the necessary 16390 # objects, libraries and library flags. 16391 16392 # Sentinel used to keep track of whether or not we are before 16393 # the conftest object file. 16394 pre_test_object_deps_done=no 16395 16396 for p in `eval "$output_verbose_link_cmd"`; do 16397 case ${prev}${p} in 16398 16399 -L* | -R* | -l*) 16400 # Some compilers place space between "-{L,R}" and the path. 16401 # Remove the space. 16402 if test $p = "-L" || 16403 test $p = "-R"; then 16404 prev=$p 16405 continue 16406 fi 16407 16408 # Expand the sysroot to ease extracting the directories later. 16409 if test -z "$prev"; then 16410 case $p in 16411 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16412 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16413 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16414 esac 16415 fi 16416 case $p in 16417 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16418 esac 16419 if test "$pre_test_object_deps_done" = no; then 16420 case ${prev} in 16421 -L | -R) 16422 # Internal compiler library paths should come after those 16423 # provided the user. The postdeps already come after the 16424 # user supplied libs so there is no need to process them. 16425 if test -z "$compiler_lib_search_path_CXX"; then 16426 compiler_lib_search_path_CXX="${prev}${p}" 16427 else 16428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 16429 fi 16430 ;; 16431 # The "-l" case would never come before the object being 16432 # linked, so don't bother handling this case. 16433 esac 16434 else 16435 if test -z "$postdeps_CXX"; then 16436 postdeps_CXX="${prev}${p}" 16437 else 16438 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 16439 fi 16440 fi 16441 prev= 16442 ;; 16443 16444 *.lto.$objext) ;; # Ignore GCC LTO objects 16445 *.$objext) 16446 # This assumes that the test object file only shows up 16447 # once in the compiler output. 16448 if test "$p" = "conftest.$objext"; then 16449 pre_test_object_deps_done=yes 16450 continue 16451 fi 16452 16453 if test "$pre_test_object_deps_done" = no; then 16454 if test -z "$predep_objects_CXX"; then 16455 predep_objects_CXX="$p" 16456 else 16457 predep_objects_CXX="$predep_objects_CXX $p" 16458 fi 16459 else 16460 if test -z "$postdep_objects_CXX"; then 16461 postdep_objects_CXX="$p" 16462 else 16463 postdep_objects_CXX="$postdep_objects_CXX $p" 16464 fi 16465 fi 16466 ;; 16467 16468 *) ;; # Ignore the rest. 16469 16470 esac 16471 done 16472 16473 # Clean up. 16474 rm -f a.out a.exe 16475else 16476 echo "libtool.m4: error: problem compiling CXX test program" 16477fi 16478 16479$RM -f confest.$objext 16480CFLAGS=$_lt_libdeps_save_CFLAGS 16481 16482# PORTME: override above test on systems where it is broken 16483case $host_os in 16484interix[3-9]*) 16485 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16486 # hack all around it, let's just trust "g++" to DTRT. 16487 predep_objects_CXX= 16488 postdep_objects_CXX= 16489 postdeps_CXX= 16490 ;; 16491 16492linux*) 16493 case `$CC -V 2>&1 | sed 5q` in 16494 *Sun\ C*) 16495 # Sun C++ 5.9 16496 16497 # The more standards-conforming stlport4 library is 16498 # incompatible with the Cstd library. Avoid specifying 16499 # it if it's in CXXFLAGS. Ignore libCrun as 16500 # -library=stlport4 depends on it. 16501 case " $CXX $CXXFLAGS " in 16502 *" -library=stlport4 "*) 16503 solaris_use_stlport4=yes 16504 ;; 16505 esac 16506 16507 if test "$solaris_use_stlport4" != yes; then 16508 postdeps_CXX='-library=Cstd -library=Crun' 16509 fi 16510 ;; 16511 esac 16512 ;; 16513 16514solaris*) 16515 case $cc_basename in 16516 CC* | sunCC*) 16517 # The more standards-conforming stlport4 library is 16518 # incompatible with the Cstd library. Avoid specifying 16519 # it if it's in CXXFLAGS. Ignore libCrun as 16520 # -library=stlport4 depends on it. 16521 case " $CXX $CXXFLAGS " in 16522 *" -library=stlport4 "*) 16523 solaris_use_stlport4=yes 16524 ;; 16525 esac 16526 16527 # Adding this requires a known-good setup of shared libraries for 16528 # Sun compiler versions before 5.6, else PIC objects from an old 16529 # archive will be linked into the output, leading to subtle bugs. 16530 if test "$solaris_use_stlport4" != yes; then 16531 postdeps_CXX='-library=Cstd -library=Crun' 16532 fi 16533 ;; 16534 esac 16535 ;; 16536esac 16537 16538 16539case " $postdeps_CXX " in 16540*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16541esac 16542 compiler_lib_search_dirs_CXX= 16543if test -n "${compiler_lib_search_path_CXX}"; then 16544 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 16545fi 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 lt_prog_compiler_wl_CXX= 16578lt_prog_compiler_pic_CXX= 16579lt_prog_compiler_static_CXX= 16580 16581 16582 # C++ specific cases for pic, static, wl, etc. 16583 if test "$GXX" = yes; then 16584 lt_prog_compiler_wl_CXX='-Wl,' 16585 lt_prog_compiler_static_CXX='-static' 16586 16587 case $host_os in 16588 aix*) 16589 # All AIX code is PIC. 16590 if test "$host_cpu" = ia64; then 16591 # AIX 5 now supports IA64 processor 16592 lt_prog_compiler_static_CXX='-Bstatic' 16593 fi 16594 ;; 16595 16596 amigaos*) 16597 case $host_cpu in 16598 powerpc) 16599 # see comment about AmigaOS4 .so support 16600 lt_prog_compiler_pic_CXX='-fPIC' 16601 ;; 16602 m68k) 16603 # FIXME: we need at least 68020 code to build shared libraries, but 16604 # adding the `-m68020' flag to GCC prevents building anything better, 16605 # like `-m68040'. 16606 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16607 ;; 16608 esac 16609 ;; 16610 16611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16612 # PIC is the default for these OSes. 16613 ;; 16614 mingw* | cygwin* | os2* | pw32* | cegcc*) 16615 # This hack is so that the source file can tell whether it is being 16616 # built for inclusion in a dll (and should export symbols for example). 16617 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16618 # (--disable-auto-import) libraries 16619 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16620 ;; 16621 darwin* | rhapsody*) 16622 # PIC is the default on this platform 16623 # Common symbols not allowed in MH_DYLIB files 16624 lt_prog_compiler_pic_CXX='-fno-common' 16625 ;; 16626 *djgpp*) 16627 # DJGPP does not support shared libraries at all 16628 lt_prog_compiler_pic_CXX= 16629 ;; 16630 haiku*) 16631 # PIC is the default for Haiku. 16632 # The "-static" flag exists, but is broken. 16633 lt_prog_compiler_static_CXX= 16634 ;; 16635 interix[3-9]*) 16636 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16637 # Instead, we relocate shared libraries at runtime. 16638 ;; 16639 sysv4*MP*) 16640 if test -d /usr/nec; then 16641 lt_prog_compiler_pic_CXX=-Kconform_pic 16642 fi 16643 ;; 16644 hpux*) 16645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16647 # sets the default TLS model and affects inlining. 16648 case $host_cpu in 16649 hppa*64*) 16650 ;; 16651 *) 16652 lt_prog_compiler_pic_CXX='-fPIC' 16653 ;; 16654 esac 16655 ;; 16656 *qnx* | *nto*) 16657 # QNX uses GNU C++, but need to define -shared option too, otherwise 16658 # it will coredump. 16659 lt_prog_compiler_pic_CXX='-fPIC -shared' 16660 ;; 16661 *) 16662 lt_prog_compiler_pic_CXX='-fPIC' 16663 ;; 16664 esac 16665 else 16666 case $host_os in 16667 aix[4-9]*) 16668 # All AIX code is PIC. 16669 if test "$host_cpu" = ia64; then 16670 # AIX 5 now supports IA64 processor 16671 lt_prog_compiler_static_CXX='-Bstatic' 16672 else 16673 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16674 fi 16675 ;; 16676 chorus*) 16677 case $cc_basename in 16678 cxch68*) 16679 # Green Hills C++ Compiler 16680 # _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" 16681 ;; 16682 esac 16683 ;; 16684 mingw* | cygwin* | os2* | pw32* | cegcc*) 16685 # This hack is so that the source file can tell whether it is being 16686 # built for inclusion in a dll (and should export symbols for example). 16687 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16688 ;; 16689 dgux*) 16690 case $cc_basename in 16691 ec++*) 16692 lt_prog_compiler_pic_CXX='-KPIC' 16693 ;; 16694 ghcx*) 16695 # Green Hills C++ Compiler 16696 lt_prog_compiler_pic_CXX='-pic' 16697 ;; 16698 *) 16699 ;; 16700 esac 16701 ;; 16702 freebsd* | dragonfly*) 16703 # FreeBSD uses GNU C++ 16704 ;; 16705 hpux9* | hpux10* | hpux11*) 16706 case $cc_basename in 16707 CC*) 16708 lt_prog_compiler_wl_CXX='-Wl,' 16709 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16710 if test "$host_cpu" != ia64; then 16711 lt_prog_compiler_pic_CXX='+Z' 16712 fi 16713 ;; 16714 aCC*) 16715 lt_prog_compiler_wl_CXX='-Wl,' 16716 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16717 case $host_cpu in 16718 hppa*64*|ia64*) 16719 # +Z the default 16720 ;; 16721 *) 16722 lt_prog_compiler_pic_CXX='+Z' 16723 ;; 16724 esac 16725 ;; 16726 *) 16727 ;; 16728 esac 16729 ;; 16730 interix*) 16731 # This is c89, which is MS Visual C++ (no shared libs) 16732 # Anyone wants to do a port? 16733 ;; 16734 irix5* | irix6* | nonstopux*) 16735 case $cc_basename in 16736 CC*) 16737 lt_prog_compiler_wl_CXX='-Wl,' 16738 lt_prog_compiler_static_CXX='-non_shared' 16739 # CC pic flag -KPIC is the default. 16740 ;; 16741 *) 16742 ;; 16743 esac 16744 ;; 16745 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16746 case $cc_basename in 16747 KCC*) 16748 # KAI C++ Compiler 16749 lt_prog_compiler_wl_CXX='--backend -Wl,' 16750 lt_prog_compiler_pic_CXX='-fPIC' 16751 ;; 16752 ecpc* ) 16753 # old Intel C++ for x86_64 which still supported -KPIC. 16754 lt_prog_compiler_wl_CXX='-Wl,' 16755 lt_prog_compiler_pic_CXX='-KPIC' 16756 lt_prog_compiler_static_CXX='-static' 16757 ;; 16758 icpc* ) 16759 # Intel C++, used to be incompatible with GCC. 16760 # ICC 10 doesn't accept -KPIC any more. 16761 lt_prog_compiler_wl_CXX='-Wl,' 16762 lt_prog_compiler_pic_CXX='-fPIC' 16763 lt_prog_compiler_static_CXX='-static' 16764 ;; 16765 pgCC* | pgcpp*) 16766 # Portland Group C++ compiler 16767 lt_prog_compiler_wl_CXX='-Wl,' 16768 lt_prog_compiler_pic_CXX='-fpic' 16769 lt_prog_compiler_static_CXX='-Bstatic' 16770 ;; 16771 cxx*) 16772 # Compaq C++ 16773 # Make sure the PIC flag is empty. It appears that all Alpha 16774 # Linux and Compaq Tru64 Unix objects are PIC. 16775 lt_prog_compiler_pic_CXX= 16776 lt_prog_compiler_static_CXX='-non_shared' 16777 ;; 16778 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16779 # IBM XL 8.0, 9.0 on PPC and BlueGene 16780 lt_prog_compiler_wl_CXX='-Wl,' 16781 lt_prog_compiler_pic_CXX='-qpic' 16782 lt_prog_compiler_static_CXX='-qstaticlink' 16783 ;; 16784 *) 16785 case `$CC -V 2>&1 | sed 5q` in 16786 *Sun\ C*) 16787 # Sun C++ 5.9 16788 lt_prog_compiler_pic_CXX='-KPIC' 16789 lt_prog_compiler_static_CXX='-Bstatic' 16790 lt_prog_compiler_wl_CXX='-Qoption ld ' 16791 ;; 16792 esac 16793 ;; 16794 esac 16795 ;; 16796 lynxos*) 16797 ;; 16798 m88k*) 16799 ;; 16800 mvs*) 16801 case $cc_basename in 16802 cxx*) 16803 lt_prog_compiler_pic_CXX='-W c,exportall' 16804 ;; 16805 *) 16806 ;; 16807 esac 16808 ;; 16809 netbsd* | netbsdelf*-gnu) 16810 ;; 16811 *qnx* | *nto*) 16812 # QNX uses GNU C++, but need to define -shared option too, otherwise 16813 # it will coredump. 16814 lt_prog_compiler_pic_CXX='-fPIC -shared' 16815 ;; 16816 osf3* | osf4* | osf5*) 16817 case $cc_basename in 16818 KCC*) 16819 lt_prog_compiler_wl_CXX='--backend -Wl,' 16820 ;; 16821 RCC*) 16822 # Rational C++ 2.4.1 16823 lt_prog_compiler_pic_CXX='-pic' 16824 ;; 16825 cxx*) 16826 # Digital/Compaq C++ 16827 lt_prog_compiler_wl_CXX='-Wl,' 16828 # Make sure the PIC flag is empty. It appears that all Alpha 16829 # Linux and Compaq Tru64 Unix objects are PIC. 16830 lt_prog_compiler_pic_CXX= 16831 lt_prog_compiler_static_CXX='-non_shared' 16832 ;; 16833 *) 16834 ;; 16835 esac 16836 ;; 16837 psos*) 16838 ;; 16839 solaris*) 16840 case $cc_basename in 16841 CC* | sunCC*) 16842 # Sun C++ 4.2, 5.x and Centerline C++ 16843 lt_prog_compiler_pic_CXX='-KPIC' 16844 lt_prog_compiler_static_CXX='-Bstatic' 16845 lt_prog_compiler_wl_CXX='-Qoption ld ' 16846 ;; 16847 gcx*) 16848 # Green Hills C++ Compiler 16849 lt_prog_compiler_pic_CXX='-PIC' 16850 ;; 16851 *) 16852 ;; 16853 esac 16854 ;; 16855 sunos4*) 16856 case $cc_basename in 16857 CC*) 16858 # Sun C++ 4.x 16859 lt_prog_compiler_pic_CXX='-pic' 16860 lt_prog_compiler_static_CXX='-Bstatic' 16861 ;; 16862 lcc*) 16863 # Lucid 16864 lt_prog_compiler_pic_CXX='-pic' 16865 ;; 16866 *) 16867 ;; 16868 esac 16869 ;; 16870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16871 case $cc_basename in 16872 CC*) 16873 lt_prog_compiler_wl_CXX='-Wl,' 16874 lt_prog_compiler_pic_CXX='-KPIC' 16875 lt_prog_compiler_static_CXX='-Bstatic' 16876 ;; 16877 esac 16878 ;; 16879 tandem*) 16880 case $cc_basename in 16881 NCC*) 16882 # NonStop-UX NCC 3.20 16883 lt_prog_compiler_pic_CXX='-KPIC' 16884 ;; 16885 *) 16886 ;; 16887 esac 16888 ;; 16889 vxworks*) 16890 ;; 16891 *) 16892 lt_prog_compiler_can_build_shared_CXX=no 16893 ;; 16894 esac 16895 fi 16896 16897case $host_os in 16898 # For platforms which do not support PIC, -DPIC is meaningless: 16899 *djgpp*) 16900 lt_prog_compiler_pic_CXX= 16901 ;; 16902 *) 16903 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16904 ;; 16905esac 16906 16907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16908$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16909if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16910 $as_echo_n "(cached) " >&6 16911else 16912 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16913fi 16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16915$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16916lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16917 16918# 16919# Check to make sure the PIC flag actually works. 16920# 16921if test -n "$lt_prog_compiler_pic_CXX"; then 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16923$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16924if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16925 $as_echo_n "(cached) " >&6 16926else 16927 lt_cv_prog_compiler_pic_works_CXX=no 16928 ac_outfile=conftest.$ac_objext 16929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16930 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 16931 # Insert the option either (1) after the last *FLAGS variable, or 16932 # (2) before a word containing "conftest.", or (3) at the end. 16933 # Note that $ac_compile itself does not contain backslashes and begins 16934 # with a dollar sign (not a hyphen), so the echo should work correctly. 16935 # The option is referenced via a variable to avoid confusing sed. 16936 lt_compile=`echo "$ac_compile" | $SED \ 16937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16939 -e 's:$: $lt_compiler_flag:'` 16940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16941 (eval "$lt_compile" 2>conftest.err) 16942 ac_status=$? 16943 cat conftest.err >&5 16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16945 if (exit $ac_status) && test -s "$ac_outfile"; then 16946 # The compiler can only warn and ignore the option if not recognized 16947 # So say no if there are warnings other than the usual output. 16948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16951 lt_cv_prog_compiler_pic_works_CXX=yes 16952 fi 16953 fi 16954 $RM conftest* 16955 16956fi 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16958$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16959 16960if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 16961 case $lt_prog_compiler_pic_CXX in 16962 "" | " "*) ;; 16963 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16964 esac 16965else 16966 lt_prog_compiler_pic_CXX= 16967 lt_prog_compiler_can_build_shared_CXX=no 16968fi 16969 16970fi 16971 16972 16973 16974 16975 16976# 16977# Check to make sure the static flag actually works. 16978# 16979wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16981$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16982if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16983 $as_echo_n "(cached) " >&6 16984else 16985 lt_cv_prog_compiler_static_works_CXX=no 16986 save_LDFLAGS="$LDFLAGS" 16987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16988 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16990 # The linker can only warn and ignore the option if not recognized 16991 # So say no if there are warnings 16992 if test -s conftest.err; then 16993 # Append any errors to the config.log. 16994 cat conftest.err 1>&5 16995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16997 if diff conftest.exp conftest.er2 >/dev/null; then 16998 lt_cv_prog_compiler_static_works_CXX=yes 16999 fi 17000 else 17001 lt_cv_prog_compiler_static_works_CXX=yes 17002 fi 17003 fi 17004 $RM -r conftest* 17005 LDFLAGS="$save_LDFLAGS" 17006 17007fi 17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17009$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17010 17011if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 17012 : 17013else 17014 lt_prog_compiler_static_CXX= 17015fi 17016 17017 17018 17019 17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17022if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17023 $as_echo_n "(cached) " >&6 17024else 17025 lt_cv_prog_compiler_c_o_CXX=no 17026 $RM -r conftest 2>/dev/null 17027 mkdir conftest 17028 cd conftest 17029 mkdir out 17030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17031 17032 lt_compiler_flag="-o out/conftest2.$ac_objext" 17033 # Insert the option either (1) after the last *FLAGS variable, or 17034 # (2) before a word containing "conftest.", or (3) at the end. 17035 # Note that $ac_compile itself does not contain backslashes and begins 17036 # with a dollar sign (not a hyphen), so the echo should work correctly. 17037 lt_compile=`echo "$ac_compile" | $SED \ 17038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17040 -e 's:$: $lt_compiler_flag:'` 17041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17042 (eval "$lt_compile" 2>out/conftest.err) 17043 ac_status=$? 17044 cat out/conftest.err >&5 17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17046 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17047 then 17048 # The compiler can only warn and ignore the option if not recognized 17049 # So say no if there are warnings 17050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17053 lt_cv_prog_compiler_c_o_CXX=yes 17054 fi 17055 fi 17056 chmod u+w . 2>&5 17057 $RM conftest* 17058 # SGI C++ compiler will create directory out/ii_files/ for 17059 # template instantiation 17060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17061 $RM out/* && rmdir out 17062 cd .. 17063 $RM -r conftest 17064 $RM conftest* 17065 17066fi 17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17068$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17069 17070 17071 17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17073$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17074if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 lt_cv_prog_compiler_c_o_CXX=no 17078 $RM -r conftest 2>/dev/null 17079 mkdir conftest 17080 cd conftest 17081 mkdir out 17082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17083 17084 lt_compiler_flag="-o out/conftest2.$ac_objext" 17085 # Insert the option either (1) after the last *FLAGS variable, or 17086 # (2) before a word containing "conftest.", or (3) at the end. 17087 # Note that $ac_compile itself does not contain backslashes and begins 17088 # with a dollar sign (not a hyphen), so the echo should work correctly. 17089 lt_compile=`echo "$ac_compile" | $SED \ 17090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17092 -e 's:$: $lt_compiler_flag:'` 17093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17094 (eval "$lt_compile" 2>out/conftest.err) 17095 ac_status=$? 17096 cat out/conftest.err >&5 17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17099 then 17100 # The compiler can only warn and ignore the option if not recognized 17101 # So say no if there are warnings 17102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17105 lt_cv_prog_compiler_c_o_CXX=yes 17106 fi 17107 fi 17108 chmod u+w . 2>&5 17109 $RM conftest* 17110 # SGI C++ compiler will create directory out/ii_files/ for 17111 # template instantiation 17112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17113 $RM out/* && rmdir out 17114 cd .. 17115 $RM -r conftest 17116 $RM conftest* 17117 17118fi 17119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17120$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17121 17122 17123 17124 17125hard_links="nottested" 17126if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 17127 # do not overwrite the value of need_locks provided by the user 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17129$as_echo_n "checking if we can lock with hard links... " >&6; } 17130 hard_links=yes 17131 $RM conftest* 17132 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17133 touch conftest.a 17134 ln conftest.a conftest.b 2>&5 || hard_links=no 17135 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17137$as_echo "$hard_links" >&6; } 17138 if test "$hard_links" = no; then 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17140$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17141 need_locks=warn 17142 fi 17143else 17144 need_locks=no 17145fi 17146 17147 17148 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17150$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17151 17152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17153 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17154 case $host_os in 17155 aix[4-9]*) 17156 # If we're using GNU nm, then we don't want the "-C" option. 17157 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17158 # Also, AIX nm treats weak defined symbols like other global defined 17159 # symbols, whereas GNU nm marks them as "W". 17160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17161 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17162 else 17163 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17164 fi 17165 ;; 17166 pw32*) 17167 export_symbols_cmds_CXX="$ltdll_cmds" 17168 ;; 17169 cygwin* | mingw* | cegcc*) 17170 case $cc_basename in 17171 cl*) 17172 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17173 ;; 17174 *) 17175 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' 17176 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17177 ;; 17178 esac 17179 ;; 17180 linux* | k*bsd*-gnu | gnu*) 17181 link_all_deplibs_CXX=no 17182 ;; 17183 *) 17184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17185 ;; 17186 esac 17187 17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17189$as_echo "$ld_shlibs_CXX" >&6; } 17190test "$ld_shlibs_CXX" = no && can_build_shared=no 17191 17192with_gnu_ld_CXX=$with_gnu_ld 17193 17194 17195 17196 17197 17198 17199# 17200# Do we need to explicitly link libc? 17201# 17202case "x$archive_cmds_need_lc_CXX" in 17203x|xyes) 17204 # Assume -lc should be added 17205 archive_cmds_need_lc_CXX=yes 17206 17207 if test "$enable_shared" = yes && test "$GCC" = yes; then 17208 case $archive_cmds_CXX in 17209 *'~'*) 17210 # FIXME: we may have to deal with multi-command sequences. 17211 ;; 17212 '$CC '*) 17213 # Test whether the compiler implicitly links with -lc since on some 17214 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17215 # to ld, don't add -lc before -lgcc. 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17218if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17219 $as_echo_n "(cached) " >&6 17220else 17221 $RM conftest* 17222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17223 17224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17225 (eval $ac_compile) 2>&5 17226 ac_status=$? 17227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17228 test $ac_status = 0; } 2>conftest.err; then 17229 soname=conftest 17230 lib=conftest 17231 libobjs=conftest.$ac_objext 17232 deplibs= 17233 wl=$lt_prog_compiler_wl_CXX 17234 pic_flag=$lt_prog_compiler_pic_CXX 17235 compiler_flags=-v 17236 linker_flags=-v 17237 verstring= 17238 output_objdir=. 17239 libname=conftest 17240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17241 allow_undefined_flag_CXX= 17242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17244 ac_status=$? 17245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17246 test $ac_status = 0; } 17247 then 17248 lt_cv_archive_cmds_need_lc_CXX=no 17249 else 17250 lt_cv_archive_cmds_need_lc_CXX=yes 17251 fi 17252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17253 else 17254 cat conftest.err 1>&5 17255 fi 17256 $RM conftest* 17257 17258fi 17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17260$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17262 ;; 17263 esac 17264 fi 17265 ;; 17266esac 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17330$as_echo_n "checking dynamic linker characteristics... " >&6; } 17331 17332library_names_spec= 17333libname_spec='lib$name' 17334soname_spec= 17335shrext_cmds=".so" 17336postinstall_cmds= 17337postuninstall_cmds= 17338finish_cmds= 17339finish_eval= 17340shlibpath_var= 17341shlibpath_overrides_runpath=unknown 17342version_type=none 17343dynamic_linker="$host_os ld.so" 17344sys_lib_dlsearch_path_spec="/lib /usr/lib" 17345need_lib_prefix=unknown 17346hardcode_into_libs=no 17347 17348# when you set need_version to no, make sure it does not cause -set_version 17349# flags to be left without arguments 17350need_version=unknown 17351 17352case $host_os in 17353aix3*) 17354 version_type=linux # correct to gnu/linux during the next big refactor 17355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17356 shlibpath_var=LIBPATH 17357 17358 # AIX 3 has no versioning support, so we append a major version to the name. 17359 soname_spec='${libname}${release}${shared_ext}$major' 17360 ;; 17361 17362aix[4-9]*) 17363 version_type=linux # correct to gnu/linux during the next big refactor 17364 need_lib_prefix=no 17365 need_version=no 17366 hardcode_into_libs=yes 17367 if test "$host_cpu" = ia64; then 17368 # AIX 5 supports IA64 17369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17370 shlibpath_var=LD_LIBRARY_PATH 17371 else 17372 # With GCC up to 2.95.x, collect2 would create an import file 17373 # for dependence libraries. The import file would start with 17374 # the line `#! .'. This would cause the generated library to 17375 # depend on `.', always an invalid library. This was fixed in 17376 # development snapshots of GCC prior to 3.0. 17377 case $host_os in 17378 aix4 | aix4.[01] | aix4.[01].*) 17379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17380 echo ' yes ' 17381 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17382 : 17383 else 17384 can_build_shared=no 17385 fi 17386 ;; 17387 esac 17388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17389 # soname into executable. Probably we can add versioning support to 17390 # collect2, so additional links can be useful in future. 17391 if test "$aix_use_runtimelinking" = yes; then 17392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17393 # instead of lib<name>.a to let people know that these are not 17394 # typical AIX shared libraries. 17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17396 else 17397 # We preserve .a as extension for shared libraries through AIX4.2 17398 # and later when we are not doing run time linking. 17399 library_names_spec='${libname}${release}.a $libname.a' 17400 soname_spec='${libname}${release}${shared_ext}$major' 17401 fi 17402 shlibpath_var=LIBPATH 17403 fi 17404 ;; 17405 17406amigaos*) 17407 case $host_cpu in 17408 powerpc) 17409 # Since July 2007 AmigaOS4 officially supports .so libraries. 17410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17412 ;; 17413 m68k) 17414 library_names_spec='$libname.ixlibrary $libname.a' 17415 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17416 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17417 ;; 17418 esac 17419 ;; 17420 17421beos*) 17422 library_names_spec='${libname}${shared_ext}' 17423 dynamic_linker="$host_os ld.so" 17424 shlibpath_var=LIBRARY_PATH 17425 ;; 17426 17427bsdi[45]*) 17428 version_type=linux # correct to gnu/linux during the next big refactor 17429 need_version=no 17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17431 soname_spec='${libname}${release}${shared_ext}$major' 17432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17433 shlibpath_var=LD_LIBRARY_PATH 17434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17436 # the default ld.so.conf also contains /usr/contrib/lib and 17437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17438 # libtool to hard-code these into programs 17439 ;; 17440 17441cygwin* | mingw* | pw32* | cegcc*) 17442 version_type=windows 17443 shrext_cmds=".dll" 17444 need_version=no 17445 need_lib_prefix=no 17446 17447 case $GCC,$cc_basename in 17448 yes,*) 17449 # gcc 17450 library_names_spec='$libname.dll.a' 17451 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17452 postinstall_cmds='base_file=`basename \${file}`~ 17453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17454 dldir=$destdir/`dirname \$dlpath`~ 17455 test -d \$dldir || mkdir -p \$dldir~ 17456 $install_prog $dir/$dlname \$dldir/$dlname~ 17457 chmod a+x \$dldir/$dlname~ 17458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17460 fi' 17461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17462 dlpath=$dir/\$dldll~ 17463 $RM \$dlpath' 17464 shlibpath_overrides_runpath=yes 17465 17466 case $host_os in 17467 cygwin*) 17468 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17470 17471 ;; 17472 mingw* | cegcc*) 17473 # MinGW DLLs use traditional 'lib' prefix 17474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17475 ;; 17476 pw32*) 17477 # pw32 DLLs use 'pw' prefix rather than 'lib' 17478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17479 ;; 17480 esac 17481 dynamic_linker='Win32 ld.exe' 17482 ;; 17483 17484 *,cl*) 17485 # Native MSVC 17486 libname_spec='$name' 17487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17488 library_names_spec='${libname}.dll.lib' 17489 17490 case $build_os in 17491 mingw*) 17492 sys_lib_search_path_spec= 17493 lt_save_ifs=$IFS 17494 IFS=';' 17495 for lt_path in $LIB 17496 do 17497 IFS=$lt_save_ifs 17498 # Let DOS variable expansion print the short 8.3 style file name. 17499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17501 done 17502 IFS=$lt_save_ifs 17503 # Convert to MSYS style. 17504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17505 ;; 17506 cygwin*) 17507 # Convert to unix form, then to dos form, then back to unix form 17508 # but this time dos style (no spaces!) so that the unix form looks 17509 # like /cygdrive/c/PROGRA~1:/cygdr... 17510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17513 ;; 17514 *) 17515 sys_lib_search_path_spec="$LIB" 17516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17517 # It is most probably a Windows format PATH. 17518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17519 else 17520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17521 fi 17522 # FIXME: find the short name or the path components, as spaces are 17523 # common. (e.g. "Program Files" -> "PROGRA~1") 17524 ;; 17525 esac 17526 17527 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17528 postinstall_cmds='base_file=`basename \${file}`~ 17529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17530 dldir=$destdir/`dirname \$dlpath`~ 17531 test -d \$dldir || mkdir -p \$dldir~ 17532 $install_prog $dir/$dlname \$dldir/$dlname' 17533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17534 dlpath=$dir/\$dldll~ 17535 $RM \$dlpath' 17536 shlibpath_overrides_runpath=yes 17537 dynamic_linker='Win32 link.exe' 17538 ;; 17539 17540 *) 17541 # Assume MSVC wrapper 17542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17543 dynamic_linker='Win32 ld.exe' 17544 ;; 17545 esac 17546 # FIXME: first we should search . and the directory the executable is in 17547 shlibpath_var=PATH 17548 ;; 17549 17550darwin* | rhapsody*) 17551 dynamic_linker="$host_os dyld" 17552 version_type=darwin 17553 need_lib_prefix=no 17554 need_version=no 17555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17556 soname_spec='${libname}${release}${major}$shared_ext' 17557 shlibpath_overrides_runpath=yes 17558 shlibpath_var=DYLD_LIBRARY_PATH 17559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17560 17561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17562 ;; 17563 17564dgux*) 17565 version_type=linux # correct to gnu/linux during the next big refactor 17566 need_lib_prefix=no 17567 need_version=no 17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17569 soname_spec='${libname}${release}${shared_ext}$major' 17570 shlibpath_var=LD_LIBRARY_PATH 17571 ;; 17572 17573freebsd* | dragonfly*) 17574 # DragonFly does not have aout. When/if they implement a new 17575 # versioning mechanism, adjust this. 17576 if test -x /usr/bin/objformat; then 17577 objformat=`/usr/bin/objformat` 17578 else 17579 case $host_os in 17580 freebsd[23].*) objformat=aout ;; 17581 *) objformat=elf ;; 17582 esac 17583 fi 17584 version_type=freebsd-$objformat 17585 case $version_type in 17586 freebsd-elf*) 17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17588 need_version=no 17589 need_lib_prefix=no 17590 ;; 17591 freebsd-*) 17592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17593 need_version=yes 17594 ;; 17595 esac 17596 shlibpath_var=LD_LIBRARY_PATH 17597 case $host_os in 17598 freebsd2.*) 17599 shlibpath_overrides_runpath=yes 17600 ;; 17601 freebsd3.[01]* | freebsdelf3.[01]*) 17602 shlibpath_overrides_runpath=yes 17603 hardcode_into_libs=yes 17604 ;; 17605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17607 shlibpath_overrides_runpath=no 17608 hardcode_into_libs=yes 17609 ;; 17610 *) # from 4.6 on, and DragonFly 17611 shlibpath_overrides_runpath=yes 17612 hardcode_into_libs=yes 17613 ;; 17614 esac 17615 ;; 17616 17617gnu*) 17618 version_type=linux # correct to gnu/linux during the next big refactor 17619 need_lib_prefix=no 17620 need_version=no 17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17622 soname_spec='${libname}${release}${shared_ext}$major' 17623 shlibpath_var=LD_LIBRARY_PATH 17624 shlibpath_overrides_runpath=no 17625 hardcode_into_libs=yes 17626 ;; 17627 17628haiku*) 17629 version_type=linux # correct to gnu/linux during the next big refactor 17630 need_lib_prefix=no 17631 need_version=no 17632 dynamic_linker="$host_os runtime_loader" 17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17634 soname_spec='${libname}${release}${shared_ext}$major' 17635 shlibpath_var=LIBRARY_PATH 17636 shlibpath_overrides_runpath=yes 17637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17638 hardcode_into_libs=yes 17639 ;; 17640 17641hpux9* | hpux10* | hpux11*) 17642 # Give a soname corresponding to the major version so that dld.sl refuses to 17643 # link against other versions. 17644 version_type=sunos 17645 need_lib_prefix=no 17646 need_version=no 17647 case $host_cpu in 17648 ia64*) 17649 shrext_cmds='.so' 17650 hardcode_into_libs=yes 17651 dynamic_linker="$host_os dld.so" 17652 shlibpath_var=LD_LIBRARY_PATH 17653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17655 soname_spec='${libname}${release}${shared_ext}$major' 17656 if test "X$HPUX_IA64_MODE" = X32; then 17657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17658 else 17659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17660 fi 17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17662 ;; 17663 hppa*64*) 17664 shrext_cmds='.sl' 17665 hardcode_into_libs=yes 17666 dynamic_linker="$host_os dld.sl" 17667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17670 soname_spec='${libname}${release}${shared_ext}$major' 17671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17673 ;; 17674 *) 17675 shrext_cmds='.sl' 17676 dynamic_linker="$host_os dld.sl" 17677 shlibpath_var=SHLIB_PATH 17678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17680 soname_spec='${libname}${release}${shared_ext}$major' 17681 ;; 17682 esac 17683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17684 postinstall_cmds='chmod 555 $lib' 17685 # or fails outright, so override atomically: 17686 install_override_mode=555 17687 ;; 17688 17689interix[3-9]*) 17690 version_type=linux # correct to gnu/linux during the next big refactor 17691 need_lib_prefix=no 17692 need_version=no 17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17694 soname_spec='${libname}${release}${shared_ext}$major' 17695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17696 shlibpath_var=LD_LIBRARY_PATH 17697 shlibpath_overrides_runpath=no 17698 hardcode_into_libs=yes 17699 ;; 17700 17701irix5* | irix6* | nonstopux*) 17702 case $host_os in 17703 nonstopux*) version_type=nonstopux ;; 17704 *) 17705 if test "$lt_cv_prog_gnu_ld" = yes; then 17706 version_type=linux # correct to gnu/linux during the next big refactor 17707 else 17708 version_type=irix 17709 fi ;; 17710 esac 17711 need_lib_prefix=no 17712 need_version=no 17713 soname_spec='${libname}${release}${shared_ext}$major' 17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17715 case $host_os in 17716 irix5* | nonstopux*) 17717 libsuff= shlibsuff= 17718 ;; 17719 *) 17720 case $LD in # libtool.m4 will add one of these switches to LD 17721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17722 libsuff= shlibsuff= libmagic=32-bit;; 17723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17724 libsuff=32 shlibsuff=N32 libmagic=N32;; 17725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17726 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17727 *) libsuff= shlibsuff= libmagic=never-match;; 17728 esac 17729 ;; 17730 esac 17731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17732 shlibpath_overrides_runpath=no 17733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17735 hardcode_into_libs=yes 17736 ;; 17737 17738# No shared lib support for Linux oldld, aout, or coff. 17739linux*oldld* | linux*aout* | linux*coff*) 17740 dynamic_linker=no 17741 ;; 17742 17743# This must be glibc/ELF. 17744linux* | k*bsd*-gnu | kopensolaris*-gnu) 17745 version_type=linux # correct to gnu/linux during the next big refactor 17746 need_lib_prefix=no 17747 need_version=no 17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17749 soname_spec='${libname}${release}${shared_ext}$major' 17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17751 shlibpath_var=LD_LIBRARY_PATH 17752 shlibpath_overrides_runpath=no 17753 17754 # Some binutils ld are patched to set DT_RUNPATH 17755 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17756 $as_echo_n "(cached) " >&6 17757else 17758 lt_cv_shlibpath_overrides_runpath=no 17759 save_LDFLAGS=$LDFLAGS 17760 save_libdir=$libdir 17761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17764/* end confdefs.h. */ 17765 17766int 17767main () 17768{ 17769 17770 ; 17771 return 0; 17772} 17773_ACEOF 17774if ac_fn_cxx_try_link "$LINENO"; then : 17775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17776 lt_cv_shlibpath_overrides_runpath=yes 17777fi 17778fi 17779rm -f core conftest.err conftest.$ac_objext \ 17780 conftest$ac_exeext conftest.$ac_ext 17781 LDFLAGS=$save_LDFLAGS 17782 libdir=$save_libdir 17783 17784fi 17785 17786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17787 17788 # This implies no fast_install, which is unacceptable. 17789 # Some rework will be needed to allow for fast_install 17790 # before this can be enabled. 17791 hardcode_into_libs=yes 17792 17793 # Append ld.so.conf contents to the search path 17794 if test -f /etc/ld.so.conf; then 17795 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' ' '` 17796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17797 fi 17798 17799 # We used to test for /lib/ld.so.1 and disable shared libraries on 17800 # powerpc, because MkLinux only supported shared libraries with the 17801 # GNU dynamic linker. Since this was broken with cross compilers, 17802 # most powerpc-linux boxes support dynamic linking these days and 17803 # people can always --disable-shared, the test was removed, and we 17804 # assume the GNU/Linux dynamic linker is in use. 17805 dynamic_linker='GNU/Linux ld.so' 17806 ;; 17807 17808netbsdelf*-gnu) 17809 version_type=linux 17810 need_lib_prefix=no 17811 need_version=no 17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17813 soname_spec='${libname}${release}${shared_ext}$major' 17814 shlibpath_var=LD_LIBRARY_PATH 17815 shlibpath_overrides_runpath=no 17816 hardcode_into_libs=yes 17817 dynamic_linker='NetBSD ld.elf_so' 17818 ;; 17819 17820netbsd*) 17821 version_type=sunos 17822 need_lib_prefix=no 17823 need_version=no 17824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17827 dynamic_linker='NetBSD (a.out) ld.so' 17828 else 17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17830 soname_spec='${libname}${release}${shared_ext}$major' 17831 dynamic_linker='NetBSD ld.elf_so' 17832 fi 17833 shlibpath_var=LD_LIBRARY_PATH 17834 shlibpath_overrides_runpath=yes 17835 hardcode_into_libs=yes 17836 ;; 17837 17838newsos6) 17839 version_type=linux # correct to gnu/linux during the next big refactor 17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17841 shlibpath_var=LD_LIBRARY_PATH 17842 shlibpath_overrides_runpath=yes 17843 ;; 17844 17845*nto* | *qnx*) 17846 version_type=qnx 17847 need_lib_prefix=no 17848 need_version=no 17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17850 soname_spec='${libname}${release}${shared_ext}$major' 17851 shlibpath_var=LD_LIBRARY_PATH 17852 shlibpath_overrides_runpath=no 17853 hardcode_into_libs=yes 17854 dynamic_linker='ldqnx.so' 17855 ;; 17856 17857openbsd*) 17858 version_type=sunos 17859 sys_lib_dlsearch_path_spec="/usr/lib" 17860 need_lib_prefix=no 17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17862 case $host_os in 17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17864 *) need_version=no ;; 17865 esac 17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17868 shlibpath_var=LD_LIBRARY_PATH 17869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17870 case $host_os in 17871 openbsd2.[89] | openbsd2.[89].*) 17872 shlibpath_overrides_runpath=no 17873 ;; 17874 *) 17875 shlibpath_overrides_runpath=yes 17876 ;; 17877 esac 17878 else 17879 shlibpath_overrides_runpath=yes 17880 fi 17881 ;; 17882 17883os2*) 17884 libname_spec='$name' 17885 shrext_cmds=".dll" 17886 need_lib_prefix=no 17887 library_names_spec='$libname${shared_ext} $libname.a' 17888 dynamic_linker='OS/2 ld.exe' 17889 shlibpath_var=LIBPATH 17890 ;; 17891 17892osf3* | osf4* | osf5*) 17893 version_type=osf 17894 need_lib_prefix=no 17895 need_version=no 17896 soname_spec='${libname}${release}${shared_ext}$major' 17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17898 shlibpath_var=LD_LIBRARY_PATH 17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17901 ;; 17902 17903rdos*) 17904 dynamic_linker=no 17905 ;; 17906 17907solaris*) 17908 version_type=linux # correct to gnu/linux during the next big refactor 17909 need_lib_prefix=no 17910 need_version=no 17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17912 soname_spec='${libname}${release}${shared_ext}$major' 17913 shlibpath_var=LD_LIBRARY_PATH 17914 shlibpath_overrides_runpath=yes 17915 hardcode_into_libs=yes 17916 # ldd complains unless libraries are executable 17917 postinstall_cmds='chmod +x $lib' 17918 ;; 17919 17920sunos4*) 17921 version_type=sunos 17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17924 shlibpath_var=LD_LIBRARY_PATH 17925 shlibpath_overrides_runpath=yes 17926 if test "$with_gnu_ld" = yes; then 17927 need_lib_prefix=no 17928 fi 17929 need_version=yes 17930 ;; 17931 17932sysv4 | sysv4.3*) 17933 version_type=linux # correct to gnu/linux during the next big refactor 17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17935 soname_spec='${libname}${release}${shared_ext}$major' 17936 shlibpath_var=LD_LIBRARY_PATH 17937 case $host_vendor in 17938 sni) 17939 shlibpath_overrides_runpath=no 17940 need_lib_prefix=no 17941 runpath_var=LD_RUN_PATH 17942 ;; 17943 siemens) 17944 need_lib_prefix=no 17945 ;; 17946 motorola) 17947 need_lib_prefix=no 17948 need_version=no 17949 shlibpath_overrides_runpath=no 17950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17951 ;; 17952 esac 17953 ;; 17954 17955sysv4*MP*) 17956 if test -d /usr/nec ;then 17957 version_type=linux # correct to gnu/linux during the next big refactor 17958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17959 soname_spec='$libname${shared_ext}.$major' 17960 shlibpath_var=LD_LIBRARY_PATH 17961 fi 17962 ;; 17963 17964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17965 version_type=freebsd-elf 17966 need_lib_prefix=no 17967 need_version=no 17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17969 soname_spec='${libname}${release}${shared_ext}$major' 17970 shlibpath_var=LD_LIBRARY_PATH 17971 shlibpath_overrides_runpath=yes 17972 hardcode_into_libs=yes 17973 if test "$with_gnu_ld" = yes; then 17974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17975 else 17976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17977 case $host_os in 17978 sco3.2v5*) 17979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17980 ;; 17981 esac 17982 fi 17983 sys_lib_dlsearch_path_spec='/usr/lib' 17984 ;; 17985 17986tpf*) 17987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17988 version_type=linux # correct to gnu/linux during the next big refactor 17989 need_lib_prefix=no 17990 need_version=no 17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17992 shlibpath_var=LD_LIBRARY_PATH 17993 shlibpath_overrides_runpath=no 17994 hardcode_into_libs=yes 17995 ;; 17996 17997uts4*) 17998 version_type=linux # correct to gnu/linux during the next big refactor 17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18000 soname_spec='${libname}${release}${shared_ext}$major' 18001 shlibpath_var=LD_LIBRARY_PATH 18002 ;; 18003 18004*) 18005 dynamic_linker=no 18006 ;; 18007esac 18008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18009$as_echo "$dynamic_linker" >&6; } 18010test "$dynamic_linker" = no && can_build_shared=no 18011 18012variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18013if test "$GCC" = yes; then 18014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18015fi 18016 18017if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18019fi 18020if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18022fi 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18062$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18063hardcode_action_CXX= 18064if test -n "$hardcode_libdir_flag_spec_CXX" || 18065 test -n "$runpath_var_CXX" || 18066 test "X$hardcode_automatic_CXX" = "Xyes" ; then 18067 18068 # We can hardcode non-existent directories. 18069 if test "$hardcode_direct_CXX" != no && 18070 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18071 # have to relink, otherwise we might link with an installed library 18072 # when we should be linking with a yet-to-be-installed one 18073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 18074 test "$hardcode_minus_L_CXX" != no; then 18075 # Linking always hardcodes the temporary library directory. 18076 hardcode_action_CXX=relink 18077 else 18078 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18079 hardcode_action_CXX=immediate 18080 fi 18081else 18082 # We cannot hardcode anything, or else we can only hardcode existing 18083 # directories. 18084 hardcode_action_CXX=unsupported 18085fi 18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18087$as_echo "$hardcode_action_CXX" >&6; } 18088 18089if test "$hardcode_action_CXX" = relink || 18090 test "$inherit_rpath_CXX" = yes; then 18091 # Fast installation is not supported 18092 enable_fast_install=no 18093elif test "$shlibpath_overrides_runpath" = yes || 18094 test "$enable_shared" = no; then 18095 # Fast installation is not necessary 18096 enable_fast_install=needless 18097fi 18098 18099 18100 18101 18102 18103 18104 18105 fi # test -n "$compiler" 18106 18107 CC=$lt_save_CC 18108 CFLAGS=$lt_save_CFLAGS 18109 LDCXX=$LD 18110 LD=$lt_save_LD 18111 GCC=$lt_save_GCC 18112 with_gnu_ld=$lt_save_with_gnu_ld 18113 lt_cv_path_LDCXX=$lt_cv_path_LD 18114 lt_cv_path_LD=$lt_save_path_LD 18115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18117fi # test "$_lt_caught_CXX_error" != yes 18118 18119ac_ext=c 18120ac_cpp='$CPP $CPPFLAGS' 18121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18123ac_compiler_gnu=$ac_cv_c_compiler_gnu 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 ac_config_commands="$ac_config_commands libtool" 18140 18141 18142 18143 18144# Only expand once: 18145 18146 18147for ac_prog in gawk mawk nawk awk 18148do 18149 # Extract the first word of "$ac_prog", so it can be a program name with args. 18150set dummy $ac_prog; ac_word=$2 18151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18152$as_echo_n "checking for $ac_word... " >&6; } 18153if ${ac_cv_prog_AWK+:} false; then : 18154 $as_echo_n "(cached) " >&6 18155else 18156 if test -n "$AWK"; then 18157 ac_cv_prog_AWK="$AWK" # Let the user override the test. 18158else 18159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18160for as_dir in $PATH 18161do 18162 IFS=$as_save_IFS 18163 test -z "$as_dir" && as_dir=. 18164 for ac_exec_ext in '' $ac_executable_extensions; do 18165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18166 ac_cv_prog_AWK="$ac_prog" 18167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18168 break 2 18169 fi 18170done 18171 done 18172IFS=$as_save_IFS 18173 18174fi 18175fi 18176AWK=$ac_cv_prog_AWK 18177if test -n "$AWK"; then 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 18179$as_echo "$AWK" >&6; } 18180else 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18182$as_echo "no" >&6; } 18183fi 18184 18185 18186 test -n "$AWK" && break 18187done 18188 18189 18190 18191# Extract the first word of "bison", so it can be a program name with args. 18192set dummy bison; ac_word=$2 18193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18194$as_echo_n "checking for $ac_word... " >&6; } 18195if ${ac_cv_path_BISON+:} false; then : 18196 $as_echo_n "(cached) " >&6 18197else 18198 case $BISON in 18199 [\\/]* | ?:[\\/]*) 18200 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 18201 ;; 18202 *) 18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18204for as_dir in $PATH 18205do 18206 IFS=$as_save_IFS 18207 test -z "$as_dir" && as_dir=. 18208 for ac_exec_ext in '' $ac_executable_extensions; do 18209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18210 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 18211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18212 break 2 18213 fi 18214done 18215 done 18216IFS=$as_save_IFS 18217 18218 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison" 18219 ;; 18220esac 18221fi 18222BISON=$ac_cv_path_BISON 18223if test -n "$BISON"; then 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 18225$as_echo "$BISON" >&6; } 18226else 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18228$as_echo "no" >&6; } 18229fi 18230 18231 18232# Extract the first word of "help2man", so it can be a program name with args. 18233set dummy help2man; ac_word=$2 18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18235$as_echo_n "checking for $ac_word... " >&6; } 18236if ${ac_cv_path_HELP2MAN+:} false; then : 18237 $as_echo_n "(cached) " >&6 18238else 18239 case $HELP2MAN in 18240 [\\/]* | ?:[\\/]*) 18241 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. 18242 ;; 18243 *) 18244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18245for as_dir in $PATH 18246do 18247 IFS=$as_save_IFS 18248 test -z "$as_dir" && as_dir=. 18249 for ac_exec_ext in '' $ac_executable_extensions; do 18250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18251 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" 18252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18253 break 2 18254 fi 18255done 18256 done 18257IFS=$as_save_IFS 18258 18259 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man" 18260 ;; 18261esac 18262fi 18263HELP2MAN=$ac_cv_path_HELP2MAN 18264if test -n "$HELP2MAN"; then 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 18266$as_echo "$HELP2MAN" >&6; } 18267else 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18269$as_echo "no" >&6; } 18270fi 18271 18272 18273 18274# Check for a m4 that supports -P 18275 18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5 18277$as_echo_n "checking for m4 that supports -P... " >&6; } 18278if ${ac_cv_path_M4+:} false; then : 18279 $as_echo_n "(cached) " >&6 18280else 18281 if test -z "$M4"; then 18282 ac_path_M4_found=false 18283 # Loop through the user's path and test for each of PROGNAME-LIST 18284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18285for as_dir in $PATH 18286do 18287 IFS=$as_save_IFS 18288 test -z "$as_dir" && as_dir=. 18289 for ac_prog in gm4 gnum4 m4; do 18290 for ac_exec_ext in '' $ac_executable_extensions; do 18291 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 18292 as_fn_executable_p "$ac_path_M4" || continue 18293m4out=`echo 'm''4_divnum' | $ac_path_M4 -P` 18294 test "x$m4out" = x0 \ 18295 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 18296 $ac_path_M4_found && break 3 18297 done 18298 done 18299 done 18300IFS=$as_save_IFS 18301 if test -z "$ac_cv_path_M4"; then 18302 as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5 18303 fi 18304else 18305 ac_cv_path_M4=$M4 18306fi 18307 18308fi 18309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 18310$as_echo "$ac_cv_path_M4" >&6; } 18311M4=$ac_cv_path_M4 18312 18313 18314cat >>confdefs.h <<_ACEOF 18315#define M4 "$M4" 18316_ACEOF 18317 18318 18319# Extract the first word of "indent", so it can be a program name with args. 18320set dummy indent; ac_word=$2 18321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18322$as_echo_n "checking for $ac_word... " >&6; } 18323if ${ac_cv_path_INDENT+:} false; then : 18324 $as_echo_n "(cached) " >&6 18325else 18326 case $INDENT in 18327 [\\/]* | ?:[\\/]*) 18328 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path. 18329 ;; 18330 *) 18331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18332for as_dir in $PATH 18333do 18334 IFS=$as_save_IFS 18335 test -z "$as_dir" && as_dir=. 18336 for ac_exec_ext in '' $ac_executable_extensions; do 18337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18338 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext" 18339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18340 break 2 18341 fi 18342done 18343 done 18344IFS=$as_save_IFS 18345 18346 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent" 18347 ;; 18348esac 18349fi 18350INDENT=$ac_cv_path_INDENT 18351if test -n "$INDENT"; then 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 18353$as_echo "$INDENT" >&6; } 18354else 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18356$as_echo "no" >&6; } 18357fi 18358 18359 18360# if INDENT is set to 'indent' then we didn't find indent 18361if test "$INDENT" != indent ; then 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5 18363$as_echo_n "checking if $INDENT is GNU indent... " >&6; } 18364 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18366$as_echo "yes" >&6; } 18367 else 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18369$as_echo "no" >&6; } 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5 18371$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;} 18372 fi 18373else 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5 18375$as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;} 18376fi 18377 18378# checks for headers 18379 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18381$as_echo_n "checking for ANSI C header files... " >&6; } 18382if ${ac_cv_header_stdc+:} false; then : 18383 $as_echo_n "(cached) " >&6 18384else 18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18386/* end confdefs.h. */ 18387#include <stdlib.h> 18388#include <stdarg.h> 18389#include <string.h> 18390#include <float.h> 18391 18392int 18393main () 18394{ 18395 18396 ; 18397 return 0; 18398} 18399_ACEOF 18400if ac_fn_c_try_compile "$LINENO"; then : 18401 ac_cv_header_stdc=yes 18402else 18403 ac_cv_header_stdc=no 18404fi 18405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18406 18407if test $ac_cv_header_stdc = yes; then 18408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18410/* end confdefs.h. */ 18411#include <string.h> 18412 18413_ACEOF 18414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18415 $EGREP "memchr" >/dev/null 2>&1; then : 18416 18417else 18418 ac_cv_header_stdc=no 18419fi 18420rm -f conftest* 18421 18422fi 18423 18424if test $ac_cv_header_stdc = yes; then 18425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18427/* end confdefs.h. */ 18428#include <stdlib.h> 18429 18430_ACEOF 18431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18432 $EGREP "free" >/dev/null 2>&1; then : 18433 18434else 18435 ac_cv_header_stdc=no 18436fi 18437rm -f conftest* 18438 18439fi 18440 18441if test $ac_cv_header_stdc = yes; then 18442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18443 if test "$cross_compiling" = yes; then : 18444 : 18445else 18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448#include <ctype.h> 18449#include <stdlib.h> 18450#if ((' ' & 0x0FF) == 0x020) 18451# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18452# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18453#else 18454# define ISLOWER(c) \ 18455 (('a' <= (c) && (c) <= 'i') \ 18456 || ('j' <= (c) && (c) <= 'r') \ 18457 || ('s' <= (c) && (c) <= 'z')) 18458# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18459#endif 18460 18461#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18462int 18463main () 18464{ 18465 int i; 18466 for (i = 0; i < 256; i++) 18467 if (XOR (islower (i), ISLOWER (i)) 18468 || toupper (i) != TOUPPER (i)) 18469 return 2; 18470 return 0; 18471} 18472_ACEOF 18473if ac_fn_c_try_run "$LINENO"; then : 18474 18475else 18476 ac_cv_header_stdc=no 18477fi 18478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18479 conftest.$ac_objext conftest.beam conftest.$ac_ext 18480fi 18481 18482fi 18483fi 18484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18485$as_echo "$ac_cv_header_stdc" >&6; } 18486if test $ac_cv_header_stdc = yes; then 18487 18488$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18489 18490fi 18491 18492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 18493$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 18494if ${ac_cv_header_sys_wait_h+:} false; then : 18495 $as_echo_n "(cached) " >&6 18496else 18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18498/* end confdefs.h. */ 18499#include <sys/types.h> 18500#include <sys/wait.h> 18501#ifndef WEXITSTATUS 18502# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 18503#endif 18504#ifndef WIFEXITED 18505# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18506#endif 18507 18508int 18509main () 18510{ 18511 int s; 18512 wait (&s); 18513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18514 ; 18515 return 0; 18516} 18517_ACEOF 18518if ac_fn_c_try_compile "$LINENO"; then : 18519 ac_cv_header_sys_wait_h=yes 18520else 18521 ac_cv_header_sys_wait_h=no 18522fi 18523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18524fi 18525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 18526$as_echo "$ac_cv_header_sys_wait_h" >&6; } 18527if test $ac_cv_header_sys_wait_h = yes; then 18528 18529$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 18530 18531fi 18532 18533for 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 18534do : 18535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18536ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18538 cat >>confdefs.h <<_ACEOF 18539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18540_ACEOF 18541 18542fi 18543 18544done 18545 18546 18547# checks for libraries 18548 18549# The test test-pthread uses libpthread, so we check for it here, but 18550# all we need is the preprocessor symbol defined since we don't need 18551# LIBS to include libpthread for building flex. 18552 18553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 18554$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } 18555if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then : 18556 $as_echo_n "(cached) " >&6 18557else 18558 ac_check_lib_save_LIBS=$LIBS 18559LIBS="-lpthread $LIBS" 18560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18561/* end confdefs.h. */ 18562 18563/* Override any GCC internal prototype to avoid an error. 18564 Use char because int might match the return type of a GCC 18565 builtin and then its argument prototype would still apply. */ 18566#ifdef __cplusplus 18567extern "C" 18568#endif 18569char pthread_mutex_lock (); 18570int 18571main () 18572{ 18573return pthread_mutex_lock (); 18574 ; 18575 return 0; 18576} 18577_ACEOF 18578if ac_fn_c_try_link "$LINENO"; then : 18579 ac_cv_lib_pthread_pthread_mutex_lock=yes 18580else 18581 ac_cv_lib_pthread_pthread_mutex_lock=no 18582fi 18583rm -f core conftest.err conftest.$ac_objext \ 18584 conftest$ac_exeext conftest.$ac_ext 18585LIBS=$ac_check_lib_save_LIBS 18586fi 18587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 18588$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } 18589if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then : 18590 18591$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 18592 18593else 18594 18595$as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h 18596 18597 18598fi 18599 18600for ac_header in pthread.h 18601do : 18602 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 18603if test "x$ac_cv_header_pthread_h" = xyes; then : 18604 cat >>confdefs.h <<_ACEOF 18605#define HAVE_PTHREAD_H 1 18606_ACEOF 18607 18608fi 18609 18610done 18611 18612 18613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 18614$as_echo_n "checking for log10 in -lm... " >&6; } 18615if ${ac_cv_lib_m_log10+:} false; then : 18616 $as_echo_n "(cached) " >&6 18617else 18618 ac_check_lib_save_LIBS=$LIBS 18619LIBS="-lm $LIBS" 18620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18621/* end confdefs.h. */ 18622 18623/* Override any GCC internal prototype to avoid an error. 18624 Use char because int might match the return type of a GCC 18625 builtin and then its argument prototype would still apply. */ 18626#ifdef __cplusplus 18627extern "C" 18628#endif 18629char log10 (); 18630int 18631main () 18632{ 18633return log10 (); 18634 ; 18635 return 0; 18636} 18637_ACEOF 18638if ac_fn_c_try_link "$LINENO"; then : 18639 ac_cv_lib_m_log10=yes 18640else 18641 ac_cv_lib_m_log10=no 18642fi 18643rm -f core conftest.err conftest.$ac_objext \ 18644 conftest$ac_exeext conftest.$ac_ext 18645LIBS=$ac_check_lib_save_LIBS 18646fi 18647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 18648$as_echo "$ac_cv_lib_m_log10" >&6; } 18649if test "x$ac_cv_lib_m_log10" = xyes; then : 18650 cat >>confdefs.h <<_ACEOF 18651#define HAVE_LIBM 1 18652_ACEOF 18653 18654 LIBS="-lm $LIBS" 18655 18656fi 18657 18658 18659# Checks for typedefs, structures, and compiler characteristics. 18660 18661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 18662$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 18663if ${ac_cv_header_stdbool_h+:} false; then : 18664 $as_echo_n "(cached) " >&6 18665else 18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668 18669 #include <stdbool.h> 18670 #ifndef bool 18671 "error: bool is not defined" 18672 #endif 18673 #ifndef false 18674 "error: false is not defined" 18675 #endif 18676 #if false 18677 "error: false is not 0" 18678 #endif 18679 #ifndef true 18680 "error: true is not defined" 18681 #endif 18682 #if true != 1 18683 "error: true is not 1" 18684 #endif 18685 #ifndef __bool_true_false_are_defined 18686 "error: __bool_true_false_are_defined is not defined" 18687 #endif 18688 18689 struct s { _Bool s: 1; _Bool t; } s; 18690 18691 char a[true == 1 ? 1 : -1]; 18692 char b[false == 0 ? 1 : -1]; 18693 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 18694 char d[(bool) 0.5 == true ? 1 : -1]; 18695 /* See body of main program for 'e'. */ 18696 char f[(_Bool) 0.0 == false ? 1 : -1]; 18697 char g[true]; 18698 char h[sizeof (_Bool)]; 18699 char i[sizeof s.t]; 18700 enum { j = false, k = true, l = false * true, m = true * 256 }; 18701 /* The following fails for 18702 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 18703 _Bool n[m]; 18704 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 18705 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 18706 /* Catch a bug in an HP-UX C compiler. See 18707 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 18708 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 18709 */ 18710 _Bool q = true; 18711 _Bool *pq = &q; 18712 18713int 18714main () 18715{ 18716 18717 bool e = &s; 18718 *pq |= q; 18719 *pq |= ! q; 18720 /* Refer to every declared value, to avoid compiler optimizations. */ 18721 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 18722 + !m + !n + !o + !p + !q + !pq); 18723 18724 ; 18725 return 0; 18726} 18727_ACEOF 18728if ac_fn_c_try_compile "$LINENO"; then : 18729 ac_cv_header_stdbool_h=yes 18730else 18731 ac_cv_header_stdbool_h=no 18732fi 18733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18734fi 18735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 18736$as_echo "$ac_cv_header_stdbool_h" >&6; } 18737 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 18738if test "x$ac_cv_type__Bool" = xyes; then : 18739 18740cat >>confdefs.h <<_ACEOF 18741#define HAVE__BOOL 1 18742_ACEOF 18743 18744 18745fi 18746 18747 18748if test $ac_cv_header_stdbool_h = yes; then 18749 18750$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 18751 18752fi 18753 18754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18755$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18756if ${ac_cv_c_const+:} false; then : 18757 $as_echo_n "(cached) " >&6 18758else 18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18760/* end confdefs.h. */ 18761 18762int 18763main () 18764{ 18765 18766#ifndef __cplusplus 18767 /* Ultrix mips cc rejects this sort of thing. */ 18768 typedef int charset[2]; 18769 const charset cs = { 0, 0 }; 18770 /* SunOS 4.1.1 cc rejects this. */ 18771 char const *const *pcpcc; 18772 char **ppc; 18773 /* NEC SVR4.0.2 mips cc rejects this. */ 18774 struct point {int x, y;}; 18775 static struct point const zero = {0,0}; 18776 /* AIX XL C 1.02.0.0 rejects this. 18777 It does not let you subtract one const X* pointer from another in 18778 an arm of an if-expression whose if-part is not a constant 18779 expression */ 18780 const char *g = "string"; 18781 pcpcc = &g + (g ? g-g : 0); 18782 /* HPUX 7.0 cc rejects these. */ 18783 ++pcpcc; 18784 ppc = (char**) pcpcc; 18785 pcpcc = (char const *const *) ppc; 18786 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18787 char tx; 18788 char *t = &tx; 18789 char const *s = 0 ? (char *) 0 : (char const *) 0; 18790 18791 *t++ = 0; 18792 if (s) return 0; 18793 } 18794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18795 int x[] = {25, 17}; 18796 const int *foo = &x[0]; 18797 ++foo; 18798 } 18799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18800 typedef const int *iptr; 18801 iptr p = 0; 18802 ++p; 18803 } 18804 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 18805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18806 struct s { int j; const int *ap[3]; } bx; 18807 struct s *b = &bx; b->j = 5; 18808 } 18809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18810 const int foo = 10; 18811 if (!foo) return 0; 18812 } 18813 return !cs[0] && !zero.x; 18814#endif 18815 18816 ; 18817 return 0; 18818} 18819_ACEOF 18820if ac_fn_c_try_compile "$LINENO"; then : 18821 ac_cv_c_const=yes 18822else 18823 ac_cv_c_const=no 18824fi 18825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18826fi 18827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18828$as_echo "$ac_cv_c_const" >&6; } 18829if test $ac_cv_c_const = no; then 18830 18831$as_echo "#define const /**/" >>confdefs.h 18832 18833fi 18834 18835ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18836if test "x$ac_cv_type_size_t" = xyes; then : 18837 18838else 18839 18840cat >>confdefs.h <<_ACEOF 18841#define size_t unsigned int 18842_ACEOF 18843 18844fi 18845 18846 18847# Checks for library functions. 18848 18849# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 18850# for constant arguments. Useless! 18851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 18852$as_echo_n "checking for working alloca.h... " >&6; } 18853if ${ac_cv_working_alloca_h+:} false; then : 18854 $as_echo_n "(cached) " >&6 18855else 18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18857/* end confdefs.h. */ 18858#include <alloca.h> 18859int 18860main () 18861{ 18862char *p = (char *) alloca (2 * sizeof (int)); 18863 if (p) return 0; 18864 ; 18865 return 0; 18866} 18867_ACEOF 18868if ac_fn_c_try_link "$LINENO"; then : 18869 ac_cv_working_alloca_h=yes 18870else 18871 ac_cv_working_alloca_h=no 18872fi 18873rm -f core conftest.err conftest.$ac_objext \ 18874 conftest$ac_exeext conftest.$ac_ext 18875fi 18876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 18877$as_echo "$ac_cv_working_alloca_h" >&6; } 18878if test $ac_cv_working_alloca_h = yes; then 18879 18880$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 18881 18882fi 18883 18884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 18885$as_echo_n "checking for alloca... " >&6; } 18886if ${ac_cv_func_alloca_works+:} false; then : 18887 $as_echo_n "(cached) " >&6 18888else 18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18890/* end confdefs.h. */ 18891#ifdef __GNUC__ 18892# define alloca __builtin_alloca 18893#else 18894# ifdef _MSC_VER 18895# include <malloc.h> 18896# define alloca _alloca 18897# else 18898# ifdef HAVE_ALLOCA_H 18899# include <alloca.h> 18900# else 18901# ifdef _AIX 18902 #pragma alloca 18903# else 18904# ifndef alloca /* predefined by HP cc +Olibcalls */ 18905void *alloca (size_t); 18906# endif 18907# endif 18908# endif 18909# endif 18910#endif 18911 18912int 18913main () 18914{ 18915char *p = (char *) alloca (1); 18916 if (p) return 0; 18917 ; 18918 return 0; 18919} 18920_ACEOF 18921if ac_fn_c_try_link "$LINENO"; then : 18922 ac_cv_func_alloca_works=yes 18923else 18924 ac_cv_func_alloca_works=no 18925fi 18926rm -f core conftest.err conftest.$ac_objext \ 18927 conftest$ac_exeext conftest.$ac_ext 18928fi 18929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 18930$as_echo "$ac_cv_func_alloca_works" >&6; } 18931 18932if test $ac_cv_func_alloca_works = yes; then 18933 18934$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 18935 18936else 18937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 18938# that cause trouble. Some versions do not even contain alloca or 18939# contain a buggy version. If you still want to use their alloca, 18940# use ar to extract alloca.o from them instead of compiling alloca.c. 18941 18942ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 18943 18944$as_echo "#define C_ALLOCA 1" >>confdefs.h 18945 18946 18947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 18948$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 18949if ${ac_cv_os_cray+:} false; then : 18950 $as_echo_n "(cached) " >&6 18951else 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954#if defined CRAY && ! defined CRAY2 18955webecray 18956#else 18957wenotbecray 18958#endif 18959 18960_ACEOF 18961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18962 $EGREP "webecray" >/dev/null 2>&1; then : 18963 ac_cv_os_cray=yes 18964else 18965 ac_cv_os_cray=no 18966fi 18967rm -f conftest* 18968 18969fi 18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 18971$as_echo "$ac_cv_os_cray" >&6; } 18972if test $ac_cv_os_cray = yes; then 18973 for ac_func in _getb67 GETB67 getb67; do 18974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18976if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18977 18978cat >>confdefs.h <<_ACEOF 18979#define CRAY_STACKSEG_END $ac_func 18980_ACEOF 18981 18982 break 18983fi 18984 18985 done 18986fi 18987 18988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 18989$as_echo_n "checking stack direction for C alloca... " >&6; } 18990if ${ac_cv_c_stack_direction+:} false; then : 18991 $as_echo_n "(cached) " >&6 18992else 18993 if test "$cross_compiling" = yes; then : 18994 ac_cv_c_stack_direction=0 18995else 18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18997/* end confdefs.h. */ 18998$ac_includes_default 18999int 19000find_stack_direction (int *addr, int depth) 19001{ 19002 int dir, dummy = 0; 19003 if (! addr) 19004 addr = &dummy; 19005 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 19006 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 19007 return dir + dummy; 19008} 19009 19010int 19011main (int argc, char **argv) 19012{ 19013 return find_stack_direction (0, argc + !argv + 20) < 0; 19014} 19015_ACEOF 19016if ac_fn_c_try_run "$LINENO"; then : 19017 ac_cv_c_stack_direction=1 19018else 19019 ac_cv_c_stack_direction=-1 19020fi 19021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19022 conftest.$ac_objext conftest.beam conftest.$ac_ext 19023fi 19024 19025fi 19026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 19027$as_echo "$ac_cv_c_stack_direction" >&6; } 19028cat >>confdefs.h <<_ACEOF 19029#define STACK_DIRECTION $ac_cv_c_stack_direction 19030_ACEOF 19031 19032 19033fi 19034 19035ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19036if test "x$ac_cv_type_pid_t" = xyes; then : 19037 19038else 19039 19040cat >>confdefs.h <<_ACEOF 19041#define pid_t int 19042_ACEOF 19043 19044fi 19045 19046for ac_header in vfork.h 19047do : 19048 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 19049if test "x$ac_cv_header_vfork_h" = xyes; then : 19050 cat >>confdefs.h <<_ACEOF 19051#define HAVE_VFORK_H 1 19052_ACEOF 19053 19054fi 19055 19056done 19057 19058for ac_func in fork vfork 19059do : 19060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19062if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19063 cat >>confdefs.h <<_ACEOF 19064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19065_ACEOF 19066 19067fi 19068done 19069 19070if test "x$ac_cv_func_fork" = xyes; then 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19072$as_echo_n "checking for working fork... " >&6; } 19073if ${ac_cv_func_fork_works+:} false; then : 19074 $as_echo_n "(cached) " >&6 19075else 19076 if test "$cross_compiling" = yes; then : 19077 ac_cv_func_fork_works=cross 19078else 19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19080/* end confdefs.h. */ 19081$ac_includes_default 19082int 19083main () 19084{ 19085 19086 /* By Ruediger Kuhlmann. */ 19087 return fork () < 0; 19088 19089 ; 19090 return 0; 19091} 19092_ACEOF 19093if ac_fn_c_try_run "$LINENO"; then : 19094 ac_cv_func_fork_works=yes 19095else 19096 ac_cv_func_fork_works=no 19097fi 19098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19099 conftest.$ac_objext conftest.beam conftest.$ac_ext 19100fi 19101 19102fi 19103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19104$as_echo "$ac_cv_func_fork_works" >&6; } 19105 19106else 19107 ac_cv_func_fork_works=$ac_cv_func_fork 19108fi 19109if test "x$ac_cv_func_fork_works" = xcross; then 19110 case $host in 19111 *-*-amigaos* | *-*-msdosdjgpp*) 19112 # Override, as these systems have only a dummy fork() stub 19113 ac_cv_func_fork_works=no 19114 ;; 19115 *) 19116 ac_cv_func_fork_works=yes 19117 ;; 19118 esac 19119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19120$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19121fi 19122ac_cv_func_vfork_works=$ac_cv_func_vfork 19123if test "x$ac_cv_func_vfork" = xyes; then 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19125$as_echo_n "checking for working vfork... " >&6; } 19126if ${ac_cv_func_vfork_works+:} false; then : 19127 $as_echo_n "(cached) " >&6 19128else 19129 if test "$cross_compiling" = yes; then : 19130 ac_cv_func_vfork_works=cross 19131else 19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19133/* end confdefs.h. */ 19134/* Thanks to Paul Eggert for this test. */ 19135$ac_includes_default 19136#include <sys/wait.h> 19137#ifdef HAVE_VFORK_H 19138# include <vfork.h> 19139#endif 19140/* On some sparc systems, changes by the child to local and incoming 19141 argument registers are propagated back to the parent. The compiler 19142 is told about this with #include <vfork.h>, but some compilers 19143 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19144 static variable whose address is put into a register that is 19145 clobbered by the vfork. */ 19146static void 19147#ifdef __cplusplus 19148sparc_address_test (int arg) 19149# else 19150sparc_address_test (arg) int arg; 19151#endif 19152{ 19153 static pid_t child; 19154 if (!child) { 19155 child = vfork (); 19156 if (child < 0) { 19157 perror ("vfork"); 19158 _exit(2); 19159 } 19160 if (!child) { 19161 arg = getpid(); 19162 write(-1, "", 0); 19163 _exit (arg); 19164 } 19165 } 19166} 19167 19168int 19169main () 19170{ 19171 pid_t parent = getpid (); 19172 pid_t child; 19173 19174 sparc_address_test (0); 19175 19176 child = vfork (); 19177 19178 if (child == 0) { 19179 /* Here is another test for sparc vfork register problems. This 19180 test uses lots of local variables, at least as many local 19181 variables as main has allocated so far including compiler 19182 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19183 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19184 reuse the register of parent for one of the local variables, 19185 since it will think that parent can't possibly be used any more 19186 in this routine. Assigning to the local variable will thus 19187 munge parent in the parent process. */ 19188 pid_t 19189 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19190 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19191 /* Convince the compiler that p..p7 are live; otherwise, it might 19192 use the same hardware register for all 8 local variables. */ 19193 if (p != p1 || p != p2 || p != p3 || p != p4 19194 || p != p5 || p != p6 || p != p7) 19195 _exit(1); 19196 19197 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19198 from child file descriptors. If the child closes a descriptor 19199 before it execs or exits, this munges the parent's descriptor 19200 as well. Test for this by closing stdout in the child. */ 19201 _exit(close(fileno(stdout)) != 0); 19202 } else { 19203 int status; 19204 struct stat st; 19205 19206 while (wait(&status) != child) 19207 ; 19208 return ( 19209 /* Was there some problem with vforking? */ 19210 child < 0 19211 19212 /* Did the child fail? (This shouldn't happen.) */ 19213 || status 19214 19215 /* Did the vfork/compiler bug occur? */ 19216 || parent != getpid() 19217 19218 /* Did the file descriptor bug occur? */ 19219 || fstat(fileno(stdout), &st) != 0 19220 ); 19221 } 19222} 19223_ACEOF 19224if ac_fn_c_try_run "$LINENO"; then : 19225 ac_cv_func_vfork_works=yes 19226else 19227 ac_cv_func_vfork_works=no 19228fi 19229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19230 conftest.$ac_objext conftest.beam conftest.$ac_ext 19231fi 19232 19233fi 19234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19235$as_echo "$ac_cv_func_vfork_works" >&6; } 19236 19237fi; 19238if test "x$ac_cv_func_fork_works" = xcross; then 19239 ac_cv_func_vfork_works=$ac_cv_func_vfork 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19241$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19242fi 19243 19244if test "x$ac_cv_func_vfork_works" = xyes; then 19245 19246$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19247 19248else 19249 19250$as_echo "#define vfork fork" >>confdefs.h 19251 19252fi 19253if test "x$ac_cv_func_fork_works" = xyes; then 19254 19255$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 19256 19257fi 19258 19259for ac_header in stdlib.h 19260do : 19261 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 19262if test "x$ac_cv_header_stdlib_h" = xyes; then : 19263 cat >>confdefs.h <<_ACEOF 19264#define HAVE_STDLIB_H 1 19265_ACEOF 19266 19267fi 19268 19269done 19270 19271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 19272$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 19273if ${ac_cv_func_malloc_0_nonnull+:} false; then : 19274 $as_echo_n "(cached) " >&6 19275else 19276 if test "$cross_compiling" = yes; then : 19277 ac_cv_func_malloc_0_nonnull=no 19278else 19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19280/* end confdefs.h. */ 19281#if defined STDC_HEADERS || defined HAVE_STDLIB_H 19282# include <stdlib.h> 19283#else 19284char *malloc (); 19285#endif 19286 19287int 19288main () 19289{ 19290return ! malloc (0); 19291 ; 19292 return 0; 19293} 19294_ACEOF 19295if ac_fn_c_try_run "$LINENO"; then : 19296 ac_cv_func_malloc_0_nonnull=yes 19297else 19298 ac_cv_func_malloc_0_nonnull=no 19299fi 19300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19301 conftest.$ac_objext conftest.beam conftest.$ac_ext 19302fi 19303 19304fi 19305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 19306$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 19307if test $ac_cv_func_malloc_0_nonnull = yes; then : 19308 19309$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 19310 19311else 19312 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 19313 19314 case " $LIBOBJS " in 19315 *" malloc.$ac_objext "* ) ;; 19316 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 19317 ;; 19318esac 19319 19320 19321$as_echo "#define malloc rpl_malloc" >>confdefs.h 19322 19323fi 19324 19325 19326for ac_header in stdlib.h 19327do : 19328 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 19329if test "x$ac_cv_header_stdlib_h" = xyes; then : 19330 cat >>confdefs.h <<_ACEOF 19331#define HAVE_STDLIB_H 1 19332_ACEOF 19333 19334fi 19335 19336done 19337 19338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 19339$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 19340if ${ac_cv_func_realloc_0_nonnull+:} false; then : 19341 $as_echo_n "(cached) " >&6 19342else 19343 if test "$cross_compiling" = yes; then : 19344 ac_cv_func_realloc_0_nonnull=no 19345else 19346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19347/* end confdefs.h. */ 19348#if defined STDC_HEADERS || defined HAVE_STDLIB_H 19349# include <stdlib.h> 19350#else 19351char *realloc (); 19352#endif 19353 19354int 19355main () 19356{ 19357return ! realloc (0, 0); 19358 ; 19359 return 0; 19360} 19361_ACEOF 19362if ac_fn_c_try_run "$LINENO"; then : 19363 ac_cv_func_realloc_0_nonnull=yes 19364else 19365 ac_cv_func_realloc_0_nonnull=no 19366fi 19367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19368 conftest.$ac_objext conftest.beam conftest.$ac_ext 19369fi 19370 19371fi 19372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 19373$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 19374if test $ac_cv_func_realloc_0_nonnull = yes; then : 19375 19376$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 19377 19378else 19379 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 19380 19381 case " $LIBOBJS " in 19382 *" realloc.$ac_objext "* ) ;; 19383 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 19384 ;; 19385esac 19386 19387 19388$as_echo "#define realloc rpl_realloc" >>confdefs.h 19389 19390fi 19391 19392 19393for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol 19394do : 19395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19396ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19397if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19398 cat >>confdefs.h <<_ACEOF 19399#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19400_ACEOF 19401 19402fi 19403done 19404 19405 19406ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-trailing/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile" 19407 19408 19409cat >confcache <<\_ACEOF 19410# This file is a shell script that caches the results of configure 19411# tests run on this system so they can be shared between configure 19412# scripts and configure runs, see configure's option --config-cache. 19413# It is not useful on other systems. If it contains results you don't 19414# want to keep, you may remove or edit it. 19415# 19416# config.status only pays attention to the cache file if you give it 19417# the --recheck option to rerun configure. 19418# 19419# `ac_cv_env_foo' variables (set or unset) will be overridden when 19420# loading this file, other *unset* `ac_cv_foo' will be assigned the 19421# following values. 19422 19423_ACEOF 19424 19425# The following way of writing the cache mishandles newlines in values, 19426# but we know of no workaround that is simple, portable, and efficient. 19427# So, we kill variables containing newlines. 19428# Ultrix sh set writes to stderr and can't be redirected directly, 19429# and sets the high bit in the cache file unless we assign to the vars. 19430( 19431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19432 eval ac_val=\$$ac_var 19433 case $ac_val in #( 19434 *${as_nl}*) 19435 case $ac_var in #( 19436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19438 esac 19439 case $ac_var in #( 19440 _ | IFS | as_nl) ;; #( 19441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19442 *) { eval $ac_var=; unset $ac_var;} ;; 19443 esac ;; 19444 esac 19445 done 19446 19447 (set) 2>&1 | 19448 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19449 *${as_nl}ac_space=\ *) 19450 # `set' does not quote correctly, so add quotes: double-quote 19451 # substitution turns \\\\ into \\, and sed turns \\ into \. 19452 sed -n \ 19453 "s/'/'\\\\''/g; 19454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19455 ;; #( 19456 *) 19457 # `set' quotes correctly as required by POSIX, so do not add quotes. 19458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19459 ;; 19460 esac | 19461 sort 19462) | 19463 sed ' 19464 /^ac_cv_env_/b end 19465 t clear 19466 :clear 19467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19468 t end 19469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19470 :end' >>confcache 19471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19472 if test -w "$cache_file"; then 19473 if test "x$cache_file" != "x/dev/null"; then 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19475$as_echo "$as_me: updating cache $cache_file" >&6;} 19476 if test ! -f "$cache_file" || test -h "$cache_file"; then 19477 cat confcache >"$cache_file" 19478 else 19479 case $cache_file in #( 19480 */* | ?:*) 19481 mv -f confcache "$cache_file"$$ && 19482 mv -f "$cache_file"$$ "$cache_file" ;; #( 19483 *) 19484 mv -f confcache "$cache_file" ;; 19485 esac 19486 fi 19487 fi 19488 else 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19490$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19491 fi 19492fi 19493rm -f confcache 19494 19495test "x$prefix" = xNONE && prefix=$ac_default_prefix 19496# Let make expand exec_prefix. 19497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19498 19499DEFS=-DHAVE_CONFIG_H 19500 19501ac_libobjs= 19502ac_ltlibobjs= 19503U= 19504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19505 # 1. Remove the extension, and $U if already installed. 19506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19509 # will be set to the directory where LIBOBJS objects are built. 19510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19512done 19513LIBOBJS=$ac_libobjs 19514 19515LTLIBOBJS=$ac_ltlibobjs 19516 19517 19518 if test -n "$EXEEXT"; then 19519 am__EXEEXT_TRUE= 19520 am__EXEEXT_FALSE='#' 19521else 19522 am__EXEEXT_TRUE='#' 19523 am__EXEEXT_FALSE= 19524fi 19525 19526if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19527 as_fn_error $? "conditional \"AMDEP\" was never defined. 19528Usually this means the macro was only invoked conditionally." "$LINENO" 5 19529fi 19530if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19531 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19532Usually this means the macro was only invoked conditionally." "$LINENO" 5 19533fi 19534if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19535 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19536Usually this means the macro was only invoked conditionally." "$LINENO" 5 19537fi 19538if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19539 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19540Usually this means the macro was only invoked conditionally." "$LINENO" 5 19541fi 19542 19543: "${CONFIG_STATUS=./config.status}" 19544ac_write_fail=0 19545ac_clean_files_save=$ac_clean_files 19546ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19547{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19548$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19549as_write_fail=0 19550cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19551#! $SHELL 19552# Generated by $as_me. 19553# Run this file to recreate the current configuration. 19554# Compiler output produced by configure, useful for debugging 19555# configure, is in config.log if it exists. 19556 19557debug=false 19558ac_cs_recheck=false 19559ac_cs_silent=false 19560 19561SHELL=\${CONFIG_SHELL-$SHELL} 19562export SHELL 19563_ASEOF 19564cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19565## -------------------- ## 19566## M4sh Initialization. ## 19567## -------------------- ## 19568 19569# Be more Bourne compatible 19570DUALCASE=1; export DUALCASE # for MKS sh 19571if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19572 emulate sh 19573 NULLCMD=: 19574 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19575 # is contrary to our usage. Disable this feature. 19576 alias -g '${1+"$@"}'='"$@"' 19577 setopt NO_GLOB_SUBST 19578else 19579 case `(set -o) 2>/dev/null` in #( 19580 *posix*) : 19581 set -o posix ;; #( 19582 *) : 19583 ;; 19584esac 19585fi 19586 19587 19588as_nl=' 19589' 19590export as_nl 19591# Printing a long string crashes Solaris 7 /usr/bin/printf. 19592as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19593as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19594as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19595# Prefer a ksh shell builtin over an external printf program on Solaris, 19596# but without wasting forks for bash or zsh. 19597if test -z "$BASH_VERSION$ZSH_VERSION" \ 19598 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19599 as_echo='print -r --' 19600 as_echo_n='print -rn --' 19601elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19602 as_echo='printf %s\n' 19603 as_echo_n='printf %s' 19604else 19605 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19606 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19607 as_echo_n='/usr/ucb/echo -n' 19608 else 19609 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19610 as_echo_n_body='eval 19611 arg=$1; 19612 case $arg in #( 19613 *"$as_nl"*) 19614 expr "X$arg" : "X\\(.*\\)$as_nl"; 19615 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19616 esac; 19617 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19618 ' 19619 export as_echo_n_body 19620 as_echo_n='sh -c $as_echo_n_body as_echo' 19621 fi 19622 export as_echo_body 19623 as_echo='sh -c $as_echo_body as_echo' 19624fi 19625 19626# The user is always right. 19627if test "${PATH_SEPARATOR+set}" != set; then 19628 PATH_SEPARATOR=: 19629 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19630 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19631 PATH_SEPARATOR=';' 19632 } 19633fi 19634 19635 19636# IFS 19637# We need space, tab and new line, in precisely that order. Quoting is 19638# there to prevent editors from complaining about space-tab. 19639# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19640# splitting by setting IFS to empty value.) 19641IFS=" "" $as_nl" 19642 19643# Find who we are. Look in the path if we contain no directory separator. 19644as_myself= 19645case $0 in #(( 19646 *[\\/]* ) as_myself=$0 ;; 19647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19648for as_dir in $PATH 19649do 19650 IFS=$as_save_IFS 19651 test -z "$as_dir" && as_dir=. 19652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19653 done 19654IFS=$as_save_IFS 19655 19656 ;; 19657esac 19658# We did not find ourselves, most probably we were run as `sh COMMAND' 19659# in which case we are not to be found in the path. 19660if test "x$as_myself" = x; then 19661 as_myself=$0 19662fi 19663if test ! -f "$as_myself"; then 19664 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19665 exit 1 19666fi 19667 19668# Unset variables that we do not need and which cause bugs (e.g. in 19669# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19670# suppresses any "Segmentation fault" message there. '((' could 19671# trigger a bug in pdksh 5.2.14. 19672for as_var in BASH_ENV ENV MAIL MAILPATH 19673do eval test x\${$as_var+set} = xset \ 19674 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19675done 19676PS1='$ ' 19677PS2='> ' 19678PS4='+ ' 19679 19680# NLS nuisances. 19681LC_ALL=C 19682export LC_ALL 19683LANGUAGE=C 19684export LANGUAGE 19685 19686# CDPATH. 19687(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19688 19689 19690# as_fn_error STATUS ERROR [LINENO LOG_FD] 19691# ---------------------------------------- 19692# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19693# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19694# script with STATUS, using 1 if that was 0. 19695as_fn_error () 19696{ 19697 as_status=$1; test $as_status -eq 0 && as_status=1 19698 if test "$4"; then 19699 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19700 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19701 fi 19702 $as_echo "$as_me: error: $2" >&2 19703 as_fn_exit $as_status 19704} # as_fn_error 19705 19706 19707# as_fn_set_status STATUS 19708# ----------------------- 19709# Set $? to STATUS, without forking. 19710as_fn_set_status () 19711{ 19712 return $1 19713} # as_fn_set_status 19714 19715# as_fn_exit STATUS 19716# ----------------- 19717# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19718as_fn_exit () 19719{ 19720 set +e 19721 as_fn_set_status $1 19722 exit $1 19723} # as_fn_exit 19724 19725# as_fn_unset VAR 19726# --------------- 19727# Portably unset VAR. 19728as_fn_unset () 19729{ 19730 { eval $1=; unset $1;} 19731} 19732as_unset=as_fn_unset 19733# as_fn_append VAR VALUE 19734# ---------------------- 19735# Append the text in VALUE to the end of the definition contained in VAR. Take 19736# advantage of any shell optimizations that allow amortized linear growth over 19737# repeated appends, instead of the typical quadratic growth present in naive 19738# implementations. 19739if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19740 eval 'as_fn_append () 19741 { 19742 eval $1+=\$2 19743 }' 19744else 19745 as_fn_append () 19746 { 19747 eval $1=\$$1\$2 19748 } 19749fi # as_fn_append 19750 19751# as_fn_arith ARG... 19752# ------------------ 19753# Perform arithmetic evaluation on the ARGs, and store the result in the 19754# global $as_val. Take advantage of shells that can avoid forks. The arguments 19755# must be portable across $(()) and expr. 19756if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19757 eval 'as_fn_arith () 19758 { 19759 as_val=$(( $* )) 19760 }' 19761else 19762 as_fn_arith () 19763 { 19764 as_val=`expr "$@" || test $? -eq 1` 19765 } 19766fi # as_fn_arith 19767 19768 19769if expr a : '\(a\)' >/dev/null 2>&1 && 19770 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19771 as_expr=expr 19772else 19773 as_expr=false 19774fi 19775 19776if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19777 as_basename=basename 19778else 19779 as_basename=false 19780fi 19781 19782if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19783 as_dirname=dirname 19784else 19785 as_dirname=false 19786fi 19787 19788as_me=`$as_basename -- "$0" || 19789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19790 X"$0" : 'X\(//\)$' \| \ 19791 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19792$as_echo X/"$0" | 19793 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19794 s//\1/ 19795 q 19796 } 19797 /^X\/\(\/\/\)$/{ 19798 s//\1/ 19799 q 19800 } 19801 /^X\/\(\/\).*/{ 19802 s//\1/ 19803 q 19804 } 19805 s/.*/./; q'` 19806 19807# Avoid depending upon Character Ranges. 19808as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19810as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19811as_cr_digits='0123456789' 19812as_cr_alnum=$as_cr_Letters$as_cr_digits 19813 19814ECHO_C= ECHO_N= ECHO_T= 19815case `echo -n x` in #((((( 19816-n*) 19817 case `echo 'xy\c'` in 19818 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19819 xy) ECHO_C='\c';; 19820 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19821 ECHO_T=' ';; 19822 esac;; 19823*) 19824 ECHO_N='-n';; 19825esac 19826 19827rm -f conf$$ conf$$.exe conf$$.file 19828if test -d conf$$.dir; then 19829 rm -f conf$$.dir/conf$$.file 19830else 19831 rm -f conf$$.dir 19832 mkdir conf$$.dir 2>/dev/null 19833fi 19834if (echo >conf$$.file) 2>/dev/null; then 19835 if ln -s conf$$.file conf$$ 2>/dev/null; then 19836 as_ln_s='ln -s' 19837 # ... but there are two gotchas: 19838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19840 # In both cases, we have to default to `cp -pR'. 19841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19842 as_ln_s='cp -pR' 19843 elif ln conf$$.file conf$$ 2>/dev/null; then 19844 as_ln_s=ln 19845 else 19846 as_ln_s='cp -pR' 19847 fi 19848else 19849 as_ln_s='cp -pR' 19850fi 19851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19852rmdir conf$$.dir 2>/dev/null 19853 19854 19855# as_fn_mkdir_p 19856# ------------- 19857# Create "$as_dir" as a directory, including parents if necessary. 19858as_fn_mkdir_p () 19859{ 19860 19861 case $as_dir in #( 19862 -*) as_dir=./$as_dir;; 19863 esac 19864 test -d "$as_dir" || eval $as_mkdir_p || { 19865 as_dirs= 19866 while :; do 19867 case $as_dir in #( 19868 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19869 *) as_qdir=$as_dir;; 19870 esac 19871 as_dirs="'$as_qdir' $as_dirs" 19872 as_dir=`$as_dirname -- "$as_dir" || 19873$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19874 X"$as_dir" : 'X\(//\)[^/]' \| \ 19875 X"$as_dir" : 'X\(//\)$' \| \ 19876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19877$as_echo X"$as_dir" | 19878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19879 s//\1/ 19880 q 19881 } 19882 /^X\(\/\/\)[^/].*/{ 19883 s//\1/ 19884 q 19885 } 19886 /^X\(\/\/\)$/{ 19887 s//\1/ 19888 q 19889 } 19890 /^X\(\/\).*/{ 19891 s//\1/ 19892 q 19893 } 19894 s/.*/./; q'` 19895 test -d "$as_dir" && break 19896 done 19897 test -z "$as_dirs" || eval "mkdir $as_dirs" 19898 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19899 19900 19901} # as_fn_mkdir_p 19902if mkdir -p . 2>/dev/null; then 19903 as_mkdir_p='mkdir -p "$as_dir"' 19904else 19905 test -d ./-p && rmdir ./-p 19906 as_mkdir_p=false 19907fi 19908 19909 19910# as_fn_executable_p FILE 19911# ----------------------- 19912# Test if FILE is an executable regular file. 19913as_fn_executable_p () 19914{ 19915 test -f "$1" && test -x "$1" 19916} # as_fn_executable_p 19917as_test_x='test -x' 19918as_executable_p=as_fn_executable_p 19919 19920# Sed expression to map a string onto a valid CPP name. 19921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19922 19923# Sed expression to map a string onto a valid variable name. 19924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19925 19926 19927exec 6>&1 19928## ----------------------------------- ## 19929## Main body of $CONFIG_STATUS script. ## 19930## ----------------------------------- ## 19931_ASEOF 19932test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19933 19934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19935# Save the log message, to keep $0 and so on meaningful, and to 19936# report actual input values of CONFIG_FILES etc. instead of their 19937# values after options handling. 19938ac_log=" 19939This file was extended by the fast lexical analyser generator $as_me 2.5.39, which was 19940generated by GNU Autoconf 2.69. Invocation command line was 19941 19942 CONFIG_FILES = $CONFIG_FILES 19943 CONFIG_HEADERS = $CONFIG_HEADERS 19944 CONFIG_LINKS = $CONFIG_LINKS 19945 CONFIG_COMMANDS = $CONFIG_COMMANDS 19946 $ $0 $@ 19947 19948on `(hostname || uname -n) 2>/dev/null | sed 1q` 19949" 19950 19951_ACEOF 19952 19953case $ac_config_files in *" 19954"*) set x $ac_config_files; shift; ac_config_files=$*;; 19955esac 19956 19957case $ac_config_headers in *" 19958"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19959esac 19960 19961 19962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19963# Files that config.status was made for. 19964config_files="$ac_config_files" 19965config_headers="$ac_config_headers" 19966config_commands="$ac_config_commands" 19967 19968_ACEOF 19969 19970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19971ac_cs_usage="\ 19972\`$as_me' instantiates files and other configuration actions 19973from templates according to the current configuration. Unless the files 19974and actions are specified as TAGs, all are instantiated by default. 19975 19976Usage: $0 [OPTION]... [TAG]... 19977 19978 -h, --help print this help, then exit 19979 -V, --version print version number and configuration settings, then exit 19980 --config print configuration, then exit 19981 -q, --quiet, --silent 19982 do not print progress messages 19983 -d, --debug don't remove temporary files 19984 --recheck update $as_me by reconfiguring in the same conditions 19985 --file=FILE[:TEMPLATE] 19986 instantiate the configuration file FILE 19987 --header=FILE[:TEMPLATE] 19988 instantiate the configuration header FILE 19989 19990Configuration files: 19991$config_files 19992 19993Configuration headers: 19994$config_headers 19995 19996Configuration commands: 19997$config_commands 19998 19999Report bugs to <flex-help@lists.sourceforge.net>." 20000 20001_ACEOF 20002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20003ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20004ac_cs_version="\\ 20005the fast lexical analyser generator config.status 2.5.39 20006configured by $0, generated by GNU Autoconf 2.69, 20007 with options \\"\$ac_cs_config\\" 20008 20009Copyright (C) 2012 Free Software Foundation, Inc. 20010This config.status script is free software; the Free Software Foundation 20011gives unlimited permission to copy, distribute and modify it." 20012 20013ac_pwd='$ac_pwd' 20014srcdir='$srcdir' 20015INSTALL='$INSTALL' 20016MKDIR_P='$MKDIR_P' 20017AWK='$AWK' 20018test -n "\$AWK" || AWK=awk 20019_ACEOF 20020 20021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20022# The default lists apply if the user does not specify any file. 20023ac_need_defaults=: 20024while test $# != 0 20025do 20026 case $1 in 20027 --*=?*) 20028 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20030 ac_shift=: 20031 ;; 20032 --*=) 20033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20034 ac_optarg= 20035 ac_shift=: 20036 ;; 20037 *) 20038 ac_option=$1 20039 ac_optarg=$2 20040 ac_shift=shift 20041 ;; 20042 esac 20043 20044 case $ac_option in 20045 # Handling of the options. 20046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20047 ac_cs_recheck=: ;; 20048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20049 $as_echo "$ac_cs_version"; exit ;; 20050 --config | --confi | --conf | --con | --co | --c ) 20051 $as_echo "$ac_cs_config"; exit ;; 20052 --debug | --debu | --deb | --de | --d | -d ) 20053 debug=: ;; 20054 --file | --fil | --fi | --f ) 20055 $ac_shift 20056 case $ac_optarg in 20057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20058 '') as_fn_error $? "missing file argument" ;; 20059 esac 20060 as_fn_append CONFIG_FILES " '$ac_optarg'" 20061 ac_need_defaults=false;; 20062 --header | --heade | --head | --hea ) 20063 $ac_shift 20064 case $ac_optarg in 20065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20066 esac 20067 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20068 ac_need_defaults=false;; 20069 --he | --h) 20070 # Conflict between --help and --header 20071 as_fn_error $? "ambiguous option: \`$1' 20072Try \`$0 --help' for more information.";; 20073 --help | --hel | -h ) 20074 $as_echo "$ac_cs_usage"; exit ;; 20075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20076 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20077 ac_cs_silent=: ;; 20078 20079 # This is an error. 20080 -*) as_fn_error $? "unrecognized option: \`$1' 20081Try \`$0 --help' for more information." ;; 20082 20083 *) as_fn_append ac_config_targets " $1" 20084 ac_need_defaults=false ;; 20085 20086 esac 20087 shift 20088done 20089 20090ac_configure_extra_args= 20091 20092if $ac_cs_silent; then 20093 exec 6>/dev/null 20094 ac_configure_extra_args="$ac_configure_extra_args --silent" 20095fi 20096 20097_ACEOF 20098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20099if \$ac_cs_recheck; then 20100 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20101 shift 20102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20103 CONFIG_SHELL='$SHELL' 20104 export CONFIG_SHELL 20105 exec "\$@" 20106fi 20107 20108_ACEOF 20109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20110exec 5>>config.log 20111{ 20112 echo 20113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20114## Running $as_me. ## 20115_ASBOX 20116 $as_echo "$ac_log" 20117} >&5 20118 20119_ACEOF 20120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20121# 20122# INIT-COMMANDS 20123# 20124# Capture the value of obsolete ALL_LINGUAS because we need it to compute 20125 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 20126 # from automake < 1.5. 20127 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 20128 # Capture the value of LINGUAS because we need it to compute CATALOGS. 20129 LINGUAS="${LINGUAS-%UNSET%}" 20130 20131AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20132 20133 20134# The HP-UX ksh and POSIX shell print the target directory to stdout 20135# if CDPATH is set. 20136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20137 20138sed_quote_subst='$sed_quote_subst' 20139double_quote_subst='$double_quote_subst' 20140delay_variable_subst='$delay_variable_subst' 20141macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20142macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20143enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20144enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20145pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20146enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20147SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20148ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20149PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20150host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20151host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20152host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20153build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20154build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20155build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20156SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20157Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20158GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20159EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20160FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20161LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20162NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20163LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20164max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20165ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20166exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20167lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20168lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20169lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20170lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20171lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20172reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20173reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20174OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20175deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20176file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20177file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20178want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20179DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20180sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20181AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20182AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20183archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20184STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20185RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20186old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20187old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20188old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20189lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20190CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20191CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20192compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20193GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20194lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20195lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20196lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20197lt_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"`' 20198nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20199lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20200objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20201MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20202lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20203lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20204lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20205lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20206lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20207need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20208MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20209DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20210NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20211LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20212OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20213OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20214libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20215shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20216extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20217archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20218enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20219export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20220whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20221compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20222old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20223old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20224archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20225archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20226module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20227module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20228with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20229allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20230no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20231hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20232hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20233hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20234hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20235hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20236hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20237hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20238inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20239link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20240always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20241export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20242exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20243include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20244prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20245postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20246file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20247variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20248need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20249need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20250version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20251runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20252shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20253shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20254libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20255library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20256soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20257install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20258postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20259postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20260finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20261finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20262hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20263sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20264sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20265hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20266enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20267enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20268enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20269old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20270striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20271compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20272predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20273postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20274predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20275postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20276compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20277LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20278reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20279reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20280old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20281compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20282GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20283lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20284lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20285lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20286lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20287lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20288archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20289enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20290export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20291whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20292compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20293old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20294old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20295archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20296archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20297module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20298module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20299with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20300allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20301no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20302hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20303hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20304hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20305hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20306hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20307hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20308hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20309inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20310link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20311always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20312export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20313exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20314include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20315prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20316postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20317file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20318hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20319compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20320predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20321postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20322predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20323postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20324compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20325 20326LTCC='$LTCC' 20327LTCFLAGS='$LTCFLAGS' 20328compiler='$compiler_DEFAULT' 20329 20330# A function that is used when there is no print builtin or printf. 20331func_fallback_echo () 20332{ 20333 eval 'cat <<_LTECHO_EOF 20334\$1 20335_LTECHO_EOF' 20336} 20337 20338# Quote evaled strings. 20339for var in SHELL \ 20340ECHO \ 20341PATH_SEPARATOR \ 20342SED \ 20343GREP \ 20344EGREP \ 20345FGREP \ 20346LD \ 20347NM \ 20348LN_S \ 20349lt_SP2NL \ 20350lt_NL2SP \ 20351reload_flag \ 20352OBJDUMP \ 20353deplibs_check_method \ 20354file_magic_cmd \ 20355file_magic_glob \ 20356want_nocaseglob \ 20357DLLTOOL \ 20358sharedlib_from_linklib_cmd \ 20359AR \ 20360AR_FLAGS \ 20361archiver_list_spec \ 20362STRIP \ 20363RANLIB \ 20364CC \ 20365CFLAGS \ 20366compiler \ 20367lt_cv_sys_global_symbol_pipe \ 20368lt_cv_sys_global_symbol_to_cdecl \ 20369lt_cv_sys_global_symbol_to_c_name_address \ 20370lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20371nm_file_list_spec \ 20372lt_prog_compiler_no_builtin_flag \ 20373lt_prog_compiler_pic \ 20374lt_prog_compiler_wl \ 20375lt_prog_compiler_static \ 20376lt_cv_prog_compiler_c_o \ 20377need_locks \ 20378MANIFEST_TOOL \ 20379DSYMUTIL \ 20380NMEDIT \ 20381LIPO \ 20382OTOOL \ 20383OTOOL64 \ 20384shrext_cmds \ 20385export_dynamic_flag_spec \ 20386whole_archive_flag_spec \ 20387compiler_needs_object \ 20388with_gnu_ld \ 20389allow_undefined_flag \ 20390no_undefined_flag \ 20391hardcode_libdir_flag_spec \ 20392hardcode_libdir_separator \ 20393exclude_expsyms \ 20394include_expsyms \ 20395file_list_spec \ 20396variables_saved_for_relink \ 20397libname_spec \ 20398library_names_spec \ 20399soname_spec \ 20400install_override_mode \ 20401finish_eval \ 20402old_striplib \ 20403striplib \ 20404compiler_lib_search_dirs \ 20405predep_objects \ 20406postdep_objects \ 20407predeps \ 20408postdeps \ 20409compiler_lib_search_path \ 20410LD_CXX \ 20411reload_flag_CXX \ 20412compiler_CXX \ 20413lt_prog_compiler_no_builtin_flag_CXX \ 20414lt_prog_compiler_pic_CXX \ 20415lt_prog_compiler_wl_CXX \ 20416lt_prog_compiler_static_CXX \ 20417lt_cv_prog_compiler_c_o_CXX \ 20418export_dynamic_flag_spec_CXX \ 20419whole_archive_flag_spec_CXX \ 20420compiler_needs_object_CXX \ 20421with_gnu_ld_CXX \ 20422allow_undefined_flag_CXX \ 20423no_undefined_flag_CXX \ 20424hardcode_libdir_flag_spec_CXX \ 20425hardcode_libdir_separator_CXX \ 20426exclude_expsyms_CXX \ 20427include_expsyms_CXX \ 20428file_list_spec_CXX \ 20429compiler_lib_search_dirs_CXX \ 20430predep_objects_CXX \ 20431postdep_objects_CXX \ 20432predeps_CXX \ 20433postdeps_CXX \ 20434compiler_lib_search_path_CXX; do 20435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20436 *[\\\\\\\`\\"\\\$]*) 20437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20438 ;; 20439 *) 20440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20441 ;; 20442 esac 20443done 20444 20445# Double-quote double-evaled strings. 20446for var in reload_cmds \ 20447old_postinstall_cmds \ 20448old_postuninstall_cmds \ 20449old_archive_cmds \ 20450extract_expsyms_cmds \ 20451old_archive_from_new_cmds \ 20452old_archive_from_expsyms_cmds \ 20453archive_cmds \ 20454archive_expsym_cmds \ 20455module_cmds \ 20456module_expsym_cmds \ 20457export_symbols_cmds \ 20458prelink_cmds \ 20459postlink_cmds \ 20460postinstall_cmds \ 20461postuninstall_cmds \ 20462finish_cmds \ 20463sys_lib_search_path_spec \ 20464sys_lib_dlsearch_path_spec \ 20465reload_cmds_CXX \ 20466old_archive_cmds_CXX \ 20467old_archive_from_new_cmds_CXX \ 20468old_archive_from_expsyms_cmds_CXX \ 20469archive_cmds_CXX \ 20470archive_expsym_cmds_CXX \ 20471module_cmds_CXX \ 20472module_expsym_cmds_CXX \ 20473export_symbols_cmds_CXX \ 20474prelink_cmds_CXX \ 20475postlink_cmds_CXX; do 20476 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20477 *[\\\\\\\`\\"\\\$]*) 20478 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20479 ;; 20480 *) 20481 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20482 ;; 20483 esac 20484done 20485 20486ac_aux_dir='$ac_aux_dir' 20487xsi_shell='$xsi_shell' 20488lt_shell_append='$lt_shell_append' 20489 20490# See if we are running on zsh, and set the options which allow our 20491# commands through without removal of \ escapes INIT. 20492if test -n "\${ZSH_VERSION+set}" ; then 20493 setopt NO_GLOB_SUBST 20494fi 20495 20496 20497 PACKAGE='$PACKAGE' 20498 VERSION='$VERSION' 20499 TIMESTAMP='$TIMESTAMP' 20500 RM='$RM' 20501 ofile='$ofile' 20502 20503 20504 20505 20506 20507 20508_ACEOF 20509 20510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20511 20512# Handling of arguments. 20513for ac_config_target in $ac_config_targets 20514do 20515 case $ac_config_target in 20516 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;; 20517 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 20518 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20519 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20521 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20522 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 20523 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;; 20524 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;; 20525 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 20526 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 20527 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20528 "tests/TEMPLATE/Makefile") CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;; 20529 "tests/test-array-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;; 20530 "tests/test-array-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;; 20531 "tests/test-basic-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;; 20532 "tests/test-basic-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;; 20533 "tests/test-bison-yylloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;; 20534 "tests/test-bison-yylval/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;; 20535 "tests/test-c-cpp-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;; 20536 "tests/test-c-cpp-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;; 20537 "tests/test-header-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;; 20538 "tests/test-header-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;; 20539 "tests/test-include-by-buffer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;; 20540 "tests/test-include-by-push/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;; 20541 "tests/test-include-by-reentrant/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;; 20542 "tests/test-multiple-scanners-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;; 20543 "tests/test-multiple-scanners-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;; 20544 "tests/test-noansi-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;; 20545 "tests/test-noansi-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;; 20546 "tests/test-prefix-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;; 20547 "tests/test-prefix-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;; 20548 "tests/test-pthread/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;; 20549 "tests/test-string-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;; 20550 "tests/test-string-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;; 20551 "tests/test-yyextra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;; 20552 "tests/test-alloc-extra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;; 20553 "tests/test-lineno-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;; 20554 "tests/test-lineno-trailing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-trailing/Makefile" ;; 20555 "tests/test-lineno-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;; 20556 "tests/test-linedir-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;; 20557 "tests/test-debug-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;; 20558 "tests/test-debug-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;; 20559 "tests/test-mem-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;; 20560 "tests/test-mem-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;; 20561 "tests/test-posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;; 20562 "tests/test-posixly-correct/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;; 20563 "tests/test-table-opts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;; 20564 "tests/test-c++-basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;; 20565 "tests/test-bison-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;; 20566 "tests/test-reject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;; 20567 "tests/test-c++-multiple-scanners/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;; 20568 "tests/test-top/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;; 20569 "tests/test-rescan-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;; 20570 "tests/test-rescan-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;; 20571 "tests/test-quotes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;; 20572 "tests/test-ccl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;; 20573 "tests/test-extended/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;; 20574 "tests/test-c++-yywrap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;; 20575 "tests/test-concatenated-options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;; 20576 20577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20578 esac 20579done 20580 20581 20582# If the user did not use the arguments to specify the items to instantiate, 20583# then the envvar interface is used. Set only those that are not. 20584# We use the long form for the default assignment because of an extremely 20585# bizarre bug on SunOS 4.1.3. 20586if $ac_need_defaults; then 20587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20590fi 20591 20592# Have a temporary directory for convenience. Make it in the build tree 20593# simply because there is no reason against having it here, and in addition, 20594# creating and moving files from /tmp can sometimes cause problems. 20595# Hook for its removal unless debugging. 20596# Note that there is a small window in which the directory will not be cleaned: 20597# after its creation but before its name has been assigned to `$tmp'. 20598$debug || 20599{ 20600 tmp= ac_tmp= 20601 trap 'exit_status=$? 20602 : "${ac_tmp:=$tmp}" 20603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20604' 0 20605 trap 'as_fn_exit 1' 1 2 13 15 20606} 20607# Create a (secure) tmp directory for tmp files. 20608 20609{ 20610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20611 test -d "$tmp" 20612} || 20613{ 20614 tmp=./conf$$-$RANDOM 20615 (umask 077 && mkdir "$tmp") 20616} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20617ac_tmp=$tmp 20618 20619# Set up the scripts for CONFIG_FILES section. 20620# No need to generate them if there are no CONFIG_FILES. 20621# This happens for instance with `./config.status config.h'. 20622if test -n "$CONFIG_FILES"; then 20623 20624 20625ac_cr=`echo X | tr X '\015'` 20626# On cygwin, bash can eat \r inside `` if the user requested igncr. 20627# But we know of no other shell where ac_cr would be empty at this 20628# point, so we can use a bashism as a fallback. 20629if test "x$ac_cr" = x; then 20630 eval ac_cr=\$\'\\r\' 20631fi 20632ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20633if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20634 ac_cs_awk_cr='\\r' 20635else 20636 ac_cs_awk_cr=$ac_cr 20637fi 20638 20639echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20640_ACEOF 20641 20642 20643{ 20644 echo "cat >conf$$subs.awk <<_ACEOF" && 20645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20646 echo "_ACEOF" 20647} >conf$$subs.sh || 20648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20649ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20650ac_delim='%!_!# ' 20651for ac_last_try in false false false false false :; do 20652 . ./conf$$subs.sh || 20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20654 20655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20656 if test $ac_delim_n = $ac_delim_num; then 20657 break 20658 elif $ac_last_try; then 20659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20660 else 20661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20662 fi 20663done 20664rm -f conf$$subs.sh 20665 20666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20667cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20668_ACEOF 20669sed -n ' 20670h 20671s/^/S["/; s/!.*/"]=/ 20672p 20673g 20674s/^[^!]*!// 20675:repl 20676t repl 20677s/'"$ac_delim"'$// 20678t delim 20679:nl 20680h 20681s/\(.\{148\}\)..*/\1/ 20682t more1 20683s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20684p 20685n 20686b repl 20687:more1 20688s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20689p 20690g 20691s/.\{148\}// 20692t nl 20693:delim 20694h 20695s/\(.\{148\}\)..*/\1/ 20696t more2 20697s/["\\]/\\&/g; s/^/"/; s/$/"/ 20698p 20699b 20700:more2 20701s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20702p 20703g 20704s/.\{148\}// 20705t delim 20706' <conf$$subs.awk | sed ' 20707/^[^""]/{ 20708 N 20709 s/\n// 20710} 20711' >>$CONFIG_STATUS || ac_write_fail=1 20712rm -f conf$$subs.awk 20713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20714_ACAWK 20715cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20716 for (key in S) S_is_set[key] = 1 20717 FS = "" 20718 20719} 20720{ 20721 line = $ 0 20722 nfields = split(line, field, "@") 20723 substed = 0 20724 len = length(field[1]) 20725 for (i = 2; i < nfields; i++) { 20726 key = field[i] 20727 keylen = length(key) 20728 if (S_is_set[key]) { 20729 value = S[key] 20730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20731 len += length(value) + length(field[++i]) 20732 substed = 1 20733 } else 20734 len += 1 + keylen 20735 } 20736 20737 print line 20738} 20739 20740_ACAWK 20741_ACEOF 20742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20743if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20744 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20745else 20746 cat 20747fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20748 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20749_ACEOF 20750 20751# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20752# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20753# trailing colons and then remove the whole line if VPATH becomes empty 20754# (actually we leave an empty line to preserve line numbers). 20755if test "x$srcdir" = x.; then 20756 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20757h 20758s/// 20759s/^/:/ 20760s/[ ]*$/:/ 20761s/:\$(srcdir):/:/g 20762s/:\${srcdir}:/:/g 20763s/:@srcdir@:/:/g 20764s/^:*// 20765s/:*$// 20766x 20767s/\(=[ ]*\).*/\1/ 20768G 20769s/\n// 20770s/^[^=]*=[ ]*$// 20771}' 20772fi 20773 20774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20775fi # test -n "$CONFIG_FILES" 20776 20777# Set up the scripts for CONFIG_HEADERS section. 20778# No need to generate them if there are no CONFIG_HEADERS. 20779# This happens for instance with `./config.status Makefile'. 20780if test -n "$CONFIG_HEADERS"; then 20781cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20782BEGIN { 20783_ACEOF 20784 20785# Transform confdefs.h into an awk script `defines.awk', embedded as 20786# here-document in config.status, that substitutes the proper values into 20787# config.h.in to produce config.h. 20788 20789# Create a delimiter string that does not exist in confdefs.h, to ease 20790# handling of long lines. 20791ac_delim='%!_!# ' 20792for ac_last_try in false false :; do 20793 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20794 if test -z "$ac_tt"; then 20795 break 20796 elif $ac_last_try; then 20797 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20798 else 20799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20800 fi 20801done 20802 20803# For the awk script, D is an array of macro values keyed by name, 20804# likewise P contains macro parameters if any. Preserve backslash 20805# newline sequences. 20806 20807ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20808sed -n ' 20809s/.\{148\}/&'"$ac_delim"'/g 20810t rset 20811:rset 20812s/^[ ]*#[ ]*define[ ][ ]*/ / 20813t def 20814d 20815:def 20816s/\\$// 20817t bsnl 20818s/["\\]/\\&/g 20819s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20820D["\1"]=" \3"/p 20821s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20822d 20823:bsnl 20824s/["\\]/\\&/g 20825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20826D["\1"]=" \3\\\\\\n"\\/p 20827t cont 20828s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20829t cont 20830d 20831:cont 20832n 20833s/.\{148\}/&'"$ac_delim"'/g 20834t clear 20835:clear 20836s/\\$// 20837t bsnlc 20838s/["\\]/\\&/g; s/^/"/; s/$/"/p 20839d 20840:bsnlc 20841s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20842b cont 20843' <confdefs.h | sed ' 20844s/'"$ac_delim"'/"\\\ 20845"/g' >>$CONFIG_STATUS || ac_write_fail=1 20846 20847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20848 for (key in D) D_is_set[key] = 1 20849 FS = "" 20850} 20851/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20852 line = \$ 0 20853 split(line, arg, " ") 20854 if (arg[1] == "#") { 20855 defundef = arg[2] 20856 mac1 = arg[3] 20857 } else { 20858 defundef = substr(arg[1], 2) 20859 mac1 = arg[2] 20860 } 20861 split(mac1, mac2, "(") #) 20862 macro = mac2[1] 20863 prefix = substr(line, 1, index(line, defundef) - 1) 20864 if (D_is_set[macro]) { 20865 # Preserve the white space surrounding the "#". 20866 print prefix "define", macro P[macro] D[macro] 20867 next 20868 } else { 20869 # Replace #undef with comments. This is necessary, for example, 20870 # in the case of _POSIX_SOURCE, which is predefined and required 20871 # on some systems where configure will not decide to define it. 20872 if (defundef == "undef") { 20873 print "/*", prefix defundef, macro, "*/" 20874 next 20875 } 20876 } 20877} 20878{ print } 20879_ACAWK 20880_ACEOF 20881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20882 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20883fi # test -n "$CONFIG_HEADERS" 20884 20885 20886eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20887shift 20888for ac_tag 20889do 20890 case $ac_tag in 20891 :[FHLC]) ac_mode=$ac_tag; continue;; 20892 esac 20893 case $ac_mode$ac_tag in 20894 :[FHL]*:*);; 20895 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20896 :[FH]-) ac_tag=-:-;; 20897 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20898 esac 20899 ac_save_IFS=$IFS 20900 IFS=: 20901 set x $ac_tag 20902 IFS=$ac_save_IFS 20903 shift 20904 ac_file=$1 20905 shift 20906 20907 case $ac_mode in 20908 :L) ac_source=$1;; 20909 :[FH]) 20910 ac_file_inputs= 20911 for ac_f 20912 do 20913 case $ac_f in 20914 -) ac_f="$ac_tmp/stdin";; 20915 *) # Look for the file first in the build tree, then in the source tree 20916 # (if the path is not absolute). The absolute path cannot be DOS-style, 20917 # because $ac_f cannot contain `:'. 20918 test -f "$ac_f" || 20919 case $ac_f in 20920 [\\/$]*) false;; 20921 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20922 esac || 20923 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20924 esac 20925 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20926 as_fn_append ac_file_inputs " '$ac_f'" 20927 done 20928 20929 # Let's still pretend it is `configure' which instantiates (i.e., don't 20930 # use $as_me), people would be surprised to read: 20931 # /* config.h. Generated by config.status. */ 20932 configure_input='Generated from '` 20933 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20934 `' by configure.' 20935 if test x"$ac_file" != x-; then 20936 configure_input="$ac_file. $configure_input" 20937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20938$as_echo "$as_me: creating $ac_file" >&6;} 20939 fi 20940 # Neutralize special characters interpreted by sed in replacement strings. 20941 case $configure_input in #( 20942 *\&* | *\|* | *\\* ) 20943 ac_sed_conf_input=`$as_echo "$configure_input" | 20944 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20945 *) ac_sed_conf_input=$configure_input;; 20946 esac 20947 20948 case $ac_tag in 20949 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20951 esac 20952 ;; 20953 esac 20954 20955 ac_dir=`$as_dirname -- "$ac_file" || 20956$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20957 X"$ac_file" : 'X\(//\)[^/]' \| \ 20958 X"$ac_file" : 'X\(//\)$' \| \ 20959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20960$as_echo X"$ac_file" | 20961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20962 s//\1/ 20963 q 20964 } 20965 /^X\(\/\/\)[^/].*/{ 20966 s//\1/ 20967 q 20968 } 20969 /^X\(\/\/\)$/{ 20970 s//\1/ 20971 q 20972 } 20973 /^X\(\/\).*/{ 20974 s//\1/ 20975 q 20976 } 20977 s/.*/./; q'` 20978 as_dir="$ac_dir"; as_fn_mkdir_p 20979 ac_builddir=. 20980 20981case "$ac_dir" in 20982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20983*) 20984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20985 # A ".." for each directory in $ac_dir_suffix. 20986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20987 case $ac_top_builddir_sub in 20988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20990 esac ;; 20991esac 20992ac_abs_top_builddir=$ac_pwd 20993ac_abs_builddir=$ac_pwd$ac_dir_suffix 20994# for backward compatibility: 20995ac_top_builddir=$ac_top_build_prefix 20996 20997case $srcdir in 20998 .) # We are building in place. 20999 ac_srcdir=. 21000 ac_top_srcdir=$ac_top_builddir_sub 21001 ac_abs_top_srcdir=$ac_pwd ;; 21002 [\\/]* | ?:[\\/]* ) # Absolute name. 21003 ac_srcdir=$srcdir$ac_dir_suffix; 21004 ac_top_srcdir=$srcdir 21005 ac_abs_top_srcdir=$srcdir ;; 21006 *) # Relative name. 21007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21008 ac_top_srcdir=$ac_top_build_prefix$srcdir 21009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21010esac 21011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21012 21013 21014 case $ac_mode in 21015 :F) 21016 # 21017 # CONFIG_FILE 21018 # 21019 21020 case $INSTALL in 21021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21022 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21023 esac 21024 ac_MKDIR_P=$MKDIR_P 21025 case $MKDIR_P in 21026 [\\/$]* | ?:[\\/]* ) ;; 21027 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21028 esac 21029_ACEOF 21030 21031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21032# If the template does not know about datarootdir, expand it. 21033# FIXME: This hack should be removed a few years after 2.60. 21034ac_datarootdir_hack=; ac_datarootdir_seen= 21035ac_sed_dataroot=' 21036/datarootdir/ { 21037 p 21038 q 21039} 21040/@datadir@/p 21041/@docdir@/p 21042/@infodir@/p 21043/@localedir@/p 21044/@mandir@/p' 21045case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21046*datarootdir*) ac_datarootdir_seen=yes;; 21047*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21049$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21050_ACEOF 21051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21052 ac_datarootdir_hack=' 21053 s&@datadir@&$datadir&g 21054 s&@docdir@&$docdir&g 21055 s&@infodir@&$infodir&g 21056 s&@localedir@&$localedir&g 21057 s&@mandir@&$mandir&g 21058 s&\\\${datarootdir}&$datarootdir&g' ;; 21059esac 21060_ACEOF 21061 21062# Neutralize VPATH when `$srcdir' = `.'. 21063# Shell code in configure.ac might set extrasub. 21064# FIXME: do we really want to maintain this feature? 21065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21066ac_sed_extra="$ac_vpsub 21067$extrasub 21068_ACEOF 21069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21070:t 21071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21072s|@configure_input@|$ac_sed_conf_input|;t t 21073s&@top_builddir@&$ac_top_builddir_sub&;t t 21074s&@top_build_prefix@&$ac_top_build_prefix&;t t 21075s&@srcdir@&$ac_srcdir&;t t 21076s&@abs_srcdir@&$ac_abs_srcdir&;t t 21077s&@top_srcdir@&$ac_top_srcdir&;t t 21078s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21079s&@builddir@&$ac_builddir&;t t 21080s&@abs_builddir@&$ac_abs_builddir&;t t 21081s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21082s&@INSTALL@&$ac_INSTALL&;t t 21083s&@MKDIR_P@&$ac_MKDIR_P&;t t 21084$ac_datarootdir_hack 21085" 21086eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21087 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21088 21089test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21090 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21092 "$ac_tmp/out"`; test -z "$ac_out"; } && 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21094which seems to be undefined. Please make sure it is defined" >&5 21095$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21096which seems to be undefined. Please make sure it is defined" >&2;} 21097 21098 rm -f "$ac_tmp/stdin" 21099 case $ac_file in 21100 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21101 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21102 esac \ 21103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21104 ;; 21105 :H) 21106 # 21107 # CONFIG_HEADER 21108 # 21109 if test x"$ac_file" != x-; then 21110 { 21111 $as_echo "/* $configure_input */" \ 21112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21113 } >"$ac_tmp/config.h" \ 21114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21115 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21117$as_echo "$as_me: $ac_file is unchanged" >&6;} 21118 else 21119 rm -f "$ac_file" 21120 mv "$ac_tmp/config.h" "$ac_file" \ 21121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21122 fi 21123 else 21124 $as_echo "/* $configure_input */" \ 21125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21126 || as_fn_error $? "could not create -" "$LINENO" 5 21127 fi 21128# Compute "$ac_file"'s index in $config_headers. 21129_am_arg="$ac_file" 21130_am_stamp_count=1 21131for _am_header in $config_headers :; do 21132 case $_am_header in 21133 $_am_arg | $_am_arg:* ) 21134 break ;; 21135 * ) 21136 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21137 esac 21138done 21139echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21140$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21141 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21142 X"$_am_arg" : 'X\(//\)$' \| \ 21143 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21144$as_echo X"$_am_arg" | 21145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21146 s//\1/ 21147 q 21148 } 21149 /^X\(\/\/\)[^/].*/{ 21150 s//\1/ 21151 q 21152 } 21153 /^X\(\/\/\)$/{ 21154 s//\1/ 21155 q 21156 } 21157 /^X\(\/\).*/{ 21158 s//\1/ 21159 q 21160 } 21161 s/.*/./; q'`/stamp-h$_am_stamp_count 21162 ;; 21163 21164 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21165$as_echo "$as_me: executing $ac_file commands" >&6;} 21166 ;; 21167 esac 21168 21169 21170 case $ac_file$ac_mode in 21171 "po-directories":C) 21172 for ac_file in $CONFIG_FILES; do 21173 # Support "outfile[:infile[:infile...]]" 21174 case "$ac_file" in 21175 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 21176 esac 21177 # PO directories have a Makefile.in generated from Makefile.in.in. 21178 case "$ac_file" in */Makefile.in) 21179 # Adjust a relative srcdir. 21180 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 21181 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 21182 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 21183 # In autoconf-2.13 it is called $ac_given_srcdir. 21184 # In autoconf-2.50 it is called $srcdir. 21185 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 21186 case "$ac_given_srcdir" in 21187 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 21188 /*) top_srcdir="$ac_given_srcdir" ;; 21189 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 21190 esac 21191 # Treat a directory as a PO directory if and only if it has a 21192 # POTFILES.in file. This allows packages to have multiple PO 21193 # directories under different names or in different locations. 21194 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 21195 rm -f "$ac_dir/POTFILES" 21196 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 21197 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 21198 POMAKEFILEDEPS="POTFILES.in" 21199 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 21200 # on $ac_dir but don't depend on user-specified configuration 21201 # parameters. 21202 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 21203 # The LINGUAS file contains the set of available languages. 21204 if test -n "$OBSOLETE_ALL_LINGUAS"; then 21205 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 21206 fi 21207 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 21208 # Hide the ALL_LINGUAS assigment from automake < 1.5. 21209 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 21210 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 21211 else 21212 # The set of available languages was given in configure.in. 21213 # Hide the ALL_LINGUAS assigment from automake < 1.5. 21214 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 21215 fi 21216 # Compute POFILES 21217 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 21218 # Compute UPDATEPOFILES 21219 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 21220 # Compute DUMMYPOFILES 21221 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 21222 # Compute GMOFILES 21223 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 21224 case "$ac_given_srcdir" in 21225 .) srcdirpre= ;; 21226 *) srcdirpre='$(srcdir)/' ;; 21227 esac 21228 POFILES= 21229 UPDATEPOFILES= 21230 DUMMYPOFILES= 21231 GMOFILES= 21232 for lang in $ALL_LINGUAS; do 21233 POFILES="$POFILES $srcdirpre$lang.po" 21234 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 21235 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 21236 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 21237 done 21238 # CATALOGS depends on both $ac_dir and the user's LINGUAS 21239 # environment variable. 21240 INST_LINGUAS= 21241 if test -n "$ALL_LINGUAS"; then 21242 for presentlang in $ALL_LINGUAS; do 21243 useit=no 21244 if test "%UNSET%" != "$LINGUAS"; then 21245 desiredlanguages="$LINGUAS" 21246 else 21247 desiredlanguages="$ALL_LINGUAS" 21248 fi 21249 for desiredlang in $desiredlanguages; do 21250 # Use the presentlang catalog if desiredlang is 21251 # a. equal to presentlang, or 21252 # b. a variant of presentlang (because in this case, 21253 # presentlang can be used as a fallback for messages 21254 # which are not translated in the desiredlang catalog). 21255 case "$desiredlang" in 21256 "$presentlang"*) useit=yes;; 21257 esac 21258 done 21259 if test $useit = yes; then 21260 INST_LINGUAS="$INST_LINGUAS $presentlang" 21261 fi 21262 done 21263 fi 21264 CATALOGS= 21265 if test -n "$INST_LINGUAS"; then 21266 for lang in $INST_LINGUAS; do 21267 CATALOGS="$CATALOGS $lang.gmo" 21268 done 21269 fi 21270 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 21271 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" 21272 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 21273 if test -f "$f"; then 21274 case "$f" in 21275 *.orig | *.bak | *~) ;; 21276 *) cat "$f" >> "$ac_dir/Makefile" ;; 21277 esac 21278 fi 21279 done 21280 fi 21281 ;; 21282 esac 21283 done ;; 21284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21285 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21286 # are listed without --file. Let's play safe and only enable the eval 21287 # if we detect the quoting. 21288 case $CONFIG_FILES in 21289 *\'*) eval set x "$CONFIG_FILES" ;; 21290 *) set x $CONFIG_FILES ;; 21291 esac 21292 shift 21293 for mf 21294 do 21295 # Strip MF so we end up with the name of the file. 21296 mf=`echo "$mf" | sed -e 's/:.*$//'` 21297 # Check whether this is an Automake generated Makefile or not. 21298 # We used to match only the files named `Makefile.in', but 21299 # some people rename them; so instead we look at the file content. 21300 # Grep'ing the first line is not enough: some people post-process 21301 # each Makefile.in and add a new line on top of each file to say so. 21302 # Grep'ing the whole file is not good either: AIX grep has a line 21303 # limit of 2048, but all sed's we know have understand at least 4000. 21304 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21305 dirpart=`$as_dirname -- "$mf" || 21306$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21307 X"$mf" : 'X\(//\)[^/]' \| \ 21308 X"$mf" : 'X\(//\)$' \| \ 21309 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21310$as_echo X"$mf" | 21311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21312 s//\1/ 21313 q 21314 } 21315 /^X\(\/\/\)[^/].*/{ 21316 s//\1/ 21317 q 21318 } 21319 /^X\(\/\/\)$/{ 21320 s//\1/ 21321 q 21322 } 21323 /^X\(\/\).*/{ 21324 s//\1/ 21325 q 21326 } 21327 s/.*/./; q'` 21328 else 21329 continue 21330 fi 21331 # Extract the definition of DEPDIR, am__include, and am__quote 21332 # from the Makefile without running `make'. 21333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21334 test -z "$DEPDIR" && continue 21335 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21336 test -z "am__include" && continue 21337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21338 # When using ansi2knr, U may be empty or an underscore; expand it 21339 U=`sed -n 's/^U = //p' < "$mf"` 21340 # Find all dependency output files, they are included files with 21341 # $(DEPDIR) in their names. We invoke sed twice because it is the 21342 # simplest approach to changing $(DEPDIR) to its actual value in the 21343 # expansion. 21344 for file in `sed -n " 21345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21347 # Make sure the directory exists. 21348 test -f "$dirpart/$file" && continue 21349 fdir=`$as_dirname -- "$file" || 21350$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21351 X"$file" : 'X\(//\)[^/]' \| \ 21352 X"$file" : 'X\(//\)$' \| \ 21353 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21354$as_echo X"$file" | 21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21356 s//\1/ 21357 q 21358 } 21359 /^X\(\/\/\)[^/].*/{ 21360 s//\1/ 21361 q 21362 } 21363 /^X\(\/\/\)$/{ 21364 s//\1/ 21365 q 21366 } 21367 /^X\(\/\).*/{ 21368 s//\1/ 21369 q 21370 } 21371 s/.*/./; q'` 21372 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21373 # echo "creating $dirpart/$file" 21374 echo '# dummy' > "$dirpart/$file" 21375 done 21376 done 21377} 21378 ;; 21379 "libtool":C) 21380 21381 # See if we are running on zsh, and set the options which allow our 21382 # commands through without removal of \ escapes. 21383 if test -n "${ZSH_VERSION+set}" ; then 21384 setopt NO_GLOB_SUBST 21385 fi 21386 21387 cfgfile="${ofile}T" 21388 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21389 $RM "$cfgfile" 21390 21391 cat <<_LT_EOF >> "$cfgfile" 21392#! $SHELL 21393 21394# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21395# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21396# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21397# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21398# 21399# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21400# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21401# Foundation, Inc. 21402# Written by Gordon Matzigkeit, 1996 21403# 21404# This file is part of GNU Libtool. 21405# 21406# GNU Libtool is free software; you can redistribute it and/or 21407# modify it under the terms of the GNU General Public License as 21408# published by the Free Software Foundation; either version 2 of 21409# the License, or (at your option) any later version. 21410# 21411# As a special exception to the GNU General Public License, 21412# if you distribute this file as part of a program or library that 21413# is built using GNU Libtool, you may include this file under the 21414# same distribution terms that you use for the rest of that program. 21415# 21416# GNU Libtool is distributed in the hope that it will be useful, 21417# but WITHOUT ANY WARRANTY; without even the implied warranty of 21418# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21419# GNU General Public License for more details. 21420# 21421# You should have received a copy of the GNU General Public License 21422# along with GNU Libtool; see the file COPYING. If not, a copy 21423# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21424# obtained by writing to the Free Software Foundation, Inc., 21425# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21426 21427 21428# The names of the tagged configurations supported by this script. 21429available_tags="CXX " 21430 21431# ### BEGIN LIBTOOL CONFIG 21432 21433# Which release of libtool.m4 was used? 21434macro_version=$macro_version 21435macro_revision=$macro_revision 21436 21437# Whether or not to build shared libraries. 21438build_libtool_libs=$enable_shared 21439 21440# Whether or not to build static libraries. 21441build_old_libs=$enable_static 21442 21443# What type of objects to build. 21444pic_mode=$pic_mode 21445 21446# Whether or not to optimize for fast installation. 21447fast_install=$enable_fast_install 21448 21449# Shell to use when invoking shell scripts. 21450SHELL=$lt_SHELL 21451 21452# An echo program that protects backslashes. 21453ECHO=$lt_ECHO 21454 21455# The PATH separator for the build system. 21456PATH_SEPARATOR=$lt_PATH_SEPARATOR 21457 21458# The host system. 21459host_alias=$host_alias 21460host=$host 21461host_os=$host_os 21462 21463# The build system. 21464build_alias=$build_alias 21465build=$build 21466build_os=$build_os 21467 21468# A sed program that does not truncate output. 21469SED=$lt_SED 21470 21471# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21472Xsed="\$SED -e 1s/^X//" 21473 21474# A grep program that handles long lines. 21475GREP=$lt_GREP 21476 21477# An ERE matcher. 21478EGREP=$lt_EGREP 21479 21480# A literal string matcher. 21481FGREP=$lt_FGREP 21482 21483# A BSD- or MS-compatible name lister. 21484NM=$lt_NM 21485 21486# Whether we need soft or hard links. 21487LN_S=$lt_LN_S 21488 21489# What is the maximum length of a command? 21490max_cmd_len=$max_cmd_len 21491 21492# Object file suffix (normally "o"). 21493objext=$ac_objext 21494 21495# Executable file suffix (normally ""). 21496exeext=$exeext 21497 21498# whether the shell understands "unset". 21499lt_unset=$lt_unset 21500 21501# turn spaces into newlines. 21502SP2NL=$lt_lt_SP2NL 21503 21504# turn newlines into spaces. 21505NL2SP=$lt_lt_NL2SP 21506 21507# convert \$build file names to \$host format. 21508to_host_file_cmd=$lt_cv_to_host_file_cmd 21509 21510# convert \$build files to toolchain format. 21511to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21512 21513# An object symbol dumper. 21514OBJDUMP=$lt_OBJDUMP 21515 21516# Method to check whether dependent libraries are shared objects. 21517deplibs_check_method=$lt_deplibs_check_method 21518 21519# Command to use when deplibs_check_method = "file_magic". 21520file_magic_cmd=$lt_file_magic_cmd 21521 21522# How to find potential files when deplibs_check_method = "file_magic". 21523file_magic_glob=$lt_file_magic_glob 21524 21525# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21526want_nocaseglob=$lt_want_nocaseglob 21527 21528# DLL creation program. 21529DLLTOOL=$lt_DLLTOOL 21530 21531# Command to associate shared and link libraries. 21532sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21533 21534# The archiver. 21535AR=$lt_AR 21536 21537# Flags to create an archive. 21538AR_FLAGS=$lt_AR_FLAGS 21539 21540# How to feed a file listing to the archiver. 21541archiver_list_spec=$lt_archiver_list_spec 21542 21543# A symbol stripping program. 21544STRIP=$lt_STRIP 21545 21546# Commands used to install an old-style archive. 21547RANLIB=$lt_RANLIB 21548old_postinstall_cmds=$lt_old_postinstall_cmds 21549old_postuninstall_cmds=$lt_old_postuninstall_cmds 21550 21551# Whether to use a lock for old archive extraction. 21552lock_old_archive_extraction=$lock_old_archive_extraction 21553 21554# A C compiler. 21555LTCC=$lt_CC 21556 21557# LTCC compiler flags. 21558LTCFLAGS=$lt_CFLAGS 21559 21560# Take the output of nm and produce a listing of raw symbols and C names. 21561global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21562 21563# Transform the output of nm in a proper C declaration. 21564global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21565 21566# Transform the output of nm in a C name address pair. 21567global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21568 21569# Transform the output of nm in a C name address pair when lib prefix is needed. 21570global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21571 21572# Specify filename containing input files for \$NM. 21573nm_file_list_spec=$lt_nm_file_list_spec 21574 21575# The root where to search for dependent libraries,and in which our libraries should be installed. 21576lt_sysroot=$lt_sysroot 21577 21578# The name of the directory that contains temporary libtool files. 21579objdir=$objdir 21580 21581# Used to examine libraries when file_magic_cmd begins with "file". 21582MAGIC_CMD=$MAGIC_CMD 21583 21584# Must we lock files when doing compilation? 21585need_locks=$lt_need_locks 21586 21587# Manifest tool. 21588MANIFEST_TOOL=$lt_MANIFEST_TOOL 21589 21590# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21591DSYMUTIL=$lt_DSYMUTIL 21592 21593# Tool to change global to local symbols on Mac OS X. 21594NMEDIT=$lt_NMEDIT 21595 21596# Tool to manipulate fat objects and archives on Mac OS X. 21597LIPO=$lt_LIPO 21598 21599# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21600OTOOL=$lt_OTOOL 21601 21602# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21603OTOOL64=$lt_OTOOL64 21604 21605# Old archive suffix (normally "a"). 21606libext=$libext 21607 21608# Shared library suffix (normally ".so"). 21609shrext_cmds=$lt_shrext_cmds 21610 21611# The commands to extract the exported symbol list from a shared archive. 21612extract_expsyms_cmds=$lt_extract_expsyms_cmds 21613 21614# Variables whose values should be saved in libtool wrapper scripts and 21615# restored at link time. 21616variables_saved_for_relink=$lt_variables_saved_for_relink 21617 21618# Do we need the "lib" prefix for modules? 21619need_lib_prefix=$need_lib_prefix 21620 21621# Do we need a version for libraries? 21622need_version=$need_version 21623 21624# Library versioning type. 21625version_type=$version_type 21626 21627# Shared library runtime path variable. 21628runpath_var=$runpath_var 21629 21630# Shared library path variable. 21631shlibpath_var=$shlibpath_var 21632 21633# Is shlibpath searched before the hard-coded library search path? 21634shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21635 21636# Format of library name prefix. 21637libname_spec=$lt_libname_spec 21638 21639# List of archive names. First name is the real one, the rest are links. 21640# The last name is the one that the linker finds with -lNAME 21641library_names_spec=$lt_library_names_spec 21642 21643# The coded name of the library, if different from the real name. 21644soname_spec=$lt_soname_spec 21645 21646# Permission mode override for installation of shared libraries. 21647install_override_mode=$lt_install_override_mode 21648 21649# Command to use after installation of a shared archive. 21650postinstall_cmds=$lt_postinstall_cmds 21651 21652# Command to use after uninstallation of a shared archive. 21653postuninstall_cmds=$lt_postuninstall_cmds 21654 21655# Commands used to finish a libtool library installation in a directory. 21656finish_cmds=$lt_finish_cmds 21657 21658# As "finish_cmds", except a single script fragment to be evaled but 21659# not shown. 21660finish_eval=$lt_finish_eval 21661 21662# Whether we should hardcode library paths into libraries. 21663hardcode_into_libs=$hardcode_into_libs 21664 21665# Compile-time system search path for libraries. 21666sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21667 21668# Run-time system search path for libraries. 21669sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21670 21671# Whether dlopen is supported. 21672dlopen_support=$enable_dlopen 21673 21674# Whether dlopen of programs is supported. 21675dlopen_self=$enable_dlopen_self 21676 21677# Whether dlopen of statically linked programs is supported. 21678dlopen_self_static=$enable_dlopen_self_static 21679 21680# Commands to strip libraries. 21681old_striplib=$lt_old_striplib 21682striplib=$lt_striplib 21683 21684 21685# The linker used to build libraries. 21686LD=$lt_LD 21687 21688# How to create reloadable object files. 21689reload_flag=$lt_reload_flag 21690reload_cmds=$lt_reload_cmds 21691 21692# Commands used to build an old-style archive. 21693old_archive_cmds=$lt_old_archive_cmds 21694 21695# A language specific compiler. 21696CC=$lt_compiler 21697 21698# Is the compiler the GNU compiler? 21699with_gcc=$GCC 21700 21701# Compiler flag to turn off builtin functions. 21702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21703 21704# Additional compiler flags for building library objects. 21705pic_flag=$lt_lt_prog_compiler_pic 21706 21707# How to pass a linker flag through the compiler. 21708wl=$lt_lt_prog_compiler_wl 21709 21710# Compiler flag to prevent dynamic linking. 21711link_static_flag=$lt_lt_prog_compiler_static 21712 21713# Does compiler simultaneously support -c and -o options? 21714compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21715 21716# Whether or not to add -lc for building shared libraries. 21717build_libtool_need_lc=$archive_cmds_need_lc 21718 21719# Whether or not to disallow shared libs when runtime libs are static. 21720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21721 21722# Compiler flag to allow reflexive dlopens. 21723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21724 21725# Compiler flag to generate shared objects directly from archives. 21726whole_archive_flag_spec=$lt_whole_archive_flag_spec 21727 21728# Whether the compiler copes with passing no objects directly. 21729compiler_needs_object=$lt_compiler_needs_object 21730 21731# Create an old-style archive from a shared archive. 21732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21733 21734# Create a temporary old-style archive to link instead of a shared archive. 21735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21736 21737# Commands used to build a shared archive. 21738archive_cmds=$lt_archive_cmds 21739archive_expsym_cmds=$lt_archive_expsym_cmds 21740 21741# Commands used to build a loadable module if different from building 21742# a shared archive. 21743module_cmds=$lt_module_cmds 21744module_expsym_cmds=$lt_module_expsym_cmds 21745 21746# Whether we are building with GNU ld or not. 21747with_gnu_ld=$lt_with_gnu_ld 21748 21749# Flag that allows shared libraries with undefined symbols to be built. 21750allow_undefined_flag=$lt_allow_undefined_flag 21751 21752# Flag that enforces no undefined symbols. 21753no_undefined_flag=$lt_no_undefined_flag 21754 21755# Flag to hardcode \$libdir into a binary during linking. 21756# This must work even if \$libdir does not exist 21757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21758 21759# Whether we need a single "-rpath" flag with a separated argument. 21760hardcode_libdir_separator=$lt_hardcode_libdir_separator 21761 21762# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21763# DIR into the resulting binary. 21764hardcode_direct=$hardcode_direct 21765 21766# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21767# DIR into the resulting binary and the resulting library dependency is 21768# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21769# library is relocated. 21770hardcode_direct_absolute=$hardcode_direct_absolute 21771 21772# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21773# into the resulting binary. 21774hardcode_minus_L=$hardcode_minus_L 21775 21776# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21777# into the resulting binary. 21778hardcode_shlibpath_var=$hardcode_shlibpath_var 21779 21780# Set to "yes" if building a shared library automatically hardcodes DIR 21781# into the library and all subsequent libraries and executables linked 21782# against it. 21783hardcode_automatic=$hardcode_automatic 21784 21785# Set to yes if linker adds runtime paths of dependent libraries 21786# to runtime path list. 21787inherit_rpath=$inherit_rpath 21788 21789# Whether libtool must link a program against all its dependency libraries. 21790link_all_deplibs=$link_all_deplibs 21791 21792# Set to "yes" if exported symbols are required. 21793always_export_symbols=$always_export_symbols 21794 21795# The commands to list exported symbols. 21796export_symbols_cmds=$lt_export_symbols_cmds 21797 21798# Symbols that should not be listed in the preloaded symbols. 21799exclude_expsyms=$lt_exclude_expsyms 21800 21801# Symbols that must always be exported. 21802include_expsyms=$lt_include_expsyms 21803 21804# Commands necessary for linking programs (against libraries) with templates. 21805prelink_cmds=$lt_prelink_cmds 21806 21807# Commands necessary for finishing linking programs. 21808postlink_cmds=$lt_postlink_cmds 21809 21810# Specify filename containing input files. 21811file_list_spec=$lt_file_list_spec 21812 21813# How to hardcode a shared library path into an executable. 21814hardcode_action=$hardcode_action 21815 21816# The directories searched by this compiler when creating a shared library. 21817compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21818 21819# Dependencies to place before and after the objects being linked to 21820# create a shared library. 21821predep_objects=$lt_predep_objects 21822postdep_objects=$lt_postdep_objects 21823predeps=$lt_predeps 21824postdeps=$lt_postdeps 21825 21826# The library search path used internally by the compiler when linking 21827# a shared library. 21828compiler_lib_search_path=$lt_compiler_lib_search_path 21829 21830# ### END LIBTOOL CONFIG 21831 21832_LT_EOF 21833 21834 case $host_os in 21835 aix3*) 21836 cat <<\_LT_EOF >> "$cfgfile" 21837# AIX sometimes has problems with the GCC collect2 program. For some 21838# reason, if we set the COLLECT_NAMES environment variable, the problems 21839# vanish in a puff of smoke. 21840if test "X${COLLECT_NAMES+set}" != Xset; then 21841 COLLECT_NAMES= 21842 export COLLECT_NAMES 21843fi 21844_LT_EOF 21845 ;; 21846 esac 21847 21848 21849ltmain="$ac_aux_dir/ltmain.sh" 21850 21851 21852 # We use sed instead of cat because bash on DJGPP gets confused if 21853 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21854 # text mode, it properly converts lines to CR/LF. This bash problem 21855 # is reportedly fixed, but why not run on old versions too? 21856 sed '$q' "$ltmain" >> "$cfgfile" \ 21857 || (rm -f "$cfgfile"; exit 1) 21858 21859 if test x"$xsi_shell" = xyes; then 21860 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21861func_dirname ()\ 21862{\ 21863\ case ${1} in\ 21864\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21865\ * ) func_dirname_result="${3}" ;;\ 21866\ esac\ 21867} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21868 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21870test 0 -eq $? || _lt_function_replace_fail=: 21871 21872 21873 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21874func_basename ()\ 21875{\ 21876\ func_basename_result="${1##*/}"\ 21877} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21878 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21880test 0 -eq $? || _lt_function_replace_fail=: 21881 21882 21883 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21884func_dirname_and_basename ()\ 21885{\ 21886\ case ${1} in\ 21887\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21888\ * ) func_dirname_result="${3}" ;;\ 21889\ esac\ 21890\ func_basename_result="${1##*/}"\ 21891} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21892 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21894test 0 -eq $? || _lt_function_replace_fail=: 21895 21896 21897 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21898func_stripname ()\ 21899{\ 21900\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21901\ # positional parameters, so assign one to ordinary parameter first.\ 21902\ func_stripname_result=${3}\ 21903\ func_stripname_result=${func_stripname_result#"${1}"}\ 21904\ func_stripname_result=${func_stripname_result%"${2}"}\ 21905} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21906 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21908test 0 -eq $? || _lt_function_replace_fail=: 21909 21910 21911 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21912func_split_long_opt ()\ 21913{\ 21914\ func_split_long_opt_name=${1%%=*}\ 21915\ func_split_long_opt_arg=${1#*=}\ 21916} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21917 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21919test 0 -eq $? || _lt_function_replace_fail=: 21920 21921 21922 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21923func_split_short_opt ()\ 21924{\ 21925\ func_split_short_opt_arg=${1#??}\ 21926\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21927} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21930test 0 -eq $? || _lt_function_replace_fail=: 21931 21932 21933 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21934func_lo2o ()\ 21935{\ 21936\ case ${1} in\ 21937\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21938\ *) func_lo2o_result=${1} ;;\ 21939\ esac\ 21940} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21941 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21943test 0 -eq $? || _lt_function_replace_fail=: 21944 21945 21946 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21947func_xform ()\ 21948{\ 21949 func_xform_result=${1%.*}.lo\ 21950} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21951 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21953test 0 -eq $? || _lt_function_replace_fail=: 21954 21955 21956 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21957func_arith ()\ 21958{\ 21959 func_arith_result=$(( $* ))\ 21960} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21961 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21963test 0 -eq $? || _lt_function_replace_fail=: 21964 21965 21966 sed -e '/^func_len ()$/,/^} # func_len /c\ 21967func_len ()\ 21968{\ 21969 func_len_result=${#1}\ 21970} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21971 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21973test 0 -eq $? || _lt_function_replace_fail=: 21974 21975fi 21976 21977if test x"$lt_shell_append" = xyes; then 21978 sed -e '/^func_append ()$/,/^} # func_append /c\ 21979func_append ()\ 21980{\ 21981 eval "${1}+=\\${2}"\ 21982} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21983 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21985test 0 -eq $? || _lt_function_replace_fail=: 21986 21987 21988 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21989func_append_quoted ()\ 21990{\ 21991\ func_quote_for_eval "${2}"\ 21992\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21993} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21994 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21996test 0 -eq $? || _lt_function_replace_fail=: 21997 21998 21999 # Save a `func_append' function call where possible by direct use of '+=' 22000 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22001 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22003 test 0 -eq $? || _lt_function_replace_fail=: 22004else 22005 # Save a `func_append' function call even when '+=' is not available 22006 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22009 test 0 -eq $? || _lt_function_replace_fail=: 22010fi 22011 22012if test x"$_lt_function_replace_fail" = x":"; then 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22014$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22015fi 22016 22017 22018 mv -f "$cfgfile" "$ofile" || 22019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22020 chmod +x "$ofile" 22021 22022 22023 cat <<_LT_EOF >> "$ofile" 22024 22025# ### BEGIN LIBTOOL TAG CONFIG: CXX 22026 22027# The linker used to build libraries. 22028LD=$lt_LD_CXX 22029 22030# How to create reloadable object files. 22031reload_flag=$lt_reload_flag_CXX 22032reload_cmds=$lt_reload_cmds_CXX 22033 22034# Commands used to build an old-style archive. 22035old_archive_cmds=$lt_old_archive_cmds_CXX 22036 22037# A language specific compiler. 22038CC=$lt_compiler_CXX 22039 22040# Is the compiler the GNU compiler? 22041with_gcc=$GCC_CXX 22042 22043# Compiler flag to turn off builtin functions. 22044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22045 22046# Additional compiler flags for building library objects. 22047pic_flag=$lt_lt_prog_compiler_pic_CXX 22048 22049# How to pass a linker flag through the compiler. 22050wl=$lt_lt_prog_compiler_wl_CXX 22051 22052# Compiler flag to prevent dynamic linking. 22053link_static_flag=$lt_lt_prog_compiler_static_CXX 22054 22055# Does compiler simultaneously support -c and -o options? 22056compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22057 22058# Whether or not to add -lc for building shared libraries. 22059build_libtool_need_lc=$archive_cmds_need_lc_CXX 22060 22061# Whether or not to disallow shared libs when runtime libs are static. 22062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22063 22064# Compiler flag to allow reflexive dlopens. 22065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22066 22067# Compiler flag to generate shared objects directly from archives. 22068whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22069 22070# Whether the compiler copes with passing no objects directly. 22071compiler_needs_object=$lt_compiler_needs_object_CXX 22072 22073# Create an old-style archive from a shared archive. 22074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22075 22076# Create a temporary old-style archive to link instead of a shared archive. 22077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22078 22079# Commands used to build a shared archive. 22080archive_cmds=$lt_archive_cmds_CXX 22081archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22082 22083# Commands used to build a loadable module if different from building 22084# a shared archive. 22085module_cmds=$lt_module_cmds_CXX 22086module_expsym_cmds=$lt_module_expsym_cmds_CXX 22087 22088# Whether we are building with GNU ld or not. 22089with_gnu_ld=$lt_with_gnu_ld_CXX 22090 22091# Flag that allows shared libraries with undefined symbols to be built. 22092allow_undefined_flag=$lt_allow_undefined_flag_CXX 22093 22094# Flag that enforces no undefined symbols. 22095no_undefined_flag=$lt_no_undefined_flag_CXX 22096 22097# Flag to hardcode \$libdir into a binary during linking. 22098# This must work even if \$libdir does not exist 22099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22100 22101# Whether we need a single "-rpath" flag with a separated argument. 22102hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22103 22104# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22105# DIR into the resulting binary. 22106hardcode_direct=$hardcode_direct_CXX 22107 22108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22109# DIR into the resulting binary and the resulting library dependency is 22110# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22111# library is relocated. 22112hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22113 22114# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22115# into the resulting binary. 22116hardcode_minus_L=$hardcode_minus_L_CXX 22117 22118# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22119# into the resulting binary. 22120hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22121 22122# Set to "yes" if building a shared library automatically hardcodes DIR 22123# into the library and all subsequent libraries and executables linked 22124# against it. 22125hardcode_automatic=$hardcode_automatic_CXX 22126 22127# Set to yes if linker adds runtime paths of dependent libraries 22128# to runtime path list. 22129inherit_rpath=$inherit_rpath_CXX 22130 22131# Whether libtool must link a program against all its dependency libraries. 22132link_all_deplibs=$link_all_deplibs_CXX 22133 22134# Set to "yes" if exported symbols are required. 22135always_export_symbols=$always_export_symbols_CXX 22136 22137# The commands to list exported symbols. 22138export_symbols_cmds=$lt_export_symbols_cmds_CXX 22139 22140# Symbols that should not be listed in the preloaded symbols. 22141exclude_expsyms=$lt_exclude_expsyms_CXX 22142 22143# Symbols that must always be exported. 22144include_expsyms=$lt_include_expsyms_CXX 22145 22146# Commands necessary for linking programs (against libraries) with templates. 22147prelink_cmds=$lt_prelink_cmds_CXX 22148 22149# Commands necessary for finishing linking programs. 22150postlink_cmds=$lt_postlink_cmds_CXX 22151 22152# Specify filename containing input files. 22153file_list_spec=$lt_file_list_spec_CXX 22154 22155# How to hardcode a shared library path into an executable. 22156hardcode_action=$hardcode_action_CXX 22157 22158# The directories searched by this compiler when creating a shared library. 22159compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22160 22161# Dependencies to place before and after the objects being linked to 22162# create a shared library. 22163predep_objects=$lt_predep_objects_CXX 22164postdep_objects=$lt_postdep_objects_CXX 22165predeps=$lt_predeps_CXX 22166postdeps=$lt_postdeps_CXX 22167 22168# The library search path used internally by the compiler when linking 22169# a shared library. 22170compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22171 22172# ### END LIBTOOL TAG CONFIG: CXX 22173_LT_EOF 22174 22175 ;; 22176 22177 esac 22178done # for ac_tag 22179 22180 22181as_fn_exit 0 22182_ACEOF 22183ac_clean_files=$ac_clean_files_save 22184 22185test $ac_write_fail = 0 || 22186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22187 22188 22189# configure is writing to config.log, and then calls config.status. 22190# config.status does its own redirection, appending to config.log. 22191# Unfortunately, on DOS this fails, as config.log is still kept open 22192# by configure, so config.status won't be able to write to it; its 22193# output is simply discarded. So we exec the FD to /dev/null, 22194# effectively closing config.log, so it can be properly (re)opened and 22195# appended to by config.status. When coming back to configure, we 22196# need to make the FD available again. 22197if test "$no_create" != yes; then 22198 ac_cs_success=: 22199 ac_config_status_args= 22200 test "$silent" = yes && 22201 ac_config_status_args="$ac_config_status_args --quiet" 22202 exec 5>/dev/null 22203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22204 exec 5>>config.log 22205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22206 # would make configure fail if this is the last instruction. 22207 $ac_cs_success || as_fn_exit 1 22208fi 22209if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22211$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22212fi 22213 22214