1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for eudev 3.2.10. 4# 5# Report bugs to <https://github.com/gentoo/eudev/issues>. 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: https://github.com/gentoo/eudev/issues about your 279$0: system, 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='eudev' 592PACKAGE_TARNAME='eudev' 593PACKAGE_VERSION='3.2.10' 594PACKAGE_STRING='eudev 3.2.10' 595PACKAGE_BUGREPORT='https://github.com/gentoo/eudev/issues' 596PACKAGE_URL='' 597 598ac_unique_file="src/udev/udevd.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_default_prefix=/usr 636ac_header_list= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640ENABLE_MTD_PROBE_FALSE 641ENABLE_MTD_PROBE_TRUE 642ENABLE_RULE_GENERATOR_FALSE 643ENABLE_RULE_GENERATOR_TRUE 644ENABLE_HWDB_FALSE 645ENABLE_HWDB_TRUE 646HAVE_KMOD_FALSE 647HAVE_KMOD_TRUE 648KMOD_LIBS 649KMOD_CFLAGS 650ENABLE_MANPAGES_FALSE 651ENABLE_MANPAGES_TRUE 652GPERF 653sushell 654HAVE_SELINUX_FALSE 655HAVE_SELINUX_TRUE 656SELINUX_LIBS 657SELINUX_CFLAGS 658HAVE_BLKID_FALSE 659HAVE_BLKID_TRUE 660BLKID_LIBS 661BLKID_CFLAGS 662ENABLE_PROGRAMS_FALSE 663ENABLE_PROGRAMS_TRUE 664HAVE_INTROSPECTION_FALSE 665HAVE_INTROSPECTION_TRUE 666INTROSPECTION_MAKEFILE 667INTROSPECTION_LIBS 668INTROSPECTION_CFLAGS 669INTROSPECTION_TYPELIBDIR 670INTROSPECTION_GIRDIR 671INTROSPECTION_GENERATE 672INTROSPECTION_COMPILER 673INTROSPECTION_SCANNER 674PKG_CONFIG_LIBDIR 675PKG_CONFIG_PATH 676PKG_CONFIG 677rootrundir 678typelibsdir 679girdir 680sharepkgconfigdir 681pkgconfiglibdir 682udevrulesdir 683udevkeymapforceredir 684udevkeymapdir 685udevhwdbbin 686udevhwdbdir 687udevconffile 688udevconfdir 689udevlibexecdir 690rootlibexecdir 691rootlibdir 692rootprefix 693LIBM 694LIBOBJS 695M4 696CXXCPP 697am__fastdepCXX_FALSE 698am__fastdepCXX_TRUE 699CXXDEPMODE 700ac_ct_CXX 701CXXFLAGS 702CXX 703LT_SYS_LIBRARY_PATH 704OTOOL64 705OTOOL 706LIPO 707NMEDIT 708DSYMUTIL 709MANIFEST_TOOL 710RANLIB 711ac_ct_AR 712AR 713DLLTOOL 714OBJDUMP 715LN_S 716NM 717ac_ct_DUMPBIN 718DUMPBIN 719LD 720FGREP 721SED 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730LIBTOOL 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__fastdepCC_FALSE 736am__fastdepCC_TRUE 737CCDEPMODE 738am__nodep 739AMDEPBACKSLASH 740AMDEP_FALSE 741AMDEP_TRUE 742am__include 743DEPDIR 744am__untar 745am__tar 746AMTAR 747am__leading_dot 748SET_MAKE 749AWK 750mkdir_p 751MKDIR_P 752INSTALL_STRIP_PROGRAM 753STRIP 754install_sh 755MAKEINFO 756AUTOHEADER 757AUTOMAKE 758AUTOCONF 759ACLOCAL 760VERSION 761PACKAGE 762CYGPATH_W 763am__isrc 764INSTALL_DATA 765INSTALL_SCRIPT 766INSTALL_PROGRAM 767EGREP 768GREP 769CPP 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777UDEV_VERSION 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797localstatedir 798sharedstatedir 799sysconfdir 800datadir 801datarootdir 802libexecdir 803sbindir 804bindir 805program_transform_name 806prefix 807exec_prefix 808PACKAGE_URL 809PACKAGE_BUGREPORT 810PACKAGE_STRING 811PACKAGE_VERSION 812PACKAGE_TARNAME 813PACKAGE_NAME 814PATH_SEPARATOR 815SHELL 816am__quote' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_largefile 821enable_dependency_tracking 822enable_silent_rules 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_aix_soname 828with_gnu_ld 829with_sysroot 830enable_libtool_lock 831with_rootprefix 832with_rootlibdir 833with_rootlibexecdir 834with_rootrundir 835enable_split_usr 836enable_introspection 837enable_programs 838enable_blkid 839enable_selinux 840enable_manpages 841enable_kmod 842enable_hwdb 843enable_rule_generator 844enable_mtd_probe 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849CC 850CFLAGS 851LDFLAGS 852LIBS 853CPPFLAGS 854CPP 855LT_SYS_LIBRARY_PATH 856CXX 857CXXFLAGS 858CCC 859CXXCPP 860PKG_CONFIG 861PKG_CONFIG_PATH 862PKG_CONFIG_LIBDIR 863BLKID_CFLAGS 864BLKID_LIBS 865SELINUX_CFLAGS 866SELINUX_LIBS 867KMOD_CFLAGS 868KMOD_LIBS' 869 870 871# Initialize some variables set by options. 872ac_init_help= 873ac_init_version=false 874ac_unrecognized_opts= 875ac_unrecognized_sep= 876# The variables have the same names as the options, with 877# dashes changed to underlines. 878cache_file=/dev/null 879exec_prefix=NONE 880no_create= 881no_recursion= 882prefix=NONE 883program_prefix=NONE 884program_suffix=NONE 885program_transform_name=s,x,x, 886silent= 887site= 888srcdir= 889verbose= 890x_includes=NONE 891x_libraries=NONE 892 893# Installation directory options. 894# These are left unexpanded so users can "make install exec_prefix=/foo" 895# and all the variables that are supposed to be based on exec_prefix 896# by default will actually change. 897# Use braces instead of parens because sh, perl, etc. also accept them. 898# (The list follows the same order as the GNU Coding Standards.) 899bindir='${exec_prefix}/bin' 900sbindir='${exec_prefix}/sbin' 901libexecdir='${exec_prefix}/libexec' 902datarootdir='${prefix}/share' 903datadir='${datarootdir}' 904sysconfdir='${prefix}/etc' 905sharedstatedir='${prefix}/com' 906localstatedir='${prefix}/var' 907includedir='${prefix}/include' 908oldincludedir='/usr/include' 909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 910infodir='${datarootdir}/info' 911htmldir='${docdir}' 912dvidir='${docdir}' 913pdfdir='${docdir}' 914psdir='${docdir}' 915libdir='${exec_prefix}/lib' 916localedir='${datarootdir}/locale' 917mandir='${datarootdir}/man' 918 919ac_prev= 920ac_dashdash= 921for ac_option 922do 923 # If the previous option needs an argument, assign it. 924 if test -n "$ac_prev"; then 925 eval $ac_prev=\$ac_option 926 ac_prev= 927 continue 928 fi 929 930 case $ac_option in 931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 932 *=) ac_optarg= ;; 933 *) ac_optarg=yes ;; 934 esac 935 936 # Accept the important Cygnus configure options, so we can diagnose typos. 937 938 case $ac_dashdash$ac_option in 939 --) 940 ac_dashdash=yes ;; 941 942 -bindir | --bindir | --bindi | --bind | --bin | --bi) 943 ac_prev=bindir ;; 944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 945 bindir=$ac_optarg ;; 946 947 -build | --build | --buil | --bui | --bu) 948 ac_prev=build_alias ;; 949 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 950 build_alias=$ac_optarg ;; 951 952 -cache-file | --cache-file | --cache-fil | --cache-fi \ 953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 954 ac_prev=cache_file ;; 955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 957 cache_file=$ac_optarg ;; 958 959 --config-cache | -C) 960 cache_file=config.cache ;; 961 962 -datadir | --datadir | --datadi | --datad) 963 ac_prev=datadir ;; 964 -datadir=* | --datadir=* | --datadi=* | --datad=*) 965 datadir=$ac_optarg ;; 966 967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 968 | --dataroo | --dataro | --datar) 969 ac_prev=datarootdir ;; 970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 972 datarootdir=$ac_optarg ;; 973 974 -disable-* | --disable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=no ;; 989 990 -docdir | --docdir | --docdi | --doc | --do) 991 ac_prev=docdir ;; 992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 993 docdir=$ac_optarg ;; 994 995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 996 ac_prev=dvidir ;; 997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 998 dvidir=$ac_optarg ;; 999 1000 -enable-* | --enable-*) 1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004 as_fn_error $? "invalid feature name: $ac_useropt" 1005 ac_useropt_orig=$ac_useropt 1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1007 case $ac_user_opts in 1008 *" 1009"enable_$ac_useropt" 1010"*) ;; 1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1012 ac_unrecognized_sep=', ';; 1013 esac 1014 eval enable_$ac_useropt=\$ac_optarg ;; 1015 1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1018 | --exec | --exe | --ex) 1019 ac_prev=exec_prefix ;; 1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1022 | --exec=* | --exe=* | --ex=*) 1023 exec_prefix=$ac_optarg ;; 1024 1025 -gas | --gas | --ga | --g) 1026 # Obsolete; use --with-gas. 1027 with_gas=yes ;; 1028 1029 -help | --help | --hel | --he | -h) 1030 ac_init_help=long ;; 1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1032 ac_init_help=recursive ;; 1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1034 ac_init_help=short ;; 1035 1036 -host | --host | --hos | --ho) 1037 ac_prev=host_alias ;; 1038 -host=* | --host=* | --hos=* | --ho=*) 1039 host_alias=$ac_optarg ;; 1040 1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1042 ac_prev=htmldir ;; 1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1044 | --ht=*) 1045 htmldir=$ac_optarg ;; 1046 1047 -includedir | --includedir | --includedi | --included | --include \ 1048 | --includ | --inclu | --incl | --inc) 1049 ac_prev=includedir ;; 1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1051 | --includ=* | --inclu=* | --incl=* | --inc=*) 1052 includedir=$ac_optarg ;; 1053 1054 -infodir | --infodir | --infodi | --infod | --info | --inf) 1055 ac_prev=infodir ;; 1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1057 infodir=$ac_optarg ;; 1058 1059 -libdir | --libdir | --libdi | --libd) 1060 ac_prev=libdir ;; 1061 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1062 libdir=$ac_optarg ;; 1063 1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1065 | --libexe | --libex | --libe) 1066 ac_prev=libexecdir ;; 1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1068 | --libexe=* | --libex=* | --libe=*) 1069 libexecdir=$ac_optarg ;; 1070 1071 -localedir | --localedir | --localedi | --localed | --locale) 1072 ac_prev=localedir ;; 1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1074 localedir=$ac_optarg ;; 1075 1076 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1077 | --localstate | --localstat | --localsta | --localst | --locals) 1078 ac_prev=localstatedir ;; 1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1081 localstatedir=$ac_optarg ;; 1082 1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1084 ac_prev=mandir ;; 1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1086 mandir=$ac_optarg ;; 1087 1088 -nfp | --nfp | --nf) 1089 # Obsolete; use --without-fp. 1090 with_fp=no ;; 1091 1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1093 | --no-cr | --no-c | -n) 1094 no_create=yes ;; 1095 1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1098 no_recursion=yes ;; 1099 1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1102 | --oldin | --oldi | --old | --ol | --o) 1103 ac_prev=oldincludedir ;; 1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1107 oldincludedir=$ac_optarg ;; 1108 1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1110 ac_prev=prefix ;; 1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1112 prefix=$ac_optarg ;; 1113 1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1115 | --program-pre | --program-pr | --program-p) 1116 ac_prev=program_prefix ;; 1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1119 program_prefix=$ac_optarg ;; 1120 1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1122 | --program-suf | --program-su | --program-s) 1123 ac_prev=program_suffix ;; 1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1126 program_suffix=$ac_optarg ;; 1127 1128 -program-transform-name | --program-transform-name \ 1129 | --program-transform-nam | --program-transform-na \ 1130 | --program-transform-n | --program-transform- \ 1131 | --program-transform | --program-transfor \ 1132 | --program-transfo | --program-transf \ 1133 | --program-trans | --program-tran \ 1134 | --progr-tra | --program-tr | --program-t) 1135 ac_prev=program_transform_name ;; 1136 -program-transform-name=* | --program-transform-name=* \ 1137 | --program-transform-nam=* | --program-transform-na=* \ 1138 | --program-transform-n=* | --program-transform-=* \ 1139 | --program-transform=* | --program-transfor=* \ 1140 | --program-transfo=* | --program-transf=* \ 1141 | --program-trans=* | --program-tran=* \ 1142 | --progr-tra=* | --program-tr=* | --program-t=*) 1143 program_transform_name=$ac_optarg ;; 1144 1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1146 ac_prev=pdfdir ;; 1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1148 pdfdir=$ac_optarg ;; 1149 1150 -psdir | --psdir | --psdi | --psd | --ps) 1151 ac_prev=psdir ;; 1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1153 psdir=$ac_optarg ;; 1154 1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1156 | -silent | --silent | --silen | --sile | --sil) 1157 silent=yes ;; 1158 1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1160 ac_prev=sbindir ;; 1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1162 | --sbi=* | --sb=*) 1163 sbindir=$ac_optarg ;; 1164 1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1167 | --sharedst | --shareds | --shared | --share | --shar \ 1168 | --sha | --sh) 1169 ac_prev=sharedstatedir ;; 1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1173 | --sha=* | --sh=*) 1174 sharedstatedir=$ac_optarg ;; 1175 1176 -site | --site | --sit) 1177 ac_prev=site ;; 1178 -site=* | --site=* | --sit=*) 1179 site=$ac_optarg ;; 1180 1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1182 ac_prev=srcdir ;; 1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1184 srcdir=$ac_optarg ;; 1185 1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1187 | --syscon | --sysco | --sysc | --sys | --sy) 1188 ac_prev=sysconfdir ;; 1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1191 sysconfdir=$ac_optarg ;; 1192 1193 -target | --target | --targe | --targ | --tar | --ta | --t) 1194 ac_prev=target_alias ;; 1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1196 target_alias=$ac_optarg ;; 1197 1198 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1199 verbose=yes ;; 1200 1201 -version | --version | --versio | --versi | --vers | -V) 1202 ac_init_version=: ;; 1203 1204 -with-* | --with-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: $ac_useropt" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=\$ac_optarg ;; 1219 1220 -without-* | --without-*) 1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1224 as_fn_error $? "invalid package name: $ac_useropt" 1225 ac_useropt_orig=$ac_useropt 1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1227 case $ac_user_opts in 1228 *" 1229"with_$ac_useropt" 1230"*) ;; 1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1232 ac_unrecognized_sep=', ';; 1233 esac 1234 eval with_$ac_useropt=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1255Try \`$0 --help' for more information" 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 case $ac_envvar in #( 1262 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1264 esac 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 as_fn_error $? "missing argument to $ac_option" 1282fi 1283 1284if test -n "$ac_unrecognized_opts"; then 1285 case $enable_option_checking in 1286 no) ;; 1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1289 esac 1290fi 1291 1292# Check all directory arguments for consistency. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir 1297do 1298 eval ac_val=\$$ac_var 1299 # Remove trailing slashes. 1300 case $ac_val in 1301 */ ) 1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1303 eval $ac_var=\$ac_val;; 1304 esac 1305 # Be sure to have absolute directory names. 1306 case $ac_val in 1307 [\\/$]* | ?:[\\/]* ) continue;; 1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1309 esac 1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1311done 1312 1313# There might be people who depend on the old broken behavior: `$host' 1314# used to hold the argument of --host etc. 1315# FIXME: To remove some day. 1316build=$build_alias 1317host=$host_alias 1318target=$target_alias 1319 1320# FIXME: To remove some day. 1321if test "x$host_alias" != x; then 1322 if test "x$build_alias" = x; then 1323 cross_compiling=maybe 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 as_fn_error $? "working directory cannot be determined" 1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1340 as_fn_error $? "pwd does not report name of working directory" 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$as_myself" || 1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$as_myself" : 'X\(//\)[^/]' \| \ 1350 X"$as_myself" : 'X\(//\)$' \| \ 1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1352$as_echo X"$as_myself" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1380fi 1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1382ac_abs_confdir=`( 1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures eudev 3.2.10 to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking ...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/eudev] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of eudev 3.2.10:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-option-checking ignore unrecognized --enable/--with options 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --disable-largefile omit support for large files 1488 --enable-dependency-tracking 1489 do not reject slow dependency extractors 1490 --disable-dependency-tracking 1491 speeds up one-time build 1492 --enable-silent-rules less verbose build output (undo: "make V=1") 1493 --disable-silent-rules verbose build output (undo: "make V=0") 1494 --enable-shared[=PKGS] build shared libraries [default=yes] 1495 --enable-static[=PKGS] build static libraries [default=yes] 1496 --enable-fast-install[=PKGS] 1497 optimize for fast installation [default=yes] 1498 --disable-libtool-lock avoid locking (might break parallel builds) 1499 --enable-split-usr Include hard-coded default search paths in / and 1500 /usr 1501 --enable-introspection=[no/auto/yes] 1502 Enable introspection for this build 1503 --disable-programs disable programs (udevd, udevadm and helpers) 1504 --disable-blkid Disable optional blkid support 1505 --disable-selinux Disable optional SELINUX support 1506 --disable-manpages disable manpages 1507 --disable-kmod disable loadable modules support 1508 --enable-hwdb install hwdb.d files 1509 --enable-rule-generator enable legacy persistent network, cdrom support 1510 --disable-mtd_probe disable MTD support 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1516 both] 1517 --with-aix-soname=aix|svr4|both 1518 shared library versioning (aka "SONAME") variant to 1519 provide on AIX, [default=aix]. 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1522 compiler's sysroot if not specified). 1523 --with-rootprefix=DIR rootfs directory prefix for config files and kernel 1524 modules 1525 --with-rootlibdir=DIR Root directory for libraries necessary for boot 1526 --with-rootlibexecdir=DIR 1527 Root directory for libexecs necessary for boot 1528 --with-rootrundir=DIR Configurable path for /run 1529 1530Some influential environment variables: 1531 CC C compiler command 1532 CFLAGS C compiler flags 1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1534 nonstandard directory <lib dir> 1535 LIBS libraries to pass to the linker, e.g. -l<library> 1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1537 you have headers in a nonstandard directory <include dir> 1538 CPP C preprocessor 1539 LT_SYS_LIBRARY_PATH 1540 User-defined run-time library search path. 1541 CXX C++ compiler command 1542 CXXFLAGS C++ compiler flags 1543 CXXCPP C++ preprocessor 1544 PKG_CONFIG path to pkg-config utility 1545 PKG_CONFIG_PATH 1546 directories to add to pkg-config's search path 1547 PKG_CONFIG_LIBDIR 1548 path overriding pkg-config's built-in search path 1549 BLKID_CFLAGS 1550 C compiler flags for BLKID, overriding pkg-config 1551 BLKID_LIBS linker flags for BLKID, overriding pkg-config 1552 SELINUX_CFLAGS 1553 C compiler flags for SELINUX, overriding pkg-config 1554 SELINUX_LIBS 1555 linker flags for SELINUX, overriding pkg-config 1556 KMOD_CFLAGS C compiler flags for KMOD, overriding pkg-config 1557 KMOD_LIBS linker flags for KMOD, overriding pkg-config 1558 1559Use these variables to override the choices made by `configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <https://github.com/gentoo/eudev/issues>. 1563_ACEOF 1564ac_status=$? 1565fi 1566 1567if test "$ac_init_help" = "recursive"; then 1568 # If there are subdirs, report their specific --help. 1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1570 test -d "$ac_dir" || 1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1572 continue 1573 ac_builddir=. 1574 1575case "$ac_dir" in 1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577*) 1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1579 # A ".." for each directory in $ac_dir_suffix. 1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1581 case $ac_top_builddir_sub in 1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1584 esac ;; 1585esac 1586ac_abs_top_builddir=$ac_pwd 1587ac_abs_builddir=$ac_pwd$ac_dir_suffix 1588# for backward compatibility: 1589ac_top_builddir=$ac_top_build_prefix 1590 1591case $srcdir in 1592 .) # We are building in place. 1593 ac_srcdir=. 1594 ac_top_srcdir=$ac_top_builddir_sub 1595 ac_abs_top_srcdir=$ac_pwd ;; 1596 [\\/]* | ?:[\\/]* ) # Absolute name. 1597 ac_srcdir=$srcdir$ac_dir_suffix; 1598 ac_top_srcdir=$srcdir 1599 ac_abs_top_srcdir=$srcdir ;; 1600 *) # Relative name. 1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1602 ac_top_srcdir=$ac_top_build_prefix$srcdir 1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1604esac 1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1606 1607 cd "$ac_dir" || { ac_status=$?; continue; } 1608 # Check for guested configure. 1609 if test -f "$ac_srcdir/configure.gnu"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1612 elif test -f "$ac_srcdir/configure"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure" --help=recursive 1615 else 1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1617 fi || ac_status=$? 1618 cd "$ac_pwd" || { ac_status=$?; break; } 1619 done 1620fi 1621 1622test -n "$ac_init_help" && exit $ac_status 1623if $ac_init_version; then 1624 cat <<\_ACEOF 1625eudev configure 3.2.10 1626generated by GNU Autoconf 2.69 1627 1628Copyright (C) 2012 Free Software Foundation, Inc. 1629This configure script is free software; the Free Software Foundation 1630gives unlimited permission to copy, distribute and modify it. 1631_ACEOF 1632 exit 1633fi 1634 1635## ------------------------ ## 1636## Autoconf initialization. ## 1637## ------------------------ ## 1638 1639# ac_fn_c_try_compile LINENO 1640# -------------------------- 1641# Try to compile conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1646 if { { ac_try="$ac_compile" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_compile") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_compile 1676 1677# ac_fn_c_try_cpp LINENO 1678# ---------------------- 1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_cpp () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_cpp conftest.$ac_ext" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } > conftest.i && { 1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: failed program was:" >&5 1705sed 's/^/| /' conftest.$ac_ext >&5 1706 1707 ac_retval=1 1708fi 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_cpp 1713 1714# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1717# the include files in INCLUDES and setting the cache variable VAR 1718# accordingly. 1719ac_fn_c_check_header_mongrel () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if eval \${$3+:} false; then : 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724$as_echo_n "checking for $2... " >&6; } 1725if eval \${$3+:} false; then : 1726 $as_echo_n "(cached) " >&6 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731else 1732 # Is the header compilable? 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1734$as_echo_n "checking $2 usability... " >&6; } 1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 ac_header_compiler=yes 1742else 1743 ac_header_compiler=no 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1747$as_echo "$ac_header_compiler" >&6; } 1748 1749# Is the header present? 1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1751$as_echo_n "checking $2 presence... " >&6; } 1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_cpp "$LINENO"; then : 1757 ac_header_preproc=yes 1758else 1759 ac_header_preproc=no 1760fi 1761rm -f conftest.err conftest.i conftest.$ac_ext 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1763$as_echo "$ac_header_preproc" >&6; } 1764 1765# So? What about this header? 1766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1767 yes:no: ) 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1769$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1771$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1772 ;; 1773 no:yes:* ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1775$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1777$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1779$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1781$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1784( $as_echo "## ----------------------------------------------------- ## 1785## Report this to https://github.com/gentoo/eudev/issues ## 1786## ----------------------------------------------------- ##" 1787 ) | sed "s/^/$as_me: WARNING: /" >&2 1788 ;; 1789esac 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791$as_echo_n "checking for $2... " >&6; } 1792if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794else 1795 eval "$3=\$ac_header_compiler" 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800fi 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_header_mongrel 1804 1805# ac_fn_c_try_run LINENO 1806# ---------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1808# that executables *can* be run. 1809ac_fn_c_try_run () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1823 { { case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_try") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; }; }; then : 1833 ac_retval=0 1834else 1835 $as_echo "$as_me: program exited with status $ac_status" >&5 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=$ac_status 1840fi 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_run 1846 1847# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1848# ------------------------------------------------------- 1849# Tests whether HEADER exists and can be compiled using the include files in 1850# INCLUDES, setting the cache variable VAR accordingly. 1851ac_fn_c_check_header_compile () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855$as_echo_n "checking for $2... " >&6; } 1856if eval \${$3+:} false; then : 1857 $as_echo_n "(cached) " >&6 1858else 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860/* end confdefs.h. */ 1861$4 1862#include <$2> 1863_ACEOF 1864if ac_fn_c_try_compile "$LINENO"; then : 1865 eval "$3=yes" 1866else 1867 eval "$3=no" 1868fi 1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876} # ac_fn_c_check_header_compile 1877 1878# ac_fn_c_try_link LINENO 1879# ----------------------- 1880# Try to link conftest.$ac_ext, and return whether this succeeded. 1881ac_fn_c_try_link () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 rm -f conftest.$ac_objext conftest$ac_exeext 1885 if { { ac_try="$ac_link" 1886case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889esac 1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891$as_echo "$ac_try_echo"; } >&5 1892 (eval "$ac_link") 2>conftest.err 1893 ac_status=$? 1894 if test -s conftest.err; then 1895 grep -v '^ *+' conftest.err >conftest.er1 1896 cat conftest.er1 >&5 1897 mv -f conftest.er1 conftest.err 1898 fi 1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1900 test $ac_status = 0; } && { 1901 test -z "$ac_c_werror_flag" || 1902 test ! -s conftest.err 1903 } && test -s conftest$ac_exeext && { 1904 test "$cross_compiling" = yes || 1905 test -x conftest$ac_exeext 1906 }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913fi 1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1916 # interfere with the next link command; also delete a directory that is 1917 # left behind by Apple's compiler. We do this before executing the actions. 1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 as_fn_set_status $ac_retval 1921 1922} # ac_fn_c_try_link 1923 1924# ac_fn_c_check_func LINENO FUNC VAR 1925# ---------------------------------- 1926# Tests whether FUNC exists, setting the cache variable VAR accordingly 1927ac_fn_c_check_func () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931$as_echo_n "checking for $2... " >&6; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934else 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1939#define $2 innocuous_$2 1940 1941/* System header to define __stub macros and hopefully few prototypes, 1942 which can conflict with char $2 (); below. 1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1944 <limits.h> exists even on freestanding compilers. */ 1945 1946#ifdef __STDC__ 1947# include <limits.h> 1948#else 1949# include <assert.h> 1950#endif 1951 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main () 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO"; then : 1977 eval "$3=yes" 1978else 1979 eval "$3=no" 1980fi 1981rm -f core conftest.err conftest.$ac_objext \ 1982 conftest$ac_exeext conftest.$ac_ext 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_c_check_func 1990 1991# ac_fn_cxx_try_compile LINENO 1992# ---------------------------- 1993# Try to compile conftest.$ac_ext, and return whether this succeeded. 1994ac_fn_cxx_try_compile () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 rm -f conftest.$ac_objext 1998 if { { ac_try="$ac_compile" 1999case "(($ac_try" in 2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2001 *) ac_try_echo=$ac_try;; 2002esac 2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2004$as_echo "$ac_try_echo"; } >&5 2005 (eval "$ac_compile") 2>conftest.err 2006 ac_status=$? 2007 if test -s conftest.err; then 2008 grep -v '^ *+' conftest.err >conftest.er1 2009 cat conftest.er1 >&5 2010 mv -f conftest.er1 conftest.err 2011 fi 2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2013 test $ac_status = 0; } && { 2014 test -z "$ac_cxx_werror_flag" || 2015 test ! -s conftest.err 2016 } && test -s conftest.$ac_objext; then : 2017 ac_retval=0 2018else 2019 $as_echo "$as_me: failed program was:" >&5 2020sed 's/^/| /' conftest.$ac_ext >&5 2021 2022 ac_retval=1 2023fi 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2025 as_fn_set_status $ac_retval 2026 2027} # ac_fn_cxx_try_compile 2028 2029# ac_fn_cxx_try_cpp LINENO 2030# ------------------------ 2031# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2032ac_fn_cxx_try_cpp () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 if { { ac_try="$ac_cpp conftest.$ac_ext" 2036case "(($ac_try" in 2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2038 *) ac_try_echo=$ac_try;; 2039esac 2040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2041$as_echo "$ac_try_echo"; } >&5 2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2043 ac_status=$? 2044 if test -s conftest.err; then 2045 grep -v '^ *+' conftest.err >conftest.er1 2046 cat conftest.er1 >&5 2047 mv -f conftest.er1 conftest.err 2048 fi 2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2050 test $ac_status = 0; } > conftest.i && { 2051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2052 test ! -s conftest.err 2053 }; then : 2054 ac_retval=0 2055else 2056 $as_echo "$as_me: failed program was:" >&5 2057sed 's/^/| /' conftest.$ac_ext >&5 2058 2059 ac_retval=1 2060fi 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 as_fn_set_status $ac_retval 2063 2064} # ac_fn_cxx_try_cpp 2065 2066# ac_fn_cxx_try_link LINENO 2067# ------------------------- 2068# Try to link conftest.$ac_ext, and return whether this succeeded. 2069ac_fn_cxx_try_link () 2070{ 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 rm -f conftest.$ac_objext conftest$ac_exeext 2073 if { { ac_try="$ac_link" 2074case "(($ac_try" in 2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2076 *) ac_try_echo=$ac_try;; 2077esac 2078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2079$as_echo "$ac_try_echo"; } >&5 2080 (eval "$ac_link") 2>conftest.err 2081 ac_status=$? 2082 if test -s conftest.err; then 2083 grep -v '^ *+' conftest.err >conftest.er1 2084 cat conftest.er1 >&5 2085 mv -f conftest.er1 conftest.err 2086 fi 2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2088 test $ac_status = 0; } && { 2089 test -z "$ac_cxx_werror_flag" || 2090 test ! -s conftest.err 2091 } && test -s conftest$ac_exeext && { 2092 test "$cross_compiling" = yes || 2093 test -x conftest$ac_exeext 2094 }; then : 2095 ac_retval=0 2096else 2097 $as_echo "$as_me: failed program was:" >&5 2098sed 's/^/| /' conftest.$ac_ext >&5 2099 2100 ac_retval=1 2101fi 2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2104 # interfere with the next link command; also delete a directory that is 2105 # left behind by Apple's compiler. We do this before executing the actions. 2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 as_fn_set_status $ac_retval 2109 2110} # ac_fn_cxx_try_link 2111 2112# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2113# ------------------------------------------- 2114# Tests whether TYPE exists after having included INCLUDES, setting cache 2115# variable VAR accordingly. 2116ac_fn_c_check_type () 2117{ 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2120$as_echo_n "checking for $2... " >&6; } 2121if eval \${$3+:} false; then : 2122 $as_echo_n "(cached) " >&6 2123else 2124 eval "$3=no" 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131if (sizeof ($2)) 2132 return 0; 2133 ; 2134 return 0; 2135} 2136_ACEOF 2137if ac_fn_c_try_compile "$LINENO"; then : 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main () 2143{ 2144if (sizeof (($2))) 2145 return 0; 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150if ac_fn_c_try_compile "$LINENO"; then : 2151 2152else 2153 eval "$3=yes" 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158fi 2159eval ac_res=\$$3 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2161$as_echo "$ac_res" >&6; } 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2163 2164} # ac_fn_c_check_type 2165 2166# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2167# ---------------------------------------------------- 2168# Tries to find if the field MEMBER exists in type AGGR, after including 2169# INCLUDES, setting cache variable VAR accordingly. 2170ac_fn_c_check_member () 2171{ 2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2174$as_echo_n "checking for $2.$3... " >&6; } 2175if eval \${$4+:} false; then : 2176 $as_echo_n "(cached) " >&6 2177else 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$5 2181int 2182main () 2183{ 2184static $2 ac_aggr; 2185if (ac_aggr.$3) 2186return 0; 2187 ; 2188 return 0; 2189} 2190_ACEOF 2191if ac_fn_c_try_compile "$LINENO"; then : 2192 eval "$4=yes" 2193else 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195/* end confdefs.h. */ 2196$5 2197int 2198main () 2199{ 2200static $2 ac_aggr; 2201if (sizeof ac_aggr.$3) 2202return 0; 2203 ; 2204 return 0; 2205} 2206_ACEOF 2207if ac_fn_c_try_compile "$LINENO"; then : 2208 eval "$4=yes" 2209else 2210 eval "$4=no" 2211fi 2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215fi 2216eval ac_res=\$$4 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2218$as_echo "$ac_res" >&6; } 2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2220 2221} # ac_fn_c_check_member 2222 2223# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2224# --------------------------------------------- 2225# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2226# accordingly. 2227ac_fn_c_check_decl () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 as_decl_name=`echo $2|sed 's/ *(.*//'` 2231 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2233$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2234if eval \${$3+:} false; then : 2235 $as_echo_n "(cached) " >&6 2236else 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$4 2240int 2241main () 2242{ 2243#ifndef $as_decl_name 2244#ifdef __cplusplus 2245 (void) $as_decl_use; 2246#else 2247 (void) $as_decl_name; 2248#endif 2249#endif 2250 2251 ; 2252 return 0; 2253} 2254_ACEOF 2255if ac_fn_c_try_compile "$LINENO"; then : 2256 eval "$3=yes" 2257else 2258 eval "$3=no" 2259fi 2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2261fi 2262eval ac_res=\$$3 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2264$as_echo "$ac_res" >&6; } 2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2266 2267} # ac_fn_c_check_decl 2268 2269# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2270# -------------------------------------------- 2271# Tries to find the compile-time value of EXPR in a program that includes 2272# INCLUDES, setting VAR accordingly. Returns whether the value could be 2273# computed 2274ac_fn_c_compute_int () 2275{ 2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2277 if test "$cross_compiling" = yes; then 2278 # Depending upon the size, compute the lo and hi bounds. 2279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280/* end confdefs.h. */ 2281$4 2282int 2283main () 2284{ 2285static int test_array [1 - 2 * !(($2) >= 0)]; 2286test_array [0] = 0; 2287return test_array [0]; 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 ac_lo=0 ac_mid=0 2295 while :; do 2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2297/* end confdefs.h. */ 2298$4 2299int 2300main () 2301{ 2302static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2303test_array [0] = 0; 2304return test_array [0]; 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310if ac_fn_c_try_compile "$LINENO"; then : 2311 ac_hi=$ac_mid; break 2312else 2313 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2314 if test $ac_lo -le $ac_mid; then 2315 ac_lo= ac_hi= 2316 break 2317 fi 2318 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321 done 2322else 2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2324/* end confdefs.h. */ 2325$4 2326int 2327main () 2328{ 2329static int test_array [1 - 2 * !(($2) < 0)]; 2330test_array [0] = 0; 2331return test_array [0]; 2332 2333 ; 2334 return 0; 2335} 2336_ACEOF 2337if ac_fn_c_try_compile "$LINENO"; then : 2338 ac_hi=-1 ac_mid=-1 2339 while :; do 2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2341/* end confdefs.h. */ 2342$4 2343int 2344main () 2345{ 2346static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2347test_array [0] = 0; 2348return test_array [0]; 2349 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354if ac_fn_c_try_compile "$LINENO"; then : 2355 ac_lo=$ac_mid; break 2356else 2357 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2358 if test $ac_mid -le $ac_hi; then 2359 ac_lo= ac_hi= 2360 break 2361 fi 2362 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2363fi 2364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2365 done 2366else 2367 ac_lo= ac_hi= 2368fi 2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2370fi 2371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2372# Binary search between lo and hi bounds. 2373while test "x$ac_lo" != "x$ac_hi"; do 2374 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2376/* end confdefs.h. */ 2377$4 2378int 2379main () 2380{ 2381static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2382test_array [0] = 0; 2383return test_array [0]; 2384 2385 ; 2386 return 0; 2387} 2388_ACEOF 2389if ac_fn_c_try_compile "$LINENO"; then : 2390 ac_hi=$ac_mid 2391else 2392 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2393fi 2394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2395done 2396case $ac_lo in #(( 2397?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2398'') ac_retval=1 ;; 2399esac 2400 else 2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2402/* end confdefs.h. */ 2403$4 2404static long int longval () { return $2; } 2405static unsigned long int ulongval () { return $2; } 2406#include <stdio.h> 2407#include <stdlib.h> 2408int 2409main () 2410{ 2411 2412 FILE *f = fopen ("conftest.val", "w"); 2413 if (! f) 2414 return 1; 2415 if (($2) < 0) 2416 { 2417 long int i = longval (); 2418 if (i != ($2)) 2419 return 1; 2420 fprintf (f, "%ld", i); 2421 } 2422 else 2423 { 2424 unsigned long int i = ulongval (); 2425 if (i != ($2)) 2426 return 1; 2427 fprintf (f, "%lu", i); 2428 } 2429 /* Do not output a trailing newline, as this causes \r\n confusion 2430 on some platforms. */ 2431 return ferror (f) || fclose (f) != 0; 2432 2433 ; 2434 return 0; 2435} 2436_ACEOF 2437if ac_fn_c_try_run "$LINENO"; then : 2438 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2439else 2440 ac_retval=1 2441fi 2442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2443 conftest.$ac_objext conftest.beam conftest.$ac_ext 2444rm -f conftest.val 2445 2446 fi 2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2448 as_fn_set_status $ac_retval 2449 2450} # ac_fn_c_compute_int 2451cat >config.log <<_ACEOF 2452This file contains any messages produced by compilers while 2453running configure, to aid debugging if configure makes a mistake. 2454 2455It was created by eudev $as_me 3.2.10, which was 2456generated by GNU Autoconf 2.69. Invocation command line was 2457 2458 $ $0 $@ 2459 2460_ACEOF 2461exec 5>>config.log 2462{ 2463cat <<_ASUNAME 2464## --------- ## 2465## Platform. ## 2466## --------- ## 2467 2468hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2469uname -m = `(uname -m) 2>/dev/null || echo unknown` 2470uname -r = `(uname -r) 2>/dev/null || echo unknown` 2471uname -s = `(uname -s) 2>/dev/null || echo unknown` 2472uname -v = `(uname -v) 2>/dev/null || echo unknown` 2473 2474/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2475/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2476 2477/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2478/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2479/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2480/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2481/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2482/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2483/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2484 2485_ASUNAME 2486 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 $as_echo "PATH: $as_dir" 2493 done 2494IFS=$as_save_IFS 2495 2496} >&5 2497 2498cat >&5 <<_ACEOF 2499 2500 2501## ----------- ## 2502## Core tests. ## 2503## ----------- ## 2504 2505_ACEOF 2506 2507 2508# Keep a trace of the command line. 2509# Strip out --no-create and --no-recursion so they do not pile up. 2510# Strip out --silent because we don't want to record it for future runs. 2511# Also quote any args containing shell meta-characters. 2512# Make two passes to allow for proper duplicate-argument suppression. 2513ac_configure_args= 2514ac_configure_args0= 2515ac_configure_args1= 2516ac_must_keep_next=false 2517for ac_pass in 1 2 2518do 2519 for ac_arg 2520 do 2521 case $ac_arg in 2522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2524 | -silent | --silent | --silen | --sile | --sil) 2525 continue ;; 2526 *\'*) 2527 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2528 esac 2529 case $ac_pass in 2530 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2531 2) 2532 as_fn_append ac_configure_args1 " '$ac_arg'" 2533 if test $ac_must_keep_next = true; then 2534 ac_must_keep_next=false # Got value, back to normal. 2535 else 2536 case $ac_arg in 2537 *=* | --config-cache | -C | -disable-* | --disable-* \ 2538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2540 | -with-* | --with-* | -without-* | --without-* | --x) 2541 case "$ac_configure_args0 " in 2542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2543 esac 2544 ;; 2545 -* ) ac_must_keep_next=true ;; 2546 esac 2547 fi 2548 as_fn_append ac_configure_args " '$ac_arg'" 2549 ;; 2550 esac 2551 done 2552done 2553{ ac_configure_args0=; unset ac_configure_args0;} 2554{ ac_configure_args1=; unset ac_configure_args1;} 2555 2556# When interrupted or exit'd, cleanup temporary files, and complete 2557# config.log. We remove comments because anyway the quotes in there 2558# would cause problems or look ugly. 2559# WARNING: Use '\'' to represent an apostrophe within the trap. 2560# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2561trap 'exit_status=$? 2562 # Save into config.log some information that might help in debugging. 2563 { 2564 echo 2565 2566 $as_echo "## ---------------- ## 2567## Cache variables. ## 2568## ---------------- ##" 2569 echo 2570 # The following way of writing the cache mishandles newlines in values, 2571( 2572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2573 eval ac_val=\$$ac_var 2574 case $ac_val in #( 2575 *${as_nl}*) 2576 case $ac_var in #( 2577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2579 esac 2580 case $ac_var in #( 2581 _ | IFS | as_nl) ;; #( 2582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2583 *) { eval $ac_var=; unset $ac_var;} ;; 2584 esac ;; 2585 esac 2586 done 2587 (set) 2>&1 | 2588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2589 *${as_nl}ac_space=\ *) 2590 sed -n \ 2591 "s/'\''/'\''\\\\'\'''\''/g; 2592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2593 ;; #( 2594 *) 2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2596 ;; 2597 esac | 2598 sort 2599) 2600 echo 2601 2602 $as_echo "## ----------------- ## 2603## Output variables. ## 2604## ----------------- ##" 2605 echo 2606 for ac_var in $ac_subst_vars 2607 do 2608 eval ac_val=\$$ac_var 2609 case $ac_val in 2610 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2611 esac 2612 $as_echo "$ac_var='\''$ac_val'\''" 2613 done | sort 2614 echo 2615 2616 if test -n "$ac_subst_files"; then 2617 $as_echo "## ------------------- ## 2618## File substitutions. ## 2619## ------------------- ##" 2620 echo 2621 for ac_var in $ac_subst_files 2622 do 2623 eval ac_val=\$$ac_var 2624 case $ac_val in 2625 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2626 esac 2627 $as_echo "$ac_var='\''$ac_val'\''" 2628 done | sort 2629 echo 2630 fi 2631 2632 if test -s confdefs.h; then 2633 $as_echo "## ----------- ## 2634## confdefs.h. ## 2635## ----------- ##" 2636 echo 2637 cat confdefs.h 2638 echo 2639 fi 2640 test "$ac_signal" != 0 && 2641 $as_echo "$as_me: caught signal $ac_signal" 2642 $as_echo "$as_me: exit $exit_status" 2643 } >&5 2644 rm -f core *.core core.conftest.* && 2645 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2646 exit $exit_status 2647' 0 2648for ac_signal in 1 2 13 15; do 2649 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2650done 2651ac_signal=0 2652 2653# confdefs.h avoids OS command line length limits that DEFS can exceed. 2654rm -f -r conftest* confdefs.h 2655 2656$as_echo "/* confdefs.h */" > confdefs.h 2657 2658# Predefined preprocessor variables. 2659 2660cat >>confdefs.h <<_ACEOF 2661#define PACKAGE_NAME "$PACKAGE_NAME" 2662_ACEOF 2663 2664cat >>confdefs.h <<_ACEOF 2665#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2666_ACEOF 2667 2668cat >>confdefs.h <<_ACEOF 2669#define PACKAGE_VERSION "$PACKAGE_VERSION" 2670_ACEOF 2671 2672cat >>confdefs.h <<_ACEOF 2673#define PACKAGE_STRING "$PACKAGE_STRING" 2674_ACEOF 2675 2676cat >>confdefs.h <<_ACEOF 2677#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2678_ACEOF 2679 2680cat >>confdefs.h <<_ACEOF 2681#define PACKAGE_URL "$PACKAGE_URL" 2682_ACEOF 2683 2684 2685# Let the site file select an alternate cache file if it wants to. 2686# Prefer an explicitly selected file to automatically selected ones. 2687ac_site_file1=NONE 2688ac_site_file2=NONE 2689if test -n "$CONFIG_SITE"; then 2690 # We do not want a PATH search for config.site. 2691 case $CONFIG_SITE in #(( 2692 -*) ac_site_file1=./$CONFIG_SITE;; 2693 */*) ac_site_file1=$CONFIG_SITE;; 2694 *) ac_site_file1=./$CONFIG_SITE;; 2695 esac 2696elif test "x$prefix" != xNONE; then 2697 ac_site_file1=$prefix/share/config.site 2698 ac_site_file2=$prefix/etc/config.site 2699else 2700 ac_site_file1=$ac_default_prefix/share/config.site 2701 ac_site_file2=$ac_default_prefix/etc/config.site 2702fi 2703for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2704do 2705 test "x$ac_site_file" = xNONE && continue 2706 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2708$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2709 sed 's/^/| /' "$ac_site_file" >&5 2710 . "$ac_site_file" \ 2711 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2713as_fn_error $? "failed to load site script $ac_site_file 2714See \`config.log' for more details" "$LINENO" 5; } 2715 fi 2716done 2717 2718if test -r "$cache_file"; then 2719 # Some versions of bash will fail to source /dev/null (special files 2720 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2721 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2723$as_echo "$as_me: loading cache $cache_file" >&6;} 2724 case $cache_file in 2725 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2726 *) . "./$cache_file";; 2727 esac 2728 fi 2729else 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2731$as_echo "$as_me: creating cache $cache_file" >&6;} 2732 >$cache_file 2733fi 2734 2735as_fn_append ac_header_list " stdlib.h" 2736as_fn_append ac_header_list " unistd.h" 2737as_fn_append ac_header_list " sys/param.h" 2738# Check that the precious variables saved in the cache have kept the same 2739# value. 2740ac_cache_corrupted=false 2741for ac_var in $ac_precious_vars; do 2742 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2743 eval ac_new_set=\$ac_env_${ac_var}_set 2744 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2745 eval ac_new_val=\$ac_env_${ac_var}_value 2746 case $ac_old_set,$ac_new_set in 2747 set,) 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2749$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2750 ac_cache_corrupted=: ;; 2751 ,set) 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2753$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2754 ac_cache_corrupted=: ;; 2755 ,);; 2756 *) 2757 if test "x$ac_old_val" != "x$ac_new_val"; then 2758 # differences in whitespace do not lead to failure. 2759 ac_old_val_w=`echo x $ac_old_val` 2760 ac_new_val_w=`echo x $ac_new_val` 2761 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2763$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2764 ac_cache_corrupted=: 2765 else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2767$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2768 eval $ac_var=\$ac_old_val 2769 fi 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2771$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2773$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2774 fi;; 2775 esac 2776 # Pass precious variables to config.status. 2777 if test "$ac_new_set" = set; then 2778 case $ac_new_val in 2779 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2780 *) ac_arg=$ac_var=$ac_new_val ;; 2781 esac 2782 case " $ac_configure_args " in 2783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2784 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2785 esac 2786 fi 2787done 2788if $ac_cache_corrupted; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2792$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2793 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2794fi 2795## -------------------- ## 2796## Main body of script. ## 2797## -------------------- ## 2798 2799ac_ext=c 2800ac_cpp='$CPP $CPPFLAGS' 2801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2803ac_compiler_gnu=$ac_cv_c_compiler_gnu 2804 2805 2806UDEV_VERSION=243 2807 2808 2809 2810ac_aux_dir= 2811for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2812 if test -f "$ac_dir/install-sh"; then 2813 ac_aux_dir=$ac_dir 2814 ac_install_sh="$ac_aux_dir/install-sh -c" 2815 break 2816 elif test -f "$ac_dir/install.sh"; then 2817 ac_aux_dir=$ac_dir 2818 ac_install_sh="$ac_aux_dir/install.sh -c" 2819 break 2820 elif test -f "$ac_dir/shtool"; then 2821 ac_aux_dir=$ac_dir 2822 ac_install_sh="$ac_aux_dir/shtool install -c" 2823 break 2824 fi 2825done 2826if test -z "$ac_aux_dir"; then 2827 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2828fi 2829 2830# These three variables are undocumented and unsupported, 2831# and are intended to be withdrawn in a future Autoconf release. 2832# They can cause serious problems if a builder's source tree is in a directory 2833# whose full name contains unusual characters. 2834ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2835ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2836ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2837 2838 2839# Expand $ac_aux_dir to an absolute path. 2840am_aux_dir=`cd "$ac_aux_dir" && pwd` 2841 2842ac_ext=c 2843ac_cpp='$CPP $CPPFLAGS' 2844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2846ac_compiler_gnu=$ac_cv_c_compiler_gnu 2847if test -n "$ac_tool_prefix"; then 2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2849set dummy ${ac_tool_prefix}gcc; ac_word=$2 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2851$as_echo_n "checking for $ac_word... " >&6; } 2852if ${ac_cv_prog_CC+:} false; then : 2853 $as_echo_n "(cached) " >&6 2854else 2855 if test -n "$CC"; then 2856 ac_cv_prog_CC="$CC" # Let the user override the test. 2857else 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2865 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 break 2 2868 fi 2869done 2870 done 2871IFS=$as_save_IFS 2872 2873fi 2874fi 2875CC=$ac_cv_prog_CC 2876if test -n "$CC"; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2878$as_echo "$CC" >&6; } 2879else 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2881$as_echo "no" >&6; } 2882fi 2883 2884 2885fi 2886if test -z "$ac_cv_prog_CC"; then 2887 ac_ct_CC=$CC 2888 # Extract the first word of "gcc", so it can be a program name with args. 2889set dummy gcc; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_ac_ct_CC+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$ac_ct_CC"; then 2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 ac_cv_prog_ac_ct_CC="gcc" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915ac_ct_CC=$ac_cv_prog_ac_ct_CC 2916if test -n "$ac_ct_CC"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2918$as_echo "$ac_ct_CC" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 if test "x$ac_ct_CC" = x; then 2925 CC="" 2926 else 2927 case $cross_compiling:$ac_tool_warned in 2928yes:) 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2931ac_tool_warned=yes ;; 2932esac 2933 CC=$ac_ct_CC 2934 fi 2935else 2936 CC="$ac_cv_prog_CC" 2937fi 2938 2939if test -z "$CC"; then 2940 if test -n "$ac_tool_prefix"; then 2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2942set dummy ${ac_tool_prefix}cc; ac_word=$2 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2944$as_echo_n "checking for $ac_word... " >&6; } 2945if ${ac_cv_prog_CC+:} false; then : 2946 $as_echo_n "(cached) " >&6 2947else 2948 if test -n "$CC"; then 2949 ac_cv_prog_CC="$CC" # Let the user override the test. 2950else 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH 2953do 2954 IFS=$as_save_IFS 2955 test -z "$as_dir" && as_dir=. 2956 for ac_exec_ext in '' $ac_executable_extensions; do 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2958 ac_cv_prog_CC="${ac_tool_prefix}cc" 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962done 2963 done 2964IFS=$as_save_IFS 2965 2966fi 2967fi 2968CC=$ac_cv_prog_CC 2969if test -n "$CC"; then 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2971$as_echo "$CC" >&6; } 2972else 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2974$as_echo "no" >&6; } 2975fi 2976 2977 2978 fi 2979fi 2980if test -z "$CC"; then 2981 # Extract the first word of "cc", so it can be a program name with args. 2982set dummy cc; ac_word=$2 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984$as_echo_n "checking for $ac_word... " >&6; } 2985if ${ac_cv_prog_CC+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 if test -n "$CC"; then 2989 ac_cv_prog_CC="$CC" # Let the user override the test. 2990else 2991 ac_prog_rejected=no 2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993for as_dir in $PATH 2994do 2995 IFS=$as_save_IFS 2996 test -z "$as_dir" && as_dir=. 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3000 ac_prog_rejected=yes 3001 continue 3002 fi 3003 ac_cv_prog_CC="cc" 3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3005 break 2 3006 fi 3007done 3008 done 3009IFS=$as_save_IFS 3010 3011if test $ac_prog_rejected = yes; then 3012 # We found a bogon in the path, so make sure we never use it. 3013 set dummy $ac_cv_prog_CC 3014 shift 3015 if test $# != 0; then 3016 # We chose a different compiler from the bogus one. 3017 # However, it has the same basename, so the bogon will be chosen 3018 # first if we set CC to just the basename; use the full file name. 3019 shift 3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3021 fi 3022fi 3023fi 3024fi 3025CC=$ac_cv_prog_CC 3026if test -n "$CC"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3028$as_echo "$CC" >&6; } 3029else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032fi 3033 3034 3035fi 3036if test -z "$CC"; then 3037 if test -n "$ac_tool_prefix"; then 3038 for ac_prog in cl.exe 3039 do 3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3041set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3043$as_echo_n "checking for $ac_word... " >&6; } 3044if ${ac_cv_prog_CC+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 if test -n "$CC"; then 3048 ac_cv_prog_CC="$CC" # Let the user override the test. 3049else 3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062 done 3063IFS=$as_save_IFS 3064 3065fi 3066fi 3067CC=$ac_cv_prog_CC 3068if test -n "$CC"; then 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3070$as_echo "$CC" >&6; } 3071else 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073$as_echo "no" >&6; } 3074fi 3075 3076 3077 test -n "$CC" && break 3078 done 3079fi 3080if test -z "$CC"; then 3081 ac_ct_CC=$CC 3082 for ac_prog in cl.exe 3083do 3084 # Extract the first word of "$ac_prog", so it can be a program name with args. 3085set dummy $ac_prog; ac_word=$2 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3087$as_echo_n "checking for $ac_word... " >&6; } 3088if ${ac_cv_prog_ac_ct_CC+:} false; then : 3089 $as_echo_n "(cached) " >&6 3090else 3091 if test -n "$ac_ct_CC"; then 3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3093else 3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095for as_dir in $PATH 3096do 3097 IFS=$as_save_IFS 3098 test -z "$as_dir" && as_dir=. 3099 for ac_exec_ext in '' $ac_executable_extensions; do 3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3101 ac_cv_prog_ac_ct_CC="$ac_prog" 3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3103 break 2 3104 fi 3105done 3106 done 3107IFS=$as_save_IFS 3108 3109fi 3110fi 3111ac_ct_CC=$ac_cv_prog_ac_ct_CC 3112if test -n "$ac_ct_CC"; then 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3114$as_echo "$ac_ct_CC" >&6; } 3115else 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117$as_echo "no" >&6; } 3118fi 3119 3120 3121 test -n "$ac_ct_CC" && break 3122done 3123 3124 if test "x$ac_ct_CC" = x; then 3125 CC="" 3126 else 3127 case $cross_compiling:$ac_tool_warned in 3128yes:) 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3131ac_tool_warned=yes ;; 3132esac 3133 CC=$ac_ct_CC 3134 fi 3135fi 3136 3137fi 3138 3139 3140test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3142as_fn_error $? "no acceptable C compiler found in \$PATH 3143See \`config.log' for more details" "$LINENO" 5; } 3144 3145# Provide some information about the compiler. 3146$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3147set X $ac_compile 3148ac_compiler=$2 3149for ac_option in --version -v -V -qversion; do 3150 { { ac_try="$ac_compiler $ac_option >&5" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3156$as_echo "$ac_try_echo"; } >&5 3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3158 ac_status=$? 3159 if test -s conftest.err; then 3160 sed '10a\ 3161... rest of stderr output deleted ... 3162 10q' conftest.err >conftest.er1 3163 cat conftest.er1 >&5 3164 fi 3165 rm -f conftest.er1 conftest.err 3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; } 3168done 3169 3170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3171/* end confdefs.h. */ 3172 3173int 3174main () 3175{ 3176 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181ac_clean_files_save=$ac_clean_files 3182ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3183# Try to create an executable without -o first, disregard a.out. 3184# It will help us diagnose broken compilers, and finding out an intuition 3185# of exeext. 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3187$as_echo_n "checking whether the C compiler works... " >&6; } 3188ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3189 3190# The possible output files: 3191ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3192 3193ac_rmfiles= 3194for ac_file in $ac_files 3195do 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3199 esac 3200done 3201rm -f $ac_rmfiles 3202 3203if { { ac_try="$ac_link_default" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_link_default") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; then : 3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3216# in a Makefile. We should not override ac_cv_exeext if it was cached, 3217# so that the user can short-circuit this test for compilers unknown to 3218# Autoconf. 3219for ac_file in $ac_files '' 3220do 3221 test -f "$ac_file" || continue 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3224 ;; 3225 [ab].out ) 3226 # We found the default executable, but exeext='' is most 3227 # certainly right. 3228 break;; 3229 *.* ) 3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3231 then :; else 3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 fi 3234 # We set ac_cv_exeext here because the later test for it is not 3235 # safe: cross compilers may not add the suffix if given an `-o' 3236 # argument, so we may need to know it at that point already. 3237 # Even if this section looks crufty: it has the advantage of 3238 # actually working. 3239 break;; 3240 * ) 3241 break;; 3242 esac 3243done 3244test "$ac_cv_exeext" = no && ac_cv_exeext= 3245 3246else 3247 ac_file='' 3248fi 3249if test -z "$ac_file"; then : 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252$as_echo "$as_me: failed program was:" >&5 3253sed 's/^/| /' conftest.$ac_ext >&5 3254 3255{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3257as_fn_error 77 "C compiler cannot create executables 3258See \`config.log' for more details" "$LINENO" 5; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3261$as_echo "yes" >&6; } 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3264$as_echo_n "checking for C compiler default output file name... " >&6; } 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3266$as_echo "$ac_file" >&6; } 3267ac_exeext=$ac_cv_exeext 3268 3269rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3270ac_clean_files=$ac_clean_files_save 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3272$as_echo_n "checking for suffix of executables... " >&6; } 3273if { { ac_try="$ac_link" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279$as_echo "$ac_try_echo"; } >&5 3280 (eval "$ac_link") 2>&5 3281 ac_status=$? 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; }; then : 3284 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3285# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3286# work properly (i.e., refer to `conftest.exe'), while it won't with 3287# `rm'. 3288for ac_file in conftest.exe conftest conftest.*; do 3289 test -f "$ac_file" || continue 3290 case $ac_file in 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3293 break;; 3294 * ) break;; 3295 esac 3296done 3297else 3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3300as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3301See \`config.log' for more details" "$LINENO" 5; } 3302fi 3303rm -f conftest conftest$ac_cv_exeext 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3305$as_echo "$ac_cv_exeext" >&6; } 3306 3307rm -f conftest.$ac_ext 3308EXEEXT=$ac_cv_exeext 3309ac_exeext=$EXEEXT 3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312#include <stdio.h> 3313int 3314main () 3315{ 3316FILE *f = fopen ("conftest.out", "w"); 3317 return ferror (f) || fclose (f) != 0; 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323ac_clean_files="$ac_clean_files conftest.out" 3324# Check that the compiler produces executables we can run. If not, either 3325# the compiler is broken, or we cross compile. 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3327$as_echo_n "checking whether we are cross compiling... " >&6; } 3328if test "$cross_compiling" != yes; then 3329 { { ac_try="$ac_link" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3335$as_echo "$ac_try_echo"; } >&5 3336 (eval "$ac_link") 2>&5 3337 ac_status=$? 3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3339 test $ac_status = 0; } 3340 if { ac_try='./conftest$ac_cv_exeext' 3341 { { case "(($ac_try" in 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3343 *) ac_try_echo=$ac_try;; 3344esac 3345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3346$as_echo "$ac_try_echo"; } >&5 3347 (eval "$ac_try") 2>&5 3348 ac_status=$? 3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3350 test $ac_status = 0; }; }; then 3351 cross_compiling=no 3352 else 3353 if test "$cross_compiling" = maybe; then 3354 cross_compiling=yes 3355 else 3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "cannot run C compiled programs. 3359If you meant to cross compile, use \`--host'. 3360See \`config.log' for more details" "$LINENO" 5; } 3361 fi 3362 fi 3363fi 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3365$as_echo "$cross_compiling" >&6; } 3366 3367rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3368ac_clean_files=$ac_clean_files_save 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3370$as_echo_n "checking for suffix of object files... " >&6; } 3371if ${ac_cv_objext+:} false; then : 3372 $as_echo_n "(cached) " >&6 3373else 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377int 3378main () 3379{ 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385rm -f conftest.o conftest.obj 3386if { { ac_try="$ac_compile" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_compile") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; then : 3397 for ac_file in conftest.o conftest.obj conftest.*; do 3398 test -f "$ac_file" || continue; 3399 case $ac_file in 3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3402 break;; 3403 esac 3404done 3405else 3406 $as_echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3411as_fn_error $? "cannot compute suffix of object files: cannot compile 3412See \`config.log' for more details" "$LINENO" 5; } 3413fi 3414rm -f conftest.$ac_cv_objext conftest.$ac_ext 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3417$as_echo "$ac_cv_objext" >&6; } 3418OBJEXT=$ac_cv_objext 3419ac_objext=$OBJEXT 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3421$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3422if ${ac_cv_c_compiler_gnu+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431#ifndef __GNUC__ 3432 choke me 3433#endif 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO"; then : 3440 ac_compiler_gnu=yes 3441else 3442 ac_compiler_gnu=no 3443fi 3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3445ac_cv_c_compiler_gnu=$ac_compiler_gnu 3446 3447fi 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3449$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3450if test $ac_compiler_gnu = yes; then 3451 GCC=yes 3452else 3453 GCC= 3454fi 3455ac_test_CFLAGS=${CFLAGS+set} 3456ac_save_CFLAGS=$CFLAGS 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3458$as_echo_n "checking whether $CC accepts -g... " >&6; } 3459if ${ac_cv_prog_cc_g+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 ac_save_c_werror_flag=$ac_c_werror_flag 3463 ac_c_werror_flag=yes 3464 ac_cv_prog_cc_g=no 3465 CFLAGS="-g" 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468 3469int 3470main () 3471{ 3472 3473 ; 3474 return 0; 3475} 3476_ACEOF 3477if ac_fn_c_try_compile "$LINENO"; then : 3478 ac_cv_prog_cc_g=yes 3479else 3480 CFLAGS="" 3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483 3484int 3485main () 3486{ 3487 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492if ac_fn_c_try_compile "$LINENO"; then : 3493 3494else 3495 ac_c_werror_flag=$ac_save_c_werror_flag 3496 CFLAGS="-g" 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499 3500int 3501main () 3502{ 3503 3504 ; 3505 return 0; 3506} 3507_ACEOF 3508if ac_fn_c_try_compile "$LINENO"; then : 3509 ac_cv_prog_cc_g=yes 3510fi 3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3512fi 3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3514fi 3515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3516 ac_c_werror_flag=$ac_save_c_werror_flag 3517fi 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3519$as_echo "$ac_cv_prog_cc_g" >&6; } 3520if test "$ac_test_CFLAGS" = set; then 3521 CFLAGS=$ac_save_CFLAGS 3522elif test $ac_cv_prog_cc_g = yes; then 3523 if test "$GCC" = yes; then 3524 CFLAGS="-g -O2" 3525 else 3526 CFLAGS="-g" 3527 fi 3528else 3529 if test "$GCC" = yes; then 3530 CFLAGS="-O2" 3531 else 3532 CFLAGS= 3533 fi 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3536$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3537if ${ac_cv_prog_cc_c89+:} false; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 ac_cv_prog_cc_c89=no 3541ac_save_CC=$CC 3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544#include <stdarg.h> 3545#include <stdio.h> 3546struct stat; 3547/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3548struct buf { int x; }; 3549FILE * (*rcsopen) (struct buf *, struct stat *, int); 3550static char *e (p, i) 3551 char **p; 3552 int i; 3553{ 3554 return p[i]; 3555} 3556static char *f (char * (*g) (char **, int), char **p, ...) 3557{ 3558 char *s; 3559 va_list v; 3560 va_start (v,p); 3561 s = g (p, va_arg (v,int)); 3562 va_end (v); 3563 return s; 3564} 3565 3566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3567 function prototypes and stuff, but not '\xHH' hex character constants. 3568 These don't provoke an error unfortunately, instead are silently treated 3569 as 'x'. The following induces an error, until -std is added to get 3570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3571 array size at least. It's necessary to write '\x00'==0 to get something 3572 that's true only with -std. */ 3573int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3574 3575/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3576 inside strings and character constants. */ 3577#define FOO(x) 'x' 3578int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3579 3580int test (int i, double x); 3581struct s1 {int (*f) (int a);}; 3582struct s2 {int (*f) (double a);}; 3583int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3584int argc; 3585char **argv; 3586int 3587main () 3588{ 3589return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3590 ; 3591 return 0; 3592} 3593_ACEOF 3594for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3596do 3597 CC="$ac_save_CC $ac_arg" 3598 if ac_fn_c_try_compile "$LINENO"; then : 3599 ac_cv_prog_cc_c89=$ac_arg 3600fi 3601rm -f core conftest.err conftest.$ac_objext 3602 test "x$ac_cv_prog_cc_c89" != "xno" && break 3603done 3604rm -f conftest.$ac_ext 3605CC=$ac_save_CC 3606 3607fi 3608# AC_CACHE_VAL 3609case "x$ac_cv_prog_cc_c89" in 3610 x) 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3612$as_echo "none needed" >&6; } ;; 3613 xno) 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3615$as_echo "unsupported" >&6; } ;; 3616 *) 3617 CC="$CC $ac_cv_prog_cc_c89" 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3619$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3620esac 3621if test "x$ac_cv_prog_cc_c89" != xno; then : 3622 3623fi 3624 3625ac_ext=c 3626ac_cpp='$CPP $CPPFLAGS' 3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630 3631ac_ext=c 3632ac_cpp='$CPP $CPPFLAGS' 3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_compiler_gnu=$ac_cv_c_compiler_gnu 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3637$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3638if ${am_cv_prog_cc_c_o+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652 # Make sure it works both with $CC and with simple cc. 3653 # Following AC_PROG_CC_C_O, we do the test twice because some 3654 # compilers refuse to overwrite an existing .o file with -o, 3655 # though they will create one. 3656 am_cv_prog_cc_c_o=yes 3657 for am_i in 1 2; do 3658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3660 ac_status=$? 3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3662 (exit $ac_status); } \ 3663 && test -f conftest2.$ac_objext; then 3664 : OK 3665 else 3666 am_cv_prog_cc_c_o=no 3667 break 3668 fi 3669 done 3670 rm -f core conftest* 3671 unset am_i 3672fi 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3674$as_echo "$am_cv_prog_cc_c_o" >&6; } 3675if test "$am_cv_prog_cc_c_o" != yes; then 3676 # Losing compiler, so override with the script. 3677 # FIXME: It is wrong to rewrite CC. 3678 # But if we don't then we get into trouble of one sort or another. 3679 # A longer-term fix would be to have automake use am__CC in this case, 3680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3681 CC="$am_aux_dir/compile $CC" 3682fi 3683ac_ext=c 3684ac_cpp='$CPP $CPPFLAGS' 3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3687ac_compiler_gnu=$ac_cv_c_compiler_gnu 3688 3689 3690 3691ac_ext=c 3692ac_cpp='$CPP $CPPFLAGS' 3693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3695ac_compiler_gnu=$ac_cv_c_compiler_gnu 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3697$as_echo_n "checking how to run the C preprocessor... " >&6; } 3698# On Suns, sometimes $CPP names a directory. 3699if test -n "$CPP" && test -d "$CPP"; then 3700 CPP= 3701fi 3702if test -z "$CPP"; then 3703 if ${ac_cv_prog_CPP+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 # Double quotes because CPP needs to be expanded 3707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3708 do 3709 ac_preproc_ok=false 3710for ac_c_preproc_warn_flag in '' yes 3711do 3712 # Use a header file that comes with gcc, so configuring glibc 3713 # with a fresh cross-compiler works. 3714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3715 # <limits.h> exists even on freestanding compilers. 3716 # On the NeXT, cc -E runs the code through the compiler's parser, 3717 # not just through cpp. "Syntax error" is here to catch this case. 3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3719/* end confdefs.h. */ 3720#ifdef __STDC__ 3721# include <limits.h> 3722#else 3723# include <assert.h> 3724#endif 3725 Syntax error 3726_ACEOF 3727if ac_fn_c_try_cpp "$LINENO"; then : 3728 3729else 3730 # Broken: fails on valid input. 3731continue 3732fi 3733rm -f conftest.err conftest.i conftest.$ac_ext 3734 3735 # OK, works on sane cases. Now check whether nonexistent headers 3736 # can be detected and how. 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739#include <ac_nonexistent.h> 3740_ACEOF 3741if ac_fn_c_try_cpp "$LINENO"; then : 3742 # Broken: success on invalid input. 3743continue 3744else 3745 # Passes both tests. 3746ac_preproc_ok=: 3747break 3748fi 3749rm -f conftest.err conftest.i conftest.$ac_ext 3750 3751done 3752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3753rm -f conftest.i conftest.err conftest.$ac_ext 3754if $ac_preproc_ok; then : 3755 break 3756fi 3757 3758 done 3759 ac_cv_prog_CPP=$CPP 3760 3761fi 3762 CPP=$ac_cv_prog_CPP 3763else 3764 ac_cv_prog_CPP=$CPP 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3767$as_echo "$CPP" >&6; } 3768ac_preproc_ok=false 3769for ac_c_preproc_warn_flag in '' yes 3770do 3771 # Use a header file that comes with gcc, so configuring glibc 3772 # with a fresh cross-compiler works. 3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3774 # <limits.h> exists even on freestanding compilers. 3775 # On the NeXT, cc -E runs the code through the compiler's parser, 3776 # not just through cpp. "Syntax error" is here to catch this case. 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779#ifdef __STDC__ 3780# include <limits.h> 3781#else 3782# include <assert.h> 3783#endif 3784 Syntax error 3785_ACEOF 3786if ac_fn_c_try_cpp "$LINENO"; then : 3787 3788else 3789 # Broken: fails on valid input. 3790continue 3791fi 3792rm -f conftest.err conftest.i conftest.$ac_ext 3793 3794 # OK, works on sane cases. Now check whether nonexistent headers 3795 # can be detected and how. 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797/* end confdefs.h. */ 3798#include <ac_nonexistent.h> 3799_ACEOF 3800if ac_fn_c_try_cpp "$LINENO"; then : 3801 # Broken: success on invalid input. 3802continue 3803else 3804 # Passes both tests. 3805ac_preproc_ok=: 3806break 3807fi 3808rm -f conftest.err conftest.i conftest.$ac_ext 3809 3810done 3811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3812rm -f conftest.i conftest.err conftest.$ac_ext 3813if $ac_preproc_ok; then : 3814 3815else 3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3818as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3819See \`config.log' for more details" "$LINENO" 5; } 3820fi 3821 3822ac_ext=c 3823ac_cpp='$CPP $CPPFLAGS' 3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3826ac_compiler_gnu=$ac_cv_c_compiler_gnu 3827 3828 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3830$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3831if ${ac_cv_path_GREP+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 if test -z "$GREP"; then 3835 ac_path_GREP_found=false 3836 # Loop through the user's path and test for each of PROGNAME-LIST 3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3839do 3840 IFS=$as_save_IFS 3841 test -z "$as_dir" && as_dir=. 3842 for ac_prog in grep ggrep; do 3843 for ac_exec_ext in '' $ac_executable_extensions; do 3844 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3845 as_fn_executable_p "$ac_path_GREP" || continue 3846# Check for GNU ac_path_GREP and select it if it is found. 3847 # Check for GNU $ac_path_GREP 3848case `"$ac_path_GREP" --version 2>&1` in 3849*GNU*) 3850 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3851*) 3852 ac_count=0 3853 $as_echo_n 0123456789 >"conftest.in" 3854 while : 3855 do 3856 cat "conftest.in" "conftest.in" >"conftest.tmp" 3857 mv "conftest.tmp" "conftest.in" 3858 cp "conftest.in" "conftest.nl" 3859 $as_echo 'GREP' >> "conftest.nl" 3860 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3862 as_fn_arith $ac_count + 1 && ac_count=$as_val 3863 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3864 # Best one so far, save it but keep looking for a better one 3865 ac_cv_path_GREP="$ac_path_GREP" 3866 ac_path_GREP_max=$ac_count 3867 fi 3868 # 10*(2^10) chars as input seems more than enough 3869 test $ac_count -gt 10 && break 3870 done 3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3872esac 3873 3874 $ac_path_GREP_found && break 3 3875 done 3876 done 3877 done 3878IFS=$as_save_IFS 3879 if test -z "$ac_cv_path_GREP"; then 3880 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3881 fi 3882else 3883 ac_cv_path_GREP=$GREP 3884fi 3885 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3888$as_echo "$ac_cv_path_GREP" >&6; } 3889 GREP="$ac_cv_path_GREP" 3890 3891 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3893$as_echo_n "checking for egrep... " >&6; } 3894if ${ac_cv_path_EGREP+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3898 then ac_cv_path_EGREP="$GREP -E" 3899 else 3900 if test -z "$EGREP"; then 3901 ac_path_EGREP_found=false 3902 # Loop through the user's path and test for each of PROGNAME-LIST 3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for ac_prog in egrep; do 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3911 as_fn_executable_p "$ac_path_EGREP" || continue 3912# Check for GNU ac_path_EGREP and select it if it is found. 3913 # Check for GNU $ac_path_EGREP 3914case `"$ac_path_EGREP" --version 2>&1` in 3915*GNU*) 3916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3917*) 3918 ac_count=0 3919 $as_echo_n 0123456789 >"conftest.in" 3920 while : 3921 do 3922 cat "conftest.in" "conftest.in" >"conftest.tmp" 3923 mv "conftest.tmp" "conftest.in" 3924 cp "conftest.in" "conftest.nl" 3925 $as_echo 'EGREP' >> "conftest.nl" 3926 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3928 as_fn_arith $ac_count + 1 && ac_count=$as_val 3929 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3930 # Best one so far, save it but keep looking for a better one 3931 ac_cv_path_EGREP="$ac_path_EGREP" 3932 ac_path_EGREP_max=$ac_count 3933 fi 3934 # 10*(2^10) chars as input seems more than enough 3935 test $ac_count -gt 10 && break 3936 done 3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3938esac 3939 3940 $ac_path_EGREP_found && break 3 3941 done 3942 done 3943 done 3944IFS=$as_save_IFS 3945 if test -z "$ac_cv_path_EGREP"; then 3946 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3947 fi 3948else 3949 ac_cv_path_EGREP=$EGREP 3950fi 3951 3952 fi 3953fi 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3955$as_echo "$ac_cv_path_EGREP" >&6; } 3956 EGREP="$ac_cv_path_EGREP" 3957 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3960$as_echo_n "checking for ANSI C header files... " >&6; } 3961if ${ac_cv_header_stdc+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966#include <stdlib.h> 3967#include <stdarg.h> 3968#include <string.h> 3969#include <float.h> 3970 3971int 3972main () 3973{ 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979if ac_fn_c_try_compile "$LINENO"; then : 3980 ac_cv_header_stdc=yes 3981else 3982 ac_cv_header_stdc=no 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3985 3986if test $ac_cv_header_stdc = yes; then 3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990#include <string.h> 3991 3992_ACEOF 3993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3994 $EGREP "memchr" >/dev/null 2>&1; then : 3995 3996else 3997 ac_cv_header_stdc=no 3998fi 3999rm -f conftest* 4000 4001fi 4002 4003if test $ac_cv_header_stdc = yes; then 4004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007#include <stdlib.h> 4008 4009_ACEOF 4010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4011 $EGREP "free" >/dev/null 2>&1; then : 4012 4013else 4014 ac_cv_header_stdc=no 4015fi 4016rm -f conftest* 4017 4018fi 4019 4020if test $ac_cv_header_stdc = yes; then 4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4022 if test "$cross_compiling" = yes; then : 4023 : 4024else 4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4026/* end confdefs.h. */ 4027#include <ctype.h> 4028#include <stdlib.h> 4029#if ((' ' & 0x0FF) == 0x020) 4030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4032#else 4033# define ISLOWER(c) \ 4034 (('a' <= (c) && (c) <= 'i') \ 4035 || ('j' <= (c) && (c) <= 'r') \ 4036 || ('s' <= (c) && (c) <= 'z')) 4037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4038#endif 4039 4040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4041int 4042main () 4043{ 4044 int i; 4045 for (i = 0; i < 256; i++) 4046 if (XOR (islower (i), ISLOWER (i)) 4047 || toupper (i) != TOUPPER (i)) 4048 return 2; 4049 return 0; 4050} 4051_ACEOF 4052if ac_fn_c_try_run "$LINENO"; then : 4053 4054else 4055 ac_cv_header_stdc=no 4056fi 4057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4058 conftest.$ac_objext conftest.beam conftest.$ac_ext 4059fi 4060 4061fi 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4064$as_echo "$ac_cv_header_stdc" >&6; } 4065if test $ac_cv_header_stdc = yes; then 4066 4067$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4068 4069fi 4070 4071# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4072for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4073 inttypes.h stdint.h unistd.h 4074do : 4075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4077" 4078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4079 cat >>confdefs.h <<_ACEOF 4080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4081_ACEOF 4082 4083fi 4084 4085done 4086 4087 4088 4089 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4090if test "x$ac_cv_header_minix_config_h" = xyes; then : 4091 MINIX=yes 4092else 4093 MINIX= 4094fi 4095 4096 4097 if test "$MINIX" = yes; then 4098 4099$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4100 4101 4102$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4103 4104 4105$as_echo "#define _MINIX 1" >>confdefs.h 4106 4107 fi 4108 4109 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4111$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4112if ${ac_cv_safe_to_define___extensions__+:} false; then : 4113 $as_echo_n "(cached) " >&6 4114else 4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116/* end confdefs.h. */ 4117 4118# define __EXTENSIONS__ 1 4119 $ac_includes_default 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128if ac_fn_c_try_compile "$LINENO"; then : 4129 ac_cv_safe_to_define___extensions__=yes 4130else 4131 ac_cv_safe_to_define___extensions__=no 4132fi 4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4134fi 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4136$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4137 test $ac_cv_safe_to_define___extensions__ = yes && 4138 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4139 4140 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4141 4142 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4143 4144 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4145 4146 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4147 4148 4149# Check whether --enable-largefile was given. 4150if test "${enable_largefile+set}" = set; then : 4151 enableval=$enable_largefile; 4152fi 4153 4154if test "$enable_largefile" != no; then 4155 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4157$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4158if ${ac_cv_sys_largefile_CC+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160else 4161 ac_cv_sys_largefile_CC=no 4162 if test "$GCC" != yes; then 4163 ac_save_CC=$CC 4164 while :; do 4165 # IRIX 6.2 and later do not support large files by default, 4166 # so use the C compiler's -n32 option if that helps. 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168/* end confdefs.h. */ 4169#include <sys/types.h> 4170 /* Check that off_t can represent 2**63 - 1 correctly. 4171 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4172 since some C++ compilers masquerading as C compilers 4173 incorrectly reject 9223372036854775807. */ 4174#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4176 && LARGE_OFF_T % 2147483647 == 1) 4177 ? 1 : -1]; 4178int 4179main () 4180{ 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186 if ac_fn_c_try_compile "$LINENO"; then : 4187 break 4188fi 4189rm -f core conftest.err conftest.$ac_objext 4190 CC="$CC -n32" 4191 if ac_fn_c_try_compile "$LINENO"; then : 4192 ac_cv_sys_largefile_CC=' -n32'; break 4193fi 4194rm -f core conftest.err conftest.$ac_objext 4195 break 4196 done 4197 CC=$ac_save_CC 4198 rm -f conftest.$ac_ext 4199 fi 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4202$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4203 if test "$ac_cv_sys_largefile_CC" != no; then 4204 CC=$CC$ac_cv_sys_largefile_CC 4205 fi 4206 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4208$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4209if ${ac_cv_sys_file_offset_bits+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 while :; do 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214/* end confdefs.h. */ 4215#include <sys/types.h> 4216 /* Check that off_t can represent 2**63 - 1 correctly. 4217 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4218 since some C++ compilers masquerading as C compilers 4219 incorrectly reject 9223372036854775807. */ 4220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4222 && LARGE_OFF_T % 2147483647 == 1) 4223 ? 1 : -1]; 4224int 4225main () 4226{ 4227 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232if ac_fn_c_try_compile "$LINENO"; then : 4233 ac_cv_sys_file_offset_bits=no; break 4234fi 4235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#define _FILE_OFFSET_BITS 64 4239#include <sys/types.h> 4240 /* Check that off_t can represent 2**63 - 1 correctly. 4241 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4242 since some C++ compilers masquerading as C compilers 4243 incorrectly reject 9223372036854775807. */ 4244#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4246 && LARGE_OFF_T % 2147483647 == 1) 4247 ? 1 : -1]; 4248int 4249main () 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO"; then : 4257 ac_cv_sys_file_offset_bits=64; break 4258fi 4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4260 ac_cv_sys_file_offset_bits=unknown 4261 break 4262done 4263fi 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4265$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4266case $ac_cv_sys_file_offset_bits in #( 4267 no | unknown) ;; 4268 *) 4269cat >>confdefs.h <<_ACEOF 4270#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4271_ACEOF 4272;; 4273esac 4274rm -rf conftest* 4275 if test $ac_cv_sys_file_offset_bits = unknown; then 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4277$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4278if ${ac_cv_sys_large_files+:} false; then : 4279 $as_echo_n "(cached) " >&6 4280else 4281 while :; do 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284#include <sys/types.h> 4285 /* Check that off_t can represent 2**63 - 1 correctly. 4286 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4287 since some C++ compilers masquerading as C compilers 4288 incorrectly reject 9223372036854775807. */ 4289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4291 && LARGE_OFF_T % 2147483647 == 1) 4292 ? 1 : -1]; 4293int 4294main () 4295{ 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301if ac_fn_c_try_compile "$LINENO"; then : 4302 ac_cv_sys_large_files=no; break 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307#define _LARGE_FILES 1 4308#include <sys/types.h> 4309 /* Check that off_t can represent 2**63 - 1 correctly. 4310 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4311 since some C++ compilers masquerading as C compilers 4312 incorrectly reject 9223372036854775807. */ 4313#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4315 && LARGE_OFF_T % 2147483647 == 1) 4316 ? 1 : -1]; 4317int 4318main () 4319{ 4320 4321 ; 4322 return 0; 4323} 4324_ACEOF 4325if ac_fn_c_try_compile "$LINENO"; then : 4326 ac_cv_sys_large_files=1; break 4327fi 4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4329 ac_cv_sys_large_files=unknown 4330 break 4331done 4332fi 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4334$as_echo "$ac_cv_sys_large_files" >&6; } 4335case $ac_cv_sys_large_files in #( 4336 no | unknown) ;; 4337 *) 4338cat >>confdefs.h <<_ACEOF 4339#define _LARGE_FILES $ac_cv_sys_large_files 4340_ACEOF 4341;; 4342esac 4343rm -rf conftest* 4344 fi 4345 4346 4347fi 4348 4349 4350 4351 4352ac_config_headers="$ac_config_headers config.h" 4353 4354 4355am__api_version='1.16' 4356 4357# Find a good install program. We prefer a C program (faster), 4358# so one script is as good as another. But avoid the broken or 4359# incompatible versions: 4360# SysV /etc/install, /usr/sbin/install 4361# SunOS /usr/etc/install 4362# IRIX /sbin/install 4363# AIX /bin/install 4364# AmigaOS /C/install, which installs bootblocks on floppy discs 4365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4366# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4368# OS/2's system install, which has a completely different semantic 4369# ./install, which can be erroneously created by make from ./install.sh. 4370# Reject install programs that cannot install multiple files. 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4372$as_echo_n "checking for a BSD-compatible install... " >&6; } 4373if test -z "$INSTALL"; then 4374if ${ac_cv_path_install+:} false; then : 4375 $as_echo_n "(cached) " >&6 4376else 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 # Account for people who put trailing slashes in PATH elements. 4383case $as_dir/ in #(( 4384 ./ | .// | /[cC]/* | \ 4385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4387 /usr/ucb/* ) ;; 4388 *) 4389 # OSF1 and SCO ODT 3.0 have their own names for install. 4390 # Don't use installbsd from OSF since it installs stuff as root 4391 # by default. 4392 for ac_prog in ginstall scoinst install; do 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4395 if test $ac_prog = install && 4396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4397 # AIX install. It has an incompatible calling convention. 4398 : 4399 elif test $ac_prog = install && 4400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4401 # program-specific install script used by HP pwplus--don't use. 4402 : 4403 else 4404 rm -rf conftest.one conftest.two conftest.dir 4405 echo one > conftest.one 4406 echo two > conftest.two 4407 mkdir conftest.dir 4408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4409 test -s conftest.one && test -s conftest.two && 4410 test -s conftest.dir/conftest.one && 4411 test -s conftest.dir/conftest.two 4412 then 4413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4414 break 3 4415 fi 4416 fi 4417 fi 4418 done 4419 done 4420 ;; 4421esac 4422 4423 done 4424IFS=$as_save_IFS 4425 4426rm -rf conftest.one conftest.two conftest.dir 4427 4428fi 4429 if test "${ac_cv_path_install+set}" = set; then 4430 INSTALL=$ac_cv_path_install 4431 else 4432 # As a last resort, use the slow shell script. Don't cache a 4433 # value for INSTALL within a source directory, because that will 4434 # break other packages using the cache if that directory is 4435 # removed, or if the value is a relative name. 4436 INSTALL=$ac_install_sh 4437 fi 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4440$as_echo "$INSTALL" >&6; } 4441 4442# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4443# It thinks the first close brace ends the variable substitution. 4444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4445 4446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4447 4448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4451$as_echo_n "checking whether build environment is sane... " >&6; } 4452# Reject unsafe characters in $srcdir or the absolute working directory 4453# name. Accept space and tab only in the latter. 4454am_lf=' 4455' 4456case `pwd` in 4457 *[\\\"\#\$\&\'\`$am_lf]*) 4458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4459esac 4460case $srcdir in 4461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4463esac 4464 4465# Do 'set' in a subshell so we don't clobber the current shell's 4466# arguments. Must try -L first in case configure is actually a 4467# symlink; some systems play weird games with the mod time of symlinks 4468# (eg FreeBSD returns the mod time of the symlink's containing 4469# directory). 4470if ( 4471 am_has_slept=no 4472 for am_try in 1 2; do 4473 echo "timestamp, slept: $am_has_slept" > conftest.file 4474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4475 if test "$*" = "X"; then 4476 # -L didn't work. 4477 set X `ls -t "$srcdir/configure" conftest.file` 4478 fi 4479 if test "$*" != "X $srcdir/configure conftest.file" \ 4480 && test "$*" != "X conftest.file $srcdir/configure"; then 4481 4482 # If neither matched, then we have a broken ls. This can happen 4483 # if, for instance, CONFIG_SHELL is bash and it inherits a 4484 # broken ls alias from the environment. This has actually 4485 # happened. Such a system could not be considered "sane". 4486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4487 alias in your environment" "$LINENO" 5 4488 fi 4489 if test "$2" = conftest.file || test $am_try -eq 2; then 4490 break 4491 fi 4492 # Just in case. 4493 sleep 1 4494 am_has_slept=yes 4495 done 4496 test "$2" = conftest.file 4497 ) 4498then 4499 # Ok. 4500 : 4501else 4502 as_fn_error $? "newly created file is older than distributed files! 4503Check your system clock" "$LINENO" 5 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4506$as_echo "yes" >&6; } 4507# If we didn't sleep, we still need to ensure time stamps of config.status and 4508# generated files are strictly newer. 4509am_sleep_pid= 4510if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4511 ( sleep 1 ) & 4512 am_sleep_pid=$! 4513fi 4514 4515rm -f conftest.file 4516 4517test "$program_prefix" != NONE && 4518 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4519# Use a double $ so make ignores it. 4520test "$program_suffix" != NONE && 4521 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4522# Double any \ or $. 4523# By default was `s,x,x', remove it if useless. 4524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4526 4527if test x"${MISSING+set}" != xset; then 4528 case $am_aux_dir in 4529 *\ * | *\ *) 4530 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4531 *) 4532 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4533 esac 4534fi 4535# Use eval to expand $SHELL 4536if eval "$MISSING --is-lightweight"; then 4537 am_missing_run="$MISSING " 4538else 4539 am_missing_run= 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4541$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4542fi 4543 4544if test x"${install_sh+set}" != xset; then 4545 case $am_aux_dir in 4546 *\ * | *\ *) 4547 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4548 *) 4549 install_sh="\${SHELL} $am_aux_dir/install-sh" 4550 esac 4551fi 4552 4553# Installed binaries are usually stripped using 'strip' when the user 4554# run "make install-strip". However 'strip' might not be the right 4555# tool to use in cross-compilation environments, therefore Automake 4556# will honor the 'STRIP' environment variable to overrule this program. 4557if test "$cross_compiling" != no; then 4558 if test -n "$ac_tool_prefix"; then 4559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4560set dummy ${ac_tool_prefix}strip; ac_word=$2 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4562$as_echo_n "checking for $ac_word... " >&6; } 4563if ${ac_cv_prog_STRIP+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 if test -n "$STRIP"; then 4567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4568else 4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4570for as_dir in $PATH 4571do 4572 IFS=$as_save_IFS 4573 test -z "$as_dir" && as_dir=. 4574 for ac_exec_ext in '' $ac_executable_extensions; do 4575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4576 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4578 break 2 4579 fi 4580done 4581 done 4582IFS=$as_save_IFS 4583 4584fi 4585fi 4586STRIP=$ac_cv_prog_STRIP 4587if test -n "$STRIP"; then 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4589$as_echo "$STRIP" >&6; } 4590else 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4592$as_echo "no" >&6; } 4593fi 4594 4595 4596fi 4597if test -z "$ac_cv_prog_STRIP"; then 4598 ac_ct_STRIP=$STRIP 4599 # Extract the first word of "strip", so it can be a program name with args. 4600set dummy strip; ac_word=$2 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4602$as_echo_n "checking for $ac_word... " >&6; } 4603if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 if test -n "$ac_ct_STRIP"; then 4607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4608else 4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4616 ac_cv_prog_ac_ct_STRIP="strip" 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624fi 4625fi 4626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4627if test -n "$ac_ct_STRIP"; then 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4629$as_echo "$ac_ct_STRIP" >&6; } 4630else 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632$as_echo "no" >&6; } 4633fi 4634 4635 if test "x$ac_ct_STRIP" = x; then 4636 STRIP=":" 4637 else 4638 case $cross_compiling:$ac_tool_warned in 4639yes:) 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4642ac_tool_warned=yes ;; 4643esac 4644 STRIP=$ac_ct_STRIP 4645 fi 4646else 4647 STRIP="$ac_cv_prog_STRIP" 4648fi 4649 4650fi 4651INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4654$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4655if test -z "$MKDIR_P"; then 4656 if ${ac_cv_path_mkdir+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_prog in mkdir gmkdir; do 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4667 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4668 'mkdir (GNU coreutils) '* | \ 4669 'mkdir (coreutils) '* | \ 4670 'mkdir (fileutils) '4.1*) 4671 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4672 break 3;; 4673 esac 4674 done 4675 done 4676 done 4677IFS=$as_save_IFS 4678 4679fi 4680 4681 test -d ./--version && rmdir ./--version 4682 if test "${ac_cv_path_mkdir+set}" = set; then 4683 MKDIR_P="$ac_cv_path_mkdir -p" 4684 else 4685 # As a last resort, use the slow shell script. Don't cache a 4686 # value for MKDIR_P within a source directory, because that will 4687 # break other packages using the cache if that directory is 4688 # removed, or if the value is a relative name. 4689 MKDIR_P="$ac_install_sh -d" 4690 fi 4691fi 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4693$as_echo "$MKDIR_P" >&6; } 4694 4695for ac_prog in gawk mawk nawk awk 4696do 4697 # Extract the first word of "$ac_prog", so it can be a program name with args. 4698set dummy $ac_prog; ac_word=$2 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4700$as_echo_n "checking for $ac_word... " >&6; } 4701if ${ac_cv_prog_AWK+:} false; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 if test -n "$AWK"; then 4705 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4706else 4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4708for as_dir in $PATH 4709do 4710 IFS=$as_save_IFS 4711 test -z "$as_dir" && as_dir=. 4712 for ac_exec_ext in '' $ac_executable_extensions; do 4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4714 ac_cv_prog_AWK="$ac_prog" 4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718done 4719 done 4720IFS=$as_save_IFS 4721 4722fi 4723fi 4724AWK=$ac_cv_prog_AWK 4725if test -n "$AWK"; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4727$as_echo "$AWK" >&6; } 4728else 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730$as_echo "no" >&6; } 4731fi 4732 4733 4734 test -n "$AWK" && break 4735done 4736 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4738$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4739set x ${MAKE-make} 4740ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4741if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 cat >conftest.make <<\_ACEOF 4745SHELL = /bin/sh 4746all: 4747 @echo '@@@%%%=$(MAKE)=@@@%%%' 4748_ACEOF 4749# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4750case `${MAKE-make} -f conftest.make 2>/dev/null` in 4751 *@@@%%%=?*=@@@%%%*) 4752 eval ac_cv_prog_make_${ac_make}_set=yes;; 4753 *) 4754 eval ac_cv_prog_make_${ac_make}_set=no;; 4755esac 4756rm -f conftest.make 4757fi 4758if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4760$as_echo "yes" >&6; } 4761 SET_MAKE= 4762else 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4764$as_echo "no" >&6; } 4765 SET_MAKE="MAKE=${MAKE-make}" 4766fi 4767 4768rm -rf .tst 2>/dev/null 4769mkdir .tst 2>/dev/null 4770if test -d .tst; then 4771 am__leading_dot=. 4772else 4773 am__leading_dot=_ 4774fi 4775rmdir .tst 2>/dev/null 4776 4777DEPDIR="${am__leading_dot}deps" 4778 4779ac_config_commands="$ac_config_commands depfiles" 4780 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4782$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4783cat > confinc.mk << 'END' 4784am__doit: 4785 @echo this is the am__doit target >confinc.out 4786.PHONY: am__doit 4787END 4788am__include="#" 4789am__quote= 4790# BSD make does it like this. 4791echo '.include "confinc.mk" # ignored' > confmf.BSD 4792# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4793echo 'include confinc.mk # ignored' > confmf.GNU 4794_am_result=no 4795for s in GNU BSD; do 4796 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4797 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4798 ac_status=$? 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); } 4801 case $?:`cat confinc.out 2>/dev/null` in #( 4802 '0:this is the am__doit target') : 4803 case $s in #( 4804 BSD) : 4805 am__include='.include' am__quote='"' ;; #( 4806 *) : 4807 am__include='include' am__quote='' ;; 4808esac ;; #( 4809 *) : 4810 ;; 4811esac 4812 if test "$am__include" != "#"; then 4813 _am_result="yes ($s style)" 4814 break 4815 fi 4816done 4817rm -f confinc.* confmf.* 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4819$as_echo "${_am_result}" >&6; } 4820 4821# Check whether --enable-dependency-tracking was given. 4822if test "${enable_dependency_tracking+set}" = set; then : 4823 enableval=$enable_dependency_tracking; 4824fi 4825 4826if test "x$enable_dependency_tracking" != xno; then 4827 am_depcomp="$ac_aux_dir/depcomp" 4828 AMDEPBACKSLASH='\' 4829 am__nodep='_no' 4830fi 4831 if test "x$enable_dependency_tracking" != xno; then 4832 AMDEP_TRUE= 4833 AMDEP_FALSE='#' 4834else 4835 AMDEP_TRUE='#' 4836 AMDEP_FALSE= 4837fi 4838 4839 4840# Check whether --enable-silent-rules was given. 4841if test "${enable_silent_rules+set}" = set; then : 4842 enableval=$enable_silent_rules; 4843fi 4844 4845case $enable_silent_rules in # ((( 4846 yes) AM_DEFAULT_VERBOSITY=0;; 4847 no) AM_DEFAULT_VERBOSITY=1;; 4848 *) AM_DEFAULT_VERBOSITY=1;; 4849esac 4850am_make=${MAKE-make} 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4852$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4853if ${am_cv_make_support_nested_variables+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 if $as_echo 'TRUE=$(BAR$(V)) 4857BAR0=false 4858BAR1=true 4859V=1 4860am__doit: 4861 @$(TRUE) 4862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4863 am_cv_make_support_nested_variables=yes 4864else 4865 am_cv_make_support_nested_variables=no 4866fi 4867fi 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4869$as_echo "$am_cv_make_support_nested_variables" >&6; } 4870if test $am_cv_make_support_nested_variables = yes; then 4871 AM_V='$(V)' 4872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4873else 4874 AM_V=$AM_DEFAULT_VERBOSITY 4875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4876fi 4877AM_BACKSLASH='\' 4878 4879if test "`cd $srcdir && pwd`" != "`pwd`"; then 4880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4881 # is not polluted with repeated "-I." 4882 am__isrc=' -I$(srcdir)' 4883 # test to see if srcdir already configured 4884 if test -f $srcdir/config.status; then 4885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4886 fi 4887fi 4888 4889# test whether we have cygpath 4890if test -z "$CYGPATH_W"; then 4891 if (cygpath --version) >/dev/null 2>/dev/null; then 4892 CYGPATH_W='cygpath -w' 4893 else 4894 CYGPATH_W=echo 4895 fi 4896fi 4897 4898 4899# Define the identity of the package. 4900 PACKAGE='eudev' 4901 VERSION='3.2.10' 4902 4903 4904cat >>confdefs.h <<_ACEOF 4905#define PACKAGE "$PACKAGE" 4906_ACEOF 4907 4908 4909cat >>confdefs.h <<_ACEOF 4910#define VERSION "$VERSION" 4911_ACEOF 4912 4913# Some tools Automake needs. 4914 4915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4916 4917 4918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4919 4920 4921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4922 4923 4924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4925 4926 4927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4928 4929# For better backward compatibility. To be removed once Automake 1.9.x 4930# dies out for good. For more background, see: 4931# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4932# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4933mkdir_p='$(MKDIR_P)' 4934 4935# We need awk for the "check" target (and possibly the TAP driver). The 4936# system "awk" is bad on some platforms. 4937# Always define AMTAR for backward compatibility. Yes, it's still used 4938# in the wild :-( We should find a proper way to deprecate it ... 4939AMTAR='$${TAR-tar}' 4940 4941 4942# We'll loop over all known methods to create a tar archive until one works. 4943_am_tools='gnutar pax cpio none' 4944 4945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4946 4947 4948 4949 4950 4951depcc="$CC" am_compiler_list= 4952 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4954$as_echo_n "checking dependency style of $depcc... " >&6; } 4955if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4959 # We make a subdir and do the tests there. Otherwise we can end up 4960 # making bogus files that we don't know about and never remove. For 4961 # instance it was reported that on HP-UX the gcc test will end up 4962 # making a dummy file named 'D' -- because '-MD' means "put the output 4963 # in D". 4964 rm -rf conftest.dir 4965 mkdir conftest.dir 4966 # Copy depcomp to subdir because otherwise we won't find it if we're 4967 # using a relative directory. 4968 cp "$am_depcomp" conftest.dir 4969 cd conftest.dir 4970 # We will build objects and dependencies in a subdirectory because 4971 # it helps to detect inapplicable dependency modes. For instance 4972 # both Tru64's cc and ICC support -MD to output dependencies as a 4973 # side effect of compilation, but ICC will put the dependencies in 4974 # the current directory while Tru64 will put them in the object 4975 # directory. 4976 mkdir sub 4977 4978 am_cv_CC_dependencies_compiler_type=none 4979 if test "$am_compiler_list" = ""; then 4980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4981 fi 4982 am__universal=false 4983 case " $depcc " in #( 4984 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4985 esac 4986 4987 for depmode in $am_compiler_list; do 4988 # Setup a source with many dependencies, because some compilers 4989 # like to wrap large dependency lists on column 80 (with \), and 4990 # we should not choose a depcomp mode which is confused by this. 4991 # 4992 # We need to recreate these files for each test, as the compiler may 4993 # overwrite some of them when testing with obscure command lines. 4994 # This happens at least with the AIX C compiler. 4995 : > sub/conftest.c 4996 for i in 1 2 3 4 5 6; do 4997 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4998 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4999 # Solaris 10 /bin/sh. 5000 echo '/* dummy */' > sub/conftst$i.h 5001 done 5002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5003 5004 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5005 # mode. It turns out that the SunPro C++ compiler does not properly 5006 # handle '-M -o', and we need to detect this. Also, some Intel 5007 # versions had trouble with output in subdirs. 5008 am__obj=sub/conftest.${OBJEXT-o} 5009 am__minus_obj="-o $am__obj" 5010 case $depmode in 5011 gcc) 5012 # This depmode causes a compiler race in universal mode. 5013 test "$am__universal" = false || continue 5014 ;; 5015 nosideeffect) 5016 # After this tag, mechanisms are not by side-effect, so they'll 5017 # only be used when explicitly requested. 5018 if test "x$enable_dependency_tracking" = xyes; then 5019 continue 5020 else 5021 break 5022 fi 5023 ;; 5024 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5025 # This compiler won't grok '-c -o', but also, the minuso test has 5026 # not run yet. These depmodes are late enough in the game, and 5027 # so weak that their functioning should not be impacted. 5028 am__obj=conftest.${OBJEXT-o} 5029 am__minus_obj= 5030 ;; 5031 none) break ;; 5032 esac 5033 if depmode=$depmode \ 5034 source=sub/conftest.c object=$am__obj \ 5035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5037 >/dev/null 2>conftest.err && 5038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5042 # icc doesn't choke on unknown options, it will just issue warnings 5043 # or remarks (even with -Werror). So we grep stderr for any message 5044 # that says an option was ignored or not supported. 5045 # When given -MP, icc 7.0 and 7.1 complain thusly: 5046 # icc: Command line warning: ignoring option '-M'; no argument required 5047 # The diagnosis changed in icc 8.0: 5048 # icc: Command line remark: option '-MP' not supported 5049 if (grep 'ignoring option' conftest.err || 5050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5051 am_cv_CC_dependencies_compiler_type=$depmode 5052 break 5053 fi 5054 fi 5055 done 5056 5057 cd .. 5058 rm -rf conftest.dir 5059else 5060 am_cv_CC_dependencies_compiler_type=none 5061fi 5062 5063fi 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5065$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5066CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5067 5068 if 5069 test "x$enable_dependency_tracking" != xno \ 5070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5071 am__fastdepCC_TRUE= 5072 am__fastdepCC_FALSE='#' 5073else 5074 am__fastdepCC_TRUE='#' 5075 am__fastdepCC_FALSE= 5076fi 5077 5078 5079 5080# POSIX will say in a future version that running "rm -f" with no argument 5081# is OK; and we want to be able to make that assumption in our Makefile 5082# recipes. So use an aggressive probe to check that the usage we want is 5083# actually supported "in the wild" to an acceptable degree. 5084# See automake bug#10828. 5085# To make any issue more visible, cause the running configure to be aborted 5086# by default if the 'rm' program in use doesn't match our expectations; the 5087# user can still override this though. 5088if rm -f && rm -fr && rm -rf; then : OK; else 5089 cat >&2 <<'END' 5090Oops! 5091 5092Your 'rm' program seems unable to run without file operands specified 5093on the command line, even when the '-f' option is present. This is contrary 5094to the behaviour of most rm programs out there, and not conforming with 5095the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5096 5097Please tell bug-automake@gnu.org about your system, including the value 5098of your $PATH and any error possibly output before this message. This 5099can help us improve future automake versions. 5100 5101END 5102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5103 echo 'Configuration will proceed anyway, since you have set the' >&2 5104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5105 echo >&2 5106 else 5107 cat >&2 <<'END' 5108Aborting the configuration process, to ensure you take notice of the issue. 5109 5110You can download and install GNU coreutils to get an 'rm' implementation 5111that behaves properly: <https://www.gnu.org/software/coreutils/>. 5112 5113If you want to complete the configuration process using your problematic 5114'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5115to "yes", and re-run configure. 5116 5117END 5118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5119 fi 5120fi 5121 5122# Check whether --enable-silent-rules was given. 5123if test "${enable_silent_rules+set}" = set; then : 5124 enableval=$enable_silent_rules; 5125fi 5126 5127case $enable_silent_rules in # ((( 5128 yes) AM_DEFAULT_VERBOSITY=0;; 5129 no) AM_DEFAULT_VERBOSITY=1;; 5130 *) AM_DEFAULT_VERBOSITY=0;; 5131esac 5132am_make=${MAKE-make} 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5134$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 5135if ${am_cv_make_support_nested_variables+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if $as_echo 'TRUE=$(BAR$(V)) 5139BAR0=false 5140BAR1=true 5141V=1 5142am__doit: 5143 @$(TRUE) 5144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5145 am_cv_make_support_nested_variables=yes 5146else 5147 am_cv_make_support_nested_variables=no 5148fi 5149fi 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5151$as_echo "$am_cv_make_support_nested_variables" >&6; } 5152if test $am_cv_make_support_nested_variables = yes; then 5153 AM_V='$(V)' 5154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 5155else 5156 AM_V=$AM_DEFAULT_VERBOSITY 5157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 5158fi 5159AM_BACKSLASH='\' 5160 5161 5162 5163case `pwd` in 5164 *\ * | *\ *) 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5166$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5167esac 5168 5169 5170 5171macro_version='2.4.6' 5172macro_revision='2.4.6' 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186ltmain=$ac_aux_dir/ltmain.sh 5187 5188# Make sure we can run config.sub. 5189$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5190 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5191 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5193$as_echo_n "checking build system type... " >&6; } 5194if ${ac_cv_build+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 ac_build_alias=$build_alias 5198test "x$ac_build_alias" = x && 5199 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5200test "x$ac_build_alias" = x && 5201 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5202ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5204 5205fi 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5207$as_echo "$ac_cv_build" >&6; } 5208case $ac_cv_build in 5209*-*-*) ;; 5210*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5211esac 5212build=$ac_cv_build 5213ac_save_IFS=$IFS; IFS='-' 5214set x $ac_cv_build 5215shift 5216build_cpu=$1 5217build_vendor=$2 5218shift; shift 5219# Remember, the first character of IFS is used to create $*, 5220# except with old shells: 5221build_os=$* 5222IFS=$ac_save_IFS 5223case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5224 5225 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5227$as_echo_n "checking host system type... " >&6; } 5228if ${ac_cv_host+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 if test "x$host_alias" = x; then 5232 ac_cv_host=$ac_cv_build 5233else 5234 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5236fi 5237 5238fi 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5240$as_echo "$ac_cv_host" >&6; } 5241case $ac_cv_host in 5242*-*-*) ;; 5243*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5244esac 5245host=$ac_cv_host 5246ac_save_IFS=$IFS; IFS='-' 5247set x $ac_cv_host 5248shift 5249host_cpu=$1 5250host_vendor=$2 5251shift; shift 5252# Remember, the first character of IFS is used to create $*, 5253# except with old shells: 5254host_os=$* 5255IFS=$ac_save_IFS 5256case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5257 5258 5259# Backslashify metacharacters that are still active within 5260# double-quoted strings. 5261sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5262 5263# Same as above, but do not quote variable references. 5264double_quote_subst='s/\(["`\\]\)/\\\1/g' 5265 5266# Sed substitution to delay expansion of an escaped shell variable in a 5267# double_quote_subst'ed string. 5268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5269 5270# Sed substitution to delay expansion of an escaped single quote. 5271delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5272 5273# Sed substitution to avoid accidental globbing in evaled expressions 5274no_glob_subst='s/\*/\\\*/g' 5275 5276ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5278ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5281$as_echo_n "checking how to print strings... " >&6; } 5282# Test print first, because it will be a builtin if present. 5283if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5285 ECHO='print -r --' 5286elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5287 ECHO='printf %s\n' 5288else 5289 # Use this function as a fallback that always works. 5290 func_fallback_echo () 5291 { 5292 eval 'cat <<_LTECHO_EOF 5293$1 5294_LTECHO_EOF' 5295 } 5296 ECHO='func_fallback_echo' 5297fi 5298 5299# func_echo_all arg... 5300# Invoke $ECHO with all args, space-separated. 5301func_echo_all () 5302{ 5303 $ECHO "" 5304} 5305 5306case $ECHO in 5307 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5308$as_echo "printf" >&6; } ;; 5309 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5310$as_echo "print -r" >&6; } ;; 5311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5312$as_echo "cat" >&6; } ;; 5313esac 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5329$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5330if ${ac_cv_path_SED+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5334 for ac_i in 1 2 3 4 5 6 7; do 5335 ac_script="$ac_script$as_nl$ac_script" 5336 done 5337 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5338 { ac_script=; unset ac_script;} 5339 if test -z "$SED"; then 5340 ac_path_SED_found=false 5341 # Loop through the user's path and test for each of PROGNAME-LIST 5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5343for as_dir in $PATH 5344do 5345 IFS=$as_save_IFS 5346 test -z "$as_dir" && as_dir=. 5347 for ac_prog in sed gsed; do 5348 for ac_exec_ext in '' $ac_executable_extensions; do 5349 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5350 as_fn_executable_p "$ac_path_SED" || continue 5351# Check for GNU ac_path_SED and select it if it is found. 5352 # Check for GNU $ac_path_SED 5353case `"$ac_path_SED" --version 2>&1` in 5354*GNU*) 5355 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5356*) 5357 ac_count=0 5358 $as_echo_n 0123456789 >"conftest.in" 5359 while : 5360 do 5361 cat "conftest.in" "conftest.in" >"conftest.tmp" 5362 mv "conftest.tmp" "conftest.in" 5363 cp "conftest.in" "conftest.nl" 5364 $as_echo '' >> "conftest.nl" 5365 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5367 as_fn_arith $ac_count + 1 && ac_count=$as_val 5368 if test $ac_count -gt ${ac_path_SED_max-0}; then 5369 # Best one so far, save it but keep looking for a better one 5370 ac_cv_path_SED="$ac_path_SED" 5371 ac_path_SED_max=$ac_count 5372 fi 5373 # 10*(2^10) chars as input seems more than enough 5374 test $ac_count -gt 10 && break 5375 done 5376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5377esac 5378 5379 $ac_path_SED_found && break 3 5380 done 5381 done 5382 done 5383IFS=$as_save_IFS 5384 if test -z "$ac_cv_path_SED"; then 5385 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5386 fi 5387else 5388 ac_cv_path_SED=$SED 5389fi 5390 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5393$as_echo "$ac_cv_path_SED" >&6; } 5394 SED="$ac_cv_path_SED" 5395 rm -f conftest.sed 5396 5397test -z "$SED" && SED=sed 5398Xsed="$SED -e 1s/^X//" 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5411$as_echo_n "checking for fgrep... " >&6; } 5412if ${ac_cv_path_FGREP+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5416 then ac_cv_path_FGREP="$GREP -F" 5417 else 5418 if test -z "$FGREP"; then 5419 ac_path_FGREP_found=false 5420 # Loop through the user's path and test for each of PROGNAME-LIST 5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5423do 5424 IFS=$as_save_IFS 5425 test -z "$as_dir" && as_dir=. 5426 for ac_prog in fgrep; do 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5429 as_fn_executable_p "$ac_path_FGREP" || continue 5430# Check for GNU ac_path_FGREP and select it if it is found. 5431 # Check for GNU $ac_path_FGREP 5432case `"$ac_path_FGREP" --version 2>&1` in 5433*GNU*) 5434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5435*) 5436 ac_count=0 5437 $as_echo_n 0123456789 >"conftest.in" 5438 while : 5439 do 5440 cat "conftest.in" "conftest.in" >"conftest.tmp" 5441 mv "conftest.tmp" "conftest.in" 5442 cp "conftest.in" "conftest.nl" 5443 $as_echo 'FGREP' >> "conftest.nl" 5444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5446 as_fn_arith $ac_count + 1 && ac_count=$as_val 5447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5448 # Best one so far, save it but keep looking for a better one 5449 ac_cv_path_FGREP="$ac_path_FGREP" 5450 ac_path_FGREP_max=$ac_count 5451 fi 5452 # 10*(2^10) chars as input seems more than enough 5453 test $ac_count -gt 10 && break 5454 done 5455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5456esac 5457 5458 $ac_path_FGREP_found && break 3 5459 done 5460 done 5461 done 5462IFS=$as_save_IFS 5463 if test -z "$ac_cv_path_FGREP"; then 5464 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5465 fi 5466else 5467 ac_cv_path_FGREP=$FGREP 5468fi 5469 5470 fi 5471fi 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5473$as_echo "$ac_cv_path_FGREP" >&6; } 5474 FGREP="$ac_cv_path_FGREP" 5475 5476 5477test -z "$GREP" && GREP=grep 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497# Check whether --with-gnu-ld was given. 5498if test "${with_gnu_ld+set}" = set; then : 5499 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5500else 5501 with_gnu_ld=no 5502fi 5503 5504ac_prog=ld 5505if test yes = "$GCC"; then 5506 # Check if gcc -print-prog-name=ld gives a path. 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5508$as_echo_n "checking for ld used by $CC... " >&6; } 5509 case $host in 5510 *-*-mingw*) 5511 # gcc leaves a trailing carriage return, which upsets mingw 5512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5513 *) 5514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5515 esac 5516 case $ac_prog in 5517 # Accept absolute paths. 5518 [\\/]* | ?:[\\/]*) 5519 re_direlt='/[^/][^/]*/\.\./' 5520 # Canonicalize the pathname of ld 5521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5524 done 5525 test -z "$LD" && LD=$ac_prog 5526 ;; 5527 "") 5528 # If it fails, then pretend we aren't using GCC. 5529 ac_prog=ld 5530 ;; 5531 *) 5532 # If it is relative, then search for the first ld in PATH. 5533 with_gnu_ld=unknown 5534 ;; 5535 esac 5536elif test yes = "$with_gnu_ld"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5538$as_echo_n "checking for GNU ld... " >&6; } 5539else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5541$as_echo_n "checking for non-GNU ld... " >&6; } 5542fi 5543if ${lt_cv_path_LD+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 if test -z "$LD"; then 5547 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5548 for ac_dir in $PATH; do 5549 IFS=$lt_save_ifs 5550 test -z "$ac_dir" && ac_dir=. 5551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5552 lt_cv_path_LD=$ac_dir/$ac_prog 5553 # Check to see if the program is GNU ld. I'd rather use --version, 5554 # but apparently some variants of GNU ld only accept -v. 5555 # Break only if it was the GNU/non-GNU ld that we prefer. 5556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5557 *GNU* | *'with BFD'*) 5558 test no != "$with_gnu_ld" && break 5559 ;; 5560 *) 5561 test yes != "$with_gnu_ld" && break 5562 ;; 5563 esac 5564 fi 5565 done 5566 IFS=$lt_save_ifs 5567else 5568 lt_cv_path_LD=$LD # Let the user override the test with a path. 5569fi 5570fi 5571 5572LD=$lt_cv_path_LD 5573if test -n "$LD"; then 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5575$as_echo "$LD" >&6; } 5576else 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5578$as_echo "no" >&6; } 5579fi 5580test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5582$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5583if ${lt_cv_prog_gnu_ld+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5587case `$LD -v 2>&1 </dev/null` in 5588*GNU* | *'with BFD'*) 5589 lt_cv_prog_gnu_ld=yes 5590 ;; 5591*) 5592 lt_cv_prog_gnu_ld=no 5593 ;; 5594esac 5595fi 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5597$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5598with_gnu_ld=$lt_cv_prog_gnu_ld 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5609$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5610if ${lt_cv_path_NM+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612else 5613 if test -n "$NM"; then 5614 # Let the user override the test. 5615 lt_cv_path_NM=$NM 5616else 5617 lt_nm_to_check=${ac_tool_prefix}nm 5618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5619 lt_nm_to_check="$lt_nm_to_check nm" 5620 fi 5621 for lt_tmp_nm in $lt_nm_to_check; do 5622 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5624 IFS=$lt_save_ifs 5625 test -z "$ac_dir" && ac_dir=. 5626 tmp_nm=$ac_dir/$lt_tmp_nm 5627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5628 # Check to see if the nm accepts a BSD-compat flag. 5629 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5630 # nm: unknown option "B" ignored 5631 # Tru64's nm complains that /dev/null is an invalid object file 5632 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5633 case $build_os in 5634 mingw*) lt_bad_file=conftest.nm/nofile ;; 5635 *) lt_bad_file=/dev/null ;; 5636 esac 5637 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5638 *$lt_bad_file* | *'Invalid file or object type'*) 5639 lt_cv_path_NM="$tmp_nm -B" 5640 break 2 5641 ;; 5642 *) 5643 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5644 */dev/null*) 5645 lt_cv_path_NM="$tmp_nm -p" 5646 break 2 5647 ;; 5648 *) 5649 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5650 continue # so that we can try to find one that supports BSD flags 5651 ;; 5652 esac 5653 ;; 5654 esac 5655 fi 5656 done 5657 IFS=$lt_save_ifs 5658 done 5659 : ${lt_cv_path_NM=no} 5660fi 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5663$as_echo "$lt_cv_path_NM" >&6; } 5664if test no != "$lt_cv_path_NM"; then 5665 NM=$lt_cv_path_NM 5666else 5667 # Didn't find any BSD compatible name lister, look for dumpbin. 5668 if test -n "$DUMPBIN"; then : 5669 # Let the user override the test. 5670 else 5671 if test -n "$ac_tool_prefix"; then 5672 for ac_prog in dumpbin "link -dump" 5673 do 5674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5675set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5677$as_echo_n "checking for $ac_word... " >&6; } 5678if ${ac_cv_prog_DUMPBIN+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 if test -n "$DUMPBIN"; then 5682 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5683else 5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685for as_dir in $PATH 5686do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for ac_exec_ext in '' $ac_executable_extensions; do 5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5691 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5693 break 2 5694 fi 5695done 5696 done 5697IFS=$as_save_IFS 5698 5699fi 5700fi 5701DUMPBIN=$ac_cv_prog_DUMPBIN 5702if test -n "$DUMPBIN"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5704$as_echo "$DUMPBIN" >&6; } 5705else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5707$as_echo "no" >&6; } 5708fi 5709 5710 5711 test -n "$DUMPBIN" && break 5712 done 5713fi 5714if test -z "$DUMPBIN"; then 5715 ac_ct_DUMPBIN=$DUMPBIN 5716 for ac_prog in dumpbin "link -dump" 5717do 5718 # Extract the first word of "$ac_prog", so it can be a program name with args. 5719set dummy $ac_prog; ac_word=$2 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5721$as_echo_n "checking for $ac_word... " >&6; } 5722if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 if test -n "$ac_ct_DUMPBIN"; then 5726 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5727else 5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5729for as_dir in $PATH 5730do 5731 IFS=$as_save_IFS 5732 test -z "$as_dir" && as_dir=. 5733 for ac_exec_ext in '' $ac_executable_extensions; do 5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5735 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5737 break 2 5738 fi 5739done 5740 done 5741IFS=$as_save_IFS 5742 5743fi 5744fi 5745ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5746if test -n "$ac_ct_DUMPBIN"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5748$as_echo "$ac_ct_DUMPBIN" >&6; } 5749else 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5751$as_echo "no" >&6; } 5752fi 5753 5754 5755 test -n "$ac_ct_DUMPBIN" && break 5756done 5757 5758 if test "x$ac_ct_DUMPBIN" = x; then 5759 DUMPBIN=":" 5760 else 5761 case $cross_compiling:$ac_tool_warned in 5762yes:) 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5765ac_tool_warned=yes ;; 5766esac 5767 DUMPBIN=$ac_ct_DUMPBIN 5768 fi 5769fi 5770 5771 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5772 *COFF*) 5773 DUMPBIN="$DUMPBIN -symbols -headers" 5774 ;; 5775 *) 5776 DUMPBIN=: 5777 ;; 5778 esac 5779 fi 5780 5781 if test : != "$DUMPBIN"; then 5782 NM=$DUMPBIN 5783 fi 5784fi 5785test -z "$NM" && NM=nm 5786 5787 5788 5789 5790 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5793$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5794if ${lt_cv_nm_interface+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 lt_cv_nm_interface="BSD nm" 5798 echo "int some_variable = 0;" > conftest.$ac_ext 5799 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5800 (eval "$ac_compile" 2>conftest.err) 5801 cat conftest.err >&5 5802 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5803 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5804 cat conftest.err >&5 5805 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5806 cat conftest.out >&5 5807 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5808 lt_cv_nm_interface="MS dumpbin" 5809 fi 5810 rm -f conftest* 5811fi 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5813$as_echo "$lt_cv_nm_interface" >&6; } 5814 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5816$as_echo_n "checking whether ln -s works... " >&6; } 5817LN_S=$as_ln_s 5818if test "$LN_S" = "ln -s"; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5820$as_echo "yes" >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5823$as_echo "no, using $LN_S" >&6; } 5824fi 5825 5826# find the maximum length of command line arguments 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5828$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5829if ${lt_cv_sys_max_cmd_len+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 i=0 5833 teststring=ABCD 5834 5835 case $build_os in 5836 msdosdjgpp*) 5837 # On DJGPP, this test can blow up pretty badly due to problems in libc 5838 # (any single argument exceeding 2000 bytes causes a buffer overrun 5839 # during glob expansion). Even if it were fixed, the result of this 5840 # check would be larger than it should be. 5841 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5842 ;; 5843 5844 gnu*) 5845 # Under GNU Hurd, this test is not required because there is 5846 # no limit to the length of command line arguments. 5847 # Libtool will interpret -1 as no limit whatsoever 5848 lt_cv_sys_max_cmd_len=-1; 5849 ;; 5850 5851 cygwin* | mingw* | cegcc*) 5852 # On Win9x/ME, this test blows up -- it succeeds, but takes 5853 # about 5 minutes as the teststring grows exponentially. 5854 # Worse, since 9x/ME are not pre-emptively multitasking, 5855 # you end up with a "frozen" computer, even though with patience 5856 # the test eventually succeeds (with a max line length of 256k). 5857 # Instead, let's just punt: use the minimum linelength reported by 5858 # all of the supported platforms: 8192 (on NT/2K/XP). 5859 lt_cv_sys_max_cmd_len=8192; 5860 ;; 5861 5862 mint*) 5863 # On MiNT this can take a long time and run out of memory. 5864 lt_cv_sys_max_cmd_len=8192; 5865 ;; 5866 5867 amigaos*) 5868 # On AmigaOS with pdksh, this test takes hours, literally. 5869 # So we just punt and use a minimum line length of 8192. 5870 lt_cv_sys_max_cmd_len=8192; 5871 ;; 5872 5873 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5874 # This has been around since 386BSD, at least. Likely further. 5875 if test -x /sbin/sysctl; then 5876 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5877 elif test -x /usr/sbin/sysctl; then 5878 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5879 else 5880 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5881 fi 5882 # And add a safety zone 5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5885 ;; 5886 5887 interix*) 5888 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5889 lt_cv_sys_max_cmd_len=196608 5890 ;; 5891 5892 os2*) 5893 # The test takes a long time on OS/2. 5894 lt_cv_sys_max_cmd_len=8192 5895 ;; 5896 5897 osf*) 5898 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5899 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5900 # nice to cause kernel panics so lets avoid the loop below. 5901 # First set a reasonable default. 5902 lt_cv_sys_max_cmd_len=16384 5903 # 5904 if test -x /sbin/sysconfig; then 5905 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5906 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5907 esac 5908 fi 5909 ;; 5910 sco3.2v5*) 5911 lt_cv_sys_max_cmd_len=102400 5912 ;; 5913 sysv5* | sco5v6* | sysv4.2uw2*) 5914 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5915 if test -n "$kargmax"; then 5916 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5917 else 5918 lt_cv_sys_max_cmd_len=32768 5919 fi 5920 ;; 5921 *) 5922 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5923 if test -n "$lt_cv_sys_max_cmd_len" && \ 5924 test undefined != "$lt_cv_sys_max_cmd_len"; then 5925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5927 else 5928 # Make teststring a little bigger before we do anything with it. 5929 # a 1K string should be a reasonable start. 5930 for i in 1 2 3 4 5 6 7 8; do 5931 teststring=$teststring$teststring 5932 done 5933 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5934 # If test is not a shell built-in, we'll probably end up computing a 5935 # maximum length that is only half of the actual maximum length, but 5936 # we can't tell. 5937 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5938 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5939 test 17 != "$i" # 1/2 MB should be enough 5940 do 5941 i=`expr $i + 1` 5942 teststring=$teststring$teststring 5943 done 5944 # Only check the string length outside the loop. 5945 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5946 teststring= 5947 # Add a significant safety factor because C++ compilers can tack on 5948 # massive amounts of additional arguments before passing them to the 5949 # linker. It appears as though 1/2 is a usable value. 5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5951 fi 5952 ;; 5953 esac 5954 5955fi 5956 5957if test -n "$lt_cv_sys_max_cmd_len"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5959$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5962$as_echo "none" >&6; } 5963fi 5964max_cmd_len=$lt_cv_sys_max_cmd_len 5965 5966 5967 5968 5969 5970 5971: ${CP="cp -f"} 5972: ${MV="mv -f"} 5973: ${RM="rm -f"} 5974 5975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5976 lt_unset=unset 5977else 5978 lt_unset=false 5979fi 5980 5981 5982 5983 5984 5985# test EBCDIC or ASCII 5986case `echo X|tr X '\101'` in 5987 A) # ASCII based system 5988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5989 lt_SP2NL='tr \040 \012' 5990 lt_NL2SP='tr \015\012 \040\040' 5991 ;; 5992 *) # EBCDIC based system 5993 lt_SP2NL='tr \100 \n' 5994 lt_NL2SP='tr \r\n \100\100' 5995 ;; 5996esac 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6007$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6008if ${lt_cv_to_host_file_cmd+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 case $host in 6012 *-*-mingw* ) 6013 case $build in 6014 *-*-mingw* ) # actually msys 6015 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6016 ;; 6017 *-*-cygwin* ) 6018 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6019 ;; 6020 * ) # otherwise, assume *nix 6021 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6022 ;; 6023 esac 6024 ;; 6025 *-*-cygwin* ) 6026 case $build in 6027 *-*-mingw* ) # actually msys 6028 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6029 ;; 6030 *-*-cygwin* ) 6031 lt_cv_to_host_file_cmd=func_convert_file_noop 6032 ;; 6033 * ) # otherwise, assume *nix 6034 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6035 ;; 6036 esac 6037 ;; 6038 * ) # unhandled hosts (and "normal" native builds) 6039 lt_cv_to_host_file_cmd=func_convert_file_noop 6040 ;; 6041esac 6042 6043fi 6044 6045to_host_file_cmd=$lt_cv_to_host_file_cmd 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6047$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6048 6049 6050 6051 6052 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6054$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6055if ${lt_cv_to_tool_file_cmd+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 #assume ordinary cross tools, or native build. 6059lt_cv_to_tool_file_cmd=func_convert_file_noop 6060case $host in 6061 *-*-mingw* ) 6062 case $build in 6063 *-*-mingw* ) # actually msys 6064 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6065 ;; 6066 esac 6067 ;; 6068esac 6069 6070fi 6071 6072to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6074$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6075 6076 6077 6078 6079 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6081$as_echo_n "checking for $LD option to reload object files... " >&6; } 6082if ${lt_cv_ld_reload_flag+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 lt_cv_ld_reload_flag='-r' 6086fi 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6088$as_echo "$lt_cv_ld_reload_flag" >&6; } 6089reload_flag=$lt_cv_ld_reload_flag 6090case $reload_flag in 6091"" | " "*) ;; 6092*) reload_flag=" $reload_flag" ;; 6093esac 6094reload_cmds='$LD$reload_flag -o $output$reload_objs' 6095case $host_os in 6096 cygwin* | mingw* | pw32* | cegcc*) 6097 if test yes != "$GCC"; then 6098 reload_cmds=false 6099 fi 6100 ;; 6101 darwin*) 6102 if test yes = "$GCC"; then 6103 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6104 else 6105 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6106 fi 6107 ;; 6108esac 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118if test -n "$ac_tool_prefix"; then 6119 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6120set dummy ${ac_tool_prefix}objdump; ac_word=$2 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6122$as_echo_n "checking for $ac_word... " >&6; } 6123if ${ac_cv_prog_OBJDUMP+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 if test -n "$OBJDUMP"; then 6127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6128else 6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140done 6141 done 6142IFS=$as_save_IFS 6143 6144fi 6145fi 6146OBJDUMP=$ac_cv_prog_OBJDUMP 6147if test -n "$OBJDUMP"; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6149$as_echo "$OBJDUMP" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6152$as_echo "no" >&6; } 6153fi 6154 6155 6156fi 6157if test -z "$ac_cv_prog_OBJDUMP"; then 6158 ac_ct_OBJDUMP=$OBJDUMP 6159 # Extract the first word of "objdump", so it can be a program name with args. 6160set dummy objdump; ac_word=$2 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6162$as_echo_n "checking for $ac_word... " >&6; } 6163if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 if test -n "$ac_ct_OBJDUMP"; then 6167 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6168else 6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170for as_dir in $PATH 6171do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_exec_ext in '' $ac_executable_extensions; do 6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6176 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6178 break 2 6179 fi 6180done 6181 done 6182IFS=$as_save_IFS 6183 6184fi 6185fi 6186ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6187if test -n "$ac_ct_OBJDUMP"; then 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6189$as_echo "$ac_ct_OBJDUMP" >&6; } 6190else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6192$as_echo "no" >&6; } 6193fi 6194 6195 if test "x$ac_ct_OBJDUMP" = x; then 6196 OBJDUMP="false" 6197 else 6198 case $cross_compiling:$ac_tool_warned in 6199yes:) 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6202ac_tool_warned=yes ;; 6203esac 6204 OBJDUMP=$ac_ct_OBJDUMP 6205 fi 6206else 6207 OBJDUMP="$ac_cv_prog_OBJDUMP" 6208fi 6209 6210test -z "$OBJDUMP" && OBJDUMP=objdump 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6221$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6222if ${lt_cv_deplibs_check_method+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 lt_cv_file_magic_cmd='$MAGIC_CMD' 6226lt_cv_file_magic_test_file= 6227lt_cv_deplibs_check_method='unknown' 6228# Need to set the preceding variable on all platforms that support 6229# interlibrary dependencies. 6230# 'none' -- dependencies not supported. 6231# 'unknown' -- same as none, but documents that we really don't know. 6232# 'pass_all' -- all dependencies passed with no checks. 6233# 'test_compile' -- check by making test program. 6234# 'file_magic [[regex]]' -- check by looking for files in library path 6235# that responds to the $file_magic_cmd with a given extended regex. 6236# If you have 'file' or equivalent on your system and you're not sure 6237# whether 'pass_all' will *always* work, you probably want this one. 6238 6239case $host_os in 6240aix[4-9]*) 6241 lt_cv_deplibs_check_method=pass_all 6242 ;; 6243 6244beos*) 6245 lt_cv_deplibs_check_method=pass_all 6246 ;; 6247 6248bsdi[45]*) 6249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6250 lt_cv_file_magic_cmd='/usr/bin/file -L' 6251 lt_cv_file_magic_test_file=/shlib/libc.so 6252 ;; 6253 6254cygwin*) 6255 # func_win32_libid is a shell function defined in ltmain.sh 6256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6257 lt_cv_file_magic_cmd='func_win32_libid' 6258 ;; 6259 6260mingw* | pw32*) 6261 # Base MSYS/MinGW do not provide the 'file' command needed by 6262 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6263 # unless we find 'file', for example because we are cross-compiling. 6264 if ( file / ) >/dev/null 2>&1; then 6265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6266 lt_cv_file_magic_cmd='func_win32_libid' 6267 else 6268 # Keep this pattern in sync with the one in func_win32_libid. 6269 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6270 lt_cv_file_magic_cmd='$OBJDUMP -f' 6271 fi 6272 ;; 6273 6274cegcc*) 6275 # use the weaker test based on 'objdump'. See mingw*. 6276 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6277 lt_cv_file_magic_cmd='$OBJDUMP -f' 6278 ;; 6279 6280darwin* | rhapsody*) 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284freebsd* | dragonfly*) 6285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6286 case $host_cpu in 6287 i*86 ) 6288 # Not sure whether the presence of OpenBSD here was a mistake. 6289 # Let's accept both of them until this is cleared up. 6290 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6291 lt_cv_file_magic_cmd=/usr/bin/file 6292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6293 ;; 6294 esac 6295 else 6296 lt_cv_deplibs_check_method=pass_all 6297 fi 6298 ;; 6299 6300haiku*) 6301 lt_cv_deplibs_check_method=pass_all 6302 ;; 6303 6304hpux10.20* | hpux11*) 6305 lt_cv_file_magic_cmd=/usr/bin/file 6306 case $host_cpu in 6307 ia64*) 6308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6309 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6310 ;; 6311 hppa*64*) 6312 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]' 6313 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6314 ;; 6315 *) 6316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6317 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6318 ;; 6319 esac 6320 ;; 6321 6322interix[3-9]*) 6323 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6325 ;; 6326 6327irix5* | irix6* | nonstopux*) 6328 case $LD in 6329 *-32|*"-32 ") libmagic=32-bit;; 6330 *-n32|*"-n32 ") libmagic=N32;; 6331 *-64|*"-64 ") libmagic=64-bit;; 6332 *) libmagic=never-match;; 6333 esac 6334 lt_cv_deplibs_check_method=pass_all 6335 ;; 6336 6337# This must be glibc/ELF. 6338linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6339 lt_cv_deplibs_check_method=pass_all 6340 ;; 6341 6342netbsd*) 6343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6345 else 6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6347 fi 6348 ;; 6349 6350newos6*) 6351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6352 lt_cv_file_magic_cmd=/usr/bin/file 6353 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6354 ;; 6355 6356*nto* | *qnx*) 6357 lt_cv_deplibs_check_method=pass_all 6358 ;; 6359 6360openbsd* | bitrig*) 6361 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6363 else 6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6365 fi 6366 ;; 6367 6368osf3* | osf4* | osf5*) 6369 lt_cv_deplibs_check_method=pass_all 6370 ;; 6371 6372rdos*) 6373 lt_cv_deplibs_check_method=pass_all 6374 ;; 6375 6376solaris*) 6377 lt_cv_deplibs_check_method=pass_all 6378 ;; 6379 6380sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383 6384sysv4 | sysv4.3*) 6385 case $host_vendor in 6386 motorola) 6387 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]' 6388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6389 ;; 6390 ncr) 6391 lt_cv_deplibs_check_method=pass_all 6392 ;; 6393 sequent) 6394 lt_cv_file_magic_cmd='/bin/file' 6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6396 ;; 6397 sni) 6398 lt_cv_file_magic_cmd='/bin/file' 6399 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6400 lt_cv_file_magic_test_file=/lib/libc.so 6401 ;; 6402 siemens) 6403 lt_cv_deplibs_check_method=pass_all 6404 ;; 6405 pc) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 esac 6409 ;; 6410 6411tpf*) 6412 lt_cv_deplibs_check_method=pass_all 6413 ;; 6414os2*) 6415 lt_cv_deplibs_check_method=pass_all 6416 ;; 6417esac 6418 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6421$as_echo "$lt_cv_deplibs_check_method" >&6; } 6422 6423file_magic_glob= 6424want_nocaseglob=no 6425if test "$build" = "$host"; then 6426 case $host_os in 6427 mingw* | pw32*) 6428 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6429 want_nocaseglob=yes 6430 else 6431 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6432 fi 6433 ;; 6434 esac 6435fi 6436 6437file_magic_cmd=$lt_cv_file_magic_cmd 6438deplibs_check_method=$lt_cv_deplibs_check_method 6439test -z "$deplibs_check_method" && deplibs_check_method=unknown 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462if test -n "$ac_tool_prefix"; then 6463 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6464set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6466$as_echo_n "checking for $ac_word... " >&6; } 6467if ${ac_cv_prog_DLLTOOL+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469else 6470 if test -n "$DLLTOOL"; then 6471 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6472else 6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6474for as_dir in $PATH 6475do 6476 IFS=$as_save_IFS 6477 test -z "$as_dir" && as_dir=. 6478 for ac_exec_ext in '' $ac_executable_extensions; do 6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6480 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6482 break 2 6483 fi 6484done 6485 done 6486IFS=$as_save_IFS 6487 6488fi 6489fi 6490DLLTOOL=$ac_cv_prog_DLLTOOL 6491if test -n "$DLLTOOL"; then 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6493$as_echo "$DLLTOOL" >&6; } 6494else 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6496$as_echo "no" >&6; } 6497fi 6498 6499 6500fi 6501if test -z "$ac_cv_prog_DLLTOOL"; then 6502 ac_ct_DLLTOOL=$DLLTOOL 6503 # Extract the first word of "dlltool", so it can be a program name with args. 6504set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509else 6510 if test -n "$ac_ct_DLLTOOL"; then 6511 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool" 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 6530ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6531if test -n "$ac_ct_DLLTOOL"; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6533$as_echo "$ac_ct_DLLTOOL" >&6; } 6534else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536$as_echo "no" >&6; } 6537fi 6538 6539 if test "x$ac_ct_DLLTOOL" = x; then 6540 DLLTOOL="false" 6541 else 6542 case $cross_compiling:$ac_tool_warned in 6543yes:) 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6546ac_tool_warned=yes ;; 6547esac 6548 DLLTOOL=$ac_ct_DLLTOOL 6549 fi 6550else 6551 DLLTOOL="$ac_cv_prog_DLLTOOL" 6552fi 6553 6554test -z "$DLLTOOL" && DLLTOOL=dlltool 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6566$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6567if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 lt_cv_sharedlib_from_linklib_cmd='unknown' 6571 6572case $host_os in 6573cygwin* | mingw* | pw32* | cegcc*) 6574 # two different shell functions defined in ltmain.sh; 6575 # decide which one to use based on capabilities of $DLLTOOL 6576 case `$DLLTOOL --help 2>&1` in 6577 *--identify-strict*) 6578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6579 ;; 6580 *) 6581 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6582 ;; 6583 esac 6584 ;; 6585*) 6586 # fallback: assume linklib IS sharedlib 6587 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6588 ;; 6589esac 6590 6591fi 6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6593$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6594sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6595test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6596 6597 6598 6599 6600 6601 6602 6603if test -n "$ac_tool_prefix"; then 6604 for ac_prog in ar 6605 do 6606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6607set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6609$as_echo_n "checking for $ac_word... " >&6; } 6610if ${ac_cv_prog_AR+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -n "$AR"; then 6614 ac_cv_prog_AR="$AR" # Let the user override the test. 6615else 6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633AR=$ac_cv_prog_AR 6634if test -n "$AR"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6636$as_echo "$AR" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639$as_echo "no" >&6; } 6640fi 6641 6642 6643 test -n "$AR" && break 6644 done 6645fi 6646if test -z "$AR"; then 6647 ac_ct_AR=$AR 6648 for ac_prog in ar 6649do 6650 # Extract the first word of "$ac_prog", so it can be a program name with args. 6651set dummy $ac_prog; ac_word=$2 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653$as_echo_n "checking for $ac_word... " >&6; } 6654if ${ac_cv_prog_ac_ct_AR+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 if test -n "$ac_ct_AR"; then 6658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6667 ac_cv_prog_ac_ct_AR="$ac_prog" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671done 6672 done 6673IFS=$as_save_IFS 6674 6675fi 6676fi 6677ac_ct_AR=$ac_cv_prog_ac_ct_AR 6678if test -n "$ac_ct_AR"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6680$as_echo "$ac_ct_AR" >&6; } 6681else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683$as_echo "no" >&6; } 6684fi 6685 6686 6687 test -n "$ac_ct_AR" && break 6688done 6689 6690 if test "x$ac_ct_AR" = x; then 6691 AR="false" 6692 else 6693 case $cross_compiling:$ac_tool_warned in 6694yes:) 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6697ac_tool_warned=yes ;; 6698esac 6699 AR=$ac_ct_AR 6700 fi 6701fi 6702 6703: ${AR=ar} 6704: ${AR_FLAGS=cru} 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6717$as_echo_n "checking for archiver @FILE support... " >&6; } 6718if ${lt_cv_ar_at_file+:} false; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 lt_cv_ar_at_file=no 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723/* end confdefs.h. */ 6724 6725int 6726main () 6727{ 6728 6729 ; 6730 return 0; 6731} 6732_ACEOF 6733if ac_fn_c_try_compile "$LINENO"; then : 6734 echo conftest.$ac_objext > conftest.lst 6735 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6737 (eval $lt_ar_try) 2>&5 6738 ac_status=$? 6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6740 test $ac_status = 0; } 6741 if test 0 -eq "$ac_status"; then 6742 # Ensure the archiver fails upon bogus file names. 6743 rm -f conftest.$ac_objext libconftest.a 6744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6745 (eval $lt_ar_try) 2>&5 6746 ac_status=$? 6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6748 test $ac_status = 0; } 6749 if test 0 -ne "$ac_status"; then 6750 lt_cv_ar_at_file=@ 6751 fi 6752 fi 6753 rm -f conftest.* libconftest.a 6754 6755fi 6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6757 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6760$as_echo "$lt_cv_ar_at_file" >&6; } 6761 6762if test no = "$lt_cv_ar_at_file"; then 6763 archiver_list_spec= 6764else 6765 archiver_list_spec=$lt_cv_ar_at_file 6766fi 6767 6768 6769 6770 6771 6772 6773 6774if test -n "$ac_tool_prefix"; then 6775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6776set dummy ${ac_tool_prefix}strip; ac_word=$2 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778$as_echo_n "checking for $ac_word... " >&6; } 6779if ${ac_cv_prog_STRIP+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 if test -n "$STRIP"; then 6783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802STRIP=$ac_cv_prog_STRIP 6803if test -n "$STRIP"; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6805$as_echo "$STRIP" >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808$as_echo "no" >&6; } 6809fi 6810 6811 6812fi 6813if test -z "$ac_cv_prog_STRIP"; then 6814 ac_ct_STRIP=$STRIP 6815 # Extract the first word of "strip", so it can be a program name with args. 6816set dummy strip; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$ac_ct_STRIP"; then 6823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_prog_ac_ct_STRIP="strip" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6843if test -n "$ac_ct_STRIP"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6845$as_echo "$ac_ct_STRIP" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 if test "x$ac_ct_STRIP" = x; then 6852 STRIP=":" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 STRIP=$ac_ct_STRIP 6861 fi 6862else 6863 STRIP="$ac_cv_prog_STRIP" 6864fi 6865 6866test -z "$STRIP" && STRIP=: 6867 6868 6869 6870 6871 6872 6873if test -n "$ac_tool_prefix"; then 6874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6875set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_RANLIB+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$RANLIB"; then 6882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901RANLIB=$ac_cv_prog_RANLIB 6902if test -n "$RANLIB"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6904$as_echo "$RANLIB" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 6911fi 6912if test -z "$ac_cv_prog_RANLIB"; then 6913 ac_ct_RANLIB=$RANLIB 6914 # Extract the first word of "ranlib", so it can be a program name with args. 6915set dummy ranlib; ac_word=$2 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917$as_echo_n "checking for $ac_word... " >&6; } 6918if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920else 6921 if test -n "$ac_ct_RANLIB"; then 6922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6923else 6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6931 ac_cv_prog_ac_ct_RANLIB="ranlib" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935done 6936 done 6937IFS=$as_save_IFS 6938 6939fi 6940fi 6941ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6942if test -n "$ac_ct_RANLIB"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6944$as_echo "$ac_ct_RANLIB" >&6; } 6945else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947$as_echo "no" >&6; } 6948fi 6949 6950 if test "x$ac_ct_RANLIB" = x; then 6951 RANLIB=":" 6952 else 6953 case $cross_compiling:$ac_tool_warned in 6954yes:) 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6957ac_tool_warned=yes ;; 6958esac 6959 RANLIB=$ac_ct_RANLIB 6960 fi 6961else 6962 RANLIB="$ac_cv_prog_RANLIB" 6963fi 6964 6965test -z "$RANLIB" && RANLIB=: 6966 6967 6968 6969 6970 6971 6972# Determine commands to create old-style static archives. 6973old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6974old_postinstall_cmds='chmod 644 $oldlib' 6975old_postuninstall_cmds= 6976 6977if test -n "$RANLIB"; then 6978 case $host_os in 6979 bitrig* | openbsd*) 6980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6981 ;; 6982 *) 6983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6984 ;; 6985 esac 6986 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6987fi 6988 6989case $host_os in 6990 darwin*) 6991 lock_old_archive_extraction=yes ;; 6992 *) 6993 lock_old_archive_extraction=no ;; 6994esac 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034# If no C compiler was specified, use CC. 7035LTCC=${LTCC-"$CC"} 7036 7037# If no C compiler flags were specified, use CFLAGS. 7038LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7039 7040# Allow CC to be a program name with arguments. 7041compiler=$CC 7042 7043 7044# Check for command to grab the raw symbol name followed by C symbol from nm. 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7046$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7047if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 7051# These are sane defaults that work on at least a few old systems. 7052# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7053 7054# Character class describing NM global symbol codes. 7055symcode='[BCDEGRST]' 7056 7057# Regexp to match symbols that can be accessed directly from C. 7058sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7059 7060# Define system-specific variables. 7061case $host_os in 7062aix*) 7063 symcode='[BCDT]' 7064 ;; 7065cygwin* | mingw* | pw32* | cegcc*) 7066 symcode='[ABCDGISTW]' 7067 ;; 7068hpux*) 7069 if test ia64 = "$host_cpu"; then 7070 symcode='[ABCDEGRST]' 7071 fi 7072 ;; 7073irix* | nonstopux*) 7074 symcode='[BCDEGRST]' 7075 ;; 7076osf*) 7077 symcode='[BCDEGQRST]' 7078 ;; 7079solaris*) 7080 symcode='[BDRT]' 7081 ;; 7082sco3.2v5*) 7083 symcode='[DT]' 7084 ;; 7085sysv4.2uw2*) 7086 symcode='[DT]' 7087 ;; 7088sysv5* | sco5v6* | unixware* | OpenUNIX*) 7089 symcode='[ABDT]' 7090 ;; 7091sysv4) 7092 symcode='[DFNSTU]' 7093 ;; 7094esac 7095 7096# If we're using GNU nm, then use its standard symbol codes. 7097case `$NM -V 2>&1` in 7098*GNU* | *'with BFD'*) 7099 symcode='[ABCDGIRSTW]' ;; 7100esac 7101 7102if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7103 # Gets list of data symbols to import. 7104 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7105 # Adjust the below global symbol transforms to fixup imported variables. 7106 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7107 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7108 lt_c_name_lib_hook="\ 7109 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7110 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7111else 7112 # Disable hooks by default. 7113 lt_cv_sys_global_symbol_to_import= 7114 lt_cdecl_hook= 7115 lt_c_name_hook= 7116 lt_c_name_lib_hook= 7117fi 7118 7119# Transform an extracted symbol line into a proper C declaration. 7120# Some systems (esp. on ia64) link data and code symbols differently, 7121# so use this general approach. 7122lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7123$lt_cdecl_hook\ 7124" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7125" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7126 7127# Transform an extracted symbol line into symbol name and symbol address 7128lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7129$lt_c_name_hook\ 7130" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7131" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7132 7133# Transform an extracted symbol line into symbol name with lib prefix and 7134# symbol address. 7135lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7136$lt_c_name_lib_hook\ 7137" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7138" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7139" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7140 7141# Handle CRLF in mingw tool chain 7142opt_cr= 7143case $build_os in 7144mingw*) 7145 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7146 ;; 7147esac 7148 7149# Try without a prefix underscore, then with it. 7150for ac_symprfx in "" "_"; do 7151 7152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7153 symxfrm="\\1 $ac_symprfx\\2 \\2" 7154 7155 # Write the raw and C identifiers. 7156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7157 # Fake it for dumpbin and say T for any non-static function, 7158 # D for any global variable and I for any imported variable. 7159 # Also find C++ and __fastcall symbols from MSVC++, 7160 # which start with @ or ?. 7161 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7162" {last_section=section; section=\$ 3};"\ 7163" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7164" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7165" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7166" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7167" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7168" \$ 0!~/External *\|/{next};"\ 7169" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7170" {if(hide[section]) next};"\ 7171" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7172" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7173" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7174" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7175" ' prfx=^$ac_symprfx" 7176 else 7177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7178 fi 7179 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7180 7181 # Check to see that the pipe works correctly. 7182 pipe_works=no 7183 7184 rm -f conftest* 7185 cat > conftest.$ac_ext <<_LT_EOF 7186#ifdef __cplusplus 7187extern "C" { 7188#endif 7189char nm_test_var; 7190void nm_test_func(void); 7191void nm_test_func(void){} 7192#ifdef __cplusplus 7193} 7194#endif 7195int main(){nm_test_var='a';nm_test_func();return(0);} 7196_LT_EOF 7197 7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7199 (eval $ac_compile) 2>&5 7200 ac_status=$? 7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7202 test $ac_status = 0; }; then 7203 # Now try to grab the symbols. 7204 nlist=conftest.nm 7205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7206 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7207 ac_status=$? 7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7209 test $ac_status = 0; } && test -s "$nlist"; then 7210 # Try sorting and uniquifying the output. 7211 if sort "$nlist" | uniq > "$nlist"T; then 7212 mv -f "$nlist"T "$nlist" 7213 else 7214 rm -f "$nlist"T 7215 fi 7216 7217 # Make sure that we snagged all the symbols we need. 7218 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7219 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7220 cat <<_LT_EOF > conftest.$ac_ext 7221/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7222#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7223/* DATA imports from DLLs on WIN32 can't be const, because runtime 7224 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7225# define LT_DLSYM_CONST 7226#elif defined __osf__ 7227/* This system does not cope well with relocations in const data. */ 7228# define LT_DLSYM_CONST 7229#else 7230# define LT_DLSYM_CONST const 7231#endif 7232 7233#ifdef __cplusplus 7234extern "C" { 7235#endif 7236 7237_LT_EOF 7238 # Now generate the symbol file. 7239 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7240 7241 cat <<_LT_EOF >> conftest.$ac_ext 7242 7243/* The mapping between symbol names and symbols. */ 7244LT_DLSYM_CONST struct { 7245 const char *name; 7246 void *address; 7247} 7248lt__PROGRAM__LTX_preloaded_symbols[] = 7249{ 7250 { "@PROGRAM@", (void *) 0 }, 7251_LT_EOF 7252 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7253 cat <<\_LT_EOF >> conftest.$ac_ext 7254 {0, (void *) 0} 7255}; 7256 7257/* This works around a problem in FreeBSD linker */ 7258#ifdef FREEBSD_WORKAROUND 7259static const void *lt_preloaded_setup() { 7260 return lt__PROGRAM__LTX_preloaded_symbols; 7261} 7262#endif 7263 7264#ifdef __cplusplus 7265} 7266#endif 7267_LT_EOF 7268 # Now try linking the two files. 7269 mv conftest.$ac_objext conftstm.$ac_objext 7270 lt_globsym_save_LIBS=$LIBS 7271 lt_globsym_save_CFLAGS=$CFLAGS 7272 LIBS=conftstm.$ac_objext 7273 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7275 (eval $ac_link) 2>&5 7276 ac_status=$? 7277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7278 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7279 pipe_works=yes 7280 fi 7281 LIBS=$lt_globsym_save_LIBS 7282 CFLAGS=$lt_globsym_save_CFLAGS 7283 else 7284 echo "cannot find nm_test_func in $nlist" >&5 7285 fi 7286 else 7287 echo "cannot find nm_test_var in $nlist" >&5 7288 fi 7289 else 7290 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7291 fi 7292 else 7293 echo "$progname: failed program was:" >&5 7294 cat conftest.$ac_ext >&5 7295 fi 7296 rm -rf conftest* conftst* 7297 7298 # Do not use the global_symbol_pipe unless it works. 7299 if test yes = "$pipe_works"; then 7300 break 7301 else 7302 lt_cv_sys_global_symbol_pipe= 7303 fi 7304done 7305 7306fi 7307 7308if test -z "$lt_cv_sys_global_symbol_pipe"; then 7309 lt_cv_sys_global_symbol_to_cdecl= 7310fi 7311if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7313$as_echo "failed" >&6; } 7314else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7316$as_echo "ok" >&6; } 7317fi 7318 7319# Response file support. 7320if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7321 nm_file_list_spec='@' 7322elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7323 nm_file_list_spec='@' 7324fi 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7363$as_echo_n "checking for sysroot... " >&6; } 7364 7365# Check whether --with-sysroot was given. 7366if test "${with_sysroot+set}" = set; then : 7367 withval=$with_sysroot; 7368else 7369 with_sysroot=no 7370fi 7371 7372 7373lt_sysroot= 7374case $with_sysroot in #( 7375 yes) 7376 if test yes = "$GCC"; then 7377 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7378 fi 7379 ;; #( 7380 /*) 7381 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7382 ;; #( 7383 no|'') 7384 ;; #( 7385 *) 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7387$as_echo "$with_sysroot" >&6; } 7388 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7389 ;; 7390esac 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7393$as_echo "${lt_sysroot:-no}" >&6; } 7394 7395 7396 7397 7398 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7400$as_echo_n "checking for a working dd... " >&6; } 7401if ${ac_cv_path_lt_DD+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 printf 0123456789abcdef0123456789abcdef >conftest.i 7405cat conftest.i conftest.i >conftest2.i 7406: ${lt_DD:=$DD} 7407if test -z "$lt_DD"; then 7408 ac_path_lt_DD_found=false 7409 # Loop through the user's path and test for each of PROGNAME-LIST 7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7411for as_dir in $PATH 7412do 7413 IFS=$as_save_IFS 7414 test -z "$as_dir" && as_dir=. 7415 for ac_prog in dd; do 7416 for ac_exec_ext in '' $ac_executable_extensions; do 7417 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7418 as_fn_executable_p "$ac_path_lt_DD" || continue 7419if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7420 cmp -s conftest.i conftest.out \ 7421 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7422fi 7423 $ac_path_lt_DD_found && break 3 7424 done 7425 done 7426 done 7427IFS=$as_save_IFS 7428 if test -z "$ac_cv_path_lt_DD"; then 7429 : 7430 fi 7431else 7432 ac_cv_path_lt_DD=$lt_DD 7433fi 7434 7435rm -f conftest.i conftest2.i conftest.out 7436fi 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7438$as_echo "$ac_cv_path_lt_DD" >&6; } 7439 7440 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7442$as_echo_n "checking how to truncate binary pipes... " >&6; } 7443if ${lt_cv_truncate_bin+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 printf 0123456789abcdef0123456789abcdef >conftest.i 7447cat conftest.i conftest.i >conftest2.i 7448lt_cv_truncate_bin= 7449if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7450 cmp -s conftest.i conftest.out \ 7451 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7452fi 7453rm -f conftest.i conftest2.i conftest.out 7454test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7457$as_echo "$lt_cv_truncate_bin" >&6; } 7458 7459 7460 7461 7462 7463 7464 7465# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7466func_cc_basename () 7467{ 7468 for cc_temp in $*""; do 7469 case $cc_temp in 7470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7472 \-*) ;; 7473 *) break;; 7474 esac 7475 done 7476 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7477} 7478 7479# Check whether --enable-libtool-lock was given. 7480if test "${enable_libtool_lock+set}" = set; then : 7481 enableval=$enable_libtool_lock; 7482fi 7483 7484test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7485 7486# Some flags need to be propagated to the compiler or linker for good 7487# libtool support. 7488case $host in 7489ia64-*-hpux*) 7490 # Find out what ABI is being produced by ac_compile, and set mode 7491 # options accordingly. 7492 echo 'int i;' > conftest.$ac_ext 7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7494 (eval $ac_compile) 2>&5 7495 ac_status=$? 7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7497 test $ac_status = 0; }; then 7498 case `/usr/bin/file conftest.$ac_objext` in 7499 *ELF-32*) 7500 HPUX_IA64_MODE=32 7501 ;; 7502 *ELF-64*) 7503 HPUX_IA64_MODE=64 7504 ;; 7505 esac 7506 fi 7507 rm -rf conftest* 7508 ;; 7509*-*-irix6*) 7510 # Find out what ABI is being produced by ac_compile, and set linker 7511 # options accordingly. 7512 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7514 (eval $ac_compile) 2>&5 7515 ac_status=$? 7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7517 test $ac_status = 0; }; then 7518 if test yes = "$lt_cv_prog_gnu_ld"; then 7519 case `/usr/bin/file conftest.$ac_objext` in 7520 *32-bit*) 7521 LD="${LD-ld} -melf32bsmip" 7522 ;; 7523 *N32*) 7524 LD="${LD-ld} -melf32bmipn32" 7525 ;; 7526 *64-bit*) 7527 LD="${LD-ld} -melf64bmip" 7528 ;; 7529 esac 7530 else 7531 case `/usr/bin/file conftest.$ac_objext` in 7532 *32-bit*) 7533 LD="${LD-ld} -32" 7534 ;; 7535 *N32*) 7536 LD="${LD-ld} -n32" 7537 ;; 7538 *64-bit*) 7539 LD="${LD-ld} -64" 7540 ;; 7541 esac 7542 fi 7543 fi 7544 rm -rf conftest* 7545 ;; 7546 7547mips64*-*linux*) 7548 # Find out what ABI is being produced by ac_compile, and set linker 7549 # options accordingly. 7550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7552 (eval $ac_compile) 2>&5 7553 ac_status=$? 7554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7555 test $ac_status = 0; }; then 7556 emul=elf 7557 case `/usr/bin/file conftest.$ac_objext` in 7558 *32-bit*) 7559 emul="${emul}32" 7560 ;; 7561 *64-bit*) 7562 emul="${emul}64" 7563 ;; 7564 esac 7565 case `/usr/bin/file conftest.$ac_objext` in 7566 *MSB*) 7567 emul="${emul}btsmip" 7568 ;; 7569 *LSB*) 7570 emul="${emul}ltsmip" 7571 ;; 7572 esac 7573 case `/usr/bin/file conftest.$ac_objext` in 7574 *N32*) 7575 emul="${emul}n32" 7576 ;; 7577 esac 7578 LD="${LD-ld} -m $emul" 7579 fi 7580 rm -rf conftest* 7581 ;; 7582 7583x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7584s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7585 # Find out what ABI is being produced by ac_compile, and set linker 7586 # options accordingly. Note that the listed cases only cover the 7587 # situations where additional linker options are needed (such as when 7588 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7589 # vice versa); the common cases where no linker options are needed do 7590 # not appear in the list. 7591 echo 'int i;' > conftest.$ac_ext 7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7593 (eval $ac_compile) 2>&5 7594 ac_status=$? 7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7596 test $ac_status = 0; }; then 7597 case `/usr/bin/file conftest.o` in 7598 *32-bit*) 7599 case $host in 7600 x86_64-*kfreebsd*-gnu) 7601 LD="${LD-ld} -m elf_i386_fbsd" 7602 ;; 7603 x86_64-*linux*) 7604 case `/usr/bin/file conftest.o` in 7605 *x86-64*) 7606 LD="${LD-ld} -m elf32_x86_64" 7607 ;; 7608 *) 7609 LD="${LD-ld} -m elf_i386" 7610 ;; 7611 esac 7612 ;; 7613 powerpc64le-*linux*) 7614 LD="${LD-ld} -m elf32lppclinux" 7615 ;; 7616 powerpc64-*linux*) 7617 LD="${LD-ld} -m elf32ppclinux" 7618 ;; 7619 s390x-*linux*) 7620 LD="${LD-ld} -m elf_s390" 7621 ;; 7622 sparc64-*linux*) 7623 LD="${LD-ld} -m elf32_sparc" 7624 ;; 7625 esac 7626 ;; 7627 *64-bit*) 7628 case $host in 7629 x86_64-*kfreebsd*-gnu) 7630 LD="${LD-ld} -m elf_x86_64_fbsd" 7631 ;; 7632 x86_64-*linux*) 7633 LD="${LD-ld} -m elf_x86_64" 7634 ;; 7635 powerpcle-*linux*|powerpc64le-*linux*) 7636 LD="${LD-ld} -m elf64lppc" 7637 ;; 7638 powerpc-*linux*|powerpc64-*linux*) 7639 LD="${LD-ld} -m elf64ppc" 7640 ;; 7641 s390*-*linux*|s390*-*tpf*) 7642 LD="${LD-ld} -m elf64_s390" 7643 ;; 7644 sparc*-*linux*) 7645 LD="${LD-ld} -m elf64_sparc" 7646 ;; 7647 esac 7648 ;; 7649 esac 7650 fi 7651 rm -rf conftest* 7652 ;; 7653 7654*-*-sco3.2v5*) 7655 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7656 SAVE_CFLAGS=$CFLAGS 7657 CFLAGS="$CFLAGS -belf" 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7659$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7660if ${lt_cv_cc_needs_belf+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 ac_ext=c 7664ac_cpp='$CPP $CPPFLAGS' 7665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7667ac_compiler_gnu=$ac_cv_c_compiler_gnu 7668 7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671 7672int 7673main () 7674{ 7675 7676 ; 7677 return 0; 7678} 7679_ACEOF 7680if ac_fn_c_try_link "$LINENO"; then : 7681 lt_cv_cc_needs_belf=yes 7682else 7683 lt_cv_cc_needs_belf=no 7684fi 7685rm -f core conftest.err conftest.$ac_objext \ 7686 conftest$ac_exeext conftest.$ac_ext 7687 ac_ext=c 7688ac_cpp='$CPP $CPPFLAGS' 7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7691ac_compiler_gnu=$ac_cv_c_compiler_gnu 7692 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7695$as_echo "$lt_cv_cc_needs_belf" >&6; } 7696 if test yes != "$lt_cv_cc_needs_belf"; then 7697 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7698 CFLAGS=$SAVE_CFLAGS 7699 fi 7700 ;; 7701*-*solaris*) 7702 # Find out what ABI is being produced by ac_compile, and set linker 7703 # options accordingly. 7704 echo 'int i;' > conftest.$ac_ext 7705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7706 (eval $ac_compile) 2>&5 7707 ac_status=$? 7708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7709 test $ac_status = 0; }; then 7710 case `/usr/bin/file conftest.o` in 7711 *64-bit*) 7712 case $lt_cv_prog_gnu_ld in 7713 yes*) 7714 case $host in 7715 i?86-*-solaris*|x86_64-*-solaris*) 7716 LD="${LD-ld} -m elf_x86_64" 7717 ;; 7718 sparc*-*-solaris*) 7719 LD="${LD-ld} -m elf64_sparc" 7720 ;; 7721 esac 7722 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7723 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7724 LD=${LD-ld}_sol2 7725 fi 7726 ;; 7727 *) 7728 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7729 LD="${LD-ld} -64" 7730 fi 7731 ;; 7732 esac 7733 ;; 7734 esac 7735 fi 7736 rm -rf conftest* 7737 ;; 7738esac 7739 7740need_locks=$enable_libtool_lock 7741 7742if test -n "$ac_tool_prefix"; then 7743 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7744set dummy ${ac_tool_prefix}mt; ac_word=$2 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7746$as_echo_n "checking for $ac_word... " >&6; } 7747if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 if test -n "$MANIFEST_TOOL"; then 7751 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765 done 7766IFS=$as_save_IFS 7767 7768fi 7769fi 7770MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7771if test -n "$MANIFEST_TOOL"; then 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7773$as_echo "$MANIFEST_TOOL" >&6; } 7774else 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7776$as_echo "no" >&6; } 7777fi 7778 7779 7780fi 7781if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7782 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7783 # Extract the first word of "mt", so it can be a program name with args. 7784set dummy mt; ac_word=$2 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7786$as_echo_n "checking for $ac_word... " >&6; } 7787if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 if test -n "$ac_ct_MANIFEST_TOOL"; then 7791 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7792else 7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7794for as_dir in $PATH 7795do 7796 IFS=$as_save_IFS 7797 test -z "$as_dir" && as_dir=. 7798 for ac_exec_ext in '' $ac_executable_extensions; do 7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7800 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7802 break 2 7803 fi 7804done 7805 done 7806IFS=$as_save_IFS 7807 7808fi 7809fi 7810ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7811if test -n "$ac_ct_MANIFEST_TOOL"; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7813$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7814else 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7816$as_echo "no" >&6; } 7817fi 7818 7819 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7820 MANIFEST_TOOL=":" 7821 else 7822 case $cross_compiling:$ac_tool_warned in 7823yes:) 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7826ac_tool_warned=yes ;; 7827esac 7828 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7829 fi 7830else 7831 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7832fi 7833 7834test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7836$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7837if ${lt_cv_path_mainfest_tool+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 lt_cv_path_mainfest_tool=no 7841 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7842 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7843 cat conftest.err >&5 7844 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7845 lt_cv_path_mainfest_tool=yes 7846 fi 7847 rm -f conftest* 7848fi 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7850$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7851if test yes != "$lt_cv_path_mainfest_tool"; then 7852 MANIFEST_TOOL=: 7853fi 7854 7855 7856 7857 7858 7859 7860 case $host_os in 7861 rhapsody* | darwin*) 7862 if test -n "$ac_tool_prefix"; then 7863 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7864set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866$as_echo_n "checking for $ac_word... " >&6; } 7867if ${ac_cv_prog_DSYMUTIL+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 if test -n "$DSYMUTIL"; then 7871 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7872else 7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7880 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7882 break 2 7883 fi 7884done 7885 done 7886IFS=$as_save_IFS 7887 7888fi 7889fi 7890DSYMUTIL=$ac_cv_prog_DSYMUTIL 7891if test -n "$DSYMUTIL"; then 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7893$as_echo "$DSYMUTIL" >&6; } 7894else 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7896$as_echo "no" >&6; } 7897fi 7898 7899 7900fi 7901if test -z "$ac_cv_prog_DSYMUTIL"; then 7902 ac_ct_DSYMUTIL=$DSYMUTIL 7903 # Extract the first word of "dsymutil", so it can be a program name with args. 7904set dummy dsymutil; ac_word=$2 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906$as_echo_n "checking for $ac_word... " >&6; } 7907if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 if test -n "$ac_ct_DSYMUTIL"; then 7911 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7912else 7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914for as_dir in $PATH 7915do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928fi 7929fi 7930ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7931if test -n "$ac_ct_DSYMUTIL"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7933$as_echo "$ac_ct_DSYMUTIL" >&6; } 7934else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936$as_echo "no" >&6; } 7937fi 7938 7939 if test "x$ac_ct_DSYMUTIL" = x; then 7940 DSYMUTIL=":" 7941 else 7942 case $cross_compiling:$ac_tool_warned in 7943yes:) 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7946ac_tool_warned=yes ;; 7947esac 7948 DSYMUTIL=$ac_ct_DSYMUTIL 7949 fi 7950else 7951 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7952fi 7953 7954 if test -n "$ac_tool_prefix"; then 7955 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7956set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958$as_echo_n "checking for $ac_word... " >&6; } 7959if ${ac_cv_prog_NMEDIT+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 if test -n "$NMEDIT"; then 7963 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7964else 7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966for as_dir in $PATH 7967do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976done 7977 done 7978IFS=$as_save_IFS 7979 7980fi 7981fi 7982NMEDIT=$ac_cv_prog_NMEDIT 7983if test -n "$NMEDIT"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7985$as_echo "$NMEDIT" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989fi 7990 7991 7992fi 7993if test -z "$ac_cv_prog_NMEDIT"; then 7994 ac_ct_NMEDIT=$NMEDIT 7995 # Extract the first word of "nmedit", so it can be a program name with args. 7996set dummy nmedit; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$ac_ct_NMEDIT"; then 8003 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8023if test -n "$ac_ct_NMEDIT"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8025$as_echo "$ac_ct_NMEDIT" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 if test "x$ac_ct_NMEDIT" = x; then 8032 NMEDIT=":" 8033 else 8034 case $cross_compiling:$ac_tool_warned in 8035yes:) 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8038ac_tool_warned=yes ;; 8039esac 8040 NMEDIT=$ac_ct_NMEDIT 8041 fi 8042else 8043 NMEDIT="$ac_cv_prog_NMEDIT" 8044fi 8045 8046 if test -n "$ac_tool_prefix"; then 8047 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8048set dummy ${ac_tool_prefix}lipo; ac_word=$2 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8050$as_echo_n "checking for $ac_word... " >&6; } 8051if ${ac_cv_prog_LIPO+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 if test -n "$LIPO"; then 8055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8056else 8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8058for as_dir in $PATH 8059do 8060 IFS=$as_save_IFS 8061 test -z "$as_dir" && as_dir=. 8062 for ac_exec_ext in '' $ac_executable_extensions; do 8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8064 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8066 break 2 8067 fi 8068done 8069 done 8070IFS=$as_save_IFS 8071 8072fi 8073fi 8074LIPO=$ac_cv_prog_LIPO 8075if test -n "$LIPO"; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8077$as_echo "$LIPO" >&6; } 8078else 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8080$as_echo "no" >&6; } 8081fi 8082 8083 8084fi 8085if test -z "$ac_cv_prog_LIPO"; then 8086 ac_ct_LIPO=$LIPO 8087 # Extract the first word of "lipo", so it can be a program name with args. 8088set dummy lipo; ac_word=$2 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8090$as_echo_n "checking for $ac_word... " >&6; } 8091if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 if test -n "$ac_ct_LIPO"; then 8095 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8096else 8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8098for as_dir in $PATH 8099do 8100 IFS=$as_save_IFS 8101 test -z "$as_dir" && as_dir=. 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_ac_ct_LIPO="lipo" 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108done 8109 done 8110IFS=$as_save_IFS 8111 8112fi 8113fi 8114ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8115if test -n "$ac_ct_LIPO"; then 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8117$as_echo "$ac_ct_LIPO" >&6; } 8118else 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120$as_echo "no" >&6; } 8121fi 8122 8123 if test "x$ac_ct_LIPO" = x; then 8124 LIPO=":" 8125 else 8126 case $cross_compiling:$ac_tool_warned in 8127yes:) 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8130ac_tool_warned=yes ;; 8131esac 8132 LIPO=$ac_ct_LIPO 8133 fi 8134else 8135 LIPO="$ac_cv_prog_LIPO" 8136fi 8137 8138 if test -n "$ac_tool_prefix"; then 8139 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8140set dummy ${ac_tool_prefix}otool; ac_word=$2 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8142$as_echo_n "checking for $ac_word... " >&6; } 8143if ${ac_cv_prog_OTOOL+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 if test -n "$OTOOL"; then 8147 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8148else 8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8150for as_dir in $PATH 8151do 8152 IFS=$as_save_IFS 8153 test -z "$as_dir" && as_dir=. 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8156 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160done 8161 done 8162IFS=$as_save_IFS 8163 8164fi 8165fi 8166OTOOL=$ac_cv_prog_OTOOL 8167if test -n "$OTOOL"; then 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8169$as_echo "$OTOOL" >&6; } 8170else 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172$as_echo "no" >&6; } 8173fi 8174 8175 8176fi 8177if test -z "$ac_cv_prog_OTOOL"; then 8178 ac_ct_OTOOL=$OTOOL 8179 # Extract the first word of "otool", so it can be a program name with args. 8180set dummy otool; ac_word=$2 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8182$as_echo_n "checking for $ac_word... " >&6; } 8183if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 if test -n "$ac_ct_OTOOL"; then 8187 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8188else 8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190for as_dir in $PATH 8191do 8192 IFS=$as_save_IFS 8193 test -z "$as_dir" && as_dir=. 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8196 ac_cv_prog_ac_ct_OTOOL="otool" 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200done 8201 done 8202IFS=$as_save_IFS 8203 8204fi 8205fi 8206ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8207if test -n "$ac_ct_OTOOL"; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8209$as_echo "$ac_ct_OTOOL" >&6; } 8210else 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212$as_echo "no" >&6; } 8213fi 8214 8215 if test "x$ac_ct_OTOOL" = x; then 8216 OTOOL=":" 8217 else 8218 case $cross_compiling:$ac_tool_warned in 8219yes:) 8220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8222ac_tool_warned=yes ;; 8223esac 8224 OTOOL=$ac_ct_OTOOL 8225 fi 8226else 8227 OTOOL="$ac_cv_prog_OTOOL" 8228fi 8229 8230 if test -n "$ac_tool_prefix"; then 8231 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8232set dummy ${ac_tool_prefix}otool64; ac_word=$2 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234$as_echo_n "checking for $ac_word... " >&6; } 8235if ${ac_cv_prog_OTOOL64+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237else 8238 if test -n "$OTOOL64"; then 8239 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8240else 8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8242for as_dir in $PATH 8243do 8244 IFS=$as_save_IFS 8245 test -z "$as_dir" && as_dir=. 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252done 8253 done 8254IFS=$as_save_IFS 8255 8256fi 8257fi 8258OTOOL64=$ac_cv_prog_OTOOL64 8259if test -n "$OTOOL64"; then 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8261$as_echo "$OTOOL64" >&6; } 8262else 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264$as_echo "no" >&6; } 8265fi 8266 8267 8268fi 8269if test -z "$ac_cv_prog_OTOOL64"; then 8270 ac_ct_OTOOL64=$OTOOL64 8271 # Extract the first word of "otool64", so it can be a program name with args. 8272set dummy otool64; ac_word=$2 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8274$as_echo_n "checking for $ac_word... " >&6; } 8275if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 if test -n "$ac_ct_OTOOL64"; then 8279 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8280else 8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8282for as_dir in $PATH 8283do 8284 IFS=$as_save_IFS 8285 test -z "$as_dir" && as_dir=. 8286 for ac_exec_ext in '' $ac_executable_extensions; do 8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8288 ac_cv_prog_ac_ct_OTOOL64="otool64" 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8290 break 2 8291 fi 8292done 8293 done 8294IFS=$as_save_IFS 8295 8296fi 8297fi 8298ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8299if test -n "$ac_ct_OTOOL64"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8301$as_echo "$ac_ct_OTOOL64" >&6; } 8302else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304$as_echo "no" >&6; } 8305fi 8306 8307 if test "x$ac_ct_OTOOL64" = x; then 8308 OTOOL64=":" 8309 else 8310 case $cross_compiling:$ac_tool_warned in 8311yes:) 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8314ac_tool_warned=yes ;; 8315esac 8316 OTOOL64=$ac_ct_OTOOL64 8317 fi 8318else 8319 OTOOL64="$ac_cv_prog_OTOOL64" 8320fi 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8349$as_echo_n "checking for -single_module linker flag... " >&6; } 8350if ${lt_cv_apple_cc_single_mod+:} false; then : 8351 $as_echo_n "(cached) " >&6 8352else 8353 lt_cv_apple_cc_single_mod=no 8354 if test -z "$LT_MULTI_MODULE"; then 8355 # By default we will add the -single_module flag. You can override 8356 # by either setting the environment variable LT_MULTI_MODULE 8357 # non-empty at configure time, or by adding -multi_module to the 8358 # link flags. 8359 rm -rf libconftest.dylib* 8360 echo "int foo(void){return 1;}" > conftest.c 8361 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8362-dynamiclib -Wl,-single_module conftest.c" >&5 8363 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8364 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8365 _lt_result=$? 8366 # If there is a non-empty error log, and "single_module" 8367 # appears in it, assume the flag caused a linker warning 8368 if test -s conftest.err && $GREP single_module conftest.err; then 8369 cat conftest.err >&5 8370 # Otherwise, if the output was created with a 0 exit code from 8371 # the compiler, it worked. 8372 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8373 lt_cv_apple_cc_single_mod=yes 8374 else 8375 cat conftest.err >&5 8376 fi 8377 rm -rf libconftest.dylib* 8378 rm -f conftest.* 8379 fi 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8382$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8383 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8386if ${lt_cv_ld_exported_symbols_list+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 lt_cv_ld_exported_symbols_list=no 8390 save_LDFLAGS=$LDFLAGS 8391 echo "_main" > conftest.sym 8392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395 8396int 8397main () 8398{ 8399 8400 ; 8401 return 0; 8402} 8403_ACEOF 8404if ac_fn_c_try_link "$LINENO"; then : 8405 lt_cv_ld_exported_symbols_list=yes 8406else 8407 lt_cv_ld_exported_symbols_list=no 8408fi 8409rm -f core conftest.err conftest.$ac_objext \ 8410 conftest$ac_exeext conftest.$ac_ext 8411 LDFLAGS=$save_LDFLAGS 8412 8413fi 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8415$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8416 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8418$as_echo_n "checking for -force_load linker flag... " >&6; } 8419if ${lt_cv_ld_force_load+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 lt_cv_ld_force_load=no 8423 cat > conftest.c << _LT_EOF 8424int forced_loaded() { return 2;} 8425_LT_EOF 8426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8428 echo "$AR cru libconftest.a conftest.o" >&5 8429 $AR cru libconftest.a conftest.o 2>&5 8430 echo "$RANLIB libconftest.a" >&5 8431 $RANLIB libconftest.a 2>&5 8432 cat > conftest.c << _LT_EOF 8433int main() { return 0;} 8434_LT_EOF 8435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8437 _lt_result=$? 8438 if test -s conftest.err && $GREP force_load conftest.err; then 8439 cat conftest.err >&5 8440 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8441 lt_cv_ld_force_load=yes 8442 else 8443 cat conftest.err >&5 8444 fi 8445 rm -f conftest.err libconftest.a conftest conftest.c 8446 rm -rf conftest.dSYM 8447 8448fi 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8450$as_echo "$lt_cv_ld_force_load" >&6; } 8451 case $host_os in 8452 rhapsody* | darwin1.[012]) 8453 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8454 darwin1.*) 8455 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8456 darwin*) # darwin 5.x on 8457 # if running on 10.5 or later, the deployment target defaults 8458 # to the OS version, if on x86, and 10.4, the deployment 8459 # target defaults to 10.4. Don't you love it? 8460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8461 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8462 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8463 10.[012][,.]*) 8464 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8465 10.*) 8466 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8467 esac 8468 ;; 8469 esac 8470 if test yes = "$lt_cv_apple_cc_single_mod"; then 8471 _lt_dar_single_mod='$single_module' 8472 fi 8473 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8474 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8475 else 8476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8477 fi 8478 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8479 _lt_dsymutil='~$DSYMUTIL $lib || :' 8480 else 8481 _lt_dsymutil= 8482 fi 8483 ;; 8484 esac 8485 8486# func_munge_path_list VARIABLE PATH 8487# ----------------------------------- 8488# VARIABLE is name of variable containing _space_ separated list of 8489# directories to be munged by the contents of PATH, which is string 8490# having a format: 8491# "DIR[:DIR]:" 8492# string "DIR[ DIR]" will be prepended to VARIABLE 8493# ":DIR[:DIR]" 8494# string "DIR[ DIR]" will be appended to VARIABLE 8495# "DIRP[:DIRP]::[DIRA:]DIRA" 8496# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8497# "DIRA[ DIRA]" will be appended to VARIABLE 8498# "DIR[:DIR]" 8499# VARIABLE will be replaced by "DIR[ DIR]" 8500func_munge_path_list () 8501{ 8502 case x$2 in 8503 x) 8504 ;; 8505 *:) 8506 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8507 ;; 8508 x:*) 8509 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8510 ;; 8511 *::*) 8512 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8513 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8514 ;; 8515 *) 8516 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8517 ;; 8518 esac 8519} 8520 8521for ac_header in dlfcn.h 8522do : 8523 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8524" 8525if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8526 cat >>confdefs.h <<_ACEOF 8527#define HAVE_DLFCN_H 1 8528_ACEOF 8529 8530fi 8531 8532done 8533 8534 8535 8536 8537 8538# Set options 8539 8540 8541 8542 enable_dlopen=no 8543 8544 8545 enable_win32_dll=no 8546 8547 8548 # Check whether --enable-shared was given. 8549if test "${enable_shared+set}" = set; then : 8550 enableval=$enable_shared; p=${PACKAGE-default} 8551 case $enableval in 8552 yes) enable_shared=yes ;; 8553 no) enable_shared=no ;; 8554 *) 8555 enable_shared=no 8556 # Look at the argument we got. We use all the common list separators. 8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8558 for pkg in $enableval; do 8559 IFS=$lt_save_ifs 8560 if test "X$pkg" = "X$p"; then 8561 enable_shared=yes 8562 fi 8563 done 8564 IFS=$lt_save_ifs 8565 ;; 8566 esac 8567else 8568 enable_shared=yes 8569fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 # Check whether --enable-static was given. 8580if test "${enable_static+set}" = set; then : 8581 enableval=$enable_static; p=${PACKAGE-default} 8582 case $enableval in 8583 yes) enable_static=yes ;; 8584 no) enable_static=no ;; 8585 *) 8586 enable_static=no 8587 # Look at the argument we got. We use all the common list separators. 8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8589 for pkg in $enableval; do 8590 IFS=$lt_save_ifs 8591 if test "X$pkg" = "X$p"; then 8592 enable_static=yes 8593 fi 8594 done 8595 IFS=$lt_save_ifs 8596 ;; 8597 esac 8598else 8599 enable_static=yes 8600fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611# Check whether --with-pic was given. 8612if test "${with_pic+set}" = set; then : 8613 withval=$with_pic; lt_p=${PACKAGE-default} 8614 case $withval in 8615 yes|no) pic_mode=$withval ;; 8616 *) 8617 pic_mode=default 8618 # Look at the argument we got. We use all the common list separators. 8619 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8620 for lt_pkg in $withval; do 8621 IFS=$lt_save_ifs 8622 if test "X$lt_pkg" = "X$lt_p"; then 8623 pic_mode=yes 8624 fi 8625 done 8626 IFS=$lt_save_ifs 8627 ;; 8628 esac 8629else 8630 pic_mode=default 8631fi 8632 8633 8634 8635 8636 8637 8638 8639 8640 # Check whether --enable-fast-install was given. 8641if test "${enable_fast_install+set}" = set; then : 8642 enableval=$enable_fast_install; p=${PACKAGE-default} 8643 case $enableval in 8644 yes) enable_fast_install=yes ;; 8645 no) enable_fast_install=no ;; 8646 *) 8647 enable_fast_install=no 8648 # Look at the argument we got. We use all the common list separators. 8649 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8650 for pkg in $enableval; do 8651 IFS=$lt_save_ifs 8652 if test "X$pkg" = "X$p"; then 8653 enable_fast_install=yes 8654 fi 8655 done 8656 IFS=$lt_save_ifs 8657 ;; 8658 esac 8659else 8660 enable_fast_install=yes 8661fi 8662 8663 8664 8665 8666 8667 8668 8669 8670 shared_archive_member_spec= 8671case $host,$enable_shared in 8672power*-*-aix[5-9]*,yes) 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8674$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8675 8676# Check whether --with-aix-soname was given. 8677if test "${with_aix_soname+set}" = set; then : 8678 withval=$with_aix_soname; case $withval in 8679 aix|svr4|both) 8680 ;; 8681 *) 8682 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8683 ;; 8684 esac 8685 lt_cv_with_aix_soname=$with_aix_soname 8686else 8687 if ${lt_cv_with_aix_soname+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 lt_cv_with_aix_soname=aix 8691fi 8692 8693 with_aix_soname=$lt_cv_with_aix_soname 8694fi 8695 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8697$as_echo "$with_aix_soname" >&6; } 8698 if test aix != "$with_aix_soname"; then 8699 # For the AIX way of multilib, we name the shared archive member 8700 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8701 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8702 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8703 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8704 if test 64 = "${OBJECT_MODE-32}"; then 8705 shared_archive_member_spec=shr_64 8706 else 8707 shared_archive_member_spec=shr 8708 fi 8709 fi 8710 ;; 8711*) 8712 with_aix_soname=aix 8713 ;; 8714esac 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725# This can be used to rebuild libtool when needed 8726LIBTOOL_DEPS=$ltmain 8727 8728# Always use our own libtool. 8729LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760test -z "$LN_S" && LN_S="ln -s" 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775if test -n "${ZSH_VERSION+set}"; then 8776 setopt NO_GLOB_SUBST 8777fi 8778 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8780$as_echo_n "checking for objdir... " >&6; } 8781if ${lt_cv_objdir+:} false; then : 8782 $as_echo_n "(cached) " >&6 8783else 8784 rm -f .libs 2>/dev/null 8785mkdir .libs 2>/dev/null 8786if test -d .libs; then 8787 lt_cv_objdir=.libs 8788else 8789 # MS-DOS does not allow filenames that begin with a dot. 8790 lt_cv_objdir=_libs 8791fi 8792rmdir .libs 2>/dev/null 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8795$as_echo "$lt_cv_objdir" >&6; } 8796objdir=$lt_cv_objdir 8797 8798 8799 8800 8801 8802cat >>confdefs.h <<_ACEOF 8803#define LT_OBJDIR "$lt_cv_objdir/" 8804_ACEOF 8805 8806 8807 8808 8809case $host_os in 8810aix3*) 8811 # AIX sometimes has problems with the GCC collect2 program. For some 8812 # reason, if we set the COLLECT_NAMES environment variable, the problems 8813 # vanish in a puff of smoke. 8814 if test set != "${COLLECT_NAMES+set}"; then 8815 COLLECT_NAMES= 8816 export COLLECT_NAMES 8817 fi 8818 ;; 8819esac 8820 8821# Global variables: 8822ofile=libtool 8823can_build_shared=yes 8824 8825# All known linkers require a '.a' archive for static linking (except MSVC, 8826# which needs '.lib'). 8827libext=a 8828 8829with_gnu_ld=$lt_cv_prog_gnu_ld 8830 8831old_CC=$CC 8832old_CFLAGS=$CFLAGS 8833 8834# Set sane defaults for various variables 8835test -z "$CC" && CC=cc 8836test -z "$LTCC" && LTCC=$CC 8837test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8838test -z "$LD" && LD=ld 8839test -z "$ac_objext" && ac_objext=o 8840 8841func_cc_basename $compiler 8842cc_basename=$func_cc_basename_result 8843 8844 8845# Only perform the check for file, if the check method requires it 8846test -z "$MAGIC_CMD" && MAGIC_CMD=file 8847case $deplibs_check_method in 8848file_magic*) 8849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8851$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8852if ${lt_cv_path_MAGIC_CMD+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 case $MAGIC_CMD in 8856[\\/*] | ?:[\\/]*) 8857 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8858 ;; 8859*) 8860 lt_save_MAGIC_CMD=$MAGIC_CMD 8861 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8863 for ac_dir in $ac_dummy; do 8864 IFS=$lt_save_ifs 8865 test -z "$ac_dir" && ac_dir=. 8866 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8867 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8868 if test -n "$file_magic_test_file"; then 8869 case $deplibs_check_method in 8870 "file_magic "*) 8871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8872 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8874 $EGREP "$file_magic_regex" > /dev/null; then 8875 : 8876 else 8877 cat <<_LT_EOF 1>&2 8878 8879*** Warning: the command libtool uses to detect shared libraries, 8880*** $file_magic_cmd, produces output that libtool cannot recognize. 8881*** The result is that libtool may fail to recognize shared libraries 8882*** as such. This will affect the creation of libtool libraries that 8883*** depend on shared libraries, but programs linked with such libtool 8884*** libraries will work regardless of this problem. Nevertheless, you 8885*** may want to report the problem to your system manager and/or to 8886*** bug-libtool@gnu.org 8887 8888_LT_EOF 8889 fi ;; 8890 esac 8891 fi 8892 break 8893 fi 8894 done 8895 IFS=$lt_save_ifs 8896 MAGIC_CMD=$lt_save_MAGIC_CMD 8897 ;; 8898esac 8899fi 8900 8901MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8902if test -n "$MAGIC_CMD"; then 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8904$as_echo "$MAGIC_CMD" >&6; } 8905else 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8907$as_echo "no" >&6; } 8908fi 8909 8910 8911 8912 8913 8914if test -z "$lt_cv_path_MAGIC_CMD"; then 8915 if test -n "$ac_tool_prefix"; then 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8917$as_echo_n "checking for file... " >&6; } 8918if ${lt_cv_path_MAGIC_CMD+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 case $MAGIC_CMD in 8922[\\/*] | ?:[\\/]*) 8923 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8924 ;; 8925*) 8926 lt_save_MAGIC_CMD=$MAGIC_CMD 8927 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8929 for ac_dir in $ac_dummy; do 8930 IFS=$lt_save_ifs 8931 test -z "$ac_dir" && ac_dir=. 8932 if test -f "$ac_dir/file"; then 8933 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8934 if test -n "$file_magic_test_file"; then 8935 case $deplibs_check_method in 8936 "file_magic "*) 8937 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8938 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8940 $EGREP "$file_magic_regex" > /dev/null; then 8941 : 8942 else 8943 cat <<_LT_EOF 1>&2 8944 8945*** Warning: the command libtool uses to detect shared libraries, 8946*** $file_magic_cmd, produces output that libtool cannot recognize. 8947*** The result is that libtool may fail to recognize shared libraries 8948*** as such. This will affect the creation of libtool libraries that 8949*** depend on shared libraries, but programs linked with such libtool 8950*** libraries will work regardless of this problem. Nevertheless, you 8951*** may want to report the problem to your system manager and/or to 8952*** bug-libtool@gnu.org 8953 8954_LT_EOF 8955 fi ;; 8956 esac 8957 fi 8958 break 8959 fi 8960 done 8961 IFS=$lt_save_ifs 8962 MAGIC_CMD=$lt_save_MAGIC_CMD 8963 ;; 8964esac 8965fi 8966 8967MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8968if test -n "$MAGIC_CMD"; then 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8970$as_echo "$MAGIC_CMD" >&6; } 8971else 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8973$as_echo "no" >&6; } 8974fi 8975 8976 8977 else 8978 MAGIC_CMD=: 8979 fi 8980fi 8981 8982 fi 8983 ;; 8984esac 8985 8986# Use C for the default configuration in the libtool script 8987 8988lt_save_CC=$CC 8989ac_ext=c 8990ac_cpp='$CPP $CPPFLAGS' 8991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8993ac_compiler_gnu=$ac_cv_c_compiler_gnu 8994 8995 8996# Source file extension for C test sources. 8997ac_ext=c 8998 8999# Object file extension for compiled C test sources. 9000objext=o 9001objext=$objext 9002 9003# Code to be used in simple compile tests 9004lt_simple_compile_test_code="int some_variable = 0;" 9005 9006# Code to be used in simple link tests 9007lt_simple_link_test_code='int main(){return(0);}' 9008 9009 9010 9011 9012 9013 9014 9015# If no C compiler was specified, use CC. 9016LTCC=${LTCC-"$CC"} 9017 9018# If no C compiler flags were specified, use CFLAGS. 9019LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9020 9021# Allow CC to be a program name with arguments. 9022compiler=$CC 9023 9024# Save the default compiler, since it gets overwritten when the other 9025# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9026compiler_DEFAULT=$CC 9027 9028# save warnings/boilerplate of simple test code 9029ac_outfile=conftest.$ac_objext 9030echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9031eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9032_lt_compiler_boilerplate=`cat conftest.err` 9033$RM conftest* 9034 9035ac_outfile=conftest.$ac_objext 9036echo "$lt_simple_link_test_code" >conftest.$ac_ext 9037eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9038_lt_linker_boilerplate=`cat conftest.err` 9039$RM -r conftest* 9040 9041 9042## CAVEAT EMPTOR: 9043## There is no encapsulation within the following macros, do not change 9044## the running order or otherwise move them around unless you know exactly 9045## what you are doing... 9046if test -n "$compiler"; then 9047 9048lt_prog_compiler_no_builtin_flag= 9049 9050if test yes = "$GCC"; then 9051 case $cc_basename in 9052 nvcc*) 9053 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9054 *) 9055 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9056 esac 9057 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9059$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9060if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062else 9063 lt_cv_prog_compiler_rtti_exceptions=no 9064 ac_outfile=conftest.$ac_objext 9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9066 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9067 # Insert the option either (1) after the last *FLAGS variable, or 9068 # (2) before a word containing "conftest.", or (3) at the end. 9069 # Note that $ac_compile itself does not contain backslashes and begins 9070 # with a dollar sign (not a hyphen), so the echo should work correctly. 9071 # The option is referenced via a variable to avoid confusing sed. 9072 lt_compile=`echo "$ac_compile" | $SED \ 9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9075 -e 's:$: $lt_compiler_flag:'` 9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9077 (eval "$lt_compile" 2>conftest.err) 9078 ac_status=$? 9079 cat conftest.err >&5 9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9081 if (exit $ac_status) && test -s "$ac_outfile"; then 9082 # The compiler can only warn and ignore the option if not recognized 9083 # So say no if there are warnings other than the usual output. 9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9087 lt_cv_prog_compiler_rtti_exceptions=yes 9088 fi 9089 fi 9090 $RM conftest* 9091 9092fi 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9094$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9095 9096if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9097 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9098else 9099 : 9100fi 9101 9102fi 9103 9104 9105 9106 9107 9108 9109 lt_prog_compiler_wl= 9110lt_prog_compiler_pic= 9111lt_prog_compiler_static= 9112 9113 9114 if test yes = "$GCC"; then 9115 lt_prog_compiler_wl='-Wl,' 9116 lt_prog_compiler_static='-static' 9117 9118 case $host_os in 9119 aix*) 9120 # All AIX code is PIC. 9121 if test ia64 = "$host_cpu"; then 9122 # AIX 5 now supports IA64 processor 9123 lt_prog_compiler_static='-Bstatic' 9124 fi 9125 lt_prog_compiler_pic='-fPIC' 9126 ;; 9127 9128 amigaos*) 9129 case $host_cpu in 9130 powerpc) 9131 # see comment about AmigaOS4 .so support 9132 lt_prog_compiler_pic='-fPIC' 9133 ;; 9134 m68k) 9135 # FIXME: we need at least 68020 code to build shared libraries, but 9136 # adding the '-m68020' flag to GCC prevents building anything better, 9137 # like '-m68040'. 9138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9139 ;; 9140 esac 9141 ;; 9142 9143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9144 # PIC is the default for these OSes. 9145 ;; 9146 9147 mingw* | cygwin* | pw32* | os2* | cegcc*) 9148 # This hack is so that the source file can tell whether it is being 9149 # built for inclusion in a dll (and should export symbols for example). 9150 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9151 # (--disable-auto-import) libraries 9152 lt_prog_compiler_pic='-DDLL_EXPORT' 9153 case $host_os in 9154 os2*) 9155 lt_prog_compiler_static='$wl-static' 9156 ;; 9157 esac 9158 ;; 9159 9160 darwin* | rhapsody*) 9161 # PIC is the default on this platform 9162 # Common symbols not allowed in MH_DYLIB files 9163 lt_prog_compiler_pic='-fno-common' 9164 ;; 9165 9166 haiku*) 9167 # PIC is the default for Haiku. 9168 # The "-static" flag exists, but is broken. 9169 lt_prog_compiler_static= 9170 ;; 9171 9172 hpux*) 9173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9175 # sets the default TLS model and affects inlining. 9176 case $host_cpu in 9177 hppa*64*) 9178 # +Z the default 9179 ;; 9180 *) 9181 lt_prog_compiler_pic='-fPIC' 9182 ;; 9183 esac 9184 ;; 9185 9186 interix[3-9]*) 9187 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9188 # Instead, we relocate shared libraries at runtime. 9189 ;; 9190 9191 msdosdjgpp*) 9192 # Just because we use GCC doesn't mean we suddenly get shared libraries 9193 # on systems that don't support them. 9194 lt_prog_compiler_can_build_shared=no 9195 enable_shared=no 9196 ;; 9197 9198 *nto* | *qnx*) 9199 # QNX uses GNU C++, but need to define -shared option too, otherwise 9200 # it will coredump. 9201 lt_prog_compiler_pic='-fPIC -shared' 9202 ;; 9203 9204 sysv4*MP*) 9205 if test -d /usr/nec; then 9206 lt_prog_compiler_pic=-Kconform_pic 9207 fi 9208 ;; 9209 9210 *) 9211 lt_prog_compiler_pic='-fPIC' 9212 ;; 9213 esac 9214 9215 case $cc_basename in 9216 nvcc*) # Cuda Compiler Driver 2.2 9217 lt_prog_compiler_wl='-Xlinker ' 9218 if test -n "$lt_prog_compiler_pic"; then 9219 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9220 fi 9221 ;; 9222 esac 9223 else 9224 # PORTME Check for flag to pass linker flags through the system compiler. 9225 case $host_os in 9226 aix*) 9227 lt_prog_compiler_wl='-Wl,' 9228 if test ia64 = "$host_cpu"; then 9229 # AIX 5 now supports IA64 processor 9230 lt_prog_compiler_static='-Bstatic' 9231 else 9232 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9233 fi 9234 ;; 9235 9236 darwin* | rhapsody*) 9237 # PIC is the default on this platform 9238 # Common symbols not allowed in MH_DYLIB files 9239 lt_prog_compiler_pic='-fno-common' 9240 case $cc_basename in 9241 nagfor*) 9242 # NAG Fortran compiler 9243 lt_prog_compiler_wl='-Wl,-Wl,,' 9244 lt_prog_compiler_pic='-PIC' 9245 lt_prog_compiler_static='-Bstatic' 9246 ;; 9247 esac 9248 ;; 9249 9250 mingw* | cygwin* | pw32* | os2* | cegcc*) 9251 # This hack is so that the source file can tell whether it is being 9252 # built for inclusion in a dll (and should export symbols for example). 9253 lt_prog_compiler_pic='-DDLL_EXPORT' 9254 case $host_os in 9255 os2*) 9256 lt_prog_compiler_static='$wl-static' 9257 ;; 9258 esac 9259 ;; 9260 9261 hpux9* | hpux10* | hpux11*) 9262 lt_prog_compiler_wl='-Wl,' 9263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9264 # not for PA HP-UX. 9265 case $host_cpu in 9266 hppa*64*|ia64*) 9267 # +Z the default 9268 ;; 9269 *) 9270 lt_prog_compiler_pic='+Z' 9271 ;; 9272 esac 9273 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9274 lt_prog_compiler_static='$wl-a ${wl}archive' 9275 ;; 9276 9277 irix5* | irix6* | nonstopux*) 9278 lt_prog_compiler_wl='-Wl,' 9279 # PIC (with -KPIC) is the default. 9280 lt_prog_compiler_static='-non_shared' 9281 ;; 9282 9283 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9284 case $cc_basename in 9285 # old Intel for x86_64, which still supported -KPIC. 9286 ecc*) 9287 lt_prog_compiler_wl='-Wl,' 9288 lt_prog_compiler_pic='-KPIC' 9289 lt_prog_compiler_static='-static' 9290 ;; 9291 # icc used to be incompatible with GCC. 9292 # ICC 10 doesn't accept -KPIC any more. 9293 icc* | ifort*) 9294 lt_prog_compiler_wl='-Wl,' 9295 lt_prog_compiler_pic='-fPIC' 9296 lt_prog_compiler_static='-static' 9297 ;; 9298 # Lahey Fortran 8.1. 9299 lf95*) 9300 lt_prog_compiler_wl='-Wl,' 9301 lt_prog_compiler_pic='--shared' 9302 lt_prog_compiler_static='--static' 9303 ;; 9304 nagfor*) 9305 # NAG Fortran compiler 9306 lt_prog_compiler_wl='-Wl,-Wl,,' 9307 lt_prog_compiler_pic='-PIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 ;; 9310 tcc*) 9311 # Fabrice Bellard et al's Tiny C Compiler 9312 lt_prog_compiler_wl='-Wl,' 9313 lt_prog_compiler_pic='-fPIC' 9314 lt_prog_compiler_static='-static' 9315 ;; 9316 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9317 # Portland Group compilers (*not* the Pentium gcc compiler, 9318 # which looks to be a dead project) 9319 lt_prog_compiler_wl='-Wl,' 9320 lt_prog_compiler_pic='-fpic' 9321 lt_prog_compiler_static='-Bstatic' 9322 ;; 9323 ccc*) 9324 lt_prog_compiler_wl='-Wl,' 9325 # All Alpha code is PIC. 9326 lt_prog_compiler_static='-non_shared' 9327 ;; 9328 xl* | bgxl* | bgf* | mpixl*) 9329 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9330 lt_prog_compiler_wl='-Wl,' 9331 lt_prog_compiler_pic='-qpic' 9332 lt_prog_compiler_static='-qstaticlink' 9333 ;; 9334 *) 9335 case `$CC -V 2>&1 | sed 5q` in 9336 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9337 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9338 lt_prog_compiler_pic='-KPIC' 9339 lt_prog_compiler_static='-Bstatic' 9340 lt_prog_compiler_wl='' 9341 ;; 9342 *Sun\ F* | *Sun*Fortran*) 9343 lt_prog_compiler_pic='-KPIC' 9344 lt_prog_compiler_static='-Bstatic' 9345 lt_prog_compiler_wl='-Qoption ld ' 9346 ;; 9347 *Sun\ C*) 9348 # Sun C 5.9 9349 lt_prog_compiler_pic='-KPIC' 9350 lt_prog_compiler_static='-Bstatic' 9351 lt_prog_compiler_wl='-Wl,' 9352 ;; 9353 *Intel*\ [CF]*Compiler*) 9354 lt_prog_compiler_wl='-Wl,' 9355 lt_prog_compiler_pic='-fPIC' 9356 lt_prog_compiler_static='-static' 9357 ;; 9358 *Portland\ Group*) 9359 lt_prog_compiler_wl='-Wl,' 9360 lt_prog_compiler_pic='-fpic' 9361 lt_prog_compiler_static='-Bstatic' 9362 ;; 9363 esac 9364 ;; 9365 esac 9366 ;; 9367 9368 newsos6) 9369 lt_prog_compiler_pic='-KPIC' 9370 lt_prog_compiler_static='-Bstatic' 9371 ;; 9372 9373 *nto* | *qnx*) 9374 # QNX uses GNU C++, but need to define -shared option too, otherwise 9375 # it will coredump. 9376 lt_prog_compiler_pic='-fPIC -shared' 9377 ;; 9378 9379 osf3* | osf4* | osf5*) 9380 lt_prog_compiler_wl='-Wl,' 9381 # All OSF/1 code is PIC. 9382 lt_prog_compiler_static='-non_shared' 9383 ;; 9384 9385 rdos*) 9386 lt_prog_compiler_static='-non_shared' 9387 ;; 9388 9389 solaris*) 9390 lt_prog_compiler_pic='-KPIC' 9391 lt_prog_compiler_static='-Bstatic' 9392 case $cc_basename in 9393 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9394 lt_prog_compiler_wl='-Qoption ld ';; 9395 *) 9396 lt_prog_compiler_wl='-Wl,';; 9397 esac 9398 ;; 9399 9400 sunos4*) 9401 lt_prog_compiler_wl='-Qoption ld ' 9402 lt_prog_compiler_pic='-PIC' 9403 lt_prog_compiler_static='-Bstatic' 9404 ;; 9405 9406 sysv4 | sysv4.2uw2* | sysv4.3*) 9407 lt_prog_compiler_wl='-Wl,' 9408 lt_prog_compiler_pic='-KPIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 ;; 9411 9412 sysv4*MP*) 9413 if test -d /usr/nec; then 9414 lt_prog_compiler_pic='-Kconform_pic' 9415 lt_prog_compiler_static='-Bstatic' 9416 fi 9417 ;; 9418 9419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9420 lt_prog_compiler_wl='-Wl,' 9421 lt_prog_compiler_pic='-KPIC' 9422 lt_prog_compiler_static='-Bstatic' 9423 ;; 9424 9425 unicos*) 9426 lt_prog_compiler_wl='-Wl,' 9427 lt_prog_compiler_can_build_shared=no 9428 ;; 9429 9430 uts4*) 9431 lt_prog_compiler_pic='-pic' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 *) 9436 lt_prog_compiler_can_build_shared=no 9437 ;; 9438 esac 9439 fi 9440 9441case $host_os in 9442 # For platforms that do not support PIC, -DPIC is meaningless: 9443 *djgpp*) 9444 lt_prog_compiler_pic= 9445 ;; 9446 *) 9447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9448 ;; 9449esac 9450 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9452$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9453if ${lt_cv_prog_compiler_pic+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9459$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9460lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9461 9462# 9463# Check to make sure the PIC flag actually works. 9464# 9465if test -n "$lt_prog_compiler_pic"; then 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9467$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9468if ${lt_cv_prog_compiler_pic_works+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470else 9471 lt_cv_prog_compiler_pic_works=no 9472 ac_outfile=conftest.$ac_objext 9473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9475 # Insert the option either (1) after the last *FLAGS variable, or 9476 # (2) before a word containing "conftest.", or (3) at the end. 9477 # Note that $ac_compile itself does not contain backslashes and begins 9478 # with a dollar sign (not a hyphen), so the echo should work correctly. 9479 # The option is referenced via a variable to avoid confusing sed. 9480 lt_compile=`echo "$ac_compile" | $SED \ 9481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9483 -e 's:$: $lt_compiler_flag:'` 9484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9485 (eval "$lt_compile" 2>conftest.err) 9486 ac_status=$? 9487 cat conftest.err >&5 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 if (exit $ac_status) && test -s "$ac_outfile"; then 9490 # The compiler can only warn and ignore the option if not recognized 9491 # So say no if there are warnings other than the usual output. 9492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9495 lt_cv_prog_compiler_pic_works=yes 9496 fi 9497 fi 9498 $RM conftest* 9499 9500fi 9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9502$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9503 9504if test yes = "$lt_cv_prog_compiler_pic_works"; then 9505 case $lt_prog_compiler_pic in 9506 "" | " "*) ;; 9507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9508 esac 9509else 9510 lt_prog_compiler_pic= 9511 lt_prog_compiler_can_build_shared=no 9512fi 9513 9514fi 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526# 9527# Check to make sure the static flag actually works. 9528# 9529wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9531$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9532if ${lt_cv_prog_compiler_static_works+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534else 9535 lt_cv_prog_compiler_static_works=no 9536 save_LDFLAGS=$LDFLAGS 9537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9538 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9540 # The linker can only warn and ignore the option if not recognized 9541 # So say no if there are warnings 9542 if test -s conftest.err; then 9543 # Append any errors to the config.log. 9544 cat conftest.err 1>&5 9545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9547 if diff conftest.exp conftest.er2 >/dev/null; then 9548 lt_cv_prog_compiler_static_works=yes 9549 fi 9550 else 9551 lt_cv_prog_compiler_static_works=yes 9552 fi 9553 fi 9554 $RM -r conftest* 9555 LDFLAGS=$save_LDFLAGS 9556 9557fi 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9559$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9560 9561if test yes = "$lt_cv_prog_compiler_static_works"; then 9562 : 9563else 9564 lt_prog_compiler_static= 9565fi 9566 9567 9568 9569 9570 9571 9572 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9574$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9575if ${lt_cv_prog_compiler_c_o+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 lt_cv_prog_compiler_c_o=no 9579 $RM -r conftest 2>/dev/null 9580 mkdir conftest 9581 cd conftest 9582 mkdir out 9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9584 9585 lt_compiler_flag="-o out/conftest2.$ac_objext" 9586 # Insert the option either (1) after the last *FLAGS variable, or 9587 # (2) before a word containing "conftest.", or (3) at the end. 9588 # Note that $ac_compile itself does not contain backslashes and begins 9589 # with a dollar sign (not a hyphen), so the echo should work correctly. 9590 lt_compile=`echo "$ac_compile" | $SED \ 9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9593 -e 's:$: $lt_compiler_flag:'` 9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9595 (eval "$lt_compile" 2>out/conftest.err) 9596 ac_status=$? 9597 cat out/conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9600 then 9601 # The compiler can only warn and ignore the option if not recognized 9602 # So say no if there are warnings 9603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9606 lt_cv_prog_compiler_c_o=yes 9607 fi 9608 fi 9609 chmod u+w . 2>&5 9610 $RM conftest* 9611 # SGI C++ compiler will create directory out/ii_files/ for 9612 # template instantiation 9613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9614 $RM out/* && rmdir out 9615 cd .. 9616 $RM -r conftest 9617 $RM conftest* 9618 9619fi 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9621$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9622 9623 9624 9625 9626 9627 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9629$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9630if ${lt_cv_prog_compiler_c_o+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 lt_cv_prog_compiler_c_o=no 9634 $RM -r conftest 2>/dev/null 9635 mkdir conftest 9636 cd conftest 9637 mkdir out 9638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9639 9640 lt_compiler_flag="-o out/conftest2.$ac_objext" 9641 # Insert the option either (1) after the last *FLAGS variable, or 9642 # (2) before a word containing "conftest.", or (3) at the end. 9643 # Note that $ac_compile itself does not contain backslashes and begins 9644 # with a dollar sign (not a hyphen), so the echo should work correctly. 9645 lt_compile=`echo "$ac_compile" | $SED \ 9646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9648 -e 's:$: $lt_compiler_flag:'` 9649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9650 (eval "$lt_compile" 2>out/conftest.err) 9651 ac_status=$? 9652 cat out/conftest.err >&5 9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9654 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9655 then 9656 # The compiler can only warn and ignore the option if not recognized 9657 # So say no if there are warnings 9658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9661 lt_cv_prog_compiler_c_o=yes 9662 fi 9663 fi 9664 chmod u+w . 2>&5 9665 $RM conftest* 9666 # SGI C++ compiler will create directory out/ii_files/ for 9667 # template instantiation 9668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9669 $RM out/* && rmdir out 9670 cd .. 9671 $RM -r conftest 9672 $RM conftest* 9673 9674fi 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9676$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9677 9678 9679 9680 9681hard_links=nottested 9682if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9683 # do not overwrite the value of need_locks provided by the user 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9685$as_echo_n "checking if we can lock with hard links... " >&6; } 9686 hard_links=yes 9687 $RM conftest* 9688 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9689 touch conftest.a 9690 ln conftest.a conftest.b 2>&5 || hard_links=no 9691 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9693$as_echo "$hard_links" >&6; } 9694 if test no = "$hard_links"; then 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9696$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9697 need_locks=warn 9698 fi 9699else 9700 need_locks=no 9701fi 9702 9703 9704 9705 9706 9707 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9709$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9710 9711 runpath_var= 9712 allow_undefined_flag= 9713 always_export_symbols=no 9714 archive_cmds= 9715 archive_expsym_cmds= 9716 compiler_needs_object=no 9717 enable_shared_with_static_runtimes=no 9718 export_dynamic_flag_spec= 9719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9720 hardcode_automatic=no 9721 hardcode_direct=no 9722 hardcode_direct_absolute=no 9723 hardcode_libdir_flag_spec= 9724 hardcode_libdir_separator= 9725 hardcode_minus_L=no 9726 hardcode_shlibpath_var=unsupported 9727 inherit_rpath=no 9728 link_all_deplibs=unknown 9729 module_cmds= 9730 module_expsym_cmds= 9731 old_archive_from_new_cmds= 9732 old_archive_from_expsyms_cmds= 9733 thread_safe_flag_spec= 9734 whole_archive_flag_spec= 9735 # include_expsyms should be a list of space-separated symbols to be *always* 9736 # included in the symbol list 9737 include_expsyms= 9738 # exclude_expsyms can be an extended regexp of symbols to exclude 9739 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9740 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9741 # as well as any symbol that contains 'd'. 9742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9744 # platforms (ab)use it in PIC code, but their linkers get confused if 9745 # the symbol is explicitly referenced. Since portable code cannot 9746 # rely on this symbol name, it's probably fine to never include it in 9747 # preloaded symbol tables. 9748 # Exclude shared library initialization/finalization symbols. 9749 extract_expsyms_cmds= 9750 9751 case $host_os in 9752 cygwin* | mingw* | pw32* | cegcc*) 9753 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9754 # When not using gcc, we currently assume that we are using 9755 # Microsoft Visual C++. 9756 if test yes != "$GCC"; then 9757 with_gnu_ld=no 9758 fi 9759 ;; 9760 interix*) 9761 # we just hope/assume this is gcc and not c89 (= MSVC++) 9762 with_gnu_ld=yes 9763 ;; 9764 openbsd* | bitrig*) 9765 with_gnu_ld=no 9766 ;; 9767 esac 9768 9769 ld_shlibs=yes 9770 9771 # On some targets, GNU ld is compatible enough with the native linker 9772 # that we're better off using the native interface for both. 9773 lt_use_gnu_ld_interface=no 9774 if test yes = "$with_gnu_ld"; then 9775 case $host_os in 9776 aix*) 9777 # The AIX port of GNU ld has always aspired to compatibility 9778 # with the native linker. However, as the warning in the GNU ld 9779 # block says, versions before 2.19.5* couldn't really create working 9780 # shared libraries, regardless of the interface used. 9781 case `$LD -v 2>&1` in 9782 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9783 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9784 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9785 *) 9786 lt_use_gnu_ld_interface=yes 9787 ;; 9788 esac 9789 ;; 9790 *) 9791 lt_use_gnu_ld_interface=yes 9792 ;; 9793 esac 9794 fi 9795 9796 if test yes = "$lt_use_gnu_ld_interface"; then 9797 # If archive_cmds runs LD, not CC, wlarc should be empty 9798 wlarc='$wl' 9799 9800 # Set some defaults for GNU ld with shared library support. These 9801 # are reset later if shared libraries are not supported. Putting them 9802 # here allows them to be overridden if necessary. 9803 runpath_var=LD_RUN_PATH 9804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9805 export_dynamic_flag_spec='$wl--export-dynamic' 9806 # ancient GNU ld didn't support --whole-archive et. al. 9807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9808 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9809 else 9810 whole_archive_flag_spec= 9811 fi 9812 supports_anon_versioning=no 9813 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9814 *GNU\ gold*) supports_anon_versioning=yes ;; 9815 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9818 *\ 2.11.*) ;; # other 2.11 versions 9819 *) supports_anon_versioning=yes ;; 9820 esac 9821 9822 # See if GNU ld supports shared libraries. 9823 case $host_os in 9824 aix[3-9]*) 9825 # On AIX/PPC, the GNU linker is very broken 9826 if test ia64 != "$host_cpu"; then 9827 ld_shlibs=no 9828 cat <<_LT_EOF 1>&2 9829 9830*** Warning: the GNU linker, at least up to release 2.19, is reported 9831*** to be unable to reliably create shared libraries on AIX. 9832*** Therefore, libtool is disabling shared libraries support. If you 9833*** really care for shared libraries, you may want to install binutils 9834*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9835*** You will then need to restart the configuration process. 9836 9837_LT_EOF 9838 fi 9839 ;; 9840 9841 amigaos*) 9842 case $host_cpu in 9843 powerpc) 9844 # see comment about AmigaOS4 .so support 9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9846 archive_expsym_cmds='' 9847 ;; 9848 m68k) 9849 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)' 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_minus_L=yes 9852 ;; 9853 esac 9854 ;; 9855 9856 beos*) 9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9858 allow_undefined_flag=unsupported 9859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9860 # support --undefined. This deserves some investigation. FIXME 9861 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9862 else 9863 ld_shlibs=no 9864 fi 9865 ;; 9866 9867 cygwin* | mingw* | pw32* | cegcc*) 9868 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9869 # as there is no search path for DLLs. 9870 hardcode_libdir_flag_spec='-L$libdir' 9871 export_dynamic_flag_spec='$wl--export-all-symbols' 9872 allow_undefined_flag=unsupported 9873 always_export_symbols=no 9874 enable_shared_with_static_runtimes=yes 9875 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' 9876 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9877 9878 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9880 # If the export-symbols file already is a .def file, use it as 9881 # is; otherwise, prepend EXPORTS... 9882 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9883 cp $export_symbols $output_objdir/$soname.def; 9884 else 9885 echo EXPORTS > $output_objdir/$soname.def; 9886 cat $export_symbols >> $output_objdir/$soname.def; 9887 fi~ 9888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9889 else 9890 ld_shlibs=no 9891 fi 9892 ;; 9893 9894 haiku*) 9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9896 link_all_deplibs=yes 9897 ;; 9898 9899 os2*) 9900 hardcode_libdir_flag_spec='-L$libdir' 9901 hardcode_minus_L=yes 9902 allow_undefined_flag=unsupported 9903 shrext_cmds=.dll 9904 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9907 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9908 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9909 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9910 emximp -o $lib $output_objdir/$libname.def' 9911 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9912 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9913 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9914 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9915 prefix_cmds="$SED"~ 9916 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9917 prefix_cmds="$prefix_cmds -e 1d"; 9918 fi~ 9919 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9920 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9922 emximp -o $lib $output_objdir/$libname.def' 9923 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9924 enable_shared_with_static_runtimes=yes 9925 ;; 9926 9927 interix[3-9]*) 9928 hardcode_direct=no 9929 hardcode_shlibpath_var=no 9930 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9931 export_dynamic_flag_spec='$wl-E' 9932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9933 # Instead, shared libraries are loaded at an image base (0x10000000 by 9934 # default) and relocated if they conflict, which is a slow very memory 9935 # consuming and fragmenting process. To avoid this, we pick a random, 9936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9937 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9939 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' 9940 ;; 9941 9942 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9943 tmp_diet=no 9944 if test linux-dietlibc = "$host_os"; then 9945 case $cc_basename in 9946 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9947 esac 9948 fi 9949 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9950 && test no = "$tmp_diet" 9951 then 9952 tmp_addflag=' $pic_flag' 9953 tmp_sharedflag='-shared' 9954 case $cc_basename,$host_cpu in 9955 pgcc*) # Portland Group C compiler 9956 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' 9957 tmp_addflag=' $pic_flag' 9958 ;; 9959 pgf77* | pgf90* | pgf95* | pgfortran*) 9960 # Portland Group f77 and f90 compilers 9961 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' 9962 tmp_addflag=' $pic_flag -Mnomain' ;; 9963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9964 tmp_addflag=' -i_dynamic' ;; 9965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9966 tmp_addflag=' -i_dynamic -nofor_main' ;; 9967 ifc* | ifort*) # Intel Fortran compiler 9968 tmp_addflag=' -nofor_main' ;; 9969 lf95*) # Lahey Fortran 8.1 9970 whole_archive_flag_spec= 9971 tmp_sharedflag='--shared' ;; 9972 nagfor*) # NAGFOR 5.3 9973 tmp_sharedflag='-Wl,-shared' ;; 9974 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9975 tmp_sharedflag='-qmkshrobj' 9976 tmp_addflag= ;; 9977 nvcc*) # Cuda Compiler Driver 2.2 9978 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' 9979 compiler_needs_object=yes 9980 ;; 9981 esac 9982 case `$CC -V 2>&1 | sed 5q` in 9983 *Sun\ C*) # Sun C 5.9 9984 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' 9985 compiler_needs_object=yes 9986 tmp_sharedflag='-G' ;; 9987 *Sun\ F*) # Sun Fortran 8.3 9988 tmp_sharedflag='-G' ;; 9989 esac 9990 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9991 9992 if test yes = "$supports_anon_versioning"; then 9993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9995 echo "local: *; };" >> $output_objdir/$libname.ver~ 9996 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9997 fi 9998 9999 case $cc_basename in 10000 tcc*) 10001 export_dynamic_flag_spec='-rdynamic' 10002 ;; 10003 xlf* | bgf* | bgxlf* | mpixlf*) 10004 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10005 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10007 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10008 if test yes = "$supports_anon_versioning"; then 10009 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10011 echo "local: *; };" >> $output_objdir/$libname.ver~ 10012 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10013 fi 10014 ;; 10015 esac 10016 else 10017 ld_shlibs=no 10018 fi 10019 ;; 10020 10021 netbsd*) 10022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10023 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10024 wlarc= 10025 else 10026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10027 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10028 fi 10029 ;; 10030 10031 solaris*) 10032 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10033 ld_shlibs=no 10034 cat <<_LT_EOF 1>&2 10035 10036*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10037*** create shared libraries on Solaris systems. Therefore, libtool 10038*** is disabling shared libraries support. We urge you to upgrade GNU 10039*** binutils to release 2.9.1 or newer. Another option is to modify 10040*** your PATH or compiler configuration so that the native linker is 10041*** used, and then restart. 10042 10043_LT_EOF 10044 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10046 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10047 else 10048 ld_shlibs=no 10049 fi 10050 ;; 10051 10052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10053 case `$LD -v 2>&1` in 10054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10055 ld_shlibs=no 10056 cat <<_LT_EOF 1>&2 10057 10058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10059*** reliably create shared libraries on SCO systems. Therefore, libtool 10060*** is disabling shared libraries support. We urge you to upgrade GNU 10061*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10062*** your PATH or compiler configuration so that the native linker is 10063*** used, and then restart. 10064 10065_LT_EOF 10066 ;; 10067 *) 10068 # For security reasons, it is highly recommended that you always 10069 # use absolute paths for naming shared libraries, and exclude the 10070 # DT_RUNPATH tag from executables and libraries. But doing so 10071 # requires that you compile everything twice, which is a pain. 10072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10073 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10076 else 10077 ld_shlibs=no 10078 fi 10079 ;; 10080 esac 10081 ;; 10082 10083 sunos4*) 10084 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10085 wlarc= 10086 hardcode_direct=yes 10087 hardcode_shlibpath_var=no 10088 ;; 10089 10090 *) 10091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10093 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10094 else 10095 ld_shlibs=no 10096 fi 10097 ;; 10098 esac 10099 10100 if test no = "$ld_shlibs"; then 10101 runpath_var= 10102 hardcode_libdir_flag_spec= 10103 export_dynamic_flag_spec= 10104 whole_archive_flag_spec= 10105 fi 10106 else 10107 # PORTME fill in a description of your system's linker (not GNU ld) 10108 case $host_os in 10109 aix3*) 10110 allow_undefined_flag=unsupported 10111 always_export_symbols=yes 10112 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' 10113 # Note: this linker hardcodes the directories in LIBPATH if there 10114 # are no directories specified by -L. 10115 hardcode_minus_L=yes 10116 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10117 # Neither direct hardcoding nor static linking is supported with a 10118 # broken collect2. 10119 hardcode_direct=unsupported 10120 fi 10121 ;; 10122 10123 aix[4-9]*) 10124 if test ia64 = "$host_cpu"; then 10125 # On IA64, the linker does run time linking by default, so we don't 10126 # have to do anything special. 10127 aix_use_runtimelinking=no 10128 exp_sym_flag='-Bexport' 10129 no_entry_flag= 10130 else 10131 # If we're using GNU nm, then we don't want the "-C" option. 10132 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10133 # Without the "-l" option, or with the "-B" option, AIX nm treats 10134 # weak defined symbols like other global defined symbols, whereas 10135 # GNU nm marks them as "W". 10136 # While the 'weak' keyword is ignored in the Export File, we need 10137 # it in the Import File for the 'aix-soname' feature, so we have 10138 # to replace the "-B" option with "-P" for AIX nm. 10139 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10140 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10141 else 10142 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10143 fi 10144 aix_use_runtimelinking=no 10145 10146 # Test if we are trying to use run time linking or normal 10147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10148 # have runtime linking enabled, and use it for executables. 10149 # For shared libraries, we enable/disable runtime linking 10150 # depending on the kind of the shared library created - 10151 # when "with_aix_soname,aix_use_runtimelinking" is: 10152 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10153 # "aix,yes" lib.so shared, rtl:yes, for executables 10154 # lib.a static archive 10155 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10156 # lib.a(lib.so.V) shared, rtl:no, for executables 10157 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10158 # lib.a(lib.so.V) shared, rtl:no 10159 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10160 # lib.a static archive 10161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10162 for ld_flag in $LDFLAGS; do 10163 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10164 aix_use_runtimelinking=yes 10165 break 10166 fi 10167 done 10168 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10169 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10170 # so we don't have lib.a shared libs to link our executables. 10171 # We have to force runtime linking in this case. 10172 aix_use_runtimelinking=yes 10173 LDFLAGS="$LDFLAGS -Wl,-brtl" 10174 fi 10175 ;; 10176 esac 10177 10178 exp_sym_flag='-bexport' 10179 no_entry_flag='-bnoentry' 10180 fi 10181 10182 # When large executables or shared objects are built, AIX ld can 10183 # have problems creating the table of contents. If linking a library 10184 # or program results in "error TOC overflow" add -mminimal-toc to 10185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10187 10188 archive_cmds='' 10189 hardcode_direct=yes 10190 hardcode_direct_absolute=yes 10191 hardcode_libdir_separator=':' 10192 link_all_deplibs=yes 10193 file_list_spec='$wl-f,' 10194 case $with_aix_soname,$aix_use_runtimelinking in 10195 aix,*) ;; # traditional, no import file 10196 svr4,* | *,yes) # use import file 10197 # The Import File defines what to hardcode. 10198 hardcode_direct=no 10199 hardcode_direct_absolute=no 10200 ;; 10201 esac 10202 10203 if test yes = "$GCC"; then 10204 case $host_os in aix4.[012]|aix4.[012].*) 10205 # We only want to do this on AIX 4.2 and lower, the check 10206 # below for broken collect2 doesn't work under 4.3+ 10207 collect2name=`$CC -print-prog-name=collect2` 10208 if test -f "$collect2name" && 10209 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10210 then 10211 # We have reworked collect2 10212 : 10213 else 10214 # We have old collect2 10215 hardcode_direct=unsupported 10216 # It fails to find uninstalled libraries when the uninstalled 10217 # path is not listed in the libpath. Setting hardcode_minus_L 10218 # to unsupported forces relinking 10219 hardcode_minus_L=yes 10220 hardcode_libdir_flag_spec='-L$libdir' 10221 hardcode_libdir_separator= 10222 fi 10223 ;; 10224 esac 10225 shared_flag='-shared' 10226 if test yes = "$aix_use_runtimelinking"; then 10227 shared_flag="$shared_flag "'$wl-G' 10228 fi 10229 # Need to ensure runtime linking is disabled for the traditional 10230 # shared library, or the linker may eventually find shared libraries 10231 # /with/ Import File - we do not want to mix them. 10232 shared_flag_aix='-shared' 10233 shared_flag_svr4='-shared $wl-G' 10234 else 10235 # not using gcc 10236 if test ia64 = "$host_cpu"; then 10237 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10238 # chokes on -Wl,-G. The following line is correct: 10239 shared_flag='-G' 10240 else 10241 if test yes = "$aix_use_runtimelinking"; then 10242 shared_flag='$wl-G' 10243 else 10244 shared_flag='$wl-bM:SRE' 10245 fi 10246 shared_flag_aix='$wl-bM:SRE' 10247 shared_flag_svr4='$wl-G' 10248 fi 10249 fi 10250 10251 export_dynamic_flag_spec='$wl-bexpall' 10252 # It seems that -bexpall does not export symbols beginning with 10253 # underscore (_), so it is better to generate a list of symbols to export. 10254 always_export_symbols=yes 10255 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10256 # Warning - without using the other runtime loading flags (-brtl), 10257 # -berok will link without error, but may produce a broken library. 10258 allow_undefined_flag='-berok' 10259 # Determine the default libpath from the value encoded in an 10260 # empty executable. 10261 if test set = "${lt_cv_aix_libpath+set}"; then 10262 aix_libpath=$lt_cv_aix_libpath 10263else 10264 if ${lt_cv_aix_libpath_+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269 10270int 10271main () 10272{ 10273 10274 ; 10275 return 0; 10276} 10277_ACEOF 10278if ac_fn_c_try_link "$LINENO"; then : 10279 10280 lt_aix_libpath_sed=' 10281 /Import File Strings/,/^$/ { 10282 /^0/ { 10283 s/^0 *\([^ ]*\) *$/\1/ 10284 p 10285 } 10286 }' 10287 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10288 # Check for a 64-bit object if we didn't find anything. 10289 if test -z "$lt_cv_aix_libpath_"; then 10290 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10291 fi 10292fi 10293rm -f core conftest.err conftest.$ac_objext \ 10294 conftest$ac_exeext conftest.$ac_ext 10295 if test -z "$lt_cv_aix_libpath_"; then 10296 lt_cv_aix_libpath_=/usr/lib:/lib 10297 fi 10298 10299fi 10300 10301 aix_libpath=$lt_cv_aix_libpath_ 10302fi 10303 10304 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10305 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10306 else 10307 if test ia64 = "$host_cpu"; then 10308 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10309 allow_undefined_flag="-z nodefs" 10310 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" 10311 else 10312 # Determine the default libpath from the value encoded in an 10313 # empty executable. 10314 if test set = "${lt_cv_aix_libpath+set}"; then 10315 aix_libpath=$lt_cv_aix_libpath 10316else 10317 if ${lt_cv_aix_libpath_+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322 10323int 10324main () 10325{ 10326 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO"; then : 10332 10333 lt_aix_libpath_sed=' 10334 /Import File Strings/,/^$/ { 10335 /^0/ { 10336 s/^0 *\([^ ]*\) *$/\1/ 10337 p 10338 } 10339 }' 10340 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10341 # Check for a 64-bit object if we didn't find anything. 10342 if test -z "$lt_cv_aix_libpath_"; then 10343 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10344 fi 10345fi 10346rm -f core conftest.err conftest.$ac_objext \ 10347 conftest$ac_exeext conftest.$ac_ext 10348 if test -z "$lt_cv_aix_libpath_"; then 10349 lt_cv_aix_libpath_=/usr/lib:/lib 10350 fi 10351 10352fi 10353 10354 aix_libpath=$lt_cv_aix_libpath_ 10355fi 10356 10357 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10358 # Warning - without using the other run time loading flags, 10359 # -berok will link without error, but may produce a broken library. 10360 no_undefined_flag=' $wl-bernotok' 10361 allow_undefined_flag=' $wl-berok' 10362 if test yes = "$with_gnu_ld"; then 10363 # We only use this code for GNU lds that support --whole-archive. 10364 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10365 else 10366 # Exported symbols can be pulled into shared objects from archives 10367 whole_archive_flag_spec='$convenience' 10368 fi 10369 archive_cmds_need_lc=yes 10370 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10371 # -brtl affects multiple linker settings, -berok does not and is overridden later 10372 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10373 if test svr4 != "$with_aix_soname"; then 10374 # This is similar to how AIX traditionally builds its shared libraries. 10375 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10376 fi 10377 if test aix != "$with_aix_soname"; then 10378 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10379 else 10380 # used by -dlpreopen to get the symbols 10381 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10382 fi 10383 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10384 fi 10385 fi 10386 ;; 10387 10388 amigaos*) 10389 case $host_cpu in 10390 powerpc) 10391 # see comment about AmigaOS4 .so support 10392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10393 archive_expsym_cmds='' 10394 ;; 10395 m68k) 10396 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)' 10397 hardcode_libdir_flag_spec='-L$libdir' 10398 hardcode_minus_L=yes 10399 ;; 10400 esac 10401 ;; 10402 10403 bsdi[45]*) 10404 export_dynamic_flag_spec=-rdynamic 10405 ;; 10406 10407 cygwin* | mingw* | pw32* | cegcc*) 10408 # When not using gcc, we currently assume that we are using 10409 # Microsoft Visual C++. 10410 # hardcode_libdir_flag_spec is actually meaningless, as there is 10411 # no search path for DLLs. 10412 case $cc_basename in 10413 cl*) 10414 # Native MSVC 10415 hardcode_libdir_flag_spec=' ' 10416 allow_undefined_flag=unsupported 10417 always_export_symbols=yes 10418 file_list_spec='@' 10419 # Tell ltmain to make .lib files, not .a files. 10420 libext=lib 10421 # Tell ltmain to make .dll files, not .so files. 10422 shrext_cmds=.dll 10423 # FIXME: Setting linknames here is a bad hack. 10424 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10425 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10426 cp "$export_symbols" "$output_objdir/$soname.def"; 10427 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10428 else 10429 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10430 fi~ 10431 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10432 linknames=' 10433 # The linker will not automatically build a static lib if we build a DLL. 10434 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10435 enable_shared_with_static_runtimes=yes 10436 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10438 # Don't use ranlib 10439 old_postinstall_cmds='chmod 644 $oldlib' 10440 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10441 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10442 case $lt_outputfile in 10443 *.exe|*.EXE) ;; 10444 *) 10445 lt_outputfile=$lt_outputfile.exe 10446 lt_tool_outputfile=$lt_tool_outputfile.exe 10447 ;; 10448 esac~ 10449 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10450 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10451 $RM "$lt_outputfile.manifest"; 10452 fi' 10453 ;; 10454 *) 10455 # Assume MSVC wrapper 10456 hardcode_libdir_flag_spec=' ' 10457 allow_undefined_flag=unsupported 10458 # Tell ltmain to make .lib files, not .a files. 10459 libext=lib 10460 # Tell ltmain to make .dll files, not .so files. 10461 shrext_cmds=.dll 10462 # FIXME: Setting linknames here is a bad hack. 10463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10464 # The linker will automatically build a .lib file if we build a DLL. 10465 old_archive_from_new_cmds='true' 10466 # FIXME: Should let the user specify the lib program. 10467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10468 enable_shared_with_static_runtimes=yes 10469 ;; 10470 esac 10471 ;; 10472 10473 darwin* | rhapsody*) 10474 10475 10476 archive_cmds_need_lc=no 10477 hardcode_direct=no 10478 hardcode_automatic=yes 10479 hardcode_shlibpath_var=unsupported 10480 if test yes = "$lt_cv_ld_force_load"; then 10481 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\"`' 10482 10483 else 10484 whole_archive_flag_spec='' 10485 fi 10486 link_all_deplibs=yes 10487 allow_undefined_flag=$_lt_dar_allow_undefined 10488 case $cc_basename in 10489 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10490 *) _lt_dar_can_shared=$GCC ;; 10491 esac 10492 if test yes = "$_lt_dar_can_shared"; then 10493 output_verbose_link_cmd=func_echo_all 10494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10496 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" 10497 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" 10498 10499 else 10500 ld_shlibs=no 10501 fi 10502 10503 ;; 10504 10505 dgux*) 10506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10507 hardcode_libdir_flag_spec='-L$libdir' 10508 hardcode_shlibpath_var=no 10509 ;; 10510 10511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10512 # support. Future versions do this automatically, but an explicit c++rt0.o 10513 # does not break anything, and helps significantly (at the cost of a little 10514 # extra space). 10515 freebsd2.2*) 10516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10517 hardcode_libdir_flag_spec='-R$libdir' 10518 hardcode_direct=yes 10519 hardcode_shlibpath_var=no 10520 ;; 10521 10522 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10523 freebsd2.*) 10524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10525 hardcode_direct=yes 10526 hardcode_minus_L=yes 10527 hardcode_shlibpath_var=no 10528 ;; 10529 10530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10531 freebsd* | dragonfly*) 10532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10533 hardcode_libdir_flag_spec='-R$libdir' 10534 hardcode_direct=yes 10535 hardcode_shlibpath_var=no 10536 ;; 10537 10538 hpux9*) 10539 if test yes = "$GCC"; then 10540 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10541 else 10542 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10543 fi 10544 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10545 hardcode_libdir_separator=: 10546 hardcode_direct=yes 10547 10548 # hardcode_minus_L: Not really in the search PATH, 10549 # but as the default location of the library. 10550 hardcode_minus_L=yes 10551 export_dynamic_flag_spec='$wl-E' 10552 ;; 10553 10554 hpux10*) 10555 if test yes,no = "$GCC,$with_gnu_ld"; then 10556 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10557 else 10558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10559 fi 10560 if test no = "$with_gnu_ld"; then 10561 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10562 hardcode_libdir_separator=: 10563 hardcode_direct=yes 10564 hardcode_direct_absolute=yes 10565 export_dynamic_flag_spec='$wl-E' 10566 # hardcode_minus_L: Not really in the search PATH, 10567 # but as the default location of the library. 10568 hardcode_minus_L=yes 10569 fi 10570 ;; 10571 10572 hpux11*) 10573 if test yes,no = "$GCC,$with_gnu_ld"; then 10574 case $host_cpu in 10575 hppa*64*) 10576 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10577 ;; 10578 ia64*) 10579 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10580 ;; 10581 *) 10582 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10583 ;; 10584 esac 10585 else 10586 case $host_cpu in 10587 hppa*64*) 10588 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10589 ;; 10590 ia64*) 10591 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10592 ;; 10593 *) 10594 10595 # Older versions of the 11.00 compiler do not understand -b yet 10596 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10598$as_echo_n "checking if $CC understands -b... " >&6; } 10599if ${lt_cv_prog_compiler__b+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601else 10602 lt_cv_prog_compiler__b=no 10603 save_LDFLAGS=$LDFLAGS 10604 LDFLAGS="$LDFLAGS -b" 10605 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10607 # The linker can only warn and ignore the option if not recognized 10608 # So say no if there are warnings 10609 if test -s conftest.err; then 10610 # Append any errors to the config.log. 10611 cat conftest.err 1>&5 10612 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10614 if diff conftest.exp conftest.er2 >/dev/null; then 10615 lt_cv_prog_compiler__b=yes 10616 fi 10617 else 10618 lt_cv_prog_compiler__b=yes 10619 fi 10620 fi 10621 $RM -r conftest* 10622 LDFLAGS=$save_LDFLAGS 10623 10624fi 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10626$as_echo "$lt_cv_prog_compiler__b" >&6; } 10627 10628if test yes = "$lt_cv_prog_compiler__b"; then 10629 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10630else 10631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10632fi 10633 10634 ;; 10635 esac 10636 fi 10637 if test no = "$with_gnu_ld"; then 10638 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10639 hardcode_libdir_separator=: 10640 10641 case $host_cpu in 10642 hppa*64*|ia64*) 10643 hardcode_direct=no 10644 hardcode_shlibpath_var=no 10645 ;; 10646 *) 10647 hardcode_direct=yes 10648 hardcode_direct_absolute=yes 10649 export_dynamic_flag_spec='$wl-E' 10650 10651 # hardcode_minus_L: Not really in the search PATH, 10652 # but as the default location of the library. 10653 hardcode_minus_L=yes 10654 ;; 10655 esac 10656 fi 10657 ;; 10658 10659 irix5* | irix6* | nonstopux*) 10660 if test yes = "$GCC"; then 10661 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' 10662 # Try to use the -exported_symbol ld option, if it does not 10663 # work, assume that -exports_file does not work either and 10664 # implicitly export all symbols. 10665 # This should be the same for all languages, so no per-tag cache variable. 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10667$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10668if ${lt_cv_irix_exported_symbol+:} false; then : 10669 $as_echo_n "(cached) " >&6 10670else 10671 save_LDFLAGS=$LDFLAGS 10672 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674/* end confdefs.h. */ 10675int foo (void) { return 0; } 10676_ACEOF 10677if ac_fn_c_try_link "$LINENO"; then : 10678 lt_cv_irix_exported_symbol=yes 10679else 10680 lt_cv_irix_exported_symbol=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684 LDFLAGS=$save_LDFLAGS 10685fi 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10687$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10688 if test yes = "$lt_cv_irix_exported_symbol"; then 10689 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' 10690 fi 10691 else 10692 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' 10693 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' 10694 fi 10695 archive_cmds_need_lc='no' 10696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10697 hardcode_libdir_separator=: 10698 inherit_rpath=yes 10699 link_all_deplibs=yes 10700 ;; 10701 10702 linux*) 10703 case $cc_basename in 10704 tcc*) 10705 # Fabrice Bellard et al's Tiny C Compiler 10706 ld_shlibs=yes 10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10708 ;; 10709 esac 10710 ;; 10711 10712 netbsd*) 10713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10715 else 10716 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10717 fi 10718 hardcode_libdir_flag_spec='-R$libdir' 10719 hardcode_direct=yes 10720 hardcode_shlibpath_var=no 10721 ;; 10722 10723 newsos6) 10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10725 hardcode_direct=yes 10726 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10727 hardcode_libdir_separator=: 10728 hardcode_shlibpath_var=no 10729 ;; 10730 10731 *nto* | *qnx*) 10732 ;; 10733 10734 openbsd* | bitrig*) 10735 if test -f /usr/libexec/ld.so; then 10736 hardcode_direct=yes 10737 hardcode_shlibpath_var=no 10738 hardcode_direct_absolute=yes 10739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10741 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10742 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10743 export_dynamic_flag_spec='$wl-E' 10744 else 10745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10746 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10747 fi 10748 else 10749 ld_shlibs=no 10750 fi 10751 ;; 10752 10753 os2*) 10754 hardcode_libdir_flag_spec='-L$libdir' 10755 hardcode_minus_L=yes 10756 allow_undefined_flag=unsupported 10757 shrext_cmds=.dll 10758 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10761 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10762 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10763 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10764 emximp -o $lib $output_objdir/$libname.def' 10765 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10766 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10767 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10768 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10769 prefix_cmds="$SED"~ 10770 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10771 prefix_cmds="$prefix_cmds -e 1d"; 10772 fi~ 10773 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10774 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10775 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10776 emximp -o $lib $output_objdir/$libname.def' 10777 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10778 enable_shared_with_static_runtimes=yes 10779 ;; 10780 10781 osf3*) 10782 if test yes = "$GCC"; then 10783 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10784 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' 10785 else 10786 allow_undefined_flag=' -expect_unresolved \*' 10787 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' 10788 fi 10789 archive_cmds_need_lc='no' 10790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10791 hardcode_libdir_separator=: 10792 ;; 10793 10794 osf4* | osf5*) # as osf3* with the addition of -msym flag 10795 if test yes = "$GCC"; then 10796 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10797 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' 10798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10799 else 10800 allow_undefined_flag=' -expect_unresolved \*' 10801 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' 10802 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~ 10803 $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' 10804 10805 # Both c and cxx compiler support -rpath directly 10806 hardcode_libdir_flag_spec='-rpath $libdir' 10807 fi 10808 archive_cmds_need_lc='no' 10809 hardcode_libdir_separator=: 10810 ;; 10811 10812 solaris*) 10813 no_undefined_flag=' -z defs' 10814 if test yes = "$GCC"; then 10815 wlarc='$wl' 10816 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10818 $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' 10819 else 10820 case `$CC -V 2>&1` in 10821 *"Compilers 5.0"*) 10822 wlarc='' 10823 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10825 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10826 ;; 10827 *) 10828 wlarc='$wl' 10829 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10831 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10832 ;; 10833 esac 10834 fi 10835 hardcode_libdir_flag_spec='-R$libdir' 10836 hardcode_shlibpath_var=no 10837 case $host_os in 10838 solaris2.[0-5] | solaris2.[0-5].*) ;; 10839 *) 10840 # The compiler driver will combine and reorder linker options, 10841 # but understands '-z linker_flag'. GCC discards it without '$wl', 10842 # but is careful enough not to reorder. 10843 # Supported since Solaris 2.6 (maybe 2.5.1?) 10844 if test yes = "$GCC"; then 10845 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10846 else 10847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10848 fi 10849 ;; 10850 esac 10851 link_all_deplibs=yes 10852 ;; 10853 10854 sunos4*) 10855 if test sequent = "$host_vendor"; then 10856 # Use $CC to link under sequent, because it throws in some extra .o 10857 # files that make .init and .fini sections work. 10858 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10859 else 10860 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10861 fi 10862 hardcode_libdir_flag_spec='-L$libdir' 10863 hardcode_direct=yes 10864 hardcode_minus_L=yes 10865 hardcode_shlibpath_var=no 10866 ;; 10867 10868 sysv4) 10869 case $host_vendor in 10870 sni) 10871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10872 hardcode_direct=yes # is this really true??? 10873 ;; 10874 siemens) 10875 ## LD is ld it makes a PLAMLIB 10876 ## CC just makes a GrossModule. 10877 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10878 reload_cmds='$CC -r -o $output$reload_objs' 10879 hardcode_direct=no 10880 ;; 10881 motorola) 10882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10883 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10884 ;; 10885 esac 10886 runpath_var='LD_RUN_PATH' 10887 hardcode_shlibpath_var=no 10888 ;; 10889 10890 sysv4.3*) 10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10892 hardcode_shlibpath_var=no 10893 export_dynamic_flag_spec='-Bexport' 10894 ;; 10895 10896 sysv4*MP*) 10897 if test -d /usr/nec; then 10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10899 hardcode_shlibpath_var=no 10900 runpath_var=LD_RUN_PATH 10901 hardcode_runpath_var=yes 10902 ld_shlibs=yes 10903 fi 10904 ;; 10905 10906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10907 no_undefined_flag='$wl-z,text' 10908 archive_cmds_need_lc=no 10909 hardcode_shlibpath_var=no 10910 runpath_var='LD_RUN_PATH' 10911 10912 if test yes = "$GCC"; then 10913 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10914 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10915 else 10916 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10917 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10918 fi 10919 ;; 10920 10921 sysv5* | sco3.2v5* | sco5v6*) 10922 # Note: We CANNOT use -z defs as we might desire, because we do not 10923 # link with -lc, and that would cause any symbols used from libc to 10924 # always be unresolved, which means just about no library would 10925 # ever link correctly. If we're not using GNU ld we use -z text 10926 # though, which does catch some bad symbols but isn't as heavy-handed 10927 # as -z defs. 10928 no_undefined_flag='$wl-z,text' 10929 allow_undefined_flag='$wl-z,nodefs' 10930 archive_cmds_need_lc=no 10931 hardcode_shlibpath_var=no 10932 hardcode_libdir_flag_spec='$wl-R,$libdir' 10933 hardcode_libdir_separator=':' 10934 link_all_deplibs=yes 10935 export_dynamic_flag_spec='$wl-Bexport' 10936 runpath_var='LD_RUN_PATH' 10937 10938 if test yes = "$GCC"; then 10939 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10940 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10941 else 10942 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10943 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10944 fi 10945 ;; 10946 10947 uts4*) 10948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10949 hardcode_libdir_flag_spec='-L$libdir' 10950 hardcode_shlibpath_var=no 10951 ;; 10952 10953 *) 10954 ld_shlibs=no 10955 ;; 10956 esac 10957 10958 if test sni = "$host_vendor"; then 10959 case $host in 10960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10961 export_dynamic_flag_spec='$wl-Blargedynsym' 10962 ;; 10963 esac 10964 fi 10965 fi 10966 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10968$as_echo "$ld_shlibs" >&6; } 10969test no = "$ld_shlibs" && can_build_shared=no 10970 10971with_gnu_ld=$with_gnu_ld 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987# 10988# Do we need to explicitly link libc? 10989# 10990case "x$archive_cmds_need_lc" in 10991x|xyes) 10992 # Assume -lc should be added 10993 archive_cmds_need_lc=yes 10994 10995 if test yes,yes = "$GCC,$enable_shared"; then 10996 case $archive_cmds in 10997 *'~'*) 10998 # FIXME: we may have to deal with multi-command sequences. 10999 ;; 11000 '$CC '*) 11001 # Test whether the compiler implicitly links with -lc since on some 11002 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11003 # to ld, don't add -lc before -lgcc. 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11005$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11006if ${lt_cv_archive_cmds_need_lc+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 $RM conftest* 11010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11011 11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11013 (eval $ac_compile) 2>&5 11014 ac_status=$? 11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11016 test $ac_status = 0; } 2>conftest.err; then 11017 soname=conftest 11018 lib=conftest 11019 libobjs=conftest.$ac_objext 11020 deplibs= 11021 wl=$lt_prog_compiler_wl 11022 pic_flag=$lt_prog_compiler_pic 11023 compiler_flags=-v 11024 linker_flags=-v 11025 verstring= 11026 output_objdir=. 11027 libname=conftest 11028 lt_save_allow_undefined_flag=$allow_undefined_flag 11029 allow_undefined_flag= 11030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11031 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11032 ac_status=$? 11033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11034 test $ac_status = 0; } 11035 then 11036 lt_cv_archive_cmds_need_lc=no 11037 else 11038 lt_cv_archive_cmds_need_lc=yes 11039 fi 11040 allow_undefined_flag=$lt_save_allow_undefined_flag 11041 else 11042 cat conftest.err 1>&5 11043 fi 11044 $RM conftest* 11045 11046fi 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11048$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11049 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11050 ;; 11051 esac 11052 fi 11053 ;; 11054esac 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 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 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11208$as_echo_n "checking dynamic linker characteristics... " >&6; } 11209 11210if test yes = "$GCC"; then 11211 case $host_os in 11212 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11213 *) lt_awk_arg='/^libraries:/' ;; 11214 esac 11215 case $host_os in 11216 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11217 *) lt_sed_strip_eq='s|=/|/|g' ;; 11218 esac 11219 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11220 case $lt_search_path_spec in 11221 *\;*) 11222 # if the path contains ";" then we assume it to be the separator 11223 # otherwise default to the standard path separator (i.e. ":") - it is 11224 # assumed that no part of a normal pathname contains ";" but that should 11225 # okay in the real world where ";" in dirpaths is itself problematic. 11226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11227 ;; 11228 *) 11229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11230 ;; 11231 esac 11232 # Ok, now we have the path, separated by spaces, we can step through it 11233 # and add multilib dir if necessary... 11234 lt_tmp_lt_search_path_spec= 11235 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11236 # ...but if some path component already ends with the multilib dir we assume 11237 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11238 case "$lt_multi_os_dir; $lt_search_path_spec " in 11239 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11240 lt_multi_os_dir= 11241 ;; 11242 esac 11243 for lt_sys_path in $lt_search_path_spec; do 11244 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11246 elif test -n "$lt_multi_os_dir"; then 11247 test -d "$lt_sys_path" && \ 11248 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11249 fi 11250 done 11251 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11252BEGIN {RS = " "; FS = "/|\n";} { 11253 lt_foo = ""; 11254 lt_count = 0; 11255 for (lt_i = NF; lt_i > 0; lt_i--) { 11256 if ($lt_i != "" && $lt_i != ".") { 11257 if ($lt_i == "..") { 11258 lt_count++; 11259 } else { 11260 if (lt_count == 0) { 11261 lt_foo = "/" $lt_i lt_foo; 11262 } else { 11263 lt_count--; 11264 } 11265 } 11266 } 11267 } 11268 if (lt_foo != "") { lt_freq[lt_foo]++; } 11269 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11270}'` 11271 # AWK program above erroneously prepends '/' to C:/dos/paths 11272 # for these hosts. 11273 case $host_os in 11274 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11275 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11276 esac 11277 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11278else 11279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11280fi 11281library_names_spec= 11282libname_spec='lib$name' 11283soname_spec= 11284shrext_cmds=.so 11285postinstall_cmds= 11286postuninstall_cmds= 11287finish_cmds= 11288finish_eval= 11289shlibpath_var= 11290shlibpath_overrides_runpath=unknown 11291version_type=none 11292dynamic_linker="$host_os ld.so" 11293sys_lib_dlsearch_path_spec="/lib /usr/lib" 11294need_lib_prefix=unknown 11295hardcode_into_libs=no 11296 11297# when you set need_version to no, make sure it does not cause -set_version 11298# flags to be left without arguments 11299need_version=unknown 11300 11301 11302 11303case $host_os in 11304aix3*) 11305 version_type=linux # correct to gnu/linux during the next big refactor 11306 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11307 shlibpath_var=LIBPATH 11308 11309 # AIX 3 has no versioning support, so we append a major version to the name. 11310 soname_spec='$libname$release$shared_ext$major' 11311 ;; 11312 11313aix[4-9]*) 11314 version_type=linux # correct to gnu/linux during the next big refactor 11315 need_lib_prefix=no 11316 need_version=no 11317 hardcode_into_libs=yes 11318 if test ia64 = "$host_cpu"; then 11319 # AIX 5 supports IA64 11320 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 else 11323 # With GCC up to 2.95.x, collect2 would create an import file 11324 # for dependence libraries. The import file would start with 11325 # the line '#! .'. This would cause the generated library to 11326 # depend on '.', always an invalid library. This was fixed in 11327 # development snapshots of GCC prior to 3.0. 11328 case $host_os in 11329 aix4 | aix4.[01] | aix4.[01].*) 11330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11331 echo ' yes ' 11332 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11333 : 11334 else 11335 can_build_shared=no 11336 fi 11337 ;; 11338 esac 11339 # Using Import Files as archive members, it is possible to support 11340 # filename-based versioning of shared library archives on AIX. While 11341 # this would work for both with and without runtime linking, it will 11342 # prevent static linking of such archives. So we do filename-based 11343 # shared library versioning with .so extension only, which is used 11344 # when both runtime linking and shared linking is enabled. 11345 # Unfortunately, runtime linking may impact performance, so we do 11346 # not want this to be the default eventually. Also, we use the 11347 # versioned .so libs for executables only if there is the -brtl 11348 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11349 # To allow for filename-based versioning support, we need to create 11350 # libNAME.so.V as an archive file, containing: 11351 # *) an Import File, referring to the versioned filename of the 11352 # archive as well as the shared archive member, telling the 11353 # bitwidth (32 or 64) of that shared object, and providing the 11354 # list of exported symbols of that shared object, eventually 11355 # decorated with the 'weak' keyword 11356 # *) the shared object with the F_LOADONLY flag set, to really avoid 11357 # it being seen by the linker. 11358 # At run time we better use the real file rather than another symlink, 11359 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11360 11361 case $with_aix_soname,$aix_use_runtimelinking in 11362 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11363 # soname into executable. Probably we can add versioning support to 11364 # collect2, so additional links can be useful in future. 11365 aix,yes) # traditional libtool 11366 dynamic_linker='AIX unversionable lib.so' 11367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11368 # instead of lib<name>.a to let people know that these are not 11369 # typical AIX shared libraries. 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 ;; 11372 aix,no) # traditional AIX only 11373 dynamic_linker='AIX lib.a(lib.so.V)' 11374 # We preserve .a as extension for shared libraries through AIX4.2 11375 # and later when we are not doing run time linking. 11376 library_names_spec='$libname$release.a $libname.a' 11377 soname_spec='$libname$release$shared_ext$major' 11378 ;; 11379 svr4,*) # full svr4 only 11380 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11381 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11382 # We do not specify a path in Import Files, so LIBPATH fires. 11383 shlibpath_overrides_runpath=yes 11384 ;; 11385 *,yes) # both, prefer svr4 11386 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11387 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11388 # unpreferred sharedlib libNAME.a needs extra handling 11389 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11390 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11391 # We do not specify a path in Import Files, so LIBPATH fires. 11392 shlibpath_overrides_runpath=yes 11393 ;; 11394 *,no) # both, prefer aix 11395 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11396 library_names_spec='$libname$release.a $libname.a' 11397 soname_spec='$libname$release$shared_ext$major' 11398 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11399 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11400 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11401 ;; 11402 esac 11403 shlibpath_var=LIBPATH 11404 fi 11405 ;; 11406 11407amigaos*) 11408 case $host_cpu in 11409 powerpc) 11410 # Since July 2007 AmigaOS4 officially supports .so libraries. 11411 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11413 ;; 11414 m68k) 11415 library_names_spec='$libname.ixlibrary $libname.a' 11416 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11417 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11418 ;; 11419 esac 11420 ;; 11421 11422beos*) 11423 library_names_spec='$libname$shared_ext' 11424 dynamic_linker="$host_os ld.so" 11425 shlibpath_var=LIBRARY_PATH 11426 ;; 11427 11428bsdi[45]*) 11429 version_type=linux # correct to gnu/linux during the next big refactor 11430 need_version=no 11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11432 soname_spec='$libname$release$shared_ext$major' 11433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11437 # the default ld.so.conf also contains /usr/contrib/lib and 11438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11439 # libtool to hard-code these into programs 11440 ;; 11441 11442cygwin* | mingw* | pw32* | cegcc*) 11443 version_type=windows 11444 shrext_cmds=.dll 11445 need_version=no 11446 need_lib_prefix=no 11447 11448 case $GCC,$cc_basename in 11449 yes,*) 11450 # gcc 11451 library_names_spec='$libname.dll.a' 11452 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11453 postinstall_cmds='base_file=`basename \$file`~ 11454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11455 dldir=$destdir/`dirname \$dlpath`~ 11456 test -d \$dldir || mkdir -p \$dldir~ 11457 $install_prog $dir/$dlname \$dldir/$dlname~ 11458 chmod a+x \$dldir/$dlname~ 11459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11461 fi' 11462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11463 dlpath=$dir/\$dldll~ 11464 $RM \$dlpath' 11465 shlibpath_overrides_runpath=yes 11466 11467 case $host_os in 11468 cygwin*) 11469 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11470 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11471 11472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11473 ;; 11474 mingw* | cegcc*) 11475 # MinGW DLLs use traditional 'lib' prefix 11476 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11477 ;; 11478 pw32*) 11479 # pw32 DLLs use 'pw' prefix rather than 'lib' 11480 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11481 ;; 11482 esac 11483 dynamic_linker='Win32 ld.exe' 11484 ;; 11485 11486 *,cl*) 11487 # Native MSVC 11488 libname_spec='$name' 11489 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11490 library_names_spec='$libname.dll.lib' 11491 11492 case $build_os in 11493 mingw*) 11494 sys_lib_search_path_spec= 11495 lt_save_ifs=$IFS 11496 IFS=';' 11497 for lt_path in $LIB 11498 do 11499 IFS=$lt_save_ifs 11500 # Let DOS variable expansion print the short 8.3 style file name. 11501 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11502 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11503 done 11504 IFS=$lt_save_ifs 11505 # Convert to MSYS style. 11506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11507 ;; 11508 cygwin*) 11509 # Convert to unix form, then to dos form, then back to unix form 11510 # but this time dos style (no spaces!) so that the unix form looks 11511 # like /cygdrive/c/PROGRA~1:/cygdr... 11512 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11513 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11514 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11515 ;; 11516 *) 11517 sys_lib_search_path_spec=$LIB 11518 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11519 # It is most probably a Windows format PATH. 11520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11521 else 11522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11523 fi 11524 # FIXME: find the short name or the path components, as spaces are 11525 # common. (e.g. "Program Files" -> "PROGRA~1") 11526 ;; 11527 esac 11528 11529 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11530 postinstall_cmds='base_file=`basename \$file`~ 11531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11532 dldir=$destdir/`dirname \$dlpath`~ 11533 test -d \$dldir || mkdir -p \$dldir~ 11534 $install_prog $dir/$dlname \$dldir/$dlname' 11535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11536 dlpath=$dir/\$dldll~ 11537 $RM \$dlpath' 11538 shlibpath_overrides_runpath=yes 11539 dynamic_linker='Win32 link.exe' 11540 ;; 11541 11542 *) 11543 # Assume MSVC wrapper 11544 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11545 dynamic_linker='Win32 ld.exe' 11546 ;; 11547 esac 11548 # FIXME: first we should search . and the directory the executable is in 11549 shlibpath_var=PATH 11550 ;; 11551 11552darwin* | rhapsody*) 11553 dynamic_linker="$host_os dyld" 11554 version_type=darwin 11555 need_lib_prefix=no 11556 need_version=no 11557 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11558 soname_spec='$libname$release$major$shared_ext' 11559 shlibpath_overrides_runpath=yes 11560 shlibpath_var=DYLD_LIBRARY_PATH 11561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11562 11563 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11564 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11565 ;; 11566 11567dgux*) 11568 version_type=linux # correct to gnu/linux during the next big refactor 11569 need_lib_prefix=no 11570 need_version=no 11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11572 soname_spec='$libname$release$shared_ext$major' 11573 shlibpath_var=LD_LIBRARY_PATH 11574 ;; 11575 11576freebsd* | dragonfly*) 11577 # DragonFly does not have aout. When/if they implement a new 11578 # versioning mechanism, adjust this. 11579 if test -x /usr/bin/objformat; then 11580 objformat=`/usr/bin/objformat` 11581 else 11582 case $host_os in 11583 freebsd[23].*) objformat=aout ;; 11584 *) objformat=elf ;; 11585 esac 11586 fi 11587 # Handle Gentoo/FreeBSD as it was Linux 11588 case $host_vendor in 11589 gentoo) 11590 version_type=linux ;; 11591 *) 11592 version_type=freebsd-$objformat ;; 11593 esac 11594 11595 case $version_type in 11596 freebsd-elf*) 11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11598 soname_spec='$libname$release$shared_ext$major' 11599 need_version=no 11600 need_lib_prefix=no 11601 ;; 11602 freebsd-*) 11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11604 need_version=yes 11605 ;; 11606 linux) 11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11608 soname_spec='${libname}${release}${shared_ext}$major' 11609 need_lib_prefix=no 11610 need_version=no 11611 ;; 11612 esac 11613 shlibpath_var=LD_LIBRARY_PATH 11614 case $host_os in 11615 freebsd2.*) 11616 shlibpath_overrides_runpath=yes 11617 ;; 11618 freebsd3.[01]* | freebsdelf3.[01]*) 11619 shlibpath_overrides_runpath=yes 11620 hardcode_into_libs=yes 11621 ;; 11622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11624 shlibpath_overrides_runpath=no 11625 hardcode_into_libs=yes 11626 ;; 11627 *) # from 4.6 on, and DragonFly 11628 shlibpath_overrides_runpath=yes 11629 hardcode_into_libs=yes 11630 ;; 11631 esac 11632 ;; 11633 11634haiku*) 11635 version_type=linux # correct to gnu/linux during the next big refactor 11636 need_lib_prefix=no 11637 need_version=no 11638 dynamic_linker="$host_os runtime_loader" 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 soname_spec='$libname$release$shared_ext$major' 11641 shlibpath_var=LIBRARY_PATH 11642 shlibpath_overrides_runpath=no 11643 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11644 hardcode_into_libs=yes 11645 ;; 11646 11647hpux9* | hpux10* | hpux11*) 11648 # Give a soname corresponding to the major version so that dld.sl refuses to 11649 # link against other versions. 11650 version_type=sunos 11651 need_lib_prefix=no 11652 need_version=no 11653 case $host_cpu in 11654 ia64*) 11655 shrext_cmds='.so' 11656 hardcode_into_libs=yes 11657 dynamic_linker="$host_os dld.so" 11658 shlibpath_var=LD_LIBRARY_PATH 11659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11661 soname_spec='$libname$release$shared_ext$major' 11662 if test 32 = "$HPUX_IA64_MODE"; then 11663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11664 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11665 else 11666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11667 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11668 fi 11669 ;; 11670 hppa*64*) 11671 shrext_cmds='.sl' 11672 hardcode_into_libs=yes 11673 dynamic_linker="$host_os dld.sl" 11674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11677 soname_spec='$libname$release$shared_ext$major' 11678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11680 ;; 11681 *) 11682 shrext_cmds='.sl' 11683 dynamic_linker="$host_os dld.sl" 11684 shlibpath_var=SHLIB_PATH 11685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11687 soname_spec='$libname$release$shared_ext$major' 11688 ;; 11689 esac 11690 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11691 postinstall_cmds='chmod 555 $lib' 11692 # or fails outright, so override atomically: 11693 install_override_mode=555 11694 ;; 11695 11696interix[3-9]*) 11697 version_type=linux # correct to gnu/linux during the next big refactor 11698 need_lib_prefix=no 11699 need_version=no 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11701 soname_spec='$libname$release$shared_ext$major' 11702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11703 shlibpath_var=LD_LIBRARY_PATH 11704 shlibpath_overrides_runpath=no 11705 hardcode_into_libs=yes 11706 ;; 11707 11708irix5* | irix6* | nonstopux*) 11709 case $host_os in 11710 nonstopux*) version_type=nonstopux ;; 11711 *) 11712 if test yes = "$lt_cv_prog_gnu_ld"; then 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 else 11715 version_type=irix 11716 fi ;; 11717 esac 11718 need_lib_prefix=no 11719 need_version=no 11720 soname_spec='$libname$release$shared_ext$major' 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11722 case $host_os in 11723 irix5* | nonstopux*) 11724 libsuff= shlibsuff= 11725 ;; 11726 *) 11727 case $LD in # libtool.m4 will add one of these switches to LD 11728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11729 libsuff= shlibsuff= libmagic=32-bit;; 11730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11731 libsuff=32 shlibsuff=N32 libmagic=N32;; 11732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11733 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11734 *) libsuff= shlibsuff= libmagic=never-match;; 11735 esac 11736 ;; 11737 esac 11738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11739 shlibpath_overrides_runpath=no 11740 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11741 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11742 hardcode_into_libs=yes 11743 ;; 11744 11745# No shared lib support for Linux oldld, aout, or coff. 11746linux*oldld* | linux*aout* | linux*coff*) 11747 dynamic_linker=no 11748 ;; 11749 11750linux*android*) 11751 version_type=none # Android doesn't support versioned libraries. 11752 need_lib_prefix=no 11753 need_version=no 11754 library_names_spec='$libname$release$shared_ext' 11755 soname_spec='$libname$release$shared_ext' 11756 finish_cmds= 11757 shlibpath_var=LD_LIBRARY_PATH 11758 shlibpath_overrides_runpath=yes 11759 11760 # This implies no fast_install, which is unacceptable. 11761 # Some rework will be needed to allow for fast_install 11762 # before this can be enabled. 11763 hardcode_into_libs=yes 11764 11765 dynamic_linker='Android linker' 11766 # Don't embed -rpath directories since the linker doesn't support them. 11767 hardcode_libdir_flag_spec='-L$libdir' 11768 ;; 11769 11770# This must be glibc/ELF. 11771linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11772 version_type=linux # correct to gnu/linux during the next big refactor 11773 need_lib_prefix=no 11774 need_version=no 11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11776 soname_spec='$libname$release$shared_ext$major' 11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11778 shlibpath_var=LD_LIBRARY_PATH 11779 shlibpath_overrides_runpath=no 11780 11781 # Some binutils ld are patched to set DT_RUNPATH 11782 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11783 $as_echo_n "(cached) " >&6 11784else 11785 lt_cv_shlibpath_overrides_runpath=no 11786 save_LDFLAGS=$LDFLAGS 11787 save_libdir=$libdir 11788 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11789 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11791/* end confdefs.h. */ 11792 11793int 11794main () 11795{ 11796 11797 ; 11798 return 0; 11799} 11800_ACEOF 11801if ac_fn_c_try_link "$LINENO"; then : 11802 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11803 lt_cv_shlibpath_overrides_runpath=yes 11804fi 11805fi 11806rm -f core conftest.err conftest.$ac_objext \ 11807 conftest$ac_exeext conftest.$ac_ext 11808 LDFLAGS=$save_LDFLAGS 11809 libdir=$save_libdir 11810 11811fi 11812 11813 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11814 11815 # This implies no fast_install, which is unacceptable. 11816 # Some rework will be needed to allow for fast_install 11817 # before this can be enabled. 11818 hardcode_into_libs=yes 11819 11820 # Ideally, we could use ldconfig to report *all* directores which are 11821 # searched for libraries, however this is still not possible. Aside from not 11822 # being certain /sbin/ldconfig is available, command 11823 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11824 # even though it is searched at run-time. Try to do the best guess by 11825 # appending ld.so.conf contents (and includes) to the search path. 11826 if test -f /etc/ld.so.conf; then 11827 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' ' '` 11828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11829 fi 11830 11831 # We used to test for /lib/ld.so.1 and disable shared libraries on 11832 # powerpc, because MkLinux only supported shared libraries with the 11833 # GNU dynamic linker. Since this was broken with cross compilers, 11834 # most powerpc-linux boxes support dynamic linking these days and 11835 # people can always --disable-shared, the test was removed, and we 11836 # assume the GNU/Linux dynamic linker is in use. 11837 dynamic_linker='GNU/Linux ld.so' 11838 ;; 11839 11840netbsd*) 11841 version_type=sunos 11842 need_lib_prefix=no 11843 need_version=no 11844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11847 dynamic_linker='NetBSD (a.out) ld.so' 11848 else 11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11850 soname_spec='$libname$release$shared_ext$major' 11851 dynamic_linker='NetBSD ld.elf_so' 11852 fi 11853 shlibpath_var=LD_LIBRARY_PATH 11854 shlibpath_overrides_runpath=yes 11855 hardcode_into_libs=yes 11856 ;; 11857 11858newsos6) 11859 version_type=linux # correct to gnu/linux during the next big refactor 11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 shlibpath_overrides_runpath=yes 11863 ;; 11864 11865*nto* | *qnx*) 11866 version_type=qnx 11867 need_lib_prefix=no 11868 need_version=no 11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11870 soname_spec='$libname$release$shared_ext$major' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 shlibpath_overrides_runpath=no 11873 hardcode_into_libs=yes 11874 dynamic_linker='ldqnx.so' 11875 ;; 11876 11877openbsd* | bitrig*) 11878 version_type=sunos 11879 sys_lib_dlsearch_path_spec=/usr/lib 11880 need_lib_prefix=no 11881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11882 need_version=no 11883 else 11884 need_version=yes 11885 fi 11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11888 shlibpath_var=LD_LIBRARY_PATH 11889 shlibpath_overrides_runpath=yes 11890 ;; 11891 11892os2*) 11893 libname_spec='$name' 11894 version_type=windows 11895 shrext_cmds=.dll 11896 need_version=no 11897 need_lib_prefix=no 11898 # OS/2 can only load a DLL with a base name of 8 characters or less. 11899 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11900 v=$($ECHO $release$versuffix | tr -d .-); 11901 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11902 $ECHO $n$v`$shared_ext' 11903 library_names_spec='${libname}_dll.$libext' 11904 dynamic_linker='OS/2 ld.exe' 11905 shlibpath_var=BEGINLIBPATH 11906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11908 postinstall_cmds='base_file=`basename \$file`~ 11909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11910 dldir=$destdir/`dirname \$dlpath`~ 11911 test -d \$dldir || mkdir -p \$dldir~ 11912 $install_prog $dir/$dlname \$dldir/$dlname~ 11913 chmod a+x \$dldir/$dlname~ 11914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11916 fi' 11917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11918 dlpath=$dir/\$dldll~ 11919 $RM \$dlpath' 11920 ;; 11921 11922osf3* | osf4* | osf5*) 11923 version_type=osf 11924 need_lib_prefix=no 11925 need_version=no 11926 soname_spec='$libname$release$shared_ext$major' 11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11928 shlibpath_var=LD_LIBRARY_PATH 11929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11931 ;; 11932 11933rdos*) 11934 dynamic_linker=no 11935 ;; 11936 11937solaris*) 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 need_lib_prefix=no 11940 need_version=no 11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11942 soname_spec='$libname$release$shared_ext$major' 11943 shlibpath_var=LD_LIBRARY_PATH 11944 shlibpath_overrides_runpath=yes 11945 hardcode_into_libs=yes 11946 # ldd complains unless libraries are executable 11947 postinstall_cmds='chmod +x $lib' 11948 ;; 11949 11950sunos4*) 11951 version_type=sunos 11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11954 shlibpath_var=LD_LIBRARY_PATH 11955 shlibpath_overrides_runpath=yes 11956 if test yes = "$with_gnu_ld"; then 11957 need_lib_prefix=no 11958 fi 11959 need_version=yes 11960 ;; 11961 11962sysv4 | sysv4.3*) 11963 version_type=linux # correct to gnu/linux during the next big refactor 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11965 soname_spec='$libname$release$shared_ext$major' 11966 shlibpath_var=LD_LIBRARY_PATH 11967 case $host_vendor in 11968 sni) 11969 shlibpath_overrides_runpath=no 11970 need_lib_prefix=no 11971 runpath_var=LD_RUN_PATH 11972 ;; 11973 siemens) 11974 need_lib_prefix=no 11975 ;; 11976 motorola) 11977 need_lib_prefix=no 11978 need_version=no 11979 shlibpath_overrides_runpath=no 11980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11981 ;; 11982 esac 11983 ;; 11984 11985sysv4*MP*) 11986 if test -d /usr/nec; then 11987 version_type=linux # correct to gnu/linux during the next big refactor 11988 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11989 soname_spec='$libname$shared_ext.$major' 11990 shlibpath_var=LD_LIBRARY_PATH 11991 fi 11992 ;; 11993 11994sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11995 version_type=sco 11996 need_lib_prefix=no 11997 need_version=no 11998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11999 soname_spec='$libname$release$shared_ext$major' 12000 shlibpath_var=LD_LIBRARY_PATH 12001 shlibpath_overrides_runpath=yes 12002 hardcode_into_libs=yes 12003 if test yes = "$with_gnu_ld"; then 12004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12005 else 12006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12007 case $host_os in 12008 sco3.2v5*) 12009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12010 ;; 12011 esac 12012 fi 12013 sys_lib_dlsearch_path_spec='/usr/lib' 12014 ;; 12015 12016tpf*) 12017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12018 version_type=linux # correct to gnu/linux during the next big refactor 12019 need_lib_prefix=no 12020 need_version=no 12021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 shlibpath_overrides_runpath=no 12024 hardcode_into_libs=yes 12025 ;; 12026 12027uts4*) 12028 version_type=linux # correct to gnu/linux during the next big refactor 12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12030 soname_spec='$libname$release$shared_ext$major' 12031 shlibpath_var=LD_LIBRARY_PATH 12032 ;; 12033 12034*) 12035 dynamic_linker=no 12036 ;; 12037esac 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12039$as_echo "$dynamic_linker" >&6; } 12040test no = "$dynamic_linker" && can_build_shared=no 12041 12042variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12043if test yes = "$GCC"; then 12044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12045fi 12046 12047if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12048 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12049fi 12050 12051if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12052 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12053fi 12054 12055# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12056configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12057 12058# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12059func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12060 12061# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12062configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12161$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12162hardcode_action= 12163if test -n "$hardcode_libdir_flag_spec" || 12164 test -n "$runpath_var" || 12165 test yes = "$hardcode_automatic"; then 12166 12167 # We can hardcode non-existent directories. 12168 if test no != "$hardcode_direct" && 12169 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12170 # have to relink, otherwise we might link with an installed library 12171 # when we should be linking with a yet-to-be-installed one 12172 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12173 test no != "$hardcode_minus_L"; then 12174 # Linking always hardcodes the temporary library directory. 12175 hardcode_action=relink 12176 else 12177 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12178 hardcode_action=immediate 12179 fi 12180else 12181 # We cannot hardcode anything, or else we can only hardcode existing 12182 # directories. 12183 hardcode_action=unsupported 12184fi 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12186$as_echo "$hardcode_action" >&6; } 12187 12188if test relink = "$hardcode_action" || 12189 test yes = "$inherit_rpath"; then 12190 # Fast installation is not supported 12191 enable_fast_install=no 12192elif test yes = "$shlibpath_overrides_runpath" || 12193 test no = "$enable_shared"; then 12194 # Fast installation is not necessary 12195 enable_fast_install=needless 12196fi 12197 12198 12199 12200 12201 12202 12203 if test yes != "$enable_dlopen"; then 12204 enable_dlopen=unknown 12205 enable_dlopen_self=unknown 12206 enable_dlopen_self_static=unknown 12207else 12208 lt_cv_dlopen=no 12209 lt_cv_dlopen_libs= 12210 12211 case $host_os in 12212 beos*) 12213 lt_cv_dlopen=load_add_on 12214 lt_cv_dlopen_libs= 12215 lt_cv_dlopen_self=yes 12216 ;; 12217 12218 mingw* | pw32* | cegcc*) 12219 lt_cv_dlopen=LoadLibrary 12220 lt_cv_dlopen_libs= 12221 ;; 12222 12223 cygwin*) 12224 lt_cv_dlopen=dlopen 12225 lt_cv_dlopen_libs= 12226 ;; 12227 12228 darwin*) 12229 # if libdl is installed we need to link against it 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12231$as_echo_n "checking for dlopen in -ldl... " >&6; } 12232if ${ac_cv_lib_dl_dlopen+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 ac_check_lib_save_LIBS=$LIBS 12236LIBS="-ldl $LIBS" 12237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12238/* end confdefs.h. */ 12239 12240/* Override any GCC internal prototype to avoid an error. 12241 Use char because int might match the return type of a GCC 12242 builtin and then its argument prototype would still apply. */ 12243#ifdef __cplusplus 12244extern "C" 12245#endif 12246char dlopen (); 12247int 12248main () 12249{ 12250return dlopen (); 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255if ac_fn_c_try_link "$LINENO"; then : 12256 ac_cv_lib_dl_dlopen=yes 12257else 12258 ac_cv_lib_dl_dlopen=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262LIBS=$ac_check_lib_save_LIBS 12263fi 12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12265$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12266if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12267 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12268else 12269 12270 lt_cv_dlopen=dyld 12271 lt_cv_dlopen_libs= 12272 lt_cv_dlopen_self=yes 12273 12274fi 12275 12276 ;; 12277 12278 tpf*) 12279 # Don't try to run any link tests for TPF. We know it's impossible 12280 # because TPF is a cross-compiler, and we know how we open DSOs. 12281 lt_cv_dlopen=dlopen 12282 lt_cv_dlopen_libs= 12283 lt_cv_dlopen_self=no 12284 ;; 12285 12286 *) 12287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12288if test "x$ac_cv_func_shl_load" = xyes; then : 12289 lt_cv_dlopen=shl_load 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12292$as_echo_n "checking for shl_load in -ldld... " >&6; } 12293if ${ac_cv_lib_dld_shl_load+:} false; then : 12294 $as_echo_n "(cached) " >&6 12295else 12296 ac_check_lib_save_LIBS=$LIBS 12297LIBS="-ldld $LIBS" 12298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12299/* end confdefs.h. */ 12300 12301/* Override any GCC internal prototype to avoid an error. 12302 Use char because int might match the return type of a GCC 12303 builtin and then its argument prototype would still apply. */ 12304#ifdef __cplusplus 12305extern "C" 12306#endif 12307char shl_load (); 12308int 12309main () 12310{ 12311return shl_load (); 12312 ; 12313 return 0; 12314} 12315_ACEOF 12316if ac_fn_c_try_link "$LINENO"; then : 12317 ac_cv_lib_dld_shl_load=yes 12318else 12319 ac_cv_lib_dld_shl_load=no 12320fi 12321rm -f core conftest.err conftest.$ac_objext \ 12322 conftest$ac_exeext conftest.$ac_ext 12323LIBS=$ac_check_lib_save_LIBS 12324fi 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12326$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12327if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12328 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12329else 12330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12331if test "x$ac_cv_func_dlopen" = xyes; then : 12332 lt_cv_dlopen=dlopen 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12335$as_echo_n "checking for dlopen in -ldl... " >&6; } 12336if ${ac_cv_lib_dl_dlopen+:} false; then : 12337 $as_echo_n "(cached) " >&6 12338else 12339 ac_check_lib_save_LIBS=$LIBS 12340LIBS="-ldl $LIBS" 12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343 12344/* Override any GCC internal prototype to avoid an error. 12345 Use char because int might match the return type of a GCC 12346 builtin and then its argument prototype would still apply. */ 12347#ifdef __cplusplus 12348extern "C" 12349#endif 12350char dlopen (); 12351int 12352main () 12353{ 12354return dlopen (); 12355 ; 12356 return 0; 12357} 12358_ACEOF 12359if ac_fn_c_try_link "$LINENO"; then : 12360 ac_cv_lib_dl_dlopen=yes 12361else 12362 ac_cv_lib_dl_dlopen=no 12363fi 12364rm -f core conftest.err conftest.$ac_objext \ 12365 conftest$ac_exeext conftest.$ac_ext 12366LIBS=$ac_check_lib_save_LIBS 12367fi 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12369$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12370if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12372else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12374$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12375if ${ac_cv_lib_svld_dlopen+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 ac_check_lib_save_LIBS=$LIBS 12379LIBS="-lsvld $LIBS" 12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382 12383/* Override any GCC internal prototype to avoid an error. 12384 Use char because int might match the return type of a GCC 12385 builtin and then its argument prototype would still apply. */ 12386#ifdef __cplusplus 12387extern "C" 12388#endif 12389char dlopen (); 12390int 12391main () 12392{ 12393return dlopen (); 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 ac_cv_lib_svld_dlopen=yes 12400else 12401 ac_cv_lib_svld_dlopen=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext \ 12404 conftest$ac_exeext conftest.$ac_ext 12405LIBS=$ac_check_lib_save_LIBS 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12408$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12409if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12410 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12411else 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12413$as_echo_n "checking for dld_link in -ldld... " >&6; } 12414if ${ac_cv_lib_dld_dld_link+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 ac_check_lib_save_LIBS=$LIBS 12418LIBS="-ldld $LIBS" 12419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421 12422/* Override any GCC internal prototype to avoid an error. 12423 Use char because int might match the return type of a GCC 12424 builtin and then its argument prototype would still apply. */ 12425#ifdef __cplusplus 12426extern "C" 12427#endif 12428char dld_link (); 12429int 12430main () 12431{ 12432return dld_link (); 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437if ac_fn_c_try_link "$LINENO"; then : 12438 ac_cv_lib_dld_dld_link=yes 12439else 12440 ac_cv_lib_dld_dld_link=no 12441fi 12442rm -f core conftest.err conftest.$ac_objext \ 12443 conftest$ac_exeext conftest.$ac_ext 12444LIBS=$ac_check_lib_save_LIBS 12445fi 12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12447$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12448if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12449 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12450fi 12451 12452 12453fi 12454 12455 12456fi 12457 12458 12459fi 12460 12461 12462fi 12463 12464 12465fi 12466 12467 ;; 12468 esac 12469 12470 if test no = "$lt_cv_dlopen"; then 12471 enable_dlopen=no 12472 else 12473 enable_dlopen=yes 12474 fi 12475 12476 case $lt_cv_dlopen in 12477 dlopen) 12478 save_CPPFLAGS=$CPPFLAGS 12479 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12480 12481 save_LDFLAGS=$LDFLAGS 12482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12483 12484 save_LIBS=$LIBS 12485 LIBS="$lt_cv_dlopen_libs $LIBS" 12486 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12488$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12489if ${lt_cv_dlopen_self+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 if test yes = "$cross_compiling"; then : 12493 lt_cv_dlopen_self=cross 12494else 12495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12496 lt_status=$lt_dlunknown 12497 cat > conftest.$ac_ext <<_LT_EOF 12498#line $LINENO "configure" 12499#include "confdefs.h" 12500 12501#if HAVE_DLFCN_H 12502#include <dlfcn.h> 12503#endif 12504 12505#include <stdio.h> 12506 12507#ifdef RTLD_GLOBAL 12508# define LT_DLGLOBAL RTLD_GLOBAL 12509#else 12510# ifdef DL_GLOBAL 12511# define LT_DLGLOBAL DL_GLOBAL 12512# else 12513# define LT_DLGLOBAL 0 12514# endif 12515#endif 12516 12517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12518 find out it does not work in some platform. */ 12519#ifndef LT_DLLAZY_OR_NOW 12520# ifdef RTLD_LAZY 12521# define LT_DLLAZY_OR_NOW RTLD_LAZY 12522# else 12523# ifdef DL_LAZY 12524# define LT_DLLAZY_OR_NOW DL_LAZY 12525# else 12526# ifdef RTLD_NOW 12527# define LT_DLLAZY_OR_NOW RTLD_NOW 12528# else 12529# ifdef DL_NOW 12530# define LT_DLLAZY_OR_NOW DL_NOW 12531# else 12532# define LT_DLLAZY_OR_NOW 0 12533# endif 12534# endif 12535# endif 12536# endif 12537#endif 12538 12539/* When -fvisibility=hidden is used, assume the code has been annotated 12540 correspondingly for the symbols needed. */ 12541#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12542int fnord () __attribute__((visibility("default"))); 12543#endif 12544 12545int fnord () { return 42; } 12546int main () 12547{ 12548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12549 int status = $lt_dlunknown; 12550 12551 if (self) 12552 { 12553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12554 else 12555 { 12556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12557 else puts (dlerror ()); 12558 } 12559 /* dlclose (self); */ 12560 } 12561 else 12562 puts (dlerror ()); 12563 12564 return status; 12565} 12566_LT_EOF 12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12568 (eval $ac_link) 2>&5 12569 ac_status=$? 12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12572 (./conftest; exit; ) >&5 2>/dev/null 12573 lt_status=$? 12574 case x$lt_status in 12575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12578 esac 12579 else : 12580 # compilation failed 12581 lt_cv_dlopen_self=no 12582 fi 12583fi 12584rm -fr conftest* 12585 12586 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12589$as_echo "$lt_cv_dlopen_self" >&6; } 12590 12591 if test yes = "$lt_cv_dlopen_self"; then 12592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12594$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12595if ${lt_cv_dlopen_self_static+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597else 12598 if test yes = "$cross_compiling"; then : 12599 lt_cv_dlopen_self_static=cross 12600else 12601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12602 lt_status=$lt_dlunknown 12603 cat > conftest.$ac_ext <<_LT_EOF 12604#line $LINENO "configure" 12605#include "confdefs.h" 12606 12607#if HAVE_DLFCN_H 12608#include <dlfcn.h> 12609#endif 12610 12611#include <stdio.h> 12612 12613#ifdef RTLD_GLOBAL 12614# define LT_DLGLOBAL RTLD_GLOBAL 12615#else 12616# ifdef DL_GLOBAL 12617# define LT_DLGLOBAL DL_GLOBAL 12618# else 12619# define LT_DLGLOBAL 0 12620# endif 12621#endif 12622 12623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12624 find out it does not work in some platform. */ 12625#ifndef LT_DLLAZY_OR_NOW 12626# ifdef RTLD_LAZY 12627# define LT_DLLAZY_OR_NOW RTLD_LAZY 12628# else 12629# ifdef DL_LAZY 12630# define LT_DLLAZY_OR_NOW DL_LAZY 12631# else 12632# ifdef RTLD_NOW 12633# define LT_DLLAZY_OR_NOW RTLD_NOW 12634# else 12635# ifdef DL_NOW 12636# define LT_DLLAZY_OR_NOW DL_NOW 12637# else 12638# define LT_DLLAZY_OR_NOW 0 12639# endif 12640# endif 12641# endif 12642# endif 12643#endif 12644 12645/* When -fvisibility=hidden is used, assume the code has been annotated 12646 correspondingly for the symbols needed. */ 12647#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12648int fnord () __attribute__((visibility("default"))); 12649#endif 12650 12651int fnord () { return 42; } 12652int main () 12653{ 12654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12655 int status = $lt_dlunknown; 12656 12657 if (self) 12658 { 12659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12660 else 12661 { 12662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12663 else puts (dlerror ()); 12664 } 12665 /* dlclose (self); */ 12666 } 12667 else 12668 puts (dlerror ()); 12669 12670 return status; 12671} 12672_LT_EOF 12673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12674 (eval $ac_link) 2>&5 12675 ac_status=$? 12676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12677 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12678 (./conftest; exit; ) >&5 2>/dev/null 12679 lt_status=$? 12680 case x$lt_status in 12681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12684 esac 12685 else : 12686 # compilation failed 12687 lt_cv_dlopen_self_static=no 12688 fi 12689fi 12690rm -fr conftest* 12691 12692 12693fi 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12695$as_echo "$lt_cv_dlopen_self_static" >&6; } 12696 fi 12697 12698 CPPFLAGS=$save_CPPFLAGS 12699 LDFLAGS=$save_LDFLAGS 12700 LIBS=$save_LIBS 12701 ;; 12702 esac 12703 12704 case $lt_cv_dlopen_self in 12705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12706 *) enable_dlopen_self=unknown ;; 12707 esac 12708 12709 case $lt_cv_dlopen_self_static in 12710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12711 *) enable_dlopen_self_static=unknown ;; 12712 esac 12713fi 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731striplib= 12732old_striplib= 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12734$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12735if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12737 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12739$as_echo "yes" >&6; } 12740else 12741# FIXME - insert some real tests, host_os isn't really good enough 12742 case $host_os in 12743 darwin*) 12744 if test -n "$STRIP"; then 12745 striplib="$STRIP -x" 12746 old_striplib="$STRIP -S" 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12748$as_echo "yes" >&6; } 12749 else 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12751$as_echo "no" >&6; } 12752 fi 12753 ;; 12754 *) 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12756$as_echo "no" >&6; } 12757 ;; 12758 esac 12759fi 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 # Report what library types will actually be built 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12774$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12776$as_echo "$can_build_shared" >&6; } 12777 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12779$as_echo_n "checking whether to build shared libraries... " >&6; } 12780 test no = "$can_build_shared" && enable_shared=no 12781 12782 # On AIX, shared libraries and static libraries use the same namespace, and 12783 # are all built from PIC. 12784 case $host_os in 12785 aix3*) 12786 test yes = "$enable_shared" && enable_static=no 12787 if test -n "$RANLIB"; then 12788 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12789 postinstall_cmds='$RANLIB $lib' 12790 fi 12791 ;; 12792 12793 aix[4-9]*) 12794 if test ia64 != "$host_cpu"; then 12795 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12796 yes,aix,yes) ;; # shared object as lib.so file only 12797 yes,svr4,*) ;; # shared object as lib.so archive member only 12798 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12799 esac 12800 fi 12801 ;; 12802 esac 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12804$as_echo "$enable_shared" >&6; } 12805 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12807$as_echo_n "checking whether to build static libraries... " >&6; } 12808 # Make sure either enable_shared or enable_static is yes. 12809 test yes = "$enable_shared" || enable_static=yes 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12811$as_echo "$enable_static" >&6; } 12812 12813 12814 12815 12816fi 12817ac_ext=c 12818ac_cpp='$CPP $CPPFLAGS' 12819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12821ac_compiler_gnu=$ac_cv_c_compiler_gnu 12822 12823CC=$lt_save_CC 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 ac_config_commands="$ac_config_commands libtool" 12840 12841 12842 12843 12844# Only expand once: 12845 12846 12847 12848# Checks for programs. 12849 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12851$as_echo_n "checking whether ln -s works... " >&6; } 12852LN_S=$as_ln_s 12853if test "$LN_S" = "ln -s"; then 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12855$as_echo "yes" >&6; } 12856else 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12858$as_echo "no, using $LN_S" >&6; } 12859fi 12860 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12862$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12863if ${ac_cv_path_SED+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12867 for ac_i in 1 2 3 4 5 6 7; do 12868 ac_script="$ac_script$as_nl$ac_script" 12869 done 12870 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12871 { ac_script=; unset ac_script;} 12872 if test -z "$SED"; then 12873 ac_path_SED_found=false 12874 # Loop through the user's path and test for each of PROGNAME-LIST 12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12876for as_dir in $PATH 12877do 12878 IFS=$as_save_IFS 12879 test -z "$as_dir" && as_dir=. 12880 for ac_prog in sed gsed; do 12881 for ac_exec_ext in '' $ac_executable_extensions; do 12882 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12883 as_fn_executable_p "$ac_path_SED" || continue 12884# Check for GNU ac_path_SED and select it if it is found. 12885 # Check for GNU $ac_path_SED 12886case `"$ac_path_SED" --version 2>&1` in 12887*GNU*) 12888 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12889*) 12890 ac_count=0 12891 $as_echo_n 0123456789 >"conftest.in" 12892 while : 12893 do 12894 cat "conftest.in" "conftest.in" >"conftest.tmp" 12895 mv "conftest.tmp" "conftest.in" 12896 cp "conftest.in" "conftest.nl" 12897 $as_echo '' >> "conftest.nl" 12898 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12900 as_fn_arith $ac_count + 1 && ac_count=$as_val 12901 if test $ac_count -gt ${ac_path_SED_max-0}; then 12902 # Best one so far, save it but keep looking for a better one 12903 ac_cv_path_SED="$ac_path_SED" 12904 ac_path_SED_max=$ac_count 12905 fi 12906 # 10*(2^10) chars as input seems more than enough 12907 test $ac_count -gt 10 && break 12908 done 12909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12910esac 12911 12912 $ac_path_SED_found && break 3 12913 done 12914 done 12915 done 12916IFS=$as_save_IFS 12917 if test -z "$ac_cv_path_SED"; then 12918 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12919 fi 12920else 12921 ac_cv_path_SED=$SED 12922fi 12923 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12926$as_echo "$ac_cv_path_SED" >&6; } 12927 SED="$ac_cv_path_SED" 12928 rm -f conftest.sed 12929 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12931$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12932if ${ac_cv_path_GREP+:} false; then : 12933 $as_echo_n "(cached) " >&6 12934else 12935 if test -z "$GREP"; then 12936 ac_path_GREP_found=false 12937 # Loop through the user's path and test for each of PROGNAME-LIST 12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12939for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12940do 12941 IFS=$as_save_IFS 12942 test -z "$as_dir" && as_dir=. 12943 for ac_prog in grep ggrep; do 12944 for ac_exec_ext in '' $ac_executable_extensions; do 12945 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12946 as_fn_executable_p "$ac_path_GREP" || continue 12947# Check for GNU ac_path_GREP and select it if it is found. 12948 # Check for GNU $ac_path_GREP 12949case `"$ac_path_GREP" --version 2>&1` in 12950*GNU*) 12951 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12952*) 12953 ac_count=0 12954 $as_echo_n 0123456789 >"conftest.in" 12955 while : 12956 do 12957 cat "conftest.in" "conftest.in" >"conftest.tmp" 12958 mv "conftest.tmp" "conftest.in" 12959 cp "conftest.in" "conftest.nl" 12960 $as_echo 'GREP' >> "conftest.nl" 12961 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12963 as_fn_arith $ac_count + 1 && ac_count=$as_val 12964 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12965 # Best one so far, save it but keep looking for a better one 12966 ac_cv_path_GREP="$ac_path_GREP" 12967 ac_path_GREP_max=$ac_count 12968 fi 12969 # 10*(2^10) chars as input seems more than enough 12970 test $ac_count -gt 10 && break 12971 done 12972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12973esac 12974 12975 $ac_path_GREP_found && break 3 12976 done 12977 done 12978 done 12979IFS=$as_save_IFS 12980 if test -z "$ac_cv_path_GREP"; then 12981 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12982 fi 12983else 12984 ac_cv_path_GREP=$GREP 12985fi 12986 12987fi 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12989$as_echo "$ac_cv_path_GREP" >&6; } 12990 GREP="$ac_cv_path_GREP" 12991 12992 12993for ac_prog in gawk mawk nawk awk 12994do 12995 # Extract the first word of "$ac_prog", so it can be a program name with args. 12996set dummy $ac_prog; ac_word=$2 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12998$as_echo_n "checking for $ac_word... " >&6; } 12999if ${ac_cv_prog_AWK+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 if test -n "$AWK"; then 13003 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13004else 13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13006for as_dir in $PATH 13007do 13008 IFS=$as_save_IFS 13009 test -z "$as_dir" && as_dir=. 13010 for ac_exec_ext in '' $ac_executable_extensions; do 13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13012 ac_cv_prog_AWK="$ac_prog" 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13014 break 2 13015 fi 13016done 13017 done 13018IFS=$as_save_IFS 13019 13020fi 13021fi 13022AWK=$ac_cv_prog_AWK 13023if test -n "$AWK"; then 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13025$as_echo "$AWK" >&6; } 13026else 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13028$as_echo "no" >&6; } 13029fi 13030 13031 13032 test -n "$AWK" && break 13033done 13034 13035 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 13037$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 13038if ${ac_cv_prog_cc_c99+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040else 13041 ac_cv_prog_cc_c99=no 13042ac_save_CC=$CC 13043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044/* end confdefs.h. */ 13045#include <stdarg.h> 13046#include <stdbool.h> 13047#include <stdlib.h> 13048#include <wchar.h> 13049#include <stdio.h> 13050 13051// Check varargs macros. These examples are taken from C99 6.10.3.5. 13052#define debug(...) fprintf (stderr, __VA_ARGS__) 13053#define showlist(...) puts (#__VA_ARGS__) 13054#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 13055static void 13056test_varargs_macros (void) 13057{ 13058 int x = 1234; 13059 int y = 5678; 13060 debug ("Flag"); 13061 debug ("X = %d\n", x); 13062 showlist (The first, second, and third items.); 13063 report (x>y, "x is %d but y is %d", x, y); 13064} 13065 13066// Check long long types. 13067#define BIG64 18446744073709551615ull 13068#define BIG32 4294967295ul 13069#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 13070#if !BIG_OK 13071 your preprocessor is broken; 13072#endif 13073#if BIG_OK 13074#else 13075 your preprocessor is broken; 13076#endif 13077static long long int bignum = -9223372036854775807LL; 13078static unsigned long long int ubignum = BIG64; 13079 13080struct incomplete_array 13081{ 13082 int datasize; 13083 double data[]; 13084}; 13085 13086struct named_init { 13087 int number; 13088 const wchar_t *name; 13089 double average; 13090}; 13091 13092typedef const char *ccp; 13093 13094static inline int 13095test_restrict (ccp restrict text) 13096{ 13097 // See if C++-style comments work. 13098 // Iterate through items via the restricted pointer. 13099 // Also check for declarations in for loops. 13100 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 13101 continue; 13102 return 0; 13103} 13104 13105// Check varargs and va_copy. 13106static void 13107test_varargs (const char *format, ...) 13108{ 13109 va_list args; 13110 va_start (args, format); 13111 va_list args_copy; 13112 va_copy (args_copy, args); 13113 13114 const char *str; 13115 int number; 13116 float fnumber; 13117 13118 while (*format) 13119 { 13120 switch (*format++) 13121 { 13122 case 's': // string 13123 str = va_arg (args_copy, const char *); 13124 break; 13125 case 'd': // int 13126 number = va_arg (args_copy, int); 13127 break; 13128 case 'f': // float 13129 fnumber = va_arg (args_copy, double); 13130 break; 13131 default: 13132 break; 13133 } 13134 } 13135 va_end (args_copy); 13136 va_end (args); 13137} 13138 13139int 13140main () 13141{ 13142 13143 // Check bool. 13144 _Bool success = false; 13145 13146 // Check restrict. 13147 if (test_restrict ("String literal") == 0) 13148 success = true; 13149 char *restrict newvar = "Another string"; 13150 13151 // Check varargs. 13152 test_varargs ("s, d' f .", "string", 65, 34.234); 13153 test_varargs_macros (); 13154 13155 // Check flexible array members. 13156 struct incomplete_array *ia = 13157 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 13158 ia->datasize = 10; 13159 for (int i = 0; i < ia->datasize; ++i) 13160 ia->data[i] = i * 1.234; 13161 13162 // Check named initializers. 13163 struct named_init ni = { 13164 .number = 34, 13165 .name = L"Test wide string", 13166 .average = 543.34343, 13167 }; 13168 13169 ni.number = 58; 13170 13171 int dynamic_array[ni.number]; 13172 dynamic_array[ni.number - 1] = 543; 13173 13174 // work around unused variable warnings 13175 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 13176 || dynamic_array[ni.number - 1] != 543); 13177 13178 ; 13179 return 0; 13180} 13181_ACEOF 13182for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 13183do 13184 CC="$ac_save_CC $ac_arg" 13185 if ac_fn_c_try_compile "$LINENO"; then : 13186 ac_cv_prog_cc_c99=$ac_arg 13187fi 13188rm -f core conftest.err conftest.$ac_objext 13189 test "x$ac_cv_prog_cc_c99" != "xno" && break 13190done 13191rm -f conftest.$ac_ext 13192CC=$ac_save_CC 13193 13194fi 13195# AC_CACHE_VAL 13196case "x$ac_cv_prog_cc_c99" in 13197 x) 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13199$as_echo "none needed" >&6; } ;; 13200 xno) 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13202$as_echo "unsupported" >&6; } ;; 13203 *) 13204 CC="$CC $ac_cv_prog_cc_c99" 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13206$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 13207esac 13208if test "x$ac_cv_prog_cc_c99" != xno; then : 13209 13210fi 13211 13212 13213if test "x$ac_cv_prog_cc_c99" = "xno"; then : 13214 13215 as_fn_error $? "no C99 compiler found, $PACKAGE requires a C99 compiler." "$LINENO" 5 13216 13217fi 13218 13219ac_ext=cpp 13220ac_cpp='$CXXCPP $CPPFLAGS' 13221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13224if test -z "$CXX"; then 13225 if test -n "$CCC"; then 13226 CXX=$CCC 13227 else 13228 if test -n "$ac_tool_prefix"; then 13229 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13230 do 13231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13234$as_echo_n "checking for $ac_word... " >&6; } 13235if ${ac_cv_prog_CXX+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 if test -n "$CXX"; then 13239 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13240else 13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13242for as_dir in $PATH 13243do 13244 IFS=$as_save_IFS 13245 test -z "$as_dir" && as_dir=. 13246 for ac_exec_ext in '' $ac_executable_extensions; do 13247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13248 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13250 break 2 13251 fi 13252done 13253 done 13254IFS=$as_save_IFS 13255 13256fi 13257fi 13258CXX=$ac_cv_prog_CXX 13259if test -n "$CXX"; then 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13261$as_echo "$CXX" >&6; } 13262else 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13264$as_echo "no" >&6; } 13265fi 13266 13267 13268 test -n "$CXX" && break 13269 done 13270fi 13271if test -z "$CXX"; then 13272 ac_ct_CXX=$CXX 13273 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13274do 13275 # Extract the first word of "$ac_prog", so it can be a program name with args. 13276set dummy $ac_prog; ac_word=$2 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13278$as_echo_n "checking for $ac_word... " >&6; } 13279if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 if test -n "$ac_ct_CXX"; then 13283 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13284else 13285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13286for as_dir in $PATH 13287do 13288 IFS=$as_save_IFS 13289 test -z "$as_dir" && as_dir=. 13290 for ac_exec_ext in '' $ac_executable_extensions; do 13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13292 ac_cv_prog_ac_ct_CXX="$ac_prog" 13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13294 break 2 13295 fi 13296done 13297 done 13298IFS=$as_save_IFS 13299 13300fi 13301fi 13302ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13303if test -n "$ac_ct_CXX"; then 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13305$as_echo "$ac_ct_CXX" >&6; } 13306else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13308$as_echo "no" >&6; } 13309fi 13310 13311 13312 test -n "$ac_ct_CXX" && break 13313done 13314 13315 if test "x$ac_ct_CXX" = x; then 13316 CXX="g++" 13317 else 13318 case $cross_compiling:$ac_tool_warned in 13319yes:) 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13322ac_tool_warned=yes ;; 13323esac 13324 CXX=$ac_ct_CXX 13325 fi 13326fi 13327 13328 fi 13329fi 13330# Provide some information about the compiler. 13331$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13332set X $ac_compile 13333ac_compiler=$2 13334for ac_option in --version -v -V -qversion; do 13335 { { ac_try="$ac_compiler $ac_option >&5" 13336case "(($ac_try" in 13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13338 *) ac_try_echo=$ac_try;; 13339esac 13340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13341$as_echo "$ac_try_echo"; } >&5 13342 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13343 ac_status=$? 13344 if test -s conftest.err; then 13345 sed '10a\ 13346... rest of stderr output deleted ... 13347 10q' conftest.err >conftest.er1 13348 cat conftest.er1 >&5 13349 fi 13350 rm -f conftest.er1 conftest.err 13351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13352 test $ac_status = 0; } 13353done 13354 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13356$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13357if ${ac_cv_cxx_compiler_gnu+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362 13363int 13364main () 13365{ 13366#ifndef __GNUC__ 13367 choke me 13368#endif 13369 13370 ; 13371 return 0; 13372} 13373_ACEOF 13374if ac_fn_cxx_try_compile "$LINENO"; then : 13375 ac_compiler_gnu=yes 13376else 13377 ac_compiler_gnu=no 13378fi 13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13380ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13381 13382fi 13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13384$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13385if test $ac_compiler_gnu = yes; then 13386 GXX=yes 13387else 13388 GXX= 13389fi 13390ac_test_CXXFLAGS=${CXXFLAGS+set} 13391ac_save_CXXFLAGS=$CXXFLAGS 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13393$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13394if ${ac_cv_prog_cxx_g+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13398 ac_cxx_werror_flag=yes 13399 ac_cv_prog_cxx_g=no 13400 CXXFLAGS="-g" 13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13402/* end confdefs.h. */ 13403 13404int 13405main () 13406{ 13407 13408 ; 13409 return 0; 13410} 13411_ACEOF 13412if ac_fn_cxx_try_compile "$LINENO"; then : 13413 ac_cv_prog_cxx_g=yes 13414else 13415 CXXFLAGS="" 13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418 13419int 13420main () 13421{ 13422 13423 ; 13424 return 0; 13425} 13426_ACEOF 13427if ac_fn_cxx_try_compile "$LINENO"; then : 13428 13429else 13430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13431 CXXFLAGS="-g" 13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433/* end confdefs.h. */ 13434 13435int 13436main () 13437{ 13438 13439 ; 13440 return 0; 13441} 13442_ACEOF 13443if ac_fn_cxx_try_compile "$LINENO"; then : 13444 ac_cv_prog_cxx_g=yes 13445fi 13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13447fi 13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13449fi 13450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13451 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13452fi 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13454$as_echo "$ac_cv_prog_cxx_g" >&6; } 13455if test "$ac_test_CXXFLAGS" = set; then 13456 CXXFLAGS=$ac_save_CXXFLAGS 13457elif test $ac_cv_prog_cxx_g = yes; then 13458 if test "$GXX" = yes; then 13459 CXXFLAGS="-g -O2" 13460 else 13461 CXXFLAGS="-g" 13462 fi 13463else 13464 if test "$GXX" = yes; then 13465 CXXFLAGS="-O2" 13466 else 13467 CXXFLAGS= 13468 fi 13469fi 13470ac_ext=c 13471ac_cpp='$CPP $CPPFLAGS' 13472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13474ac_compiler_gnu=$ac_cv_c_compiler_gnu 13475 13476depcc="$CXX" am_compiler_list= 13477 13478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13479$as_echo_n "checking dependency style of $depcc... " >&6; } 13480if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13484 # We make a subdir and do the tests there. Otherwise we can end up 13485 # making bogus files that we don't know about and never remove. For 13486 # instance it was reported that on HP-UX the gcc test will end up 13487 # making a dummy file named 'D' -- because '-MD' means "put the output 13488 # in D". 13489 rm -rf conftest.dir 13490 mkdir conftest.dir 13491 # Copy depcomp to subdir because otherwise we won't find it if we're 13492 # using a relative directory. 13493 cp "$am_depcomp" conftest.dir 13494 cd conftest.dir 13495 # We will build objects and dependencies in a subdirectory because 13496 # it helps to detect inapplicable dependency modes. For instance 13497 # both Tru64's cc and ICC support -MD to output dependencies as a 13498 # side effect of compilation, but ICC will put the dependencies in 13499 # the current directory while Tru64 will put them in the object 13500 # directory. 13501 mkdir sub 13502 13503 am_cv_CXX_dependencies_compiler_type=none 13504 if test "$am_compiler_list" = ""; then 13505 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13506 fi 13507 am__universal=false 13508 case " $depcc " in #( 13509 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13510 esac 13511 13512 for depmode in $am_compiler_list; do 13513 # Setup a source with many dependencies, because some compilers 13514 # like to wrap large dependency lists on column 80 (with \), and 13515 # we should not choose a depcomp mode which is confused by this. 13516 # 13517 # We need to recreate these files for each test, as the compiler may 13518 # overwrite some of them when testing with obscure command lines. 13519 # This happens at least with the AIX C compiler. 13520 : > sub/conftest.c 13521 for i in 1 2 3 4 5 6; do 13522 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13523 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13524 # Solaris 10 /bin/sh. 13525 echo '/* dummy */' > sub/conftst$i.h 13526 done 13527 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13528 13529 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13530 # mode. It turns out that the SunPro C++ compiler does not properly 13531 # handle '-M -o', and we need to detect this. Also, some Intel 13532 # versions had trouble with output in subdirs. 13533 am__obj=sub/conftest.${OBJEXT-o} 13534 am__minus_obj="-o $am__obj" 13535 case $depmode in 13536 gcc) 13537 # This depmode causes a compiler race in universal mode. 13538 test "$am__universal" = false || continue 13539 ;; 13540 nosideeffect) 13541 # After this tag, mechanisms are not by side-effect, so they'll 13542 # only be used when explicitly requested. 13543 if test "x$enable_dependency_tracking" = xyes; then 13544 continue 13545 else 13546 break 13547 fi 13548 ;; 13549 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13550 # This compiler won't grok '-c -o', but also, the minuso test has 13551 # not run yet. These depmodes are late enough in the game, and 13552 # so weak that their functioning should not be impacted. 13553 am__obj=conftest.${OBJEXT-o} 13554 am__minus_obj= 13555 ;; 13556 none) break ;; 13557 esac 13558 if depmode=$depmode \ 13559 source=sub/conftest.c object=$am__obj \ 13560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13561 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13562 >/dev/null 2>conftest.err && 13563 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13565 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13567 # icc doesn't choke on unknown options, it will just issue warnings 13568 # or remarks (even with -Werror). So we grep stderr for any message 13569 # that says an option was ignored or not supported. 13570 # When given -MP, icc 7.0 and 7.1 complain thusly: 13571 # icc: Command line warning: ignoring option '-M'; no argument required 13572 # The diagnosis changed in icc 8.0: 13573 # icc: Command line remark: option '-MP' not supported 13574 if (grep 'ignoring option' conftest.err || 13575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13576 am_cv_CXX_dependencies_compiler_type=$depmode 13577 break 13578 fi 13579 fi 13580 done 13581 13582 cd .. 13583 rm -rf conftest.dir 13584else 13585 am_cv_CXX_dependencies_compiler_type=none 13586fi 13587 13588fi 13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13590$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13591CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13592 13593 if 13594 test "x$enable_dependency_tracking" != xno \ 13595 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13596 am__fastdepCXX_TRUE= 13597 am__fastdepCXX_FALSE='#' 13598else 13599 am__fastdepCXX_TRUE='#' 13600 am__fastdepCXX_FALSE= 13601fi 13602 13603 13604 13605 13606func_stripname_cnf () 13607{ 13608 case $2 in 13609 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13610 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13611 esac 13612} # func_stripname_cnf 13613 13614 if test -n "$CXX" && ( test no != "$CXX" && 13615 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13616 (test g++ != "$CXX"))); then 13617 ac_ext=cpp 13618ac_cpp='$CXXCPP $CPPFLAGS' 13619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13623$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13624if test -z "$CXXCPP"; then 13625 if ${ac_cv_prog_CXXCPP+:} false; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 # Double quotes because CXXCPP needs to be expanded 13629 for CXXCPP in "$CXX -E" "/lib/cpp" 13630 do 13631 ac_preproc_ok=false 13632for ac_cxx_preproc_warn_flag in '' yes 13633do 13634 # Use a header file that comes with gcc, so configuring glibc 13635 # with a fresh cross-compiler works. 13636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13637 # <limits.h> exists even on freestanding compilers. 13638 # On the NeXT, cc -E runs the code through the compiler's parser, 13639 # not just through cpp. "Syntax error" is here to catch this case. 13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13641/* end confdefs.h. */ 13642#ifdef __STDC__ 13643# include <limits.h> 13644#else 13645# include <assert.h> 13646#endif 13647 Syntax error 13648_ACEOF 13649if ac_fn_cxx_try_cpp "$LINENO"; then : 13650 13651else 13652 # Broken: fails on valid input. 13653continue 13654fi 13655rm -f conftest.err conftest.i conftest.$ac_ext 13656 13657 # OK, works on sane cases. Now check whether nonexistent headers 13658 # can be detected and how. 13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13660/* end confdefs.h. */ 13661#include <ac_nonexistent.h> 13662_ACEOF 13663if ac_fn_cxx_try_cpp "$LINENO"; then : 13664 # Broken: success on invalid input. 13665continue 13666else 13667 # Passes both tests. 13668ac_preproc_ok=: 13669break 13670fi 13671rm -f conftest.err conftest.i conftest.$ac_ext 13672 13673done 13674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13675rm -f conftest.i conftest.err conftest.$ac_ext 13676if $ac_preproc_ok; then : 13677 break 13678fi 13679 13680 done 13681 ac_cv_prog_CXXCPP=$CXXCPP 13682 13683fi 13684 CXXCPP=$ac_cv_prog_CXXCPP 13685else 13686 ac_cv_prog_CXXCPP=$CXXCPP 13687fi 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13689$as_echo "$CXXCPP" >&6; } 13690ac_preproc_ok=false 13691for ac_cxx_preproc_warn_flag in '' yes 13692do 13693 # Use a header file that comes with gcc, so configuring glibc 13694 # with a fresh cross-compiler works. 13695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13696 # <limits.h> exists even on freestanding compilers. 13697 # On the NeXT, cc -E runs the code through the compiler's parser, 13698 # not just through cpp. "Syntax error" is here to catch this case. 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701#ifdef __STDC__ 13702# include <limits.h> 13703#else 13704# include <assert.h> 13705#endif 13706 Syntax error 13707_ACEOF 13708if ac_fn_cxx_try_cpp "$LINENO"; then : 13709 13710else 13711 # Broken: fails on valid input. 13712continue 13713fi 13714rm -f conftest.err conftest.i conftest.$ac_ext 13715 13716 # OK, works on sane cases. Now check whether nonexistent headers 13717 # can be detected and how. 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720#include <ac_nonexistent.h> 13721_ACEOF 13722if ac_fn_cxx_try_cpp "$LINENO"; then : 13723 # Broken: success on invalid input. 13724continue 13725else 13726 # Passes both tests. 13727ac_preproc_ok=: 13728break 13729fi 13730rm -f conftest.err conftest.i conftest.$ac_ext 13731 13732done 13733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13734rm -f conftest.i conftest.err conftest.$ac_ext 13735if $ac_preproc_ok; then : 13736 13737else 13738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13740as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13741See \`config.log' for more details" "$LINENO" 5; } 13742fi 13743 13744ac_ext=c 13745ac_cpp='$CPP $CPPFLAGS' 13746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13748ac_compiler_gnu=$ac_cv_c_compiler_gnu 13749 13750else 13751 _lt_caught_CXX_error=yes 13752fi 13753 13754ac_ext=cpp 13755ac_cpp='$CXXCPP $CPPFLAGS' 13756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13759 13760archive_cmds_need_lc_CXX=no 13761allow_undefined_flag_CXX= 13762always_export_symbols_CXX=no 13763archive_expsym_cmds_CXX= 13764compiler_needs_object_CXX=no 13765export_dynamic_flag_spec_CXX= 13766hardcode_direct_CXX=no 13767hardcode_direct_absolute_CXX=no 13768hardcode_libdir_flag_spec_CXX= 13769hardcode_libdir_separator_CXX= 13770hardcode_minus_L_CXX=no 13771hardcode_shlibpath_var_CXX=unsupported 13772hardcode_automatic_CXX=no 13773inherit_rpath_CXX=no 13774module_cmds_CXX= 13775module_expsym_cmds_CXX= 13776link_all_deplibs_CXX=unknown 13777old_archive_cmds_CXX=$old_archive_cmds 13778reload_flag_CXX=$reload_flag 13779reload_cmds_CXX=$reload_cmds 13780no_undefined_flag_CXX= 13781whole_archive_flag_spec_CXX= 13782enable_shared_with_static_runtimes_CXX=no 13783 13784# Source file extension for C++ test sources. 13785ac_ext=cpp 13786 13787# Object file extension for compiled C++ test sources. 13788objext=o 13789objext_CXX=$objext 13790 13791# No sense in running all these tests if we already determined that 13792# the CXX compiler isn't working. Some variables (like enable_shared) 13793# are currently assumed to apply to all compilers on this platform, 13794# and will be corrupted by setting them based on a non-working compiler. 13795if test yes != "$_lt_caught_CXX_error"; then 13796 # Code to be used in simple compile tests 13797 lt_simple_compile_test_code="int some_variable = 0;" 13798 13799 # Code to be used in simple link tests 13800 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13801 13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13803 13804 13805 13806 13807 13808 13809# If no C compiler was specified, use CC. 13810LTCC=${LTCC-"$CC"} 13811 13812# If no C compiler flags were specified, use CFLAGS. 13813LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13814 13815# Allow CC to be a program name with arguments. 13816compiler=$CC 13817 13818 13819 # save warnings/boilerplate of simple test code 13820 ac_outfile=conftest.$ac_objext 13821echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13823_lt_compiler_boilerplate=`cat conftest.err` 13824$RM conftest* 13825 13826 ac_outfile=conftest.$ac_objext 13827echo "$lt_simple_link_test_code" >conftest.$ac_ext 13828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13829_lt_linker_boilerplate=`cat conftest.err` 13830$RM -r conftest* 13831 13832 13833 # Allow CC to be a program name with arguments. 13834 lt_save_CC=$CC 13835 lt_save_CFLAGS=$CFLAGS 13836 lt_save_LD=$LD 13837 lt_save_GCC=$GCC 13838 GCC=$GXX 13839 lt_save_with_gnu_ld=$with_gnu_ld 13840 lt_save_path_LD=$lt_cv_path_LD 13841 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13842 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13843 else 13844 $as_unset lt_cv_prog_gnu_ld 13845 fi 13846 if test -n "${lt_cv_path_LDCXX+set}"; then 13847 lt_cv_path_LD=$lt_cv_path_LDCXX 13848 else 13849 $as_unset lt_cv_path_LD 13850 fi 13851 test -z "${LDCXX+set}" || LD=$LDCXX 13852 CC=${CXX-"c++"} 13853 CFLAGS=$CXXFLAGS 13854 compiler=$CC 13855 compiler_CXX=$CC 13856 func_cc_basename $compiler 13857cc_basename=$func_cc_basename_result 13858 13859 13860 if test -n "$compiler"; then 13861 # We don't want -fno-exception when compiling C++ code, so set the 13862 # no_builtin_flag separately 13863 if test yes = "$GXX"; then 13864 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13865 else 13866 lt_prog_compiler_no_builtin_flag_CXX= 13867 fi 13868 13869 if test yes = "$GXX"; then 13870 # Set up default GNU C++ configuration 13871 13872 13873 13874# Check whether --with-gnu-ld was given. 13875if test "${with_gnu_ld+set}" = set; then : 13876 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13877else 13878 with_gnu_ld=no 13879fi 13880 13881ac_prog=ld 13882if test yes = "$GCC"; then 13883 # Check if gcc -print-prog-name=ld gives a path. 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13885$as_echo_n "checking for ld used by $CC... " >&6; } 13886 case $host in 13887 *-*-mingw*) 13888 # gcc leaves a trailing carriage return, which upsets mingw 13889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13890 *) 13891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13892 esac 13893 case $ac_prog in 13894 # Accept absolute paths. 13895 [\\/]* | ?:[\\/]*) 13896 re_direlt='/[^/][^/]*/\.\./' 13897 # Canonicalize the pathname of ld 13898 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13899 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13900 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13901 done 13902 test -z "$LD" && LD=$ac_prog 13903 ;; 13904 "") 13905 # If it fails, then pretend we aren't using GCC. 13906 ac_prog=ld 13907 ;; 13908 *) 13909 # If it is relative, then search for the first ld in PATH. 13910 with_gnu_ld=unknown 13911 ;; 13912 esac 13913elif test yes = "$with_gnu_ld"; then 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13915$as_echo_n "checking for GNU ld... " >&6; } 13916else 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13918$as_echo_n "checking for non-GNU ld... " >&6; } 13919fi 13920if ${lt_cv_path_LD+:} false; then : 13921 $as_echo_n "(cached) " >&6 13922else 13923 if test -z "$LD"; then 13924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13925 for ac_dir in $PATH; do 13926 IFS=$lt_save_ifs 13927 test -z "$ac_dir" && ac_dir=. 13928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13929 lt_cv_path_LD=$ac_dir/$ac_prog 13930 # Check to see if the program is GNU ld. I'd rather use --version, 13931 # but apparently some variants of GNU ld only accept -v. 13932 # Break only if it was the GNU/non-GNU ld that we prefer. 13933 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13934 *GNU* | *'with BFD'*) 13935 test no != "$with_gnu_ld" && break 13936 ;; 13937 *) 13938 test yes != "$with_gnu_ld" && break 13939 ;; 13940 esac 13941 fi 13942 done 13943 IFS=$lt_save_ifs 13944else 13945 lt_cv_path_LD=$LD # Let the user override the test with a path. 13946fi 13947fi 13948 13949LD=$lt_cv_path_LD 13950if test -n "$LD"; then 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13952$as_echo "$LD" >&6; } 13953else 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13955$as_echo "no" >&6; } 13956fi 13957test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13959$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13960if ${lt_cv_prog_gnu_ld+:} false; then : 13961 $as_echo_n "(cached) " >&6 13962else 13963 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13964case `$LD -v 2>&1 </dev/null` in 13965*GNU* | *'with BFD'*) 13966 lt_cv_prog_gnu_ld=yes 13967 ;; 13968*) 13969 lt_cv_prog_gnu_ld=no 13970 ;; 13971esac 13972fi 13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13974$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13975with_gnu_ld=$lt_cv_prog_gnu_ld 13976 13977 13978 13979 13980 13981 13982 13983 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13984 # archiving commands below assume that GNU ld is being used. 13985 if test yes = "$with_gnu_ld"; then 13986 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13987 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' 13988 13989 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13990 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13991 13992 # If archive_cmds runs LD, not CC, wlarc should be empty 13993 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13994 # investigate it a little bit more. (MM) 13995 wlarc='$wl' 13996 13997 # ancient GNU ld didn't support --whole-archive et. al. 13998 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13999 $GREP 'no-whole-archive' > /dev/null; then 14000 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14001 else 14002 whole_archive_flag_spec_CXX= 14003 fi 14004 else 14005 with_gnu_ld=no 14006 wlarc= 14007 14008 # A generic and very simple default shared library creation 14009 # command for GNU C++ for the case where it uses the native 14010 # linker, instead of GNU ld. If possible, this setting should 14011 # overridden to take advantage of the native linker features on 14012 # the platform it is being used on. 14013 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14014 fi 14015 14016 # Commands to make compiler produce verbose output that lists 14017 # what "hidden" libraries, object files and flags are used when 14018 # linking a shared library. 14019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14020 14021 else 14022 GXX=no 14023 with_gnu_ld=no 14024 wlarc= 14025 fi 14026 14027 # PORTME: fill in a description of your system's C++ link characteristics 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14029$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14030 ld_shlibs_CXX=yes 14031 case $host_os in 14032 aix3*) 14033 # FIXME: insert proper C++ library support 14034 ld_shlibs_CXX=no 14035 ;; 14036 aix[4-9]*) 14037 if test ia64 = "$host_cpu"; then 14038 # On IA64, the linker does run time linking by default, so we don't 14039 # have to do anything special. 14040 aix_use_runtimelinking=no 14041 exp_sym_flag='-Bexport' 14042 no_entry_flag= 14043 else 14044 aix_use_runtimelinking=no 14045 14046 # Test if we are trying to use run time linking or normal 14047 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14048 # have runtime linking enabled, and use it for executables. 14049 # For shared libraries, we enable/disable runtime linking 14050 # depending on the kind of the shared library created - 14051 # when "with_aix_soname,aix_use_runtimelinking" is: 14052 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14053 # "aix,yes" lib.so shared, rtl:yes, for executables 14054 # lib.a static archive 14055 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14056 # lib.a(lib.so.V) shared, rtl:no, for executables 14057 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14058 # lib.a(lib.so.V) shared, rtl:no 14059 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14060 # lib.a static archive 14061 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14062 for ld_flag in $LDFLAGS; do 14063 case $ld_flag in 14064 *-brtl*) 14065 aix_use_runtimelinking=yes 14066 break 14067 ;; 14068 esac 14069 done 14070 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14071 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14072 # so we don't have lib.a shared libs to link our executables. 14073 # We have to force runtime linking in this case. 14074 aix_use_runtimelinking=yes 14075 LDFLAGS="$LDFLAGS -Wl,-brtl" 14076 fi 14077 ;; 14078 esac 14079 14080 exp_sym_flag='-bexport' 14081 no_entry_flag='-bnoentry' 14082 fi 14083 14084 # When large executables or shared objects are built, AIX ld can 14085 # have problems creating the table of contents. If linking a library 14086 # or program results in "error TOC overflow" add -mminimal-toc to 14087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14089 14090 archive_cmds_CXX='' 14091 hardcode_direct_CXX=yes 14092 hardcode_direct_absolute_CXX=yes 14093 hardcode_libdir_separator_CXX=':' 14094 link_all_deplibs_CXX=yes 14095 file_list_spec_CXX='$wl-f,' 14096 case $with_aix_soname,$aix_use_runtimelinking in 14097 aix,*) ;; # no import file 14098 svr4,* | *,yes) # use import file 14099 # The Import File defines what to hardcode. 14100 hardcode_direct_CXX=no 14101 hardcode_direct_absolute_CXX=no 14102 ;; 14103 esac 14104 14105 if test yes = "$GXX"; then 14106 case $host_os in aix4.[012]|aix4.[012].*) 14107 # We only want to do this on AIX 4.2 and lower, the check 14108 # below for broken collect2 doesn't work under 4.3+ 14109 collect2name=`$CC -print-prog-name=collect2` 14110 if test -f "$collect2name" && 14111 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14112 then 14113 # We have reworked collect2 14114 : 14115 else 14116 # We have old collect2 14117 hardcode_direct_CXX=unsupported 14118 # It fails to find uninstalled libraries when the uninstalled 14119 # path is not listed in the libpath. Setting hardcode_minus_L 14120 # to unsupported forces relinking 14121 hardcode_minus_L_CXX=yes 14122 hardcode_libdir_flag_spec_CXX='-L$libdir' 14123 hardcode_libdir_separator_CXX= 14124 fi 14125 esac 14126 shared_flag='-shared' 14127 if test yes = "$aix_use_runtimelinking"; then 14128 shared_flag=$shared_flag' $wl-G' 14129 fi 14130 # Need to ensure runtime linking is disabled for the traditional 14131 # shared library, or the linker may eventually find shared libraries 14132 # /with/ Import File - we do not want to mix them. 14133 shared_flag_aix='-shared' 14134 shared_flag_svr4='-shared $wl-G' 14135 else 14136 # not using gcc 14137 if test ia64 = "$host_cpu"; then 14138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14139 # chokes on -Wl,-G. The following line is correct: 14140 shared_flag='-G' 14141 else 14142 if test yes = "$aix_use_runtimelinking"; then 14143 shared_flag='$wl-G' 14144 else 14145 shared_flag='$wl-bM:SRE' 14146 fi 14147 shared_flag_aix='$wl-bM:SRE' 14148 shared_flag_svr4='$wl-G' 14149 fi 14150 fi 14151 14152 export_dynamic_flag_spec_CXX='$wl-bexpall' 14153 # It seems that -bexpall does not export symbols beginning with 14154 # underscore (_), so it is better to generate a list of symbols to 14155 # export. 14156 always_export_symbols_CXX=yes 14157 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14158 # Warning - without using the other runtime loading flags (-brtl), 14159 # -berok will link without error, but may produce a broken library. 14160 # The "-G" linker flag allows undefined symbols. 14161 no_undefined_flag_CXX='-bernotok' 14162 # Determine the default libpath from the value encoded in an empty 14163 # executable. 14164 if test set = "${lt_cv_aix_libpath+set}"; then 14165 aix_libpath=$lt_cv_aix_libpath 14166else 14167 if ${lt_cv_aix_libpath__CXX+:} false; then : 14168 $as_echo_n "(cached) " >&6 14169else 14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172 14173int 14174main () 14175{ 14176 14177 ; 14178 return 0; 14179} 14180_ACEOF 14181if ac_fn_cxx_try_link "$LINENO"; then : 14182 14183 lt_aix_libpath_sed=' 14184 /Import File Strings/,/^$/ { 14185 /^0/ { 14186 s/^0 *\([^ ]*\) *$/\1/ 14187 p 14188 } 14189 }' 14190 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14191 # Check for a 64-bit object if we didn't find anything. 14192 if test -z "$lt_cv_aix_libpath__CXX"; then 14193 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14194 fi 14195fi 14196rm -f core conftest.err conftest.$ac_objext \ 14197 conftest$ac_exeext conftest.$ac_ext 14198 if test -z "$lt_cv_aix_libpath__CXX"; then 14199 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14200 fi 14201 14202fi 14203 14204 aix_libpath=$lt_cv_aix_libpath__CXX 14205fi 14206 14207 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14208 14209 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14210 else 14211 if test ia64 = "$host_cpu"; then 14212 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14213 allow_undefined_flag_CXX="-z nodefs" 14214 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" 14215 else 14216 # Determine the default libpath from the value encoded in an 14217 # empty executable. 14218 if test set = "${lt_cv_aix_libpath+set}"; then 14219 aix_libpath=$lt_cv_aix_libpath 14220else 14221 if ${lt_cv_aix_libpath__CXX+:} false; then : 14222 $as_echo_n "(cached) " >&6 14223else 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225/* end confdefs.h. */ 14226 14227int 14228main () 14229{ 14230 14231 ; 14232 return 0; 14233} 14234_ACEOF 14235if ac_fn_cxx_try_link "$LINENO"; then : 14236 14237 lt_aix_libpath_sed=' 14238 /Import File Strings/,/^$/ { 14239 /^0/ { 14240 s/^0 *\([^ ]*\) *$/\1/ 14241 p 14242 } 14243 }' 14244 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14245 # Check for a 64-bit object if we didn't find anything. 14246 if test -z "$lt_cv_aix_libpath__CXX"; then 14247 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14248 fi 14249fi 14250rm -f core conftest.err conftest.$ac_objext \ 14251 conftest$ac_exeext conftest.$ac_ext 14252 if test -z "$lt_cv_aix_libpath__CXX"; then 14253 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14254 fi 14255 14256fi 14257 14258 aix_libpath=$lt_cv_aix_libpath__CXX 14259fi 14260 14261 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14262 # Warning - without using the other run time loading flags, 14263 # -berok will link without error, but may produce a broken library. 14264 no_undefined_flag_CXX=' $wl-bernotok' 14265 allow_undefined_flag_CXX=' $wl-berok' 14266 if test yes = "$with_gnu_ld"; then 14267 # We only use this code for GNU lds that support --whole-archive. 14268 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14269 else 14270 # Exported symbols can be pulled into shared objects from archives 14271 whole_archive_flag_spec_CXX='$convenience' 14272 fi 14273 archive_cmds_need_lc_CXX=yes 14274 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14275 # -brtl affects multiple linker settings, -berok does not and is overridden later 14276 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14277 if test svr4 != "$with_aix_soname"; then 14278 # This is similar to how AIX traditionally builds its shared 14279 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14280 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14281 fi 14282 if test aix != "$with_aix_soname"; then 14283 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14284 else 14285 # used by -dlpreopen to get the symbols 14286 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14287 fi 14288 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14289 fi 14290 fi 14291 ;; 14292 14293 beos*) 14294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14295 allow_undefined_flag_CXX=unsupported 14296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14297 # support --undefined. This deserves some investigation. FIXME 14298 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14299 else 14300 ld_shlibs_CXX=no 14301 fi 14302 ;; 14303 14304 chorus*) 14305 case $cc_basename in 14306 *) 14307 # FIXME: insert proper C++ library support 14308 ld_shlibs_CXX=no 14309 ;; 14310 esac 14311 ;; 14312 14313 cygwin* | mingw* | pw32* | cegcc*) 14314 case $GXX,$cc_basename in 14315 ,cl* | no,cl*) 14316 # Native MSVC 14317 # hardcode_libdir_flag_spec is actually meaningless, as there is 14318 # no search path for DLLs. 14319 hardcode_libdir_flag_spec_CXX=' ' 14320 allow_undefined_flag_CXX=unsupported 14321 always_export_symbols_CXX=yes 14322 file_list_spec_CXX='@' 14323 # Tell ltmain to make .lib files, not .a files. 14324 libext=lib 14325 # Tell ltmain to make .dll files, not .so files. 14326 shrext_cmds=.dll 14327 # FIXME: Setting linknames here is a bad hack. 14328 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14329 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14330 cp "$export_symbols" "$output_objdir/$soname.def"; 14331 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14332 else 14333 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14334 fi~ 14335 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14336 linknames=' 14337 # The linker will not automatically build a static lib if we build a DLL. 14338 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14339 enable_shared_with_static_runtimes_CXX=yes 14340 # Don't use ranlib 14341 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14342 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14343 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14344 case $lt_outputfile in 14345 *.exe|*.EXE) ;; 14346 *) 14347 lt_outputfile=$lt_outputfile.exe 14348 lt_tool_outputfile=$lt_tool_outputfile.exe 14349 ;; 14350 esac~ 14351 func_to_tool_file "$lt_outputfile"~ 14352 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14353 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14354 $RM "$lt_outputfile.manifest"; 14355 fi' 14356 ;; 14357 *) 14358 # g++ 14359 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14360 # as there is no search path for DLLs. 14361 hardcode_libdir_flag_spec_CXX='-L$libdir' 14362 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14363 allow_undefined_flag_CXX=unsupported 14364 always_export_symbols_CXX=no 14365 enable_shared_with_static_runtimes_CXX=yes 14366 14367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14368 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' 14369 # If the export-symbols file already is a .def file, use it as 14370 # is; otherwise, prepend EXPORTS... 14371 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14372 cp $export_symbols $output_objdir/$soname.def; 14373 else 14374 echo EXPORTS > $output_objdir/$soname.def; 14375 cat $export_symbols >> $output_objdir/$soname.def; 14376 fi~ 14377 $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' 14378 else 14379 ld_shlibs_CXX=no 14380 fi 14381 ;; 14382 esac 14383 ;; 14384 darwin* | rhapsody*) 14385 14386 14387 archive_cmds_need_lc_CXX=no 14388 hardcode_direct_CXX=no 14389 hardcode_automatic_CXX=yes 14390 hardcode_shlibpath_var_CXX=unsupported 14391 if test yes = "$lt_cv_ld_force_load"; then 14392 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\"`' 14393 14394 else 14395 whole_archive_flag_spec_CXX='' 14396 fi 14397 link_all_deplibs_CXX=yes 14398 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14399 case $cc_basename in 14400 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14401 *) _lt_dar_can_shared=$GCC ;; 14402 esac 14403 if test yes = "$_lt_dar_can_shared"; then 14404 output_verbose_link_cmd=func_echo_all 14405 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" 14406 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14407 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" 14408 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" 14409 if test yes != "$lt_cv_apple_cc_single_mod"; then 14410 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" 14411 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" 14412 fi 14413 14414 else 14415 ld_shlibs_CXX=no 14416 fi 14417 14418 ;; 14419 14420 os2*) 14421 hardcode_libdir_flag_spec_CXX='-L$libdir' 14422 hardcode_minus_L_CXX=yes 14423 allow_undefined_flag_CXX=unsupported 14424 shrext_cmds=.dll 14425 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14428 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14429 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14431 emximp -o $lib $output_objdir/$libname.def' 14432 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14435 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14436 prefix_cmds="$SED"~ 14437 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14438 prefix_cmds="$prefix_cmds -e 1d"; 14439 fi~ 14440 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14441 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14443 emximp -o $lib $output_objdir/$libname.def' 14444 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14445 enable_shared_with_static_runtimes_CXX=yes 14446 ;; 14447 14448 dgux*) 14449 case $cc_basename in 14450 ec++*) 14451 # FIXME: insert proper C++ library support 14452 ld_shlibs_CXX=no 14453 ;; 14454 ghcx*) 14455 # Green Hills C++ Compiler 14456 # FIXME: insert proper C++ library support 14457 ld_shlibs_CXX=no 14458 ;; 14459 *) 14460 # FIXME: insert proper C++ library support 14461 ld_shlibs_CXX=no 14462 ;; 14463 esac 14464 ;; 14465 14466 freebsd2.*) 14467 # C++ shared libraries reported to be fairly broken before 14468 # switch to ELF 14469 ld_shlibs_CXX=no 14470 ;; 14471 14472 freebsd-elf*) 14473 archive_cmds_need_lc_CXX=no 14474 ;; 14475 14476 freebsd* | dragonfly*) 14477 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14478 # conventions 14479 ld_shlibs_CXX=yes 14480 ;; 14481 14482 haiku*) 14483 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14484 link_all_deplibs_CXX=yes 14485 ;; 14486 14487 hpux9*) 14488 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14489 hardcode_libdir_separator_CXX=: 14490 export_dynamic_flag_spec_CXX='$wl-E' 14491 hardcode_direct_CXX=yes 14492 hardcode_minus_L_CXX=yes # Not in the search PATH, 14493 # but as the default 14494 # location of the library. 14495 14496 case $cc_basename in 14497 CC*) 14498 # FIXME: insert proper C++ library support 14499 ld_shlibs_CXX=no 14500 ;; 14501 aCC*) 14502 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14503 # Commands to make compiler produce verbose output that lists 14504 # what "hidden" libraries, object files and flags are used when 14505 # linking a shared library. 14506 # 14507 # There doesn't appear to be a way to prevent this compiler from 14508 # explicitly linking system object files so we need to strip them 14509 # from the output so that they don't get included in the library 14510 # dependencies. 14511 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"' 14512 ;; 14513 *) 14514 if test yes = "$GXX"; then 14515 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14516 else 14517 # FIXME: insert proper C++ library support 14518 ld_shlibs_CXX=no 14519 fi 14520 ;; 14521 esac 14522 ;; 14523 14524 hpux10*|hpux11*) 14525 if test no = "$with_gnu_ld"; then 14526 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14527 hardcode_libdir_separator_CXX=: 14528 14529 case $host_cpu in 14530 hppa*64*|ia64*) 14531 ;; 14532 *) 14533 export_dynamic_flag_spec_CXX='$wl-E' 14534 ;; 14535 esac 14536 fi 14537 case $host_cpu in 14538 hppa*64*|ia64*) 14539 hardcode_direct_CXX=no 14540 hardcode_shlibpath_var_CXX=no 14541 ;; 14542 *) 14543 hardcode_direct_CXX=yes 14544 hardcode_direct_absolute_CXX=yes 14545 hardcode_minus_L_CXX=yes # Not in the search PATH, 14546 # but as the default 14547 # location of the library. 14548 ;; 14549 esac 14550 14551 case $cc_basename in 14552 CC*) 14553 # FIXME: insert proper C++ library support 14554 ld_shlibs_CXX=no 14555 ;; 14556 aCC*) 14557 case $host_cpu in 14558 hppa*64*) 14559 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14560 ;; 14561 ia64*) 14562 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14563 ;; 14564 *) 14565 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14566 ;; 14567 esac 14568 # Commands to make compiler produce verbose output that lists 14569 # what "hidden" libraries, object files and flags are used when 14570 # linking a shared library. 14571 # 14572 # There doesn't appear to be a way to prevent this compiler from 14573 # explicitly linking system object files so we need to strip them 14574 # from the output so that they don't get included in the library 14575 # dependencies. 14576 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"' 14577 ;; 14578 *) 14579 if test yes = "$GXX"; then 14580 if test no = "$with_gnu_ld"; then 14581 case $host_cpu in 14582 hppa*64*) 14583 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14584 ;; 14585 ia64*) 14586 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14587 ;; 14588 *) 14589 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' 14590 ;; 14591 esac 14592 fi 14593 else 14594 # FIXME: insert proper C++ library support 14595 ld_shlibs_CXX=no 14596 fi 14597 ;; 14598 esac 14599 ;; 14600 14601 interix[3-9]*) 14602 hardcode_direct_CXX=no 14603 hardcode_shlibpath_var_CXX=no 14604 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14605 export_dynamic_flag_spec_CXX='$wl-E' 14606 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14607 # Instead, shared libraries are loaded at an image base (0x10000000 by 14608 # default) and relocated if they conflict, which is a slow very memory 14609 # consuming and fragmenting process. To avoid this, we pick a random, 14610 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14611 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14612 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' 14613 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' 14614 ;; 14615 irix5* | irix6*) 14616 case $cc_basename in 14617 CC*) 14618 # SGI C++ 14619 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' 14620 14621 # Archives containing C++ object files must be created using 14622 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14623 # necessary to make sure instantiated templates are included 14624 # in the archive. 14625 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14626 ;; 14627 *) 14628 if test yes = "$GXX"; then 14629 if test no = "$with_gnu_ld"; then 14630 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' 14631 else 14632 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' 14633 fi 14634 fi 14635 link_all_deplibs_CXX=yes 14636 ;; 14637 esac 14638 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14639 hardcode_libdir_separator_CXX=: 14640 inherit_rpath_CXX=yes 14641 ;; 14642 14643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14644 case $cc_basename in 14645 KCC*) 14646 # Kuck and Associates, Inc. (KAI) C++ Compiler 14647 14648 # KCC will only create a shared library if the output file 14649 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14650 # to its proper name (with version) after linking. 14651 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' 14652 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' 14653 # Commands to make compiler produce verbose output that lists 14654 # what "hidden" libraries, object files and flags are used when 14655 # linking a shared library. 14656 # 14657 # There doesn't appear to be a way to prevent this compiler from 14658 # explicitly linking system object files so we need to strip them 14659 # from the output so that they don't get included in the library 14660 # dependencies. 14661 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"' 14662 14663 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14664 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14665 14666 # Archives containing C++ object files must be created using 14667 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14668 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14669 ;; 14670 icpc* | ecpc* ) 14671 # Intel C++ 14672 with_gnu_ld=yes 14673 # version 8.0 and above of icpc choke on multiply defined symbols 14674 # if we add $predep_objects and $postdep_objects, however 7.1 and 14675 # earlier do not add the objects themselves. 14676 case `$CC -V 2>&1` in 14677 *"Version 7."*) 14678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14679 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' 14680 ;; 14681 *) # Version 8.0 or newer 14682 tmp_idyn= 14683 case $host_cpu in 14684 ia64*) tmp_idyn=' -i_dynamic';; 14685 esac 14686 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14687 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' 14688 ;; 14689 esac 14690 archive_cmds_need_lc_CXX=no 14691 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14692 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14693 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14694 ;; 14695 pgCC* | pgcpp*) 14696 # Portland Group C++ compiler 14697 case `$CC -V` in 14698 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14699 prelink_cmds_CXX='tpldir=Template.dir~ 14700 rm -rf $tpldir~ 14701 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14702 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14703 old_archive_cmds_CXX='tpldir=Template.dir~ 14704 rm -rf $tpldir~ 14705 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14706 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14707 $RANLIB $oldlib' 14708 archive_cmds_CXX='tpldir=Template.dir~ 14709 rm -rf $tpldir~ 14710 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14711 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14712 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14713 rm -rf $tpldir~ 14714 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14715 $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' 14716 ;; 14717 *) # Version 6 and above use weak symbols 14718 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14719 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' 14720 ;; 14721 esac 14722 14723 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14724 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14725 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' 14726 ;; 14727 cxx*) 14728 # Compaq C++ 14729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14730 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' 14731 14732 runpath_var=LD_RUN_PATH 14733 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14734 hardcode_libdir_separator_CXX=: 14735 14736 # Commands to make compiler produce verbose output that lists 14737 # what "hidden" libraries, object files and flags are used when 14738 # linking a shared library. 14739 # 14740 # There doesn't appear to be a way to prevent this compiler from 14741 # explicitly linking system object files so we need to strip them 14742 # from the output so that they don't get included in the library 14743 # dependencies. 14744 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' 14745 ;; 14746 xl* | mpixl* | bgxl*) 14747 # IBM XL 8.0 on PPC, with GNU ld 14748 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14749 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14750 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14751 if test yes = "$supports_anon_versioning"; then 14752 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14754 echo "local: *; };" >> $output_objdir/$libname.ver~ 14755 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14756 fi 14757 ;; 14758 *) 14759 case `$CC -V 2>&1 | sed 5q` in 14760 *Sun\ C*) 14761 # Sun C++ 5.9 14762 no_undefined_flag_CXX=' -zdefs' 14763 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14764 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' 14765 hardcode_libdir_flag_spec_CXX='-R$libdir' 14766 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' 14767 compiler_needs_object_CXX=yes 14768 14769 # Not sure whether something based on 14770 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14771 # would be better. 14772 output_verbose_link_cmd='func_echo_all' 14773 14774 # Archives containing C++ object files must be created using 14775 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14776 # necessary to make sure instantiated templates are included 14777 # in the archive. 14778 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14779 ;; 14780 esac 14781 ;; 14782 esac 14783 ;; 14784 14785 lynxos*) 14786 # FIXME: insert proper C++ library support 14787 ld_shlibs_CXX=no 14788 ;; 14789 14790 m88k*) 14791 # FIXME: insert proper C++ library support 14792 ld_shlibs_CXX=no 14793 ;; 14794 14795 mvs*) 14796 case $cc_basename in 14797 cxx*) 14798 # FIXME: insert proper C++ library support 14799 ld_shlibs_CXX=no 14800 ;; 14801 *) 14802 # FIXME: insert proper C++ library support 14803 ld_shlibs_CXX=no 14804 ;; 14805 esac 14806 ;; 14807 14808 netbsd*) 14809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14810 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14811 wlarc= 14812 hardcode_libdir_flag_spec_CXX='-R$libdir' 14813 hardcode_direct_CXX=yes 14814 hardcode_shlibpath_var_CXX=no 14815 fi 14816 # Workaround some broken pre-1.5 toolchains 14817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14818 ;; 14819 14820 *nto* | *qnx*) 14821 ld_shlibs_CXX=yes 14822 ;; 14823 14824 openbsd* | bitrig*) 14825 if test -f /usr/libexec/ld.so; then 14826 hardcode_direct_CXX=yes 14827 hardcode_shlibpath_var_CXX=no 14828 hardcode_direct_absolute_CXX=yes 14829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14832 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14833 export_dynamic_flag_spec_CXX='$wl-E' 14834 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14835 fi 14836 output_verbose_link_cmd=func_echo_all 14837 else 14838 ld_shlibs_CXX=no 14839 fi 14840 ;; 14841 14842 osf3* | osf4* | osf5*) 14843 case $cc_basename in 14844 KCC*) 14845 # Kuck and Associates, Inc. (KAI) C++ Compiler 14846 14847 # KCC will only create a shared library if the output file 14848 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14849 # to its proper name (with version) after linking. 14850 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' 14851 14852 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14853 hardcode_libdir_separator_CXX=: 14854 14855 # Archives containing C++ object files must be created using 14856 # the KAI C++ compiler. 14857 case $host in 14858 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14859 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14860 esac 14861 ;; 14862 RCC*) 14863 # Rational C++ 2.4.1 14864 # FIXME: insert proper C++ library support 14865 ld_shlibs_CXX=no 14866 ;; 14867 cxx*) 14868 case $host in 14869 osf3*) 14870 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14871 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' 14872 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14873 ;; 14874 *) 14875 allow_undefined_flag_CXX=' -expect_unresolved \*' 14876 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' 14877 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14878 echo "-hidden">> $lib.exp~ 14879 $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~ 14880 $RM $lib.exp' 14881 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14882 ;; 14883 esac 14884 14885 hardcode_libdir_separator_CXX=: 14886 14887 # Commands to make compiler produce verbose output that lists 14888 # what "hidden" libraries, object files and flags are used when 14889 # linking a shared library. 14890 # 14891 # There doesn't appear to be a way to prevent this compiler from 14892 # explicitly linking system object files so we need to strip them 14893 # from the output so that they don't get included in the library 14894 # dependencies. 14895 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"' 14896 ;; 14897 *) 14898 if test yes,no = "$GXX,$with_gnu_ld"; then 14899 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14900 case $host in 14901 osf3*) 14902 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' 14903 ;; 14904 *) 14905 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' 14906 ;; 14907 esac 14908 14909 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14910 hardcode_libdir_separator_CXX=: 14911 14912 # Commands to make compiler produce verbose output that lists 14913 # what "hidden" libraries, object files and flags are used when 14914 # linking a shared library. 14915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14916 14917 else 14918 # FIXME: insert proper C++ library support 14919 ld_shlibs_CXX=no 14920 fi 14921 ;; 14922 esac 14923 ;; 14924 14925 psos*) 14926 # FIXME: insert proper C++ library support 14927 ld_shlibs_CXX=no 14928 ;; 14929 14930 sunos4*) 14931 case $cc_basename in 14932 CC*) 14933 # Sun C++ 4.x 14934 # FIXME: insert proper C++ library support 14935 ld_shlibs_CXX=no 14936 ;; 14937 lcc*) 14938 # Lucid 14939 # FIXME: insert proper C++ library support 14940 ld_shlibs_CXX=no 14941 ;; 14942 *) 14943 # FIXME: insert proper C++ library support 14944 ld_shlibs_CXX=no 14945 ;; 14946 esac 14947 ;; 14948 14949 solaris*) 14950 case $cc_basename in 14951 CC* | sunCC*) 14952 # Sun C++ 4.2, 5.x and Centerline C++ 14953 archive_cmds_need_lc_CXX=yes 14954 no_undefined_flag_CXX=' -zdefs' 14955 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14956 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14957 $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' 14958 14959 hardcode_libdir_flag_spec_CXX='-R$libdir' 14960 hardcode_shlibpath_var_CXX=no 14961 case $host_os in 14962 solaris2.[0-5] | solaris2.[0-5].*) ;; 14963 *) 14964 # The compiler driver will combine and reorder linker options, 14965 # but understands '-z linker_flag'. 14966 # Supported since Solaris 2.6 (maybe 2.5.1?) 14967 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14968 ;; 14969 esac 14970 link_all_deplibs_CXX=yes 14971 14972 output_verbose_link_cmd='func_echo_all' 14973 14974 # Archives containing C++ object files must be created using 14975 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14976 # necessary to make sure instantiated templates are included 14977 # in the archive. 14978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14979 ;; 14980 gcx*) 14981 # Green Hills C++ Compiler 14982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14983 14984 # The C++ compiler must be used to create the archive. 14985 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14986 ;; 14987 *) 14988 # GNU C++ compiler with Solaris linker 14989 if test yes,no = "$GXX,$with_gnu_ld"; then 14990 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14991 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14992 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14994 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14995 14996 # Commands to make compiler produce verbose output that lists 14997 # what "hidden" libraries, object files and flags are used when 14998 # linking a shared library. 14999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15000 else 15001 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15002 # platform. 15003 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15004 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15005 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15006 15007 # Commands to make compiler produce verbose output that lists 15008 # what "hidden" libraries, object files and flags are used when 15009 # linking a shared library. 15010 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15011 fi 15012 15013 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15014 case $host_os in 15015 solaris2.[0-5] | solaris2.[0-5].*) ;; 15016 *) 15017 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15018 ;; 15019 esac 15020 fi 15021 ;; 15022 esac 15023 ;; 15024 15025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15026 no_undefined_flag_CXX='$wl-z,text' 15027 archive_cmds_need_lc_CXX=no 15028 hardcode_shlibpath_var_CXX=no 15029 runpath_var='LD_RUN_PATH' 15030 15031 case $cc_basename in 15032 CC*) 15033 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15034 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15035 ;; 15036 *) 15037 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15038 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15039 ;; 15040 esac 15041 ;; 15042 15043 sysv5* | sco3.2v5* | sco5v6*) 15044 # Note: We CANNOT use -z defs as we might desire, because we do not 15045 # link with -lc, and that would cause any symbols used from libc to 15046 # always be unresolved, which means just about no library would 15047 # ever link correctly. If we're not using GNU ld we use -z text 15048 # though, which does catch some bad symbols but isn't as heavy-handed 15049 # as -z defs. 15050 no_undefined_flag_CXX='$wl-z,text' 15051 allow_undefined_flag_CXX='$wl-z,nodefs' 15052 archive_cmds_need_lc_CXX=no 15053 hardcode_shlibpath_var_CXX=no 15054 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15055 hardcode_libdir_separator_CXX=':' 15056 link_all_deplibs_CXX=yes 15057 export_dynamic_flag_spec_CXX='$wl-Bexport' 15058 runpath_var='LD_RUN_PATH' 15059 15060 case $cc_basename in 15061 CC*) 15062 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15063 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15064 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15065 '"$old_archive_cmds_CXX" 15066 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15067 '"$reload_cmds_CXX" 15068 ;; 15069 *) 15070 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15071 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15072 ;; 15073 esac 15074 ;; 15075 15076 tandem*) 15077 case $cc_basename in 15078 NCC*) 15079 # NonStop-UX NCC 3.20 15080 # FIXME: insert proper C++ library support 15081 ld_shlibs_CXX=no 15082 ;; 15083 *) 15084 # FIXME: insert proper C++ library support 15085 ld_shlibs_CXX=no 15086 ;; 15087 esac 15088 ;; 15089 15090 vxworks*) 15091 # FIXME: insert proper C++ library support 15092 ld_shlibs_CXX=no 15093 ;; 15094 15095 *) 15096 # FIXME: insert proper C++ library support 15097 ld_shlibs_CXX=no 15098 ;; 15099 esac 15100 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15102$as_echo "$ld_shlibs_CXX" >&6; } 15103 test no = "$ld_shlibs_CXX" && can_build_shared=no 15104 15105 GCC_CXX=$GXX 15106 LD_CXX=$LD 15107 15108 ## CAVEAT EMPTOR: 15109 ## There is no encapsulation within the following macros, do not change 15110 ## the running order or otherwise move them around unless you know exactly 15111 ## what you are doing... 15112 # Dependencies to place before and after the object being linked: 15113predep_objects_CXX= 15114postdep_objects_CXX= 15115predeps_CXX= 15116postdeps_CXX= 15117compiler_lib_search_path_CXX= 15118 15119cat > conftest.$ac_ext <<_LT_EOF 15120class Foo 15121{ 15122public: 15123 Foo (void) { a = 0; } 15124private: 15125 int a; 15126}; 15127_LT_EOF 15128 15129 15130_lt_libdeps_save_CFLAGS=$CFLAGS 15131case "$CC $CFLAGS " in #( 15132*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15133*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15134*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15135esac 15136 15137if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15138 (eval $ac_compile) 2>&5 15139 ac_status=$? 15140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15141 test $ac_status = 0; }; then 15142 # Parse the compiler output and extract the necessary 15143 # objects, libraries and library flags. 15144 15145 # Sentinel used to keep track of whether or not we are before 15146 # the conftest object file. 15147 pre_test_object_deps_done=no 15148 15149 for p in `eval "$output_verbose_link_cmd"`; do 15150 case $prev$p in 15151 15152 -L* | -R* | -l*) 15153 # Some compilers place space between "-{L,R}" and the path. 15154 # Remove the space. 15155 if test x-L = "$p" || 15156 test x-R = "$p"; then 15157 prev=$p 15158 continue 15159 fi 15160 15161 # Expand the sysroot to ease extracting the directories later. 15162 if test -z "$prev"; then 15163 case $p in 15164 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15165 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15166 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15167 esac 15168 fi 15169 case $p in 15170 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15171 esac 15172 if test no = "$pre_test_object_deps_done"; then 15173 case $prev in 15174 -L | -R) 15175 # Internal compiler library paths should come after those 15176 # provided the user. The postdeps already come after the 15177 # user supplied libs so there is no need to process them. 15178 if test -z "$compiler_lib_search_path_CXX"; then 15179 compiler_lib_search_path_CXX=$prev$p 15180 else 15181 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15182 fi 15183 ;; 15184 # The "-l" case would never come before the object being 15185 # linked, so don't bother handling this case. 15186 esac 15187 else 15188 if test -z "$postdeps_CXX"; then 15189 postdeps_CXX=$prev$p 15190 else 15191 postdeps_CXX="${postdeps_CXX} $prev$p" 15192 fi 15193 fi 15194 prev= 15195 ;; 15196 15197 *.lto.$objext) ;; # Ignore GCC LTO objects 15198 *.$objext) 15199 # This assumes that the test object file only shows up 15200 # once in the compiler output. 15201 if test "$p" = "conftest.$objext"; then 15202 pre_test_object_deps_done=yes 15203 continue 15204 fi 15205 15206 if test no = "$pre_test_object_deps_done"; then 15207 if test -z "$predep_objects_CXX"; then 15208 predep_objects_CXX=$p 15209 else 15210 predep_objects_CXX="$predep_objects_CXX $p" 15211 fi 15212 else 15213 if test -z "$postdep_objects_CXX"; then 15214 postdep_objects_CXX=$p 15215 else 15216 postdep_objects_CXX="$postdep_objects_CXX $p" 15217 fi 15218 fi 15219 ;; 15220 15221 *) ;; # Ignore the rest. 15222 15223 esac 15224 done 15225 15226 # Clean up. 15227 rm -f a.out a.exe 15228else 15229 echo "libtool.m4: error: problem compiling CXX test program" 15230fi 15231 15232$RM -f confest.$objext 15233CFLAGS=$_lt_libdeps_save_CFLAGS 15234 15235# PORTME: override above test on systems where it is broken 15236case $host_os in 15237interix[3-9]*) 15238 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15239 # hack all around it, let's just trust "g++" to DTRT. 15240 predep_objects_CXX= 15241 postdep_objects_CXX= 15242 postdeps_CXX= 15243 ;; 15244esac 15245 15246 15247case " $postdeps_CXX " in 15248*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15249esac 15250 compiler_lib_search_dirs_CXX= 15251if test -n "${compiler_lib_search_path_CXX}"; then 15252 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15253fi 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 lt_prog_compiler_wl_CXX= 15286lt_prog_compiler_pic_CXX= 15287lt_prog_compiler_static_CXX= 15288 15289 15290 # C++ specific cases for pic, static, wl, etc. 15291 if test yes = "$GXX"; then 15292 lt_prog_compiler_wl_CXX='-Wl,' 15293 lt_prog_compiler_static_CXX='-static' 15294 15295 case $host_os in 15296 aix*) 15297 # All AIX code is PIC. 15298 if test ia64 = "$host_cpu"; then 15299 # AIX 5 now supports IA64 processor 15300 lt_prog_compiler_static_CXX='-Bstatic' 15301 fi 15302 lt_prog_compiler_pic_CXX='-fPIC' 15303 ;; 15304 15305 amigaos*) 15306 case $host_cpu in 15307 powerpc) 15308 # see comment about AmigaOS4 .so support 15309 lt_prog_compiler_pic_CXX='-fPIC' 15310 ;; 15311 m68k) 15312 # FIXME: we need at least 68020 code to build shared libraries, but 15313 # adding the '-m68020' flag to GCC prevents building anything better, 15314 # like '-m68040'. 15315 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15316 ;; 15317 esac 15318 ;; 15319 15320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15321 # PIC is the default for these OSes. 15322 ;; 15323 mingw* | cygwin* | os2* | pw32* | cegcc*) 15324 # This hack is so that the source file can tell whether it is being 15325 # built for inclusion in a dll (and should export symbols for example). 15326 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15327 # (--disable-auto-import) libraries 15328 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15329 case $host_os in 15330 os2*) 15331 lt_prog_compiler_static_CXX='$wl-static' 15332 ;; 15333 esac 15334 ;; 15335 darwin* | rhapsody*) 15336 # PIC is the default on this platform 15337 # Common symbols not allowed in MH_DYLIB files 15338 lt_prog_compiler_pic_CXX='-fno-common' 15339 ;; 15340 *djgpp*) 15341 # DJGPP does not support shared libraries at all 15342 lt_prog_compiler_pic_CXX= 15343 ;; 15344 haiku*) 15345 # PIC is the default for Haiku. 15346 # The "-static" flag exists, but is broken. 15347 lt_prog_compiler_static_CXX= 15348 ;; 15349 interix[3-9]*) 15350 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15351 # Instead, we relocate shared libraries at runtime. 15352 ;; 15353 sysv4*MP*) 15354 if test -d /usr/nec; then 15355 lt_prog_compiler_pic_CXX=-Kconform_pic 15356 fi 15357 ;; 15358 hpux*) 15359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15361 # sets the default TLS model and affects inlining. 15362 case $host_cpu in 15363 hppa*64*) 15364 ;; 15365 *) 15366 lt_prog_compiler_pic_CXX='-fPIC' 15367 ;; 15368 esac 15369 ;; 15370 *qnx* | *nto*) 15371 # QNX uses GNU C++, but need to define -shared option too, otherwise 15372 # it will coredump. 15373 lt_prog_compiler_pic_CXX='-fPIC -shared' 15374 ;; 15375 *) 15376 lt_prog_compiler_pic_CXX='-fPIC' 15377 ;; 15378 esac 15379 else 15380 case $host_os in 15381 aix[4-9]*) 15382 # All AIX code is PIC. 15383 if test ia64 = "$host_cpu"; then 15384 # AIX 5 now supports IA64 processor 15385 lt_prog_compiler_static_CXX='-Bstatic' 15386 else 15387 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15388 fi 15389 ;; 15390 chorus*) 15391 case $cc_basename in 15392 cxch68*) 15393 # Green Hills C++ Compiler 15394 # _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" 15395 ;; 15396 esac 15397 ;; 15398 mingw* | cygwin* | os2* | pw32* | cegcc*) 15399 # This hack is so that the source file can tell whether it is being 15400 # built for inclusion in a dll (and should export symbols for example). 15401 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15402 ;; 15403 dgux*) 15404 case $cc_basename in 15405 ec++*) 15406 lt_prog_compiler_pic_CXX='-KPIC' 15407 ;; 15408 ghcx*) 15409 # Green Hills C++ Compiler 15410 lt_prog_compiler_pic_CXX='-pic' 15411 ;; 15412 *) 15413 ;; 15414 esac 15415 ;; 15416 freebsd* | dragonfly*) 15417 # FreeBSD uses GNU C++ 15418 ;; 15419 hpux9* | hpux10* | hpux11*) 15420 case $cc_basename in 15421 CC*) 15422 lt_prog_compiler_wl_CXX='-Wl,' 15423 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15424 if test ia64 != "$host_cpu"; then 15425 lt_prog_compiler_pic_CXX='+Z' 15426 fi 15427 ;; 15428 aCC*) 15429 lt_prog_compiler_wl_CXX='-Wl,' 15430 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15431 case $host_cpu in 15432 hppa*64*|ia64*) 15433 # +Z the default 15434 ;; 15435 *) 15436 lt_prog_compiler_pic_CXX='+Z' 15437 ;; 15438 esac 15439 ;; 15440 *) 15441 ;; 15442 esac 15443 ;; 15444 interix*) 15445 # This is c89, which is MS Visual C++ (no shared libs) 15446 # Anyone wants to do a port? 15447 ;; 15448 irix5* | irix6* | nonstopux*) 15449 case $cc_basename in 15450 CC*) 15451 lt_prog_compiler_wl_CXX='-Wl,' 15452 lt_prog_compiler_static_CXX='-non_shared' 15453 # CC pic flag -KPIC is the default. 15454 ;; 15455 *) 15456 ;; 15457 esac 15458 ;; 15459 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15460 case $cc_basename in 15461 KCC*) 15462 # KAI C++ Compiler 15463 lt_prog_compiler_wl_CXX='--backend -Wl,' 15464 lt_prog_compiler_pic_CXX='-fPIC' 15465 ;; 15466 ecpc* ) 15467 # old Intel C++ for x86_64, which still supported -KPIC. 15468 lt_prog_compiler_wl_CXX='-Wl,' 15469 lt_prog_compiler_pic_CXX='-KPIC' 15470 lt_prog_compiler_static_CXX='-static' 15471 ;; 15472 icpc* ) 15473 # Intel C++, used to be incompatible with GCC. 15474 # ICC 10 doesn't accept -KPIC any more. 15475 lt_prog_compiler_wl_CXX='-Wl,' 15476 lt_prog_compiler_pic_CXX='-fPIC' 15477 lt_prog_compiler_static_CXX='-static' 15478 ;; 15479 pgCC* | pgcpp*) 15480 # Portland Group C++ compiler 15481 lt_prog_compiler_wl_CXX='-Wl,' 15482 lt_prog_compiler_pic_CXX='-fpic' 15483 lt_prog_compiler_static_CXX='-Bstatic' 15484 ;; 15485 cxx*) 15486 # Compaq C++ 15487 # Make sure the PIC flag is empty. It appears that all Alpha 15488 # Linux and Compaq Tru64 Unix objects are PIC. 15489 lt_prog_compiler_pic_CXX= 15490 lt_prog_compiler_static_CXX='-non_shared' 15491 ;; 15492 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15493 # IBM XL 8.0, 9.0 on PPC and BlueGene 15494 lt_prog_compiler_wl_CXX='-Wl,' 15495 lt_prog_compiler_pic_CXX='-qpic' 15496 lt_prog_compiler_static_CXX='-qstaticlink' 15497 ;; 15498 *) 15499 case `$CC -V 2>&1 | sed 5q` in 15500 *Sun\ C*) 15501 # Sun C++ 5.9 15502 lt_prog_compiler_pic_CXX='-KPIC' 15503 lt_prog_compiler_static_CXX='-Bstatic' 15504 lt_prog_compiler_wl_CXX='-Qoption ld ' 15505 ;; 15506 esac 15507 ;; 15508 esac 15509 ;; 15510 lynxos*) 15511 ;; 15512 m88k*) 15513 ;; 15514 mvs*) 15515 case $cc_basename in 15516 cxx*) 15517 lt_prog_compiler_pic_CXX='-W c,exportall' 15518 ;; 15519 *) 15520 ;; 15521 esac 15522 ;; 15523 netbsd*) 15524 ;; 15525 *qnx* | *nto*) 15526 # QNX uses GNU C++, but need to define -shared option too, otherwise 15527 # it will coredump. 15528 lt_prog_compiler_pic_CXX='-fPIC -shared' 15529 ;; 15530 osf3* | osf4* | osf5*) 15531 case $cc_basename in 15532 KCC*) 15533 lt_prog_compiler_wl_CXX='--backend -Wl,' 15534 ;; 15535 RCC*) 15536 # Rational C++ 2.4.1 15537 lt_prog_compiler_pic_CXX='-pic' 15538 ;; 15539 cxx*) 15540 # Digital/Compaq C++ 15541 lt_prog_compiler_wl_CXX='-Wl,' 15542 # Make sure the PIC flag is empty. It appears that all Alpha 15543 # Linux and Compaq Tru64 Unix objects are PIC. 15544 lt_prog_compiler_pic_CXX= 15545 lt_prog_compiler_static_CXX='-non_shared' 15546 ;; 15547 *) 15548 ;; 15549 esac 15550 ;; 15551 psos*) 15552 ;; 15553 solaris*) 15554 case $cc_basename in 15555 CC* | sunCC*) 15556 # Sun C++ 4.2, 5.x and Centerline C++ 15557 lt_prog_compiler_pic_CXX='-KPIC' 15558 lt_prog_compiler_static_CXX='-Bstatic' 15559 lt_prog_compiler_wl_CXX='-Qoption ld ' 15560 ;; 15561 gcx*) 15562 # Green Hills C++ Compiler 15563 lt_prog_compiler_pic_CXX='-PIC' 15564 ;; 15565 *) 15566 ;; 15567 esac 15568 ;; 15569 sunos4*) 15570 case $cc_basename in 15571 CC*) 15572 # Sun C++ 4.x 15573 lt_prog_compiler_pic_CXX='-pic' 15574 lt_prog_compiler_static_CXX='-Bstatic' 15575 ;; 15576 lcc*) 15577 # Lucid 15578 lt_prog_compiler_pic_CXX='-pic' 15579 ;; 15580 *) 15581 ;; 15582 esac 15583 ;; 15584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15585 case $cc_basename in 15586 CC*) 15587 lt_prog_compiler_wl_CXX='-Wl,' 15588 lt_prog_compiler_pic_CXX='-KPIC' 15589 lt_prog_compiler_static_CXX='-Bstatic' 15590 ;; 15591 esac 15592 ;; 15593 tandem*) 15594 case $cc_basename in 15595 NCC*) 15596 # NonStop-UX NCC 3.20 15597 lt_prog_compiler_pic_CXX='-KPIC' 15598 ;; 15599 *) 15600 ;; 15601 esac 15602 ;; 15603 vxworks*) 15604 ;; 15605 *) 15606 lt_prog_compiler_can_build_shared_CXX=no 15607 ;; 15608 esac 15609 fi 15610 15611case $host_os in 15612 # For platforms that do not support PIC, -DPIC is meaningless: 15613 *djgpp*) 15614 lt_prog_compiler_pic_CXX= 15615 ;; 15616 *) 15617 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15618 ;; 15619esac 15620 15621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15622$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15623if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15624 $as_echo_n "(cached) " >&6 15625else 15626 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15627fi 15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15629$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15630lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15631 15632# 15633# Check to make sure the PIC flag actually works. 15634# 15635if test -n "$lt_prog_compiler_pic_CXX"; then 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15637$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15638if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640else 15641 lt_cv_prog_compiler_pic_works_CXX=no 15642 ac_outfile=conftest.$ac_objext 15643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15644 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15645 # Insert the option either (1) after the last *FLAGS variable, or 15646 # (2) before a word containing "conftest.", or (3) at the end. 15647 # Note that $ac_compile itself does not contain backslashes and begins 15648 # with a dollar sign (not a hyphen), so the echo should work correctly. 15649 # The option is referenced via a variable to avoid confusing sed. 15650 lt_compile=`echo "$ac_compile" | $SED \ 15651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15653 -e 's:$: $lt_compiler_flag:'` 15654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15655 (eval "$lt_compile" 2>conftest.err) 15656 ac_status=$? 15657 cat conftest.err >&5 15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15659 if (exit $ac_status) && test -s "$ac_outfile"; then 15660 # The compiler can only warn and ignore the option if not recognized 15661 # So say no if there are warnings other than the usual output. 15662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15665 lt_cv_prog_compiler_pic_works_CXX=yes 15666 fi 15667 fi 15668 $RM conftest* 15669 15670fi 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15672$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15673 15674if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15675 case $lt_prog_compiler_pic_CXX in 15676 "" | " "*) ;; 15677 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15678 esac 15679else 15680 lt_prog_compiler_pic_CXX= 15681 lt_prog_compiler_can_build_shared_CXX=no 15682fi 15683 15684fi 15685 15686 15687 15688 15689 15690# 15691# Check to make sure the static flag actually works. 15692# 15693wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15695$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15696if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 lt_cv_prog_compiler_static_works_CXX=no 15700 save_LDFLAGS=$LDFLAGS 15701 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15702 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15704 # The linker can only warn and ignore the option if not recognized 15705 # So say no if there are warnings 15706 if test -s conftest.err; then 15707 # Append any errors to the config.log. 15708 cat conftest.err 1>&5 15709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15711 if diff conftest.exp conftest.er2 >/dev/null; then 15712 lt_cv_prog_compiler_static_works_CXX=yes 15713 fi 15714 else 15715 lt_cv_prog_compiler_static_works_CXX=yes 15716 fi 15717 fi 15718 $RM -r conftest* 15719 LDFLAGS=$save_LDFLAGS 15720 15721fi 15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15723$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15724 15725if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15726 : 15727else 15728 lt_prog_compiler_static_CXX= 15729fi 15730 15731 15732 15733 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15736if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 lt_cv_prog_compiler_c_o_CXX=no 15740 $RM -r conftest 2>/dev/null 15741 mkdir conftest 15742 cd conftest 15743 mkdir out 15744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15745 15746 lt_compiler_flag="-o out/conftest2.$ac_objext" 15747 # Insert the option either (1) after the last *FLAGS variable, or 15748 # (2) before a word containing "conftest.", or (3) at the end. 15749 # Note that $ac_compile itself does not contain backslashes and begins 15750 # with a dollar sign (not a hyphen), so the echo should work correctly. 15751 lt_compile=`echo "$ac_compile" | $SED \ 15752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15754 -e 's:$: $lt_compiler_flag:'` 15755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15756 (eval "$lt_compile" 2>out/conftest.err) 15757 ac_status=$? 15758 cat out/conftest.err >&5 15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15760 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15761 then 15762 # The compiler can only warn and ignore the option if not recognized 15763 # So say no if there are warnings 15764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15767 lt_cv_prog_compiler_c_o_CXX=yes 15768 fi 15769 fi 15770 chmod u+w . 2>&5 15771 $RM conftest* 15772 # SGI C++ compiler will create directory out/ii_files/ for 15773 # template instantiation 15774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15775 $RM out/* && rmdir out 15776 cd .. 15777 $RM -r conftest 15778 $RM conftest* 15779 15780fi 15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15782$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15783 15784 15785 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15787$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15788if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 lt_cv_prog_compiler_c_o_CXX=no 15792 $RM -r conftest 2>/dev/null 15793 mkdir conftest 15794 cd conftest 15795 mkdir out 15796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15797 15798 lt_compiler_flag="-o out/conftest2.$ac_objext" 15799 # Insert the option either (1) after the last *FLAGS variable, or 15800 # (2) before a word containing "conftest.", or (3) at the end. 15801 # Note that $ac_compile itself does not contain backslashes and begins 15802 # with a dollar sign (not a hyphen), so the echo should work correctly. 15803 lt_compile=`echo "$ac_compile" | $SED \ 15804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15806 -e 's:$: $lt_compiler_flag:'` 15807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15808 (eval "$lt_compile" 2>out/conftest.err) 15809 ac_status=$? 15810 cat out/conftest.err >&5 15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15812 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15813 then 15814 # The compiler can only warn and ignore the option if not recognized 15815 # So say no if there are warnings 15816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15819 lt_cv_prog_compiler_c_o_CXX=yes 15820 fi 15821 fi 15822 chmod u+w . 2>&5 15823 $RM conftest* 15824 # SGI C++ compiler will create directory out/ii_files/ for 15825 # template instantiation 15826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15827 $RM out/* && rmdir out 15828 cd .. 15829 $RM -r conftest 15830 $RM conftest* 15831 15832fi 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15834$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15835 15836 15837 15838 15839hard_links=nottested 15840if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15841 # do not overwrite the value of need_locks provided by the user 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15843$as_echo_n "checking if we can lock with hard links... " >&6; } 15844 hard_links=yes 15845 $RM conftest* 15846 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15847 touch conftest.a 15848 ln conftest.a conftest.b 2>&5 || hard_links=no 15849 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15851$as_echo "$hard_links" >&6; } 15852 if test no = "$hard_links"; then 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15854$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15855 need_locks=warn 15856 fi 15857else 15858 need_locks=no 15859fi 15860 15861 15862 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15864$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15865 15866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15867 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15868 case $host_os in 15869 aix[4-9]*) 15870 # If we're using GNU nm, then we don't want the "-C" option. 15871 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15872 # Without the "-l" option, or with the "-B" option, AIX nm treats 15873 # weak defined symbols like other global defined symbols, whereas 15874 # GNU nm marks them as "W". 15875 # While the 'weak' keyword is ignored in the Export File, we need 15876 # it in the Import File for the 'aix-soname' feature, so we have 15877 # to replace the "-B" option with "-P" for AIX nm. 15878 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15879 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15880 else 15881 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15882 fi 15883 ;; 15884 pw32*) 15885 export_symbols_cmds_CXX=$ltdll_cmds 15886 ;; 15887 cygwin* | mingw* | cegcc*) 15888 case $cc_basename in 15889 cl*) 15890 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15891 ;; 15892 *) 15893 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' 15894 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15895 ;; 15896 esac 15897 ;; 15898 *) 15899 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15900 ;; 15901 esac 15902 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15904$as_echo "$ld_shlibs_CXX" >&6; } 15905test no = "$ld_shlibs_CXX" && can_build_shared=no 15906 15907with_gnu_ld_CXX=$with_gnu_ld 15908 15909 15910 15911 15912 15913 15914# 15915# Do we need to explicitly link libc? 15916# 15917case "x$archive_cmds_need_lc_CXX" in 15918x|xyes) 15919 # Assume -lc should be added 15920 archive_cmds_need_lc_CXX=yes 15921 15922 if test yes,yes = "$GCC,$enable_shared"; then 15923 case $archive_cmds_CXX in 15924 *'~'*) 15925 # FIXME: we may have to deal with multi-command sequences. 15926 ;; 15927 '$CC '*) 15928 # Test whether the compiler implicitly links with -lc since on some 15929 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15930 # to ld, don't add -lc before -lgcc. 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15932$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15933if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 $RM conftest* 15937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15938 15939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15940 (eval $ac_compile) 2>&5 15941 ac_status=$? 15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15943 test $ac_status = 0; } 2>conftest.err; then 15944 soname=conftest 15945 lib=conftest 15946 libobjs=conftest.$ac_objext 15947 deplibs= 15948 wl=$lt_prog_compiler_wl_CXX 15949 pic_flag=$lt_prog_compiler_pic_CXX 15950 compiler_flags=-v 15951 linker_flags=-v 15952 verstring= 15953 output_objdir=. 15954 libname=conftest 15955 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15956 allow_undefined_flag_CXX= 15957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15958 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15959 ac_status=$? 15960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15961 test $ac_status = 0; } 15962 then 15963 lt_cv_archive_cmds_need_lc_CXX=no 15964 else 15965 lt_cv_archive_cmds_need_lc_CXX=yes 15966 fi 15967 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15968 else 15969 cat conftest.err 1>&5 15970 fi 15971 $RM conftest* 15972 15973fi 15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15975$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15976 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15977 ;; 15978 esac 15979 fi 15980 ;; 15981esac 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16045$as_echo_n "checking dynamic linker characteristics... " >&6; } 16046 16047library_names_spec= 16048libname_spec='lib$name' 16049soname_spec= 16050shrext_cmds=.so 16051postinstall_cmds= 16052postuninstall_cmds= 16053finish_cmds= 16054finish_eval= 16055shlibpath_var= 16056shlibpath_overrides_runpath=unknown 16057version_type=none 16058dynamic_linker="$host_os ld.so" 16059sys_lib_dlsearch_path_spec="/lib /usr/lib" 16060need_lib_prefix=unknown 16061hardcode_into_libs=no 16062 16063# when you set need_version to no, make sure it does not cause -set_version 16064# flags to be left without arguments 16065need_version=unknown 16066 16067 16068 16069case $host_os in 16070aix3*) 16071 version_type=linux # correct to gnu/linux during the next big refactor 16072 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16073 shlibpath_var=LIBPATH 16074 16075 # AIX 3 has no versioning support, so we append a major version to the name. 16076 soname_spec='$libname$release$shared_ext$major' 16077 ;; 16078 16079aix[4-9]*) 16080 version_type=linux # correct to gnu/linux during the next big refactor 16081 need_lib_prefix=no 16082 need_version=no 16083 hardcode_into_libs=yes 16084 if test ia64 = "$host_cpu"; then 16085 # AIX 5 supports IA64 16086 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 else 16089 # With GCC up to 2.95.x, collect2 would create an import file 16090 # for dependence libraries. The import file would start with 16091 # the line '#! .'. This would cause the generated library to 16092 # depend on '.', always an invalid library. This was fixed in 16093 # development snapshots of GCC prior to 3.0. 16094 case $host_os in 16095 aix4 | aix4.[01] | aix4.[01].*) 16096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16097 echo ' yes ' 16098 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16099 : 16100 else 16101 can_build_shared=no 16102 fi 16103 ;; 16104 esac 16105 # Using Import Files as archive members, it is possible to support 16106 # filename-based versioning of shared library archives on AIX. While 16107 # this would work for both with and without runtime linking, it will 16108 # prevent static linking of such archives. So we do filename-based 16109 # shared library versioning with .so extension only, which is used 16110 # when both runtime linking and shared linking is enabled. 16111 # Unfortunately, runtime linking may impact performance, so we do 16112 # not want this to be the default eventually. Also, we use the 16113 # versioned .so libs for executables only if there is the -brtl 16114 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16115 # To allow for filename-based versioning support, we need to create 16116 # libNAME.so.V as an archive file, containing: 16117 # *) an Import File, referring to the versioned filename of the 16118 # archive as well as the shared archive member, telling the 16119 # bitwidth (32 or 64) of that shared object, and providing the 16120 # list of exported symbols of that shared object, eventually 16121 # decorated with the 'weak' keyword 16122 # *) the shared object with the F_LOADONLY flag set, to really avoid 16123 # it being seen by the linker. 16124 # At run time we better use the real file rather than another symlink, 16125 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16126 16127 case $with_aix_soname,$aix_use_runtimelinking in 16128 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16129 # soname into executable. Probably we can add versioning support to 16130 # collect2, so additional links can be useful in future. 16131 aix,yes) # traditional libtool 16132 dynamic_linker='AIX unversionable lib.so' 16133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16134 # instead of lib<name>.a to let people know that these are not 16135 # typical AIX shared libraries. 16136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16137 ;; 16138 aix,no) # traditional AIX only 16139 dynamic_linker='AIX lib.a(lib.so.V)' 16140 # We preserve .a as extension for shared libraries through AIX4.2 16141 # and later when we are not doing run time linking. 16142 library_names_spec='$libname$release.a $libname.a' 16143 soname_spec='$libname$release$shared_ext$major' 16144 ;; 16145 svr4,*) # full svr4 only 16146 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16147 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16148 # We do not specify a path in Import Files, so LIBPATH fires. 16149 shlibpath_overrides_runpath=yes 16150 ;; 16151 *,yes) # both, prefer svr4 16152 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16153 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16154 # unpreferred sharedlib libNAME.a needs extra handling 16155 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16156 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16157 # We do not specify a path in Import Files, so LIBPATH fires. 16158 shlibpath_overrides_runpath=yes 16159 ;; 16160 *,no) # both, prefer aix 16161 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16162 library_names_spec='$libname$release.a $libname.a' 16163 soname_spec='$libname$release$shared_ext$major' 16164 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16165 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16166 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16167 ;; 16168 esac 16169 shlibpath_var=LIBPATH 16170 fi 16171 ;; 16172 16173amigaos*) 16174 case $host_cpu in 16175 powerpc) 16176 # Since July 2007 AmigaOS4 officially supports .so libraries. 16177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16179 ;; 16180 m68k) 16181 library_names_spec='$libname.ixlibrary $libname.a' 16182 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16183 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16184 ;; 16185 esac 16186 ;; 16187 16188beos*) 16189 library_names_spec='$libname$shared_ext' 16190 dynamic_linker="$host_os ld.so" 16191 shlibpath_var=LIBRARY_PATH 16192 ;; 16193 16194bsdi[45]*) 16195 version_type=linux # correct to gnu/linux during the next big refactor 16196 need_version=no 16197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16198 soname_spec='$libname$release$shared_ext$major' 16199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16200 shlibpath_var=LD_LIBRARY_PATH 16201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16203 # the default ld.so.conf also contains /usr/contrib/lib and 16204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16205 # libtool to hard-code these into programs 16206 ;; 16207 16208cygwin* | mingw* | pw32* | cegcc*) 16209 version_type=windows 16210 shrext_cmds=.dll 16211 need_version=no 16212 need_lib_prefix=no 16213 16214 case $GCC,$cc_basename in 16215 yes,*) 16216 # gcc 16217 library_names_spec='$libname.dll.a' 16218 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16219 postinstall_cmds='base_file=`basename \$file`~ 16220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16221 dldir=$destdir/`dirname \$dlpath`~ 16222 test -d \$dldir || mkdir -p \$dldir~ 16223 $install_prog $dir/$dlname \$dldir/$dlname~ 16224 chmod a+x \$dldir/$dlname~ 16225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16227 fi' 16228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16229 dlpath=$dir/\$dldll~ 16230 $RM \$dlpath' 16231 shlibpath_overrides_runpath=yes 16232 16233 case $host_os in 16234 cygwin*) 16235 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16236 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16237 16238 ;; 16239 mingw* | cegcc*) 16240 # MinGW DLLs use traditional 'lib' prefix 16241 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16242 ;; 16243 pw32*) 16244 # pw32 DLLs use 'pw' prefix rather than 'lib' 16245 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16246 ;; 16247 esac 16248 dynamic_linker='Win32 ld.exe' 16249 ;; 16250 16251 *,cl*) 16252 # Native MSVC 16253 libname_spec='$name' 16254 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16255 library_names_spec='$libname.dll.lib' 16256 16257 case $build_os in 16258 mingw*) 16259 sys_lib_search_path_spec= 16260 lt_save_ifs=$IFS 16261 IFS=';' 16262 for lt_path in $LIB 16263 do 16264 IFS=$lt_save_ifs 16265 # Let DOS variable expansion print the short 8.3 style file name. 16266 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16267 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16268 done 16269 IFS=$lt_save_ifs 16270 # Convert to MSYS style. 16271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16272 ;; 16273 cygwin*) 16274 # Convert to unix form, then to dos form, then back to unix form 16275 # but this time dos style (no spaces!) so that the unix form looks 16276 # like /cygdrive/c/PROGRA~1:/cygdr... 16277 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16278 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16279 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16280 ;; 16281 *) 16282 sys_lib_search_path_spec=$LIB 16283 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16284 # It is most probably a Windows format PATH. 16285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16286 else 16287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16288 fi 16289 # FIXME: find the short name or the path components, as spaces are 16290 # common. (e.g. "Program Files" -> "PROGRA~1") 16291 ;; 16292 esac 16293 16294 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16295 postinstall_cmds='base_file=`basename \$file`~ 16296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16297 dldir=$destdir/`dirname \$dlpath`~ 16298 test -d \$dldir || mkdir -p \$dldir~ 16299 $install_prog $dir/$dlname \$dldir/$dlname' 16300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16301 dlpath=$dir/\$dldll~ 16302 $RM \$dlpath' 16303 shlibpath_overrides_runpath=yes 16304 dynamic_linker='Win32 link.exe' 16305 ;; 16306 16307 *) 16308 # Assume MSVC wrapper 16309 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16310 dynamic_linker='Win32 ld.exe' 16311 ;; 16312 esac 16313 # FIXME: first we should search . and the directory the executable is in 16314 shlibpath_var=PATH 16315 ;; 16316 16317darwin* | rhapsody*) 16318 dynamic_linker="$host_os dyld" 16319 version_type=darwin 16320 need_lib_prefix=no 16321 need_version=no 16322 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16323 soname_spec='$libname$release$major$shared_ext' 16324 shlibpath_overrides_runpath=yes 16325 shlibpath_var=DYLD_LIBRARY_PATH 16326 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16327 16328 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16329 ;; 16330 16331dgux*) 16332 version_type=linux # correct to gnu/linux during the next big refactor 16333 need_lib_prefix=no 16334 need_version=no 16335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16336 soname_spec='$libname$release$shared_ext$major' 16337 shlibpath_var=LD_LIBRARY_PATH 16338 ;; 16339 16340freebsd* | dragonfly*) 16341 # DragonFly does not have aout. When/if they implement a new 16342 # versioning mechanism, adjust this. 16343 if test -x /usr/bin/objformat; then 16344 objformat=`/usr/bin/objformat` 16345 else 16346 case $host_os in 16347 freebsd[23].*) objformat=aout ;; 16348 *) objformat=elf ;; 16349 esac 16350 fi 16351 # Handle Gentoo/FreeBSD as it was Linux 16352 case $host_vendor in 16353 gentoo) 16354 version_type=linux ;; 16355 *) 16356 version_type=freebsd-$objformat ;; 16357 esac 16358 16359 case $version_type in 16360 freebsd-elf*) 16361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16362 soname_spec='$libname$release$shared_ext$major' 16363 need_version=no 16364 need_lib_prefix=no 16365 ;; 16366 freebsd-*) 16367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16368 need_version=yes 16369 ;; 16370 linux) 16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16372 soname_spec='${libname}${release}${shared_ext}$major' 16373 need_lib_prefix=no 16374 need_version=no 16375 ;; 16376 esac 16377 shlibpath_var=LD_LIBRARY_PATH 16378 case $host_os in 16379 freebsd2.*) 16380 shlibpath_overrides_runpath=yes 16381 ;; 16382 freebsd3.[01]* | freebsdelf3.[01]*) 16383 shlibpath_overrides_runpath=yes 16384 hardcode_into_libs=yes 16385 ;; 16386 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16387 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16388 shlibpath_overrides_runpath=no 16389 hardcode_into_libs=yes 16390 ;; 16391 *) # from 4.6 on, and DragonFly 16392 shlibpath_overrides_runpath=yes 16393 hardcode_into_libs=yes 16394 ;; 16395 esac 16396 ;; 16397 16398haiku*) 16399 version_type=linux # correct to gnu/linux during the next big refactor 16400 need_lib_prefix=no 16401 need_version=no 16402 dynamic_linker="$host_os runtime_loader" 16403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16404 soname_spec='$libname$release$shared_ext$major' 16405 shlibpath_var=LIBRARY_PATH 16406 shlibpath_overrides_runpath=no 16407 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16408 hardcode_into_libs=yes 16409 ;; 16410 16411hpux9* | hpux10* | hpux11*) 16412 # Give a soname corresponding to the major version so that dld.sl refuses to 16413 # link against other versions. 16414 version_type=sunos 16415 need_lib_prefix=no 16416 need_version=no 16417 case $host_cpu in 16418 ia64*) 16419 shrext_cmds='.so' 16420 hardcode_into_libs=yes 16421 dynamic_linker="$host_os dld.so" 16422 shlibpath_var=LD_LIBRARY_PATH 16423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16425 soname_spec='$libname$release$shared_ext$major' 16426 if test 32 = "$HPUX_IA64_MODE"; then 16427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16428 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16429 else 16430 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16431 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16432 fi 16433 ;; 16434 hppa*64*) 16435 shrext_cmds='.sl' 16436 hardcode_into_libs=yes 16437 dynamic_linker="$host_os dld.sl" 16438 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16441 soname_spec='$libname$release$shared_ext$major' 16442 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16444 ;; 16445 *) 16446 shrext_cmds='.sl' 16447 dynamic_linker="$host_os dld.sl" 16448 shlibpath_var=SHLIB_PATH 16449 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16451 soname_spec='$libname$release$shared_ext$major' 16452 ;; 16453 esac 16454 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16455 postinstall_cmds='chmod 555 $lib' 16456 # or fails outright, so override atomically: 16457 install_override_mode=555 16458 ;; 16459 16460interix[3-9]*) 16461 version_type=linux # correct to gnu/linux during the next big refactor 16462 need_lib_prefix=no 16463 need_version=no 16464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16465 soname_spec='$libname$release$shared_ext$major' 16466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16467 shlibpath_var=LD_LIBRARY_PATH 16468 shlibpath_overrides_runpath=no 16469 hardcode_into_libs=yes 16470 ;; 16471 16472irix5* | irix6* | nonstopux*) 16473 case $host_os in 16474 nonstopux*) version_type=nonstopux ;; 16475 *) 16476 if test yes = "$lt_cv_prog_gnu_ld"; then 16477 version_type=linux # correct to gnu/linux during the next big refactor 16478 else 16479 version_type=irix 16480 fi ;; 16481 esac 16482 need_lib_prefix=no 16483 need_version=no 16484 soname_spec='$libname$release$shared_ext$major' 16485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16486 case $host_os in 16487 irix5* | nonstopux*) 16488 libsuff= shlibsuff= 16489 ;; 16490 *) 16491 case $LD in # libtool.m4 will add one of these switches to LD 16492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16493 libsuff= shlibsuff= libmagic=32-bit;; 16494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16495 libsuff=32 shlibsuff=N32 libmagic=N32;; 16496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16497 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16498 *) libsuff= shlibsuff= libmagic=never-match;; 16499 esac 16500 ;; 16501 esac 16502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16503 shlibpath_overrides_runpath=no 16504 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16505 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16506 hardcode_into_libs=yes 16507 ;; 16508 16509# No shared lib support for Linux oldld, aout, or coff. 16510linux*oldld* | linux*aout* | linux*coff*) 16511 dynamic_linker=no 16512 ;; 16513 16514linux*android*) 16515 version_type=none # Android doesn't support versioned libraries. 16516 need_lib_prefix=no 16517 need_version=no 16518 library_names_spec='$libname$release$shared_ext' 16519 soname_spec='$libname$release$shared_ext' 16520 finish_cmds= 16521 shlibpath_var=LD_LIBRARY_PATH 16522 shlibpath_overrides_runpath=yes 16523 16524 # This implies no fast_install, which is unacceptable. 16525 # Some rework will be needed to allow for fast_install 16526 # before this can be enabled. 16527 hardcode_into_libs=yes 16528 16529 dynamic_linker='Android linker' 16530 # Don't embed -rpath directories since the linker doesn't support them. 16531 hardcode_libdir_flag_spec_CXX='-L$libdir' 16532 ;; 16533 16534# This must be glibc/ELF. 16535linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16536 version_type=linux # correct to gnu/linux during the next big refactor 16537 need_lib_prefix=no 16538 need_version=no 16539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16540 soname_spec='$libname$release$shared_ext$major' 16541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16542 shlibpath_var=LD_LIBRARY_PATH 16543 shlibpath_overrides_runpath=no 16544 16545 # Some binutils ld are patched to set DT_RUNPATH 16546 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16547 $as_echo_n "(cached) " >&6 16548else 16549 lt_cv_shlibpath_overrides_runpath=no 16550 save_LDFLAGS=$LDFLAGS 16551 save_libdir=$libdir 16552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16555/* end confdefs.h. */ 16556 16557int 16558main () 16559{ 16560 16561 ; 16562 return 0; 16563} 16564_ACEOF 16565if ac_fn_cxx_try_link "$LINENO"; then : 16566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16567 lt_cv_shlibpath_overrides_runpath=yes 16568fi 16569fi 16570rm -f core conftest.err conftest.$ac_objext \ 16571 conftest$ac_exeext conftest.$ac_ext 16572 LDFLAGS=$save_LDFLAGS 16573 libdir=$save_libdir 16574 16575fi 16576 16577 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16578 16579 # This implies no fast_install, which is unacceptable. 16580 # Some rework will be needed to allow for fast_install 16581 # before this can be enabled. 16582 hardcode_into_libs=yes 16583 16584 # Ideally, we could use ldconfig to report *all* directores which are 16585 # searched for libraries, however this is still not possible. Aside from not 16586 # being certain /sbin/ldconfig is available, command 16587 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16588 # even though it is searched at run-time. Try to do the best guess by 16589 # appending ld.so.conf contents (and includes) to the search path. 16590 if test -f /etc/ld.so.conf; then 16591 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' ' '` 16592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16593 fi 16594 16595 # We used to test for /lib/ld.so.1 and disable shared libraries on 16596 # powerpc, because MkLinux only supported shared libraries with the 16597 # GNU dynamic linker. Since this was broken with cross compilers, 16598 # most powerpc-linux boxes support dynamic linking these days and 16599 # people can always --disable-shared, the test was removed, and we 16600 # assume the GNU/Linux dynamic linker is in use. 16601 dynamic_linker='GNU/Linux ld.so' 16602 ;; 16603 16604netbsd*) 16605 version_type=sunos 16606 need_lib_prefix=no 16607 need_version=no 16608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16611 dynamic_linker='NetBSD (a.out) ld.so' 16612 else 16613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16614 soname_spec='$libname$release$shared_ext$major' 16615 dynamic_linker='NetBSD ld.elf_so' 16616 fi 16617 shlibpath_var=LD_LIBRARY_PATH 16618 shlibpath_overrides_runpath=yes 16619 hardcode_into_libs=yes 16620 ;; 16621 16622newsos6) 16623 version_type=linux # correct to gnu/linux during the next big refactor 16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16625 shlibpath_var=LD_LIBRARY_PATH 16626 shlibpath_overrides_runpath=yes 16627 ;; 16628 16629*nto* | *qnx*) 16630 version_type=qnx 16631 need_lib_prefix=no 16632 need_version=no 16633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16634 soname_spec='$libname$release$shared_ext$major' 16635 shlibpath_var=LD_LIBRARY_PATH 16636 shlibpath_overrides_runpath=no 16637 hardcode_into_libs=yes 16638 dynamic_linker='ldqnx.so' 16639 ;; 16640 16641openbsd* | bitrig*) 16642 version_type=sunos 16643 sys_lib_dlsearch_path_spec=/usr/lib 16644 need_lib_prefix=no 16645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16646 need_version=no 16647 else 16648 need_version=yes 16649 fi 16650 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16652 shlibpath_var=LD_LIBRARY_PATH 16653 shlibpath_overrides_runpath=yes 16654 ;; 16655 16656os2*) 16657 libname_spec='$name' 16658 version_type=windows 16659 shrext_cmds=.dll 16660 need_version=no 16661 need_lib_prefix=no 16662 # OS/2 can only load a DLL with a base name of 8 characters or less. 16663 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16664 v=$($ECHO $release$versuffix | tr -d .-); 16665 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16666 $ECHO $n$v`$shared_ext' 16667 library_names_spec='${libname}_dll.$libext' 16668 dynamic_linker='OS/2 ld.exe' 16669 shlibpath_var=BEGINLIBPATH 16670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16672 postinstall_cmds='base_file=`basename \$file`~ 16673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16674 dldir=$destdir/`dirname \$dlpath`~ 16675 test -d \$dldir || mkdir -p \$dldir~ 16676 $install_prog $dir/$dlname \$dldir/$dlname~ 16677 chmod a+x \$dldir/$dlname~ 16678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16680 fi' 16681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16682 dlpath=$dir/\$dldll~ 16683 $RM \$dlpath' 16684 ;; 16685 16686osf3* | osf4* | osf5*) 16687 version_type=osf 16688 need_lib_prefix=no 16689 need_version=no 16690 soname_spec='$libname$release$shared_ext$major' 16691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16692 shlibpath_var=LD_LIBRARY_PATH 16693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16695 ;; 16696 16697rdos*) 16698 dynamic_linker=no 16699 ;; 16700 16701solaris*) 16702 version_type=linux # correct to gnu/linux during the next big refactor 16703 need_lib_prefix=no 16704 need_version=no 16705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16706 soname_spec='$libname$release$shared_ext$major' 16707 shlibpath_var=LD_LIBRARY_PATH 16708 shlibpath_overrides_runpath=yes 16709 hardcode_into_libs=yes 16710 # ldd complains unless libraries are executable 16711 postinstall_cmds='chmod +x $lib' 16712 ;; 16713 16714sunos4*) 16715 version_type=sunos 16716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16718 shlibpath_var=LD_LIBRARY_PATH 16719 shlibpath_overrides_runpath=yes 16720 if test yes = "$with_gnu_ld"; then 16721 need_lib_prefix=no 16722 fi 16723 need_version=yes 16724 ;; 16725 16726sysv4 | sysv4.3*) 16727 version_type=linux # correct to gnu/linux during the next big refactor 16728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16729 soname_spec='$libname$release$shared_ext$major' 16730 shlibpath_var=LD_LIBRARY_PATH 16731 case $host_vendor in 16732 sni) 16733 shlibpath_overrides_runpath=no 16734 need_lib_prefix=no 16735 runpath_var=LD_RUN_PATH 16736 ;; 16737 siemens) 16738 need_lib_prefix=no 16739 ;; 16740 motorola) 16741 need_lib_prefix=no 16742 need_version=no 16743 shlibpath_overrides_runpath=no 16744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16745 ;; 16746 esac 16747 ;; 16748 16749sysv4*MP*) 16750 if test -d /usr/nec; then 16751 version_type=linux # correct to gnu/linux during the next big refactor 16752 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16753 soname_spec='$libname$shared_ext.$major' 16754 shlibpath_var=LD_LIBRARY_PATH 16755 fi 16756 ;; 16757 16758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16759 version_type=sco 16760 need_lib_prefix=no 16761 need_version=no 16762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16763 soname_spec='$libname$release$shared_ext$major' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 shlibpath_overrides_runpath=yes 16766 hardcode_into_libs=yes 16767 if test yes = "$with_gnu_ld"; then 16768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16769 else 16770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16771 case $host_os in 16772 sco3.2v5*) 16773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16774 ;; 16775 esac 16776 fi 16777 sys_lib_dlsearch_path_spec='/usr/lib' 16778 ;; 16779 16780tpf*) 16781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16782 version_type=linux # correct to gnu/linux during the next big refactor 16783 need_lib_prefix=no 16784 need_version=no 16785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16786 shlibpath_var=LD_LIBRARY_PATH 16787 shlibpath_overrides_runpath=no 16788 hardcode_into_libs=yes 16789 ;; 16790 16791uts4*) 16792 version_type=linux # correct to gnu/linux during the next big refactor 16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16794 soname_spec='$libname$release$shared_ext$major' 16795 shlibpath_var=LD_LIBRARY_PATH 16796 ;; 16797 16798*) 16799 dynamic_linker=no 16800 ;; 16801esac 16802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16803$as_echo "$dynamic_linker" >&6; } 16804test no = "$dynamic_linker" && can_build_shared=no 16805 16806variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16807if test yes = "$GCC"; then 16808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16809fi 16810 16811if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16812 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16813fi 16814 16815if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16816 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16817fi 16818 16819# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16820configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16821 16822# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16823func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16824 16825# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16826configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16868$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16869hardcode_action_CXX= 16870if test -n "$hardcode_libdir_flag_spec_CXX" || 16871 test -n "$runpath_var_CXX" || 16872 test yes = "$hardcode_automatic_CXX"; then 16873 16874 # We can hardcode non-existent directories. 16875 if test no != "$hardcode_direct_CXX" && 16876 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16877 # have to relink, otherwise we might link with an installed library 16878 # when we should be linking with a yet-to-be-installed one 16879 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16880 test no != "$hardcode_minus_L_CXX"; then 16881 # Linking always hardcodes the temporary library directory. 16882 hardcode_action_CXX=relink 16883 else 16884 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16885 hardcode_action_CXX=immediate 16886 fi 16887else 16888 # We cannot hardcode anything, or else we can only hardcode existing 16889 # directories. 16890 hardcode_action_CXX=unsupported 16891fi 16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16893$as_echo "$hardcode_action_CXX" >&6; } 16894 16895if test relink = "$hardcode_action_CXX" || 16896 test yes = "$inherit_rpath_CXX"; then 16897 # Fast installation is not supported 16898 enable_fast_install=no 16899elif test yes = "$shlibpath_overrides_runpath" || 16900 test no = "$enable_shared"; then 16901 # Fast installation is not necessary 16902 enable_fast_install=needless 16903fi 16904 16905 16906 16907 16908 16909 16910 16911 fi # test -n "$compiler" 16912 16913 CC=$lt_save_CC 16914 CFLAGS=$lt_save_CFLAGS 16915 LDCXX=$LD 16916 LD=$lt_save_LD 16917 GCC=$lt_save_GCC 16918 with_gnu_ld=$lt_save_with_gnu_ld 16919 lt_cv_path_LDCXX=$lt_cv_path_LD 16920 lt_cv_path_LD=$lt_save_path_LD 16921 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16922 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16923fi # test yes != "$_lt_caught_CXX_error" 16924 16925ac_ext=c 16926ac_cpp='$CPP $CPPFLAGS' 16927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16929ac_compiler_gnu=$ac_cv_c_compiler_gnu 16930 16931 16932ac_ext=c 16933ac_cpp='$CPP $CPPFLAGS' 16934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16936ac_compiler_gnu=$ac_cv_c_compiler_gnu 16937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 16938$as_echo_n "checking how to run the C preprocessor... " >&6; } 16939# On Suns, sometimes $CPP names a directory. 16940if test -n "$CPP" && test -d "$CPP"; then 16941 CPP= 16942fi 16943if test -z "$CPP"; then 16944 if ${ac_cv_prog_CPP+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946else 16947 # Double quotes because CPP needs to be expanded 16948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 16949 do 16950 ac_preproc_ok=false 16951for ac_c_preproc_warn_flag in '' yes 16952do 16953 # Use a header file that comes with gcc, so configuring glibc 16954 # with a fresh cross-compiler works. 16955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16956 # <limits.h> exists even on freestanding compilers. 16957 # On the NeXT, cc -E runs the code through the compiler's parser, 16958 # not just through cpp. "Syntax error" is here to catch this case. 16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16960/* end confdefs.h. */ 16961#ifdef __STDC__ 16962# include <limits.h> 16963#else 16964# include <assert.h> 16965#endif 16966 Syntax error 16967_ACEOF 16968if ac_fn_c_try_cpp "$LINENO"; then : 16969 16970else 16971 # Broken: fails on valid input. 16972continue 16973fi 16974rm -f conftest.err conftest.i conftest.$ac_ext 16975 16976 # OK, works on sane cases. Now check whether nonexistent headers 16977 # can be detected and how. 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979/* end confdefs.h. */ 16980#include <ac_nonexistent.h> 16981_ACEOF 16982if ac_fn_c_try_cpp "$LINENO"; then : 16983 # Broken: success on invalid input. 16984continue 16985else 16986 # Passes both tests. 16987ac_preproc_ok=: 16988break 16989fi 16990rm -f conftest.err conftest.i conftest.$ac_ext 16991 16992done 16993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16994rm -f conftest.i conftest.err conftest.$ac_ext 16995if $ac_preproc_ok; then : 16996 break 16997fi 16998 16999 done 17000 ac_cv_prog_CPP=$CPP 17001 17002fi 17003 CPP=$ac_cv_prog_CPP 17004else 17005 ac_cv_prog_CPP=$CPP 17006fi 17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 17008$as_echo "$CPP" >&6; } 17009ac_preproc_ok=false 17010for ac_c_preproc_warn_flag in '' yes 17011do 17012 # Use a header file that comes with gcc, so configuring glibc 17013 # with a fresh cross-compiler works. 17014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17015 # <limits.h> exists even on freestanding compilers. 17016 # On the NeXT, cc -E runs the code through the compiler's parser, 17017 # not just through cpp. "Syntax error" is here to catch this case. 17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17019/* end confdefs.h. */ 17020#ifdef __STDC__ 17021# include <limits.h> 17022#else 17023# include <assert.h> 17024#endif 17025 Syntax error 17026_ACEOF 17027if ac_fn_c_try_cpp "$LINENO"; then : 17028 17029else 17030 # Broken: fails on valid input. 17031continue 17032fi 17033rm -f conftest.err conftest.i conftest.$ac_ext 17034 17035 # OK, works on sane cases. Now check whether nonexistent headers 17036 # can be detected and how. 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039#include <ac_nonexistent.h> 17040_ACEOF 17041if ac_fn_c_try_cpp "$LINENO"; then : 17042 # Broken: success on invalid input. 17043continue 17044else 17045 # Passes both tests. 17046ac_preproc_ok=: 17047break 17048fi 17049rm -f conftest.err conftest.i conftest.$ac_ext 17050 17051done 17052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17053rm -f conftest.i conftest.err conftest.$ac_ext 17054if $ac_preproc_ok; then : 17055 17056else 17057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17059as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 17060See \`config.log' for more details" "$LINENO" 5; } 17061fi 17062 17063ac_ext=c 17064ac_cpp='$CPP $CPPFLAGS' 17065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17067ac_compiler_gnu=$ac_cv_c_compiler_gnu 17068 17069 17070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 17071$as_echo_n "checking whether ln -s works... " >&6; } 17072LN_S=$as_ln_s 17073if test "$LN_S" = "ln -s"; then 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17075$as_echo "yes" >&6; } 17076else 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 17078$as_echo "no, using $LN_S" >&6; } 17079fi 17080 17081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 17082$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 17083set x ${MAKE-make} 17084ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 17085if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 17086 $as_echo_n "(cached) " >&6 17087else 17088 cat >conftest.make <<\_ACEOF 17089SHELL = /bin/sh 17090all: 17091 @echo '@@@%%%=$(MAKE)=@@@%%%' 17092_ACEOF 17093# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17094case `${MAKE-make} -f conftest.make 2>/dev/null` in 17095 *@@@%%%=?*=@@@%%%*) 17096 eval ac_cv_prog_make_${ac_make}_set=yes;; 17097 *) 17098 eval ac_cv_prog_make_${ac_make}_set=no;; 17099esac 17100rm -f conftest.make 17101fi 17102if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17104$as_echo "yes" >&6; } 17105 SET_MAKE= 17106else 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17108$as_echo "no" >&6; } 17109 SET_MAKE="MAKE=${MAKE-make}" 17110fi 17111 17112 17113# Extract the first word of "m4", so it can be a program name with args. 17114set dummy m4; ac_word=$2 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17116$as_echo_n "checking for $ac_word... " >&6; } 17117if ${ac_cv_path_M4+:} false; then : 17118 $as_echo_n "(cached) " >&6 17119else 17120 case $M4 in 17121 [\\/]* | ?:[\\/]*) 17122 ac_cv_path_M4="$M4" # Let the user override the test with a path. 17123 ;; 17124 *) 17125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17126for as_dir in $PATH 17127do 17128 IFS=$as_save_IFS 17129 test -z "$as_dir" && as_dir=. 17130 for ac_exec_ext in '' $ac_executable_extensions; do 17131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17132 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" 17133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17134 break 2 17135 fi 17136done 17137 done 17138IFS=$as_save_IFS 17139 17140 ;; 17141esac 17142fi 17143M4=$ac_cv_path_M4 17144if test -n "$M4"; then 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 17146$as_echo "$M4" >&6; } 17147else 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17149$as_echo "no" >&6; } 17150fi 17151 17152 17153 17154# Checks for header files. 17155for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h locale.h \ 17156 netinet/in.h sys/ioctl.h sys/mount.h \ 17157 sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h \ 17158 termios.h unistd.h 17159do : 17160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17161ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17162if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17163 cat >>confdefs.h <<_ACEOF 17164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17165_ACEOF 17166 17167else 17168 as_fn_error $? "*** POSIX header not found" "$LINENO" 5 17169 17170fi 17171 17172done 17173 17174 17175for ac_header in mtd/mtd-user.h 17176do : 17177 ac_fn_c_check_header_mongrel "$LINENO" "mtd/mtd-user.h" "ac_cv_header_mtd_mtd_user_h" "$ac_includes_default" 17178if test "x$ac_cv_header_mtd_mtd_user_h" = xyes; then : 17179 cat >>confdefs.h <<_ACEOF 17180#define HAVE_MTD_MTD_USER_H 1 17181_ACEOF 17182 17183else 17184 as_fn_error $? "*** KERNEL header not found" "$LINENO" 5 17185 17186fi 17187 17188done 17189 17190 17191for ac_header in linux/btrfs.h 17192do : 17193 ac_fn_c_check_header_mongrel "$LINENO" "linux/btrfs.h" "ac_cv_header_linux_btrfs_h" "$ac_includes_default" 17194if test "x$ac_cv_header_linux_btrfs_h" = xyes; then : 17195 cat >>confdefs.h <<_ACEOF 17196#define HAVE_LINUX_BTRFS_H 1 17197_ACEOF 17198 17199else 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** KERNEL header not found" >&5 17201$as_echo "$as_me: WARNING: *** KERNEL header not found" >&2;} 17202 17203fi 17204 17205done 17206 17207 17208# Checks for typedefs, structures, and compiler characteristics. 17209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17210$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17211if ${ac_cv_type_uid_t+:} false; then : 17212 $as_echo_n "(cached) " >&6 17213else 17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17215/* end confdefs.h. */ 17216#include <sys/types.h> 17217 17218_ACEOF 17219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17220 $EGREP "uid_t" >/dev/null 2>&1; then : 17221 ac_cv_type_uid_t=yes 17222else 17223 ac_cv_type_uid_t=no 17224fi 17225rm -f conftest* 17226 17227fi 17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17229$as_echo "$ac_cv_type_uid_t" >&6; } 17230if test $ac_cv_type_uid_t = no; then 17231 17232$as_echo "#define uid_t int" >>confdefs.h 17233 17234 17235$as_echo "#define gid_t int" >>confdefs.h 17236 17237fi 17238 17239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17240$as_echo_n "checking for inline... " >&6; } 17241if ${ac_cv_c_inline+:} false; then : 17242 $as_echo_n "(cached) " >&6 17243else 17244 ac_cv_c_inline=no 17245for ac_kw in inline __inline__ __inline; do 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17247/* end confdefs.h. */ 17248#ifndef __cplusplus 17249typedef int foo_t; 17250static $ac_kw foo_t static_foo () {return 0; } 17251$ac_kw foo_t foo () {return 0; } 17252#endif 17253 17254_ACEOF 17255if ac_fn_c_try_compile "$LINENO"; then : 17256 ac_cv_c_inline=$ac_kw 17257fi 17258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17259 test "$ac_cv_c_inline" != no && break 17260done 17261 17262fi 17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17264$as_echo "$ac_cv_c_inline" >&6; } 17265 17266case $ac_cv_c_inline in 17267 inline | yes) ;; 17268 *) 17269 case $ac_cv_c_inline in 17270 no) ac_val=;; 17271 *) ac_val=$ac_cv_c_inline;; 17272 esac 17273 cat >>confdefs.h <<_ACEOF 17274#ifndef __cplusplus 17275#define inline $ac_val 17276#endif 17277_ACEOF 17278 ;; 17279esac 17280 17281ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 17282if test "x$ac_cv_type_mode_t" = xyes; then : 17283 17284else 17285 17286cat >>confdefs.h <<_ACEOF 17287#define mode_t int 17288_ACEOF 17289 17290fi 17291 17292ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 17293if test "x$ac_cv_type_pid_t" = xyes; then : 17294 17295else 17296 17297cat >>confdefs.h <<_ACEOF 17298#define pid_t int 17299_ACEOF 17300 17301fi 17302 17303ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 17304if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 17305 17306cat >>confdefs.h <<_ACEOF 17307#define HAVE_STRUCT_STAT_ST_RDEV 1 17308_ACEOF 17309 17310 17311fi 17312 17313ac_fn_c_check_decl "$LINENO" "getrandom" "ac_cv_have_decl_getrandom" "#include <fcntl.h> 17314#include <linux/random.h> 17315#include <poll.h> 17316#include <signal.h> 17317#include <stdlib.h> 17318#include <string.h> 17319#include <sys/mount.h> 17320#include <sys/socket.h> 17321#include <sys/types.h> 17322#include <unistd.h> 17323" 17324if test "x$ac_cv_have_decl_getrandom" = xyes; then : 17325 ac_have_decl=1 17326else 17327 ac_have_decl=0 17328fi 17329 17330cat >>confdefs.h <<_ACEOF 17331#define HAVE_DECL_GETRANDOM $ac_have_decl 17332_ACEOF 17333ac_fn_c_check_decl "$LINENO" "gettid" "ac_cv_have_decl_gettid" "#include <fcntl.h> 17334#include <linux/random.h> 17335#include <poll.h> 17336#include <signal.h> 17337#include <stdlib.h> 17338#include <string.h> 17339#include <sys/mount.h> 17340#include <sys/socket.h> 17341#include <sys/types.h> 17342#include <unistd.h> 17343" 17344if test "x$ac_cv_have_decl_gettid" = xyes; then : 17345 ac_have_decl=1 17346else 17347 ac_have_decl=0 17348fi 17349 17350cat >>confdefs.h <<_ACEOF 17351#define HAVE_DECL_GETTID $ac_have_decl 17352_ACEOF 17353ac_fn_c_check_decl "$LINENO" "name_to_handle_at" "ac_cv_have_decl_name_to_handle_at" "#include <fcntl.h> 17354#include <linux/random.h> 17355#include <poll.h> 17356#include <signal.h> 17357#include <stdlib.h> 17358#include <string.h> 17359#include <sys/mount.h> 17360#include <sys/socket.h> 17361#include <sys/types.h> 17362#include <unistd.h> 17363" 17364if test "x$ac_cv_have_decl_name_to_handle_at" = xyes; then : 17365 ac_have_decl=1 17366else 17367 ac_have_decl=0 17368fi 17369 17370cat >>confdefs.h <<_ACEOF 17371#define HAVE_DECL_NAME_TO_HANDLE_AT $ac_have_decl 17372_ACEOF 17373ac_fn_c_check_decl "$LINENO" "accept4" "ac_cv_have_decl_accept4" "#include <fcntl.h> 17374#include <linux/random.h> 17375#include <poll.h> 17376#include <signal.h> 17377#include <stdlib.h> 17378#include <string.h> 17379#include <sys/mount.h> 17380#include <sys/socket.h> 17381#include <sys/types.h> 17382#include <unistd.h> 17383" 17384if test "x$ac_cv_have_decl_accept4" = xyes; then : 17385 ac_have_decl=1 17386else 17387 ac_have_decl=0 17388fi 17389 17390cat >>confdefs.h <<_ACEOF 17391#define HAVE_DECL_ACCEPT4 $ac_have_decl 17392_ACEOF 17393ac_fn_c_check_decl "$LINENO" "mkostemp" "ac_cv_have_decl_mkostemp" "#include <fcntl.h> 17394#include <linux/random.h> 17395#include <poll.h> 17396#include <signal.h> 17397#include <stdlib.h> 17398#include <string.h> 17399#include <sys/mount.h> 17400#include <sys/socket.h> 17401#include <sys/types.h> 17402#include <unistd.h> 17403" 17404if test "x$ac_cv_have_decl_mkostemp" = xyes; then : 17405 ac_have_decl=1 17406else 17407 ac_have_decl=0 17408fi 17409 17410cat >>confdefs.h <<_ACEOF 17411#define HAVE_DECL_MKOSTEMP $ac_have_decl 17412_ACEOF 17413ac_fn_c_check_decl "$LINENO" "ppoll" "ac_cv_have_decl_ppoll" "#include <fcntl.h> 17414#include <linux/random.h> 17415#include <poll.h> 17416#include <signal.h> 17417#include <stdlib.h> 17418#include <string.h> 17419#include <sys/mount.h> 17420#include <sys/socket.h> 17421#include <sys/types.h> 17422#include <unistd.h> 17423" 17424if test "x$ac_cv_have_decl_ppoll" = xyes; then : 17425 ac_have_decl=1 17426else 17427 ac_have_decl=0 17428fi 17429 17430cat >>confdefs.h <<_ACEOF 17431#define HAVE_DECL_PPOLL $ac_have_decl 17432_ACEOF 17433ac_fn_c_check_decl "$LINENO" "strndupa" "ac_cv_have_decl_strndupa" "#include <fcntl.h> 17434#include <linux/random.h> 17435#include <poll.h> 17436#include <signal.h> 17437#include <stdlib.h> 17438#include <string.h> 17439#include <sys/mount.h> 17440#include <sys/socket.h> 17441#include <sys/types.h> 17442#include <unistd.h> 17443" 17444if test "x$ac_cv_have_decl_strndupa" = xyes; then : 17445 ac_have_decl=1 17446else 17447 ac_have_decl=0 17448fi 17449 17450cat >>confdefs.h <<_ACEOF 17451#define HAVE_DECL_STRNDUPA $ac_have_decl 17452_ACEOF 17453 17454 17455# The cast to long int works around a bug in the HP C Compiler 17456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17458# This bug is HP SR number 8606223364. 17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 17460$as_echo_n "checking size of pid_t... " >&6; } 17461if ${ac_cv_sizeof_pid_t+:} false; then : 17462 $as_echo_n "(cached) " >&6 17463else 17464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 17465 17466else 17467 if test "$ac_cv_type_pid_t" = yes; then 17468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17470as_fn_error 77 "cannot compute sizeof (pid_t) 17471See \`config.log' for more details" "$LINENO" 5; } 17472 else 17473 ac_cv_sizeof_pid_t=0 17474 fi 17475fi 17476 17477fi 17478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 17479$as_echo "$ac_cv_sizeof_pid_t" >&6; } 17480 17481 17482 17483cat >>confdefs.h <<_ACEOF 17484#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 17485_ACEOF 17486 17487 17488# The cast to long int works around a bug in the HP C Compiler 17489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17491# This bug is HP SR number 8606223364. 17492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5 17493$as_echo_n "checking size of uid_t... " >&6; } 17494if ${ac_cv_sizeof_uid_t+:} false; then : 17495 $as_echo_n "(cached) " >&6 17496else 17497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default"; then : 17498 17499else 17500 if test "$ac_cv_type_uid_t" = yes; then 17501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17503as_fn_error 77 "cannot compute sizeof (uid_t) 17504See \`config.log' for more details" "$LINENO" 5; } 17505 else 17506 ac_cv_sizeof_uid_t=0 17507 fi 17508fi 17509 17510fi 17511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5 17512$as_echo "$ac_cv_sizeof_uid_t" >&6; } 17513 17514 17515 17516cat >>confdefs.h <<_ACEOF 17517#define SIZEOF_UID_T $ac_cv_sizeof_uid_t 17518_ACEOF 17519 17520 17521# The cast to long int works around a bug in the HP C Compiler 17522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17524# This bug is HP SR number 8606223364. 17525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5 17526$as_echo_n "checking size of gid_t... " >&6; } 17527if ${ac_cv_sizeof_gid_t+:} false; then : 17528 $as_echo_n "(cached) " >&6 17529else 17530 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t" "$ac_includes_default"; then : 17531 17532else 17533 if test "$ac_cv_type_gid_t" = yes; then 17534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17536as_fn_error 77 "cannot compute sizeof (gid_t) 17537See \`config.log' for more details" "$LINENO" 5; } 17538 else 17539 ac_cv_sizeof_gid_t=0 17540 fi 17541fi 17542 17543fi 17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5 17545$as_echo "$ac_cv_sizeof_gid_t" >&6; } 17546 17547 17548 17549cat >>confdefs.h <<_ACEOF 17550#define SIZEOF_GID_T $ac_cv_sizeof_gid_t 17551_ACEOF 17552 17553 17554# The cast to long int works around a bug in the HP C Compiler 17555# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17556# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17557# This bug is HP SR number 8606223364. 17558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 17559$as_echo_n "checking size of dev_t... " >&6; } 17560if ${ac_cv_sizeof_dev_t+:} false; then : 17561 $as_echo_n "(cached) " >&6 17562else 17563 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then : 17564 17565else 17566 if test "$ac_cv_type_dev_t" = yes; then 17567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17569as_fn_error 77 "cannot compute sizeof (dev_t) 17570See \`config.log' for more details" "$LINENO" 5; } 17571 else 17572 ac_cv_sizeof_dev_t=0 17573 fi 17574fi 17575 17576fi 17577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 17578$as_echo "$ac_cv_sizeof_dev_t" >&6; } 17579 17580 17581 17582cat >>confdefs.h <<_ACEOF 17583#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t 17584_ACEOF 17585 17586 17587# The cast to long int works around a bug in the HP C Compiler 17588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17590# This bug is HP SR number 8606223364. 17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 17592$as_echo_n "checking size of time_t... " >&6; } 17593if ${ac_cv_sizeof_time_t+:} false; then : 17594 $as_echo_n "(cached) " >&6 17595else 17596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 17597 17598else 17599 if test "$ac_cv_type_time_t" = yes; then 17600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17602as_fn_error 77 "cannot compute sizeof (time_t) 17603See \`config.log' for more details" "$LINENO" 5; } 17604 else 17605 ac_cv_sizeof_time_t=0 17606 fi 17607fi 17608 17609fi 17610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 17611$as_echo "$ac_cv_sizeof_time_t" >&6; } 17612 17613 17614 17615cat >>confdefs.h <<_ACEOF 17616#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 17617_ACEOF 17618 17619 17620# The cast to long int works around a bug in the HP C Compiler 17621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17623# This bug is HP SR number 8606223364. 17624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5 17625$as_echo_n "checking size of rlim_t... " >&6; } 17626if ${ac_cv_sizeof_rlim_t+:} false; then : 17627 $as_echo_n "(cached) " >&6 17628else 17629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" " 17630#include <sys/time.h> 17631#include <sys/resource.h> 17632"; then : 17633 17634else 17635 if test "$ac_cv_type_rlim_t" = yes; then 17636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17638as_fn_error 77 "cannot compute sizeof (rlim_t) 17639See \`config.log' for more details" "$LINENO" 5; } 17640 else 17641 ac_cv_sizeof_rlim_t=0 17642 fi 17643fi 17644 17645fi 17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5 17647$as_echo "$ac_cv_sizeof_rlim_t" >&6; } 17648 17649 17650 17651cat >>confdefs.h <<_ACEOF 17652#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t 17653_ACEOF 17654 17655 17656 17657# Checks for library functions. 17658for ac_header in unistd.h 17659do : 17660 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 17661if test "x$ac_cv_header_unistd_h" = xyes; then : 17662 cat >>confdefs.h <<_ACEOF 17663#define HAVE_UNISTD_H 1 17664_ACEOF 17665 17666fi 17667 17668done 17669 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 17671$as_echo_n "checking for working chown... " >&6; } 17672if ${ac_cv_func_chown_works+:} false; then : 17673 $as_echo_n "(cached) " >&6 17674else 17675 if test "$cross_compiling" = yes; then : 17676 ac_cv_func_chown_works=no 17677else 17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17679/* end confdefs.h. */ 17680$ac_includes_default 17681#include <fcntl.h> 17682 17683int 17684main () 17685{ 17686 char *f = "conftest.chown"; 17687 struct stat before, after; 17688 17689 if (creat (f, 0600) < 0) 17690 return 1; 17691 if (stat (f, &before) < 0) 17692 return 1; 17693 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 17694 return 1; 17695 if (stat (f, &after) < 0) 17696 return 1; 17697 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 17698 17699 ; 17700 return 0; 17701} 17702_ACEOF 17703if ac_fn_c_try_run "$LINENO"; then : 17704 ac_cv_func_chown_works=yes 17705else 17706 ac_cv_func_chown_works=no 17707fi 17708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17709 conftest.$ac_objext conftest.beam conftest.$ac_ext 17710fi 17711 17712rm -f conftest.chown 17713 17714fi 17715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 17716$as_echo "$ac_cv_func_chown_works" >&6; } 17717if test $ac_cv_func_chown_works = yes; then 17718 17719$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 17720 17721fi 17722 17723for ac_header in vfork.h 17724do : 17725 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 17726if test "x$ac_cv_header_vfork_h" = xyes; then : 17727 cat >>confdefs.h <<_ACEOF 17728#define HAVE_VFORK_H 1 17729_ACEOF 17730 17731fi 17732 17733done 17734 17735for ac_func in fork vfork 17736do : 17737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17738ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17739if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17740 cat >>confdefs.h <<_ACEOF 17741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17742_ACEOF 17743 17744fi 17745done 17746 17747if test "x$ac_cv_func_fork" = xyes; then 17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 17749$as_echo_n "checking for working fork... " >&6; } 17750if ${ac_cv_func_fork_works+:} false; then : 17751 $as_echo_n "(cached) " >&6 17752else 17753 if test "$cross_compiling" = yes; then : 17754 ac_cv_func_fork_works=cross 17755else 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758$ac_includes_default 17759int 17760main () 17761{ 17762 17763 /* By Ruediger Kuhlmann. */ 17764 return fork () < 0; 17765 17766 ; 17767 return 0; 17768} 17769_ACEOF 17770if ac_fn_c_try_run "$LINENO"; then : 17771 ac_cv_func_fork_works=yes 17772else 17773 ac_cv_func_fork_works=no 17774fi 17775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17776 conftest.$ac_objext conftest.beam conftest.$ac_ext 17777fi 17778 17779fi 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 17781$as_echo "$ac_cv_func_fork_works" >&6; } 17782 17783else 17784 ac_cv_func_fork_works=$ac_cv_func_fork 17785fi 17786if test "x$ac_cv_func_fork_works" = xcross; then 17787 case $host in 17788 *-*-amigaos* | *-*-msdosdjgpp*) 17789 # Override, as these systems have only a dummy fork() stub 17790 ac_cv_func_fork_works=no 17791 ;; 17792 *) 17793 ac_cv_func_fork_works=yes 17794 ;; 17795 esac 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 17797$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 17798fi 17799ac_cv_func_vfork_works=$ac_cv_func_vfork 17800if test "x$ac_cv_func_vfork" = xyes; then 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 17802$as_echo_n "checking for working vfork... " >&6; } 17803if ${ac_cv_func_vfork_works+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805else 17806 if test "$cross_compiling" = yes; then : 17807 ac_cv_func_vfork_works=cross 17808else 17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17810/* end confdefs.h. */ 17811/* Thanks to Paul Eggert for this test. */ 17812$ac_includes_default 17813#include <sys/wait.h> 17814#ifdef HAVE_VFORK_H 17815# include <vfork.h> 17816#endif 17817/* On some sparc systems, changes by the child to local and incoming 17818 argument registers are propagated back to the parent. The compiler 17819 is told about this with #include <vfork.h>, but some compilers 17820 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 17821 static variable whose address is put into a register that is 17822 clobbered by the vfork. */ 17823static void 17824#ifdef __cplusplus 17825sparc_address_test (int arg) 17826# else 17827sparc_address_test (arg) int arg; 17828#endif 17829{ 17830 static pid_t child; 17831 if (!child) { 17832 child = vfork (); 17833 if (child < 0) { 17834 perror ("vfork"); 17835 _exit(2); 17836 } 17837 if (!child) { 17838 arg = getpid(); 17839 write(-1, "", 0); 17840 _exit (arg); 17841 } 17842 } 17843} 17844 17845int 17846main () 17847{ 17848 pid_t parent = getpid (); 17849 pid_t child; 17850 17851 sparc_address_test (0); 17852 17853 child = vfork (); 17854 17855 if (child == 0) { 17856 /* Here is another test for sparc vfork register problems. This 17857 test uses lots of local variables, at least as many local 17858 variables as main has allocated so far including compiler 17859 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 17860 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 17861 reuse the register of parent for one of the local variables, 17862 since it will think that parent can't possibly be used any more 17863 in this routine. Assigning to the local variable will thus 17864 munge parent in the parent process. */ 17865 pid_t 17866 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 17867 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 17868 /* Convince the compiler that p..p7 are live; otherwise, it might 17869 use the same hardware register for all 8 local variables. */ 17870 if (p != p1 || p != p2 || p != p3 || p != p4 17871 || p != p5 || p != p6 || p != p7) 17872 _exit(1); 17873 17874 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 17875 from child file descriptors. If the child closes a descriptor 17876 before it execs or exits, this munges the parent's descriptor 17877 as well. Test for this by closing stdout in the child. */ 17878 _exit(close(fileno(stdout)) != 0); 17879 } else { 17880 int status; 17881 struct stat st; 17882 17883 while (wait(&status) != child) 17884 ; 17885 return ( 17886 /* Was there some problem with vforking? */ 17887 child < 0 17888 17889 /* Did the child fail? (This shouldn't happen.) */ 17890 || status 17891 17892 /* Did the vfork/compiler bug occur? */ 17893 || parent != getpid() 17894 17895 /* Did the file descriptor bug occur? */ 17896 || fstat(fileno(stdout), &st) != 0 17897 ); 17898 } 17899} 17900_ACEOF 17901if ac_fn_c_try_run "$LINENO"; then : 17902 ac_cv_func_vfork_works=yes 17903else 17904 ac_cv_func_vfork_works=no 17905fi 17906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17907 conftest.$ac_objext conftest.beam conftest.$ac_ext 17908fi 17909 17910fi 17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 17912$as_echo "$ac_cv_func_vfork_works" >&6; } 17913 17914fi; 17915if test "x$ac_cv_func_fork_works" = xcross; then 17916 ac_cv_func_vfork_works=$ac_cv_func_vfork 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 17918$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 17919fi 17920 17921if test "x$ac_cv_func_vfork_works" = xyes; then 17922 17923$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 17924 17925else 17926 17927$as_echo "#define vfork fork" >>confdefs.h 17928 17929fi 17930if test "x$ac_cv_func_fork_works" = xyes; then 17931 17932$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 17933 17934fi 17935 17936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17937$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17938if ${ac_cv_sys_largefile_source+:} false; then : 17939 $as_echo_n "(cached) " >&6 17940else 17941 while :; do 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944#include <sys/types.h> /* for off_t */ 17945 #include <stdio.h> 17946int 17947main () 17948{ 17949int (*fp) (FILE *, off_t, int) = fseeko; 17950 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17951 ; 17952 return 0; 17953} 17954_ACEOF 17955if ac_fn_c_try_link "$LINENO"; then : 17956 ac_cv_sys_largefile_source=no; break 17957fi 17958rm -f core conftest.err conftest.$ac_objext \ 17959 conftest$ac_exeext conftest.$ac_ext 17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17961/* end confdefs.h. */ 17962#define _LARGEFILE_SOURCE 1 17963#include <sys/types.h> /* for off_t */ 17964 #include <stdio.h> 17965int 17966main () 17967{ 17968int (*fp) (FILE *, off_t, int) = fseeko; 17969 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974if ac_fn_c_try_link "$LINENO"; then : 17975 ac_cv_sys_largefile_source=1; break 17976fi 17977rm -f core conftest.err conftest.$ac_objext \ 17978 conftest$ac_exeext conftest.$ac_ext 17979 ac_cv_sys_largefile_source=unknown 17980 break 17981done 17982fi 17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17984$as_echo "$ac_cv_sys_largefile_source" >&6; } 17985case $ac_cv_sys_largefile_source in #( 17986 no | unknown) ;; 17987 *) 17988cat >>confdefs.h <<_ACEOF 17989#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 17990_ACEOF 17991;; 17992esac 17993rm -rf conftest* 17994 17995# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17996# in glibc 2.1.3, but that breaks too many other things. 17997# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17998if test $ac_cv_sys_largefile_source != unknown; then 17999 18000$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 18001 18002fi 18003 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 18005$as_echo_n "checking type of array argument to getgroups... " >&6; } 18006if ${ac_cv_type_getgroups+:} false; then : 18007 $as_echo_n "(cached) " >&6 18008else 18009 if test "$cross_compiling" = yes; then : 18010 ac_cv_type_getgroups=cross 18011else 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013/* end confdefs.h. */ 18014/* Thanks to Mike Rendell for this test. */ 18015$ac_includes_default 18016#define NGID 256 18017#undef MAX 18018#define MAX(x, y) ((x) > (y) ? (x) : (y)) 18019 18020int 18021main () 18022{ 18023 gid_t gidset[NGID]; 18024 int i, n; 18025 union { gid_t gval; long int lval; } val; 18026 18027 val.lval = -1; 18028 for (i = 0; i < NGID; i++) 18029 gidset[i] = val.gval; 18030 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 18031 gidset); 18032 /* Exit non-zero if getgroups seems to require an array of ints. This 18033 happens when gid_t is short int but getgroups modifies an array 18034 of ints. */ 18035 return n > 0 && gidset[n] != val.gval; 18036} 18037_ACEOF 18038if ac_fn_c_try_run "$LINENO"; then : 18039 ac_cv_type_getgroups=gid_t 18040else 18041 ac_cv_type_getgroups=int 18042fi 18043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18044 conftest.$ac_objext conftest.beam conftest.$ac_ext 18045fi 18046 18047if test $ac_cv_type_getgroups = cross; then 18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18049/* end confdefs.h. */ 18050#include <unistd.h> 18051 18052_ACEOF 18053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18054 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 18055 ac_cv_type_getgroups=gid_t 18056else 18057 ac_cv_type_getgroups=int 18058fi 18059rm -f conftest* 18060 18061fi 18062fi 18063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 18064$as_echo "$ac_cv_type_getgroups" >&6; } 18065 18066cat >>confdefs.h <<_ACEOF 18067#define GETGROUPS_T $ac_cv_type_getgroups 18068_ACEOF 18069 18070 18071ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18072if test "x$ac_cv_type_size_t" = xyes; then : 18073 18074else 18075 18076cat >>confdefs.h <<_ACEOF 18077#define size_t unsigned int 18078_ACEOF 18079 18080fi 18081 18082ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" 18083if test "x$ac_cv_func_getgroups" = xyes; then : 18084 18085fi 18086 18087 18088# If we don't yet have getgroups, see if it's in -lbsd. 18089# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. 18090ac_save_LIBS=$LIBS 18091if test $ac_cv_func_getgroups = no; then 18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 18093$as_echo_n "checking for getgroups in -lbsd... " >&6; } 18094if ${ac_cv_lib_bsd_getgroups+:} false; then : 18095 $as_echo_n "(cached) " >&6 18096else 18097 ac_check_lib_save_LIBS=$LIBS 18098LIBS="-lbsd $LIBS" 18099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100/* end confdefs.h. */ 18101 18102/* Override any GCC internal prototype to avoid an error. 18103 Use char because int might match the return type of a GCC 18104 builtin and then its argument prototype would still apply. */ 18105#ifdef __cplusplus 18106extern "C" 18107#endif 18108char getgroups (); 18109int 18110main () 18111{ 18112return getgroups (); 18113 ; 18114 return 0; 18115} 18116_ACEOF 18117if ac_fn_c_try_link "$LINENO"; then : 18118 ac_cv_lib_bsd_getgroups=yes 18119else 18120 ac_cv_lib_bsd_getgroups=no 18121fi 18122rm -f core conftest.err conftest.$ac_objext \ 18123 conftest$ac_exeext conftest.$ac_ext 18124LIBS=$ac_check_lib_save_LIBS 18125fi 18126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5 18127$as_echo "$ac_cv_lib_bsd_getgroups" >&6; } 18128if test "x$ac_cv_lib_bsd_getgroups" = xyes; then : 18129 GETGROUPS_LIB=-lbsd 18130fi 18131 18132fi 18133 18134# Run the program to test the functionality of the system-supplied 18135# getgroups function only if there is such a function. 18136if test $ac_cv_func_getgroups = yes; then 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 18138$as_echo_n "checking for working getgroups... " >&6; } 18139if ${ac_cv_func_getgroups_works+:} false; then : 18140 $as_echo_n "(cached) " >&6 18141else 18142 if test "$cross_compiling" = yes; then : 18143 ac_cv_func_getgroups_works=no 18144else 18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146/* end confdefs.h. */ 18147$ac_includes_default 18148int 18149main () 18150{ 18151/* On Ultrix 4.3, getgroups (0, 0) always fails. */ 18152 return getgroups (0, 0) == -1; 18153 ; 18154 return 0; 18155} 18156_ACEOF 18157if ac_fn_c_try_run "$LINENO"; then : 18158 ac_cv_func_getgroups_works=yes 18159else 18160 ac_cv_func_getgroups_works=no 18161fi 18162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18163 conftest.$ac_objext conftest.beam conftest.$ac_ext 18164fi 18165 18166 18167fi 18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 18169$as_echo "$ac_cv_func_getgroups_works" >&6; } 18170else 18171 ac_cv_func_getgroups_works=no 18172fi 18173if test $ac_cv_func_getgroups_works = yes; then 18174 18175$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h 18176 18177fi 18178LIBS=$ac_save_LIBS 18179 18180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 18181$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 18182if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 18183 $as_echo_n "(cached) " >&6 18184else 18185 rm -f conftest.sym conftest.file 18186echo >conftest.file 18187if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 18188 if test "$cross_compiling" = yes; then : 18189 ac_cv_func_lstat_dereferences_slashed_symlink=no 18190else 18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18192/* end confdefs.h. */ 18193$ac_includes_default 18194int 18195main () 18196{ 18197struct stat sbuf; 18198 /* Linux will dereference the symlink and fail, as required by POSIX. 18199 That is better in the sense that it means we will not 18200 have to compile and use the lstat wrapper. */ 18201 return lstat ("conftest.sym/", &sbuf) == 0; 18202 ; 18203 return 0; 18204} 18205_ACEOF 18206if ac_fn_c_try_run "$LINENO"; then : 18207 ac_cv_func_lstat_dereferences_slashed_symlink=yes 18208else 18209 ac_cv_func_lstat_dereferences_slashed_symlink=no 18210fi 18211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18212 conftest.$ac_objext conftest.beam conftest.$ac_ext 18213fi 18214 18215else 18216 # If the `ln -s' command failed, then we probably don't even 18217 # have an lstat function. 18218 ac_cv_func_lstat_dereferences_slashed_symlink=no 18219fi 18220rm -f conftest.sym conftest.file 18221 18222fi 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 18224$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 18225 18226test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 18227 18228cat >>confdefs.h <<_ACEOF 18229#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 18230_ACEOF 18231 18232 18233if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 18234 case " $LIBOBJS " in 18235 *" lstat.$ac_objext "* ) ;; 18236 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 18237 ;; 18238esac 18239 18240fi 18241 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 18243$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 18244if ${ac_cv_header_sys_types_h_makedev+:} false; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248/* end confdefs.h. */ 18249#include <sys/types.h> 18250int 18251main () 18252{ 18253return makedev(0, 0); 18254 ; 18255 return 0; 18256} 18257_ACEOF 18258if ac_fn_c_try_link "$LINENO"; then : 18259 ac_cv_header_sys_types_h_makedev=yes 18260else 18261 ac_cv_header_sys_types_h_makedev=no 18262fi 18263rm -f core conftest.err conftest.$ac_objext \ 18264 conftest$ac_exeext conftest.$ac_ext 18265 18266fi 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 18268$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 18269 18270if test $ac_cv_header_sys_types_h_makedev = no; then 18271ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 18272if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 18273 18274$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 18275 18276fi 18277 18278 18279 18280 if test $ac_cv_header_sys_mkdev_h = no; then 18281 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 18282if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 18283 18284$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 18285 18286fi 18287 18288 18289 fi 18290fi 18291 18292 18293 18294 18295 for ac_header in $ac_header_list 18296do : 18297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18298ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18299" 18300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18301 cat >>confdefs.h <<_ACEOF 18302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18303_ACEOF 18304 18305fi 18306 18307done 18308 18309 18310 18311 18312 18313 18314 18315 18316for ac_func in getpagesize 18317do : 18318 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 18319if test "x$ac_cv_func_getpagesize" = xyes; then : 18320 cat >>confdefs.h <<_ACEOF 18321#define HAVE_GETPAGESIZE 1 18322_ACEOF 18323 18324fi 18325done 18326 18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 18328$as_echo_n "checking for working mmap... " >&6; } 18329if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331else 18332 if test "$cross_compiling" = yes; then : 18333 ac_cv_func_mmap_fixed_mapped=no 18334else 18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18336/* end confdefs.h. */ 18337$ac_includes_default 18338/* malloc might have been renamed as rpl_malloc. */ 18339#undef malloc 18340 18341/* Thanks to Mike Haertel and Jim Avera for this test. 18342 Here is a matrix of mmap possibilities: 18343 mmap private not fixed 18344 mmap private fixed at somewhere currently unmapped 18345 mmap private fixed at somewhere already mapped 18346 mmap shared not fixed 18347 mmap shared fixed at somewhere currently unmapped 18348 mmap shared fixed at somewhere already mapped 18349 For private mappings, we should verify that changes cannot be read() 18350 back from the file, nor mmap's back from the file at a different 18351 address. (There have been systems where private was not correctly 18352 implemented like the infamous i386 svr4.0, and systems where the 18353 VM page cache was not coherent with the file system buffer cache 18354 like early versions of FreeBSD and possibly contemporary NetBSD.) 18355 For shared mappings, we should conversely verify that changes get 18356 propagated back to all the places they're supposed to be. 18357 18358 Grep wants private fixed already mapped. 18359 The main things grep needs to know about mmap are: 18360 * does it exist and is it safe to write into the mmap'd area 18361 * how to use it (BSD variants) */ 18362 18363#include <fcntl.h> 18364#include <sys/mman.h> 18365 18366#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 18367char *malloc (); 18368#endif 18369 18370/* This mess was copied from the GNU getpagesize.h. */ 18371#ifndef HAVE_GETPAGESIZE 18372# ifdef _SC_PAGESIZE 18373# define getpagesize() sysconf(_SC_PAGESIZE) 18374# else /* no _SC_PAGESIZE */ 18375# ifdef HAVE_SYS_PARAM_H 18376# include <sys/param.h> 18377# ifdef EXEC_PAGESIZE 18378# define getpagesize() EXEC_PAGESIZE 18379# else /* no EXEC_PAGESIZE */ 18380# ifdef NBPG 18381# define getpagesize() NBPG * CLSIZE 18382# ifndef CLSIZE 18383# define CLSIZE 1 18384# endif /* no CLSIZE */ 18385# else /* no NBPG */ 18386# ifdef NBPC 18387# define getpagesize() NBPC 18388# else /* no NBPC */ 18389# ifdef PAGESIZE 18390# define getpagesize() PAGESIZE 18391# endif /* PAGESIZE */ 18392# endif /* no NBPC */ 18393# endif /* no NBPG */ 18394# endif /* no EXEC_PAGESIZE */ 18395# else /* no HAVE_SYS_PARAM_H */ 18396# define getpagesize() 8192 /* punt totally */ 18397# endif /* no HAVE_SYS_PARAM_H */ 18398# endif /* no _SC_PAGESIZE */ 18399 18400#endif /* no HAVE_GETPAGESIZE */ 18401 18402int 18403main () 18404{ 18405 char *data, *data2, *data3; 18406 const char *cdata2; 18407 int i, pagesize; 18408 int fd, fd2; 18409 18410 pagesize = getpagesize (); 18411 18412 /* First, make a file with some known garbage in it. */ 18413 data = (char *) malloc (pagesize); 18414 if (!data) 18415 return 1; 18416 for (i = 0; i < pagesize; ++i) 18417 *(data + i) = rand (); 18418 umask (0); 18419 fd = creat ("conftest.mmap", 0600); 18420 if (fd < 0) 18421 return 2; 18422 if (write (fd, data, pagesize) != pagesize) 18423 return 3; 18424 close (fd); 18425 18426 /* Next, check that the tail of a page is zero-filled. File must have 18427 non-zero length, otherwise we risk SIGBUS for entire page. */ 18428 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 18429 if (fd2 < 0) 18430 return 4; 18431 cdata2 = ""; 18432 if (write (fd2, cdata2, 1) != 1) 18433 return 5; 18434 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 18435 if (data2 == MAP_FAILED) 18436 return 6; 18437 for (i = 0; i < pagesize; ++i) 18438 if (*(data2 + i)) 18439 return 7; 18440 close (fd2); 18441 if (munmap (data2, pagesize)) 18442 return 8; 18443 18444 /* Next, try to mmap the file at a fixed address which already has 18445 something else allocated at it. If we can, also make sure that 18446 we see the same garbage. */ 18447 fd = open ("conftest.mmap", O_RDWR); 18448 if (fd < 0) 18449 return 9; 18450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 18451 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 18452 return 10; 18453 for (i = 0; i < pagesize; ++i) 18454 if (*(data + i) != *(data2 + i)) 18455 return 11; 18456 18457 /* Finally, make sure that changes to the mapped area do not 18458 percolate back to the file as seen by read(). (This is a bug on 18459 some variants of i386 svr4.0.) */ 18460 for (i = 0; i < pagesize; ++i) 18461 *(data2 + i) = *(data2 + i) + 1; 18462 data3 = (char *) malloc (pagesize); 18463 if (!data3) 18464 return 12; 18465 if (read (fd, data3, pagesize) != pagesize) 18466 return 13; 18467 for (i = 0; i < pagesize; ++i) 18468 if (*(data + i) != *(data3 + i)) 18469 return 14; 18470 close (fd); 18471 return 0; 18472} 18473_ACEOF 18474if ac_fn_c_try_run "$LINENO"; then : 18475 ac_cv_func_mmap_fixed_mapped=yes 18476else 18477 ac_cv_func_mmap_fixed_mapped=no 18478fi 18479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18480 conftest.$ac_objext conftest.beam conftest.$ac_ext 18481fi 18482 18483fi 18484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 18485$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 18486if test $ac_cv_func_mmap_fixed_mapped = yes; then 18487 18488$as_echo "#define HAVE_MMAP 1" >>confdefs.h 18489 18490fi 18491rm -f conftest.mmap conftest.txt 18492 18493 18494for ac_func in alarm dup2 ftruncate localtime_r mempcpy \ 18495 mkdir munmap nl_langinfo rmdir setlocale socket stpcpy \ 18496 uname 18497do : 18498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18499ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18500if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18501 cat >>confdefs.h <<_ACEOF 18502#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18503_ACEOF 18504 18505else 18506 as_fn_error $? "*** POSIX function not found" "$LINENO" 5 18507 18508fi 18509done 18510 18511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18512$as_echo_n "checking for library containing clock_gettime... " >&6; } 18513if ${ac_cv_search_clock_gettime+:} false; then : 18514 $as_echo_n "(cached) " >&6 18515else 18516 ac_func_search_save_LIBS=$LIBS 18517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518/* end confdefs.h. */ 18519 18520/* Override any GCC internal prototype to avoid an error. 18521 Use char because int might match the return type of a GCC 18522 builtin and then its argument prototype would still apply. */ 18523#ifdef __cplusplus 18524extern "C" 18525#endif 18526char clock_gettime (); 18527int 18528main () 18529{ 18530return clock_gettime (); 18531 ; 18532 return 0; 18533} 18534_ACEOF 18535for ac_lib in '' rt; do 18536 if test -z "$ac_lib"; then 18537 ac_res="none required" 18538 else 18539 ac_res=-l$ac_lib 18540 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18541 fi 18542 if ac_fn_c_try_link "$LINENO"; then : 18543 ac_cv_search_clock_gettime=$ac_res 18544fi 18545rm -f core conftest.err conftest.$ac_objext \ 18546 conftest$ac_exeext 18547 if ${ac_cv_search_clock_gettime+:} false; then : 18548 break 18549fi 18550done 18551if ${ac_cv_search_clock_gettime+:} false; then : 18552 18553else 18554 ac_cv_search_clock_gettime=no 18555fi 18556rm conftest.$ac_ext 18557LIBS=$ac_func_search_save_LIBS 18558fi 18559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18560$as_echo "$ac_cv_search_clock_gettime" >&6; } 18561ac_res=$ac_cv_search_clock_gettime 18562if test "$ac_res" != no; then : 18563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18564 18565else 18566 as_fn_error $? "*** POSIX librt not found" "$LINENO" 5 18567fi 18568 18569LIBM= 18570case $host in 18571*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 18572 # These system don't have libm, or don't need it 18573 ;; 18574*-ncr-sysv4.3*) 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 18576$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 18577if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 18578 $as_echo_n "(cached) " >&6 18579else 18580 ac_check_lib_save_LIBS=$LIBS 18581LIBS="-lmw $LIBS" 18582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18583/* end confdefs.h. */ 18584 18585/* Override any GCC internal prototype to avoid an error. 18586 Use char because int might match the return type of a GCC 18587 builtin and then its argument prototype would still apply. */ 18588#ifdef __cplusplus 18589extern "C" 18590#endif 18591char _mwvalidcheckl (); 18592int 18593main () 18594{ 18595return _mwvalidcheckl (); 18596 ; 18597 return 0; 18598} 18599_ACEOF 18600if ac_fn_c_try_link "$LINENO"; then : 18601 ac_cv_lib_mw__mwvalidcheckl=yes 18602else 18603 ac_cv_lib_mw__mwvalidcheckl=no 18604fi 18605rm -f core conftest.err conftest.$ac_objext \ 18606 conftest$ac_exeext conftest.$ac_ext 18607LIBS=$ac_check_lib_save_LIBS 18608fi 18609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 18610$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 18611if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 18612 LIBM=-lmw 18613fi 18614 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18616$as_echo_n "checking for cos in -lm... " >&6; } 18617if ${ac_cv_lib_m_cos+:} false; then : 18618 $as_echo_n "(cached) " >&6 18619else 18620 ac_check_lib_save_LIBS=$LIBS 18621LIBS="-lm $LIBS" 18622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623/* end confdefs.h. */ 18624 18625/* Override any GCC internal prototype to avoid an error. 18626 Use char because int might match the return type of a GCC 18627 builtin and then its argument prototype would still apply. */ 18628#ifdef __cplusplus 18629extern "C" 18630#endif 18631char cos (); 18632int 18633main () 18634{ 18635return cos (); 18636 ; 18637 return 0; 18638} 18639_ACEOF 18640if ac_fn_c_try_link "$LINENO"; then : 18641 ac_cv_lib_m_cos=yes 18642else 18643 ac_cv_lib_m_cos=no 18644fi 18645rm -f core conftest.err conftest.$ac_objext \ 18646 conftest$ac_exeext conftest.$ac_ext 18647LIBS=$ac_check_lib_save_LIBS 18648fi 18649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18650$as_echo "$ac_cv_lib_m_cos" >&6; } 18651if test "x$ac_cv_lib_m_cos" = xyes; then : 18652 LIBM="$LIBM -lm" 18653fi 18654 18655 ;; 18656*) 18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18658$as_echo_n "checking for cos in -lm... " >&6; } 18659if ${ac_cv_lib_m_cos+:} false; then : 18660 $as_echo_n "(cached) " >&6 18661else 18662 ac_check_lib_save_LIBS=$LIBS 18663LIBS="-lm $LIBS" 18664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18665/* end confdefs.h. */ 18666 18667/* Override any GCC internal prototype to avoid an error. 18668 Use char because int might match the return type of a GCC 18669 builtin and then its argument prototype would still apply. */ 18670#ifdef __cplusplus 18671extern "C" 18672#endif 18673char cos (); 18674int 18675main () 18676{ 18677return cos (); 18678 ; 18679 return 0; 18680} 18681_ACEOF 18682if ac_fn_c_try_link "$LINENO"; then : 18683 ac_cv_lib_m_cos=yes 18684else 18685 ac_cv_lib_m_cos=no 18686fi 18687rm -f core conftest.err conftest.$ac_objext \ 18688 conftest$ac_exeext conftest.$ac_ext 18689LIBS=$ac_check_lib_save_LIBS 18690fi 18691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18692$as_echo "$ac_cv_lib_m_cos" >&6; } 18693if test "x$ac_cv_lib_m_cos" = xyes; then : 18694 LIBM=-lm 18695fi 18696 18697 ;; 18698esac 18699 18700 18701 18702# ------------------------------------------------------------------------------ 18703 18704# TODO: the old python checks are irrelevant, but we do need python and perl for tests 18705 18706# ------------------------------------------------------------------------------ 18707# Set paths here 18708 18709 18710# Check whether --with-rootprefix was given. 18711if test "${with_rootprefix+set}" = set; then : 18712 withval=$with_rootprefix; 18713else 18714 with_rootprefix="\${prefix}" 18715 18716fi 18717 18718 18719 18720# Check whether --with-rootlibdir was given. 18721if test "${with_rootlibdir+set}" = set; then : 18722 withval=$with_rootlibdir; 18723else 18724 with_rootlibdir=${libdir} 18725 18726fi 18727 18728 18729 18730# Check whether --with-rootlibexecdir was given. 18731if test "${with_rootlibexecdir+set}" = set; then : 18732 withval=$with_rootlibexecdir; 18733else 18734 with_rootlibexecdir=${with_rootlibdir}/udev 18735 18736fi 18737 18738 18739 18740# Check whether --with-rootrundir was given. 18741if test "${with_rootrundir+set}" = set; then : 18742 withval=$with_rootrundir; 18743else 18744 with_rootrundir=/run 18745 18746fi 18747 18748 18749# Check whether --enable-split-usr was given. 18750if test "${enable_split_usr+set}" = set; then : 18751 enableval=$enable_split_usr; 18752else 18753 if test "x${ac_default_prefix}" != "x${with_rootprefix}" && test "x${with_rootprefix}" != "x\${prefix}"; then : 18754 enable_split_usr=yes 18755else 18756 enable_split_usr=no 18757fi 18758 18759fi 18760 18761 18762if test "x${enable_split_usr}" = "xyes"; then : 18763 18764$as_echo "#define HAVE_SPLIT_USR 1" >>confdefs.h 18765 18766 18767fi 18768 18769# Configured paths 18770rootprefix=${with_rootprefix} 18771 18772rootlibdir=${with_rootlibdir} 18773 18774rootlibexecdir=${with_rootlibexecdir} 18775 18776udevlibexecdir=${rootlibexecdir} 18777 18778 18779# sysconfdir paths 18780udevconfdir=${sysconfdir}/udev 18781 18782udevconffile=${udevconfdir}/udev.conf 18783 18784udevhwdbdir=${udevconfdir}/hwdb.d 18785 18786udevhwdbbin=${udevconfdir}/hwdb.bin 18787 18788 18789# udevlibexecdir paths 18790udevkeymapdir=${udevlibexecdir}/keymaps 18791 18792udevkeymapforceredir=${udevkeymapdir}/force-release 18793 18794udevrulesdir=${udevlibexecdir}/rules.d 18795 18796 18797# pkgconfigdir paths 18798pkgconfiglibdir=${libdir}/pkgconfig 18799 18800sharepkgconfigdir=${datadir}/pkgconfig 18801 18802 18803# introspection paths 18804girdir=${datadir}/gir-1.0 18805 18806typelibsdir=${libdir}/girepository-1.0 18807 18808 18809rootrundir=${with_rootrundir} 18810 18811 18812# ------------------------------------------------------------------------------ 18813 18814 18815 18816 18817 18818 18819 18820 18821if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18822 if test -n "$ac_tool_prefix"; then 18823 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18824set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18826$as_echo_n "checking for $ac_word... " >&6; } 18827if ${ac_cv_path_PKG_CONFIG+:} false; then : 18828 $as_echo_n "(cached) " >&6 18829else 18830 case $PKG_CONFIG in 18831 [\\/]* | ?:[\\/]*) 18832 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18833 ;; 18834 *) 18835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18836for as_dir in $PATH 18837do 18838 IFS=$as_save_IFS 18839 test -z "$as_dir" && as_dir=. 18840 for ac_exec_ext in '' $ac_executable_extensions; do 18841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18842 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18844 break 2 18845 fi 18846done 18847 done 18848IFS=$as_save_IFS 18849 18850 ;; 18851esac 18852fi 18853PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18854if test -n "$PKG_CONFIG"; then 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18856$as_echo "$PKG_CONFIG" >&6; } 18857else 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18859$as_echo "no" >&6; } 18860fi 18861 18862 18863fi 18864if test -z "$ac_cv_path_PKG_CONFIG"; then 18865 ac_pt_PKG_CONFIG=$PKG_CONFIG 18866 # Extract the first word of "pkg-config", so it can be a program name with args. 18867set dummy pkg-config; ac_word=$2 18868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18869$as_echo_n "checking for $ac_word... " >&6; } 18870if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18871 $as_echo_n "(cached) " >&6 18872else 18873 case $ac_pt_PKG_CONFIG in 18874 [\\/]* | ?:[\\/]*) 18875 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18876 ;; 18877 *) 18878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18879for as_dir in $PATH 18880do 18881 IFS=$as_save_IFS 18882 test -z "$as_dir" && as_dir=. 18883 for ac_exec_ext in '' $ac_executable_extensions; do 18884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18887 break 2 18888 fi 18889done 18890 done 18891IFS=$as_save_IFS 18892 18893 ;; 18894esac 18895fi 18896ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18897if test -n "$ac_pt_PKG_CONFIG"; then 18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18899$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18900else 18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18902$as_echo "no" >&6; } 18903fi 18904 18905 if test "x$ac_pt_PKG_CONFIG" = x; then 18906 PKG_CONFIG="" 18907 else 18908 case $cross_compiling:$ac_tool_warned in 18909yes:) 18910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18912ac_tool_warned=yes ;; 18913esac 18914 PKG_CONFIG=$ac_pt_PKG_CONFIG 18915 fi 18916else 18917 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18918fi 18919 18920fi 18921if test -n "$PKG_CONFIG"; then 18922 _pkg_min_version=0.9.0 18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18924$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18925 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18927$as_echo "yes" >&6; } 18928 else 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18930$as_echo "no" >&6; } 18931 PKG_CONFIG="" 18932 fi 18933fi 18934 18935 18936 18937 # Check whether --enable-introspection was given. 18938if test "${enable_introspection+set}" = set; then : 18939 enableval=$enable_introspection; 18940else 18941 enable_introspection=auto 18942fi 18943 18944 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 18946$as_echo_n "checking for gobject-introspection... " >&6; } 18947 18948 case $enable_introspection in #( 18949 no) : 18950 found_introspection="no (disabled, use --enable-introspection to enable)" 18951 ;; #( 18952 yes) : 18953 if test -n "$PKG_CONFIG" && \ 18954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 18955 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 18956 ac_status=$? 18957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18958 test $ac_status = 0; }; then 18959 : 18960else 18961 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 18962fi 18963 if test -n "$PKG_CONFIG" && \ 18964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5 18965 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5 18966 ac_status=$? 18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18968 test $ac_status = 0; }; then 18969 found_introspection=yes 18970else 18971 as_fn_error $? "You need to have gobject-introspection >= 1.31.1 installed to build eudev" "$LINENO" 5 18972fi 18973 ;; #( 18974 auto) : 18975 if test -n "$PKG_CONFIG" && \ 18976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5 18977 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5 18978 ac_status=$? 18979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18980 test $ac_status = 0; }; then 18981 found_introspection=yes 18982else 18983 found_introspection=no 18984fi 18985 enable_introspection=$found_introspection 18986 ;; #( 18987 *) : 18988 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 18989 ;; 18990esac 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 18992$as_echo "$found_introspection" >&6; } 18993 18994 INTROSPECTION_SCANNER= 18995 INTROSPECTION_COMPILER= 18996 INTROSPECTION_GENERATE= 18997 INTROSPECTION_GIRDIR= 18998 INTROSPECTION_TYPELIBDIR= 18999 if test "x$found_introspection" = "xyes"; then 19000 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 19001 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 19002 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 19003 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 19004 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 19005 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 19006 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 19007 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 19008 fi 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 if test "x$found_introspection" = "xyes"; then 19019 HAVE_INTROSPECTION_TRUE= 19020 HAVE_INTROSPECTION_FALSE='#' 19021else 19022 HAVE_INTROSPECTION_TRUE='#' 19023 HAVE_INTROSPECTION_FALSE= 19024fi 19025 19026 19027 19028 if test "$enable_introspection" = "yes"; then 19029 HAVE_INTROSPECTION_TRUE= 19030 HAVE_INTROSPECTION_FALSE='#' 19031else 19032 HAVE_INTROSPECTION_TRUE='#' 19033 HAVE_INTROSPECTION_FALSE= 19034fi 19035 19036 19037# ------------------------------------------------------------------------------ 19038# Check whether --enable-programs was given. 19039if test "${enable_programs+set}" = set; then : 19040 enableval=$enable_programs; 19041else 19042 enable_programs="yes" 19043fi 19044 19045 if test "x$enable_programs" = "xyes"; then 19046 ENABLE_PROGRAMS_TRUE= 19047 ENABLE_PROGRAMS_FALSE='#' 19048else 19049 ENABLE_PROGRAMS_TRUE='#' 19050 ENABLE_PROGRAMS_FALSE= 19051fi 19052 19053 19054# ------------------------------------------------------------------------------ 19055have_blkid=no 19056# Check whether --enable-blkid was given. 19057if test "${enable_blkid+set}" = set; then : 19058 enableval=$enable_blkid; 19059fi 19060 19061if test "x$enable_blkid" != "xno"; then 19062 19063pkg_failed=no 19064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.20" >&5 19065$as_echo_n "checking for blkid >= 2.20... " >&6; } 19066 19067if test -n "$BLKID_CFLAGS"; then 19068 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS" 19069 elif test -n "$PKG_CONFIG"; then 19070 if test -n "$PKG_CONFIG" && \ 19071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.20\""; } >&5 19072 ($PKG_CONFIG --exists --print-errors "blkid >= 2.20") 2>&5 19073 ac_status=$? 19074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19075 test $ac_status = 0; }; then 19076 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.20" 2>/dev/null` 19077 test "x$?" != "x0" && pkg_failed=yes 19078else 19079 pkg_failed=yes 19080fi 19081 else 19082 pkg_failed=untried 19083fi 19084if test -n "$BLKID_LIBS"; then 19085 pkg_cv_BLKID_LIBS="$BLKID_LIBS" 19086 elif test -n "$PKG_CONFIG"; then 19087 if test -n "$PKG_CONFIG" && \ 19088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.20\""; } >&5 19089 ($PKG_CONFIG --exists --print-errors "blkid >= 2.20") 2>&5 19090 ac_status=$? 19091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19092 test $ac_status = 0; }; then 19093 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.20" 2>/dev/null` 19094 test "x$?" != "x0" && pkg_failed=yes 19095else 19096 pkg_failed=yes 19097fi 19098 else 19099 pkg_failed=untried 19100fi 19101 19102 19103 19104if test $pkg_failed = yes; then 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19106$as_echo "no" >&6; } 19107 19108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19109 _pkg_short_errors_supported=yes 19110else 19111 _pkg_short_errors_supported=no 19112fi 19113 if test $_pkg_short_errors_supported = yes; then 19114 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.20" 2>&1` 19115 else 19116 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.20" 2>&1` 19117 fi 19118 # Put the nasty error message in config.log where it belongs 19119 echo "$BLKID_PKG_ERRORS" >&5 19120 19121 have_blkid=no 19122elif test $pkg_failed = untried; then 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19124$as_echo "no" >&6; } 19125 have_blkid=no 19126else 19127 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS 19128 BLKID_LIBS=$pkg_cv_BLKID_LIBS 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19130$as_echo "yes" >&6; } 19131 19132$as_echo "#define HAVE_BLKID 1" >>confdefs.h 19133 have_blkid=yes 19134fi 19135 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then 19136 as_fn_error $? "*** blkid support requested but not found" "$LINENO" 5 19137 fi 19138fi 19139 if test "x$have_blkid" = "xyes"; then 19140 HAVE_BLKID_TRUE= 19141 HAVE_BLKID_FALSE='#' 19142else 19143 HAVE_BLKID_TRUE='#' 19144 HAVE_BLKID_FALSE= 19145fi 19146 19147 19148# ------------------------------------------------------------------------------ 19149have_selinux=no 19150# Check whether --enable-selinux was given. 19151if test "${enable_selinux+set}" = set; then : 19152 enableval=$enable_selinux; 19153fi 19154 19155if test "x$enable_selinux" != "xno"; then 19156 19157pkg_failed=no 19158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libselinux >= 2.1.9" >&5 19159$as_echo_n "checking for libselinux >= 2.1.9... " >&6; } 19160 19161if test -n "$SELINUX_CFLAGS"; then 19162 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 19163 elif test -n "$PKG_CONFIG"; then 19164 if test -n "$PKG_CONFIG" && \ 19165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.1.9\""; } >&5 19166 ($PKG_CONFIG --exists --print-errors "libselinux >= 2.1.9") 2>&5 19167 ac_status=$? 19168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19169 test $ac_status = 0; }; then 19170 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= 2.1.9" 2>/dev/null` 19171 test "x$?" != "x0" && pkg_failed=yes 19172else 19173 pkg_failed=yes 19174fi 19175 else 19176 pkg_failed=untried 19177fi 19178if test -n "$SELINUX_LIBS"; then 19179 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 19180 elif test -n "$PKG_CONFIG"; then 19181 if test -n "$PKG_CONFIG" && \ 19182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.1.9\""; } >&5 19183 ($PKG_CONFIG --exists --print-errors "libselinux >= 2.1.9") 2>&5 19184 ac_status=$? 19185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19186 test $ac_status = 0; }; then 19187 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= 2.1.9" 2>/dev/null` 19188 test "x$?" != "x0" && pkg_failed=yes 19189else 19190 pkg_failed=yes 19191fi 19192 else 19193 pkg_failed=untried 19194fi 19195 19196 19197 19198if test $pkg_failed = yes; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19200$as_echo "no" >&6; } 19201 19202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19203 _pkg_short_errors_supported=yes 19204else 19205 _pkg_short_errors_supported=no 19206fi 19207 if test $_pkg_short_errors_supported = yes; then 19208 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= 2.1.9" 2>&1` 19209 else 19210 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= 2.1.9" 2>&1` 19211 fi 19212 # Put the nasty error message in config.log where it belongs 19213 echo "$SELINUX_PKG_ERRORS" >&5 19214 19215 have_selinux=no 19216elif test $pkg_failed = untried; then 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19218$as_echo "no" >&6; } 19219 have_selinux=no 19220else 19221 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 19222 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19224$as_echo "yes" >&6; } 19225 19226$as_echo "#define HAVE_SELINUX 1" >>confdefs.h 19227 have_selinux=yes 19228fi 19229 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then 19230 as_fn_error $? "*** SELinux support requested but libraries not found" "$LINENO" 5 19231 fi 19232fi 19233 if test "$have_selinux" = "yes"; then 19234 HAVE_SELINUX_TRUE= 19235 HAVE_SELINUX_FALSE='#' 19236else 19237 HAVE_SELINUX_TRUE='#' 19238 HAVE_SELINUX_FALSE= 19239fi 19240 19241if test "x${have_selinux}" != xno ; then 19242 sushell=/sbin/sushell 19243else 19244 sushell=/bin/bash 19245fi 19246 19247 19248# selinux-util.c uses struct mallinfo which is not available for all C libraries (musl). 19249for ac_func in mallinfo 19250do : 19251 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" 19252if test "x$ac_cv_func_mallinfo" = xyes; then : 19253 cat >>confdefs.h <<_ACEOF 19254#define HAVE_MALLINFO 1 19255_ACEOF 19256 19257fi 19258done 19259 19260 19261# ------------------------------------------------------------------------------ 19262 19263ac_fn_c_check_decl "$LINENO" "unshare" "ac_cv_have_decl_unshare" "#include <sched.h> 19264" 19265if test "x$ac_cv_have_decl_unshare" = xyes; then : 19266 19267$as_echo "#define HAVE_UNSHARE 1" >>confdefs.h 19268 19269else 19270 ac_fn_c_check_decl "$LINENO" "SYS_unshare" "ac_cv_have_decl_SYS_unshare" "#include <syscall.h> 19271" 19272if test "x$ac_cv_have_decl_SYS_unshare" = xyes; then : 19273 19274else 19275 as_fn_error $? "*** unshare nor SYS_unshare found." "$LINENO" 5 19276fi 19277 19278fi 19279 19280 19281# ------------------------------------------------------------------------------ 19282if test -n "$ac_tool_prefix"; then 19283 # Extract the first word of "${ac_tool_prefix}gperf", so it can be a program name with args. 19284set dummy ${ac_tool_prefix}gperf; ac_word=$2 19285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19286$as_echo_n "checking for $ac_word... " >&6; } 19287if ${ac_cv_path_GPERF+:} false; then : 19288 $as_echo_n "(cached) " >&6 19289else 19290 case $GPERF in 19291 [\\/]* | ?:[\\/]*) 19292 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path. 19293 ;; 19294 *) 19295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19296for as_dir in $PATH 19297do 19298 IFS=$as_save_IFS 19299 test -z "$as_dir" && as_dir=. 19300 for ac_exec_ext in '' $ac_executable_extensions; do 19301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19302 ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext" 19303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19304 break 2 19305 fi 19306done 19307 done 19308IFS=$as_save_IFS 19309 19310 ;; 19311esac 19312fi 19313GPERF=$ac_cv_path_GPERF 19314if test -n "$GPERF"; then 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 19316$as_echo "$GPERF" >&6; } 19317else 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19319$as_echo "no" >&6; } 19320fi 19321 19322 19323fi 19324if test -z "$ac_cv_path_GPERF"; then 19325 ac_pt_GPERF=$GPERF 19326 # Extract the first word of "gperf", so it can be a program name with args. 19327set dummy gperf; ac_word=$2 19328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19329$as_echo_n "checking for $ac_word... " >&6; } 19330if ${ac_cv_path_ac_pt_GPERF+:} false; then : 19331 $as_echo_n "(cached) " >&6 19332else 19333 case $ac_pt_GPERF in 19334 [\\/]* | ?:[\\/]*) 19335 ac_cv_path_ac_pt_GPERF="$ac_pt_GPERF" # Let the user override the test with a path. 19336 ;; 19337 *) 19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19339for as_dir in $PATH 19340do 19341 IFS=$as_save_IFS 19342 test -z "$as_dir" && as_dir=. 19343 for ac_exec_ext in '' $ac_executable_extensions; do 19344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19345 ac_cv_path_ac_pt_GPERF="$as_dir/$ac_word$ac_exec_ext" 19346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19347 break 2 19348 fi 19349done 19350 done 19351IFS=$as_save_IFS 19352 19353 ;; 19354esac 19355fi 19356ac_pt_GPERF=$ac_cv_path_ac_pt_GPERF 19357if test -n "$ac_pt_GPERF"; then 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPERF" >&5 19359$as_echo "$ac_pt_GPERF" >&6; } 19360else 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19362$as_echo "no" >&6; } 19363fi 19364 19365 if test "x$ac_pt_GPERF" = x; then 19366 GPERF="" 19367 else 19368 case $cross_compiling:$ac_tool_warned in 19369yes:) 19370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19372ac_tool_warned=yes ;; 19373esac 19374 GPERF=$ac_pt_GPERF 19375 fi 19376else 19377 GPERF="$ac_cv_path_GPERF" 19378fi 19379 19380if test -z "$GPERF" ; then 19381 as_fn_error $? "*** gperf not found" "$LINENO" 5 19382fi 19383 19384# ------------------------------------------------------------------------------ 19385# Check whether --enable-manpages was given. 19386if test "${enable_manpages+set}" = set; then : 19387 enableval=$enable_manpages; 19388else 19389 enable_manpages=no 19390fi 19391 19392 if test "x$enable_manpages" = "xyes"; then 19393 ENABLE_MANPAGES_TRUE= 19394 ENABLE_MANPAGES_FALSE='#' 19395else 19396 ENABLE_MANPAGES_TRUE='#' 19397 ENABLE_MANPAGES_FALSE= 19398fi 19399 19400 19401# ------------------------------------------------------------------------------ 19402have_kmod=no 19403# Check whether --enable-kmod was given. 19404if test "${enable_kmod+set}" = set; then : 19405 enableval=$enable_kmod; 19406fi 19407 19408if test "x$enable_kmod" != "xno"; then 19409 if test -n "$PKG_CONFIG" && \ 19410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libkmod \""; } >&5 19411 ($PKG_CONFIG --exists --print-errors " libkmod ") 2>&5 19412 ac_status=$? 19413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19414 test $ac_status = 0; }; then 19415 have_kmod=yes 19416else 19417 have_kmod=no 19418fi 19419 if test "x$have_kmod" = "xyes"; then 19420 19421pkg_failed=no 19422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libkmod >= 15 " >&5 19423$as_echo_n "checking for libkmod >= 15 ... " >&6; } 19424 19425if test -n "$KMOD_CFLAGS"; then 19426 pkg_cv_KMOD_CFLAGS="$KMOD_CFLAGS" 19427 elif test -n "$PKG_CONFIG"; then 19428 if test -n "$PKG_CONFIG" && \ 19429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libkmod >= 15 \""; } >&5 19430 ($PKG_CONFIG --exists --print-errors " libkmod >= 15 ") 2>&5 19431 ac_status=$? 19432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19433 test $ac_status = 0; }; then 19434 pkg_cv_KMOD_CFLAGS=`$PKG_CONFIG --cflags " libkmod >= 15 " 2>/dev/null` 19435 test "x$?" != "x0" && pkg_failed=yes 19436else 19437 pkg_failed=yes 19438fi 19439 else 19440 pkg_failed=untried 19441fi 19442if test -n "$KMOD_LIBS"; then 19443 pkg_cv_KMOD_LIBS="$KMOD_LIBS" 19444 elif test -n "$PKG_CONFIG"; then 19445 if test -n "$PKG_CONFIG" && \ 19446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libkmod >= 15 \""; } >&5 19447 ($PKG_CONFIG --exists --print-errors " libkmod >= 15 ") 2>&5 19448 ac_status=$? 19449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19450 test $ac_status = 0; }; then 19451 pkg_cv_KMOD_LIBS=`$PKG_CONFIG --libs " libkmod >= 15 " 2>/dev/null` 19452 test "x$?" != "x0" && pkg_failed=yes 19453else 19454 pkg_failed=yes 19455fi 19456 else 19457 pkg_failed=untried 19458fi 19459 19460 19461 19462if test $pkg_failed = yes; then 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19464$as_echo "no" >&6; } 19465 19466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19467 _pkg_short_errors_supported=yes 19468else 19469 _pkg_short_errors_supported=no 19470fi 19471 if test $_pkg_short_errors_supported = yes; then 19472 KMOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libkmod >= 15 " 2>&1` 19473 else 19474 KMOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libkmod >= 15 " 2>&1` 19475 fi 19476 # Put the nasty error message in config.log where it belongs 19477 echo "$KMOD_PKG_ERRORS" >&5 19478 19479 as_fn_error $? "*** kmod version >= 15 not found" "$LINENO" 5 19480elif test $pkg_failed = untried; then 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19482$as_echo "no" >&6; } 19483 as_fn_error $? "*** kmod version >= 15 not found" "$LINENO" 5 19484else 19485 KMOD_CFLAGS=$pkg_cv_KMOD_CFLAGS 19486 KMOD_LIBS=$pkg_cv_KMOD_LIBS 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19488$as_echo "yes" >&6; } 19489 19490$as_echo "#define HAVE_KMOD 1" >>confdefs.h 19491 19492fi 19493 fi 19494 if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then 19495 as_fn_error $? "*** kmod support requested, but libraries not found" "$LINENO" 5 19496 fi 19497fi 19498 if test "$have_kmod" = "yes"; then 19499 HAVE_KMOD_TRUE= 19500 HAVE_KMOD_FALSE='#' 19501else 19502 HAVE_KMOD_TRUE='#' 19503 HAVE_KMOD_FALSE= 19504fi 19505 19506 19507# ------------------------------------------------------------------------------ 19508 19509# Check whether --enable-hwdb was given. 19510if test "${enable_hwdb+set}" = set; then : 19511 enableval=$enable_hwdb; 19512else 19513 enable_hwdb=yes 19514fi 19515 19516 if test "x$enable_hwdb" = "xyes"; then 19517 ENABLE_HWDB_TRUE= 19518 ENABLE_HWDB_FALSE='#' 19519else 19520 ENABLE_HWDB_TRUE='#' 19521 ENABLE_HWDB_FALSE= 19522fi 19523 19524 19525# ------------------------------------------------------------------------------ 19526# rule-generator - persistent network and optical device rule generator 19527# ------------------------------------------------------------------------------ 19528# Check whether --enable-rule-generator was given. 19529if test "${enable_rule_generator+set}" = set; then : 19530 enableval=$enable_rule_generator; 19531else 19532 enable_rule_generator=no 19533fi 19534 19535 19536if test "x${enable_rule_generator}" != xno; then 19537 19538$as_echo "#define ENABLE_RULE_GENERATOR 1" >>confdefs.h 19539 19540fi 19541 19542 if test "x$enable_rule_generator" = xyes; then 19543 ENABLE_RULE_GENERATOR_TRUE= 19544 ENABLE_RULE_GENERATOR_FALSE='#' 19545else 19546 ENABLE_RULE_GENERATOR_TRUE='#' 19547 ENABLE_RULE_GENERATOR_FALSE= 19548fi 19549 19550 19551# ------------------------------------------------------------------------------ 19552# mtd_probe - autoloads FTL module for mtd devices 19553# ------------------------------------------------------------------------------ 19554# Check whether --enable-mtd_probe was given. 19555if test "${enable_mtd_probe+set}" = set; then : 19556 enableval=$enable_mtd_probe; 19557else 19558 enable_mtd_probe=yes 19559fi 19560 19561 if test "x$enable_mtd_probe" = xyes; then 19562 ENABLE_MTD_PROBE_TRUE= 19563 ENABLE_MTD_PROBE_FALSE='#' 19564else 19565 ENABLE_MTD_PROBE_TRUE='#' 19566 ENABLE_MTD_PROBE_FALSE= 19567fi 19568 19569 19570# ------------------------------------------------------------------------------ 19571 19572ac_config_files="$ac_config_files Makefile hwdb/Makefile man/Makefile rule_generator/Makefile rule_generator/write_net_rules rules/Makefile rules/64-btrfs.rules src/Makefile src/ata_id/Makefile src/cdrom_id/Makefile src/collect/Makefile src/mtd_probe/Makefile src/scsi_id/Makefile src/v4l_id/Makefile src/shared/Makefile src/libudev/Makefile src/libudev/libudev.pc src/udev/Makefile src/udev/udev.pc test/Makefile" 19573 19574 19575cat >confcache <<\_ACEOF 19576# This file is a shell script that caches the results of configure 19577# tests run on this system so they can be shared between configure 19578# scripts and configure runs, see configure's option --config-cache. 19579# It is not useful on other systems. If it contains results you don't 19580# want to keep, you may remove or edit it. 19581# 19582# config.status only pays attention to the cache file if you give it 19583# the --recheck option to rerun configure. 19584# 19585# `ac_cv_env_foo' variables (set or unset) will be overridden when 19586# loading this file, other *unset* `ac_cv_foo' will be assigned the 19587# following values. 19588 19589_ACEOF 19590 19591# The following way of writing the cache mishandles newlines in values, 19592# but we know of no workaround that is simple, portable, and efficient. 19593# So, we kill variables containing newlines. 19594# Ultrix sh set writes to stderr and can't be redirected directly, 19595# and sets the high bit in the cache file unless we assign to the vars. 19596( 19597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19598 eval ac_val=\$$ac_var 19599 case $ac_val in #( 19600 *${as_nl}*) 19601 case $ac_var in #( 19602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19604 esac 19605 case $ac_var in #( 19606 _ | IFS | as_nl) ;; #( 19607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19608 *) { eval $ac_var=; unset $ac_var;} ;; 19609 esac ;; 19610 esac 19611 done 19612 19613 (set) 2>&1 | 19614 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19615 *${as_nl}ac_space=\ *) 19616 # `set' does not quote correctly, so add quotes: double-quote 19617 # substitution turns \\\\ into \\, and sed turns \\ into \. 19618 sed -n \ 19619 "s/'/'\\\\''/g; 19620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19621 ;; #( 19622 *) 19623 # `set' quotes correctly as required by POSIX, so do not add quotes. 19624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19625 ;; 19626 esac | 19627 sort 19628) | 19629 sed ' 19630 /^ac_cv_env_/b end 19631 t clear 19632 :clear 19633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19634 t end 19635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19636 :end' >>confcache 19637if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19638 if test -w "$cache_file"; then 19639 if test "x$cache_file" != "x/dev/null"; then 19640 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19641$as_echo "$as_me: updating cache $cache_file" >&6;} 19642 if test ! -f "$cache_file" || test -h "$cache_file"; then 19643 cat confcache >"$cache_file" 19644 else 19645 case $cache_file in #( 19646 */* | ?:*) 19647 mv -f confcache "$cache_file"$$ && 19648 mv -f "$cache_file"$$ "$cache_file" ;; #( 19649 *) 19650 mv -f confcache "$cache_file" ;; 19651 esac 19652 fi 19653 fi 19654 else 19655 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19656$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19657 fi 19658fi 19659rm -f confcache 19660 19661test "x$prefix" = xNONE && prefix=$ac_default_prefix 19662# Let make expand exec_prefix. 19663test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19664 19665DEFS=-DHAVE_CONFIG_H 19666 19667ac_libobjs= 19668ac_ltlibobjs= 19669U= 19670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19671 # 1. Remove the extension, and $U if already installed. 19672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19675 # will be set to the directory where LIBOBJS objects are built. 19676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19678done 19679LIBOBJS=$ac_libobjs 19680 19681LTLIBOBJS=$ac_ltlibobjs 19682 19683 19684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19685$as_echo_n "checking that generated files are newer than configure... " >&6; } 19686 if test -n "$am_sleep_pid"; then 19687 # Hide warnings about reused PIDs. 19688 wait $am_sleep_pid 2>/dev/null 19689 fi 19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19691$as_echo "done" >&6; } 19692if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19693 as_fn_error $? "conditional \"AMDEP\" was never defined. 19694Usually this means the macro was only invoked conditionally." "$LINENO" 5 19695fi 19696if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19698Usually this means the macro was only invoked conditionally." "$LINENO" 5 19699fi 19700 if test -n "$EXEEXT"; then 19701 am__EXEEXT_TRUE= 19702 am__EXEEXT_FALSE='#' 19703else 19704 am__EXEEXT_TRUE='#' 19705 am__EXEEXT_FALSE= 19706fi 19707 19708if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19709 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19710Usually this means the macro was only invoked conditionally." "$LINENO" 5 19711fi 19712if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 19713 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 19714Usually this means the macro was only invoked conditionally." "$LINENO" 5 19715fi 19716if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 19717 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 19718Usually this means the macro was only invoked conditionally." "$LINENO" 5 19719fi 19720if test -z "${ENABLE_PROGRAMS_TRUE}" && test -z "${ENABLE_PROGRAMS_FALSE}"; then 19721 as_fn_error $? "conditional \"ENABLE_PROGRAMS\" was never defined. 19722Usually this means the macro was only invoked conditionally." "$LINENO" 5 19723fi 19724if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then 19725 as_fn_error $? "conditional \"HAVE_BLKID\" was never defined. 19726Usually this means the macro was only invoked conditionally." "$LINENO" 5 19727fi 19728if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then 19729 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined. 19730Usually this means the macro was only invoked conditionally." "$LINENO" 5 19731fi 19732if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then 19733 as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined. 19734Usually this means the macro was only invoked conditionally." "$LINENO" 5 19735fi 19736if test -z "${HAVE_KMOD_TRUE}" && test -z "${HAVE_KMOD_FALSE}"; then 19737 as_fn_error $? "conditional \"HAVE_KMOD\" was never defined. 19738Usually this means the macro was only invoked conditionally." "$LINENO" 5 19739fi 19740if test -z "${ENABLE_HWDB_TRUE}" && test -z "${ENABLE_HWDB_FALSE}"; then 19741 as_fn_error $? "conditional \"ENABLE_HWDB\" was never defined. 19742Usually this means the macro was only invoked conditionally." "$LINENO" 5 19743fi 19744if test -z "${ENABLE_RULE_GENERATOR_TRUE}" && test -z "${ENABLE_RULE_GENERATOR_FALSE}"; then 19745 as_fn_error $? "conditional \"ENABLE_RULE_GENERATOR\" was never defined. 19746Usually this means the macro was only invoked conditionally." "$LINENO" 5 19747fi 19748if test -z "${ENABLE_MTD_PROBE_TRUE}" && test -z "${ENABLE_MTD_PROBE_FALSE}"; then 19749 as_fn_error $? "conditional \"ENABLE_MTD_PROBE\" was never defined. 19750Usually this means the macro was only invoked conditionally." "$LINENO" 5 19751fi 19752 19753: "${CONFIG_STATUS=./config.status}" 19754ac_write_fail=0 19755ac_clean_files_save=$ac_clean_files 19756ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19757{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19758$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19759as_write_fail=0 19760cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19761#! $SHELL 19762# Generated by $as_me. 19763# Run this file to recreate the current configuration. 19764# Compiler output produced by configure, useful for debugging 19765# configure, is in config.log if it exists. 19766 19767debug=false 19768ac_cs_recheck=false 19769ac_cs_silent=false 19770 19771SHELL=\${CONFIG_SHELL-$SHELL} 19772export SHELL 19773_ASEOF 19774cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19775## -------------------- ## 19776## M4sh Initialization. ## 19777## -------------------- ## 19778 19779# Be more Bourne compatible 19780DUALCASE=1; export DUALCASE # for MKS sh 19781if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19782 emulate sh 19783 NULLCMD=: 19784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19785 # is contrary to our usage. Disable this feature. 19786 alias -g '${1+"$@"}'='"$@"' 19787 setopt NO_GLOB_SUBST 19788else 19789 case `(set -o) 2>/dev/null` in #( 19790 *posix*) : 19791 set -o posix ;; #( 19792 *) : 19793 ;; 19794esac 19795fi 19796 19797 19798as_nl=' 19799' 19800export as_nl 19801# Printing a long string crashes Solaris 7 /usr/bin/printf. 19802as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19805# Prefer a ksh shell builtin over an external printf program on Solaris, 19806# but without wasting forks for bash or zsh. 19807if test -z "$BASH_VERSION$ZSH_VERSION" \ 19808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19809 as_echo='print -r --' 19810 as_echo_n='print -rn --' 19811elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19812 as_echo='printf %s\n' 19813 as_echo_n='printf %s' 19814else 19815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19817 as_echo_n='/usr/ucb/echo -n' 19818 else 19819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19820 as_echo_n_body='eval 19821 arg=$1; 19822 case $arg in #( 19823 *"$as_nl"*) 19824 expr "X$arg" : "X\\(.*\\)$as_nl"; 19825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19826 esac; 19827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19828 ' 19829 export as_echo_n_body 19830 as_echo_n='sh -c $as_echo_n_body as_echo' 19831 fi 19832 export as_echo_body 19833 as_echo='sh -c $as_echo_body as_echo' 19834fi 19835 19836# The user is always right. 19837if test "${PATH_SEPARATOR+set}" != set; then 19838 PATH_SEPARATOR=: 19839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19841 PATH_SEPARATOR=';' 19842 } 19843fi 19844 19845 19846# IFS 19847# We need space, tab and new line, in precisely that order. Quoting is 19848# there to prevent editors from complaining about space-tab. 19849# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19850# splitting by setting IFS to empty value.) 19851IFS=" "" $as_nl" 19852 19853# Find who we are. Look in the path if we contain no directory separator. 19854as_myself= 19855case $0 in #(( 19856 *[\\/]* ) as_myself=$0 ;; 19857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19858for as_dir in $PATH 19859do 19860 IFS=$as_save_IFS 19861 test -z "$as_dir" && as_dir=. 19862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19863 done 19864IFS=$as_save_IFS 19865 19866 ;; 19867esac 19868# We did not find ourselves, most probably we were run as `sh COMMAND' 19869# in which case we are not to be found in the path. 19870if test "x$as_myself" = x; then 19871 as_myself=$0 19872fi 19873if test ! -f "$as_myself"; then 19874 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19875 exit 1 19876fi 19877 19878# Unset variables that we do not need and which cause bugs (e.g. in 19879# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19880# suppresses any "Segmentation fault" message there. '((' could 19881# trigger a bug in pdksh 5.2.14. 19882for as_var in BASH_ENV ENV MAIL MAILPATH 19883do eval test x\${$as_var+set} = xset \ 19884 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19885done 19886PS1='$ ' 19887PS2='> ' 19888PS4='+ ' 19889 19890# NLS nuisances. 19891LC_ALL=C 19892export LC_ALL 19893LANGUAGE=C 19894export LANGUAGE 19895 19896# CDPATH. 19897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19898 19899 19900# as_fn_error STATUS ERROR [LINENO LOG_FD] 19901# ---------------------------------------- 19902# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19903# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19904# script with STATUS, using 1 if that was 0. 19905as_fn_error () 19906{ 19907 as_status=$1; test $as_status -eq 0 && as_status=1 19908 if test "$4"; then 19909 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19910 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19911 fi 19912 $as_echo "$as_me: error: $2" >&2 19913 as_fn_exit $as_status 19914} # as_fn_error 19915 19916 19917# as_fn_set_status STATUS 19918# ----------------------- 19919# Set $? to STATUS, without forking. 19920as_fn_set_status () 19921{ 19922 return $1 19923} # as_fn_set_status 19924 19925# as_fn_exit STATUS 19926# ----------------- 19927# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19928as_fn_exit () 19929{ 19930 set +e 19931 as_fn_set_status $1 19932 exit $1 19933} # as_fn_exit 19934 19935# as_fn_unset VAR 19936# --------------- 19937# Portably unset VAR. 19938as_fn_unset () 19939{ 19940 { eval $1=; unset $1;} 19941} 19942as_unset=as_fn_unset 19943# as_fn_append VAR VALUE 19944# ---------------------- 19945# Append the text in VALUE to the end of the definition contained in VAR. Take 19946# advantage of any shell optimizations that allow amortized linear growth over 19947# repeated appends, instead of the typical quadratic growth present in naive 19948# implementations. 19949if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19950 eval 'as_fn_append () 19951 { 19952 eval $1+=\$2 19953 }' 19954else 19955 as_fn_append () 19956 { 19957 eval $1=\$$1\$2 19958 } 19959fi # as_fn_append 19960 19961# as_fn_arith ARG... 19962# ------------------ 19963# Perform arithmetic evaluation on the ARGs, and store the result in the 19964# global $as_val. Take advantage of shells that can avoid forks. The arguments 19965# must be portable across $(()) and expr. 19966if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19967 eval 'as_fn_arith () 19968 { 19969 as_val=$(( $* )) 19970 }' 19971else 19972 as_fn_arith () 19973 { 19974 as_val=`expr "$@" || test $? -eq 1` 19975 } 19976fi # as_fn_arith 19977 19978 19979if expr a : '\(a\)' >/dev/null 2>&1 && 19980 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19981 as_expr=expr 19982else 19983 as_expr=false 19984fi 19985 19986if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19987 as_basename=basename 19988else 19989 as_basename=false 19990fi 19991 19992if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19993 as_dirname=dirname 19994else 19995 as_dirname=false 19996fi 19997 19998as_me=`$as_basename -- "$0" || 19999$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20000 X"$0" : 'X\(//\)$' \| \ 20001 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20002$as_echo X/"$0" | 20003 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20004 s//\1/ 20005 q 20006 } 20007 /^X\/\(\/\/\)$/{ 20008 s//\1/ 20009 q 20010 } 20011 /^X\/\(\/\).*/{ 20012 s//\1/ 20013 q 20014 } 20015 s/.*/./; q'` 20016 20017# Avoid depending upon Character Ranges. 20018as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20019as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20020as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20021as_cr_digits='0123456789' 20022as_cr_alnum=$as_cr_Letters$as_cr_digits 20023 20024ECHO_C= ECHO_N= ECHO_T= 20025case `echo -n x` in #((((( 20026-n*) 20027 case `echo 'xy\c'` in 20028 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20029 xy) ECHO_C='\c';; 20030 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20031 ECHO_T=' ';; 20032 esac;; 20033*) 20034 ECHO_N='-n';; 20035esac 20036 20037rm -f conf$$ conf$$.exe conf$$.file 20038if test -d conf$$.dir; then 20039 rm -f conf$$.dir/conf$$.file 20040else 20041 rm -f conf$$.dir 20042 mkdir conf$$.dir 2>/dev/null 20043fi 20044if (echo >conf$$.file) 2>/dev/null; then 20045 if ln -s conf$$.file conf$$ 2>/dev/null; then 20046 as_ln_s='ln -s' 20047 # ... but there are two gotchas: 20048 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20049 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20050 # In both cases, we have to default to `cp -pR'. 20051 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20052 as_ln_s='cp -pR' 20053 elif ln conf$$.file conf$$ 2>/dev/null; then 20054 as_ln_s=ln 20055 else 20056 as_ln_s='cp -pR' 20057 fi 20058else 20059 as_ln_s='cp -pR' 20060fi 20061rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20062rmdir conf$$.dir 2>/dev/null 20063 20064 20065# as_fn_mkdir_p 20066# ------------- 20067# Create "$as_dir" as a directory, including parents if necessary. 20068as_fn_mkdir_p () 20069{ 20070 20071 case $as_dir in #( 20072 -*) as_dir=./$as_dir;; 20073 esac 20074 test -d "$as_dir" || eval $as_mkdir_p || { 20075 as_dirs= 20076 while :; do 20077 case $as_dir in #( 20078 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20079 *) as_qdir=$as_dir;; 20080 esac 20081 as_dirs="'$as_qdir' $as_dirs" 20082 as_dir=`$as_dirname -- "$as_dir" || 20083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20084 X"$as_dir" : 'X\(//\)[^/]' \| \ 20085 X"$as_dir" : 'X\(//\)$' \| \ 20086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20087$as_echo X"$as_dir" | 20088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20089 s//\1/ 20090 q 20091 } 20092 /^X\(\/\/\)[^/].*/{ 20093 s//\1/ 20094 q 20095 } 20096 /^X\(\/\/\)$/{ 20097 s//\1/ 20098 q 20099 } 20100 /^X\(\/\).*/{ 20101 s//\1/ 20102 q 20103 } 20104 s/.*/./; q'` 20105 test -d "$as_dir" && break 20106 done 20107 test -z "$as_dirs" || eval "mkdir $as_dirs" 20108 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20109 20110 20111} # as_fn_mkdir_p 20112if mkdir -p . 2>/dev/null; then 20113 as_mkdir_p='mkdir -p "$as_dir"' 20114else 20115 test -d ./-p && rmdir ./-p 20116 as_mkdir_p=false 20117fi 20118 20119 20120# as_fn_executable_p FILE 20121# ----------------------- 20122# Test if FILE is an executable regular file. 20123as_fn_executable_p () 20124{ 20125 test -f "$1" && test -x "$1" 20126} # as_fn_executable_p 20127as_test_x='test -x' 20128as_executable_p=as_fn_executable_p 20129 20130# Sed expression to map a string onto a valid CPP name. 20131as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20132 20133# Sed expression to map a string onto a valid variable name. 20134as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20135 20136 20137exec 6>&1 20138## ----------------------------------- ## 20139## Main body of $CONFIG_STATUS script. ## 20140## ----------------------------------- ## 20141_ASEOF 20142test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20143 20144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20145# Save the log message, to keep $0 and so on meaningful, and to 20146# report actual input values of CONFIG_FILES etc. instead of their 20147# values after options handling. 20148ac_log=" 20149This file was extended by eudev $as_me 3.2.10, which was 20150generated by GNU Autoconf 2.69. Invocation command line was 20151 20152 CONFIG_FILES = $CONFIG_FILES 20153 CONFIG_HEADERS = $CONFIG_HEADERS 20154 CONFIG_LINKS = $CONFIG_LINKS 20155 CONFIG_COMMANDS = $CONFIG_COMMANDS 20156 $ $0 $@ 20157 20158on `(hostname || uname -n) 2>/dev/null | sed 1q` 20159" 20160 20161_ACEOF 20162 20163case $ac_config_files in *" 20164"*) set x $ac_config_files; shift; ac_config_files=$*;; 20165esac 20166 20167case $ac_config_headers in *" 20168"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20169esac 20170 20171 20172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20173# Files that config.status was made for. 20174config_files="$ac_config_files" 20175config_headers="$ac_config_headers" 20176config_commands="$ac_config_commands" 20177 20178_ACEOF 20179 20180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20181ac_cs_usage="\ 20182\`$as_me' instantiates files and other configuration actions 20183from templates according to the current configuration. Unless the files 20184and actions are specified as TAGs, all are instantiated by default. 20185 20186Usage: $0 [OPTION]... [TAG]... 20187 20188 -h, --help print this help, then exit 20189 -V, --version print version number and configuration settings, then exit 20190 --config print configuration, then exit 20191 -q, --quiet, --silent 20192 do not print progress messages 20193 -d, --debug don't remove temporary files 20194 --recheck update $as_me by reconfiguring in the same conditions 20195 --file=FILE[:TEMPLATE] 20196 instantiate the configuration file FILE 20197 --header=FILE[:TEMPLATE] 20198 instantiate the configuration header FILE 20199 20200Configuration files: 20201$config_files 20202 20203Configuration headers: 20204$config_headers 20205 20206Configuration commands: 20207$config_commands 20208 20209Report bugs to <https://github.com/gentoo/eudev/issues>." 20210 20211_ACEOF 20212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20213ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20214ac_cs_version="\\ 20215eudev config.status 3.2.10 20216configured by $0, generated by GNU Autoconf 2.69, 20217 with options \\"\$ac_cs_config\\" 20218 20219Copyright (C) 2012 Free Software Foundation, Inc. 20220This config.status script is free software; the Free Software Foundation 20221gives unlimited permission to copy, distribute and modify it." 20222 20223ac_pwd='$ac_pwd' 20224srcdir='$srcdir' 20225INSTALL='$INSTALL' 20226MKDIR_P='$MKDIR_P' 20227AWK='$AWK' 20228test -n "\$AWK" || AWK=awk 20229_ACEOF 20230 20231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20232# The default lists apply if the user does not specify any file. 20233ac_need_defaults=: 20234while test $# != 0 20235do 20236 case $1 in 20237 --*=?*) 20238 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20239 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20240 ac_shift=: 20241 ;; 20242 --*=) 20243 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20244 ac_optarg= 20245 ac_shift=: 20246 ;; 20247 *) 20248 ac_option=$1 20249 ac_optarg=$2 20250 ac_shift=shift 20251 ;; 20252 esac 20253 20254 case $ac_option in 20255 # Handling of the options. 20256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20257 ac_cs_recheck=: ;; 20258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20259 $as_echo "$ac_cs_version"; exit ;; 20260 --config | --confi | --conf | --con | --co | --c ) 20261 $as_echo "$ac_cs_config"; exit ;; 20262 --debug | --debu | --deb | --de | --d | -d ) 20263 debug=: ;; 20264 --file | --fil | --fi | --f ) 20265 $ac_shift 20266 case $ac_optarg in 20267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20268 '') as_fn_error $? "missing file argument" ;; 20269 esac 20270 as_fn_append CONFIG_FILES " '$ac_optarg'" 20271 ac_need_defaults=false;; 20272 --header | --heade | --head | --hea ) 20273 $ac_shift 20274 case $ac_optarg in 20275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20276 esac 20277 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20278 ac_need_defaults=false;; 20279 --he | --h) 20280 # Conflict between --help and --header 20281 as_fn_error $? "ambiguous option: \`$1' 20282Try \`$0 --help' for more information.";; 20283 --help | --hel | -h ) 20284 $as_echo "$ac_cs_usage"; exit ;; 20285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20286 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20287 ac_cs_silent=: ;; 20288 20289 # This is an error. 20290 -*) as_fn_error $? "unrecognized option: \`$1' 20291Try \`$0 --help' for more information." ;; 20292 20293 *) as_fn_append ac_config_targets " $1" 20294 ac_need_defaults=false ;; 20295 20296 esac 20297 shift 20298done 20299 20300ac_configure_extra_args= 20301 20302if $ac_cs_silent; then 20303 exec 6>/dev/null 20304 ac_configure_extra_args="$ac_configure_extra_args --silent" 20305fi 20306 20307_ACEOF 20308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20309if \$ac_cs_recheck; then 20310 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20311 shift 20312 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20313 CONFIG_SHELL='$SHELL' 20314 export CONFIG_SHELL 20315 exec "\$@" 20316fi 20317 20318_ACEOF 20319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20320exec 5>>config.log 20321{ 20322 echo 20323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20324## Running $as_me. ## 20325_ASBOX 20326 $as_echo "$ac_log" 20327} >&5 20328 20329_ACEOF 20330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20331# 20332# INIT-COMMANDS 20333# 20334AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20335 20336 20337# The HP-UX ksh and POSIX shell print the target directory to stdout 20338# if CDPATH is set. 20339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20340 20341sed_quote_subst='$sed_quote_subst' 20342double_quote_subst='$double_quote_subst' 20343delay_variable_subst='$delay_variable_subst' 20344macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20345macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20346enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20347enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20348pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20349enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20350shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20351SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20352ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20353PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20354host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20355host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20356host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20357build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20358build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20359build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20360SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20361Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20362GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20363EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20364FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20365LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20366NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20367LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20368max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20369ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20370exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20371lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20372lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20373lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20374lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20375lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20376reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20377reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20378OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20379deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20380file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20381file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20382want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20383DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20384sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20385AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20386AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20387archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20388STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20389RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20390old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20391old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20392old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20393lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20394CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20395CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20396compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20397GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20398lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20399lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20400lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20401lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20402lt_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"`' 20403lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20404nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20405lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20406lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20407objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20408MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20409lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20410lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20411lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20412lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20413lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20414need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20415MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20416DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20417NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20418LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20419OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20420OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20421libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20422shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20423extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20424archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20425enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20426export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20427whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20428compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20429old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20430old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20431archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20432archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20433module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20434module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20435with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20436allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20437no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20438hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20439hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20440hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20441hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20442hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20443hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20444hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20445inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20446link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20447always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20448export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20449exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20450include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20451prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20452postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20453file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20454variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20455need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20456need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20457version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20458runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20459shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20460shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20461libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20462library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20463soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20464install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20465postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20466postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20467finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20468finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20469hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20470sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20471configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20472configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20473hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20474enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20475enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20476enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20477old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20478striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20479compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20480predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20481postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20482predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20483postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20484compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20485LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20486reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20487reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20488old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20489compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20490GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20491lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20492lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20493lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20494lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20495lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20496archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20497enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20498export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20499whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20500compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20501old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20502old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20503archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20504archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20505module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20506module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20507with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20508allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20509no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20510hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20511hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20512hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20513hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20514hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20515hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20516hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20517inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20518link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20519always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20520export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20521exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20522include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20523prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20524postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20525file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20526hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20527compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20528predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20529postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20530predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20531postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20532compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20533 20534LTCC='$LTCC' 20535LTCFLAGS='$LTCFLAGS' 20536compiler='$compiler_DEFAULT' 20537 20538# A function that is used when there is no print builtin or printf. 20539func_fallback_echo () 20540{ 20541 eval 'cat <<_LTECHO_EOF 20542\$1 20543_LTECHO_EOF' 20544} 20545 20546# Quote evaled strings. 20547for var in SHELL \ 20548ECHO \ 20549PATH_SEPARATOR \ 20550SED \ 20551GREP \ 20552EGREP \ 20553FGREP \ 20554LD \ 20555NM \ 20556LN_S \ 20557lt_SP2NL \ 20558lt_NL2SP \ 20559reload_flag \ 20560OBJDUMP \ 20561deplibs_check_method \ 20562file_magic_cmd \ 20563file_magic_glob \ 20564want_nocaseglob \ 20565DLLTOOL \ 20566sharedlib_from_linklib_cmd \ 20567AR \ 20568AR_FLAGS \ 20569archiver_list_spec \ 20570STRIP \ 20571RANLIB \ 20572CC \ 20573CFLAGS \ 20574compiler \ 20575lt_cv_sys_global_symbol_pipe \ 20576lt_cv_sys_global_symbol_to_cdecl \ 20577lt_cv_sys_global_symbol_to_import \ 20578lt_cv_sys_global_symbol_to_c_name_address \ 20579lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20580lt_cv_nm_interface \ 20581nm_file_list_spec \ 20582lt_cv_truncate_bin \ 20583lt_prog_compiler_no_builtin_flag \ 20584lt_prog_compiler_pic \ 20585lt_prog_compiler_wl \ 20586lt_prog_compiler_static \ 20587lt_cv_prog_compiler_c_o \ 20588need_locks \ 20589MANIFEST_TOOL \ 20590DSYMUTIL \ 20591NMEDIT \ 20592LIPO \ 20593OTOOL \ 20594OTOOL64 \ 20595shrext_cmds \ 20596export_dynamic_flag_spec \ 20597whole_archive_flag_spec \ 20598compiler_needs_object \ 20599with_gnu_ld \ 20600allow_undefined_flag \ 20601no_undefined_flag \ 20602hardcode_libdir_flag_spec \ 20603hardcode_libdir_separator \ 20604exclude_expsyms \ 20605include_expsyms \ 20606file_list_spec \ 20607variables_saved_for_relink \ 20608libname_spec \ 20609library_names_spec \ 20610soname_spec \ 20611install_override_mode \ 20612finish_eval \ 20613old_striplib \ 20614striplib \ 20615compiler_lib_search_dirs \ 20616predep_objects \ 20617postdep_objects \ 20618predeps \ 20619postdeps \ 20620compiler_lib_search_path \ 20621LD_CXX \ 20622reload_flag_CXX \ 20623compiler_CXX \ 20624lt_prog_compiler_no_builtin_flag_CXX \ 20625lt_prog_compiler_pic_CXX \ 20626lt_prog_compiler_wl_CXX \ 20627lt_prog_compiler_static_CXX \ 20628lt_cv_prog_compiler_c_o_CXX \ 20629export_dynamic_flag_spec_CXX \ 20630whole_archive_flag_spec_CXX \ 20631compiler_needs_object_CXX \ 20632with_gnu_ld_CXX \ 20633allow_undefined_flag_CXX \ 20634no_undefined_flag_CXX \ 20635hardcode_libdir_flag_spec_CXX \ 20636hardcode_libdir_separator_CXX \ 20637exclude_expsyms_CXX \ 20638include_expsyms_CXX \ 20639file_list_spec_CXX \ 20640compiler_lib_search_dirs_CXX \ 20641predep_objects_CXX \ 20642postdep_objects_CXX \ 20643predeps_CXX \ 20644postdeps_CXX \ 20645compiler_lib_search_path_CXX; do 20646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20647 *[\\\\\\\`\\"\\\$]*) 20648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20649 ;; 20650 *) 20651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20652 ;; 20653 esac 20654done 20655 20656# Double-quote double-evaled strings. 20657for var in reload_cmds \ 20658old_postinstall_cmds \ 20659old_postuninstall_cmds \ 20660old_archive_cmds \ 20661extract_expsyms_cmds \ 20662old_archive_from_new_cmds \ 20663old_archive_from_expsyms_cmds \ 20664archive_cmds \ 20665archive_expsym_cmds \ 20666module_cmds \ 20667module_expsym_cmds \ 20668export_symbols_cmds \ 20669prelink_cmds \ 20670postlink_cmds \ 20671postinstall_cmds \ 20672postuninstall_cmds \ 20673finish_cmds \ 20674sys_lib_search_path_spec \ 20675configure_time_dlsearch_path \ 20676configure_time_lt_sys_library_path \ 20677reload_cmds_CXX \ 20678old_archive_cmds_CXX \ 20679old_archive_from_new_cmds_CXX \ 20680old_archive_from_expsyms_cmds_CXX \ 20681archive_cmds_CXX \ 20682archive_expsym_cmds_CXX \ 20683module_cmds_CXX \ 20684module_expsym_cmds_CXX \ 20685export_symbols_cmds_CXX \ 20686prelink_cmds_CXX \ 20687postlink_cmds_CXX; do 20688 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20689 *[\\\\\\\`\\"\\\$]*) 20690 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20691 ;; 20692 *) 20693 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20694 ;; 20695 esac 20696done 20697 20698ac_aux_dir='$ac_aux_dir' 20699 20700# See if we are running on zsh, and set the options that allow our 20701# commands through without removal of \ escapes INIT. 20702if test -n "\${ZSH_VERSION+set}"; then 20703 setopt NO_GLOB_SUBST 20704fi 20705 20706 20707 PACKAGE='$PACKAGE' 20708 VERSION='$VERSION' 20709 RM='$RM' 20710 ofile='$ofile' 20711 20712 20713 20714 20715 20716 20717_ACEOF 20718 20719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20720 20721# Handling of arguments. 20722for ac_config_target in $ac_config_targets 20723do 20724 case $ac_config_target in 20725 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20726 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20727 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20728 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20729 "hwdb/Makefile") CONFIG_FILES="$CONFIG_FILES hwdb/Makefile" ;; 20730 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20731 "rule_generator/Makefile") CONFIG_FILES="$CONFIG_FILES rule_generator/Makefile" ;; 20732 "rule_generator/write_net_rules") CONFIG_FILES="$CONFIG_FILES rule_generator/write_net_rules" ;; 20733 "rules/Makefile") CONFIG_FILES="$CONFIG_FILES rules/Makefile" ;; 20734 "rules/64-btrfs.rules") CONFIG_FILES="$CONFIG_FILES rules/64-btrfs.rules" ;; 20735 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20736 "src/ata_id/Makefile") CONFIG_FILES="$CONFIG_FILES src/ata_id/Makefile" ;; 20737 "src/cdrom_id/Makefile") CONFIG_FILES="$CONFIG_FILES src/cdrom_id/Makefile" ;; 20738 "src/collect/Makefile") CONFIG_FILES="$CONFIG_FILES src/collect/Makefile" ;; 20739 "src/mtd_probe/Makefile") CONFIG_FILES="$CONFIG_FILES src/mtd_probe/Makefile" ;; 20740 "src/scsi_id/Makefile") CONFIG_FILES="$CONFIG_FILES src/scsi_id/Makefile" ;; 20741 "src/v4l_id/Makefile") CONFIG_FILES="$CONFIG_FILES src/v4l_id/Makefile" ;; 20742 "src/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;; 20743 "src/libudev/Makefile") CONFIG_FILES="$CONFIG_FILES src/libudev/Makefile" ;; 20744 "src/libudev/libudev.pc") CONFIG_FILES="$CONFIG_FILES src/libudev/libudev.pc" ;; 20745 "src/udev/Makefile") CONFIG_FILES="$CONFIG_FILES src/udev/Makefile" ;; 20746 "src/udev/udev.pc") CONFIG_FILES="$CONFIG_FILES src/udev/udev.pc" ;; 20747 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20748 20749 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20750 esac 20751done 20752 20753 20754# If the user did not use the arguments to specify the items to instantiate, 20755# then the envvar interface is used. Set only those that are not. 20756# We use the long form for the default assignment because of an extremely 20757# bizarre bug on SunOS 4.1.3. 20758if $ac_need_defaults; then 20759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20762fi 20763 20764# Have a temporary directory for convenience. Make it in the build tree 20765# simply because there is no reason against having it here, and in addition, 20766# creating and moving files from /tmp can sometimes cause problems. 20767# Hook for its removal unless debugging. 20768# Note that there is a small window in which the directory will not be cleaned: 20769# after its creation but before its name has been assigned to `$tmp'. 20770$debug || 20771{ 20772 tmp= ac_tmp= 20773 trap 'exit_status=$? 20774 : "${ac_tmp:=$tmp}" 20775 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20776' 0 20777 trap 'as_fn_exit 1' 1 2 13 15 20778} 20779# Create a (secure) tmp directory for tmp files. 20780 20781{ 20782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20783 test -d "$tmp" 20784} || 20785{ 20786 tmp=./conf$$-$RANDOM 20787 (umask 077 && mkdir "$tmp") 20788} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20789ac_tmp=$tmp 20790 20791# Set up the scripts for CONFIG_FILES section. 20792# No need to generate them if there are no CONFIG_FILES. 20793# This happens for instance with `./config.status config.h'. 20794if test -n "$CONFIG_FILES"; then 20795 20796 20797ac_cr=`echo X | tr X '\015'` 20798# On cygwin, bash can eat \r inside `` if the user requested igncr. 20799# But we know of no other shell where ac_cr would be empty at this 20800# point, so we can use a bashism as a fallback. 20801if test "x$ac_cr" = x; then 20802 eval ac_cr=\$\'\\r\' 20803fi 20804ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20805if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20806 ac_cs_awk_cr='\\r' 20807else 20808 ac_cs_awk_cr=$ac_cr 20809fi 20810 20811echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20812_ACEOF 20813 20814 20815{ 20816 echo "cat >conf$$subs.awk <<_ACEOF" && 20817 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20818 echo "_ACEOF" 20819} >conf$$subs.sh || 20820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20821ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20822ac_delim='%!_!# ' 20823for ac_last_try in false false false false false :; do 20824 . ./conf$$subs.sh || 20825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20826 20827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20828 if test $ac_delim_n = $ac_delim_num; then 20829 break 20830 elif $ac_last_try; then 20831 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20832 else 20833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20834 fi 20835done 20836rm -f conf$$subs.sh 20837 20838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20839cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20840_ACEOF 20841sed -n ' 20842h 20843s/^/S["/; s/!.*/"]=/ 20844p 20845g 20846s/^[^!]*!// 20847:repl 20848t repl 20849s/'"$ac_delim"'$// 20850t delim 20851:nl 20852h 20853s/\(.\{148\}\)..*/\1/ 20854t more1 20855s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20856p 20857n 20858b repl 20859:more1 20860s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20861p 20862g 20863s/.\{148\}// 20864t nl 20865:delim 20866h 20867s/\(.\{148\}\)..*/\1/ 20868t more2 20869s/["\\]/\\&/g; s/^/"/; s/$/"/ 20870p 20871b 20872:more2 20873s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20874p 20875g 20876s/.\{148\}// 20877t delim 20878' <conf$$subs.awk | sed ' 20879/^[^""]/{ 20880 N 20881 s/\n// 20882} 20883' >>$CONFIG_STATUS || ac_write_fail=1 20884rm -f conf$$subs.awk 20885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20886_ACAWK 20887cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20888 for (key in S) S_is_set[key] = 1 20889 FS = "" 20890 20891} 20892{ 20893 line = $ 0 20894 nfields = split(line, field, "@") 20895 substed = 0 20896 len = length(field[1]) 20897 for (i = 2; i < nfields; i++) { 20898 key = field[i] 20899 keylen = length(key) 20900 if (S_is_set[key]) { 20901 value = S[key] 20902 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20903 len += length(value) + length(field[++i]) 20904 substed = 1 20905 } else 20906 len += 1 + keylen 20907 } 20908 20909 print line 20910} 20911 20912_ACAWK 20913_ACEOF 20914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20915if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20917else 20918 cat 20919fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20920 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20921_ACEOF 20922 20923# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20924# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20925# trailing colons and then remove the whole line if VPATH becomes empty 20926# (actually we leave an empty line to preserve line numbers). 20927if test "x$srcdir" = x.; then 20928 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20929h 20930s/// 20931s/^/:/ 20932s/[ ]*$/:/ 20933s/:\$(srcdir):/:/g 20934s/:\${srcdir}:/:/g 20935s/:@srcdir@:/:/g 20936s/^:*// 20937s/:*$// 20938x 20939s/\(=[ ]*\).*/\1/ 20940G 20941s/\n// 20942s/^[^=]*=[ ]*$// 20943}' 20944fi 20945 20946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20947fi # test -n "$CONFIG_FILES" 20948 20949# Set up the scripts for CONFIG_HEADERS section. 20950# No need to generate them if there are no CONFIG_HEADERS. 20951# This happens for instance with `./config.status Makefile'. 20952if test -n "$CONFIG_HEADERS"; then 20953cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20954BEGIN { 20955_ACEOF 20956 20957# Transform confdefs.h into an awk script `defines.awk', embedded as 20958# here-document in config.status, that substitutes the proper values into 20959# config.h.in to produce config.h. 20960 20961# Create a delimiter string that does not exist in confdefs.h, to ease 20962# handling of long lines. 20963ac_delim='%!_!# ' 20964for ac_last_try in false false :; do 20965 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20966 if test -z "$ac_tt"; then 20967 break 20968 elif $ac_last_try; then 20969 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20970 else 20971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20972 fi 20973done 20974 20975# For the awk script, D is an array of macro values keyed by name, 20976# likewise P contains macro parameters if any. Preserve backslash 20977# newline sequences. 20978 20979ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20980sed -n ' 20981s/.\{148\}/&'"$ac_delim"'/g 20982t rset 20983:rset 20984s/^[ ]*#[ ]*define[ ][ ]*/ / 20985t def 20986d 20987:def 20988s/\\$// 20989t bsnl 20990s/["\\]/\\&/g 20991s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20992D["\1"]=" \3"/p 20993s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20994d 20995:bsnl 20996s/["\\]/\\&/g 20997s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20998D["\1"]=" \3\\\\\\n"\\/p 20999t cont 21000s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21001t cont 21002d 21003:cont 21004n 21005s/.\{148\}/&'"$ac_delim"'/g 21006t clear 21007:clear 21008s/\\$// 21009t bsnlc 21010s/["\\]/\\&/g; s/^/"/; s/$/"/p 21011d 21012:bsnlc 21013s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21014b cont 21015' <confdefs.h | sed ' 21016s/'"$ac_delim"'/"\\\ 21017"/g' >>$CONFIG_STATUS || ac_write_fail=1 21018 21019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21020 for (key in D) D_is_set[key] = 1 21021 FS = "" 21022} 21023/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21024 line = \$ 0 21025 split(line, arg, " ") 21026 if (arg[1] == "#") { 21027 defundef = arg[2] 21028 mac1 = arg[3] 21029 } else { 21030 defundef = substr(arg[1], 2) 21031 mac1 = arg[2] 21032 } 21033 split(mac1, mac2, "(") #) 21034 macro = mac2[1] 21035 prefix = substr(line, 1, index(line, defundef) - 1) 21036 if (D_is_set[macro]) { 21037 # Preserve the white space surrounding the "#". 21038 print prefix "define", macro P[macro] D[macro] 21039 next 21040 } else { 21041 # Replace #undef with comments. This is necessary, for example, 21042 # in the case of _POSIX_SOURCE, which is predefined and required 21043 # on some systems where configure will not decide to define it. 21044 if (defundef == "undef") { 21045 print "/*", prefix defundef, macro, "*/" 21046 next 21047 } 21048 } 21049} 21050{ print } 21051_ACAWK 21052_ACEOF 21053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21054 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21055fi # test -n "$CONFIG_HEADERS" 21056 21057 21058eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21059shift 21060for ac_tag 21061do 21062 case $ac_tag in 21063 :[FHLC]) ac_mode=$ac_tag; continue;; 21064 esac 21065 case $ac_mode$ac_tag in 21066 :[FHL]*:*);; 21067 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21068 :[FH]-) ac_tag=-:-;; 21069 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21070 esac 21071 ac_save_IFS=$IFS 21072 IFS=: 21073 set x $ac_tag 21074 IFS=$ac_save_IFS 21075 shift 21076 ac_file=$1 21077 shift 21078 21079 case $ac_mode in 21080 :L) ac_source=$1;; 21081 :[FH]) 21082 ac_file_inputs= 21083 for ac_f 21084 do 21085 case $ac_f in 21086 -) ac_f="$ac_tmp/stdin";; 21087 *) # Look for the file first in the build tree, then in the source tree 21088 # (if the path is not absolute). The absolute path cannot be DOS-style, 21089 # because $ac_f cannot contain `:'. 21090 test -f "$ac_f" || 21091 case $ac_f in 21092 [\\/$]*) false;; 21093 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21094 esac || 21095 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21096 esac 21097 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21098 as_fn_append ac_file_inputs " '$ac_f'" 21099 done 21100 21101 # Let's still pretend it is `configure' which instantiates (i.e., don't 21102 # use $as_me), people would be surprised to read: 21103 # /* config.h. Generated by config.status. */ 21104 configure_input='Generated from '` 21105 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21106 `' by configure.' 21107 if test x"$ac_file" != x-; then 21108 configure_input="$ac_file. $configure_input" 21109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21110$as_echo "$as_me: creating $ac_file" >&6;} 21111 fi 21112 # Neutralize special characters interpreted by sed in replacement strings. 21113 case $configure_input in #( 21114 *\&* | *\|* | *\\* ) 21115 ac_sed_conf_input=`$as_echo "$configure_input" | 21116 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21117 *) ac_sed_conf_input=$configure_input;; 21118 esac 21119 21120 case $ac_tag in 21121 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21123 esac 21124 ;; 21125 esac 21126 21127 ac_dir=`$as_dirname -- "$ac_file" || 21128$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21129 X"$ac_file" : 'X\(//\)[^/]' \| \ 21130 X"$ac_file" : 'X\(//\)$' \| \ 21131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21132$as_echo X"$ac_file" | 21133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21134 s//\1/ 21135 q 21136 } 21137 /^X\(\/\/\)[^/].*/{ 21138 s//\1/ 21139 q 21140 } 21141 /^X\(\/\/\)$/{ 21142 s//\1/ 21143 q 21144 } 21145 /^X\(\/\).*/{ 21146 s//\1/ 21147 q 21148 } 21149 s/.*/./; q'` 21150 as_dir="$ac_dir"; as_fn_mkdir_p 21151 ac_builddir=. 21152 21153case "$ac_dir" in 21154.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21155*) 21156 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21157 # A ".." for each directory in $ac_dir_suffix. 21158 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21159 case $ac_top_builddir_sub in 21160 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21161 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21162 esac ;; 21163esac 21164ac_abs_top_builddir=$ac_pwd 21165ac_abs_builddir=$ac_pwd$ac_dir_suffix 21166# for backward compatibility: 21167ac_top_builddir=$ac_top_build_prefix 21168 21169case $srcdir in 21170 .) # We are building in place. 21171 ac_srcdir=. 21172 ac_top_srcdir=$ac_top_builddir_sub 21173 ac_abs_top_srcdir=$ac_pwd ;; 21174 [\\/]* | ?:[\\/]* ) # Absolute name. 21175 ac_srcdir=$srcdir$ac_dir_suffix; 21176 ac_top_srcdir=$srcdir 21177 ac_abs_top_srcdir=$srcdir ;; 21178 *) # Relative name. 21179 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21180 ac_top_srcdir=$ac_top_build_prefix$srcdir 21181 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21182esac 21183ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21184 21185 21186 case $ac_mode in 21187 :F) 21188 # 21189 # CONFIG_FILE 21190 # 21191 21192 case $INSTALL in 21193 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21194 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21195 esac 21196 ac_MKDIR_P=$MKDIR_P 21197 case $MKDIR_P in 21198 [\\/$]* | ?:[\\/]* ) ;; 21199 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21200 esac 21201_ACEOF 21202 21203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21204# If the template does not know about datarootdir, expand it. 21205# FIXME: This hack should be removed a few years after 2.60. 21206ac_datarootdir_hack=; ac_datarootdir_seen= 21207ac_sed_dataroot=' 21208/datarootdir/ { 21209 p 21210 q 21211} 21212/@datadir@/p 21213/@docdir@/p 21214/@infodir@/p 21215/@localedir@/p 21216/@mandir@/p' 21217case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21218*datarootdir*) ac_datarootdir_seen=yes;; 21219*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21221$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21222_ACEOF 21223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21224 ac_datarootdir_hack=' 21225 s&@datadir@&$datadir&g 21226 s&@docdir@&$docdir&g 21227 s&@infodir@&$infodir&g 21228 s&@localedir@&$localedir&g 21229 s&@mandir@&$mandir&g 21230 s&\\\${datarootdir}&$datarootdir&g' ;; 21231esac 21232_ACEOF 21233 21234# Neutralize VPATH when `$srcdir' = `.'. 21235# Shell code in configure.ac might set extrasub. 21236# FIXME: do we really want to maintain this feature? 21237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21238ac_sed_extra="$ac_vpsub 21239$extrasub 21240_ACEOF 21241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21242:t 21243/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21244s|@configure_input@|$ac_sed_conf_input|;t t 21245s&@top_builddir@&$ac_top_builddir_sub&;t t 21246s&@top_build_prefix@&$ac_top_build_prefix&;t t 21247s&@srcdir@&$ac_srcdir&;t t 21248s&@abs_srcdir@&$ac_abs_srcdir&;t t 21249s&@top_srcdir@&$ac_top_srcdir&;t t 21250s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21251s&@builddir@&$ac_builddir&;t t 21252s&@abs_builddir@&$ac_abs_builddir&;t t 21253s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21254s&@INSTALL@&$ac_INSTALL&;t t 21255s&@MKDIR_P@&$ac_MKDIR_P&;t t 21256$ac_datarootdir_hack 21257" 21258eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21259 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21260 21261test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21264 "$ac_tmp/out"`; test -z "$ac_out"; } && 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21266which seems to be undefined. Please make sure it is defined" >&5 21267$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21268which seems to be undefined. Please make sure it is defined" >&2;} 21269 21270 rm -f "$ac_tmp/stdin" 21271 case $ac_file in 21272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21274 esac \ 21275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21276 ;; 21277 :H) 21278 # 21279 # CONFIG_HEADER 21280 # 21281 if test x"$ac_file" != x-; then 21282 { 21283 $as_echo "/* $configure_input */" \ 21284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21285 } >"$ac_tmp/config.h" \ 21286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21289$as_echo "$as_me: $ac_file is unchanged" >&6;} 21290 else 21291 rm -f "$ac_file" 21292 mv "$ac_tmp/config.h" "$ac_file" \ 21293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21294 fi 21295 else 21296 $as_echo "/* $configure_input */" \ 21297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21298 || as_fn_error $? "could not create -" "$LINENO" 5 21299 fi 21300# Compute "$ac_file"'s index in $config_headers. 21301_am_arg="$ac_file" 21302_am_stamp_count=1 21303for _am_header in $config_headers :; do 21304 case $_am_header in 21305 $_am_arg | $_am_arg:* ) 21306 break ;; 21307 * ) 21308 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21309 esac 21310done 21311echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21312$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21313 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21314 X"$_am_arg" : 'X\(//\)$' \| \ 21315 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21316$as_echo X"$_am_arg" | 21317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21318 s//\1/ 21319 q 21320 } 21321 /^X\(\/\/\)[^/].*/{ 21322 s//\1/ 21323 q 21324 } 21325 /^X\(\/\/\)$/{ 21326 s//\1/ 21327 q 21328 } 21329 /^X\(\/\).*/{ 21330 s//\1/ 21331 q 21332 } 21333 s/.*/./; q'`/stamp-h$_am_stamp_count 21334 ;; 21335 21336 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21337$as_echo "$as_me: executing $ac_file commands" >&6;} 21338 ;; 21339 esac 21340 21341 21342 case $ac_file$ac_mode in 21343 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21344 # Older Autoconf quotes --file arguments for eval, but not when files 21345 # are listed without --file. Let's play safe and only enable the eval 21346 # if we detect the quoting. 21347 # TODO: see whether this extra hack can be removed once we start 21348 # requiring Autoconf 2.70 or later. 21349 case $CONFIG_FILES in #( 21350 *\'*) : 21351 eval set x "$CONFIG_FILES" ;; #( 21352 *) : 21353 set x $CONFIG_FILES ;; #( 21354 *) : 21355 ;; 21356esac 21357 shift 21358 # Used to flag and report bootstrapping failures. 21359 am_rc=0 21360 for am_mf 21361 do 21362 # Strip MF so we end up with the name of the file. 21363 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21364 # Check whether this is an Automake generated Makefile which includes 21365 # dependency-tracking related rules and includes. 21366 # Grep'ing the whole file directly is not great: AIX grep has a line 21367 # limit of 2048, but all sed's we know have understand at least 4000. 21368 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21369 || continue 21370 am_dirpart=`$as_dirname -- "$am_mf" || 21371$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21372 X"$am_mf" : 'X\(//\)[^/]' \| \ 21373 X"$am_mf" : 'X\(//\)$' \| \ 21374 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21375$as_echo X"$am_mf" | 21376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21377 s//\1/ 21378 q 21379 } 21380 /^X\(\/\/\)[^/].*/{ 21381 s//\1/ 21382 q 21383 } 21384 /^X\(\/\/\)$/{ 21385 s//\1/ 21386 q 21387 } 21388 /^X\(\/\).*/{ 21389 s//\1/ 21390 q 21391 } 21392 s/.*/./; q'` 21393 am_filepart=`$as_basename -- "$am_mf" || 21394$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21395 X"$am_mf" : 'X\(//\)$' \| \ 21396 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21397$as_echo X/"$am_mf" | 21398 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21399 s//\1/ 21400 q 21401 } 21402 /^X\/\(\/\/\)$/{ 21403 s//\1/ 21404 q 21405 } 21406 /^X\/\(\/\).*/{ 21407 s//\1/ 21408 q 21409 } 21410 s/.*/./; q'` 21411 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21412 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21413 | $MAKE -f - am--depfiles" >&5 21414 (cd "$am_dirpart" \ 21415 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21416 | $MAKE -f - am--depfiles) >&5 2>&5 21417 ac_status=$? 21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21419 (exit $ac_status); } || am_rc=$? 21420 done 21421 if test $am_rc -ne 0; then 21422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21424as_fn_error $? "Something went wrong bootstrapping makefile fragments 21425 for automatic dependency tracking. Try re-running configure with the 21426 '--disable-dependency-tracking' option to at least be able to build 21427 the package (albeit without support for automatic dependency tracking). 21428See \`config.log' for more details" "$LINENO" 5; } 21429 fi 21430 { am_dirpart=; unset am_dirpart;} 21431 { am_filepart=; unset am_filepart;} 21432 { am_mf=; unset am_mf;} 21433 { am_rc=; unset am_rc;} 21434 rm -f conftest-deps.mk 21435} 21436 ;; 21437 "libtool":C) 21438 21439 # See if we are running on zsh, and set the options that allow our 21440 # commands through without removal of \ escapes. 21441 if test -n "${ZSH_VERSION+set}"; then 21442 setopt NO_GLOB_SUBST 21443 fi 21444 21445 cfgfile=${ofile}T 21446 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21447 $RM "$cfgfile" 21448 21449 cat <<_LT_EOF >> "$cfgfile" 21450#! $SHELL 21451# Generated automatically by $as_me ($PACKAGE) $VERSION 21452# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21453# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21454 21455# Provide generalized library-building support services. 21456# Written by Gordon Matzigkeit, 1996 21457 21458# Copyright (C) 2014 Free Software Foundation, Inc. 21459# This is free software; see the source for copying conditions. There is NO 21460# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21461 21462# GNU Libtool is free software; you can redistribute it and/or modify 21463# it under the terms of the GNU General Public License as published by 21464# the Free Software Foundation; either version 2 of of the License, or 21465# (at your option) any later version. 21466# 21467# As a special exception to the GNU General Public License, if you 21468# distribute this file as part of a program or library that is built 21469# using GNU Libtool, you may include this file under the same 21470# distribution terms that you use for the rest of that program. 21471# 21472# GNU Libtool is distributed in the hope that it will be useful, but 21473# WITHOUT ANY WARRANTY; without even the implied warranty of 21474# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21475# GNU General Public License for more details. 21476# 21477# You should have received a copy of the GNU General Public License 21478# along with this program. If not, see <http://www.gnu.org/licenses/>. 21479 21480 21481# The names of the tagged configurations supported by this script. 21482available_tags='CXX ' 21483 21484# Configured defaults for sys_lib_dlsearch_path munging. 21485: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21486 21487# ### BEGIN LIBTOOL CONFIG 21488 21489# Which release of libtool.m4 was used? 21490macro_version=$macro_version 21491macro_revision=$macro_revision 21492 21493# Whether or not to build shared libraries. 21494build_libtool_libs=$enable_shared 21495 21496# Whether or not to build static libraries. 21497build_old_libs=$enable_static 21498 21499# What type of objects to build. 21500pic_mode=$pic_mode 21501 21502# Whether or not to optimize for fast installation. 21503fast_install=$enable_fast_install 21504 21505# Shared archive member basename,for filename based shared library versioning on AIX. 21506shared_archive_member_spec=$shared_archive_member_spec 21507 21508# Shell to use when invoking shell scripts. 21509SHELL=$lt_SHELL 21510 21511# An echo program that protects backslashes. 21512ECHO=$lt_ECHO 21513 21514# The PATH separator for the build system. 21515PATH_SEPARATOR=$lt_PATH_SEPARATOR 21516 21517# The host system. 21518host_alias=$host_alias 21519host=$host 21520host_os=$host_os 21521 21522# The build system. 21523build_alias=$build_alias 21524build=$build 21525build_os=$build_os 21526 21527# A sed program that does not truncate output. 21528SED=$lt_SED 21529 21530# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21531Xsed="\$SED -e 1s/^X//" 21532 21533# A grep program that handles long lines. 21534GREP=$lt_GREP 21535 21536# An ERE matcher. 21537EGREP=$lt_EGREP 21538 21539# A literal string matcher. 21540FGREP=$lt_FGREP 21541 21542# A BSD- or MS-compatible name lister. 21543NM=$lt_NM 21544 21545# Whether we need soft or hard links. 21546LN_S=$lt_LN_S 21547 21548# What is the maximum length of a command? 21549max_cmd_len=$max_cmd_len 21550 21551# Object file suffix (normally "o"). 21552objext=$ac_objext 21553 21554# Executable file suffix (normally ""). 21555exeext=$exeext 21556 21557# whether the shell understands "unset". 21558lt_unset=$lt_unset 21559 21560# turn spaces into newlines. 21561SP2NL=$lt_lt_SP2NL 21562 21563# turn newlines into spaces. 21564NL2SP=$lt_lt_NL2SP 21565 21566# convert \$build file names to \$host format. 21567to_host_file_cmd=$lt_cv_to_host_file_cmd 21568 21569# convert \$build files to toolchain format. 21570to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21571 21572# An object symbol dumper. 21573OBJDUMP=$lt_OBJDUMP 21574 21575# Method to check whether dependent libraries are shared objects. 21576deplibs_check_method=$lt_deplibs_check_method 21577 21578# Command to use when deplibs_check_method = "file_magic". 21579file_magic_cmd=$lt_file_magic_cmd 21580 21581# How to find potential files when deplibs_check_method = "file_magic". 21582file_magic_glob=$lt_file_magic_glob 21583 21584# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21585want_nocaseglob=$lt_want_nocaseglob 21586 21587# DLL creation program. 21588DLLTOOL=$lt_DLLTOOL 21589 21590# Command to associate shared and link libraries. 21591sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21592 21593# The archiver. 21594AR=$lt_AR 21595 21596# Flags to create an archive. 21597AR_FLAGS=$lt_AR_FLAGS 21598 21599# How to feed a file listing to the archiver. 21600archiver_list_spec=$lt_archiver_list_spec 21601 21602# A symbol stripping program. 21603STRIP=$lt_STRIP 21604 21605# Commands used to install an old-style archive. 21606RANLIB=$lt_RANLIB 21607old_postinstall_cmds=$lt_old_postinstall_cmds 21608old_postuninstall_cmds=$lt_old_postuninstall_cmds 21609 21610# Whether to use a lock for old archive extraction. 21611lock_old_archive_extraction=$lock_old_archive_extraction 21612 21613# A C compiler. 21614LTCC=$lt_CC 21615 21616# LTCC compiler flags. 21617LTCFLAGS=$lt_CFLAGS 21618 21619# Take the output of nm and produce a listing of raw symbols and C names. 21620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21621 21622# Transform the output of nm in a proper C declaration. 21623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21624 21625# Transform the output of nm into a list of symbols to manually relocate. 21626global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21627 21628# Transform the output of nm in a C name address pair. 21629global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21630 21631# Transform the output of nm in a C name address pair when lib prefix is needed. 21632global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21633 21634# The name lister interface. 21635nm_interface=$lt_lt_cv_nm_interface 21636 21637# Specify filename containing input files for \$NM. 21638nm_file_list_spec=$lt_nm_file_list_spec 21639 21640# The root where to search for dependent libraries,and where our libraries should be installed. 21641lt_sysroot=$lt_sysroot 21642 21643# Command to truncate a binary pipe. 21644lt_truncate_bin=$lt_lt_cv_truncate_bin 21645 21646# The name of the directory that contains temporary libtool files. 21647objdir=$objdir 21648 21649# Used to examine libraries when file_magic_cmd begins with "file". 21650MAGIC_CMD=$MAGIC_CMD 21651 21652# Must we lock files when doing compilation? 21653need_locks=$lt_need_locks 21654 21655# Manifest tool. 21656MANIFEST_TOOL=$lt_MANIFEST_TOOL 21657 21658# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21659DSYMUTIL=$lt_DSYMUTIL 21660 21661# Tool to change global to local symbols on Mac OS X. 21662NMEDIT=$lt_NMEDIT 21663 21664# Tool to manipulate fat objects and archives on Mac OS X. 21665LIPO=$lt_LIPO 21666 21667# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21668OTOOL=$lt_OTOOL 21669 21670# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21671OTOOL64=$lt_OTOOL64 21672 21673# Old archive suffix (normally "a"). 21674libext=$libext 21675 21676# Shared library suffix (normally ".so"). 21677shrext_cmds=$lt_shrext_cmds 21678 21679# The commands to extract the exported symbol list from a shared archive. 21680extract_expsyms_cmds=$lt_extract_expsyms_cmds 21681 21682# Variables whose values should be saved in libtool wrapper scripts and 21683# restored at link time. 21684variables_saved_for_relink=$lt_variables_saved_for_relink 21685 21686# Do we need the "lib" prefix for modules? 21687need_lib_prefix=$need_lib_prefix 21688 21689# Do we need a version for libraries? 21690need_version=$need_version 21691 21692# Library versioning type. 21693version_type=$version_type 21694 21695# Shared library runtime path variable. 21696runpath_var=$runpath_var 21697 21698# Shared library path variable. 21699shlibpath_var=$shlibpath_var 21700 21701# Is shlibpath searched before the hard-coded library search path? 21702shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21703 21704# Format of library name prefix. 21705libname_spec=$lt_libname_spec 21706 21707# List of archive names. First name is the real one, the rest are links. 21708# The last name is the one that the linker finds with -lNAME 21709library_names_spec=$lt_library_names_spec 21710 21711# The coded name of the library, if different from the real name. 21712soname_spec=$lt_soname_spec 21713 21714# Permission mode override for installation of shared libraries. 21715install_override_mode=$lt_install_override_mode 21716 21717# Command to use after installation of a shared archive. 21718postinstall_cmds=$lt_postinstall_cmds 21719 21720# Command to use after uninstallation of a shared archive. 21721postuninstall_cmds=$lt_postuninstall_cmds 21722 21723# Commands used to finish a libtool library installation in a directory. 21724finish_cmds=$lt_finish_cmds 21725 21726# As "finish_cmds", except a single script fragment to be evaled but 21727# not shown. 21728finish_eval=$lt_finish_eval 21729 21730# Whether we should hardcode library paths into libraries. 21731hardcode_into_libs=$hardcode_into_libs 21732 21733# Compile-time system search path for libraries. 21734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21735 21736# Detected run-time system search path for libraries. 21737sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21738 21739# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21740configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21741 21742# Whether dlopen is supported. 21743dlopen_support=$enable_dlopen 21744 21745# Whether dlopen of programs is supported. 21746dlopen_self=$enable_dlopen_self 21747 21748# Whether dlopen of statically linked programs is supported. 21749dlopen_self_static=$enable_dlopen_self_static 21750 21751# Commands to strip libraries. 21752old_striplib=$lt_old_striplib 21753striplib=$lt_striplib 21754 21755 21756# The linker used to build libraries. 21757LD=$lt_LD 21758 21759# How to create reloadable object files. 21760reload_flag=$lt_reload_flag 21761reload_cmds=$lt_reload_cmds 21762 21763# Commands used to build an old-style archive. 21764old_archive_cmds=$lt_old_archive_cmds 21765 21766# A language specific compiler. 21767CC=$lt_compiler 21768 21769# Is the compiler the GNU compiler? 21770with_gcc=$GCC 21771 21772# Compiler flag to turn off builtin functions. 21773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21774 21775# Additional compiler flags for building library objects. 21776pic_flag=$lt_lt_prog_compiler_pic 21777 21778# How to pass a linker flag through the compiler. 21779wl=$lt_lt_prog_compiler_wl 21780 21781# Compiler flag to prevent dynamic linking. 21782link_static_flag=$lt_lt_prog_compiler_static 21783 21784# Does compiler simultaneously support -c and -o options? 21785compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21786 21787# Whether or not to add -lc for building shared libraries. 21788build_libtool_need_lc=$archive_cmds_need_lc 21789 21790# Whether or not to disallow shared libs when runtime libs are static. 21791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21792 21793# Compiler flag to allow reflexive dlopens. 21794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21795 21796# Compiler flag to generate shared objects directly from archives. 21797whole_archive_flag_spec=$lt_whole_archive_flag_spec 21798 21799# Whether the compiler copes with passing no objects directly. 21800compiler_needs_object=$lt_compiler_needs_object 21801 21802# Create an old-style archive from a shared archive. 21803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21804 21805# Create a temporary old-style archive to link instead of a shared archive. 21806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21807 21808# Commands used to build a shared archive. 21809archive_cmds=$lt_archive_cmds 21810archive_expsym_cmds=$lt_archive_expsym_cmds 21811 21812# Commands used to build a loadable module if different from building 21813# a shared archive. 21814module_cmds=$lt_module_cmds 21815module_expsym_cmds=$lt_module_expsym_cmds 21816 21817# Whether we are building with GNU ld or not. 21818with_gnu_ld=$lt_with_gnu_ld 21819 21820# Flag that allows shared libraries with undefined symbols to be built. 21821allow_undefined_flag=$lt_allow_undefined_flag 21822 21823# Flag that enforces no undefined symbols. 21824no_undefined_flag=$lt_no_undefined_flag 21825 21826# Flag to hardcode \$libdir into a binary during linking. 21827# This must work even if \$libdir does not exist 21828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21829 21830# Whether we need a single "-rpath" flag with a separated argument. 21831hardcode_libdir_separator=$lt_hardcode_libdir_separator 21832 21833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21834# DIR into the resulting binary. 21835hardcode_direct=$hardcode_direct 21836 21837# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21838# DIR into the resulting binary and the resulting library dependency is 21839# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21840# library is relocated. 21841hardcode_direct_absolute=$hardcode_direct_absolute 21842 21843# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21844# into the resulting binary. 21845hardcode_minus_L=$hardcode_minus_L 21846 21847# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21848# into the resulting binary. 21849hardcode_shlibpath_var=$hardcode_shlibpath_var 21850 21851# Set to "yes" if building a shared library automatically hardcodes DIR 21852# into the library and all subsequent libraries and executables linked 21853# against it. 21854hardcode_automatic=$hardcode_automatic 21855 21856# Set to yes if linker adds runtime paths of dependent libraries 21857# to runtime path list. 21858inherit_rpath=$inherit_rpath 21859 21860# Whether libtool must link a program against all its dependency libraries. 21861link_all_deplibs=$link_all_deplibs 21862 21863# Set to "yes" if exported symbols are required. 21864always_export_symbols=$always_export_symbols 21865 21866# The commands to list exported symbols. 21867export_symbols_cmds=$lt_export_symbols_cmds 21868 21869# Symbols that should not be listed in the preloaded symbols. 21870exclude_expsyms=$lt_exclude_expsyms 21871 21872# Symbols that must always be exported. 21873include_expsyms=$lt_include_expsyms 21874 21875# Commands necessary for linking programs (against libraries) with templates. 21876prelink_cmds=$lt_prelink_cmds 21877 21878# Commands necessary for finishing linking programs. 21879postlink_cmds=$lt_postlink_cmds 21880 21881# Specify filename containing input files. 21882file_list_spec=$lt_file_list_spec 21883 21884# How to hardcode a shared library path into an executable. 21885hardcode_action=$hardcode_action 21886 21887# The directories searched by this compiler when creating a shared library. 21888compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21889 21890# Dependencies to place before and after the objects being linked to 21891# create a shared library. 21892predep_objects=$lt_predep_objects 21893postdep_objects=$lt_postdep_objects 21894predeps=$lt_predeps 21895postdeps=$lt_postdeps 21896 21897# The library search path used internally by the compiler when linking 21898# a shared library. 21899compiler_lib_search_path=$lt_compiler_lib_search_path 21900 21901# ### END LIBTOOL CONFIG 21902 21903_LT_EOF 21904 21905 cat <<'_LT_EOF' >> "$cfgfile" 21906 21907# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21908 21909# func_munge_path_list VARIABLE PATH 21910# ----------------------------------- 21911# VARIABLE is name of variable containing _space_ separated list of 21912# directories to be munged by the contents of PATH, which is string 21913# having a format: 21914# "DIR[:DIR]:" 21915# string "DIR[ DIR]" will be prepended to VARIABLE 21916# ":DIR[:DIR]" 21917# string "DIR[ DIR]" will be appended to VARIABLE 21918# "DIRP[:DIRP]::[DIRA:]DIRA" 21919# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21920# "DIRA[ DIRA]" will be appended to VARIABLE 21921# "DIR[:DIR]" 21922# VARIABLE will be replaced by "DIR[ DIR]" 21923func_munge_path_list () 21924{ 21925 case x$2 in 21926 x) 21927 ;; 21928 *:) 21929 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21930 ;; 21931 x:*) 21932 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21933 ;; 21934 *::*) 21935 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21936 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21937 ;; 21938 *) 21939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21940 ;; 21941 esac 21942} 21943 21944 21945# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21946func_cc_basename () 21947{ 21948 for cc_temp in $*""; do 21949 case $cc_temp in 21950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21952 \-*) ;; 21953 *) break;; 21954 esac 21955 done 21956 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21957} 21958 21959 21960# ### END FUNCTIONS SHARED WITH CONFIGURE 21961 21962_LT_EOF 21963 21964 case $host_os in 21965 aix3*) 21966 cat <<\_LT_EOF >> "$cfgfile" 21967# AIX sometimes has problems with the GCC collect2 program. For some 21968# reason, if we set the COLLECT_NAMES environment variable, the problems 21969# vanish in a puff of smoke. 21970if test set != "${COLLECT_NAMES+set}"; then 21971 COLLECT_NAMES= 21972 export COLLECT_NAMES 21973fi 21974_LT_EOF 21975 ;; 21976 esac 21977 21978 21979ltmain=$ac_aux_dir/ltmain.sh 21980 21981 21982 # We use sed instead of cat because bash on DJGPP gets confused if 21983 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21984 # text mode, it properly converts lines to CR/LF. This bash problem 21985 # is reportedly fixed, but why not run on old versions too? 21986 sed '$q' "$ltmain" >> "$cfgfile" \ 21987 || (rm -f "$cfgfile"; exit 1) 21988 21989 mv -f "$cfgfile" "$ofile" || 21990 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21991 chmod +x "$ofile" 21992 21993 21994 cat <<_LT_EOF >> "$ofile" 21995 21996# ### BEGIN LIBTOOL TAG CONFIG: CXX 21997 21998# The linker used to build libraries. 21999LD=$lt_LD_CXX 22000 22001# How to create reloadable object files. 22002reload_flag=$lt_reload_flag_CXX 22003reload_cmds=$lt_reload_cmds_CXX 22004 22005# Commands used to build an old-style archive. 22006old_archive_cmds=$lt_old_archive_cmds_CXX 22007 22008# A language specific compiler. 22009CC=$lt_compiler_CXX 22010 22011# Is the compiler the GNU compiler? 22012with_gcc=$GCC_CXX 22013 22014# Compiler flag to turn off builtin functions. 22015no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22016 22017# Additional compiler flags for building library objects. 22018pic_flag=$lt_lt_prog_compiler_pic_CXX 22019 22020# How to pass a linker flag through the compiler. 22021wl=$lt_lt_prog_compiler_wl_CXX 22022 22023# Compiler flag to prevent dynamic linking. 22024link_static_flag=$lt_lt_prog_compiler_static_CXX 22025 22026# Does compiler simultaneously support -c and -o options? 22027compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22028 22029# Whether or not to add -lc for building shared libraries. 22030build_libtool_need_lc=$archive_cmds_need_lc_CXX 22031 22032# Whether or not to disallow shared libs when runtime libs are static. 22033allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22034 22035# Compiler flag to allow reflexive dlopens. 22036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22037 22038# Compiler flag to generate shared objects directly from archives. 22039whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22040 22041# Whether the compiler copes with passing no objects directly. 22042compiler_needs_object=$lt_compiler_needs_object_CXX 22043 22044# Create an old-style archive from a shared archive. 22045old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22046 22047# Create a temporary old-style archive to link instead of a shared archive. 22048old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22049 22050# Commands used to build a shared archive. 22051archive_cmds=$lt_archive_cmds_CXX 22052archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22053 22054# Commands used to build a loadable module if different from building 22055# a shared archive. 22056module_cmds=$lt_module_cmds_CXX 22057module_expsym_cmds=$lt_module_expsym_cmds_CXX 22058 22059# Whether we are building with GNU ld or not. 22060with_gnu_ld=$lt_with_gnu_ld_CXX 22061 22062# Flag that allows shared libraries with undefined symbols to be built. 22063allow_undefined_flag=$lt_allow_undefined_flag_CXX 22064 22065# Flag that enforces no undefined symbols. 22066no_undefined_flag=$lt_no_undefined_flag_CXX 22067 22068# Flag to hardcode \$libdir into a binary during linking. 22069# This must work even if \$libdir does not exist 22070hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22071 22072# Whether we need a single "-rpath" flag with a separated argument. 22073hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22074 22075# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22076# DIR into the resulting binary. 22077hardcode_direct=$hardcode_direct_CXX 22078 22079# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22080# DIR into the resulting binary and the resulting library dependency is 22081# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22082# library is relocated. 22083hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22084 22085# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22086# into the resulting binary. 22087hardcode_minus_L=$hardcode_minus_L_CXX 22088 22089# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22090# into the resulting binary. 22091hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22092 22093# Set to "yes" if building a shared library automatically hardcodes DIR 22094# into the library and all subsequent libraries and executables linked 22095# against it. 22096hardcode_automatic=$hardcode_automatic_CXX 22097 22098# Set to yes if linker adds runtime paths of dependent libraries 22099# to runtime path list. 22100inherit_rpath=$inherit_rpath_CXX 22101 22102# Whether libtool must link a program against all its dependency libraries. 22103link_all_deplibs=$link_all_deplibs_CXX 22104 22105# Set to "yes" if exported symbols are required. 22106always_export_symbols=$always_export_symbols_CXX 22107 22108# The commands to list exported symbols. 22109export_symbols_cmds=$lt_export_symbols_cmds_CXX 22110 22111# Symbols that should not be listed in the preloaded symbols. 22112exclude_expsyms=$lt_exclude_expsyms_CXX 22113 22114# Symbols that must always be exported. 22115include_expsyms=$lt_include_expsyms_CXX 22116 22117# Commands necessary for linking programs (against libraries) with templates. 22118prelink_cmds=$lt_prelink_cmds_CXX 22119 22120# Commands necessary for finishing linking programs. 22121postlink_cmds=$lt_postlink_cmds_CXX 22122 22123# Specify filename containing input files. 22124file_list_spec=$lt_file_list_spec_CXX 22125 22126# How to hardcode a shared library path into an executable. 22127hardcode_action=$hardcode_action_CXX 22128 22129# The directories searched by this compiler when creating a shared library. 22130compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22131 22132# Dependencies to place before and after the objects being linked to 22133# create a shared library. 22134predep_objects=$lt_predep_objects_CXX 22135postdep_objects=$lt_postdep_objects_CXX 22136predeps=$lt_predeps_CXX 22137postdeps=$lt_postdeps_CXX 22138 22139# The library search path used internally by the compiler when linking 22140# a shared library. 22141compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22142 22143# ### END LIBTOOL TAG CONFIG: CXX 22144_LT_EOF 22145 22146 ;; 22147 22148 esac 22149done # for ac_tag 22150 22151 22152as_fn_exit 0 22153_ACEOF 22154ac_clean_files=$ac_clean_files_save 22155 22156test $ac_write_fail = 0 || 22157 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22158 22159 22160# configure is writing to config.log, and then calls config.status. 22161# config.status does its own redirection, appending to config.log. 22162# Unfortunately, on DOS this fails, as config.log is still kept open 22163# by configure, so config.status won't be able to write to it; its 22164# output is simply discarded. So we exec the FD to /dev/null, 22165# effectively closing config.log, so it can be properly (re)opened and 22166# appended to by config.status. When coming back to configure, we 22167# need to make the FD available again. 22168if test "$no_create" != yes; then 22169 ac_cs_success=: 22170 ac_config_status_args= 22171 test "$silent" = yes && 22172 ac_config_status_args="$ac_config_status_args --quiet" 22173 exec 5>/dev/null 22174 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22175 exec 5>>config.log 22176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22177 # would make configure fail if this is the last instruction. 22178 $ac_cs_success || as_fn_exit 1 22179fi 22180if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22182$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22183fi 22184 22185 22186# ------------------------------------------------------------------------------ 22187 22188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 22189 prefix: ${prefix} 22190 exec_prefix: ${exec_prefix} 22191 sysconfdir: ${sysconfdir} 22192 datadir: ${datadir} 22193 includedir: ${includedir} 22194 bindir: ${bindir} 22195 libdir: ${libdir} 22196 22197 rootprefix: ${rootprefix} 22198 rootlibdir: ${rootlibdir} 22199 rootlibexecdir: ${rootlibexecdir} 22200 datarootdir: ${datarootdir} 22201 rootrundir: ${rootrundir} 22202 22203 udevconfdir: ${udevconfdir} 22204 udevconffile: ${udevconffile} 22205 udevhwdbdir: ${udevhwdbdir} 22206 udevhwdbbin: ${udevhwdbbin} 22207 udevlibexecdir: ${udevlibexecdir} 22208 udevkeymapdir: ${udevkeymapdir} 22209 udevkeymapforceredir: ${udevkeymapforceredir} 22210 udevrulesdir: ${udevrulesdir} 22211 22212 pkgconfiglibdir: ${libdir}/pkgconfig 22213 sharepkgconfigdir ${datadir}/pkgconfig 22214 22215 girdir ${datadir}/gir-1.0 22216 typelibsdir ${libdir}/girepository-1.0 22217" >&5 22218$as_echo " 22219 prefix: ${prefix} 22220 exec_prefix: ${exec_prefix} 22221 sysconfdir: ${sysconfdir} 22222 datadir: ${datadir} 22223 includedir: ${includedir} 22224 bindir: ${bindir} 22225 libdir: ${libdir} 22226 22227 rootprefix: ${rootprefix} 22228 rootlibdir: ${rootlibdir} 22229 rootlibexecdir: ${rootlibexecdir} 22230 datarootdir: ${datarootdir} 22231 rootrundir: ${rootrundir} 22232 22233 udevconfdir: ${udevconfdir} 22234 udevconffile: ${udevconffile} 22235 udevhwdbdir: ${udevhwdbdir} 22236 udevhwdbbin: ${udevhwdbbin} 22237 udevlibexecdir: ${udevlibexecdir} 22238 udevkeymapdir: ${udevkeymapdir} 22239 udevkeymapforceredir: ${udevkeymapforceredir} 22240 udevrulesdir: ${udevrulesdir} 22241 22242 pkgconfiglibdir: ${libdir}/pkgconfig 22243 sharepkgconfigdir ${datadir}/pkgconfig 22244 22245 girdir ${datadir}/gir-1.0 22246 typelibsdir ${libdir}/girepository-1.0 22247" >&6; } 22248 22249# ------------------------------------------------------------------------------ 22250 22251if test -f src/keymap/check-keymaps.sh; then 22252 chmod +x src/keymap/check-keymaps.sh 22253fi 22254 22255if test -f src/keymap/keyboard-force-release.sh; then 22256 chmod +x src/keymap/keyboard-force-release.sh 22257fi 22258 22259