1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for bamf 0.5.4. 4# 5# Report bugs to <dx-team@canonical.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: dx-team@canonical.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: 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='bamf' 592PACKAGE_TARNAME='bamf' 593PACKAGE_VERSION='0.5.4' 594PACKAGE_STRING='bamf 0.5.4' 595PACKAGE_BUGREPORT='dx-team@canonical.com' 596PACKAGE_URL='' 597 598ac_unique_file="src/main.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_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639giomodulesdir 640BAMFDAEMON_LIBS 641BAMFDAEMON_CFLAGS 642GTK_LIBS 643GTK_CFLAGS 644COVERAGE_LDFLAGS 645COVERAGE_CFLAGS 646HAVE_GCOVR_FALSE 647HAVE_GCOVR_TRUE 648HAVE_LCOV_FALSE 649HAVE_LCOV_TRUE 650GCOVR 651GENHTML 652LCOV 653SHTOOL 654HAVE_GCOV_FALSE 655HAVE_GCOV_TRUE 656DBUS_RUN_SESSION 657XVFB 658ENABLE_HEADLESS_TESTS_FALSE 659ENABLE_HEADLESS_TESTS_TRUE 660PYTHON 661GTK_DOC_USE_REBASE_FALSE 662GTK_DOC_USE_REBASE_TRUE 663GTK_DOC_USE_LIBTOOL_FALSE 664GTK_DOC_USE_LIBTOOL_TRUE 665GTK_DOC_BUILD_PDF_FALSE 666GTK_DOC_BUILD_PDF_TRUE 667GTK_DOC_BUILD_HTML_FALSE 668GTK_DOC_BUILD_HTML_TRUE 669ENABLE_GTK_DOC_FALSE 670ENABLE_GTK_DOC_TRUE 671HAVE_GTK_DOC_FALSE 672HAVE_GTK_DOC_TRUE 673GTKDOC_DEPS_LIBS 674GTKDOC_DEPS_CFLAGS 675HTML_DIR 676GTKDOC_MKPDF 677GTKDOC_REBASE 678GTKDOC_CHECK_PATH 679GTKDOC_CHECK 680VALA_API_GEN 681HAVE_INTROSPECTION_FALSE 682HAVE_INTROSPECTION_TRUE 683INTROSPECTION_MAKEFILE 684INTROSPECTION_LIBS 685INTROSPECTION_CFLAGS 686INTROSPECTION_TYPELIBDIR 687INTROSPECTION_GIRDIR 688INTROSPECTION_GENERATE 689INTROSPECTION_COMPILER 690INTROSPECTION_SCANNER 691DBUSMENU_LIBS 692DBUSMENU_CFLAGS 693EXPORT_ACTIONS_MENU_FALSE 694EXPORT_ACTIONS_MENU_TRUE 695X_LIBS 696X_CFLAGS 697SN_LIBS 698SN_CFLAGS 699GTOP_LIBS 700GTOP_CFLAGS 701WNCK_LIBS 702WNCK_CFLAGS 703GDBUS_CODEGEN 704GLIB_LIBS 705GLIB_CFLAGS 706PKG_CONFIG_LIBDIR 707PKG_CONFIG_PATH 708PKG_CONFIG 709ACLOCAL_AMFLAFS 710CPP 711LT_SYS_LIBRARY_PATH 712OTOOL64 713OTOOL 714LIPO 715NMEDIT 716DSYMUTIL 717MANIFEST_TOOL 718RANLIB 719ac_ct_AR 720AR 721DLLTOOL 722OBJDUMP 723LN_S 724NM 725ac_ct_DUMPBIN 726DUMPBIN 727LD 728FGREP 729EGREP 730GREP 731SED 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740LIBTOOL 741MAINT 742MAINTAINER_MODE_FALSE 743MAINTAINER_MODE_TRUE 744WARN_CFLAGS 745am__fastdepCC_FALSE 746am__fastdepCC_TRUE 747CCDEPMODE 748am__nodep 749AMDEPBACKSLASH 750AMDEP_FALSE 751AMDEP_TRUE 752am__include 753DEPDIR 754OBJEXT 755EXEEXT 756ac_ct_CC 757CPPFLAGS 758LDFLAGS 759CFLAGS 760CC 761AM_BACKSLASH 762AM_DEFAULT_VERBOSITY 763AM_DEFAULT_V 764AM_V 765am__untar 766am__tar 767AMTAR 768am__leading_dot 769SET_MAKE 770AWK 771mkdir_p 772MKDIR_P 773INSTALL_STRIP_PROGRAM 774STRIP 775install_sh 776MAKEINFO 777AUTOHEADER 778AUTOMAKE 779AUTOCONF 780ACLOCAL 781VERSION 782PACKAGE 783CYGPATH_W 784am__isrc 785INSTALL_DATA 786INSTALL_SCRIPT 787INSTALL_PROGRAM 788LIBBAMF_SONAME 789LIBBAMF_VER 790target_alias 791host_alias 792build_alias 793LIBS 794ECHO_T 795ECHO_N 796ECHO_C 797DEFS 798mandir 799localedir 800libdir 801psdir 802pdfdir 803dvidir 804htmldir 805infodir 806docdir 807oldincludedir 808includedir 809runstatedir 810localstatedir 811sharedstatedir 812sysconfdir 813datadir 814datarootdir 815libexecdir 816sbindir 817bindir 818program_transform_name 819prefix 820exec_prefix 821PACKAGE_URL 822PACKAGE_BUGREPORT 823PACKAGE_STRING 824PACKAGE_VERSION 825PACKAGE_TARNAME 826PACKAGE_NAME 827PATH_SEPARATOR 828SHELL 829am__quote' 830ac_subst_files='' 831ac_user_opts=' 832enable_option_checking 833enable_silent_rules 834enable_compile_warnings 835enable_dependency_tracking 836enable_iso_c 837enable_maintainer_mode 838enable_static 839enable_shared 840with_pic 841enable_fast_install 842with_aix_soname 843with_gnu_ld 844with_sysroot 845enable_libtool_lock 846enable_export_actions_menu 847enable_introspection 848with_html_dir 849enable_gtk_doc 850enable_gtk_doc_html 851enable_gtk_doc_pdf 852enable_headless_tests 853enable_gcov 854enable_gtktest 855' 856 ac_precious_vars='build_alias 857host_alias 858target_alias 859CC 860CFLAGS 861LDFLAGS 862LIBS 863CPPFLAGS 864LT_SYS_LIBRARY_PATH 865CPP 866PKG_CONFIG 867PKG_CONFIG_PATH 868PKG_CONFIG_LIBDIR 869GLIB_CFLAGS 870GLIB_LIBS 871WNCK_CFLAGS 872WNCK_LIBS 873GTOP_CFLAGS 874GTOP_LIBS 875SN_CFLAGS 876SN_LIBS 877X_CFLAGS 878X_LIBS 879DBUSMENU_CFLAGS 880DBUSMENU_LIBS 881GTKDOC_DEPS_CFLAGS 882GTKDOC_DEPS_LIBS' 883 884 885# Initialize some variables set by options. 886ac_init_help= 887ac_init_version=false 888ac_unrecognized_opts= 889ac_unrecognized_sep= 890# The variables have the same names as the options, with 891# dashes changed to underlines. 892cache_file=/dev/null 893exec_prefix=NONE 894no_create= 895no_recursion= 896prefix=NONE 897program_prefix=NONE 898program_suffix=NONE 899program_transform_name=s,x,x, 900silent= 901site= 902srcdir= 903verbose= 904x_includes=NONE 905x_libraries=NONE 906 907# Installation directory options. 908# These are left unexpanded so users can "make install exec_prefix=/foo" 909# and all the variables that are supposed to be based on exec_prefix 910# by default will actually change. 911# Use braces instead of parens because sh, perl, etc. also accept them. 912# (The list follows the same order as the GNU Coding Standards.) 913bindir='${exec_prefix}/bin' 914sbindir='${exec_prefix}/sbin' 915libexecdir='${exec_prefix}/libexec' 916datarootdir='${prefix}/share' 917datadir='${datarootdir}' 918sysconfdir='${prefix}/etc' 919sharedstatedir='${prefix}/com' 920localstatedir='${prefix}/var' 921runstatedir='${localstatedir}/run' 922includedir='${prefix}/include' 923oldincludedir='/usr/include' 924docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 925infodir='${datarootdir}/info' 926htmldir='${docdir}' 927dvidir='${docdir}' 928pdfdir='${docdir}' 929psdir='${docdir}' 930libdir='${exec_prefix}/lib' 931localedir='${datarootdir}/locale' 932mandir='${datarootdir}/man' 933 934ac_prev= 935ac_dashdash= 936for ac_option 937do 938 # If the previous option needs an argument, assign it. 939 if test -n "$ac_prev"; then 940 eval $ac_prev=\$ac_option 941 ac_prev= 942 continue 943 fi 944 945 case $ac_option in 946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 947 *=) ac_optarg= ;; 948 *) ac_optarg=yes ;; 949 esac 950 951 # Accept the important Cygnus configure options, so we can diagnose typos. 952 953 case $ac_dashdash$ac_option in 954 --) 955 ac_dashdash=yes ;; 956 957 -bindir | --bindir | --bindi | --bind | --bin | --bi) 958 ac_prev=bindir ;; 959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 960 bindir=$ac_optarg ;; 961 962 -build | --build | --buil | --bui | --bu) 963 ac_prev=build_alias ;; 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 965 build_alias=$ac_optarg ;; 966 967 -cache-file | --cache-file | --cache-fil | --cache-fi \ 968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 969 ac_prev=cache_file ;; 970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 972 cache_file=$ac_optarg ;; 973 974 --config-cache | -C) 975 cache_file=config.cache ;; 976 977 -datadir | --datadir | --datadi | --datad) 978 ac_prev=datadir ;; 979 -datadir=* | --datadir=* | --datadi=* | --datad=*) 980 datadir=$ac_optarg ;; 981 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 983 | --dataroo | --dataro | --datar) 984 ac_prev=datarootdir ;; 985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 987 datarootdir=$ac_optarg ;; 988 989 -disable-* | --disable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=no ;; 1004 1005 -docdir | --docdir | --docdi | --doc | --do) 1006 ac_prev=docdir ;; 1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1008 docdir=$ac_optarg ;; 1009 1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1011 ac_prev=dvidir ;; 1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1013 dvidir=$ac_optarg ;; 1014 1015 -enable-* | --enable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=\$ac_optarg ;; 1030 1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec | --exe | --ex) 1034 ac_prev=exec_prefix ;; 1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1037 | --exec=* | --exe=* | --ex=*) 1038 exec_prefix=$ac_optarg ;; 1039 1040 -gas | --gas | --ga | --g) 1041 # Obsolete; use --with-gas. 1042 with_gas=yes ;; 1043 1044 -help | --help | --hel | --he | -h) 1045 ac_init_help=long ;; 1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1047 ac_init_help=recursive ;; 1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1049 ac_init_help=short ;; 1050 1051 -host | --host | --hos | --ho) 1052 ac_prev=host_alias ;; 1053 -host=* | --host=* | --hos=* | --ho=*) 1054 host_alias=$ac_optarg ;; 1055 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1057 ac_prev=htmldir ;; 1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1059 | --ht=*) 1060 htmldir=$ac_optarg ;; 1061 1062 -includedir | --includedir | --includedi | --included | --include \ 1063 | --includ | --inclu | --incl | --inc) 1064 ac_prev=includedir ;; 1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 includedir=$ac_optarg ;; 1068 1069 -infodir | --infodir | --infodi | --infod | --info | --inf) 1070 ac_prev=infodir ;; 1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1072 infodir=$ac_optarg ;; 1073 1074 -libdir | --libdir | --libdi | --libd) 1075 ac_prev=libdir ;; 1076 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1077 libdir=$ac_optarg ;; 1078 1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1080 | --libexe | --libex | --libe) 1081 ac_prev=libexecdir ;; 1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 | --libexe=* | --libex=* | --libe=*) 1084 libexecdir=$ac_optarg ;; 1085 1086 -localedir | --localedir | --localedi | --localed | --locale) 1087 ac_prev=localedir ;; 1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1089 localedir=$ac_optarg ;; 1090 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 | --localstate | --localstat | --localsta | --localst | --locals) 1093 ac_prev=localstatedir ;; 1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1096 localstatedir=$ac_optarg ;; 1097 1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 ac_prev=mandir ;; 1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 mandir=$ac_optarg ;; 1102 1103 -nfp | --nfp | --nf) 1104 # Obsolete; use --without-fp. 1105 with_fp=no ;; 1106 1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1108 | --no-cr | --no-c | -n) 1109 no_create=yes ;; 1110 1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1113 no_recursion=yes ;; 1114 1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1117 | --oldin | --oldi | --old | --ol | --o) 1118 ac_prev=oldincludedir ;; 1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1122 oldincludedir=$ac_optarg ;; 1123 1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1125 ac_prev=prefix ;; 1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1127 prefix=$ac_optarg ;; 1128 1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1130 | --program-pre | --program-pr | --program-p) 1131 ac_prev=program_prefix ;; 1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1134 program_prefix=$ac_optarg ;; 1135 1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1137 | --program-suf | --program-su | --program-s) 1138 ac_prev=program_suffix ;; 1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1141 program_suffix=$ac_optarg ;; 1142 1143 -program-transform-name | --program-transform-name \ 1144 | --program-transform-nam | --program-transform-na \ 1145 | --program-transform-n | --program-transform- \ 1146 | --program-transform | --program-transfor \ 1147 | --program-transfo | --program-transf \ 1148 | --program-trans | --program-tran \ 1149 | --progr-tra | --program-tr | --program-t) 1150 ac_prev=program_transform_name ;; 1151 -program-transform-name=* | --program-transform-name=* \ 1152 | --program-transform-nam=* | --program-transform-na=* \ 1153 | --program-transform-n=* | --program-transform-=* \ 1154 | --program-transform=* | --program-transfor=* \ 1155 | --program-transfo=* | --program-transf=* \ 1156 | --program-trans=* | --program-tran=* \ 1157 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 program_transform_name=$ac_optarg ;; 1159 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1161 ac_prev=pdfdir ;; 1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1163 pdfdir=$ac_optarg ;; 1164 1165 -psdir | --psdir | --psdi | --psd | --ps) 1166 ac_prev=psdir ;; 1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1168 psdir=$ac_optarg ;; 1169 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 | -silent | --silent | --silen | --sile | --sil) 1172 silent=yes ;; 1173 1174 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1175 | --runstate | --runstat | --runsta | --runst | --runs \ 1176 | --run | --ru | --r) 1177 ac_prev=runstatedir ;; 1178 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1179 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1180 | --run=* | --ru=* | --r=*) 1181 runstatedir=$ac_optarg ;; 1182 1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1184 ac_prev=sbindir ;; 1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1186 | --sbi=* | --sb=*) 1187 sbindir=$ac_optarg ;; 1188 1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1191 | --sharedst | --shareds | --shared | --share | --shar \ 1192 | --sha | --sh) 1193 ac_prev=sharedstatedir ;; 1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1197 | --sha=* | --sh=*) 1198 sharedstatedir=$ac_optarg ;; 1199 1200 -site | --site | --sit) 1201 ac_prev=site ;; 1202 -site=* | --site=* | --sit=*) 1203 site=$ac_optarg ;; 1204 1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1206 ac_prev=srcdir ;; 1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1208 srcdir=$ac_optarg ;; 1209 1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1211 | --syscon | --sysco | --sysc | --sys | --sy) 1212 ac_prev=sysconfdir ;; 1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1215 sysconfdir=$ac_optarg ;; 1216 1217 -target | --target | --targe | --targ | --tar | --ta | --t) 1218 ac_prev=target_alias ;; 1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1220 target_alias=$ac_optarg ;; 1221 1222 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1223 verbose=yes ;; 1224 1225 -version | --version | --versio | --versi | --vers | -V) 1226 ac_init_version=: ;; 1227 1228 -with-* | --with-*) 1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1232 as_fn_error $? "invalid package name: $ac_useropt" 1233 ac_useropt_orig=$ac_useropt 1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1235 case $ac_user_opts in 1236 *" 1237"with_$ac_useropt" 1238"*) ;; 1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1240 ac_unrecognized_sep=', ';; 1241 esac 1242 eval with_$ac_useropt=\$ac_optarg ;; 1243 1244 -without-* | --without-*) 1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1248 as_fn_error $? "invalid package name: $ac_useropt" 1249 ac_useropt_orig=$ac_useropt 1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1251 case $ac_user_opts in 1252 *" 1253"with_$ac_useropt" 1254"*) ;; 1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1256 ac_unrecognized_sep=', ';; 1257 esac 1258 eval with_$ac_useropt=no ;; 1259 1260 --x) 1261 # Obsolete; use --with-x. 1262 with_x=yes ;; 1263 1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1265 | --x-incl | --x-inc | --x-in | --x-i) 1266 ac_prev=x_includes ;; 1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1269 x_includes=$ac_optarg ;; 1270 1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1273 ac_prev=x_libraries ;; 1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1276 x_libraries=$ac_optarg ;; 1277 1278 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1279Try \`$0 --help' for more information" 1280 ;; 1281 1282 *=*) 1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1284 # Reject names that are not valid shell variable names. 1285 case $ac_envvar in #( 1286 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1288 esac 1289 eval $ac_envvar=\$ac_optarg 1290 export $ac_envvar ;; 1291 1292 *) 1293 # FIXME: should be removed in autoconf 3.0. 1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1298 ;; 1299 1300 esac 1301done 1302 1303if test -n "$ac_prev"; then 1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1305 as_fn_error $? "missing argument to $ac_option" 1306fi 1307 1308if test -n "$ac_unrecognized_opts"; then 1309 case $enable_option_checking in 1310 no) ;; 1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1313 esac 1314fi 1315 1316# Check all directory arguments for consistency. 1317for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1318 datadir sysconfdir sharedstatedir localstatedir includedir \ 1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1320 libdir localedir mandir runstatedir 1321do 1322 eval ac_val=\$$ac_var 1323 # Remove trailing slashes. 1324 case $ac_val in 1325 */ ) 1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1327 eval $ac_var=\$ac_val;; 1328 esac 1329 # Be sure to have absolute directory names. 1330 case $ac_val in 1331 [\\/$]* | ?:[\\/]* ) continue;; 1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1333 esac 1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1335done 1336 1337# There might be people who depend on the old broken behavior: `$host' 1338# used to hold the argument of --host etc. 1339# FIXME: To remove some day. 1340build=$build_alias 1341host=$host_alias 1342target=$target_alias 1343 1344# FIXME: To remove some day. 1345if test "x$host_alias" != x; then 1346 if test "x$build_alias" = x; then 1347 cross_compiling=maybe 1348 elif test "x$build_alias" != "x$host_alias"; then 1349 cross_compiling=yes 1350 fi 1351fi 1352 1353ac_tool_prefix= 1354test -n "$host_alias" && ac_tool_prefix=$host_alias- 1355 1356test "$silent" = yes && exec 6>/dev/null 1357 1358 1359ac_pwd=`pwd` && test -n "$ac_pwd" && 1360ac_ls_di=`ls -di .` && 1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1362 as_fn_error $? "working directory cannot be determined" 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1364 as_fn_error $? "pwd does not report name of working directory" 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$as_myself" || 1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$as_myself" : 'X\(//\)[^/]' \| \ 1374 X"$as_myself" : 'X\(//\)$' \| \ 1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1376$as_echo X"$as_myself" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1408 pwd)` 1409# When building in place, set srcdir=. 1410if test "$ac_abs_confdir" = "$ac_pwd"; then 1411 srcdir=. 1412fi 1413# Remove unnecessary trailing slashes from srcdir. 1414# Double slashes in file names in object file debugging info 1415# mess up M-x gdb in Emacs. 1416case $srcdir in 1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1418esac 1419for ac_var in $ac_precious_vars; do 1420 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_env_${ac_var}_value=\$${ac_var} 1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1424done 1425 1426# 1427# Report the --help message. 1428# 1429if test "$ac_init_help" = "long"; then 1430 # Omit some internal or obsolete options to make the list less imposing. 1431 # This message is too long to be a string in the A/UX 3.1 sh. 1432 cat <<_ACEOF 1433\`configure' configures bamf 0.5.4 to adapt to many kinds of systems. 1434 1435Usage: $0 [OPTION]... [VAR=VALUE]... 1436 1437To assign environment variables (e.g., CC, CFLAGS...), specify them as 1438VAR=VALUE. See below for descriptions of some of the useful variables. 1439 1440Defaults for the options are specified in brackets. 1441 1442Configuration: 1443 -h, --help display this help and exit 1444 --help=short display options specific to this package 1445 --help=recursive display the short help of all the included packages 1446 -V, --version display version information and exit 1447 -q, --quiet, --silent do not print \`checking ...' messages 1448 --cache-file=FILE cache test results in FILE [disabled] 1449 -C, --config-cache alias for \`--cache-file=config.cache' 1450 -n, --no-create do not create output files 1451 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1452 1453Installation directories: 1454 --prefix=PREFIX install architecture-independent files in PREFIX 1455 [$ac_default_prefix] 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1457 [PREFIX] 1458 1459By default, \`make install' will install all the files in 1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1461an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1462for instance \`--prefix=\$HOME'. 1463 1464For better control, use the options below. 1465 1466Fine tuning of the installation directories: 1467 --bindir=DIR user executables [EPREFIX/bin] 1468 --sbindir=DIR system admin executables [EPREFIX/sbin] 1469 --libexecdir=DIR program executables [EPREFIX/libexec] 1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1473 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/bamf] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of bamf 0.5.4:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-silent-rules less verbose build output (undo: "make V=1") 1513 --disable-silent-rules verbose build output (undo: "make V=0") 1514 --enable-compile-warnings=[no/minimum/yes/maximum/error] 1515 Turn on compiler warnings 1516 --enable-dependency-tracking 1517 do not reject slow dependency extractors 1518 --disable-dependency-tracking 1519 speeds up one-time build 1520 --enable-iso-c Try to warn if code is not ISO C 1521 --enable-maintainer-mode 1522 enable make rules and dependencies not useful (and 1523 sometimes confusing) to the casual installer 1524 --enable-static[=PKGS] build static libraries [default=no] 1525 --enable-shared[=PKGS] build shared libraries [default=yes] 1526 --enable-fast-install[=PKGS] 1527 optimize for fast installation [default=yes] 1528 --disable-libtool-lock avoid locking (might break parallel builds) 1529 --enable-export-actions-menu=[no/yes] 1530 export window actions menus (requires dbusmenu) 1531 [default=no] 1532 --enable-introspection=[no/auto/yes] 1533 Enable introspection for this build 1534 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1535 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1536 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1537 --enable-headless-tests=[no/yes] 1538 enable headless test suite (requires Xvfb) 1539 [default=no] 1540 --enable-gcov enable coverage testing with gcov 1541 --disable-gtktest do not try to compile and run a test GTK+ program 1542 1543Optional Packages: 1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1547 both] 1548 --with-aix-soname=aix|svr4|both 1549 shared library versioning (aka "SONAME") variant to 1550 provide on AIX, [default=aix]. 1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1552 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1553 compiler's sysroot if not specified). 1554 --with-html-dir=PATH path to installed docs 1555 1556Some influential environment variables: 1557 CC C compiler command 1558 CFLAGS C compiler flags 1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1560 nonstandard directory <lib dir> 1561 LIBS libraries to pass to the linker, e.g. -l<library> 1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1563 you have headers in a nonstandard directory <include dir> 1564 LT_SYS_LIBRARY_PATH 1565 User-defined run-time library search path. 1566 CPP C preprocessor 1567 PKG_CONFIG path to pkg-config utility 1568 PKG_CONFIG_PATH 1569 directories to add to pkg-config's search path 1570 PKG_CONFIG_LIBDIR 1571 path overriding pkg-config's built-in search path 1572 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1573 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1574 WNCK_CFLAGS C compiler flags for WNCK, overriding pkg-config 1575 WNCK_LIBS linker flags for WNCK, overriding pkg-config 1576 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config 1577 GTOP_LIBS linker flags for GTOP, overriding pkg-config 1578 SN_CFLAGS C compiler flags for SN, overriding pkg-config 1579 SN_LIBS linker flags for SN, overriding pkg-config 1580 X_CFLAGS C compiler flags for X, overriding pkg-config 1581 X_LIBS linker flags for X, overriding pkg-config 1582 DBUSMENU_CFLAGS 1583 C compiler flags for DBUSMENU, overriding pkg-config 1584 DBUSMENU_LIBS 1585 linker flags for DBUSMENU, overriding pkg-config 1586 GTKDOC_DEPS_CFLAGS 1587 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1588 GTKDOC_DEPS_LIBS 1589 linker flags for GTKDOC_DEPS, overriding pkg-config 1590 1591Use these variables to override the choices made by `configure' or to help 1592it to find libraries and programs with nonstandard names/locations. 1593 1594Report bugs to <dx-team@canonical.com>. 1595_ACEOF 1596ac_status=$? 1597fi 1598 1599if test "$ac_init_help" = "recursive"; then 1600 # If there are subdirs, report their specific --help. 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1602 test -d "$ac_dir" || 1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1604 continue 1605 ac_builddir=. 1606 1607case "$ac_dir" in 1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609*) 1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1611 # A ".." for each directory in $ac_dir_suffix. 1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1613 case $ac_top_builddir_sub in 1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1616 esac ;; 1617esac 1618ac_abs_top_builddir=$ac_pwd 1619ac_abs_builddir=$ac_pwd$ac_dir_suffix 1620# for backward compatibility: 1621ac_top_builddir=$ac_top_build_prefix 1622 1623case $srcdir in 1624 .) # We are building in place. 1625 ac_srcdir=. 1626 ac_top_srcdir=$ac_top_builddir_sub 1627 ac_abs_top_srcdir=$ac_pwd ;; 1628 [\\/]* | ?:[\\/]* ) # Absolute name. 1629 ac_srcdir=$srcdir$ac_dir_suffix; 1630 ac_top_srcdir=$srcdir 1631 ac_abs_top_srcdir=$srcdir ;; 1632 *) # Relative name. 1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1634 ac_top_srcdir=$ac_top_build_prefix$srcdir 1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1636esac 1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1638 1639 cd "$ac_dir" || { ac_status=$?; continue; } 1640 # Check for guested configure. 1641 if test -f "$ac_srcdir/configure.gnu"; then 1642 echo && 1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1644 elif test -f "$ac_srcdir/configure"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure" --help=recursive 1647 else 1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1649 fi || ac_status=$? 1650 cd "$ac_pwd" || { ac_status=$?; break; } 1651 done 1652fi 1653 1654test -n "$ac_init_help" && exit $ac_status 1655if $ac_init_version; then 1656 cat <<\_ACEOF 1657bamf configure 0.5.4 1658generated by GNU Autoconf 2.69 1659 1660Copyright (C) 2012 Free Software Foundation, Inc. 1661This configure script is free software; the Free Software Foundation 1662gives unlimited permission to copy, distribute and modify it. 1663_ACEOF 1664 exit 1665fi 1666 1667## ------------------------ ## 1668## Autoconf initialization. ## 1669## ------------------------ ## 1670 1671# ac_fn_c_try_compile LINENO 1672# -------------------------- 1673# Try to compile conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_c_try_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext 1678 if { { ac_try="$ac_compile" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_compile") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest.$ac_objext; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_compile 1708 1709# ac_fn_c_try_link LINENO 1710# ----------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_c_try_link () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 rm -f conftest.$ac_objext conftest$ac_exeext 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { 1732 test -z "$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 } && test -s conftest$ac_exeext && { 1735 test "$cross_compiling" = yes || 1736 test -x conftest$ac_exeext 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1747 # interfere with the next link command; also delete a directory that is 1748 # left behind by Apple's compiler. We do this before executing the actions. 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_link 1754 1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1756# ------------------------------------------------------- 1757# Tests whether HEADER exists and can be compiled using the include files in 1758# INCLUDES, setting the cache variable VAR accordingly. 1759ac_fn_c_check_header_compile () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763$as_echo_n "checking for $2... " >&6; } 1764if eval \${$3+:} false; then : 1765 $as_echo_n "(cached) " >&6 1766else 1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1768/* end confdefs.h. */ 1769$4 1770#include <$2> 1771_ACEOF 1772if ac_fn_c_try_compile "$LINENO"; then : 1773 eval "$3=yes" 1774else 1775 eval "$3=no" 1776fi 1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1778fi 1779eval ac_res=\$$3 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781$as_echo "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_header_compile 1785 1786# ac_fn_c_try_cpp LINENO 1787# ---------------------- 1788# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1789ac_fn_c_try_cpp () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 if { { ac_try="$ac_cpp conftest.$ac_ext" 1793case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1800 ac_status=$? 1801 if test -s conftest.err; then 1802 grep -v '^ *+' conftest.err >conftest.er1 1803 cat conftest.er1 >&5 1804 mv -f conftest.er1 conftest.err 1805 fi 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } > conftest.i && { 1808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1809 test ! -s conftest.err 1810 }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=1 1817fi 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 as_fn_set_status $ac_retval 1820 1821} # ac_fn_c_try_cpp 1822 1823# ac_fn_c_try_run LINENO 1824# ---------------------- 1825# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1826# that executables *can* be run. 1827ac_fn_c_try_run () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 if { { ac_try="$ac_link" 1831case "(($ac_try" in 1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1833 *) ac_try_echo=$ac_try;; 1834esac 1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1836$as_echo "$ac_try_echo"; } >&5 1837 (eval "$ac_link") 2>&5 1838 ac_status=$? 1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1841 { { case "(($ac_try" in 1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1843 *) ac_try_echo=$ac_try;; 1844esac 1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1846$as_echo "$ac_try_echo"; } >&5 1847 (eval "$ac_try") 2>&5 1848 ac_status=$? 1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1850 test $ac_status = 0; }; }; then : 1851 ac_retval=0 1852else 1853 $as_echo "$as_me: program exited with status $ac_status" >&5 1854 $as_echo "$as_me: failed program was:" >&5 1855sed 's/^/| /' conftest.$ac_ext >&5 1856 1857 ac_retval=$ac_status 1858fi 1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 as_fn_set_status $ac_retval 1862 1863} # ac_fn_c_try_run 1864 1865# ac_fn_c_check_func LINENO FUNC VAR 1866# ---------------------------------- 1867# Tests whether FUNC exists, setting the cache variable VAR accordingly 1868ac_fn_c_check_func () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872$as_echo_n "checking for $2... " >&6; } 1873if eval \${$3+:} false; then : 1874 $as_echo_n "(cached) " >&6 1875else 1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877/* end confdefs.h. */ 1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1880#define $2 innocuous_$2 1881 1882/* System header to define __stub macros and hopefully few prototypes, 1883 which can conflict with char $2 (); below. 1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1885 <limits.h> exists even on freestanding compilers. */ 1886 1887#ifdef __STDC__ 1888# include <limits.h> 1889#else 1890# include <assert.h> 1891#endif 1892 1893#undef $2 1894 1895/* Override any GCC internal prototype to avoid an error. 1896 Use char because int might match the return type of a GCC 1897 builtin and then its argument prototype would still apply. */ 1898#ifdef __cplusplus 1899extern "C" 1900#endif 1901char $2 (); 1902/* The GNU C library defines this for functions which it implements 1903 to always fail with ENOSYS. Some functions are actually named 1904 something starting with __ and the normal name is an alias. */ 1905#if defined __stub_$2 || defined __stub___$2 1906choke me 1907#endif 1908 1909int 1910main () 1911{ 1912return $2 (); 1913 ; 1914 return 0; 1915} 1916_ACEOF 1917if ac_fn_c_try_link "$LINENO"; then : 1918 eval "$3=yes" 1919else 1920 eval "$3=no" 1921fi 1922rm -f core conftest.err conftest.$ac_objext \ 1923 conftest$ac_exeext conftest.$ac_ext 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 1930} # ac_fn_c_check_func 1931cat >config.log <<_ACEOF 1932This file contains any messages produced by compilers while 1933running configure, to aid debugging if configure makes a mistake. 1934 1935It was created by bamf $as_me 0.5.4, which was 1936generated by GNU Autoconf 2.69. Invocation command line was 1937 1938 $ $0 $@ 1939 1940_ACEOF 1941exec 5>>config.log 1942{ 1943cat <<_ASUNAME 1944## --------- ## 1945## Platform. ## 1946## --------- ## 1947 1948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1949uname -m = `(uname -m) 2>/dev/null || echo unknown` 1950uname -r = `(uname -r) 2>/dev/null || echo unknown` 1951uname -s = `(uname -s) 2>/dev/null || echo unknown` 1952uname -v = `(uname -v) 2>/dev/null || echo unknown` 1953 1954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1955/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1956 1957/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1958/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1960/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1961/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1962/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1963/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1964 1965_ASUNAME 1966 1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1968for as_dir in $PATH 1969do 1970 IFS=$as_save_IFS 1971 test -z "$as_dir" && as_dir=. 1972 $as_echo "PATH: $as_dir" 1973 done 1974IFS=$as_save_IFS 1975 1976} >&5 1977 1978cat >&5 <<_ACEOF 1979 1980 1981## ----------- ## 1982## Core tests. ## 1983## ----------- ## 1984 1985_ACEOF 1986 1987 1988# Keep a trace of the command line. 1989# Strip out --no-create and --no-recursion so they do not pile up. 1990# Strip out --silent because we don't want to record it for future runs. 1991# Also quote any args containing shell meta-characters. 1992# Make two passes to allow for proper duplicate-argument suppression. 1993ac_configure_args= 1994ac_configure_args0= 1995ac_configure_args1= 1996ac_must_keep_next=false 1997for ac_pass in 1 2 1998do 1999 for ac_arg 2000 do 2001 case $ac_arg in 2002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2004 | -silent | --silent | --silen | --sile | --sil) 2005 continue ;; 2006 *\'*) 2007 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2008 esac 2009 case $ac_pass in 2010 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2011 2) 2012 as_fn_append ac_configure_args1 " '$ac_arg'" 2013 if test $ac_must_keep_next = true; then 2014 ac_must_keep_next=false # Got value, back to normal. 2015 else 2016 case $ac_arg in 2017 *=* | --config-cache | -C | -disable-* | --disable-* \ 2018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2020 | -with-* | --with-* | -without-* | --without-* | --x) 2021 case "$ac_configure_args0 " in 2022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2023 esac 2024 ;; 2025 -* ) ac_must_keep_next=true ;; 2026 esac 2027 fi 2028 as_fn_append ac_configure_args " '$ac_arg'" 2029 ;; 2030 esac 2031 done 2032done 2033{ ac_configure_args0=; unset ac_configure_args0;} 2034{ ac_configure_args1=; unset ac_configure_args1;} 2035 2036# When interrupted or exit'd, cleanup temporary files, and complete 2037# config.log. We remove comments because anyway the quotes in there 2038# would cause problems or look ugly. 2039# WARNING: Use '\'' to represent an apostrophe within the trap. 2040# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2041trap 'exit_status=$? 2042 # Save into config.log some information that might help in debugging. 2043 { 2044 echo 2045 2046 $as_echo "## ---------------- ## 2047## Cache variables. ## 2048## ---------------- ##" 2049 echo 2050 # The following way of writing the cache mishandles newlines in values, 2051( 2052 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2053 eval ac_val=\$$ac_var 2054 case $ac_val in #( 2055 *${as_nl}*) 2056 case $ac_var in #( 2057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2058$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2059 esac 2060 case $ac_var in #( 2061 _ | IFS | as_nl) ;; #( 2062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2063 *) { eval $ac_var=; unset $ac_var;} ;; 2064 esac ;; 2065 esac 2066 done 2067 (set) 2>&1 | 2068 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2069 *${as_nl}ac_space=\ *) 2070 sed -n \ 2071 "s/'\''/'\''\\\\'\'''\''/g; 2072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2073 ;; #( 2074 *) 2075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2076 ;; 2077 esac | 2078 sort 2079) 2080 echo 2081 2082 $as_echo "## ----------------- ## 2083## Output variables. ## 2084## ----------------- ##" 2085 echo 2086 for ac_var in $ac_subst_vars 2087 do 2088 eval ac_val=\$$ac_var 2089 case $ac_val in 2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2091 esac 2092 $as_echo "$ac_var='\''$ac_val'\''" 2093 done | sort 2094 echo 2095 2096 if test -n "$ac_subst_files"; then 2097 $as_echo "## ------------------- ## 2098## File substitutions. ## 2099## ------------------- ##" 2100 echo 2101 for ac_var in $ac_subst_files 2102 do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in 2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2106 esac 2107 $as_echo "$ac_var='\''$ac_val'\''" 2108 done | sort 2109 echo 2110 fi 2111 2112 if test -s confdefs.h; then 2113 $as_echo "## ----------- ## 2114## confdefs.h. ## 2115## ----------- ##" 2116 echo 2117 cat confdefs.h 2118 echo 2119 fi 2120 test "$ac_signal" != 0 && 2121 $as_echo "$as_me: caught signal $ac_signal" 2122 $as_echo "$as_me: exit $exit_status" 2123 } >&5 2124 rm -f core *.core core.conftest.* && 2125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2126 exit $exit_status 2127' 0 2128for ac_signal in 1 2 13 15; do 2129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2130done 2131ac_signal=0 2132 2133# confdefs.h avoids OS command line length limits that DEFS can exceed. 2134rm -f -r conftest* confdefs.h 2135 2136$as_echo "/* confdefs.h */" > confdefs.h 2137 2138# Predefined preprocessor variables. 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_NAME "$PACKAGE_NAME" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_VERSION "$PACKAGE_VERSION" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_STRING "$PACKAGE_STRING" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2158_ACEOF 2159 2160cat >>confdefs.h <<_ACEOF 2161#define PACKAGE_URL "$PACKAGE_URL" 2162_ACEOF 2163 2164 2165# Let the site file select an alternate cache file if it wants to. 2166# Prefer an explicitly selected file to automatically selected ones. 2167ac_site_file1=NONE 2168ac_site_file2=NONE 2169if test -n "$CONFIG_SITE"; then 2170 # We do not want a PATH search for config.site. 2171 case $CONFIG_SITE in #(( 2172 -*) ac_site_file1=./$CONFIG_SITE;; 2173 */*) ac_site_file1=$CONFIG_SITE;; 2174 *) ac_site_file1=./$CONFIG_SITE;; 2175 esac 2176elif test "x$prefix" != xNONE; then 2177 ac_site_file1=$prefix/share/config.site 2178 ac_site_file2=$prefix/etc/config.site 2179else 2180 ac_site_file1=$ac_default_prefix/share/config.site 2181 ac_site_file2=$ac_default_prefix/etc/config.site 2182fi 2183for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2184do 2185 test "x$ac_site_file" = xNONE && continue 2186 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2188$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2189 sed 's/^/| /' "$ac_site_file" >&5 2190 . "$ac_site_file" \ 2191 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2193as_fn_error $? "failed to load site script $ac_site_file 2194See \`config.log' for more details" "$LINENO" 5; } 2195 fi 2196done 2197 2198if test -r "$cache_file"; then 2199 # Some versions of bash will fail to source /dev/null (special files 2200 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2201 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2203$as_echo "$as_me: loading cache $cache_file" >&6;} 2204 case $cache_file in 2205 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2206 *) . "./$cache_file";; 2207 esac 2208 fi 2209else 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2211$as_echo "$as_me: creating cache $cache_file" >&6;} 2212 >$cache_file 2213fi 2214 2215# Check that the precious variables saved in the cache have kept the same 2216# value. 2217ac_cache_corrupted=false 2218for ac_var in $ac_precious_vars; do 2219 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2220 eval ac_new_set=\$ac_env_${ac_var}_set 2221 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2222 eval ac_new_val=\$ac_env_${ac_var}_value 2223 case $ac_old_set,$ac_new_set in 2224 set,) 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2226$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2227 ac_cache_corrupted=: ;; 2228 ,set) 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2230$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2231 ac_cache_corrupted=: ;; 2232 ,);; 2233 *) 2234 if test "x$ac_old_val" != "x$ac_new_val"; then 2235 # differences in whitespace do not lead to failure. 2236 ac_old_val_w=`echo x $ac_old_val` 2237 ac_new_val_w=`echo x $ac_new_val` 2238 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2240$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2241 ac_cache_corrupted=: 2242 else 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2244$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2245 eval $ac_var=\$ac_old_val 2246 fi 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2248$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2250$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2251 fi;; 2252 esac 2253 # Pass precious variables to config.status. 2254 if test "$ac_new_set" = set; then 2255 case $ac_new_val in 2256 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2257 *) ac_arg=$ac_var=$ac_new_val ;; 2258 esac 2259 case " $ac_configure_args " in 2260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2261 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2262 esac 2263 fi 2264done 2265if $ac_cache_corrupted; then 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2269$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2270 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2271fi 2272## -------------------- ## 2273## Main body of script. ## 2274## -------------------- ## 2275 2276ac_ext=c 2277ac_cpp='$CPP $CPPFLAGS' 2278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2280ac_compiler_gnu=$ac_cv_c_compiler_gnu 2281 2282 2283 2284LIBBAMF_VER=3 2285 2286LIBBAMF_SONAME=2:0:0 2287 2288 2289 2290ac_config_headers="$ac_config_headers config.h" 2291 2292 2293am__api_version='1.16' 2294 2295ac_aux_dir= 2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2297 if test -f "$ac_dir/install-sh"; then 2298 ac_aux_dir=$ac_dir 2299 ac_install_sh="$ac_aux_dir/install-sh -c" 2300 break 2301 elif test -f "$ac_dir/install.sh"; then 2302 ac_aux_dir=$ac_dir 2303 ac_install_sh="$ac_aux_dir/install.sh -c" 2304 break 2305 elif test -f "$ac_dir/shtool"; then 2306 ac_aux_dir=$ac_dir 2307 ac_install_sh="$ac_aux_dir/shtool install -c" 2308 break 2309 fi 2310done 2311if test -z "$ac_aux_dir"; then 2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2313fi 2314 2315# These three variables are undocumented and unsupported, 2316# and are intended to be withdrawn in a future Autoconf release. 2317# They can cause serious problems if a builder's source tree is in a directory 2318# whose full name contains unusual characters. 2319ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2320ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2321ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2322 2323 2324# Find a good install program. We prefer a C program (faster), 2325# so one script is as good as another. But avoid the broken or 2326# incompatible versions: 2327# SysV /etc/install, /usr/sbin/install 2328# SunOS /usr/etc/install 2329# IRIX /sbin/install 2330# AIX /bin/install 2331# AmigaOS /C/install, which installs bootblocks on floppy discs 2332# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2333# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2334# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2335# OS/2's system install, which has a completely different semantic 2336# ./install, which can be erroneously created by make from ./install.sh. 2337# Reject install programs that cannot install multiple files. 2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2339$as_echo_n "checking for a BSD-compatible install... " >&6; } 2340if test -z "$INSTALL"; then 2341if ${ac_cv_path_install+:} false; then : 2342 $as_echo_n "(cached) " >&6 2343else 2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345for as_dir in $PATH 2346do 2347 IFS=$as_save_IFS 2348 test -z "$as_dir" && as_dir=. 2349 # Account for people who put trailing slashes in PATH elements. 2350case $as_dir/ in #(( 2351 ./ | .// | /[cC]/* | \ 2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2353 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2354 /usr/ucb/* ) ;; 2355 *) 2356 # OSF1 and SCO ODT 3.0 have their own names for install. 2357 # Don't use installbsd from OSF since it installs stuff as root 2358 # by default. 2359 for ac_prog in ginstall scoinst install; do 2360 for ac_exec_ext in '' $ac_executable_extensions; do 2361 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2362 if test $ac_prog = install && 2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2364 # AIX install. It has an incompatible calling convention. 2365 : 2366 elif test $ac_prog = install && 2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2368 # program-specific install script used by HP pwplus--don't use. 2369 : 2370 else 2371 rm -rf conftest.one conftest.two conftest.dir 2372 echo one > conftest.one 2373 echo two > conftest.two 2374 mkdir conftest.dir 2375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2376 test -s conftest.one && test -s conftest.two && 2377 test -s conftest.dir/conftest.one && 2378 test -s conftest.dir/conftest.two 2379 then 2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2381 break 3 2382 fi 2383 fi 2384 fi 2385 done 2386 done 2387 ;; 2388esac 2389 2390 done 2391IFS=$as_save_IFS 2392 2393rm -rf conftest.one conftest.two conftest.dir 2394 2395fi 2396 if test "${ac_cv_path_install+set}" = set; then 2397 INSTALL=$ac_cv_path_install 2398 else 2399 # As a last resort, use the slow shell script. Don't cache a 2400 # value for INSTALL within a source directory, because that will 2401 # break other packages using the cache if that directory is 2402 # removed, or if the value is a relative name. 2403 INSTALL=$ac_install_sh 2404 fi 2405fi 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2407$as_echo "$INSTALL" >&6; } 2408 2409# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2410# It thinks the first close brace ends the variable substitution. 2411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2412 2413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2414 2415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2416 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2418$as_echo_n "checking whether build environment is sane... " >&6; } 2419# Reject unsafe characters in $srcdir or the absolute working directory 2420# name. Accept space and tab only in the latter. 2421am_lf=' 2422' 2423case `pwd` in 2424 *[\\\"\#\$\&\'\`$am_lf]*) 2425 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2426esac 2427case $srcdir in 2428 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2429 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2430esac 2431 2432# Do 'set' in a subshell so we don't clobber the current shell's 2433# arguments. Must try -L first in case configure is actually a 2434# symlink; some systems play weird games with the mod time of symlinks 2435# (eg FreeBSD returns the mod time of the symlink's containing 2436# directory). 2437if ( 2438 am_has_slept=no 2439 for am_try in 1 2; do 2440 echo "timestamp, slept: $am_has_slept" > conftest.file 2441 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2442 if test "$*" = "X"; then 2443 # -L didn't work. 2444 set X `ls -t "$srcdir/configure" conftest.file` 2445 fi 2446 if test "$*" != "X $srcdir/configure conftest.file" \ 2447 && test "$*" != "X conftest.file $srcdir/configure"; then 2448 2449 # If neither matched, then we have a broken ls. This can happen 2450 # if, for instance, CONFIG_SHELL is bash and it inherits a 2451 # broken ls alias from the environment. This has actually 2452 # happened. Such a system could not be considered "sane". 2453 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2454 alias in your environment" "$LINENO" 5 2455 fi 2456 if test "$2" = conftest.file || test $am_try -eq 2; then 2457 break 2458 fi 2459 # Just in case. 2460 sleep 1 2461 am_has_slept=yes 2462 done 2463 test "$2" = conftest.file 2464 ) 2465then 2466 # Ok. 2467 : 2468else 2469 as_fn_error $? "newly created file is older than distributed files! 2470Check your system clock" "$LINENO" 5 2471fi 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2473$as_echo "yes" >&6; } 2474# If we didn't sleep, we still need to ensure time stamps of config.status and 2475# generated files are strictly newer. 2476am_sleep_pid= 2477if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2478 ( sleep 1 ) & 2479 am_sleep_pid=$! 2480fi 2481 2482rm -f conftest.file 2483 2484test "$program_prefix" != NONE && 2485 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2486# Use a double $ so make ignores it. 2487test "$program_suffix" != NONE && 2488 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2489# Double any \ or $. 2490# By default was `s,x,x', remove it if useless. 2491ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2492program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2493 2494# Expand $ac_aux_dir to an absolute path. 2495am_aux_dir=`cd "$ac_aux_dir" && pwd` 2496 2497if test x"${MISSING+set}" != xset; then 2498 case $am_aux_dir in 2499 *\ * | *\ *) 2500 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2501 *) 2502 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2503 esac 2504fi 2505# Use eval to expand $SHELL 2506if eval "$MISSING --is-lightweight"; then 2507 am_missing_run="$MISSING " 2508else 2509 am_missing_run= 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2511$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2512fi 2513 2514if test x"${install_sh+set}" != xset; then 2515 case $am_aux_dir in 2516 *\ * | *\ *) 2517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2518 *) 2519 install_sh="\${SHELL} $am_aux_dir/install-sh" 2520 esac 2521fi 2522 2523# Installed binaries are usually stripped using 'strip' when the user 2524# run "make install-strip". However 'strip' might not be the right 2525# tool to use in cross-compilation environments, therefore Automake 2526# will honor the 'STRIP' environment variable to overrule this program. 2527if test "$cross_compiling" != no; then 2528 if test -n "$ac_tool_prefix"; then 2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2530set dummy ${ac_tool_prefix}strip; ac_word=$2 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2532$as_echo_n "checking for $ac_word... " >&6; } 2533if ${ac_cv_prog_STRIP+:} false; then : 2534 $as_echo_n "(cached) " >&6 2535else 2536 if test -n "$STRIP"; then 2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2538else 2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2548 break 2 2549 fi 2550done 2551 done 2552IFS=$as_save_IFS 2553 2554fi 2555fi 2556STRIP=$ac_cv_prog_STRIP 2557if test -n "$STRIP"; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2559$as_echo "$STRIP" >&6; } 2560else 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2562$as_echo "no" >&6; } 2563fi 2564 2565 2566fi 2567if test -z "$ac_cv_prog_STRIP"; then 2568 ac_ct_STRIP=$STRIP 2569 # Extract the first word of "strip", so it can be a program name with args. 2570set dummy strip; ac_word=$2 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2572$as_echo_n "checking for $ac_word... " >&6; } 2573if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test -n "$ac_ct_STRIP"; then 2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2578else 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2586 ac_cv_prog_ac_ct_STRIP="strip" 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2588 break 2 2589 fi 2590done 2591 done 2592IFS=$as_save_IFS 2593 2594fi 2595fi 2596ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2597if test -n "$ac_ct_STRIP"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2599$as_echo "$ac_ct_STRIP" >&6; } 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603fi 2604 2605 if test "x$ac_ct_STRIP" = x; then 2606 STRIP=":" 2607 else 2608 case $cross_compiling:$ac_tool_warned in 2609yes:) 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2612ac_tool_warned=yes ;; 2613esac 2614 STRIP=$ac_ct_STRIP 2615 fi 2616else 2617 STRIP="$ac_cv_prog_STRIP" 2618fi 2619 2620fi 2621INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2622 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2624$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2625if test -z "$MKDIR_P"; then 2626 if ${ac_cv_path_mkdir+:} false; then : 2627 $as_echo_n "(cached) " >&6 2628else 2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_prog in mkdir gmkdir; do 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2637 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2638 'mkdir (GNU coreutils) '* | \ 2639 'mkdir (coreutils) '* | \ 2640 'mkdir (fileutils) '4.1*) 2641 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2642 break 3;; 2643 esac 2644 done 2645 done 2646 done 2647IFS=$as_save_IFS 2648 2649fi 2650 2651 test -d ./--version && rmdir ./--version 2652 if test "${ac_cv_path_mkdir+set}" = set; then 2653 MKDIR_P="$ac_cv_path_mkdir -p" 2654 else 2655 # As a last resort, use the slow shell script. Don't cache a 2656 # value for MKDIR_P within a source directory, because that will 2657 # break other packages using the cache if that directory is 2658 # removed, or if the value is a relative name. 2659 MKDIR_P="$ac_install_sh -d" 2660 fi 2661fi 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2663$as_echo "$MKDIR_P" >&6; } 2664 2665for ac_prog in gawk mawk nawk awk 2666do 2667 # Extract the first word of "$ac_prog", so it can be a program name with args. 2668set dummy $ac_prog; ac_word=$2 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2670$as_echo_n "checking for $ac_word... " >&6; } 2671if ${ac_cv_prog_AWK+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if test -n "$AWK"; then 2675 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 for ac_exec_ext in '' $ac_executable_extensions; do 2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2684 ac_cv_prog_AWK="$ac_prog" 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2686 break 2 2687 fi 2688done 2689 done 2690IFS=$as_save_IFS 2691 2692fi 2693fi 2694AWK=$ac_cv_prog_AWK 2695if test -n "$AWK"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2697$as_echo "$AWK" >&6; } 2698else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2700$as_echo "no" >&6; } 2701fi 2702 2703 2704 test -n "$AWK" && break 2705done 2706 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2708$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2709set x ${MAKE-make} 2710ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2711if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 cat >conftest.make <<\_ACEOF 2715SHELL = /bin/sh 2716all: 2717 @echo '@@@%%%=$(MAKE)=@@@%%%' 2718_ACEOF 2719# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2720case `${MAKE-make} -f conftest.make 2>/dev/null` in 2721 *@@@%%%=?*=@@@%%%*) 2722 eval ac_cv_prog_make_${ac_make}_set=yes;; 2723 *) 2724 eval ac_cv_prog_make_${ac_make}_set=no;; 2725esac 2726rm -f conftest.make 2727fi 2728if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2730$as_echo "yes" >&6; } 2731 SET_MAKE= 2732else 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2734$as_echo "no" >&6; } 2735 SET_MAKE="MAKE=${MAKE-make}" 2736fi 2737 2738rm -rf .tst 2>/dev/null 2739mkdir .tst 2>/dev/null 2740if test -d .tst; then 2741 am__leading_dot=. 2742else 2743 am__leading_dot=_ 2744fi 2745rmdir .tst 2>/dev/null 2746 2747# Check whether --enable-silent-rules was given. 2748if test "${enable_silent_rules+set}" = set; then : 2749 enableval=$enable_silent_rules; 2750fi 2751 2752case $enable_silent_rules in # ((( 2753 yes) AM_DEFAULT_VERBOSITY=0;; 2754 no) AM_DEFAULT_VERBOSITY=1;; 2755 *) AM_DEFAULT_VERBOSITY=1;; 2756esac 2757am_make=${MAKE-make} 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2759$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2760if ${am_cv_make_support_nested_variables+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 if $as_echo 'TRUE=$(BAR$(V)) 2764BAR0=false 2765BAR1=true 2766V=1 2767am__doit: 2768 @$(TRUE) 2769.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2770 am_cv_make_support_nested_variables=yes 2771else 2772 am_cv_make_support_nested_variables=no 2773fi 2774fi 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2776$as_echo "$am_cv_make_support_nested_variables" >&6; } 2777if test $am_cv_make_support_nested_variables = yes; then 2778 AM_V='$(V)' 2779 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2780else 2781 AM_V=$AM_DEFAULT_VERBOSITY 2782 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2783fi 2784AM_BACKSLASH='\' 2785 2786if test "`cd $srcdir && pwd`" != "`pwd`"; then 2787 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2788 # is not polluted with repeated "-I." 2789 am__isrc=' -I$(srcdir)' 2790 # test to see if srcdir already configured 2791 if test -f $srcdir/config.status; then 2792 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2793 fi 2794fi 2795 2796# test whether we have cygpath 2797if test -z "$CYGPATH_W"; then 2798 if (cygpath --version) >/dev/null 2>/dev/null; then 2799 CYGPATH_W='cygpath -w' 2800 else 2801 CYGPATH_W=echo 2802 fi 2803fi 2804 2805 2806# Define the identity of the package. 2807 PACKAGE='bamf' 2808 VERSION='0.5.4' 2809 2810 2811cat >>confdefs.h <<_ACEOF 2812#define PACKAGE "$PACKAGE" 2813_ACEOF 2814 2815 2816cat >>confdefs.h <<_ACEOF 2817#define VERSION "$VERSION" 2818_ACEOF 2819 2820# Some tools Automake needs. 2821 2822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2823 2824 2825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2826 2827 2828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2829 2830 2831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2832 2833 2834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2835 2836# For better backward compatibility. To be removed once Automake 1.9.x 2837# dies out for good. For more background, see: 2838# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2839# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2840mkdir_p='$(MKDIR_P)' 2841 2842# We need awk for the "check" target (and possibly the TAP driver). The 2843# system "awk" is bad on some platforms. 2844# Always define AMTAR for backward compatibility. Yes, it's still used 2845# in the wild :-( We should find a proper way to deprecate it ... 2846AMTAR='$${TAR-tar}' 2847 2848 2849# We'll loop over all known methods to create a tar archive until one works. 2850_am_tools='gnutar pax cpio none' 2851 2852 2853 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 2855$as_echo_n "checking how to create a pax tar archive... " >&6; } 2856 2857 # Go ahead even if we have the value already cached. We do so because we 2858 # need to set the values for the 'am__tar' and 'am__untar' variables. 2859 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 2860 2861 for _am_tool in $_am_tools; do 2862 case $_am_tool in 2863 gnutar) 2864 for _am_tar in tar gnutar gtar; do 2865 { echo "$as_me:$LINENO: $_am_tar --version" >&5 2866 ($_am_tar --version) >&5 2>&5 2867 ac_status=$? 2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2869 (exit $ac_status); } && break 2870 done 2871 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 2872 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 2873 am__untar="$_am_tar -xf -" 2874 ;; 2875 plaintar) 2876 # Must skip GNU tar: if it does not support --format= it doesn't create 2877 # ustar tarball either. 2878 (tar --version) >/dev/null 2>&1 && continue 2879 am__tar='tar chf - "$$tardir"' 2880 am__tar_='tar chf - "$tardir"' 2881 am__untar='tar xf -' 2882 ;; 2883 pax) 2884 am__tar='pax -L -x pax -w "$$tardir"' 2885 am__tar_='pax -L -x pax -w "$tardir"' 2886 am__untar='pax -r' 2887 ;; 2888 cpio) 2889 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 2890 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 2891 am__untar='cpio -i -H pax -d' 2892 ;; 2893 none) 2894 am__tar=false 2895 am__tar_=false 2896 am__untar=false 2897 ;; 2898 esac 2899 2900 # If the value was cached, stop now. We just wanted to have am__tar 2901 # and am__untar set. 2902 test -n "${am_cv_prog_tar_pax}" && break 2903 2904 # tar/untar a dummy directory, and stop if the command works. 2905 rm -rf conftest.dir 2906 mkdir conftest.dir 2907 echo GrepMe > conftest.dir/file 2908 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 2909 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 2910 ac_status=$? 2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); } 2913 rm -rf conftest.dir 2914 if test -s conftest.tar; then 2915 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 2916 ($am__untar <conftest.tar) >&5 2>&5 2917 ac_status=$? 2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2919 (exit $ac_status); } 2920 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 2921 (cat conftest.dir/file) >&5 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); } 2925 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 2926 fi 2927 done 2928 rm -rf conftest.dir 2929 2930 if ${am_cv_prog_tar_pax+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 am_cv_prog_tar_pax=$_am_tool 2934fi 2935 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 2937$as_echo "$am_cv_prog_tar_pax" >&6; } 2938 2939 2940 2941 2942 2943 2944# POSIX will say in a future version that running "rm -f" with no argument 2945# is OK; and we want to be able to make that assumption in our Makefile 2946# recipes. So use an aggressive probe to check that the usage we want is 2947# actually supported "in the wild" to an acceptable degree. 2948# See automake bug#10828. 2949# To make any issue more visible, cause the running configure to be aborted 2950# by default if the 'rm' program in use doesn't match our expectations; the 2951# user can still override this though. 2952if rm -f && rm -fr && rm -rf; then : OK; else 2953 cat >&2 <<'END' 2954Oops! 2955 2956Your 'rm' program seems unable to run without file operands specified 2957on the command line, even when the '-f' option is present. This is contrary 2958to the behaviour of most rm programs out there, and not conforming with 2959the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2960 2961Please tell bug-automake@gnu.org about your system, including the value 2962of your $PATH and any error possibly output before this message. This 2963can help us improve future automake versions. 2964 2965END 2966 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2967 echo 'Configuration will proceed anyway, since you have set the' >&2 2968 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2969 echo >&2 2970 else 2971 cat >&2 <<'END' 2972Aborting the configuration process, to ensure you take notice of the issue. 2973 2974You can download and install GNU coreutils to get an 'rm' implementation 2975that behaves properly: <https://www.gnu.org/software/coreutils/>. 2976 2977If you want to complete the configuration process using your problematic 2978'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2979to "yes", and re-run configure. 2980 2981END 2982 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2983 fi 2984fi 2985 2986# Check whether --enable-silent-rules was given. 2987if test "${enable_silent_rules+set}" = set; then : 2988 enableval=$enable_silent_rules; 2989fi 2990 2991case $enable_silent_rules in # ((( 2992 yes) AM_DEFAULT_VERBOSITY=0;; 2993 no) AM_DEFAULT_VERBOSITY=1;; 2994 *) AM_DEFAULT_VERBOSITY=0;; 2995esac 2996am_make=${MAKE-make} 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2999if ${am_cv_make_support_nested_variables+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if $as_echo 'TRUE=$(BAR$(V)) 3003BAR0=false 3004BAR1=true 3005V=1 3006am__doit: 3007 @$(TRUE) 3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3009 am_cv_make_support_nested_variables=yes 3010else 3011 am_cv_make_support_nested_variables=no 3012fi 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3015$as_echo "$am_cv_make_support_nested_variables" >&6; } 3016if test $am_cv_make_support_nested_variables = yes; then 3017 AM_V='$(V)' 3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3019else 3020 AM_V=$AM_DEFAULT_VERBOSITY 3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3022fi 3023AM_BACKSLASH='\' 3024 3025 3026 3027 3028GNOME_COMMON_INIT 3029DEPDIR="${am__leading_dot}deps" 3030 3031ac_config_commands="$ac_config_commands depfiles" 3032 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3034$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3035cat > confinc.mk << 'END' 3036am__doit: 3037 @echo this is the am__doit target >confinc.out 3038.PHONY: am__doit 3039END 3040am__include="#" 3041am__quote= 3042# BSD make does it like this. 3043echo '.include "confinc.mk" # ignored' > confmf.BSD 3044# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3045echo 'include confinc.mk # ignored' > confmf.GNU 3046_am_result=no 3047for s in GNU BSD; do 3048 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3049 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } 3053 case $?:`cat confinc.out 2>/dev/null` in #( 3054 '0:this is the am__doit target') : 3055 case $s in #( 3056 BSD) : 3057 am__include='.include' am__quote='"' ;; #( 3058 *) : 3059 am__include='include' am__quote='' ;; 3060esac ;; #( 3061 *) : 3062 ;; 3063esac 3064 if test "$am__include" != "#"; then 3065 _am_result="yes ($s style)" 3066 break 3067 fi 3068done 3069rm -f confinc.* confmf.* 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3071$as_echo "${_am_result}" >&6; } 3072 3073# Check whether --enable-dependency-tracking was given. 3074if test "${enable_dependency_tracking+set}" = set; then : 3075 enableval=$enable_dependency_tracking; 3076fi 3077 3078if test "x$enable_dependency_tracking" != xno; then 3079 am_depcomp="$ac_aux_dir/depcomp" 3080 AMDEPBACKSLASH='\' 3081 am__nodep='_no' 3082fi 3083 if test "x$enable_dependency_tracking" != xno; then 3084 AMDEP_TRUE= 3085 AMDEP_FALSE='#' 3086else 3087 AMDEP_TRUE='#' 3088 AMDEP_FALSE= 3089fi 3090 3091 3092ac_ext=c 3093ac_cpp='$CPP $CPPFLAGS' 3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3096ac_compiler_gnu=$ac_cv_c_compiler_gnu 3097if test -n "$ac_tool_prefix"; then 3098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3099set dummy ${ac_tool_prefix}gcc; ac_word=$2 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if ${ac_cv_prog_CC+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if test -n "$CC"; then 3106 ac_cv_prog_CC="$CC" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3115 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120 done 3121IFS=$as_save_IFS 3122 3123fi 3124fi 3125CC=$ac_cv_prog_CC 3126if test -n "$CC"; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3128$as_echo "$CC" >&6; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135fi 3136if test -z "$ac_cv_prog_CC"; then 3137 ac_ct_CC=$CC 3138 # Extract the first word of "gcc", so it can be a program name with args. 3139set dummy gcc; ac_word=$2 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141$as_echo_n "checking for $ac_word... " >&6; } 3142if ${ac_cv_prog_ac_ct_CC+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test -n "$ac_ct_CC"; then 3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_ac_ct_CC="gcc" 3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi 3164fi 3165ac_ct_CC=$ac_cv_prog_ac_ct_CC 3166if test -n "$ac_ct_CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3168$as_echo "$ac_ct_CC" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 if test "x$ac_ct_CC" = x; then 3175 CC="" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 CC=$ac_ct_CC 3184 fi 3185else 3186 CC="$ac_cv_prog_CC" 3187fi 3188 3189if test -z "$CC"; then 3190 if test -n "$ac_tool_prefix"; then 3191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3192set dummy ${ac_tool_prefix}cc; ac_word=$2 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3194$as_echo_n "checking for $ac_word... " >&6; } 3195if ${ac_cv_prog_CC+:} false; then : 3196 $as_echo_n "(cached) " >&6 3197else 3198 if test -n "$CC"; then 3199 ac_cv_prog_CC="$CC" # Let the user override the test. 3200else 3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3202for as_dir in $PATH 3203do 3204 IFS=$as_save_IFS 3205 test -z "$as_dir" && as_dir=. 3206 for ac_exec_ext in '' $ac_executable_extensions; do 3207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3208 ac_cv_prog_CC="${ac_tool_prefix}cc" 3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3210 break 2 3211 fi 3212done 3213 done 3214IFS=$as_save_IFS 3215 3216fi 3217fi 3218CC=$ac_cv_prog_CC 3219if test -n "$CC"; then 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3221$as_echo "$CC" >&6; } 3222else 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3224$as_echo "no" >&6; } 3225fi 3226 3227 3228 fi 3229fi 3230if test -z "$CC"; then 3231 # Extract the first word of "cc", so it can be a program name with args. 3232set dummy cc; ac_word=$2 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234$as_echo_n "checking for $ac_word... " >&6; } 3235if ${ac_cv_prog_CC+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 if test -n "$CC"; then 3239 ac_cv_prog_CC="$CC" # Let the user override the test. 3240else 3241 ac_prog_rejected=no 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3250 ac_prog_rejected=yes 3251 continue 3252 fi 3253 ac_cv_prog_CC="cc" 3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261if test $ac_prog_rejected = yes; then 3262 # We found a bogon in the path, so make sure we never use it. 3263 set dummy $ac_cv_prog_CC 3264 shift 3265 if test $# != 0; then 3266 # We chose a different compiler from the bogus one. 3267 # However, it has the same basename, so the bogon will be chosen 3268 # first if we set CC to just the basename; use the full file name. 3269 shift 3270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3271 fi 3272fi 3273fi 3274fi 3275CC=$ac_cv_prog_CC 3276if test -n "$CC"; then 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3278$as_echo "$CC" >&6; } 3279else 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3281$as_echo "no" >&6; } 3282fi 3283 3284 3285fi 3286if test -z "$CC"; then 3287 if test -n "$ac_tool_prefix"; then 3288 for ac_prog in cl.exe 3289 do 3290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3293$as_echo_n "checking for $ac_word... " >&6; } 3294if ${ac_cv_prog_CC+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if test -n "$CC"; then 3298 ac_cv_prog_CC="$CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316fi 3317CC=$ac_cv_prog_CC 3318if test -n "$CC"; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3320$as_echo "$CC" >&6; } 3321else 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323$as_echo "no" >&6; } 3324fi 3325 3326 3327 test -n "$CC" && break 3328 done 3329fi 3330if test -z "$CC"; then 3331 ac_ct_CC=$CC 3332 for ac_prog in cl.exe 3333do 3334 # Extract the first word of "$ac_prog", so it can be a program name with args. 3335set dummy $ac_prog; ac_word=$2 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337$as_echo_n "checking for $ac_word... " >&6; } 3338if ${ac_cv_prog_ac_ct_CC+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 if test -n "$ac_ct_CC"; then 3342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3343else 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3351 ac_cv_prog_ac_ct_CC="$ac_prog" 3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355done 3356 done 3357IFS=$as_save_IFS 3358 3359fi 3360fi 3361ac_ct_CC=$ac_cv_prog_ac_ct_CC 3362if test -n "$ac_ct_CC"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3364$as_echo "$ac_ct_CC" >&6; } 3365else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368fi 3369 3370 3371 test -n "$ac_ct_CC" && break 3372done 3373 3374 if test "x$ac_ct_CC" = x; then 3375 CC="" 3376 else 3377 case $cross_compiling:$ac_tool_warned in 3378yes:) 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3381ac_tool_warned=yes ;; 3382esac 3383 CC=$ac_ct_CC 3384 fi 3385fi 3386 3387fi 3388 3389 3390test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3392as_fn_error $? "no acceptable C compiler found in \$PATH 3393See \`config.log' for more details" "$LINENO" 5; } 3394 3395# Provide some information about the compiler. 3396$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3397set X $ac_compile 3398ac_compiler=$2 3399for ac_option in --version -v -V -qversion; do 3400 { { ac_try="$ac_compiler $ac_option >&5" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3408 ac_status=$? 3409 if test -s conftest.err; then 3410 sed '10a\ 3411... rest of stderr output deleted ... 3412 10q' conftest.err >conftest.er1 3413 cat conftest.er1 >&5 3414 fi 3415 rm -f conftest.er1 conftest.err 3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3417 test $ac_status = 0; } 3418done 3419 3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main () 3425{ 3426 3427 ; 3428 return 0; 3429} 3430_ACEOF 3431ac_clean_files_save=$ac_clean_files 3432ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3433# Try to create an executable without -o first, disregard a.out. 3434# It will help us diagnose broken compilers, and finding out an intuition 3435# of exeext. 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3437$as_echo_n "checking whether the C compiler works... " >&6; } 3438ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3439 3440# The possible output files: 3441ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3442 3443ac_rmfiles= 3444for ac_file in $ac_files 3445do 3446 case $ac_file in 3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3448 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3449 esac 3450done 3451rm -f $ac_rmfiles 3452 3453if { { ac_try="$ac_link_default" 3454case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459$as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_link_default") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; }; then : 3464 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3465# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3466# in a Makefile. We should not override ac_cv_exeext if it was cached, 3467# so that the user can short-circuit this test for compilers unknown to 3468# Autoconf. 3469for ac_file in $ac_files '' 3470do 3471 test -f "$ac_file" || continue 3472 case $ac_file in 3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3474 ;; 3475 [ab].out ) 3476 # We found the default executable, but exeext='' is most 3477 # certainly right. 3478 break;; 3479 *.* ) 3480 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3481 then :; else 3482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3483 fi 3484 # We set ac_cv_exeext here because the later test for it is not 3485 # safe: cross compilers may not add the suffix if given an `-o' 3486 # argument, so we may need to know it at that point already. 3487 # Even if this section looks crufty: it has the advantage of 3488 # actually working. 3489 break;; 3490 * ) 3491 break;; 3492 esac 3493done 3494test "$ac_cv_exeext" = no && ac_cv_exeext= 3495 3496else 3497 ac_file='' 3498fi 3499if test -z "$ac_file"; then : 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502$as_echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3507as_fn_error 77 "C compiler cannot create executables 3508See \`config.log' for more details" "$LINENO" 5; } 3509else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3511$as_echo "yes" >&6; } 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3514$as_echo_n "checking for C compiler default output file name... " >&6; } 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3516$as_echo "$ac_file" >&6; } 3517ac_exeext=$ac_cv_exeext 3518 3519rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3520ac_clean_files=$ac_clean_files_save 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3522$as_echo_n "checking for suffix of executables... " >&6; } 3523if { { ac_try="$ac_link" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3529$as_echo "$ac_try_echo"; } >&5 3530 (eval "$ac_link") 2>&5 3531 ac_status=$? 3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3533 test $ac_status = 0; }; then : 3534 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3536# work properly (i.e., refer to `conftest.exe'), while it won't with 3537# `rm'. 3538for ac_file in conftest.exe conftest conftest.*; do 3539 test -f "$ac_file" || continue 3540 case $ac_file in 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3543 break;; 3544 * ) break;; 3545 esac 3546done 3547else 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3551See \`config.log' for more details" "$LINENO" 5; } 3552fi 3553rm -f conftest conftest$ac_cv_exeext 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3555$as_echo "$ac_cv_exeext" >&6; } 3556 3557rm -f conftest.$ac_ext 3558EXEEXT=$ac_cv_exeext 3559ac_exeext=$EXEEXT 3560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562#include <stdio.h> 3563int 3564main () 3565{ 3566FILE *f = fopen ("conftest.out", "w"); 3567 return ferror (f) || fclose (f) != 0; 3568 3569 ; 3570 return 0; 3571} 3572_ACEOF 3573ac_clean_files="$ac_clean_files conftest.out" 3574# Check that the compiler produces executables we can run. If not, either 3575# the compiler is broken, or we cross compile. 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3577$as_echo_n "checking whether we are cross compiling... " >&6; } 3578if test "$cross_compiling" != yes; then 3579 { { ac_try="$ac_link" 3580case "(($ac_try" in 3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *) ac_try_echo=$ac_try;; 3583esac 3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3585$as_echo "$ac_try_echo"; } >&5 3586 (eval "$ac_link") 2>&5 3587 ac_status=$? 3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3589 test $ac_status = 0; } 3590 if { ac_try='./conftest$ac_cv_exeext' 3591 { { case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_try") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; }; then 3601 cross_compiling=no 3602 else 3603 if test "$cross_compiling" = maybe; then 3604 cross_compiling=yes 3605 else 3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot run C compiled programs. 3609If you meant to cross compile, use \`--host'. 3610See \`config.log' for more details" "$LINENO" 5; } 3611 fi 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3615$as_echo "$cross_compiling" >&6; } 3616 3617rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3618ac_clean_files=$ac_clean_files_save 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3620$as_echo_n "checking for suffix of object files... " >&6; } 3621if ${ac_cv_objext+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635rm -f conftest.o conftest.obj 3636if { { ac_try="$ac_compile" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3642$as_echo "$ac_try_echo"; } >&5 3643 (eval "$ac_compile") 2>&5 3644 ac_status=$? 3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3646 test $ac_status = 0; }; then : 3647 for ac_file in conftest.o conftest.obj conftest.*; do 3648 test -f "$ac_file" || continue; 3649 case $ac_file in 3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3652 break;; 3653 esac 3654done 3655else 3656 $as_echo "$as_me: failed program was:" >&5 3657sed 's/^/| /' conftest.$ac_ext >&5 3658 3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3661as_fn_error $? "cannot compute suffix of object files: cannot compile 3662See \`config.log' for more details" "$LINENO" 5; } 3663fi 3664rm -f conftest.$ac_cv_objext conftest.$ac_ext 3665fi 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3667$as_echo "$ac_cv_objext" >&6; } 3668OBJEXT=$ac_cv_objext 3669ac_objext=$OBJEXT 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3671$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3672if ${ac_cv_c_compiler_gnu+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677 3678int 3679main () 3680{ 3681#ifndef __GNUC__ 3682 choke me 3683#endif 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_compiler_gnu=yes 3691else 3692 ac_compiler_gnu=no 3693fi 3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3695ac_cv_c_compiler_gnu=$ac_compiler_gnu 3696 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3699$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3700if test $ac_compiler_gnu = yes; then 3701 GCC=yes 3702else 3703 GCC= 3704fi 3705ac_test_CFLAGS=${CFLAGS+set} 3706ac_save_CFLAGS=$CFLAGS 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3708$as_echo_n "checking whether $CC accepts -g... " >&6; } 3709if ${ac_cv_prog_cc_g+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 ac_save_c_werror_flag=$ac_c_werror_flag 3713 ac_c_werror_flag=yes 3714 ac_cv_prog_cc_g=no 3715 CFLAGS="-g" 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718 3719int 3720main () 3721{ 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727if ac_fn_c_try_compile "$LINENO"; then : 3728 ac_cv_prog_cc_g=yes 3729else 3730 CFLAGS="" 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732/* end confdefs.h. */ 3733 3734int 3735main () 3736{ 3737 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742if ac_fn_c_try_compile "$LINENO"; then : 3743 3744else 3745 ac_c_werror_flag=$ac_save_c_werror_flag 3746 CFLAGS="-g" 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753 3754 ; 3755 return 0; 3756} 3757_ACEOF 3758if ac_fn_c_try_compile "$LINENO"; then : 3759 ac_cv_prog_cc_g=yes 3760fi 3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3762fi 3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3764fi 3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3766 ac_c_werror_flag=$ac_save_c_werror_flag 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3769$as_echo "$ac_cv_prog_cc_g" >&6; } 3770if test "$ac_test_CFLAGS" = set; then 3771 CFLAGS=$ac_save_CFLAGS 3772elif test $ac_cv_prog_cc_g = yes; then 3773 if test "$GCC" = yes; then 3774 CFLAGS="-g -O2" 3775 else 3776 CFLAGS="-g" 3777 fi 3778else 3779 if test "$GCC" = yes; then 3780 CFLAGS="-O2" 3781 else 3782 CFLAGS= 3783 fi 3784fi 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3786$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3787if ${ac_cv_prog_cc_c89+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 ac_cv_prog_cc_c89=no 3791ac_save_CC=$CC 3792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793/* end confdefs.h. */ 3794#include <stdarg.h> 3795#include <stdio.h> 3796struct stat; 3797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3798struct buf { int x; }; 3799FILE * (*rcsopen) (struct buf *, struct stat *, int); 3800static char *e (p, i) 3801 char **p; 3802 int i; 3803{ 3804 return p[i]; 3805} 3806static char *f (char * (*g) (char **, int), char **p, ...) 3807{ 3808 char *s; 3809 va_list v; 3810 va_start (v,p); 3811 s = g (p, va_arg (v,int)); 3812 va_end (v); 3813 return s; 3814} 3815 3816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3817 function prototypes and stuff, but not '\xHH' hex character constants. 3818 These don't provoke an error unfortunately, instead are silently treated 3819 as 'x'. The following induces an error, until -std is added to get 3820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3821 array size at least. It's necessary to write '\x00'==0 to get something 3822 that's true only with -std. */ 3823int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3824 3825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3826 inside strings and character constants. */ 3827#define FOO(x) 'x' 3828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3829 3830int test (int i, double x); 3831struct s1 {int (*f) (int a);}; 3832struct s2 {int (*f) (double a);}; 3833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3834int argc; 3835char **argv; 3836int 3837main () 3838{ 3839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3846do 3847 CC="$ac_save_CC $ac_arg" 3848 if ac_fn_c_try_compile "$LINENO"; then : 3849 ac_cv_prog_cc_c89=$ac_arg 3850fi 3851rm -f core conftest.err conftest.$ac_objext 3852 test "x$ac_cv_prog_cc_c89" != "xno" && break 3853done 3854rm -f conftest.$ac_ext 3855CC=$ac_save_CC 3856 3857fi 3858# AC_CACHE_VAL 3859case "x$ac_cv_prog_cc_c89" in 3860 x) 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3862$as_echo "none needed" >&6; } ;; 3863 xno) 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3865$as_echo "unsupported" >&6; } ;; 3866 *) 3867 CC="$CC $ac_cv_prog_cc_c89" 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3870esac 3871if test "x$ac_cv_prog_cc_c89" != xno; then : 3872 3873fi 3874 3875ac_ext=c 3876ac_cpp='$CPP $CPPFLAGS' 3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3879ac_compiler_gnu=$ac_cv_c_compiler_gnu 3880 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3887$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3888if ${am_cv_prog_cc_c_o+:} false; then : 3889 $as_echo_n "(cached) " >&6 3890else 3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3892/* end confdefs.h. */ 3893 3894int 3895main () 3896{ 3897 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902 # Make sure it works both with $CC and with simple cc. 3903 # Following AC_PROG_CC_C_O, we do the test twice because some 3904 # compilers refuse to overwrite an existing .o file with -o, 3905 # though they will create one. 3906 am_cv_prog_cc_c_o=yes 3907 for am_i in 1 2; do 3908 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3909 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3910 ac_status=$? 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } \ 3913 && test -f conftest2.$ac_objext; then 3914 : OK 3915 else 3916 am_cv_prog_cc_c_o=no 3917 break 3918 fi 3919 done 3920 rm -f core conftest* 3921 unset am_i 3922fi 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3924$as_echo "$am_cv_prog_cc_c_o" >&6; } 3925if test "$am_cv_prog_cc_c_o" != yes; then 3926 # Losing compiler, so override with the script. 3927 # FIXME: It is wrong to rewrite CC. 3928 # But if we don't then we get into trouble of one sort or another. 3929 # A longer-term fix would be to have automake use am__CC in this case, 3930 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3931 CC="$am_aux_dir/compile $CC" 3932fi 3933ac_ext=c 3934ac_cpp='$CPP $CPPFLAGS' 3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3937ac_compiler_gnu=$ac_cv_c_compiler_gnu 3938 3939 3940depcc="$CC" am_compiler_list= 3941 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3943$as_echo_n "checking dependency style of $depcc... " >&6; } 3944if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3945 $as_echo_n "(cached) " >&6 3946else 3947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3948 # We make a subdir and do the tests there. Otherwise we can end up 3949 # making bogus files that we don't know about and never remove. For 3950 # instance it was reported that on HP-UX the gcc test will end up 3951 # making a dummy file named 'D' -- because '-MD' means "put the output 3952 # in D". 3953 rm -rf conftest.dir 3954 mkdir conftest.dir 3955 # Copy depcomp to subdir because otherwise we won't find it if we're 3956 # using a relative directory. 3957 cp "$am_depcomp" conftest.dir 3958 cd conftest.dir 3959 # We will build objects and dependencies in a subdirectory because 3960 # it helps to detect inapplicable dependency modes. For instance 3961 # both Tru64's cc and ICC support -MD to output dependencies as a 3962 # side effect of compilation, but ICC will put the dependencies in 3963 # the current directory while Tru64 will put them in the object 3964 # directory. 3965 mkdir sub 3966 3967 am_cv_CC_dependencies_compiler_type=none 3968 if test "$am_compiler_list" = ""; then 3969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3970 fi 3971 am__universal=false 3972 case " $depcc " in #( 3973 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3974 esac 3975 3976 for depmode in $am_compiler_list; do 3977 # Setup a source with many dependencies, because some compilers 3978 # like to wrap large dependency lists on column 80 (with \), and 3979 # we should not choose a depcomp mode which is confused by this. 3980 # 3981 # We need to recreate these files for each test, as the compiler may 3982 # overwrite some of them when testing with obscure command lines. 3983 # This happens at least with the AIX C compiler. 3984 : > sub/conftest.c 3985 for i in 1 2 3 4 5 6; do 3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3987 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3988 # Solaris 10 /bin/sh. 3989 echo '/* dummy */' > sub/conftst$i.h 3990 done 3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3992 3993 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3994 # mode. It turns out that the SunPro C++ compiler does not properly 3995 # handle '-M -o', and we need to detect this. Also, some Intel 3996 # versions had trouble with output in subdirs. 3997 am__obj=sub/conftest.${OBJEXT-o} 3998 am__minus_obj="-o $am__obj" 3999 case $depmode in 4000 gcc) 4001 # This depmode causes a compiler race in universal mode. 4002 test "$am__universal" = false || continue 4003 ;; 4004 nosideeffect) 4005 # After this tag, mechanisms are not by side-effect, so they'll 4006 # only be used when explicitly requested. 4007 if test "x$enable_dependency_tracking" = xyes; then 4008 continue 4009 else 4010 break 4011 fi 4012 ;; 4013 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4014 # This compiler won't grok '-c -o', but also, the minuso test has 4015 # not run yet. These depmodes are late enough in the game, and 4016 # so weak that their functioning should not be impacted. 4017 am__obj=conftest.${OBJEXT-o} 4018 am__minus_obj= 4019 ;; 4020 none) break ;; 4021 esac 4022 if depmode=$depmode \ 4023 source=sub/conftest.c object=$am__obj \ 4024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4026 >/dev/null 2>conftest.err && 4027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4031 # icc doesn't choke on unknown options, it will just issue warnings 4032 # or remarks (even with -Werror). So we grep stderr for any message 4033 # that says an option was ignored or not supported. 4034 # When given -MP, icc 7.0 and 7.1 complain thusly: 4035 # icc: Command line warning: ignoring option '-M'; no argument required 4036 # The diagnosis changed in icc 8.0: 4037 # icc: Command line remark: option '-MP' not supported 4038 if (grep 'ignoring option' conftest.err || 4039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4040 am_cv_CC_dependencies_compiler_type=$depmode 4041 break 4042 fi 4043 fi 4044 done 4045 4046 cd .. 4047 rm -rf conftest.dir 4048else 4049 am_cv_CC_dependencies_compiler_type=none 4050fi 4051 4052fi 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4054$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4055CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4056 4057 if 4058 test "x$enable_dependency_tracking" != xno \ 4059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4060 am__fastdepCC_TRUE= 4061 am__fastdepCC_FALSE='#' 4062else 4063 am__fastdepCC_TRUE='#' 4064 am__fastdepCC_FALSE= 4065fi 4066 4067 4068 4069 4070 4071 # Check whether --enable-compile-warnings was given. 4072if test "${enable_compile_warnings+set}" = set; then : 4073 enableval=$enable_compile_warnings; 4074else 4075 enable_compile_warnings="maximum" 4076fi 4077 4078 4079 if test "x$GCC" != xyes; then 4080 enable_compile_warnings=no 4081 fi 4082 4083 warning_flags= 4084 realsave_CFLAGS="$CFLAGS" 4085 4086 base_warn_flags=" \ 4087 -Wall \ 4088 -Wstrict-prototypes \ 4089 -Wnested-externs \ 4090 " 4091 4092 base_error_flags=" \ 4093 -Werror=missing-prototypes \ 4094 -Werror=implicit-function-declaration \ 4095 -Werror=pointer-arith \ 4096 -Werror=init-self \ 4097 -Werror=format-security \ 4098 -Werror=format=2 \ 4099 -Werror=missing-include-dirs \ 4100 -Werror=return-type \ 4101 " 4102 4103 additional_flags="" 4104 4105 case "$enable_compile_warnings" in 4106 no) 4107 warning_flags="-w" 4108 ;; 4109 minimum) 4110 warning_flags="-Wall" 4111 ;; 4112 yes|maximum|error) 4113 warning_flags="$base_warn_flags $base_error_flags $additional_flags" 4114 ;; 4115 *) 4116 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5 4117 ;; 4118 esac 4119 4120 if test "$enable_compile_warnings" = "error" ; then 4121 warning_flags="$warning_flags -Werror" 4122 fi 4123 4124 for option in $warning_flags; do 4125 save_CFLAGS="$CFLAGS" 4126 CFLAGS="$CFLAGS $option" 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 4128$as_echo_n "checking whether gcc understands $option... " >&6; } 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131 4132int 4133main () 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140if ac_fn_c_try_compile "$LINENO"; then : 4141 has_option=yes 4142else 4143 has_option=no 4144fi 4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4146 CFLAGS="$save_CFLAGS" 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4148$as_echo "$has_option" >&6; } 4149 if test $has_option = yes; then 4150 tested_warning_flags="$tested_warning_flags $option" 4151 fi 4152 unset has_option 4153 unset save_CFLAGS 4154 done 4155 unset option 4156 CFLAGS="$realsave_CFLAGS" 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 4158$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5 4160$as_echo "$tested_warning_flags" >&6; } 4161 4162 # Check whether --enable-iso-c was given. 4163if test "${enable_iso_c+set}" = set; then : 4164 enableval=$enable_iso_c; 4165else 4166 enable_iso_c=no 4167fi 4168 4169 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5 4171$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; } 4172 complCFLAGS= 4173 if test "x$enable_iso_c" != "xno"; then 4174 if test "x$GCC" = "xyes"; then 4175 case " $CFLAGS " in 4176 *\ \ -ansi\ \ *) ;; 4177 *) complCFLAGS="$complCFLAGS -ansi" ;; 4178 esac 4179 case " $CFLAGS " in 4180 *\ \ -pedantic\ \ *) ;; 4181 *) complCFLAGS="$complCFLAGS -pedantic" ;; 4182 esac 4183 fi 4184 fi 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5 4186$as_echo "$complCFLAGS" >&6; } 4187 4188 WARN_CFLAGS="$tested_warning_flags $complCFLAGS" 4189 4190 4191 4192 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4194$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4195 # Check whether --enable-maintainer-mode was given. 4196if test "${enable_maintainer_mode+set}" = set; then : 4197 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4198else 4199 USE_MAINTAINER_MODE=no 4200fi 4201 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4203$as_echo "$USE_MAINTAINER_MODE" >&6; } 4204 if test $USE_MAINTAINER_MODE = yes; then 4205 MAINTAINER_MODE_TRUE= 4206 MAINTAINER_MODE_FALSE='#' 4207else 4208 MAINTAINER_MODE_TRUE='#' 4209 MAINTAINER_MODE_FALSE= 4210fi 4211 4212 MAINT=$MAINTAINER_MODE_TRUE 4213 4214 4215# Check whether --enable-static was given. 4216if test "${enable_static+set}" = set; then : 4217 enableval=$enable_static; p=${PACKAGE-default} 4218 case $enableval in 4219 yes) enable_static=yes ;; 4220 no) enable_static=no ;; 4221 *) 4222 enable_static=no 4223 # Look at the argument we got. We use all the common list separators. 4224 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4225 for pkg in $enableval; do 4226 IFS=$lt_save_ifs 4227 if test "X$pkg" = "X$p"; then 4228 enable_static=yes 4229 fi 4230 done 4231 IFS=$lt_save_ifs 4232 ;; 4233 esac 4234else 4235 enable_static=no 4236fi 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246case `pwd` in 4247 *\ * | *\ *) 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4249$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4250esac 4251 4252 4253 4254macro_version='2.4.6' 4255macro_revision='2.4.6' 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269ltmain=$ac_aux_dir/ltmain.sh 4270 4271# Make sure we can run config.sub. 4272$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4273 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4274 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4276$as_echo_n "checking build system type... " >&6; } 4277if ${ac_cv_build+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 ac_build_alias=$build_alias 4281test "x$ac_build_alias" = x && 4282 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4283test "x$ac_build_alias" = x && 4284 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4285ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4286 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4287 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4290$as_echo "$ac_cv_build" >&6; } 4291case $ac_cv_build in 4292*-*-*) ;; 4293*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4294esac 4295build=$ac_cv_build 4296ac_save_IFS=$IFS; IFS='-' 4297set x $ac_cv_build 4298shift 4299build_cpu=$1 4300build_vendor=$2 4301shift; shift 4302# Remember, the first character of IFS is used to create $*, 4303# except with old shells: 4304build_os=$* 4305IFS=$ac_save_IFS 4306case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4307 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4310$as_echo_n "checking host system type... " >&6; } 4311if ${ac_cv_host+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if test "x$host_alias" = x; then 4315 ac_cv_host=$ac_cv_build 4316else 4317 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4319fi 4320 4321fi 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4323$as_echo "$ac_cv_host" >&6; } 4324case $ac_cv_host in 4325*-*-*) ;; 4326*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4327esac 4328host=$ac_cv_host 4329ac_save_IFS=$IFS; IFS='-' 4330set x $ac_cv_host 4331shift 4332host_cpu=$1 4333host_vendor=$2 4334shift; shift 4335# Remember, the first character of IFS is used to create $*, 4336# except with old shells: 4337host_os=$* 4338IFS=$ac_save_IFS 4339case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4340 4341 4342# Backslashify metacharacters that are still active within 4343# double-quoted strings. 4344sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4345 4346# Same as above, but do not quote variable references. 4347double_quote_subst='s/\(["`\\]\)/\\\1/g' 4348 4349# Sed substitution to delay expansion of an escaped shell variable in a 4350# double_quote_subst'ed string. 4351delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4352 4353# Sed substitution to delay expansion of an escaped single quote. 4354delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4355 4356# Sed substitution to avoid accidental globbing in evaled expressions 4357no_glob_subst='s/\*/\\\*/g' 4358 4359ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4360ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4361ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4362 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4364$as_echo_n "checking how to print strings... " >&6; } 4365# Test print first, because it will be a builtin if present. 4366if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4367 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4368 ECHO='print -r --' 4369elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4370 ECHO='printf %s\n' 4371else 4372 # Use this function as a fallback that always works. 4373 func_fallback_echo () 4374 { 4375 eval 'cat <<_LTECHO_EOF 4376$1 4377_LTECHO_EOF' 4378 } 4379 ECHO='func_fallback_echo' 4380fi 4381 4382# func_echo_all arg... 4383# Invoke $ECHO with all args, space-separated. 4384func_echo_all () 4385{ 4386 $ECHO "" 4387} 4388 4389case $ECHO in 4390 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4391$as_echo "printf" >&6; } ;; 4392 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4393$as_echo "print -r" >&6; } ;; 4394 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4395$as_echo "cat" >&6; } ;; 4396esac 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4412$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4413if ${ac_cv_path_SED+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4417 for ac_i in 1 2 3 4 5 6 7; do 4418 ac_script="$ac_script$as_nl$ac_script" 4419 done 4420 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4421 { ac_script=; unset ac_script;} 4422 if test -z "$SED"; then 4423 ac_path_SED_found=false 4424 # Loop through the user's path and test for each of PROGNAME-LIST 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_prog in sed gsed; do 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4433 as_fn_executable_p "$ac_path_SED" || continue 4434# Check for GNU ac_path_SED and select it if it is found. 4435 # Check for GNU $ac_path_SED 4436case `"$ac_path_SED" --version 2>&1` in 4437*GNU*) 4438 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4439*) 4440 ac_count=0 4441 $as_echo_n 0123456789 >"conftest.in" 4442 while : 4443 do 4444 cat "conftest.in" "conftest.in" >"conftest.tmp" 4445 mv "conftest.tmp" "conftest.in" 4446 cp "conftest.in" "conftest.nl" 4447 $as_echo '' >> "conftest.nl" 4448 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4450 as_fn_arith $ac_count + 1 && ac_count=$as_val 4451 if test $ac_count -gt ${ac_path_SED_max-0}; then 4452 # Best one so far, save it but keep looking for a better one 4453 ac_cv_path_SED="$ac_path_SED" 4454 ac_path_SED_max=$ac_count 4455 fi 4456 # 10*(2^10) chars as input seems more than enough 4457 test $ac_count -gt 10 && break 4458 done 4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4460esac 4461 4462 $ac_path_SED_found && break 3 4463 done 4464 done 4465 done 4466IFS=$as_save_IFS 4467 if test -z "$ac_cv_path_SED"; then 4468 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4469 fi 4470else 4471 ac_cv_path_SED=$SED 4472fi 4473 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4476$as_echo "$ac_cv_path_SED" >&6; } 4477 SED="$ac_cv_path_SED" 4478 rm -f conftest.sed 4479 4480test -z "$SED" && SED=sed 4481Xsed="$SED -e 1s/^X//" 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4494$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4495if ${ac_cv_path_GREP+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 if test -z "$GREP"; then 4499 ac_path_GREP_found=false 4500 # Loop through the user's path and test for each of PROGNAME-LIST 4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_prog in grep ggrep; do 4507 for ac_exec_ext in '' $ac_executable_extensions; do 4508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4509 as_fn_executable_p "$ac_path_GREP" || continue 4510# Check for GNU ac_path_GREP and select it if it is found. 4511 # Check for GNU $ac_path_GREP 4512case `"$ac_path_GREP" --version 2>&1` in 4513*GNU*) 4514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4515*) 4516 ac_count=0 4517 $as_echo_n 0123456789 >"conftest.in" 4518 while : 4519 do 4520 cat "conftest.in" "conftest.in" >"conftest.tmp" 4521 mv "conftest.tmp" "conftest.in" 4522 cp "conftest.in" "conftest.nl" 4523 $as_echo 'GREP' >> "conftest.nl" 4524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4526 as_fn_arith $ac_count + 1 && ac_count=$as_val 4527 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4528 # Best one so far, save it but keep looking for a better one 4529 ac_cv_path_GREP="$ac_path_GREP" 4530 ac_path_GREP_max=$ac_count 4531 fi 4532 # 10*(2^10) chars as input seems more than enough 4533 test $ac_count -gt 10 && break 4534 done 4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4536esac 4537 4538 $ac_path_GREP_found && break 3 4539 done 4540 done 4541 done 4542IFS=$as_save_IFS 4543 if test -z "$ac_cv_path_GREP"; then 4544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4545 fi 4546else 4547 ac_cv_path_GREP=$GREP 4548fi 4549 4550fi 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4552$as_echo "$ac_cv_path_GREP" >&6; } 4553 GREP="$ac_cv_path_GREP" 4554 4555 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4557$as_echo_n "checking for egrep... " >&6; } 4558if ${ac_cv_path_EGREP+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560else 4561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4562 then ac_cv_path_EGREP="$GREP -E" 4563 else 4564 if test -z "$EGREP"; then 4565 ac_path_EGREP_found=false 4566 # Loop through the user's path and test for each of PROGNAME-LIST 4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4569do 4570 IFS=$as_save_IFS 4571 test -z "$as_dir" && as_dir=. 4572 for ac_prog in egrep; do 4573 for ac_exec_ext in '' $ac_executable_extensions; do 4574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4575 as_fn_executable_p "$ac_path_EGREP" || continue 4576# Check for GNU ac_path_EGREP and select it if it is found. 4577 # Check for GNU $ac_path_EGREP 4578case `"$ac_path_EGREP" --version 2>&1` in 4579*GNU*) 4580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4581*) 4582 ac_count=0 4583 $as_echo_n 0123456789 >"conftest.in" 4584 while : 4585 do 4586 cat "conftest.in" "conftest.in" >"conftest.tmp" 4587 mv "conftest.tmp" "conftest.in" 4588 cp "conftest.in" "conftest.nl" 4589 $as_echo 'EGREP' >> "conftest.nl" 4590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4592 as_fn_arith $ac_count + 1 && ac_count=$as_val 4593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4594 # Best one so far, save it but keep looking for a better one 4595 ac_cv_path_EGREP="$ac_path_EGREP" 4596 ac_path_EGREP_max=$ac_count 4597 fi 4598 # 10*(2^10) chars as input seems more than enough 4599 test $ac_count -gt 10 && break 4600 done 4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4602esac 4603 4604 $ac_path_EGREP_found && break 3 4605 done 4606 done 4607 done 4608IFS=$as_save_IFS 4609 if test -z "$ac_cv_path_EGREP"; then 4610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4611 fi 4612else 4613 ac_cv_path_EGREP=$EGREP 4614fi 4615 4616 fi 4617fi 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4619$as_echo "$ac_cv_path_EGREP" >&6; } 4620 EGREP="$ac_cv_path_EGREP" 4621 4622 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4624$as_echo_n "checking for fgrep... " >&6; } 4625if ${ac_cv_path_FGREP+:} false; then : 4626 $as_echo_n "(cached) " >&6 4627else 4628 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4629 then ac_cv_path_FGREP="$GREP -F" 4630 else 4631 if test -z "$FGREP"; then 4632 ac_path_FGREP_found=false 4633 # Loop through the user's path and test for each of PROGNAME-LIST 4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_prog in fgrep; do 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4642 as_fn_executable_p "$ac_path_FGREP" || continue 4643# Check for GNU ac_path_FGREP and select it if it is found. 4644 # Check for GNU $ac_path_FGREP 4645case `"$ac_path_FGREP" --version 2>&1` in 4646*GNU*) 4647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4648*) 4649 ac_count=0 4650 $as_echo_n 0123456789 >"conftest.in" 4651 while : 4652 do 4653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4654 mv "conftest.tmp" "conftest.in" 4655 cp "conftest.in" "conftest.nl" 4656 $as_echo 'FGREP' >> "conftest.nl" 4657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4659 as_fn_arith $ac_count + 1 && ac_count=$as_val 4660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4661 # Best one so far, save it but keep looking for a better one 4662 ac_cv_path_FGREP="$ac_path_FGREP" 4663 ac_path_FGREP_max=$ac_count 4664 fi 4665 # 10*(2^10) chars as input seems more than enough 4666 test $ac_count -gt 10 && break 4667 done 4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4669esac 4670 4671 $ac_path_FGREP_found && break 3 4672 done 4673 done 4674 done 4675IFS=$as_save_IFS 4676 if test -z "$ac_cv_path_FGREP"; then 4677 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4678 fi 4679else 4680 ac_cv_path_FGREP=$FGREP 4681fi 4682 4683 fi 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4686$as_echo "$ac_cv_path_FGREP" >&6; } 4687 FGREP="$ac_cv_path_FGREP" 4688 4689 4690test -z "$GREP" && GREP=grep 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710# Check whether --with-gnu-ld was given. 4711if test "${with_gnu_ld+set}" = set; then : 4712 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4713else 4714 with_gnu_ld=no 4715fi 4716 4717ac_prog=ld 4718if test yes = "$GCC"; then 4719 # Check if gcc -print-prog-name=ld gives a path. 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4721$as_echo_n "checking for ld used by $CC... " >&6; } 4722 case $host in 4723 *-*-mingw*) 4724 # gcc leaves a trailing carriage return, which upsets mingw 4725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4726 *) 4727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4728 esac 4729 case $ac_prog in 4730 # Accept absolute paths. 4731 [\\/]* | ?:[\\/]*) 4732 re_direlt='/[^/][^/]*/\.\./' 4733 # Canonicalize the pathname of ld 4734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4737 done 4738 test -z "$LD" && LD=$ac_prog 4739 ;; 4740 "") 4741 # If it fails, then pretend we aren't using GCC. 4742 ac_prog=ld 4743 ;; 4744 *) 4745 # If it is relative, then search for the first ld in PATH. 4746 with_gnu_ld=unknown 4747 ;; 4748 esac 4749elif test yes = "$with_gnu_ld"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4751$as_echo_n "checking for GNU ld... " >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4754$as_echo_n "checking for non-GNU ld... " >&6; } 4755fi 4756if ${lt_cv_path_LD+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if test -z "$LD"; then 4760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4761 for ac_dir in $PATH; do 4762 IFS=$lt_save_ifs 4763 test -z "$ac_dir" && ac_dir=. 4764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4765 lt_cv_path_LD=$ac_dir/$ac_prog 4766 # Check to see if the program is GNU ld. I'd rather use --version, 4767 # but apparently some variants of GNU ld only accept -v. 4768 # Break only if it was the GNU/non-GNU ld that we prefer. 4769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4770 *GNU* | *'with BFD'*) 4771 test no != "$with_gnu_ld" && break 4772 ;; 4773 *) 4774 test yes != "$with_gnu_ld" && break 4775 ;; 4776 esac 4777 fi 4778 done 4779 IFS=$lt_save_ifs 4780else 4781 lt_cv_path_LD=$LD # Let the user override the test with a path. 4782fi 4783fi 4784 4785LD=$lt_cv_path_LD 4786if test -n "$LD"; then 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4788$as_echo "$LD" >&6; } 4789else 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4791$as_echo "no" >&6; } 4792fi 4793test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4795$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4796if ${lt_cv_prog_gnu_ld+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798else 4799 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4800case `$LD -v 2>&1 </dev/null` in 4801*GNU* | *'with BFD'*) 4802 lt_cv_prog_gnu_ld=yes 4803 ;; 4804*) 4805 lt_cv_prog_gnu_ld=no 4806 ;; 4807esac 4808fi 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4810$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4811with_gnu_ld=$lt_cv_prog_gnu_ld 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4822$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4823if ${lt_cv_path_NM+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 if test -n "$NM"; then 4827 # Let the user override the test. 4828 lt_cv_path_NM=$NM 4829else 4830 lt_nm_to_check=${ac_tool_prefix}nm 4831 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4832 lt_nm_to_check="$lt_nm_to_check nm" 4833 fi 4834 for lt_tmp_nm in $lt_nm_to_check; do 4835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4836 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4837 IFS=$lt_save_ifs 4838 test -z "$ac_dir" && ac_dir=. 4839 tmp_nm=$ac_dir/$lt_tmp_nm 4840 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4841 # Check to see if the nm accepts a BSD-compat flag. 4842 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4843 # nm: unknown option "B" ignored 4844 # Tru64's nm complains that /dev/null is an invalid object file 4845 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4846 case $build_os in 4847 mingw*) lt_bad_file=conftest.nm/nofile ;; 4848 *) lt_bad_file=/dev/null ;; 4849 esac 4850 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4851 *$lt_bad_file* | *'Invalid file or object type'*) 4852 lt_cv_path_NM="$tmp_nm -B" 4853 break 2 4854 ;; 4855 *) 4856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4857 */dev/null*) 4858 lt_cv_path_NM="$tmp_nm -p" 4859 break 2 4860 ;; 4861 *) 4862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4863 continue # so that we can try to find one that supports BSD flags 4864 ;; 4865 esac 4866 ;; 4867 esac 4868 fi 4869 done 4870 IFS=$lt_save_ifs 4871 done 4872 : ${lt_cv_path_NM=no} 4873fi 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4876$as_echo "$lt_cv_path_NM" >&6; } 4877if test no != "$lt_cv_path_NM"; then 4878 NM=$lt_cv_path_NM 4879else 4880 # Didn't find any BSD compatible name lister, look for dumpbin. 4881 if test -n "$DUMPBIN"; then : 4882 # Let the user override the test. 4883 else 4884 if test -n "$ac_tool_prefix"; then 4885 for ac_prog in dumpbin "link -dump" 4886 do 4887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4890$as_echo_n "checking for $ac_word... " >&6; } 4891if ${ac_cv_prog_DUMPBIN+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 if test -n "$DUMPBIN"; then 4895 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4896else 4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_exec_ext in '' $ac_executable_extensions; do 4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4904 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908done 4909 done 4910IFS=$as_save_IFS 4911 4912fi 4913fi 4914DUMPBIN=$ac_cv_prog_DUMPBIN 4915if test -n "$DUMPBIN"; then 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4917$as_echo "$DUMPBIN" >&6; } 4918else 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920$as_echo "no" >&6; } 4921fi 4922 4923 4924 test -n "$DUMPBIN" && break 4925 done 4926fi 4927if test -z "$DUMPBIN"; then 4928 ac_ct_DUMPBIN=$DUMPBIN 4929 for ac_prog in dumpbin "link -dump" 4930do 4931 # Extract the first word of "$ac_prog", so it can be a program name with args. 4932set dummy $ac_prog; ac_word=$2 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4934$as_echo_n "checking for $ac_word... " >&6; } 4935if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937else 4938 if test -n "$ac_ct_DUMPBIN"; then 4939 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4940else 4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942for as_dir in $PATH 4943do 4944 IFS=$as_save_IFS 4945 test -z "$as_dir" && as_dir=. 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4948 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4950 break 2 4951 fi 4952done 4953 done 4954IFS=$as_save_IFS 4955 4956fi 4957fi 4958ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4959if test -n "$ac_ct_DUMPBIN"; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4961$as_echo "$ac_ct_DUMPBIN" >&6; } 4962else 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4964$as_echo "no" >&6; } 4965fi 4966 4967 4968 test -n "$ac_ct_DUMPBIN" && break 4969done 4970 4971 if test "x$ac_ct_DUMPBIN" = x; then 4972 DUMPBIN=":" 4973 else 4974 case $cross_compiling:$ac_tool_warned in 4975yes:) 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4978ac_tool_warned=yes ;; 4979esac 4980 DUMPBIN=$ac_ct_DUMPBIN 4981 fi 4982fi 4983 4984 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4985 *COFF*) 4986 DUMPBIN="$DUMPBIN -symbols -headers" 4987 ;; 4988 *) 4989 DUMPBIN=: 4990 ;; 4991 esac 4992 fi 4993 4994 if test : != "$DUMPBIN"; then 4995 NM=$DUMPBIN 4996 fi 4997fi 4998test -z "$NM" && NM=nm 4999 5000 5001 5002 5003 5004 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5006$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5007if ${lt_cv_nm_interface+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 lt_cv_nm_interface="BSD nm" 5011 echo "int some_variable = 0;" > conftest.$ac_ext 5012 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5013 (eval "$ac_compile" 2>conftest.err) 5014 cat conftest.err >&5 5015 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5016 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5017 cat conftest.err >&5 5018 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5019 cat conftest.out >&5 5020 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5021 lt_cv_nm_interface="MS dumpbin" 5022 fi 5023 rm -f conftest* 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5026$as_echo "$lt_cv_nm_interface" >&6; } 5027 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5029$as_echo_n "checking whether ln -s works... " >&6; } 5030LN_S=$as_ln_s 5031if test "$LN_S" = "ln -s"; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5033$as_echo "yes" >&6; } 5034else 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5036$as_echo "no, using $LN_S" >&6; } 5037fi 5038 5039# find the maximum length of command line arguments 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5041$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5042if ${lt_cv_sys_max_cmd_len+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 i=0 5046 teststring=ABCD 5047 5048 case $build_os in 5049 msdosdjgpp*) 5050 # On DJGPP, this test can blow up pretty badly due to problems in libc 5051 # (any single argument exceeding 2000 bytes causes a buffer overrun 5052 # during glob expansion). Even if it were fixed, the result of this 5053 # check would be larger than it should be. 5054 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5055 ;; 5056 5057 gnu*) 5058 # Under GNU Hurd, this test is not required because there is 5059 # no limit to the length of command line arguments. 5060 # Libtool will interpret -1 as no limit whatsoever 5061 lt_cv_sys_max_cmd_len=-1; 5062 ;; 5063 5064 cygwin* | mingw* | cegcc*) 5065 # On Win9x/ME, this test blows up -- it succeeds, but takes 5066 # about 5 minutes as the teststring grows exponentially. 5067 # Worse, since 9x/ME are not pre-emptively multitasking, 5068 # you end up with a "frozen" computer, even though with patience 5069 # the test eventually succeeds (with a max line length of 256k). 5070 # Instead, let's just punt: use the minimum linelength reported by 5071 # all of the supported platforms: 8192 (on NT/2K/XP). 5072 lt_cv_sys_max_cmd_len=8192; 5073 ;; 5074 5075 mint*) 5076 # On MiNT this can take a long time and run out of memory. 5077 lt_cv_sys_max_cmd_len=8192; 5078 ;; 5079 5080 amigaos*) 5081 # On AmigaOS with pdksh, this test takes hours, literally. 5082 # So we just punt and use a minimum line length of 8192. 5083 lt_cv_sys_max_cmd_len=8192; 5084 ;; 5085 5086 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5087 # This has been around since 386BSD, at least. Likely further. 5088 if test -x /sbin/sysctl; then 5089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5090 elif test -x /usr/sbin/sysctl; then 5091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5092 else 5093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5094 fi 5095 # And add a safety zone 5096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5098 ;; 5099 5100 interix*) 5101 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5102 lt_cv_sys_max_cmd_len=196608 5103 ;; 5104 5105 os2*) 5106 # The test takes a long time on OS/2. 5107 lt_cv_sys_max_cmd_len=8192 5108 ;; 5109 5110 osf*) 5111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5113 # nice to cause kernel panics so lets avoid the loop below. 5114 # First set a reasonable default. 5115 lt_cv_sys_max_cmd_len=16384 5116 # 5117 if test -x /sbin/sysconfig; then 5118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5119 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5120 esac 5121 fi 5122 ;; 5123 sco3.2v5*) 5124 lt_cv_sys_max_cmd_len=102400 5125 ;; 5126 sysv5* | sco5v6* | sysv4.2uw2*) 5127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5128 if test -n "$kargmax"; then 5129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5130 else 5131 lt_cv_sys_max_cmd_len=32768 5132 fi 5133 ;; 5134 *) 5135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5136 if test -n "$lt_cv_sys_max_cmd_len" && \ 5137 test undefined != "$lt_cv_sys_max_cmd_len"; then 5138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5140 else 5141 # Make teststring a little bigger before we do anything with it. 5142 # a 1K string should be a reasonable start. 5143 for i in 1 2 3 4 5 6 7 8; do 5144 teststring=$teststring$teststring 5145 done 5146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5147 # If test is not a shell built-in, we'll probably end up computing a 5148 # maximum length that is only half of the actual maximum length, but 5149 # we can't tell. 5150 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5151 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5152 test 17 != "$i" # 1/2 MB should be enough 5153 do 5154 i=`expr $i + 1` 5155 teststring=$teststring$teststring 5156 done 5157 # Only check the string length outside the loop. 5158 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5159 teststring= 5160 # Add a significant safety factor because C++ compilers can tack on 5161 # massive amounts of additional arguments before passing them to the 5162 # linker. It appears as though 1/2 is a usable value. 5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5164 fi 5165 ;; 5166 esac 5167 5168fi 5169 5170if test -n "$lt_cv_sys_max_cmd_len"; then 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5172$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5173else 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5175$as_echo "none" >&6; } 5176fi 5177max_cmd_len=$lt_cv_sys_max_cmd_len 5178 5179 5180 5181 5182 5183 5184: ${CP="cp -f"} 5185: ${MV="mv -f"} 5186: ${RM="rm -f"} 5187 5188if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5189 lt_unset=unset 5190else 5191 lt_unset=false 5192fi 5193 5194 5195 5196 5197 5198# test EBCDIC or ASCII 5199case `echo X|tr X '\101'` in 5200 A) # ASCII based system 5201 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5202 lt_SP2NL='tr \040 \012' 5203 lt_NL2SP='tr \015\012 \040\040' 5204 ;; 5205 *) # EBCDIC based system 5206 lt_SP2NL='tr \100 \n' 5207 lt_NL2SP='tr \r\n \100\100' 5208 ;; 5209esac 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5220$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5221if ${lt_cv_to_host_file_cmd+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 case $host in 5225 *-*-mingw* ) 5226 case $build in 5227 *-*-mingw* ) # actually msys 5228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5229 ;; 5230 *-*-cygwin* ) 5231 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5232 ;; 5233 * ) # otherwise, assume *nix 5234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5235 ;; 5236 esac 5237 ;; 5238 *-*-cygwin* ) 5239 case $build in 5240 *-*-mingw* ) # actually msys 5241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5242 ;; 5243 *-*-cygwin* ) 5244 lt_cv_to_host_file_cmd=func_convert_file_noop 5245 ;; 5246 * ) # otherwise, assume *nix 5247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5248 ;; 5249 esac 5250 ;; 5251 * ) # unhandled hosts (and "normal" native builds) 5252 lt_cv_to_host_file_cmd=func_convert_file_noop 5253 ;; 5254esac 5255 5256fi 5257 5258to_host_file_cmd=$lt_cv_to_host_file_cmd 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5260$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5261 5262 5263 5264 5265 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5267$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5268if ${lt_cv_to_tool_file_cmd+:} false; then : 5269 $as_echo_n "(cached) " >&6 5270else 5271 #assume ordinary cross tools, or native build. 5272lt_cv_to_tool_file_cmd=func_convert_file_noop 5273case $host in 5274 *-*-mingw* ) 5275 case $build in 5276 *-*-mingw* ) # actually msys 5277 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5278 ;; 5279 esac 5280 ;; 5281esac 5282 5283fi 5284 5285to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5287$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5288 5289 5290 5291 5292 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5294$as_echo_n "checking for $LD option to reload object files... " >&6; } 5295if ${lt_cv_ld_reload_flag+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297else 5298 lt_cv_ld_reload_flag='-r' 5299fi 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5301$as_echo "$lt_cv_ld_reload_flag" >&6; } 5302reload_flag=$lt_cv_ld_reload_flag 5303case $reload_flag in 5304"" | " "*) ;; 5305*) reload_flag=" $reload_flag" ;; 5306esac 5307reload_cmds='$LD$reload_flag -o $output$reload_objs' 5308case $host_os in 5309 cygwin* | mingw* | pw32* | cegcc*) 5310 if test yes != "$GCC"; then 5311 reload_cmds=false 5312 fi 5313 ;; 5314 darwin*) 5315 if test yes = "$GCC"; then 5316 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5317 else 5318 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5319 fi 5320 ;; 5321esac 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331if test -n "$ac_tool_prefix"; then 5332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5333set dummy ${ac_tool_prefix}objdump; ac_word=$2 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5335$as_echo_n "checking for $ac_word... " >&6; } 5336if ${ac_cv_prog_OBJDUMP+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 if test -n "$OBJDUMP"; then 5340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5341else 5342as_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_exec_ext in '' $ac_executable_extensions; do 5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5349 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5351 break 2 5352 fi 5353done 5354 done 5355IFS=$as_save_IFS 5356 5357fi 5358fi 5359OBJDUMP=$ac_cv_prog_OBJDUMP 5360if test -n "$OBJDUMP"; then 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5362$as_echo "$OBJDUMP" >&6; } 5363else 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5365$as_echo "no" >&6; } 5366fi 5367 5368 5369fi 5370if test -z "$ac_cv_prog_OBJDUMP"; then 5371 ac_ct_OBJDUMP=$OBJDUMP 5372 # Extract the first word of "objdump", so it can be a program name with args. 5373set dummy objdump; ac_word=$2 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5375$as_echo_n "checking for $ac_word... " >&6; } 5376if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 if test -n "$ac_ct_OBJDUMP"; then 5380 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5381else 5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383for as_dir in $PATH 5384do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_exec_ext in '' $ac_executable_extensions; do 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5389 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5391 break 2 5392 fi 5393done 5394 done 5395IFS=$as_save_IFS 5396 5397fi 5398fi 5399ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5400if test -n "$ac_ct_OBJDUMP"; then 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5402$as_echo "$ac_ct_OBJDUMP" >&6; } 5403else 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5405$as_echo "no" >&6; } 5406fi 5407 5408 if test "x$ac_ct_OBJDUMP" = x; then 5409 OBJDUMP="false" 5410 else 5411 case $cross_compiling:$ac_tool_warned in 5412yes:) 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5415ac_tool_warned=yes ;; 5416esac 5417 OBJDUMP=$ac_ct_OBJDUMP 5418 fi 5419else 5420 OBJDUMP="$ac_cv_prog_OBJDUMP" 5421fi 5422 5423test -z "$OBJDUMP" && OBJDUMP=objdump 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5434$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5435if ${lt_cv_deplibs_check_method+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 lt_cv_file_magic_cmd='$MAGIC_CMD' 5439lt_cv_file_magic_test_file= 5440lt_cv_deplibs_check_method='unknown' 5441# Need to set the preceding variable on all platforms that support 5442# interlibrary dependencies. 5443# 'none' -- dependencies not supported. 5444# 'unknown' -- same as none, but documents that we really don't know. 5445# 'pass_all' -- all dependencies passed with no checks. 5446# 'test_compile' -- check by making test program. 5447# 'file_magic [[regex]]' -- check by looking for files in library path 5448# that responds to the $file_magic_cmd with a given extended regex. 5449# If you have 'file' or equivalent on your system and you're not sure 5450# whether 'pass_all' will *always* work, you probably want this one. 5451 5452case $host_os in 5453aix[4-9]*) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 5457beos*) 5458 lt_cv_deplibs_check_method=pass_all 5459 ;; 5460 5461bsdi[45]*) 5462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5463 lt_cv_file_magic_cmd='/usr/bin/file -L' 5464 lt_cv_file_magic_test_file=/shlib/libc.so 5465 ;; 5466 5467cygwin*) 5468 # func_win32_libid is a shell function defined in ltmain.sh 5469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5470 lt_cv_file_magic_cmd='func_win32_libid' 5471 ;; 5472 5473mingw* | pw32*) 5474 # Base MSYS/MinGW do not provide the 'file' command needed by 5475 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5476 # unless we find 'file', for example because we are cross-compiling. 5477 if ( file / ) >/dev/null 2>&1; then 5478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5479 lt_cv_file_magic_cmd='func_win32_libid' 5480 else 5481 # Keep this pattern in sync with the one in func_win32_libid. 5482 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5483 lt_cv_file_magic_cmd='$OBJDUMP -f' 5484 fi 5485 ;; 5486 5487cegcc*) 5488 # use the weaker test based on 'objdump'. See mingw*. 5489 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5490 lt_cv_file_magic_cmd='$OBJDUMP -f' 5491 ;; 5492 5493darwin* | rhapsody*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497freebsd* | dragonfly*) 5498 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5499 case $host_cpu in 5500 i*86 ) 5501 # Not sure whether the presence of OpenBSD here was a mistake. 5502 # Let's accept both of them until this is cleared up. 5503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5504 lt_cv_file_magic_cmd=/usr/bin/file 5505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5506 ;; 5507 esac 5508 else 5509 lt_cv_deplibs_check_method=pass_all 5510 fi 5511 ;; 5512 5513haiku*) 5514 lt_cv_deplibs_check_method=pass_all 5515 ;; 5516 5517hpux10.20* | hpux11*) 5518 lt_cv_file_magic_cmd=/usr/bin/file 5519 case $host_cpu in 5520 ia64*) 5521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5523 ;; 5524 hppa*64*) 5525 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]' 5526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5527 ;; 5528 *) 5529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5530 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5531 ;; 5532 esac 5533 ;; 5534 5535interix[3-9]*) 5536 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5538 ;; 5539 5540irix5* | irix6* | nonstopux*) 5541 case $LD in 5542 *-32|*"-32 ") libmagic=32-bit;; 5543 *-n32|*"-n32 ") libmagic=N32;; 5544 *-64|*"-64 ") libmagic=64-bit;; 5545 *) libmagic=never-match;; 5546 esac 5547 lt_cv_deplibs_check_method=pass_all 5548 ;; 5549 5550# This must be glibc/ELF. 5551linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5552 lt_cv_deplibs_check_method=pass_all 5553 ;; 5554 5555netbsd* | netbsdelf*-gnu) 5556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5558 else 5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5560 fi 5561 ;; 5562 5563newos6*) 5564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5565 lt_cv_file_magic_cmd=/usr/bin/file 5566 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5567 ;; 5568 5569*nto* | *qnx*) 5570 lt_cv_deplibs_check_method=pass_all 5571 ;; 5572 5573openbsd* | bitrig*) 5574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5576 else 5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5578 fi 5579 ;; 5580 5581osf3* | osf4* | osf5*) 5582 lt_cv_deplibs_check_method=pass_all 5583 ;; 5584 5585rdos*) 5586 lt_cv_deplibs_check_method=pass_all 5587 ;; 5588 5589solaris*) 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 5593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5594 lt_cv_deplibs_check_method=pass_all 5595 ;; 5596 5597sysv4 | sysv4.3*) 5598 case $host_vendor in 5599 motorola) 5600 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]' 5601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5602 ;; 5603 ncr) 5604 lt_cv_deplibs_check_method=pass_all 5605 ;; 5606 sequent) 5607 lt_cv_file_magic_cmd='/bin/file' 5608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5609 ;; 5610 sni) 5611 lt_cv_file_magic_cmd='/bin/file' 5612 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5613 lt_cv_file_magic_test_file=/lib/libc.so 5614 ;; 5615 siemens) 5616 lt_cv_deplibs_check_method=pass_all 5617 ;; 5618 pc) 5619 lt_cv_deplibs_check_method=pass_all 5620 ;; 5621 esac 5622 ;; 5623 5624tpf*) 5625 lt_cv_deplibs_check_method=pass_all 5626 ;; 5627os2*) 5628 lt_cv_deplibs_check_method=pass_all 5629 ;; 5630esac 5631 5632fi 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5634$as_echo "$lt_cv_deplibs_check_method" >&6; } 5635 5636file_magic_glob= 5637want_nocaseglob=no 5638if test "$build" = "$host"; then 5639 case $host_os in 5640 mingw* | pw32*) 5641 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5642 want_nocaseglob=yes 5643 else 5644 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5645 fi 5646 ;; 5647 esac 5648fi 5649 5650file_magic_cmd=$lt_cv_file_magic_cmd 5651deplibs_check_method=$lt_cv_deplibs_check_method 5652test -z "$deplibs_check_method" && deplibs_check_method=unknown 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675if test -n "$ac_tool_prefix"; then 5676 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5677set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5679$as_echo_n "checking for $ac_word... " >&6; } 5680if ${ac_cv_prog_DLLTOOL+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 if test -n "$DLLTOOL"; then 5684 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5685else 5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5687for as_dir in $PATH 5688do 5689 IFS=$as_save_IFS 5690 test -z "$as_dir" && as_dir=. 5691 for ac_exec_ext in '' $ac_executable_extensions; do 5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5693 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5695 break 2 5696 fi 5697done 5698 done 5699IFS=$as_save_IFS 5700 5701fi 5702fi 5703DLLTOOL=$ac_cv_prog_DLLTOOL 5704if test -n "$DLLTOOL"; then 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5706$as_echo "$DLLTOOL" >&6; } 5707else 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5709$as_echo "no" >&6; } 5710fi 5711 5712 5713fi 5714if test -z "$ac_cv_prog_DLLTOOL"; then 5715 ac_ct_DLLTOOL=$DLLTOOL 5716 # Extract the first word of "dlltool", so it can be a program name with args. 5717set dummy dlltool; ac_word=$2 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5719$as_echo_n "checking for $ac_word... " >&6; } 5720if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 if test -n "$ac_ct_DLLTOOL"; then 5724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5725else 5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727for as_dir in $PATH 5728do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738 done 5739IFS=$as_save_IFS 5740 5741fi 5742fi 5743ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5744if test -n "$ac_ct_DLLTOOL"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5746$as_echo "$ac_ct_DLLTOOL" >&6; } 5747else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749$as_echo "no" >&6; } 5750fi 5751 5752 if test "x$ac_ct_DLLTOOL" = x; then 5753 DLLTOOL="false" 5754 else 5755 case $cross_compiling:$ac_tool_warned in 5756yes:) 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5759ac_tool_warned=yes ;; 5760esac 5761 DLLTOOL=$ac_ct_DLLTOOL 5762 fi 5763else 5764 DLLTOOL="$ac_cv_prog_DLLTOOL" 5765fi 5766 5767test -z "$DLLTOOL" && DLLTOOL=dlltool 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5779$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5780if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 lt_cv_sharedlib_from_linklib_cmd='unknown' 5784 5785case $host_os in 5786cygwin* | mingw* | pw32* | cegcc*) 5787 # two different shell functions defined in ltmain.sh; 5788 # decide which one to use based on capabilities of $DLLTOOL 5789 case `$DLLTOOL --help 2>&1` in 5790 *--identify-strict*) 5791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5792 ;; 5793 *) 5794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5795 ;; 5796 esac 5797 ;; 5798*) 5799 # fallback: assume linklib IS sharedlib 5800 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5801 ;; 5802esac 5803 5804fi 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5806$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5807sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5808test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5809 5810 5811 5812 5813 5814 5815 5816if test -n "$ac_tool_prefix"; then 5817 for ac_prog in ar 5818 do 5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if ${ac_cv_prog_AR+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$AR"; then 5827 ac_cv_prog_AR="$AR" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846AR=$ac_cv_prog_AR 5847if test -n "$AR"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5849$as_echo "$AR" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 5856 test -n "$AR" && break 5857 done 5858fi 5859if test -z "$AR"; then 5860 ac_ct_AR=$AR 5861 for ac_prog in ar 5862do 5863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864set dummy $ac_prog; ac_word=$2 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866$as_echo_n "checking for $ac_word... " >&6; } 5867if ${ac_cv_prog_ac_ct_AR+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 if test -n "$ac_ct_AR"; then 5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5872else 5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5880 ac_cv_prog_ac_ct_AR="$ac_prog" 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884done 5885 done 5886IFS=$as_save_IFS 5887 5888fi 5889fi 5890ac_ct_AR=$ac_cv_prog_ac_ct_AR 5891if test -n "$ac_ct_AR"; then 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5893$as_echo "$ac_ct_AR" >&6; } 5894else 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5896$as_echo "no" >&6; } 5897fi 5898 5899 5900 test -n "$ac_ct_AR" && break 5901done 5902 5903 if test "x$ac_ct_AR" = x; then 5904 AR="false" 5905 else 5906 case $cross_compiling:$ac_tool_warned in 5907yes:) 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5910ac_tool_warned=yes ;; 5911esac 5912 AR=$ac_ct_AR 5913 fi 5914fi 5915 5916: ${AR=ar} 5917: ${AR_FLAGS=cru} 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5930$as_echo_n "checking for archiver @FILE support... " >&6; } 5931if ${lt_cv_ar_at_file+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 lt_cv_ar_at_file=no 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937 5938int 5939main () 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO"; then : 5947 echo conftest.$ac_objext > conftest.lst 5948 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5950 (eval $lt_ar_try) 2>&5 5951 ac_status=$? 5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5953 test $ac_status = 0; } 5954 if test 0 -eq "$ac_status"; then 5955 # Ensure the archiver fails upon bogus file names. 5956 rm -f conftest.$ac_objext libconftest.a 5957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5958 (eval $lt_ar_try) 2>&5 5959 ac_status=$? 5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5961 test $ac_status = 0; } 5962 if test 0 -ne "$ac_status"; then 5963 lt_cv_ar_at_file=@ 5964 fi 5965 fi 5966 rm -f conftest.* libconftest.a 5967 5968fi 5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5970 5971fi 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5973$as_echo "$lt_cv_ar_at_file" >&6; } 5974 5975if test no = "$lt_cv_ar_at_file"; then 5976 archiver_list_spec= 5977else 5978 archiver_list_spec=$lt_cv_ar_at_file 5979fi 5980 5981 5982 5983 5984 5985 5986 5987if test -n "$ac_tool_prefix"; then 5988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5989set dummy ${ac_tool_prefix}strip; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_STRIP+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$STRIP"; then 5996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015STRIP=$ac_cv_prog_STRIP 6016if test -n "$STRIP"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6018$as_echo "$STRIP" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025fi 6026if test -z "$ac_cv_prog_STRIP"; then 6027 ac_ct_STRIP=$STRIP 6028 # Extract the first word of "strip", so it can be a program name with args. 6029set dummy strip; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_STRIP"; then 6036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_STRIP="strip" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6056if test -n "$ac_ct_STRIP"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6058$as_echo "$ac_ct_STRIP" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 if test "x$ac_ct_STRIP" = x; then 6065 STRIP=":" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 STRIP=$ac_ct_STRIP 6074 fi 6075else 6076 STRIP="$ac_cv_prog_STRIP" 6077fi 6078 6079test -z "$STRIP" && STRIP=: 6080 6081 6082 6083 6084 6085 6086if test -n "$ac_tool_prefix"; then 6087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6088set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090$as_echo_n "checking for $ac_word... " >&6; } 6091if ${ac_cv_prog_RANLIB+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 if test -n "$RANLIB"; then 6095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109 done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114RANLIB=$ac_cv_prog_RANLIB 6115if test -n "$RANLIB"; then 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6117$as_echo "$RANLIB" >&6; } 6118else 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6120$as_echo "no" >&6; } 6121fi 6122 6123 6124fi 6125if test -z "$ac_cv_prog_RANLIB"; then 6126 ac_ct_RANLIB=$RANLIB 6127 # Extract the first word of "ranlib", so it can be a program name with args. 6128set dummy ranlib; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 if test -n "$ac_ct_RANLIB"; then 6135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_ac_ct_RANLIB="ranlib" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6155if test -n "$ac_ct_RANLIB"; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6157$as_echo "$ac_ct_RANLIB" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161fi 6162 6163 if test "x$ac_ct_RANLIB" = x; then 6164 RANLIB=":" 6165 else 6166 case $cross_compiling:$ac_tool_warned in 6167yes:) 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6170ac_tool_warned=yes ;; 6171esac 6172 RANLIB=$ac_ct_RANLIB 6173 fi 6174else 6175 RANLIB="$ac_cv_prog_RANLIB" 6176fi 6177 6178test -z "$RANLIB" && RANLIB=: 6179 6180 6181 6182 6183 6184 6185# Determine commands to create old-style static archives. 6186old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6187old_postinstall_cmds='chmod 644 $oldlib' 6188old_postuninstall_cmds= 6189 6190if test -n "$RANLIB"; then 6191 case $host_os in 6192 bitrig* | openbsd*) 6193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6194 ;; 6195 *) 6196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6197 ;; 6198 esac 6199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6200fi 6201 6202case $host_os in 6203 darwin*) 6204 lock_old_archive_extraction=yes ;; 6205 *) 6206 lock_old_archive_extraction=no ;; 6207esac 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247# If no C compiler was specified, use CC. 6248LTCC=${LTCC-"$CC"} 6249 6250# If no C compiler flags were specified, use CFLAGS. 6251LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6252 6253# Allow CC to be a program name with arguments. 6254compiler=$CC 6255 6256 6257# Check for command to grab the raw symbol name followed by C symbol from nm. 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6259$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6260if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 6264# These are sane defaults that work on at least a few old systems. 6265# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6266 6267# Character class describing NM global symbol codes. 6268symcode='[BCDEGRST]' 6269 6270# Regexp to match symbols that can be accessed directly from C. 6271sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6272 6273# Define system-specific variables. 6274case $host_os in 6275aix*) 6276 symcode='[BCDT]' 6277 ;; 6278cygwin* | mingw* | pw32* | cegcc*) 6279 symcode='[ABCDGISTW]' 6280 ;; 6281hpux*) 6282 if test ia64 = "$host_cpu"; then 6283 symcode='[ABCDEGRST]' 6284 fi 6285 ;; 6286irix* | nonstopux*) 6287 symcode='[BCDEGRST]' 6288 ;; 6289osf*) 6290 symcode='[BCDEGQRST]' 6291 ;; 6292solaris*) 6293 symcode='[BDRT]' 6294 ;; 6295sco3.2v5*) 6296 symcode='[DT]' 6297 ;; 6298sysv4.2uw2*) 6299 symcode='[DT]' 6300 ;; 6301sysv5* | sco5v6* | unixware* | OpenUNIX*) 6302 symcode='[ABDT]' 6303 ;; 6304sysv4) 6305 symcode='[DFNSTU]' 6306 ;; 6307esac 6308 6309# If we're using GNU nm, then use its standard symbol codes. 6310case `$NM -V 2>&1` in 6311*GNU* | *'with BFD'*) 6312 symcode='[ABCDGIRSTW]' ;; 6313esac 6314 6315if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6316 # Gets list of data symbols to import. 6317 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6318 # Adjust the below global symbol transforms to fixup imported variables. 6319 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6320 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6321 lt_c_name_lib_hook="\ 6322 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6323 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6324else 6325 # Disable hooks by default. 6326 lt_cv_sys_global_symbol_to_import= 6327 lt_cdecl_hook= 6328 lt_c_name_hook= 6329 lt_c_name_lib_hook= 6330fi 6331 6332# Transform an extracted symbol line into a proper C declaration. 6333# Some systems (esp. on ia64) link data and code symbols differently, 6334# so use this general approach. 6335lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6336$lt_cdecl_hook\ 6337" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6338" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6339 6340# Transform an extracted symbol line into symbol name and symbol address 6341lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6342$lt_c_name_hook\ 6343" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6344" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6345 6346# Transform an extracted symbol line into symbol name with lib prefix and 6347# symbol address. 6348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6349$lt_c_name_lib_hook\ 6350" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6351" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6352" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6353 6354# Handle CRLF in mingw tool chain 6355opt_cr= 6356case $build_os in 6357mingw*) 6358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6359 ;; 6360esac 6361 6362# Try without a prefix underscore, then with it. 6363for ac_symprfx in "" "_"; do 6364 6365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6366 symxfrm="\\1 $ac_symprfx\\2 \\2" 6367 6368 # Write the raw and C identifiers. 6369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6370 # Fake it for dumpbin and say T for any non-static function, 6371 # D for any global variable and I for any imported variable. 6372 # Also find C++ and __fastcall symbols from MSVC++, 6373 # which start with @ or ?. 6374 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6375" {last_section=section; section=\$ 3};"\ 6376" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6377" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6378" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6379" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6380" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6381" \$ 0!~/External *\|/{next};"\ 6382" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6383" {if(hide[section]) next};"\ 6384" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6385" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6386" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6387" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6388" ' prfx=^$ac_symprfx" 6389 else 6390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6391 fi 6392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6393 6394 # Check to see that the pipe works correctly. 6395 pipe_works=no 6396 6397 rm -f conftest* 6398 cat > conftest.$ac_ext <<_LT_EOF 6399#ifdef __cplusplus 6400extern "C" { 6401#endif 6402char nm_test_var; 6403void nm_test_func(void); 6404void nm_test_func(void){} 6405#ifdef __cplusplus 6406} 6407#endif 6408int main(){nm_test_var='a';nm_test_func();return(0);} 6409_LT_EOF 6410 6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6412 (eval $ac_compile) 2>&5 6413 ac_status=$? 6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6415 test $ac_status = 0; }; then 6416 # Now try to grab the symbols. 6417 nlist=conftest.nm 6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6420 ac_status=$? 6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6422 test $ac_status = 0; } && test -s "$nlist"; then 6423 # Try sorting and uniquifying the output. 6424 if sort "$nlist" | uniq > "$nlist"T; then 6425 mv -f "$nlist"T "$nlist" 6426 else 6427 rm -f "$nlist"T 6428 fi 6429 6430 # Make sure that we snagged all the symbols we need. 6431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6433 cat <<_LT_EOF > conftest.$ac_ext 6434/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6435#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6436/* DATA imports from DLLs on WIN32 can't be const, because runtime 6437 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6438# define LT_DLSYM_CONST 6439#elif defined __osf__ 6440/* This system does not cope well with relocations in const data. */ 6441# define LT_DLSYM_CONST 6442#else 6443# define LT_DLSYM_CONST const 6444#endif 6445 6446#ifdef __cplusplus 6447extern "C" { 6448#endif 6449 6450_LT_EOF 6451 # Now generate the symbol file. 6452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6453 6454 cat <<_LT_EOF >> conftest.$ac_ext 6455 6456/* The mapping between symbol names and symbols. */ 6457LT_DLSYM_CONST struct { 6458 const char *name; 6459 void *address; 6460} 6461lt__PROGRAM__LTX_preloaded_symbols[] = 6462{ 6463 { "@PROGRAM@", (void *) 0 }, 6464_LT_EOF 6465 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6466 cat <<\_LT_EOF >> conftest.$ac_ext 6467 {0, (void *) 0} 6468}; 6469 6470/* This works around a problem in FreeBSD linker */ 6471#ifdef FREEBSD_WORKAROUND 6472static const void *lt_preloaded_setup() { 6473 return lt__PROGRAM__LTX_preloaded_symbols; 6474} 6475#endif 6476 6477#ifdef __cplusplus 6478} 6479#endif 6480_LT_EOF 6481 # Now try linking the two files. 6482 mv conftest.$ac_objext conftstm.$ac_objext 6483 lt_globsym_save_LIBS=$LIBS 6484 lt_globsym_save_CFLAGS=$CFLAGS 6485 LIBS=conftstm.$ac_objext 6486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6488 (eval $ac_link) 2>&5 6489 ac_status=$? 6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6491 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6492 pipe_works=yes 6493 fi 6494 LIBS=$lt_globsym_save_LIBS 6495 CFLAGS=$lt_globsym_save_CFLAGS 6496 else 6497 echo "cannot find nm_test_func in $nlist" >&5 6498 fi 6499 else 6500 echo "cannot find nm_test_var in $nlist" >&5 6501 fi 6502 else 6503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6504 fi 6505 else 6506 echo "$progname: failed program was:" >&5 6507 cat conftest.$ac_ext >&5 6508 fi 6509 rm -rf conftest* conftst* 6510 6511 # Do not use the global_symbol_pipe unless it works. 6512 if test yes = "$pipe_works"; then 6513 break 6514 else 6515 lt_cv_sys_global_symbol_pipe= 6516 fi 6517done 6518 6519fi 6520 6521if test -z "$lt_cv_sys_global_symbol_pipe"; then 6522 lt_cv_sys_global_symbol_to_cdecl= 6523fi 6524if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6526$as_echo "failed" >&6; } 6527else 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6529$as_echo "ok" >&6; } 6530fi 6531 6532# Response file support. 6533if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6534 nm_file_list_spec='@' 6535elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6536 nm_file_list_spec='@' 6537fi 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6576$as_echo_n "checking for sysroot... " >&6; } 6577 6578# Check whether --with-sysroot was given. 6579if test "${with_sysroot+set}" = set; then : 6580 withval=$with_sysroot; 6581else 6582 with_sysroot=no 6583fi 6584 6585 6586lt_sysroot= 6587case $with_sysroot in #( 6588 yes) 6589 if test yes = "$GCC"; then 6590 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6591 fi 6592 ;; #( 6593 /*) 6594 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6595 ;; #( 6596 no|'') 6597 ;; #( 6598 *) 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6600$as_echo "$with_sysroot" >&6; } 6601 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6602 ;; 6603esac 6604 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6606$as_echo "${lt_sysroot:-no}" >&6; } 6607 6608 6609 6610 6611 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6613$as_echo_n "checking for a working dd... " >&6; } 6614if ${ac_cv_path_lt_DD+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 printf 0123456789abcdef0123456789abcdef >conftest.i 6618cat conftest.i conftest.i >conftest2.i 6619: ${lt_DD:=$DD} 6620if test -z "$lt_DD"; then 6621 ac_path_lt_DD_found=false 6622 # Loop through the user's path and test for each of PROGNAME-LIST 6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_prog in dd; do 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6631 as_fn_executable_p "$ac_path_lt_DD" || continue 6632if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6633 cmp -s conftest.i conftest.out \ 6634 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6635fi 6636 $ac_path_lt_DD_found && break 3 6637 done 6638 done 6639 done 6640IFS=$as_save_IFS 6641 if test -z "$ac_cv_path_lt_DD"; then 6642 : 6643 fi 6644else 6645 ac_cv_path_lt_DD=$lt_DD 6646fi 6647 6648rm -f conftest.i conftest2.i conftest.out 6649fi 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6651$as_echo "$ac_cv_path_lt_DD" >&6; } 6652 6653 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6655$as_echo_n "checking how to truncate binary pipes... " >&6; } 6656if ${lt_cv_truncate_bin+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 printf 0123456789abcdef0123456789abcdef >conftest.i 6660cat conftest.i conftest.i >conftest2.i 6661lt_cv_truncate_bin= 6662if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6663 cmp -s conftest.i conftest.out \ 6664 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6665fi 6666rm -f conftest.i conftest2.i conftest.out 6667test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6668fi 6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6670$as_echo "$lt_cv_truncate_bin" >&6; } 6671 6672 6673 6674 6675 6676 6677 6678# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6679func_cc_basename () 6680{ 6681 for cc_temp in $*""; do 6682 case $cc_temp in 6683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6685 \-*) ;; 6686 *) break;; 6687 esac 6688 done 6689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6690} 6691 6692# Check whether --enable-libtool-lock was given. 6693if test "${enable_libtool_lock+set}" = set; then : 6694 enableval=$enable_libtool_lock; 6695fi 6696 6697test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6698 6699# Some flags need to be propagated to the compiler or linker for good 6700# libtool support. 6701case $host in 6702ia64-*-hpux*) 6703 # Find out what ABI is being produced by ac_compile, and set mode 6704 # options accordingly. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.$ac_objext` in 6712 *ELF-32*) 6713 HPUX_IA64_MODE=32 6714 ;; 6715 *ELF-64*) 6716 HPUX_IA64_MODE=64 6717 ;; 6718 esac 6719 fi 6720 rm -rf conftest* 6721 ;; 6722*-*-irix6*) 6723 # Find out what ABI is being produced by ac_compile, and set linker 6724 # options accordingly. 6725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6727 (eval $ac_compile) 2>&5 6728 ac_status=$? 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6730 test $ac_status = 0; }; then 6731 if test yes = "$lt_cv_prog_gnu_ld"; then 6732 case `/usr/bin/file conftest.$ac_objext` in 6733 *32-bit*) 6734 LD="${LD-ld} -melf32bsmip" 6735 ;; 6736 *N32*) 6737 LD="${LD-ld} -melf32bmipn32" 6738 ;; 6739 *64-bit*) 6740 LD="${LD-ld} -melf64bmip" 6741 ;; 6742 esac 6743 else 6744 case `/usr/bin/file conftest.$ac_objext` in 6745 *32-bit*) 6746 LD="${LD-ld} -32" 6747 ;; 6748 *N32*) 6749 LD="${LD-ld} -n32" 6750 ;; 6751 *64-bit*) 6752 LD="${LD-ld} -64" 6753 ;; 6754 esac 6755 fi 6756 fi 6757 rm -rf conftest* 6758 ;; 6759 6760mips64*-*linux*) 6761 # Find out what ABI is being produced by ac_compile, and set linker 6762 # options accordingly. 6763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6765 (eval $ac_compile) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; }; then 6769 emul=elf 6770 case `/usr/bin/file conftest.$ac_objext` in 6771 *32-bit*) 6772 emul="${emul}32" 6773 ;; 6774 *64-bit*) 6775 emul="${emul}64" 6776 ;; 6777 esac 6778 case `/usr/bin/file conftest.$ac_objext` in 6779 *MSB*) 6780 emul="${emul}btsmip" 6781 ;; 6782 *LSB*) 6783 emul="${emul}ltsmip" 6784 ;; 6785 esac 6786 case `/usr/bin/file conftest.$ac_objext` in 6787 *N32*) 6788 emul="${emul}n32" 6789 ;; 6790 esac 6791 LD="${LD-ld} -m $emul" 6792 fi 6793 rm -rf conftest* 6794 ;; 6795 6796x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6797s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6798 # Find out what ABI is being produced by ac_compile, and set linker 6799 # options accordingly. Note that the listed cases only cover the 6800 # situations where additional linker options are needed (such as when 6801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6802 # vice versa); the common cases where no linker options are needed do 6803 # not appear in the list. 6804 echo 'int i;' > conftest.$ac_ext 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6806 (eval $ac_compile) 2>&5 6807 ac_status=$? 6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6809 test $ac_status = 0; }; then 6810 case `/usr/bin/file conftest.o` in 6811 *32-bit*) 6812 case $host in 6813 x86_64-*kfreebsd*-gnu) 6814 LD="${LD-ld} -m elf_i386_fbsd" 6815 ;; 6816 x86_64-*linux*) 6817 case `/usr/bin/file conftest.o` in 6818 *x86-64*) 6819 LD="${LD-ld} -m elf32_x86_64" 6820 ;; 6821 *) 6822 LD="${LD-ld} -m elf_i386" 6823 ;; 6824 esac 6825 ;; 6826 powerpc64le-*linux*) 6827 LD="${LD-ld} -m elf32lppclinux" 6828 ;; 6829 powerpc64-*linux*) 6830 LD="${LD-ld} -m elf32ppclinux" 6831 ;; 6832 s390x-*linux*) 6833 LD="${LD-ld} -m elf_s390" 6834 ;; 6835 sparc64-*linux*) 6836 LD="${LD-ld} -m elf32_sparc" 6837 ;; 6838 esac 6839 ;; 6840 *64-bit*) 6841 case $host in 6842 x86_64-*kfreebsd*-gnu) 6843 LD="${LD-ld} -m elf_x86_64_fbsd" 6844 ;; 6845 x86_64-*linux*) 6846 LD="${LD-ld} -m elf_x86_64" 6847 ;; 6848 powerpcle-*linux*) 6849 LD="${LD-ld} -m elf64lppc" 6850 ;; 6851 powerpc-*linux*) 6852 LD="${LD-ld} -m elf64ppc" 6853 ;; 6854 s390*-*linux*|s390*-*tpf*) 6855 LD="${LD-ld} -m elf64_s390" 6856 ;; 6857 sparc*-*linux*) 6858 LD="${LD-ld} -m elf64_sparc" 6859 ;; 6860 esac 6861 ;; 6862 esac 6863 fi 6864 rm -rf conftest* 6865 ;; 6866 6867*-*-sco3.2v5*) 6868 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6869 SAVE_CFLAGS=$CFLAGS 6870 CFLAGS="$CFLAGS -belf" 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6872$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6873if ${lt_cv_cc_needs_belf+:} false; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 ac_ext=c 6877ac_cpp='$CPP $CPPFLAGS' 6878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6880ac_compiler_gnu=$ac_cv_c_compiler_gnu 6881 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884 6885int 6886main () 6887{ 6888 6889 ; 6890 return 0; 6891} 6892_ACEOF 6893if ac_fn_c_try_link "$LINENO"; then : 6894 lt_cv_cc_needs_belf=yes 6895else 6896 lt_cv_cc_needs_belf=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext \ 6899 conftest$ac_exeext conftest.$ac_ext 6900 ac_ext=c 6901ac_cpp='$CPP $CPPFLAGS' 6902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6904ac_compiler_gnu=$ac_cv_c_compiler_gnu 6905 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6908$as_echo "$lt_cv_cc_needs_belf" >&6; } 6909 if test yes != "$lt_cv_cc_needs_belf"; then 6910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6911 CFLAGS=$SAVE_CFLAGS 6912 fi 6913 ;; 6914*-*solaris*) 6915 # Find out what ABI is being produced by ac_compile, and set linker 6916 # options accordingly. 6917 echo 'int i;' > conftest.$ac_ext 6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6919 (eval $ac_compile) 2>&5 6920 ac_status=$? 6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6922 test $ac_status = 0; }; then 6923 case `/usr/bin/file conftest.o` in 6924 *64-bit*) 6925 case $lt_cv_prog_gnu_ld in 6926 yes*) 6927 case $host in 6928 i?86-*-solaris*|x86_64-*-solaris*) 6929 LD="${LD-ld} -m elf_x86_64" 6930 ;; 6931 sparc*-*-solaris*) 6932 LD="${LD-ld} -m elf64_sparc" 6933 ;; 6934 esac 6935 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6936 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6937 LD=${LD-ld}_sol2 6938 fi 6939 ;; 6940 *) 6941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6942 LD="${LD-ld} -64" 6943 fi 6944 ;; 6945 esac 6946 ;; 6947 esac 6948 fi 6949 rm -rf conftest* 6950 ;; 6951esac 6952 6953need_locks=$enable_libtool_lock 6954 6955if test -n "$ac_tool_prefix"; then 6956 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6957set dummy ${ac_tool_prefix}mt; ac_word=$2 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959$as_echo_n "checking for $ac_word... " >&6; } 6960if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962else 6963 if test -n "$MANIFEST_TOOL"; then 6964 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6965else 6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6967for as_dir in $PATH 6968do 6969 IFS=$as_save_IFS 6970 test -z "$as_dir" && as_dir=. 6971 for ac_exec_ext in '' $ac_executable_extensions; do 6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6975 break 2 6976 fi 6977done 6978 done 6979IFS=$as_save_IFS 6980 6981fi 6982fi 6983MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6984if test -n "$MANIFEST_TOOL"; then 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6986$as_echo "$MANIFEST_TOOL" >&6; } 6987else 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6989$as_echo "no" >&6; } 6990fi 6991 6992 6993fi 6994if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6996 # Extract the first word of "mt", so it can be a program name with args. 6997set dummy mt; ac_word=$2 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6999$as_echo_n "checking for $ac_word... " >&6; } 7000if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 if test -n "$ac_ct_MANIFEST_TOOL"; then 7004 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7005else 7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7007for as_dir in $PATH 7008do 7009 IFS=$as_save_IFS 7010 test -z "$as_dir" && as_dir=. 7011 for ac_exec_ext in '' $ac_executable_extensions; do 7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7013 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7015 break 2 7016 fi 7017done 7018 done 7019IFS=$as_save_IFS 7020 7021fi 7022fi 7023ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7024if test -n "$ac_ct_MANIFEST_TOOL"; then 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7026$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7027else 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7029$as_echo "no" >&6; } 7030fi 7031 7032 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7033 MANIFEST_TOOL=":" 7034 else 7035 case $cross_compiling:$ac_tool_warned in 7036yes:) 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7039ac_tool_warned=yes ;; 7040esac 7041 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7042 fi 7043else 7044 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7045fi 7046 7047test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7049$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7050if ${lt_cv_path_mainfest_tool+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 lt_cv_path_mainfest_tool=no 7054 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7055 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7056 cat conftest.err >&5 7057 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7058 lt_cv_path_mainfest_tool=yes 7059 fi 7060 rm -f conftest* 7061fi 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7063$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7064if test yes != "$lt_cv_path_mainfest_tool"; then 7065 MANIFEST_TOOL=: 7066fi 7067 7068 7069 7070 7071 7072 7073 case $host_os in 7074 rhapsody* | darwin*) 7075 if test -n "$ac_tool_prefix"; then 7076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7077set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if ${ac_cv_prog_DSYMUTIL+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$DSYMUTIL"; then 7084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103DSYMUTIL=$ac_cv_prog_DSYMUTIL 7104if test -n "$DSYMUTIL"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7106$as_echo "$DSYMUTIL" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 7113fi 7114if test -z "$ac_cv_prog_DSYMUTIL"; then 7115 ac_ct_DSYMUTIL=$DSYMUTIL 7116 # Extract the first word of "dsymutil", so it can be a program name with args. 7117set dummy dsymutil; ac_word=$2 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119$as_echo_n "checking for $ac_word... " >&6; } 7120if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 if test -n "$ac_ct_DSYMUTIL"; then 7124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7125else 7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127for as_dir in $PATH 7128do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137done 7138 done 7139IFS=$as_save_IFS 7140 7141fi 7142fi 7143ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7144if test -n "$ac_ct_DSYMUTIL"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7146$as_echo "$ac_ct_DSYMUTIL" >&6; } 7147else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149$as_echo "no" >&6; } 7150fi 7151 7152 if test "x$ac_ct_DSYMUTIL" = x; then 7153 DSYMUTIL=":" 7154 else 7155 case $cross_compiling:$ac_tool_warned in 7156yes:) 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7159ac_tool_warned=yes ;; 7160esac 7161 DSYMUTIL=$ac_ct_DSYMUTIL 7162 fi 7163else 7164 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7165fi 7166 7167 if test -n "$ac_tool_prefix"; then 7168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7169set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_NMEDIT+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$NMEDIT"; then 7176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193fi 7194fi 7195NMEDIT=$ac_cv_prog_NMEDIT 7196if test -n "$NMEDIT"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7198$as_echo "$NMEDIT" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201$as_echo "no" >&6; } 7202fi 7203 7204 7205fi 7206if test -z "$ac_cv_prog_NMEDIT"; then 7207 ac_ct_NMEDIT=$NMEDIT 7208 # Extract the first word of "nmedit", so it can be a program name with args. 7209set dummy nmedit; ac_word=$2 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7211$as_echo_n "checking for $ac_word... " >&6; } 7212if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 if test -n "$ac_ct_NMEDIT"; then 7216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7217else 7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219for as_dir in $PATH 7220do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229done 7230 done 7231IFS=$as_save_IFS 7232 7233fi 7234fi 7235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7236if test -n "$ac_ct_NMEDIT"; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7238$as_echo "$ac_ct_NMEDIT" >&6; } 7239else 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7241$as_echo "no" >&6; } 7242fi 7243 7244 if test "x$ac_ct_NMEDIT" = x; then 7245 NMEDIT=":" 7246 else 7247 case $cross_compiling:$ac_tool_warned in 7248yes:) 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7251ac_tool_warned=yes ;; 7252esac 7253 NMEDIT=$ac_ct_NMEDIT 7254 fi 7255else 7256 NMEDIT="$ac_cv_prog_NMEDIT" 7257fi 7258 7259 if test -n "$ac_tool_prefix"; then 7260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7261set dummy ${ac_tool_prefix}lipo; ac_word=$2 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7263$as_echo_n "checking for $ac_word... " >&6; } 7264if ${ac_cv_prog_LIPO+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 if test -n "$LIPO"; then 7268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7269else 7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271for as_dir in $PATH 7272do 7273 IFS=$as_save_IFS 7274 test -z "$as_dir" && as_dir=. 7275 for ac_exec_ext in '' $ac_executable_extensions; do 7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7279 break 2 7280 fi 7281done 7282 done 7283IFS=$as_save_IFS 7284 7285fi 7286fi 7287LIPO=$ac_cv_prog_LIPO 7288if test -n "$LIPO"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7290$as_echo "$LIPO" >&6; } 7291else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293$as_echo "no" >&6; } 7294fi 7295 7296 7297fi 7298if test -z "$ac_cv_prog_LIPO"; then 7299 ac_ct_LIPO=$LIPO 7300 # Extract the first word of "lipo", so it can be a program name with args. 7301set dummy lipo; ac_word=$2 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7303$as_echo_n "checking for $ac_word... " >&6; } 7304if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 if test -n "$ac_ct_LIPO"; then 7308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7309else 7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7311for as_dir in $PATH 7312do 7313 IFS=$as_save_IFS 7314 test -z "$as_dir" && as_dir=. 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_ac_ct_LIPO="lipo" 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322 done 7323IFS=$as_save_IFS 7324 7325fi 7326fi 7327ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7328if test -n "$ac_ct_LIPO"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7330$as_echo "$ac_ct_LIPO" >&6; } 7331else 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333$as_echo "no" >&6; } 7334fi 7335 7336 if test "x$ac_ct_LIPO" = x; then 7337 LIPO=":" 7338 else 7339 case $cross_compiling:$ac_tool_warned in 7340yes:) 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7343ac_tool_warned=yes ;; 7344esac 7345 LIPO=$ac_ct_LIPO 7346 fi 7347else 7348 LIPO="$ac_cv_prog_LIPO" 7349fi 7350 7351 if test -n "$ac_tool_prefix"; then 7352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7353set dummy ${ac_tool_prefix}otool; ac_word=$2 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7355$as_echo_n "checking for $ac_word... " >&6; } 7356if ${ac_cv_prog_OTOOL+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 if test -n "$OTOOL"; then 7360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7361else 7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7363for as_dir in $PATH 7364do 7365 IFS=$as_save_IFS 7366 test -z "$as_dir" && as_dir=. 7367 for ac_exec_ext in '' $ac_executable_extensions; do 7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7371 break 2 7372 fi 7373done 7374 done 7375IFS=$as_save_IFS 7376 7377fi 7378fi 7379OTOOL=$ac_cv_prog_OTOOL 7380if test -n "$OTOOL"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7382$as_echo "$OTOOL" >&6; } 7383else 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7385$as_echo "no" >&6; } 7386fi 7387 7388 7389fi 7390if test -z "$ac_cv_prog_OTOOL"; then 7391 ac_ct_OTOOL=$OTOOL 7392 # Extract the first word of "otool", so it can be a program name with args. 7393set dummy otool; ac_word=$2 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395$as_echo_n "checking for $ac_word... " >&6; } 7396if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$ac_ct_OTOOL"; then 7400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7401else 7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_exec_ext in '' $ac_executable_extensions; do 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7409 ac_cv_prog_ac_ct_OTOOL="otool" 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7411 break 2 7412 fi 7413done 7414 done 7415IFS=$as_save_IFS 7416 7417fi 7418fi 7419ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7420if test -n "$ac_ct_OTOOL"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7422$as_echo "$ac_ct_OTOOL" >&6; } 7423else 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7425$as_echo "no" >&6; } 7426fi 7427 7428 if test "x$ac_ct_OTOOL" = x; then 7429 OTOOL=":" 7430 else 7431 case $cross_compiling:$ac_tool_warned in 7432yes:) 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7435ac_tool_warned=yes ;; 7436esac 7437 OTOOL=$ac_ct_OTOOL 7438 fi 7439else 7440 OTOOL="$ac_cv_prog_OTOOL" 7441fi 7442 7443 if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7445set dummy ${ac_tool_prefix}otool64; ac_word=$2 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447$as_echo_n "checking for $ac_word... " >&6; } 7448if ${ac_cv_prog_OTOOL64+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 if test -n "$OTOOL64"; then 7452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7453else 7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7455for as_dir in $PATH 7456do 7457 IFS=$as_save_IFS 7458 test -z "$as_dir" && as_dir=. 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7463 break 2 7464 fi 7465done 7466 done 7467IFS=$as_save_IFS 7468 7469fi 7470fi 7471OTOOL64=$ac_cv_prog_OTOOL64 7472if test -n "$OTOOL64"; then 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7474$as_echo "$OTOOL64" >&6; } 7475else 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7477$as_echo "no" >&6; } 7478fi 7479 7480 7481fi 7482if test -z "$ac_cv_prog_OTOOL64"; then 7483 ac_ct_OTOOL64=$OTOOL64 7484 # Extract the first word of "otool64", so it can be a program name with args. 7485set dummy otool64; ac_word=$2 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7487$as_echo_n "checking for $ac_word... " >&6; } 7488if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 if test -n "$ac_ct_OTOOL64"; then 7492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7493else 7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7495for as_dir in $PATH 7496do 7497 IFS=$as_save_IFS 7498 test -z "$as_dir" && as_dir=. 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7501 ac_cv_prog_ac_ct_OTOOL64="otool64" 7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505done 7506 done 7507IFS=$as_save_IFS 7508 7509fi 7510fi 7511ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7512if test -n "$ac_ct_OTOOL64"; then 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7514$as_echo "$ac_ct_OTOOL64" >&6; } 7515else 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517$as_echo "no" >&6; } 7518fi 7519 7520 if test "x$ac_ct_OTOOL64" = x; then 7521 OTOOL64=":" 7522 else 7523 case $cross_compiling:$ac_tool_warned in 7524yes:) 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7527ac_tool_warned=yes ;; 7528esac 7529 OTOOL64=$ac_ct_OTOOL64 7530 fi 7531else 7532 OTOOL64="$ac_cv_prog_OTOOL64" 7533fi 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7562$as_echo_n "checking for -single_module linker flag... " >&6; } 7563if ${lt_cv_apple_cc_single_mod+:} false; then : 7564 $as_echo_n "(cached) " >&6 7565else 7566 lt_cv_apple_cc_single_mod=no 7567 if test -z "$LT_MULTI_MODULE"; then 7568 # By default we will add the -single_module flag. You can override 7569 # by either setting the environment variable LT_MULTI_MODULE 7570 # non-empty at configure time, or by adding -multi_module to the 7571 # link flags. 7572 rm -rf libconftest.dylib* 7573 echo "int foo(void){return 1;}" > conftest.c 7574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7575-dynamiclib -Wl,-single_module conftest.c" >&5 7576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7578 _lt_result=$? 7579 # If there is a non-empty error log, and "single_module" 7580 # appears in it, assume the flag caused a linker warning 7581 if test -s conftest.err && $GREP single_module conftest.err; then 7582 cat conftest.err >&5 7583 # Otherwise, if the output was created with a 0 exit code from 7584 # the compiler, it worked. 7585 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7586 lt_cv_apple_cc_single_mod=yes 7587 else 7588 cat conftest.err >&5 7589 fi 7590 rm -rf libconftest.dylib* 7591 rm -f conftest.* 7592 fi 7593fi 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7595$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7596 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7598$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7599if ${lt_cv_ld_exported_symbols_list+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 lt_cv_ld_exported_symbols_list=no 7603 save_LDFLAGS=$LDFLAGS 7604 echo "_main" > conftest.sym 7605 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608 7609int 7610main () 7611{ 7612 7613 ; 7614 return 0; 7615} 7616_ACEOF 7617if ac_fn_c_try_link "$LINENO"; then : 7618 lt_cv_ld_exported_symbols_list=yes 7619else 7620 lt_cv_ld_exported_symbols_list=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext \ 7623 conftest$ac_exeext conftest.$ac_ext 7624 LDFLAGS=$save_LDFLAGS 7625 7626fi 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7628$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7629 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7631$as_echo_n "checking for -force_load linker flag... " >&6; } 7632if ${lt_cv_ld_force_load+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 lt_cv_ld_force_load=no 7636 cat > conftest.c << _LT_EOF 7637int forced_loaded() { return 2;} 7638_LT_EOF 7639 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7640 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7641 echo "$AR cru libconftest.a conftest.o" >&5 7642 $AR cru libconftest.a conftest.o 2>&5 7643 echo "$RANLIB libconftest.a" >&5 7644 $RANLIB libconftest.a 2>&5 7645 cat > conftest.c << _LT_EOF 7646int main() { return 0;} 7647_LT_EOF 7648 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7649 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7650 _lt_result=$? 7651 if test -s conftest.err && $GREP force_load conftest.err; then 7652 cat conftest.err >&5 7653 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7654 lt_cv_ld_force_load=yes 7655 else 7656 cat conftest.err >&5 7657 fi 7658 rm -f conftest.err libconftest.a conftest conftest.c 7659 rm -rf conftest.dSYM 7660 7661fi 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7663$as_echo "$lt_cv_ld_force_load" >&6; } 7664 case $host_os in 7665 rhapsody* | darwin1.[012]) 7666 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7667 darwin1.*) 7668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7669 darwin*) # darwin 5.x on 7670 # if running on 10.5 or later, the deployment target defaults 7671 # to the OS version, if on x86, and 10.4, the deployment 7672 # target defaults to 10.4. Don't you love it? 7673 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7674 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7675 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7676 10.[012][,.]*) 7677 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7678 10.*) 7679 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7680 esac 7681 ;; 7682 esac 7683 if test yes = "$lt_cv_apple_cc_single_mod"; then 7684 _lt_dar_single_mod='$single_module' 7685 fi 7686 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7687 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7688 else 7689 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7690 fi 7691 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7692 _lt_dsymutil='~$DSYMUTIL $lib || :' 7693 else 7694 _lt_dsymutil= 7695 fi 7696 ;; 7697 esac 7698 7699# func_munge_path_list VARIABLE PATH 7700# ----------------------------------- 7701# VARIABLE is name of variable containing _space_ separated list of 7702# directories to be munged by the contents of PATH, which is string 7703# having a format: 7704# "DIR[:DIR]:" 7705# string "DIR[ DIR]" will be prepended to VARIABLE 7706# ":DIR[:DIR]" 7707# string "DIR[ DIR]" will be appended to VARIABLE 7708# "DIRP[:DIRP]::[DIRA:]DIRA" 7709# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7710# "DIRA[ DIRA]" will be appended to VARIABLE 7711# "DIR[:DIR]" 7712# VARIABLE will be replaced by "DIR[ DIR]" 7713func_munge_path_list () 7714{ 7715 case x$2 in 7716 x) 7717 ;; 7718 *:) 7719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7720 ;; 7721 x:*) 7722 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7723 ;; 7724 *::*) 7725 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7726 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7727 ;; 7728 *) 7729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7730 ;; 7731 esac 7732} 7733 7734ac_ext=c 7735ac_cpp='$CPP $CPPFLAGS' 7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7738ac_compiler_gnu=$ac_cv_c_compiler_gnu 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7740$as_echo_n "checking how to run the C preprocessor... " >&6; } 7741# On Suns, sometimes $CPP names a directory. 7742if test -n "$CPP" && test -d "$CPP"; then 7743 CPP= 7744fi 7745if test -z "$CPP"; then 7746 if ${ac_cv_prog_CPP+:} false; then : 7747 $as_echo_n "(cached) " >&6 7748else 7749 # Double quotes because CPP needs to be expanded 7750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7751 do 7752 ac_preproc_ok=false 7753for ac_c_preproc_warn_flag in '' yes 7754do 7755 # Use a header file that comes with gcc, so configuring glibc 7756 # with a fresh cross-compiler works. 7757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7758 # <limits.h> exists even on freestanding compilers. 7759 # On the NeXT, cc -E runs the code through the compiler's parser, 7760 # not just through cpp. "Syntax error" is here to catch this case. 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763#ifdef __STDC__ 7764# include <limits.h> 7765#else 7766# include <assert.h> 7767#endif 7768 Syntax error 7769_ACEOF 7770if ac_fn_c_try_cpp "$LINENO"; then : 7771 7772else 7773 # Broken: fails on valid input. 7774continue 7775fi 7776rm -f conftest.err conftest.i conftest.$ac_ext 7777 7778 # OK, works on sane cases. Now check whether nonexistent headers 7779 # can be detected and how. 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782#include <ac_nonexistent.h> 7783_ACEOF 7784if ac_fn_c_try_cpp "$LINENO"; then : 7785 # Broken: success on invalid input. 7786continue 7787else 7788 # Passes both tests. 7789ac_preproc_ok=: 7790break 7791fi 7792rm -f conftest.err conftest.i conftest.$ac_ext 7793 7794done 7795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7796rm -f conftest.i conftest.err conftest.$ac_ext 7797if $ac_preproc_ok; then : 7798 break 7799fi 7800 7801 done 7802 ac_cv_prog_CPP=$CPP 7803 7804fi 7805 CPP=$ac_cv_prog_CPP 7806else 7807 ac_cv_prog_CPP=$CPP 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7810$as_echo "$CPP" >&6; } 7811ac_preproc_ok=false 7812for ac_c_preproc_warn_flag in '' yes 7813do 7814 # Use a header file that comes with gcc, so configuring glibc 7815 # with a fresh cross-compiler works. 7816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7817 # <limits.h> exists even on freestanding compilers. 7818 # On the NeXT, cc -E runs the code through the compiler's parser, 7819 # not just through cpp. "Syntax error" is here to catch this case. 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822#ifdef __STDC__ 7823# include <limits.h> 7824#else 7825# include <assert.h> 7826#endif 7827 Syntax error 7828_ACEOF 7829if ac_fn_c_try_cpp "$LINENO"; then : 7830 7831else 7832 # Broken: fails on valid input. 7833continue 7834fi 7835rm -f conftest.err conftest.i conftest.$ac_ext 7836 7837 # OK, works on sane cases. Now check whether nonexistent headers 7838 # can be detected and how. 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841#include <ac_nonexistent.h> 7842_ACEOF 7843if ac_fn_c_try_cpp "$LINENO"; then : 7844 # Broken: success on invalid input. 7845continue 7846else 7847 # Passes both tests. 7848ac_preproc_ok=: 7849break 7850fi 7851rm -f conftest.err conftest.i conftest.$ac_ext 7852 7853done 7854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7855rm -f conftest.i conftest.err conftest.$ac_ext 7856if $ac_preproc_ok; then : 7857 7858else 7859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7861as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7862See \`config.log' for more details" "$LINENO" 5; } 7863fi 7864 7865ac_ext=c 7866ac_cpp='$CPP $CPPFLAGS' 7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7869ac_compiler_gnu=$ac_cv_c_compiler_gnu 7870 7871 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7873$as_echo_n "checking for ANSI C header files... " >&6; } 7874if ${ac_cv_header_stdc+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879#include <stdlib.h> 7880#include <stdarg.h> 7881#include <string.h> 7882#include <float.h> 7883 7884int 7885main () 7886{ 7887 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892if ac_fn_c_try_compile "$LINENO"; then : 7893 ac_cv_header_stdc=yes 7894else 7895 ac_cv_header_stdc=no 7896fi 7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7898 7899if test $ac_cv_header_stdc = yes; then 7900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903#include <string.h> 7904 7905_ACEOF 7906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7907 $EGREP "memchr" >/dev/null 2>&1; then : 7908 7909else 7910 ac_cv_header_stdc=no 7911fi 7912rm -f conftest* 7913 7914fi 7915 7916if test $ac_cv_header_stdc = yes; then 7917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919/* end confdefs.h. */ 7920#include <stdlib.h> 7921 7922_ACEOF 7923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7924 $EGREP "free" >/dev/null 2>&1; then : 7925 7926else 7927 ac_cv_header_stdc=no 7928fi 7929rm -f conftest* 7930 7931fi 7932 7933if test $ac_cv_header_stdc = yes; then 7934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7935 if test "$cross_compiling" = yes; then : 7936 : 7937else 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940#include <ctype.h> 7941#include <stdlib.h> 7942#if ((' ' & 0x0FF) == 0x020) 7943# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7944# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7945#else 7946# define ISLOWER(c) \ 7947 (('a' <= (c) && (c) <= 'i') \ 7948 || ('j' <= (c) && (c) <= 'r') \ 7949 || ('s' <= (c) && (c) <= 'z')) 7950# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7951#endif 7952 7953#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7954int 7955main () 7956{ 7957 int i; 7958 for (i = 0; i < 256; i++) 7959 if (XOR (islower (i), ISLOWER (i)) 7960 || toupper (i) != TOUPPER (i)) 7961 return 2; 7962 return 0; 7963} 7964_ACEOF 7965if ac_fn_c_try_run "$LINENO"; then : 7966 7967else 7968 ac_cv_header_stdc=no 7969fi 7970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7971 conftest.$ac_objext conftest.beam conftest.$ac_ext 7972fi 7973 7974fi 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7977$as_echo "$ac_cv_header_stdc" >&6; } 7978if test $ac_cv_header_stdc = yes; then 7979 7980$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7981 7982fi 7983 7984# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7985for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7986 inttypes.h stdint.h unistd.h 7987do : 7988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7989ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7990" 7991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7992 cat >>confdefs.h <<_ACEOF 7993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7994_ACEOF 7995 7996fi 7997 7998done 7999 8000 8001for ac_header in dlfcn.h 8002do : 8003 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8004" 8005if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8006 cat >>confdefs.h <<_ACEOF 8007#define HAVE_DLFCN_H 1 8008_ACEOF 8009 8010fi 8011 8012done 8013 8014 8015 8016 8017 8018# Set options 8019 8020 8021 8022 enable_dlopen=no 8023 8024 8025 enable_win32_dll=no 8026 8027 8028 # Check whether --enable-shared was given. 8029if test "${enable_shared+set}" = set; then : 8030 enableval=$enable_shared; p=${PACKAGE-default} 8031 case $enableval in 8032 yes) enable_shared=yes ;; 8033 no) enable_shared=no ;; 8034 *) 8035 enable_shared=no 8036 # Look at the argument we got. We use all the common list separators. 8037 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8038 for pkg in $enableval; do 8039 IFS=$lt_save_ifs 8040 if test "X$pkg" = "X$p"; then 8041 enable_shared=yes 8042 fi 8043 done 8044 IFS=$lt_save_ifs 8045 ;; 8046 esac 8047else 8048 enable_shared=yes 8049fi 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061# Check whether --with-pic was given. 8062if test "${with_pic+set}" = set; then : 8063 withval=$with_pic; lt_p=${PACKAGE-default} 8064 case $withval in 8065 yes|no) pic_mode=$withval ;; 8066 *) 8067 pic_mode=default 8068 # Look at the argument we got. We use all the common list separators. 8069 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8070 for lt_pkg in $withval; do 8071 IFS=$lt_save_ifs 8072 if test "X$lt_pkg" = "X$lt_p"; then 8073 pic_mode=yes 8074 fi 8075 done 8076 IFS=$lt_save_ifs 8077 ;; 8078 esac 8079else 8080 pic_mode=default 8081fi 8082 8083 8084 8085 8086 8087 8088 8089 8090 # Check whether --enable-fast-install was given. 8091if test "${enable_fast_install+set}" = set; then : 8092 enableval=$enable_fast_install; p=${PACKAGE-default} 8093 case $enableval in 8094 yes) enable_fast_install=yes ;; 8095 no) enable_fast_install=no ;; 8096 *) 8097 enable_fast_install=no 8098 # Look at the argument we got. We use all the common list separators. 8099 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8100 for pkg in $enableval; do 8101 IFS=$lt_save_ifs 8102 if test "X$pkg" = "X$p"; then 8103 enable_fast_install=yes 8104 fi 8105 done 8106 IFS=$lt_save_ifs 8107 ;; 8108 esac 8109else 8110 enable_fast_install=yes 8111fi 8112 8113 8114 8115 8116 8117 8118 8119 8120 shared_archive_member_spec= 8121case $host,$enable_shared in 8122power*-*-aix[5-9]*,yes) 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8124$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8125 8126# Check whether --with-aix-soname was given. 8127if test "${with_aix_soname+set}" = set; then : 8128 withval=$with_aix_soname; case $withval in 8129 aix|svr4|both) 8130 ;; 8131 *) 8132 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8133 ;; 8134 esac 8135 lt_cv_with_aix_soname=$with_aix_soname 8136else 8137 if ${lt_cv_with_aix_soname+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 lt_cv_with_aix_soname=aix 8141fi 8142 8143 with_aix_soname=$lt_cv_with_aix_soname 8144fi 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8147$as_echo "$with_aix_soname" >&6; } 8148 if test aix != "$with_aix_soname"; then 8149 # For the AIX way of multilib, we name the shared archive member 8150 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8151 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8152 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8153 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8154 if test 64 = "${OBJECT_MODE-32}"; then 8155 shared_archive_member_spec=shr_64 8156 else 8157 shared_archive_member_spec=shr 8158 fi 8159 fi 8160 ;; 8161*) 8162 with_aix_soname=aix 8163 ;; 8164esac 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175# This can be used to rebuild libtool when needed 8176LIBTOOL_DEPS=$ltmain 8177 8178# Always use our own libtool. 8179LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210test -z "$LN_S" && LN_S="ln -s" 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225if test -n "${ZSH_VERSION+set}"; then 8226 setopt NO_GLOB_SUBST 8227fi 8228 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8230$as_echo_n "checking for objdir... " >&6; } 8231if ${lt_cv_objdir+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 rm -f .libs 2>/dev/null 8235mkdir .libs 2>/dev/null 8236if test -d .libs; then 8237 lt_cv_objdir=.libs 8238else 8239 # MS-DOS does not allow filenames that begin with a dot. 8240 lt_cv_objdir=_libs 8241fi 8242rmdir .libs 2>/dev/null 8243fi 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8245$as_echo "$lt_cv_objdir" >&6; } 8246objdir=$lt_cv_objdir 8247 8248 8249 8250 8251 8252cat >>confdefs.h <<_ACEOF 8253#define LT_OBJDIR "$lt_cv_objdir/" 8254_ACEOF 8255 8256 8257 8258 8259case $host_os in 8260aix3*) 8261 # AIX sometimes has problems with the GCC collect2 program. For some 8262 # reason, if we set the COLLECT_NAMES environment variable, the problems 8263 # vanish in a puff of smoke. 8264 if test set != "${COLLECT_NAMES+set}"; then 8265 COLLECT_NAMES= 8266 export COLLECT_NAMES 8267 fi 8268 ;; 8269esac 8270 8271# Global variables: 8272ofile=libtool 8273can_build_shared=yes 8274 8275# All known linkers require a '.a' archive for static linking (except MSVC, 8276# which needs '.lib'). 8277libext=a 8278 8279with_gnu_ld=$lt_cv_prog_gnu_ld 8280 8281old_CC=$CC 8282old_CFLAGS=$CFLAGS 8283 8284# Set sane defaults for various variables 8285test -z "$CC" && CC=cc 8286test -z "$LTCC" && LTCC=$CC 8287test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8288test -z "$LD" && LD=ld 8289test -z "$ac_objext" && ac_objext=o 8290 8291func_cc_basename $compiler 8292cc_basename=$func_cc_basename_result 8293 8294 8295# Only perform the check for file, if the check method requires it 8296test -z "$MAGIC_CMD" && MAGIC_CMD=file 8297case $deplibs_check_method in 8298file_magic*) 8299 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8301$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8302if ${lt_cv_path_MAGIC_CMD+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 case $MAGIC_CMD in 8306[\\/*] | ?:[\\/]*) 8307 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8308 ;; 8309*) 8310 lt_save_MAGIC_CMD=$MAGIC_CMD 8311 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8313 for ac_dir in $ac_dummy; do 8314 IFS=$lt_save_ifs 8315 test -z "$ac_dir" && ac_dir=. 8316 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8317 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8318 if test -n "$file_magic_test_file"; then 8319 case $deplibs_check_method in 8320 "file_magic "*) 8321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8322 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8324 $EGREP "$file_magic_regex" > /dev/null; then 8325 : 8326 else 8327 cat <<_LT_EOF 1>&2 8328 8329*** Warning: the command libtool uses to detect shared libraries, 8330*** $file_magic_cmd, produces output that libtool cannot recognize. 8331*** The result is that libtool may fail to recognize shared libraries 8332*** as such. This will affect the creation of libtool libraries that 8333*** depend on shared libraries, but programs linked with such libtool 8334*** libraries will work regardless of this problem. Nevertheless, you 8335*** may want to report the problem to your system manager and/or to 8336*** bug-libtool@gnu.org 8337 8338_LT_EOF 8339 fi ;; 8340 esac 8341 fi 8342 break 8343 fi 8344 done 8345 IFS=$lt_save_ifs 8346 MAGIC_CMD=$lt_save_MAGIC_CMD 8347 ;; 8348esac 8349fi 8350 8351MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8352if test -n "$MAGIC_CMD"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8354$as_echo "$MAGIC_CMD" >&6; } 8355else 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357$as_echo "no" >&6; } 8358fi 8359 8360 8361 8362 8363 8364if test -z "$lt_cv_path_MAGIC_CMD"; then 8365 if test -n "$ac_tool_prefix"; then 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8367$as_echo_n "checking for file... " >&6; } 8368if ${lt_cv_path_MAGIC_CMD+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370else 8371 case $MAGIC_CMD in 8372[\\/*] | ?:[\\/]*) 8373 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8374 ;; 8375*) 8376 lt_save_MAGIC_CMD=$MAGIC_CMD 8377 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8379 for ac_dir in $ac_dummy; do 8380 IFS=$lt_save_ifs 8381 test -z "$ac_dir" && ac_dir=. 8382 if test -f "$ac_dir/file"; then 8383 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8384 if test -n "$file_magic_test_file"; then 8385 case $deplibs_check_method in 8386 "file_magic "*) 8387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8388 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8390 $EGREP "$file_magic_regex" > /dev/null; then 8391 : 8392 else 8393 cat <<_LT_EOF 1>&2 8394 8395*** Warning: the command libtool uses to detect shared libraries, 8396*** $file_magic_cmd, produces output that libtool cannot recognize. 8397*** The result is that libtool may fail to recognize shared libraries 8398*** as such. This will affect the creation of libtool libraries that 8399*** depend on shared libraries, but programs linked with such libtool 8400*** libraries will work regardless of this problem. Nevertheless, you 8401*** may want to report the problem to your system manager and/or to 8402*** bug-libtool@gnu.org 8403 8404_LT_EOF 8405 fi ;; 8406 esac 8407 fi 8408 break 8409 fi 8410 done 8411 IFS=$lt_save_ifs 8412 MAGIC_CMD=$lt_save_MAGIC_CMD 8413 ;; 8414esac 8415fi 8416 8417MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8418if test -n "$MAGIC_CMD"; then 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8420$as_echo "$MAGIC_CMD" >&6; } 8421else 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8423$as_echo "no" >&6; } 8424fi 8425 8426 8427 else 8428 MAGIC_CMD=: 8429 fi 8430fi 8431 8432 fi 8433 ;; 8434esac 8435 8436# Use C for the default configuration in the libtool script 8437 8438lt_save_CC=$CC 8439ac_ext=c 8440ac_cpp='$CPP $CPPFLAGS' 8441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8443ac_compiler_gnu=$ac_cv_c_compiler_gnu 8444 8445 8446# Source file extension for C test sources. 8447ac_ext=c 8448 8449# Object file extension for compiled C test sources. 8450objext=o 8451objext=$objext 8452 8453# Code to be used in simple compile tests 8454lt_simple_compile_test_code="int some_variable = 0;" 8455 8456# Code to be used in simple link tests 8457lt_simple_link_test_code='int main(){return(0);}' 8458 8459 8460 8461 8462 8463 8464 8465# If no C compiler was specified, use CC. 8466LTCC=${LTCC-"$CC"} 8467 8468# If no C compiler flags were specified, use CFLAGS. 8469LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8470 8471# Allow CC to be a program name with arguments. 8472compiler=$CC 8473 8474# Save the default compiler, since it gets overwritten when the other 8475# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8476compiler_DEFAULT=$CC 8477 8478# save warnings/boilerplate of simple test code 8479ac_outfile=conftest.$ac_objext 8480echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8481eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8482_lt_compiler_boilerplate=`cat conftest.err` 8483$RM conftest* 8484 8485ac_outfile=conftest.$ac_objext 8486echo "$lt_simple_link_test_code" >conftest.$ac_ext 8487eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8488_lt_linker_boilerplate=`cat conftest.err` 8489$RM -r conftest* 8490 8491 8492## CAVEAT EMPTOR: 8493## There is no encapsulation within the following macros, do not change 8494## the running order or otherwise move them around unless you know exactly 8495## what you are doing... 8496if test -n "$compiler"; then 8497 8498lt_prog_compiler_no_builtin_flag= 8499 8500if test yes = "$GCC"; then 8501 case $cc_basename in 8502 nvcc*) 8503 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8504 *) 8505 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8506 esac 8507 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8509$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8510if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 lt_cv_prog_compiler_rtti_exceptions=no 8514 ac_outfile=conftest.$ac_objext 8515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8516 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8517 # Insert the option either (1) after the last *FLAGS variable, or 8518 # (2) before a word containing "conftest.", or (3) at the end. 8519 # Note that $ac_compile itself does not contain backslashes and begins 8520 # with a dollar sign (not a hyphen), so the echo should work correctly. 8521 # The option is referenced via a variable to avoid confusing sed. 8522 lt_compile=`echo "$ac_compile" | $SED \ 8523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8525 -e 's:$: $lt_compiler_flag:'` 8526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8527 (eval "$lt_compile" 2>conftest.err) 8528 ac_status=$? 8529 cat conftest.err >&5 8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 if (exit $ac_status) && test -s "$ac_outfile"; then 8532 # The compiler can only warn and ignore the option if not recognized 8533 # So say no if there are warnings other than the usual output. 8534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8537 lt_cv_prog_compiler_rtti_exceptions=yes 8538 fi 8539 fi 8540 $RM conftest* 8541 8542fi 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8544$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8545 8546if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8548else 8549 : 8550fi 8551 8552fi 8553 8554 8555 8556 8557 8558 8559 lt_prog_compiler_wl= 8560lt_prog_compiler_pic= 8561lt_prog_compiler_static= 8562 8563 8564 if test yes = "$GCC"; then 8565 lt_prog_compiler_wl='-Wl,' 8566 lt_prog_compiler_static='-static' 8567 8568 case $host_os in 8569 aix*) 8570 # All AIX code is PIC. 8571 if test ia64 = "$host_cpu"; then 8572 # AIX 5 now supports IA64 processor 8573 lt_prog_compiler_static='-Bstatic' 8574 fi 8575 lt_prog_compiler_pic='-fPIC' 8576 ;; 8577 8578 amigaos*) 8579 case $host_cpu in 8580 powerpc) 8581 # see comment about AmigaOS4 .so support 8582 lt_prog_compiler_pic='-fPIC' 8583 ;; 8584 m68k) 8585 # FIXME: we need at least 68020 code to build shared libraries, but 8586 # adding the '-m68020' flag to GCC prevents building anything better, 8587 # like '-m68040'. 8588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8589 ;; 8590 esac 8591 ;; 8592 8593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8594 # PIC is the default for these OSes. 8595 ;; 8596 8597 mingw* | cygwin* | pw32* | os2* | cegcc*) 8598 # This hack is so that the source file can tell whether it is being 8599 # built for inclusion in a dll (and should export symbols for example). 8600 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8601 # (--disable-auto-import) libraries 8602 lt_prog_compiler_pic='-DDLL_EXPORT' 8603 case $host_os in 8604 os2*) 8605 lt_prog_compiler_static='$wl-static' 8606 ;; 8607 esac 8608 ;; 8609 8610 darwin* | rhapsody*) 8611 # PIC is the default on this platform 8612 # Common symbols not allowed in MH_DYLIB files 8613 lt_prog_compiler_pic='-fno-common' 8614 ;; 8615 8616 haiku*) 8617 # PIC is the default for Haiku. 8618 # The "-static" flag exists, but is broken. 8619 lt_prog_compiler_static= 8620 ;; 8621 8622 hpux*) 8623 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8624 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8625 # sets the default TLS model and affects inlining. 8626 case $host_cpu in 8627 hppa*64*) 8628 # +Z the default 8629 ;; 8630 *) 8631 lt_prog_compiler_pic='-fPIC' 8632 ;; 8633 esac 8634 ;; 8635 8636 interix[3-9]*) 8637 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8638 # Instead, we relocate shared libraries at runtime. 8639 ;; 8640 8641 msdosdjgpp*) 8642 # Just because we use GCC doesn't mean we suddenly get shared libraries 8643 # on systems that don't support them. 8644 lt_prog_compiler_can_build_shared=no 8645 enable_shared=no 8646 ;; 8647 8648 *nto* | *qnx*) 8649 # QNX uses GNU C++, but need to define -shared option too, otherwise 8650 # it will coredump. 8651 lt_prog_compiler_pic='-fPIC -shared' 8652 ;; 8653 8654 sysv4*MP*) 8655 if test -d /usr/nec; then 8656 lt_prog_compiler_pic=-Kconform_pic 8657 fi 8658 ;; 8659 8660 *) 8661 lt_prog_compiler_pic='-fPIC' 8662 ;; 8663 esac 8664 8665 case $cc_basename in 8666 nvcc*) # Cuda Compiler Driver 2.2 8667 lt_prog_compiler_wl='-Xlinker ' 8668 if test -n "$lt_prog_compiler_pic"; then 8669 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8670 fi 8671 ;; 8672 esac 8673 else 8674 # PORTME Check for flag to pass linker flags through the system compiler. 8675 case $host_os in 8676 aix*) 8677 lt_prog_compiler_wl='-Wl,' 8678 if test ia64 = "$host_cpu"; then 8679 # AIX 5 now supports IA64 processor 8680 lt_prog_compiler_static='-Bstatic' 8681 else 8682 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8683 fi 8684 ;; 8685 8686 darwin* | rhapsody*) 8687 # PIC is the default on this platform 8688 # Common symbols not allowed in MH_DYLIB files 8689 lt_prog_compiler_pic='-fno-common' 8690 case $cc_basename in 8691 nagfor*) 8692 # NAG Fortran compiler 8693 lt_prog_compiler_wl='-Wl,-Wl,,' 8694 lt_prog_compiler_pic='-PIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 esac 8698 ;; 8699 8700 mingw* | cygwin* | pw32* | os2* | cegcc*) 8701 # This hack is so that the source file can tell whether it is being 8702 # built for inclusion in a dll (and should export symbols for example). 8703 lt_prog_compiler_pic='-DDLL_EXPORT' 8704 case $host_os in 8705 os2*) 8706 lt_prog_compiler_static='$wl-static' 8707 ;; 8708 esac 8709 ;; 8710 8711 hpux9* | hpux10* | hpux11*) 8712 lt_prog_compiler_wl='-Wl,' 8713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8714 # not for PA HP-UX. 8715 case $host_cpu in 8716 hppa*64*|ia64*) 8717 # +Z the default 8718 ;; 8719 *) 8720 lt_prog_compiler_pic='+Z' 8721 ;; 8722 esac 8723 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8724 lt_prog_compiler_static='$wl-a ${wl}archive' 8725 ;; 8726 8727 irix5* | irix6* | nonstopux*) 8728 lt_prog_compiler_wl='-Wl,' 8729 # PIC (with -KPIC) is the default. 8730 lt_prog_compiler_static='-non_shared' 8731 ;; 8732 8733 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8734 case $cc_basename in 8735 # old Intel for x86_64, which still supported -KPIC. 8736 ecc*) 8737 lt_prog_compiler_wl='-Wl,' 8738 lt_prog_compiler_pic='-KPIC' 8739 lt_prog_compiler_static='-static' 8740 ;; 8741 # icc used to be incompatible with GCC. 8742 # ICC 10 doesn't accept -KPIC any more. 8743 icc* | ifort*) 8744 lt_prog_compiler_wl='-Wl,' 8745 lt_prog_compiler_pic='-fPIC' 8746 lt_prog_compiler_static='-static' 8747 ;; 8748 # Lahey Fortran 8.1. 8749 lf95*) 8750 lt_prog_compiler_wl='-Wl,' 8751 lt_prog_compiler_pic='--shared' 8752 lt_prog_compiler_static='--static' 8753 ;; 8754 nagfor*) 8755 # NAG Fortran compiler 8756 lt_prog_compiler_wl='-Wl,-Wl,,' 8757 lt_prog_compiler_pic='-PIC' 8758 lt_prog_compiler_static='-Bstatic' 8759 ;; 8760 tcc*) 8761 # Fabrice Bellard et al's Tiny C Compiler 8762 lt_prog_compiler_wl='-Wl,' 8763 lt_prog_compiler_pic='-fPIC' 8764 lt_prog_compiler_static='-static' 8765 ;; 8766 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8767 # Portland Group compilers (*not* the Pentium gcc compiler, 8768 # which looks to be a dead project) 8769 lt_prog_compiler_wl='-Wl,' 8770 lt_prog_compiler_pic='-fpic' 8771 lt_prog_compiler_static='-Bstatic' 8772 ;; 8773 ccc*) 8774 lt_prog_compiler_wl='-Wl,' 8775 # All Alpha code is PIC. 8776 lt_prog_compiler_static='-non_shared' 8777 ;; 8778 xl* | bgxl* | bgf* | mpixl*) 8779 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8780 lt_prog_compiler_wl='-Wl,' 8781 lt_prog_compiler_pic='-qpic' 8782 lt_prog_compiler_static='-qstaticlink' 8783 ;; 8784 *) 8785 case `$CC -V 2>&1 | sed 5q` in 8786 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8787 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8788 lt_prog_compiler_pic='-KPIC' 8789 lt_prog_compiler_static='-Bstatic' 8790 lt_prog_compiler_wl='' 8791 ;; 8792 *Sun\ F* | *Sun*Fortran*) 8793 lt_prog_compiler_pic='-KPIC' 8794 lt_prog_compiler_static='-Bstatic' 8795 lt_prog_compiler_wl='-Qoption ld ' 8796 ;; 8797 *Sun\ C*) 8798 # Sun C 5.9 8799 lt_prog_compiler_pic='-KPIC' 8800 lt_prog_compiler_static='-Bstatic' 8801 lt_prog_compiler_wl='-Wl,' 8802 ;; 8803 *Intel*\ [CF]*Compiler*) 8804 lt_prog_compiler_wl='-Wl,' 8805 lt_prog_compiler_pic='-fPIC' 8806 lt_prog_compiler_static='-static' 8807 ;; 8808 *Portland\ Group*) 8809 lt_prog_compiler_wl='-Wl,' 8810 lt_prog_compiler_pic='-fpic' 8811 lt_prog_compiler_static='-Bstatic' 8812 ;; 8813 esac 8814 ;; 8815 esac 8816 ;; 8817 8818 newsos6) 8819 lt_prog_compiler_pic='-KPIC' 8820 lt_prog_compiler_static='-Bstatic' 8821 ;; 8822 8823 *nto* | *qnx*) 8824 # QNX uses GNU C++, but need to define -shared option too, otherwise 8825 # it will coredump. 8826 lt_prog_compiler_pic='-fPIC -shared' 8827 ;; 8828 8829 osf3* | osf4* | osf5*) 8830 lt_prog_compiler_wl='-Wl,' 8831 # All OSF/1 code is PIC. 8832 lt_prog_compiler_static='-non_shared' 8833 ;; 8834 8835 rdos*) 8836 lt_prog_compiler_static='-non_shared' 8837 ;; 8838 8839 solaris*) 8840 lt_prog_compiler_pic='-KPIC' 8841 lt_prog_compiler_static='-Bstatic' 8842 case $cc_basename in 8843 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8844 lt_prog_compiler_wl='-Qoption ld ';; 8845 *) 8846 lt_prog_compiler_wl='-Wl,';; 8847 esac 8848 ;; 8849 8850 sunos4*) 8851 lt_prog_compiler_wl='-Qoption ld ' 8852 lt_prog_compiler_pic='-PIC' 8853 lt_prog_compiler_static='-Bstatic' 8854 ;; 8855 8856 sysv4 | sysv4.2uw2* | sysv4.3*) 8857 lt_prog_compiler_wl='-Wl,' 8858 lt_prog_compiler_pic='-KPIC' 8859 lt_prog_compiler_static='-Bstatic' 8860 ;; 8861 8862 sysv4*MP*) 8863 if test -d /usr/nec; then 8864 lt_prog_compiler_pic='-Kconform_pic' 8865 lt_prog_compiler_static='-Bstatic' 8866 fi 8867 ;; 8868 8869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8870 lt_prog_compiler_wl='-Wl,' 8871 lt_prog_compiler_pic='-KPIC' 8872 lt_prog_compiler_static='-Bstatic' 8873 ;; 8874 8875 unicos*) 8876 lt_prog_compiler_wl='-Wl,' 8877 lt_prog_compiler_can_build_shared=no 8878 ;; 8879 8880 uts4*) 8881 lt_prog_compiler_pic='-pic' 8882 lt_prog_compiler_static='-Bstatic' 8883 ;; 8884 8885 *) 8886 lt_prog_compiler_can_build_shared=no 8887 ;; 8888 esac 8889 fi 8890 8891case $host_os in 8892 # For platforms that do not support PIC, -DPIC is meaningless: 8893 *djgpp*) 8894 lt_prog_compiler_pic= 8895 ;; 8896 *) 8897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8898 ;; 8899esac 8900 8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8902$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8903if ${lt_cv_prog_compiler_pic+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8909$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8910lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8911 8912# 8913# Check to make sure the PIC flag actually works. 8914# 8915if test -n "$lt_prog_compiler_pic"; then 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8917$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8918if ${lt_cv_prog_compiler_pic_works+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 lt_cv_prog_compiler_pic_works=no 8922 ac_outfile=conftest.$ac_objext 8923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8924 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8925 # Insert the option either (1) after the last *FLAGS variable, or 8926 # (2) before a word containing "conftest.", or (3) at the end. 8927 # Note that $ac_compile itself does not contain backslashes and begins 8928 # with a dollar sign (not a hyphen), so the echo should work correctly. 8929 # The option is referenced via a variable to avoid confusing sed. 8930 lt_compile=`echo "$ac_compile" | $SED \ 8931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8933 -e 's:$: $lt_compiler_flag:'` 8934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8935 (eval "$lt_compile" 2>conftest.err) 8936 ac_status=$? 8937 cat conftest.err >&5 8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8939 if (exit $ac_status) && test -s "$ac_outfile"; then 8940 # The compiler can only warn and ignore the option if not recognized 8941 # So say no if there are warnings other than the usual output. 8942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8945 lt_cv_prog_compiler_pic_works=yes 8946 fi 8947 fi 8948 $RM conftest* 8949 8950fi 8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8952$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8953 8954if test yes = "$lt_cv_prog_compiler_pic_works"; then 8955 case $lt_prog_compiler_pic in 8956 "" | " "*) ;; 8957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8958 esac 8959else 8960 lt_prog_compiler_pic= 8961 lt_prog_compiler_can_build_shared=no 8962fi 8963 8964fi 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976# 8977# Check to make sure the static flag actually works. 8978# 8979wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8981$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8982if ${lt_cv_prog_compiler_static_works+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 lt_cv_prog_compiler_static_works=no 8986 save_LDFLAGS=$LDFLAGS 8987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8988 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8990 # The linker can only warn and ignore the option if not recognized 8991 # So say no if there are warnings 8992 if test -s conftest.err; then 8993 # Append any errors to the config.log. 8994 cat conftest.err 1>&5 8995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8997 if diff conftest.exp conftest.er2 >/dev/null; then 8998 lt_cv_prog_compiler_static_works=yes 8999 fi 9000 else 9001 lt_cv_prog_compiler_static_works=yes 9002 fi 9003 fi 9004 $RM -r conftest* 9005 LDFLAGS=$save_LDFLAGS 9006 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9009$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9010 9011if test yes = "$lt_cv_prog_compiler_static_works"; then 9012 : 9013else 9014 lt_prog_compiler_static= 9015fi 9016 9017 9018 9019 9020 9021 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9025if ${lt_cv_prog_compiler_c_o+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 lt_cv_prog_compiler_c_o=no 9029 $RM -r conftest 2>/dev/null 9030 mkdir conftest 9031 cd conftest 9032 mkdir out 9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9034 9035 lt_compiler_flag="-o out/conftest2.$ac_objext" 9036 # Insert the option either (1) after the last *FLAGS variable, or 9037 # (2) before a word containing "conftest.", or (3) at the end. 9038 # Note that $ac_compile itself does not contain backslashes and begins 9039 # with a dollar sign (not a hyphen), so the echo should work correctly. 9040 lt_compile=`echo "$ac_compile" | $SED \ 9041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9043 -e 's:$: $lt_compiler_flag:'` 9044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9045 (eval "$lt_compile" 2>out/conftest.err) 9046 ac_status=$? 9047 cat out/conftest.err >&5 9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9049 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9050 then 9051 # The compiler can only warn and ignore the option if not recognized 9052 # So say no if there are warnings 9053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9056 lt_cv_prog_compiler_c_o=yes 9057 fi 9058 fi 9059 chmod u+w . 2>&5 9060 $RM conftest* 9061 # SGI C++ compiler will create directory out/ii_files/ for 9062 # template instantiation 9063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9064 $RM out/* && rmdir out 9065 cd .. 9066 $RM -r conftest 9067 $RM conftest* 9068 9069fi 9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9071$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9072 9073 9074 9075 9076 9077 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9079$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9080if ${lt_cv_prog_compiler_c_o+:} false; then : 9081 $as_echo_n "(cached) " >&6 9082else 9083 lt_cv_prog_compiler_c_o=no 9084 $RM -r conftest 2>/dev/null 9085 mkdir conftest 9086 cd conftest 9087 mkdir out 9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9089 9090 lt_compiler_flag="-o out/conftest2.$ac_objext" 9091 # Insert the option either (1) after the last *FLAGS variable, or 9092 # (2) before a word containing "conftest.", or (3) at the end. 9093 # Note that $ac_compile itself does not contain backslashes and begins 9094 # with a dollar sign (not a hyphen), so the echo should work correctly. 9095 lt_compile=`echo "$ac_compile" | $SED \ 9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9098 -e 's:$: $lt_compiler_flag:'` 9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9100 (eval "$lt_compile" 2>out/conftest.err) 9101 ac_status=$? 9102 cat out/conftest.err >&5 9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9104 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9105 then 9106 # The compiler can only warn and ignore the option if not recognized 9107 # So say no if there are warnings 9108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9111 lt_cv_prog_compiler_c_o=yes 9112 fi 9113 fi 9114 chmod u+w . 2>&5 9115 $RM conftest* 9116 # SGI C++ compiler will create directory out/ii_files/ for 9117 # template instantiation 9118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9119 $RM out/* && rmdir out 9120 cd .. 9121 $RM -r conftest 9122 $RM conftest* 9123 9124fi 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9126$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9127 9128 9129 9130 9131hard_links=nottested 9132if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9133 # do not overwrite the value of need_locks provided by the user 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9135$as_echo_n "checking if we can lock with hard links... " >&6; } 9136 hard_links=yes 9137 $RM conftest* 9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9139 touch conftest.a 9140 ln conftest.a conftest.b 2>&5 || hard_links=no 9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9143$as_echo "$hard_links" >&6; } 9144 if test no = "$hard_links"; then 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9146$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9147 need_locks=warn 9148 fi 9149else 9150 need_locks=no 9151fi 9152 9153 9154 9155 9156 9157 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9159$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9160 9161 runpath_var= 9162 allow_undefined_flag= 9163 always_export_symbols=no 9164 archive_cmds= 9165 archive_expsym_cmds= 9166 compiler_needs_object=no 9167 enable_shared_with_static_runtimes=no 9168 export_dynamic_flag_spec= 9169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9170 hardcode_automatic=no 9171 hardcode_direct=no 9172 hardcode_direct_absolute=no 9173 hardcode_libdir_flag_spec= 9174 hardcode_libdir_separator= 9175 hardcode_minus_L=no 9176 hardcode_shlibpath_var=unsupported 9177 inherit_rpath=no 9178 link_all_deplibs=unknown 9179 module_cmds= 9180 module_expsym_cmds= 9181 old_archive_from_new_cmds= 9182 old_archive_from_expsyms_cmds= 9183 thread_safe_flag_spec= 9184 whole_archive_flag_spec= 9185 # include_expsyms should be a list of space-separated symbols to be *always* 9186 # included in the symbol list 9187 include_expsyms= 9188 # exclude_expsyms can be an extended regexp of symbols to exclude 9189 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9190 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9191 # as well as any symbol that contains 'd'. 9192 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9194 # platforms (ab)use it in PIC code, but their linkers get confused if 9195 # the symbol is explicitly referenced. Since portable code cannot 9196 # rely on this symbol name, it's probably fine to never include it in 9197 # preloaded symbol tables. 9198 # Exclude shared library initialization/finalization symbols. 9199 extract_expsyms_cmds= 9200 9201 case $host_os in 9202 cygwin* | mingw* | pw32* | cegcc*) 9203 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9204 # When not using gcc, we currently assume that we are using 9205 # Microsoft Visual C++. 9206 if test yes != "$GCC"; then 9207 with_gnu_ld=no 9208 fi 9209 ;; 9210 interix*) 9211 # we just hope/assume this is gcc and not c89 (= MSVC++) 9212 with_gnu_ld=yes 9213 ;; 9214 openbsd* | bitrig*) 9215 with_gnu_ld=no 9216 ;; 9217 linux* | k*bsd*-gnu | gnu*) 9218 link_all_deplibs=no 9219 ;; 9220 esac 9221 9222 ld_shlibs=yes 9223 9224 # On some targets, GNU ld is compatible enough with the native linker 9225 # that we're better off using the native interface for both. 9226 lt_use_gnu_ld_interface=no 9227 if test yes = "$with_gnu_ld"; then 9228 case $host_os in 9229 aix*) 9230 # The AIX port of GNU ld has always aspired to compatibility 9231 # with the native linker. However, as the warning in the GNU ld 9232 # block says, versions before 2.19.5* couldn't really create working 9233 # shared libraries, regardless of the interface used. 9234 case `$LD -v 2>&1` in 9235 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9236 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9237 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9238 *) 9239 lt_use_gnu_ld_interface=yes 9240 ;; 9241 esac 9242 ;; 9243 *) 9244 lt_use_gnu_ld_interface=yes 9245 ;; 9246 esac 9247 fi 9248 9249 if test yes = "$lt_use_gnu_ld_interface"; then 9250 # If archive_cmds runs LD, not CC, wlarc should be empty 9251 wlarc='$wl' 9252 9253 # Set some defaults for GNU ld with shared library support. These 9254 # are reset later if shared libraries are not supported. Putting them 9255 # here allows them to be overridden if necessary. 9256 runpath_var=LD_RUN_PATH 9257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9258 export_dynamic_flag_spec='$wl--export-dynamic' 9259 # ancient GNU ld didn't support --whole-archive et. al. 9260 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9261 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9262 else 9263 whole_archive_flag_spec= 9264 fi 9265 supports_anon_versioning=no 9266 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9267 *GNU\ gold*) supports_anon_versioning=yes ;; 9268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9271 *\ 2.11.*) ;; # other 2.11 versions 9272 *) supports_anon_versioning=yes ;; 9273 esac 9274 9275 # See if GNU ld supports shared libraries. 9276 case $host_os in 9277 aix[3-9]*) 9278 # On AIX/PPC, the GNU linker is very broken 9279 if test ia64 != "$host_cpu"; then 9280 ld_shlibs=no 9281 cat <<_LT_EOF 1>&2 9282 9283*** Warning: the GNU linker, at least up to release 2.19, is reported 9284*** to be unable to reliably create shared libraries on AIX. 9285*** Therefore, libtool is disabling shared libraries support. If you 9286*** really care for shared libraries, you may want to install binutils 9287*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9288*** You will then need to restart the configuration process. 9289 9290_LT_EOF 9291 fi 9292 ;; 9293 9294 amigaos*) 9295 case $host_cpu in 9296 powerpc) 9297 # see comment about AmigaOS4 .so support 9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9299 archive_expsym_cmds='' 9300 ;; 9301 m68k) 9302 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)' 9303 hardcode_libdir_flag_spec='-L$libdir' 9304 hardcode_minus_L=yes 9305 ;; 9306 esac 9307 ;; 9308 9309 beos*) 9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9311 allow_undefined_flag=unsupported 9312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9313 # support --undefined. This deserves some investigation. FIXME 9314 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9315 else 9316 ld_shlibs=no 9317 fi 9318 ;; 9319 9320 cygwin* | mingw* | pw32* | cegcc*) 9321 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9322 # as there is no search path for DLLs. 9323 hardcode_libdir_flag_spec='-L$libdir' 9324 export_dynamic_flag_spec='$wl--export-all-symbols' 9325 allow_undefined_flag=unsupported 9326 always_export_symbols=no 9327 enable_shared_with_static_runtimes=yes 9328 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' 9329 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9330 9331 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9333 # If the export-symbols file already is a .def file, use it as 9334 # is; otherwise, prepend EXPORTS... 9335 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9336 cp $export_symbols $output_objdir/$soname.def; 9337 else 9338 echo EXPORTS > $output_objdir/$soname.def; 9339 cat $export_symbols >> $output_objdir/$soname.def; 9340 fi~ 9341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 9347 haiku*) 9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9349 link_all_deplibs=yes 9350 ;; 9351 9352 os2*) 9353 hardcode_libdir_flag_spec='-L$libdir' 9354 hardcode_minus_L=yes 9355 allow_undefined_flag=unsupported 9356 shrext_cmds=.dll 9357 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9360 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9361 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9363 emximp -o $lib $output_objdir/$libname.def' 9364 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9367 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9368 prefix_cmds="$SED"~ 9369 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9370 prefix_cmds="$prefix_cmds -e 1d"; 9371 fi~ 9372 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9373 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9375 emximp -o $lib $output_objdir/$libname.def' 9376 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9377 enable_shared_with_static_runtimes=yes 9378 ;; 9379 9380 interix[3-9]*) 9381 hardcode_direct=no 9382 hardcode_shlibpath_var=no 9383 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9384 export_dynamic_flag_spec='$wl-E' 9385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9386 # Instead, shared libraries are loaded at an image base (0x10000000 by 9387 # default) and relocated if they conflict, which is a slow very memory 9388 # consuming and fragmenting process. To avoid this, we pick a random, 9389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9390 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9392 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' 9393 ;; 9394 9395 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9396 tmp_diet=no 9397 if test linux-dietlibc = "$host_os"; then 9398 case $cc_basename in 9399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9400 esac 9401 fi 9402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9403 && test no = "$tmp_diet" 9404 then 9405 tmp_addflag=' $pic_flag' 9406 tmp_sharedflag='-shared' 9407 case $cc_basename,$host_cpu in 9408 pgcc*) # Portland Group C compiler 9409 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' 9410 tmp_addflag=' $pic_flag' 9411 ;; 9412 pgf77* | pgf90* | pgf95* | pgfortran*) 9413 # Portland Group f77 and f90 compilers 9414 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' 9415 tmp_addflag=' $pic_flag -Mnomain' ;; 9416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9417 tmp_addflag=' -i_dynamic' ;; 9418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9419 tmp_addflag=' -i_dynamic -nofor_main' ;; 9420 ifc* | ifort*) # Intel Fortran compiler 9421 tmp_addflag=' -nofor_main' ;; 9422 lf95*) # Lahey Fortran 8.1 9423 whole_archive_flag_spec= 9424 tmp_sharedflag='--shared' ;; 9425 nagfor*) # NAGFOR 5.3 9426 tmp_sharedflag='-Wl,-shared' ;; 9427 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9428 tmp_sharedflag='-qmkshrobj' 9429 tmp_addflag= ;; 9430 nvcc*) # Cuda Compiler Driver 2.2 9431 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' 9432 compiler_needs_object=yes 9433 ;; 9434 esac 9435 case `$CC -V 2>&1 | sed 5q` in 9436 *Sun\ C*) # Sun C 5.9 9437 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' 9438 compiler_needs_object=yes 9439 tmp_sharedflag='-G' ;; 9440 *Sun\ F*) # Sun Fortran 8.3 9441 tmp_sharedflag='-G' ;; 9442 esac 9443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9444 9445 if test yes = "$supports_anon_versioning"; then 9446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9448 echo "local: *; };" >> $output_objdir/$libname.ver~ 9449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9450 fi 9451 9452 case $cc_basename in 9453 tcc*) 9454 export_dynamic_flag_spec='-rdynamic' 9455 ;; 9456 xlf* | bgf* | bgxlf* | mpixlf*) 9457 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9458 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9460 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9461 if test yes = "$supports_anon_versioning"; then 9462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9464 echo "local: *; };" >> $output_objdir/$libname.ver~ 9465 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9466 fi 9467 ;; 9468 esac 9469 else 9470 ld_shlibs=no 9471 fi 9472 ;; 9473 9474 netbsd* | netbsdelf*-gnu) 9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9476 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9477 wlarc= 9478 else 9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9481 fi 9482 ;; 9483 9484 solaris*) 9485 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9486 ld_shlibs=no 9487 cat <<_LT_EOF 1>&2 9488 9489*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9490*** create shared libraries on Solaris systems. Therefore, libtool 9491*** is disabling shared libraries support. We urge you to upgrade GNU 9492*** binutils to release 2.9.1 or newer. Another option is to modify 9493*** your PATH or compiler configuration so that the native linker is 9494*** used, and then restart. 9495 9496_LT_EOF 9497 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9500 else 9501 ld_shlibs=no 9502 fi 9503 ;; 9504 9505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9506 case `$LD -v 2>&1` in 9507 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9508 ld_shlibs=no 9509 cat <<_LT_EOF 1>&2 9510 9511*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9512*** reliably create shared libraries on SCO systems. Therefore, libtool 9513*** is disabling shared libraries support. We urge you to upgrade GNU 9514*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9515*** your PATH or compiler configuration so that the native linker is 9516*** used, and then restart. 9517 9518_LT_EOF 9519 ;; 9520 *) 9521 # For security reasons, it is highly recommended that you always 9522 # use absolute paths for naming shared libraries, and exclude the 9523 # DT_RUNPATH tag from executables and libraries. But doing so 9524 # requires that you compile everything twice, which is a pain. 9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9529 else 9530 ld_shlibs=no 9531 fi 9532 ;; 9533 esac 9534 ;; 9535 9536 sunos4*) 9537 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9538 wlarc= 9539 hardcode_direct=yes 9540 hardcode_shlibpath_var=no 9541 ;; 9542 9543 *) 9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9547 else 9548 ld_shlibs=no 9549 fi 9550 ;; 9551 esac 9552 9553 if test no = "$ld_shlibs"; then 9554 runpath_var= 9555 hardcode_libdir_flag_spec= 9556 export_dynamic_flag_spec= 9557 whole_archive_flag_spec= 9558 fi 9559 else 9560 # PORTME fill in a description of your system's linker (not GNU ld) 9561 case $host_os in 9562 aix3*) 9563 allow_undefined_flag=unsupported 9564 always_export_symbols=yes 9565 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' 9566 # Note: this linker hardcodes the directories in LIBPATH if there 9567 # are no directories specified by -L. 9568 hardcode_minus_L=yes 9569 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9570 # Neither direct hardcoding nor static linking is supported with a 9571 # broken collect2. 9572 hardcode_direct=unsupported 9573 fi 9574 ;; 9575 9576 aix[4-9]*) 9577 if test ia64 = "$host_cpu"; then 9578 # On IA64, the linker does run time linking by default, so we don't 9579 # have to do anything special. 9580 aix_use_runtimelinking=no 9581 exp_sym_flag='-Bexport' 9582 no_entry_flag= 9583 else 9584 # If we're using GNU nm, then we don't want the "-C" option. 9585 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9586 # Without the "-l" option, or with the "-B" option, AIX nm treats 9587 # weak defined symbols like other global defined symbols, whereas 9588 # GNU nm marks them as "W". 9589 # While the 'weak' keyword is ignored in the Export File, we need 9590 # it in the Import File for the 'aix-soname' feature, so we have 9591 # to replace the "-B" option with "-P" for AIX nm. 9592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9593 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' 9594 else 9595 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' 9596 fi 9597 aix_use_runtimelinking=no 9598 9599 # Test if we are trying to use run time linking or normal 9600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9601 # have runtime linking enabled, and use it for executables. 9602 # For shared libraries, we enable/disable runtime linking 9603 # depending on the kind of the shared library created - 9604 # when "with_aix_soname,aix_use_runtimelinking" is: 9605 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9606 # "aix,yes" lib.so shared, rtl:yes, for executables 9607 # lib.a static archive 9608 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9609 # lib.a(lib.so.V) shared, rtl:no, for executables 9610 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9611 # lib.a(lib.so.V) shared, rtl:no 9612 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9613 # lib.a static archive 9614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9615 for ld_flag in $LDFLAGS; do 9616 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9617 aix_use_runtimelinking=yes 9618 break 9619 fi 9620 done 9621 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9622 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9623 # so we don't have lib.a shared libs to link our executables. 9624 # We have to force runtime linking in this case. 9625 aix_use_runtimelinking=yes 9626 LDFLAGS="$LDFLAGS -Wl,-brtl" 9627 fi 9628 ;; 9629 esac 9630 9631 exp_sym_flag='-bexport' 9632 no_entry_flag='-bnoentry' 9633 fi 9634 9635 # When large executables or shared objects are built, AIX ld can 9636 # have problems creating the table of contents. If linking a library 9637 # or program results in "error TOC overflow" add -mminimal-toc to 9638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9640 9641 archive_cmds='' 9642 hardcode_direct=yes 9643 hardcode_direct_absolute=yes 9644 hardcode_libdir_separator=':' 9645 link_all_deplibs=yes 9646 file_list_spec='$wl-f,' 9647 case $with_aix_soname,$aix_use_runtimelinking in 9648 aix,*) ;; # traditional, no import file 9649 svr4,* | *,yes) # use import file 9650 # The Import File defines what to hardcode. 9651 hardcode_direct=no 9652 hardcode_direct_absolute=no 9653 ;; 9654 esac 9655 9656 if test yes = "$GCC"; then 9657 case $host_os in aix4.[012]|aix4.[012].*) 9658 # We only want to do this on AIX 4.2 and lower, the check 9659 # below for broken collect2 doesn't work under 4.3+ 9660 collect2name=`$CC -print-prog-name=collect2` 9661 if test -f "$collect2name" && 9662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9663 then 9664 # We have reworked collect2 9665 : 9666 else 9667 # We have old collect2 9668 hardcode_direct=unsupported 9669 # It fails to find uninstalled libraries when the uninstalled 9670 # path is not listed in the libpath. Setting hardcode_minus_L 9671 # to unsupported forces relinking 9672 hardcode_minus_L=yes 9673 hardcode_libdir_flag_spec='-L$libdir' 9674 hardcode_libdir_separator= 9675 fi 9676 ;; 9677 esac 9678 shared_flag='-shared' 9679 if test yes = "$aix_use_runtimelinking"; then 9680 shared_flag="$shared_flag "'$wl-G' 9681 fi 9682 # Need to ensure runtime linking is disabled for the traditional 9683 # shared library, or the linker may eventually find shared libraries 9684 # /with/ Import File - we do not want to mix them. 9685 shared_flag_aix='-shared' 9686 shared_flag_svr4='-shared $wl-G' 9687 else 9688 # not using gcc 9689 if test ia64 = "$host_cpu"; then 9690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9691 # chokes on -Wl,-G. The following line is correct: 9692 shared_flag='-G' 9693 else 9694 if test yes = "$aix_use_runtimelinking"; then 9695 shared_flag='$wl-G' 9696 else 9697 shared_flag='$wl-bM:SRE' 9698 fi 9699 shared_flag_aix='$wl-bM:SRE' 9700 shared_flag_svr4='$wl-G' 9701 fi 9702 fi 9703 9704 export_dynamic_flag_spec='$wl-bexpall' 9705 # It seems that -bexpall does not export symbols beginning with 9706 # underscore (_), so it is better to generate a list of symbols to export. 9707 always_export_symbols=yes 9708 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9709 # Warning - without using the other runtime loading flags (-brtl), 9710 # -berok will link without error, but may produce a broken library. 9711 allow_undefined_flag='-berok' 9712 # Determine the default libpath from the value encoded in an 9713 # empty executable. 9714 if test set = "${lt_cv_aix_libpath+set}"; then 9715 aix_libpath=$lt_cv_aix_libpath 9716else 9717 if ${lt_cv_aix_libpath_+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722 9723int 9724main () 9725{ 9726 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_c_try_link "$LINENO"; then : 9732 9733 lt_aix_libpath_sed=' 9734 /Import File Strings/,/^$/ { 9735 /^0/ { 9736 s/^0 *\([^ ]*\) *$/\1/ 9737 p 9738 } 9739 }' 9740 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9741 # Check for a 64-bit object if we didn't find anything. 9742 if test -z "$lt_cv_aix_libpath_"; then 9743 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9744 fi 9745fi 9746rm -f core conftest.err conftest.$ac_objext \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 if test -z "$lt_cv_aix_libpath_"; then 9749 lt_cv_aix_libpath_=/usr/lib:/lib 9750 fi 9751 9752fi 9753 9754 aix_libpath=$lt_cv_aix_libpath_ 9755fi 9756 9757 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9758 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 9759 else 9760 if test ia64 = "$host_cpu"; then 9761 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9762 allow_undefined_flag="-z nodefs" 9763 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" 9764 else 9765 # Determine the default libpath from the value encoded in an 9766 # empty executable. 9767 if test set = "${lt_cv_aix_libpath+set}"; then 9768 aix_libpath=$lt_cv_aix_libpath 9769else 9770 if ${lt_cv_aix_libpath_+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775 9776int 9777main () 9778{ 9779 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784if ac_fn_c_try_link "$LINENO"; then : 9785 9786 lt_aix_libpath_sed=' 9787 /Import File Strings/,/^$/ { 9788 /^0/ { 9789 s/^0 *\([^ ]*\) *$/\1/ 9790 p 9791 } 9792 }' 9793 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9794 # Check for a 64-bit object if we didn't find anything. 9795 if test -z "$lt_cv_aix_libpath_"; then 9796 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9797 fi 9798fi 9799rm -f core conftest.err conftest.$ac_objext \ 9800 conftest$ac_exeext conftest.$ac_ext 9801 if test -z "$lt_cv_aix_libpath_"; then 9802 lt_cv_aix_libpath_=/usr/lib:/lib 9803 fi 9804 9805fi 9806 9807 aix_libpath=$lt_cv_aix_libpath_ 9808fi 9809 9810 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9811 # Warning - without using the other run time loading flags, 9812 # -berok will link without error, but may produce a broken library. 9813 no_undefined_flag=' $wl-bernotok' 9814 allow_undefined_flag=' $wl-berok' 9815 if test yes = "$with_gnu_ld"; then 9816 # We only use this code for GNU lds that support --whole-archive. 9817 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9818 else 9819 # Exported symbols can be pulled into shared objects from archives 9820 whole_archive_flag_spec='$convenience' 9821 fi 9822 archive_cmds_need_lc=yes 9823 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9824 # -brtl affects multiple linker settings, -berok does not and is overridden later 9825 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9826 if test svr4 != "$with_aix_soname"; then 9827 # This is similar to how AIX traditionally builds its shared libraries. 9828 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' 9829 fi 9830 if test aix != "$with_aix_soname"; then 9831 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' 9832 else 9833 # used by -dlpreopen to get the symbols 9834 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9835 fi 9836 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9837 fi 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 bsdi[45]*) 9857 export_dynamic_flag_spec=-rdynamic 9858 ;; 9859 9860 cygwin* | mingw* | pw32* | cegcc*) 9861 # When not using gcc, we currently assume that we are using 9862 # Microsoft Visual C++. 9863 # hardcode_libdir_flag_spec is actually meaningless, as there is 9864 # no search path for DLLs. 9865 case $cc_basename in 9866 cl*) 9867 # Native MSVC 9868 hardcode_libdir_flag_spec=' ' 9869 allow_undefined_flag=unsupported 9870 always_export_symbols=yes 9871 file_list_spec='@' 9872 # Tell ltmain to make .lib files, not .a files. 9873 libext=lib 9874 # Tell ltmain to make .dll files, not .so files. 9875 shrext_cmds=.dll 9876 # FIXME: Setting linknames here is a bad hack. 9877 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9878 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9879 cp "$export_symbols" "$output_objdir/$soname.def"; 9880 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9881 else 9882 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9883 fi~ 9884 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9885 linknames=' 9886 # The linker will not automatically build a static lib if we build a DLL. 9887 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9888 enable_shared_with_static_runtimes=yes 9889 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9891 # Don't use ranlib 9892 old_postinstall_cmds='chmod 644 $oldlib' 9893 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9894 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9895 case $lt_outputfile in 9896 *.exe|*.EXE) ;; 9897 *) 9898 lt_outputfile=$lt_outputfile.exe 9899 lt_tool_outputfile=$lt_tool_outputfile.exe 9900 ;; 9901 esac~ 9902 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9903 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9904 $RM "$lt_outputfile.manifest"; 9905 fi' 9906 ;; 9907 *) 9908 # Assume MSVC wrapper 9909 hardcode_libdir_flag_spec=' ' 9910 allow_undefined_flag=unsupported 9911 # Tell ltmain to make .lib files, not .a files. 9912 libext=lib 9913 # Tell ltmain to make .dll files, not .so files. 9914 shrext_cmds=.dll 9915 # FIXME: Setting linknames here is a bad hack. 9916 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9917 # The linker will automatically build a .lib file if we build a DLL. 9918 old_archive_from_new_cmds='true' 9919 # FIXME: Should let the user specify the lib program. 9920 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9921 enable_shared_with_static_runtimes=yes 9922 ;; 9923 esac 9924 ;; 9925 9926 darwin* | rhapsody*) 9927 9928 9929 archive_cmds_need_lc=no 9930 hardcode_direct=no 9931 hardcode_automatic=yes 9932 hardcode_shlibpath_var=unsupported 9933 if test yes = "$lt_cv_ld_force_load"; then 9934 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\"`' 9935 9936 else 9937 whole_archive_flag_spec='' 9938 fi 9939 link_all_deplibs=yes 9940 allow_undefined_flag=$_lt_dar_allow_undefined 9941 case $cc_basename in 9942 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9943 *) _lt_dar_can_shared=$GCC ;; 9944 esac 9945 if test yes = "$_lt_dar_can_shared"; then 9946 output_verbose_link_cmd=func_echo_all 9947 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9948 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9949 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" 9950 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" 9951 9952 else 9953 ld_shlibs=no 9954 fi 9955 9956 ;; 9957 9958 dgux*) 9959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9960 hardcode_libdir_flag_spec='-L$libdir' 9961 hardcode_shlibpath_var=no 9962 ;; 9963 9964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9965 # support. Future versions do this automatically, but an explicit c++rt0.o 9966 # does not break anything, and helps significantly (at the cost of a little 9967 # extra space). 9968 freebsd2.2*) 9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9970 hardcode_libdir_flag_spec='-R$libdir' 9971 hardcode_direct=yes 9972 hardcode_shlibpath_var=no 9973 ;; 9974 9975 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9976 freebsd2.*) 9977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9978 hardcode_direct=yes 9979 hardcode_minus_L=yes 9980 hardcode_shlibpath_var=no 9981 ;; 9982 9983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9984 freebsd* | dragonfly*) 9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9986 hardcode_libdir_flag_spec='-R$libdir' 9987 hardcode_direct=yes 9988 hardcode_shlibpath_var=no 9989 ;; 9990 9991 hpux9*) 9992 if test yes = "$GCC"; then 9993 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' 9994 else 9995 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' 9996 fi 9997 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9998 hardcode_libdir_separator=: 9999 hardcode_direct=yes 10000 10001 # hardcode_minus_L: Not really in the search PATH, 10002 # but as the default location of the library. 10003 hardcode_minus_L=yes 10004 export_dynamic_flag_spec='$wl-E' 10005 ;; 10006 10007 hpux10*) 10008 if test yes,no = "$GCC,$with_gnu_ld"; then 10009 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10010 else 10011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10012 fi 10013 if test no = "$with_gnu_ld"; then 10014 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10015 hardcode_libdir_separator=: 10016 hardcode_direct=yes 10017 hardcode_direct_absolute=yes 10018 export_dynamic_flag_spec='$wl-E' 10019 # hardcode_minus_L: Not really in the search PATH, 10020 # but as the default location of the library. 10021 hardcode_minus_L=yes 10022 fi 10023 ;; 10024 10025 hpux11*) 10026 if test yes,no = "$GCC,$with_gnu_ld"; then 10027 case $host_cpu in 10028 hppa*64*) 10029 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10030 ;; 10031 ia64*) 10032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10033 ;; 10034 *) 10035 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10036 ;; 10037 esac 10038 else 10039 case $host_cpu in 10040 hppa*64*) 10041 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 ;; 10043 ia64*) 10044 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10045 ;; 10046 *) 10047 10048 # Older versions of the 11.00 compiler do not understand -b yet 10049 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10051$as_echo_n "checking if $CC understands -b... " >&6; } 10052if ${lt_cv_prog_compiler__b+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 lt_cv_prog_compiler__b=no 10056 save_LDFLAGS=$LDFLAGS 10057 LDFLAGS="$LDFLAGS -b" 10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10060 # The linker can only warn and ignore the option if not recognized 10061 # So say no if there are warnings 10062 if test -s conftest.err; then 10063 # Append any errors to the config.log. 10064 cat conftest.err 1>&5 10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10067 if diff conftest.exp conftest.er2 >/dev/null; then 10068 lt_cv_prog_compiler__b=yes 10069 fi 10070 else 10071 lt_cv_prog_compiler__b=yes 10072 fi 10073 fi 10074 $RM -r conftest* 10075 LDFLAGS=$save_LDFLAGS 10076 10077fi 10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10079$as_echo "$lt_cv_prog_compiler__b" >&6; } 10080 10081if test yes = "$lt_cv_prog_compiler__b"; then 10082 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10083else 10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10085fi 10086 10087 ;; 10088 esac 10089 fi 10090 if test no = "$with_gnu_ld"; then 10091 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10092 hardcode_libdir_separator=: 10093 10094 case $host_cpu in 10095 hppa*64*|ia64*) 10096 hardcode_direct=no 10097 hardcode_shlibpath_var=no 10098 ;; 10099 *) 10100 hardcode_direct=yes 10101 hardcode_direct_absolute=yes 10102 export_dynamic_flag_spec='$wl-E' 10103 10104 # hardcode_minus_L: Not really in the search PATH, 10105 # but as the default location of the library. 10106 hardcode_minus_L=yes 10107 ;; 10108 esac 10109 fi 10110 ;; 10111 10112 irix5* | irix6* | nonstopux*) 10113 if test yes = "$GCC"; then 10114 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' 10115 # Try to use the -exported_symbol ld option, if it does not 10116 # work, assume that -exports_file does not work either and 10117 # implicitly export all symbols. 10118 # This should be the same for all languages, so no per-tag cache variable. 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10120$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10121if ${lt_cv_irix_exported_symbol+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 save_LDFLAGS=$LDFLAGS 10125 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int foo (void) { return 0; } 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 lt_cv_irix_exported_symbol=yes 10132else 10133 lt_cv_irix_exported_symbol=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext \ 10136 conftest$ac_exeext conftest.$ac_ext 10137 LDFLAGS=$save_LDFLAGS 10138fi 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10140$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10141 if test yes = "$lt_cv_irix_exported_symbol"; then 10142 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' 10143 fi 10144 link_all_deplibs=no 10145 else 10146 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' 10147 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' 10148 fi 10149 archive_cmds_need_lc='no' 10150 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10151 hardcode_libdir_separator=: 10152 inherit_rpath=yes 10153 link_all_deplibs=yes 10154 ;; 10155 10156 linux*) 10157 case $cc_basename in 10158 tcc*) 10159 # Fabrice Bellard et al's Tiny C Compiler 10160 ld_shlibs=yes 10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10162 ;; 10163 esac 10164 ;; 10165 10166 netbsd* | netbsdelf*-gnu) 10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10169 else 10170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10171 fi 10172 hardcode_libdir_flag_spec='-R$libdir' 10173 hardcode_direct=yes 10174 hardcode_shlibpath_var=no 10175 ;; 10176 10177 newsos6) 10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10179 hardcode_direct=yes 10180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10181 hardcode_libdir_separator=: 10182 hardcode_shlibpath_var=no 10183 ;; 10184 10185 *nto* | *qnx*) 10186 ;; 10187 10188 openbsd* | bitrig*) 10189 if test -f /usr/libexec/ld.so; then 10190 hardcode_direct=yes 10191 hardcode_shlibpath_var=no 10192 hardcode_direct_absolute=yes 10193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10195 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10196 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10197 export_dynamic_flag_spec='$wl-E' 10198 else 10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10200 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10201 fi 10202 else 10203 ld_shlibs=no 10204 fi 10205 ;; 10206 10207 os2*) 10208 hardcode_libdir_flag_spec='-L$libdir' 10209 hardcode_minus_L=yes 10210 allow_undefined_flag=unsupported 10211 shrext_cmds=.dll 10212 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10213 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10214 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10215 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10216 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10217 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10218 emximp -o $lib $output_objdir/$libname.def' 10219 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10220 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10221 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10222 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10223 prefix_cmds="$SED"~ 10224 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10225 prefix_cmds="$prefix_cmds -e 1d"; 10226 fi~ 10227 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10228 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10229 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10230 emximp -o $lib $output_objdir/$libname.def' 10231 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10232 enable_shared_with_static_runtimes=yes 10233 ;; 10234 10235 osf3*) 10236 if test yes = "$GCC"; then 10237 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10238 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' 10239 else 10240 allow_undefined_flag=' -expect_unresolved \*' 10241 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' 10242 fi 10243 archive_cmds_need_lc='no' 10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10245 hardcode_libdir_separator=: 10246 ;; 10247 10248 osf4* | osf5*) # as osf3* with the addition of -msym flag 10249 if test yes = "$GCC"; then 10250 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10251 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' 10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10253 else 10254 allow_undefined_flag=' -expect_unresolved \*' 10255 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' 10256 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~ 10257 $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' 10258 10259 # Both c and cxx compiler support -rpath directly 10260 hardcode_libdir_flag_spec='-rpath $libdir' 10261 fi 10262 archive_cmds_need_lc='no' 10263 hardcode_libdir_separator=: 10264 ;; 10265 10266 solaris*) 10267 no_undefined_flag=' -z defs' 10268 if test yes = "$GCC"; then 10269 wlarc='$wl' 10270 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10272 $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' 10273 else 10274 case `$CC -V 2>&1` in 10275 *"Compilers 5.0"*) 10276 wlarc='' 10277 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10279 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10280 ;; 10281 *) 10282 wlarc='$wl' 10283 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10285 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10286 ;; 10287 esac 10288 fi 10289 hardcode_libdir_flag_spec='-R$libdir' 10290 hardcode_shlibpath_var=no 10291 case $host_os in 10292 solaris2.[0-5] | solaris2.[0-5].*) ;; 10293 *) 10294 # The compiler driver will combine and reorder linker options, 10295 # but understands '-z linker_flag'. GCC discards it without '$wl', 10296 # but is careful enough not to reorder. 10297 # Supported since Solaris 2.6 (maybe 2.5.1?) 10298 if test yes = "$GCC"; then 10299 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10300 else 10301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10302 fi 10303 ;; 10304 esac 10305 link_all_deplibs=yes 10306 ;; 10307 10308 sunos4*) 10309 if test sequent = "$host_vendor"; then 10310 # Use $CC to link under sequent, because it throws in some extra .o 10311 # files that make .init and .fini sections work. 10312 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10313 else 10314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10315 fi 10316 hardcode_libdir_flag_spec='-L$libdir' 10317 hardcode_direct=yes 10318 hardcode_minus_L=yes 10319 hardcode_shlibpath_var=no 10320 ;; 10321 10322 sysv4) 10323 case $host_vendor in 10324 sni) 10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10326 hardcode_direct=yes # is this really true??? 10327 ;; 10328 siemens) 10329 ## LD is ld it makes a PLAMLIB 10330 ## CC just makes a GrossModule. 10331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10332 reload_cmds='$CC -r -o $output$reload_objs' 10333 hardcode_direct=no 10334 ;; 10335 motorola) 10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10338 ;; 10339 esac 10340 runpath_var='LD_RUN_PATH' 10341 hardcode_shlibpath_var=no 10342 ;; 10343 10344 sysv4.3*) 10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10346 hardcode_shlibpath_var=no 10347 export_dynamic_flag_spec='-Bexport' 10348 ;; 10349 10350 sysv4*MP*) 10351 if test -d /usr/nec; then 10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10353 hardcode_shlibpath_var=no 10354 runpath_var=LD_RUN_PATH 10355 hardcode_runpath_var=yes 10356 ld_shlibs=yes 10357 fi 10358 ;; 10359 10360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10361 no_undefined_flag='$wl-z,text' 10362 archive_cmds_need_lc=no 10363 hardcode_shlibpath_var=no 10364 runpath_var='LD_RUN_PATH' 10365 10366 if test yes = "$GCC"; then 10367 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10368 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10369 else 10370 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10371 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10372 fi 10373 ;; 10374 10375 sysv5* | sco3.2v5* | sco5v6*) 10376 # Note: We CANNOT use -z defs as we might desire, because we do not 10377 # link with -lc, and that would cause any symbols used from libc to 10378 # always be unresolved, which means just about no library would 10379 # ever link correctly. If we're not using GNU ld we use -z text 10380 # though, which does catch some bad symbols but isn't as heavy-handed 10381 # as -z defs. 10382 no_undefined_flag='$wl-z,text' 10383 allow_undefined_flag='$wl-z,nodefs' 10384 archive_cmds_need_lc=no 10385 hardcode_shlibpath_var=no 10386 hardcode_libdir_flag_spec='$wl-R,$libdir' 10387 hardcode_libdir_separator=':' 10388 link_all_deplibs=yes 10389 export_dynamic_flag_spec='$wl-Bexport' 10390 runpath_var='LD_RUN_PATH' 10391 10392 if test yes = "$GCC"; then 10393 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10394 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10395 else 10396 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10397 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10398 fi 10399 ;; 10400 10401 uts4*) 10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10403 hardcode_libdir_flag_spec='-L$libdir' 10404 hardcode_shlibpath_var=no 10405 ;; 10406 10407 *) 10408 ld_shlibs=no 10409 ;; 10410 esac 10411 10412 if test sni = "$host_vendor"; then 10413 case $host in 10414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10415 export_dynamic_flag_spec='$wl-Blargedynsym' 10416 ;; 10417 esac 10418 fi 10419 fi 10420 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10422$as_echo "$ld_shlibs" >&6; } 10423test no = "$ld_shlibs" && can_build_shared=no 10424 10425with_gnu_ld=$with_gnu_ld 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441# 10442# Do we need to explicitly link libc? 10443# 10444case "x$archive_cmds_need_lc" in 10445x|xyes) 10446 # Assume -lc should be added 10447 archive_cmds_need_lc=yes 10448 10449 if test yes,yes = "$GCC,$enable_shared"; then 10450 case $archive_cmds in 10451 *'~'*) 10452 # FIXME: we may have to deal with multi-command sequences. 10453 ;; 10454 '$CC '*) 10455 # Test whether the compiler implicitly links with -lc since on some 10456 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10457 # to ld, don't add -lc before -lgcc. 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10459$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10460if ${lt_cv_archive_cmds_need_lc+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 $RM conftest* 10464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10465 10466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10467 (eval $ac_compile) 2>&5 10468 ac_status=$? 10469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10470 test $ac_status = 0; } 2>conftest.err; then 10471 soname=conftest 10472 lib=conftest 10473 libobjs=conftest.$ac_objext 10474 deplibs= 10475 wl=$lt_prog_compiler_wl 10476 pic_flag=$lt_prog_compiler_pic 10477 compiler_flags=-v 10478 linker_flags=-v 10479 verstring= 10480 output_objdir=. 10481 libname=conftest 10482 lt_save_allow_undefined_flag=$allow_undefined_flag 10483 allow_undefined_flag= 10484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10485 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10486 ac_status=$? 10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10488 test $ac_status = 0; } 10489 then 10490 lt_cv_archive_cmds_need_lc=no 10491 else 10492 lt_cv_archive_cmds_need_lc=yes 10493 fi 10494 allow_undefined_flag=$lt_save_allow_undefined_flag 10495 else 10496 cat conftest.err 1>&5 10497 fi 10498 $RM conftest* 10499 10500fi 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10502$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10503 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10504 ;; 10505 esac 10506 fi 10507 ;; 10508esac 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10662$as_echo_n "checking dynamic linker characteristics... " >&6; } 10663 10664if test yes = "$GCC"; then 10665 case $host_os in 10666 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10667 *) lt_awk_arg='/^libraries:/' ;; 10668 esac 10669 case $host_os in 10670 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10671 *) lt_sed_strip_eq='s|=/|/|g' ;; 10672 esac 10673 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10674 case $lt_search_path_spec in 10675 *\;*) 10676 # if the path contains ";" then we assume it to be the separator 10677 # otherwise default to the standard path separator (i.e. ":") - it is 10678 # assumed that no part of a normal pathname contains ";" but that should 10679 # okay in the real world where ";" in dirpaths is itself problematic. 10680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10681 ;; 10682 *) 10683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10684 ;; 10685 esac 10686 # Ok, now we have the path, separated by spaces, we can step through it 10687 # and add multilib dir if necessary... 10688 lt_tmp_lt_search_path_spec= 10689 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10690 # ...but if some path component already ends with the multilib dir we assume 10691 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10692 case "$lt_multi_os_dir; $lt_search_path_spec " in 10693 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10694 lt_multi_os_dir= 10695 ;; 10696 esac 10697 for lt_sys_path in $lt_search_path_spec; do 10698 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10700 elif test -n "$lt_multi_os_dir"; then 10701 test -d "$lt_sys_path" && \ 10702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10703 fi 10704 done 10705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10706BEGIN {RS = " "; FS = "/|\n";} { 10707 lt_foo = ""; 10708 lt_count = 0; 10709 for (lt_i = NF; lt_i > 0; lt_i--) { 10710 if ($lt_i != "" && $lt_i != ".") { 10711 if ($lt_i == "..") { 10712 lt_count++; 10713 } else { 10714 if (lt_count == 0) { 10715 lt_foo = "/" $lt_i lt_foo; 10716 } else { 10717 lt_count--; 10718 } 10719 } 10720 } 10721 } 10722 if (lt_foo != "") { lt_freq[lt_foo]++; } 10723 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10724}'` 10725 # AWK program above erroneously prepends '/' to C:/dos/paths 10726 # for these hosts. 10727 case $host_os in 10728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10729 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10730 esac 10731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10732else 10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10734fi 10735library_names_spec= 10736libname_spec='lib$name' 10737soname_spec= 10738shrext_cmds=.so 10739postinstall_cmds= 10740postuninstall_cmds= 10741finish_cmds= 10742finish_eval= 10743shlibpath_var= 10744shlibpath_overrides_runpath=unknown 10745version_type=none 10746dynamic_linker="$host_os ld.so" 10747sys_lib_dlsearch_path_spec="/lib /usr/lib" 10748need_lib_prefix=unknown 10749hardcode_into_libs=no 10750 10751# when you set need_version to no, make sure it does not cause -set_version 10752# flags to be left without arguments 10753need_version=unknown 10754 10755 10756 10757case $host_os in 10758aix3*) 10759 version_type=linux # correct to gnu/linux during the next big refactor 10760 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10761 shlibpath_var=LIBPATH 10762 10763 # AIX 3 has no versioning support, so we append a major version to the name. 10764 soname_spec='$libname$release$shared_ext$major' 10765 ;; 10766 10767aix[4-9]*) 10768 version_type=linux # correct to gnu/linux during the next big refactor 10769 need_lib_prefix=no 10770 need_version=no 10771 hardcode_into_libs=yes 10772 if test ia64 = "$host_cpu"; then 10773 # AIX 5 supports IA64 10774 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10775 shlibpath_var=LD_LIBRARY_PATH 10776 else 10777 # With GCC up to 2.95.x, collect2 would create an import file 10778 # for dependence libraries. The import file would start with 10779 # the line '#! .'. This would cause the generated library to 10780 # depend on '.', always an invalid library. This was fixed in 10781 # development snapshots of GCC prior to 3.0. 10782 case $host_os in 10783 aix4 | aix4.[01] | aix4.[01].*) 10784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10785 echo ' yes ' 10786 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10787 : 10788 else 10789 can_build_shared=no 10790 fi 10791 ;; 10792 esac 10793 # Using Import Files as archive members, it is possible to support 10794 # filename-based versioning of shared library archives on AIX. While 10795 # this would work for both with and without runtime linking, it will 10796 # prevent static linking of such archives. So we do filename-based 10797 # shared library versioning with .so extension only, which is used 10798 # when both runtime linking and shared linking is enabled. 10799 # Unfortunately, runtime linking may impact performance, so we do 10800 # not want this to be the default eventually. Also, we use the 10801 # versioned .so libs for executables only if there is the -brtl 10802 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10803 # To allow for filename-based versioning support, we need to create 10804 # libNAME.so.V as an archive file, containing: 10805 # *) an Import File, referring to the versioned filename of the 10806 # archive as well as the shared archive member, telling the 10807 # bitwidth (32 or 64) of that shared object, and providing the 10808 # list of exported symbols of that shared object, eventually 10809 # decorated with the 'weak' keyword 10810 # *) the shared object with the F_LOADONLY flag set, to really avoid 10811 # it being seen by the linker. 10812 # At run time we better use the real file rather than another symlink, 10813 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10814 10815 case $with_aix_soname,$aix_use_runtimelinking in 10816 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10817 # soname into executable. Probably we can add versioning support to 10818 # collect2, so additional links can be useful in future. 10819 aix,yes) # traditional libtool 10820 dynamic_linker='AIX unversionable lib.so' 10821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10822 # instead of lib<name>.a to let people know that these are not 10823 # typical AIX shared libraries. 10824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10825 ;; 10826 aix,no) # traditional AIX only 10827 dynamic_linker='AIX lib.a(lib.so.V)' 10828 # We preserve .a as extension for shared libraries through AIX4.2 10829 # and later when we are not doing run time linking. 10830 library_names_spec='$libname$release.a $libname.a' 10831 soname_spec='$libname$release$shared_ext$major' 10832 ;; 10833 svr4,*) # full svr4 only 10834 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10835 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10836 # We do not specify a path in Import Files, so LIBPATH fires. 10837 shlibpath_overrides_runpath=yes 10838 ;; 10839 *,yes) # both, prefer svr4 10840 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10841 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10842 # unpreferred sharedlib libNAME.a needs extra handling 10843 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"' 10844 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"' 10845 # We do not specify a path in Import Files, so LIBPATH fires. 10846 shlibpath_overrides_runpath=yes 10847 ;; 10848 *,no) # both, prefer aix 10849 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10850 library_names_spec='$libname$release.a $libname.a' 10851 soname_spec='$libname$release$shared_ext$major' 10852 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10853 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)' 10854 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"' 10855 ;; 10856 esac 10857 shlibpath_var=LIBPATH 10858 fi 10859 ;; 10860 10861amigaos*) 10862 case $host_cpu in 10863 powerpc) 10864 # Since July 2007 AmigaOS4 officially supports .so libraries. 10865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10867 ;; 10868 m68k) 10869 library_names_spec='$libname.ixlibrary $libname.a' 10870 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10871 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' 10872 ;; 10873 esac 10874 ;; 10875 10876beos*) 10877 library_names_spec='$libname$shared_ext' 10878 dynamic_linker="$host_os ld.so" 10879 shlibpath_var=LIBRARY_PATH 10880 ;; 10881 10882bsdi[45]*) 10883 version_type=linux # correct to gnu/linux during the next big refactor 10884 need_version=no 10885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10886 soname_spec='$libname$release$shared_ext$major' 10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10888 shlibpath_var=LD_LIBRARY_PATH 10889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10891 # the default ld.so.conf also contains /usr/contrib/lib and 10892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10893 # libtool to hard-code these into programs 10894 ;; 10895 10896cygwin* | mingw* | pw32* | cegcc*) 10897 version_type=windows 10898 shrext_cmds=.dll 10899 need_version=no 10900 need_lib_prefix=no 10901 10902 case $GCC,$cc_basename in 10903 yes,*) 10904 # gcc 10905 library_names_spec='$libname.dll.a' 10906 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10907 postinstall_cmds='base_file=`basename \$file`~ 10908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10909 dldir=$destdir/`dirname \$dlpath`~ 10910 test -d \$dldir || mkdir -p \$dldir~ 10911 $install_prog $dir/$dlname \$dldir/$dlname~ 10912 chmod a+x \$dldir/$dlname~ 10913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10915 fi' 10916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10917 dlpath=$dir/\$dldll~ 10918 $RM \$dlpath' 10919 shlibpath_overrides_runpath=yes 10920 10921 case $host_os in 10922 cygwin*) 10923 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10924 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10925 10926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10927 ;; 10928 mingw* | cegcc*) 10929 # MinGW DLLs use traditional 'lib' prefix 10930 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10931 ;; 10932 pw32*) 10933 # pw32 DLLs use 'pw' prefix rather than 'lib' 10934 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10935 ;; 10936 esac 10937 dynamic_linker='Win32 ld.exe' 10938 ;; 10939 10940 *,cl*) 10941 # Native MSVC 10942 libname_spec='$name' 10943 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10944 library_names_spec='$libname.dll.lib' 10945 10946 case $build_os in 10947 mingw*) 10948 sys_lib_search_path_spec= 10949 lt_save_ifs=$IFS 10950 IFS=';' 10951 for lt_path in $LIB 10952 do 10953 IFS=$lt_save_ifs 10954 # Let DOS variable expansion print the short 8.3 style file name. 10955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10957 done 10958 IFS=$lt_save_ifs 10959 # Convert to MSYS style. 10960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10961 ;; 10962 cygwin*) 10963 # Convert to unix form, then to dos form, then back to unix form 10964 # but this time dos style (no spaces!) so that the unix form looks 10965 # like /cygdrive/c/PROGRA~1:/cygdr... 10966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10969 ;; 10970 *) 10971 sys_lib_search_path_spec=$LIB 10972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10973 # It is most probably a Windows format PATH. 10974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10975 else 10976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10977 fi 10978 # FIXME: find the short name or the path components, as spaces are 10979 # common. (e.g. "Program Files" -> "PROGRA~1") 10980 ;; 10981 esac 10982 10983 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10984 postinstall_cmds='base_file=`basename \$file`~ 10985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10986 dldir=$destdir/`dirname \$dlpath`~ 10987 test -d \$dldir || mkdir -p \$dldir~ 10988 $install_prog $dir/$dlname \$dldir/$dlname' 10989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10990 dlpath=$dir/\$dldll~ 10991 $RM \$dlpath' 10992 shlibpath_overrides_runpath=yes 10993 dynamic_linker='Win32 link.exe' 10994 ;; 10995 10996 *) 10997 # Assume MSVC wrapper 10998 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10999 dynamic_linker='Win32 ld.exe' 11000 ;; 11001 esac 11002 # FIXME: first we should search . and the directory the executable is in 11003 shlibpath_var=PATH 11004 ;; 11005 11006darwin* | rhapsody*) 11007 dynamic_linker="$host_os dyld" 11008 version_type=darwin 11009 need_lib_prefix=no 11010 need_version=no 11011 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11012 soname_spec='$libname$release$major$shared_ext' 11013 shlibpath_overrides_runpath=yes 11014 shlibpath_var=DYLD_LIBRARY_PATH 11015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11016 11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11019 ;; 11020 11021dgux*) 11022 version_type=linux # correct to gnu/linux during the next big refactor 11023 need_lib_prefix=no 11024 need_version=no 11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11026 soname_spec='$libname$release$shared_ext$major' 11027 shlibpath_var=LD_LIBRARY_PATH 11028 ;; 11029 11030freebsd* | dragonfly*) 11031 # DragonFly does not have aout. When/if they implement a new 11032 # versioning mechanism, adjust this. 11033 if test -x /usr/bin/objformat; then 11034 objformat=`/usr/bin/objformat` 11035 else 11036 case $host_os in 11037 freebsd[23].*) objformat=aout ;; 11038 *) objformat=elf ;; 11039 esac 11040 fi 11041 version_type=freebsd-$objformat 11042 case $version_type in 11043 freebsd-elf*) 11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11045 soname_spec='$libname$release$shared_ext$major' 11046 need_version=no 11047 need_lib_prefix=no 11048 ;; 11049 freebsd-*) 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11051 need_version=yes 11052 ;; 11053 esac 11054 shlibpath_var=LD_LIBRARY_PATH 11055 case $host_os in 11056 freebsd2.*) 11057 shlibpath_overrides_runpath=yes 11058 ;; 11059 freebsd3.[01]* | freebsdelf3.[01]*) 11060 shlibpath_overrides_runpath=yes 11061 hardcode_into_libs=yes 11062 ;; 11063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11065 shlibpath_overrides_runpath=no 11066 hardcode_into_libs=yes 11067 ;; 11068 *) # from 4.6 on, and DragonFly 11069 shlibpath_overrides_runpath=yes 11070 hardcode_into_libs=yes 11071 ;; 11072 esac 11073 ;; 11074 11075haiku*) 11076 version_type=linux # correct to gnu/linux during the next big refactor 11077 need_lib_prefix=no 11078 need_version=no 11079 dynamic_linker="$host_os runtime_loader" 11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11081 soname_spec='$libname$release$shared_ext$major' 11082 shlibpath_var=LIBRARY_PATH 11083 shlibpath_overrides_runpath=no 11084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11085 hardcode_into_libs=yes 11086 ;; 11087 11088hpux9* | hpux10* | hpux11*) 11089 # Give a soname corresponding to the major version so that dld.sl refuses to 11090 # link against other versions. 11091 version_type=sunos 11092 need_lib_prefix=no 11093 need_version=no 11094 case $host_cpu in 11095 ia64*) 11096 shrext_cmds='.so' 11097 hardcode_into_libs=yes 11098 dynamic_linker="$host_os dld.so" 11099 shlibpath_var=LD_LIBRARY_PATH 11100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11102 soname_spec='$libname$release$shared_ext$major' 11103 if test 32 = "$HPUX_IA64_MODE"; then 11104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11105 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11106 else 11107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11108 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11109 fi 11110 ;; 11111 hppa*64*) 11112 shrext_cmds='.sl' 11113 hardcode_into_libs=yes 11114 dynamic_linker="$host_os dld.sl" 11115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11118 soname_spec='$libname$release$shared_ext$major' 11119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11121 ;; 11122 *) 11123 shrext_cmds='.sl' 11124 dynamic_linker="$host_os dld.sl" 11125 shlibpath_var=SHLIB_PATH 11126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11128 soname_spec='$libname$release$shared_ext$major' 11129 ;; 11130 esac 11131 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11132 postinstall_cmds='chmod 555 $lib' 11133 # or fails outright, so override atomically: 11134 install_override_mode=555 11135 ;; 11136 11137interix[3-9]*) 11138 version_type=linux # correct to gnu/linux during the next big refactor 11139 need_lib_prefix=no 11140 need_version=no 11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11142 soname_spec='$libname$release$shared_ext$major' 11143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11144 shlibpath_var=LD_LIBRARY_PATH 11145 shlibpath_overrides_runpath=no 11146 hardcode_into_libs=yes 11147 ;; 11148 11149irix5* | irix6* | nonstopux*) 11150 case $host_os in 11151 nonstopux*) version_type=nonstopux ;; 11152 *) 11153 if test yes = "$lt_cv_prog_gnu_ld"; then 11154 version_type=linux # correct to gnu/linux during the next big refactor 11155 else 11156 version_type=irix 11157 fi ;; 11158 esac 11159 need_lib_prefix=no 11160 need_version=no 11161 soname_spec='$libname$release$shared_ext$major' 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11163 case $host_os in 11164 irix5* | nonstopux*) 11165 libsuff= shlibsuff= 11166 ;; 11167 *) 11168 case $LD in # libtool.m4 will add one of these switches to LD 11169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11170 libsuff= shlibsuff= libmagic=32-bit;; 11171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11172 libsuff=32 shlibsuff=N32 libmagic=N32;; 11173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11174 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11175 *) libsuff= shlibsuff= libmagic=never-match;; 11176 esac 11177 ;; 11178 esac 11179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11180 shlibpath_overrides_runpath=no 11181 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11182 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11183 hardcode_into_libs=yes 11184 ;; 11185 11186# No shared lib support for Linux oldld, aout, or coff. 11187linux*oldld* | linux*aout* | linux*coff*) 11188 dynamic_linker=no 11189 ;; 11190 11191linux*android*) 11192 version_type=none # Android doesn't support versioned libraries. 11193 need_lib_prefix=no 11194 need_version=no 11195 library_names_spec='$libname$release$shared_ext' 11196 soname_spec='$libname$release$shared_ext' 11197 finish_cmds= 11198 shlibpath_var=LD_LIBRARY_PATH 11199 shlibpath_overrides_runpath=yes 11200 11201 # This implies no fast_install, which is unacceptable. 11202 # Some rework will be needed to allow for fast_install 11203 # before this can be enabled. 11204 hardcode_into_libs=yes 11205 11206 dynamic_linker='Android linker' 11207 # Don't embed -rpath directories since the linker doesn't support them. 11208 hardcode_libdir_flag_spec='-L$libdir' 11209 ;; 11210 11211# This must be glibc/ELF. 11212linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11213 version_type=linux # correct to gnu/linux during the next big refactor 11214 need_lib_prefix=no 11215 need_version=no 11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11217 soname_spec='$libname$release$shared_ext$major' 11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=no 11221 11222 # Some binutils ld are patched to set DT_RUNPATH 11223 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 lt_cv_shlibpath_overrides_runpath=no 11227 save_LDFLAGS=$LDFLAGS 11228 save_libdir=$libdir 11229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232/* end confdefs.h. */ 11233 11234int 11235main () 11236{ 11237 11238 ; 11239 return 0; 11240} 11241_ACEOF 11242if ac_fn_c_try_link "$LINENO"; then : 11243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11244 lt_cv_shlibpath_overrides_runpath=yes 11245fi 11246fi 11247rm -f core conftest.err conftest.$ac_objext \ 11248 conftest$ac_exeext conftest.$ac_ext 11249 LDFLAGS=$save_LDFLAGS 11250 libdir=$save_libdir 11251 11252fi 11253 11254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11255 11256 # This implies no fast_install, which is unacceptable. 11257 # Some rework will be needed to allow for fast_install 11258 # before this can be enabled. 11259 hardcode_into_libs=yes 11260 11261 # Ideally, we could use ldconfig to report *all* directores which are 11262 # searched for libraries, however this is still not possible. Aside from not 11263 # being certain /sbin/ldconfig is available, command 11264 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11265 # even though it is searched at run-time. Try to do the best guess by 11266 # appending ld.so.conf contents (and includes) to the search path. 11267 if test -f /etc/ld.so.conf; then 11268 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' ' '` 11269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11270 fi 11271 11272 # We used to test for /lib/ld.so.1 and disable shared libraries on 11273 # powerpc, because MkLinux only supported shared libraries with the 11274 # GNU dynamic linker. Since this was broken with cross compilers, 11275 # most powerpc-linux boxes support dynamic linking these days and 11276 # people can always --disable-shared, the test was removed, and we 11277 # assume the GNU/Linux dynamic linker is in use. 11278 dynamic_linker='GNU/Linux ld.so' 11279 ;; 11280 11281netbsdelf*-gnu) 11282 version_type=linux 11283 need_lib_prefix=no 11284 need_version=no 11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11286 soname_spec='${libname}${release}${shared_ext}$major' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 shlibpath_overrides_runpath=no 11289 hardcode_into_libs=yes 11290 dynamic_linker='NetBSD ld.elf_so' 11291 ;; 11292 11293netbsd*) 11294 version_type=sunos 11295 need_lib_prefix=no 11296 need_version=no 11297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11300 dynamic_linker='NetBSD (a.out) ld.so' 11301 else 11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11303 soname_spec='$libname$release$shared_ext$major' 11304 dynamic_linker='NetBSD ld.elf_so' 11305 fi 11306 shlibpath_var=LD_LIBRARY_PATH 11307 shlibpath_overrides_runpath=yes 11308 hardcode_into_libs=yes 11309 ;; 11310 11311newsos6) 11312 version_type=linux # correct to gnu/linux during the next big refactor 11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11314 shlibpath_var=LD_LIBRARY_PATH 11315 shlibpath_overrides_runpath=yes 11316 ;; 11317 11318*nto* | *qnx*) 11319 version_type=qnx 11320 need_lib_prefix=no 11321 need_version=no 11322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11323 soname_spec='$libname$release$shared_ext$major' 11324 shlibpath_var=LD_LIBRARY_PATH 11325 shlibpath_overrides_runpath=no 11326 hardcode_into_libs=yes 11327 dynamic_linker='ldqnx.so' 11328 ;; 11329 11330openbsd* | bitrig*) 11331 version_type=sunos 11332 sys_lib_dlsearch_path_spec=/usr/lib 11333 need_lib_prefix=no 11334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11335 need_version=no 11336 else 11337 need_version=yes 11338 fi 11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11341 shlibpath_var=LD_LIBRARY_PATH 11342 shlibpath_overrides_runpath=yes 11343 ;; 11344 11345os2*) 11346 libname_spec='$name' 11347 version_type=windows 11348 shrext_cmds=.dll 11349 need_version=no 11350 need_lib_prefix=no 11351 # OS/2 can only load a DLL with a base name of 8 characters or less. 11352 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11353 v=$($ECHO $release$versuffix | tr -d .-); 11354 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11355 $ECHO $n$v`$shared_ext' 11356 library_names_spec='${libname}_dll.$libext' 11357 dynamic_linker='OS/2 ld.exe' 11358 shlibpath_var=BEGINLIBPATH 11359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11361 postinstall_cmds='base_file=`basename \$file`~ 11362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11363 dldir=$destdir/`dirname \$dlpath`~ 11364 test -d \$dldir || mkdir -p \$dldir~ 11365 $install_prog $dir/$dlname \$dldir/$dlname~ 11366 chmod a+x \$dldir/$dlname~ 11367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11369 fi' 11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11371 dlpath=$dir/\$dldll~ 11372 $RM \$dlpath' 11373 ;; 11374 11375osf3* | osf4* | osf5*) 11376 version_type=osf 11377 need_lib_prefix=no 11378 need_version=no 11379 soname_spec='$libname$release$shared_ext$major' 11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11381 shlibpath_var=LD_LIBRARY_PATH 11382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11384 ;; 11385 11386rdos*) 11387 dynamic_linker=no 11388 ;; 11389 11390solaris*) 11391 version_type=linux # correct to gnu/linux during the next big refactor 11392 need_lib_prefix=no 11393 need_version=no 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=yes 11398 hardcode_into_libs=yes 11399 # ldd complains unless libraries are executable 11400 postinstall_cmds='chmod +x $lib' 11401 ;; 11402 11403sunos4*) 11404 version_type=sunos 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11407 shlibpath_var=LD_LIBRARY_PATH 11408 shlibpath_overrides_runpath=yes 11409 if test yes = "$with_gnu_ld"; then 11410 need_lib_prefix=no 11411 fi 11412 need_version=yes 11413 ;; 11414 11415sysv4 | sysv4.3*) 11416 version_type=linux # correct to gnu/linux during the next big refactor 11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11418 soname_spec='$libname$release$shared_ext$major' 11419 shlibpath_var=LD_LIBRARY_PATH 11420 case $host_vendor in 11421 sni) 11422 shlibpath_overrides_runpath=no 11423 need_lib_prefix=no 11424 runpath_var=LD_RUN_PATH 11425 ;; 11426 siemens) 11427 need_lib_prefix=no 11428 ;; 11429 motorola) 11430 need_lib_prefix=no 11431 need_version=no 11432 shlibpath_overrides_runpath=no 11433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11434 ;; 11435 esac 11436 ;; 11437 11438sysv4*MP*) 11439 if test -d /usr/nec; then 11440 version_type=linux # correct to gnu/linux during the next big refactor 11441 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11442 soname_spec='$libname$shared_ext.$major' 11443 shlibpath_var=LD_LIBRARY_PATH 11444 fi 11445 ;; 11446 11447sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11448 version_type=sco 11449 need_lib_prefix=no 11450 need_version=no 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11452 soname_spec='$libname$release$shared_ext$major' 11453 shlibpath_var=LD_LIBRARY_PATH 11454 shlibpath_overrides_runpath=yes 11455 hardcode_into_libs=yes 11456 if test yes = "$with_gnu_ld"; then 11457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11458 else 11459 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11460 case $host_os in 11461 sco3.2v5*) 11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11463 ;; 11464 esac 11465 fi 11466 sys_lib_dlsearch_path_spec='/usr/lib' 11467 ;; 11468 11469tpf*) 11470 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11471 version_type=linux # correct to gnu/linux during the next big refactor 11472 need_lib_prefix=no 11473 need_version=no 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11475 shlibpath_var=LD_LIBRARY_PATH 11476 shlibpath_overrides_runpath=no 11477 hardcode_into_libs=yes 11478 ;; 11479 11480uts4*) 11481 version_type=linux # correct to gnu/linux during the next big refactor 11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11483 soname_spec='$libname$release$shared_ext$major' 11484 shlibpath_var=LD_LIBRARY_PATH 11485 ;; 11486 11487*) 11488 dynamic_linker=no 11489 ;; 11490esac 11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11492$as_echo "$dynamic_linker" >&6; } 11493test no = "$dynamic_linker" && can_build_shared=no 11494 11495variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11496if test yes = "$GCC"; then 11497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11498fi 11499 11500if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11501 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11502fi 11503 11504if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11505 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11506fi 11507 11508# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11509configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11510 11511# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11512func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11513 11514# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11515configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11614$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11615hardcode_action= 11616if test -n "$hardcode_libdir_flag_spec" || 11617 test -n "$runpath_var" || 11618 test yes = "$hardcode_automatic"; then 11619 11620 # We can hardcode non-existent directories. 11621 if test no != "$hardcode_direct" && 11622 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11623 # have to relink, otherwise we might link with an installed library 11624 # when we should be linking with a yet-to-be-installed one 11625 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11626 test no != "$hardcode_minus_L"; then 11627 # Linking always hardcodes the temporary library directory. 11628 hardcode_action=relink 11629 else 11630 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11631 hardcode_action=immediate 11632 fi 11633else 11634 # We cannot hardcode anything, or else we can only hardcode existing 11635 # directories. 11636 hardcode_action=unsupported 11637fi 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11639$as_echo "$hardcode_action" >&6; } 11640 11641if test relink = "$hardcode_action" || 11642 test yes = "$inherit_rpath"; then 11643 # Fast installation is not supported 11644 enable_fast_install=no 11645elif test yes = "$shlibpath_overrides_runpath" || 11646 test no = "$enable_shared"; then 11647 # Fast installation is not necessary 11648 enable_fast_install=needless 11649fi 11650 11651 11652 11653 11654 11655 11656 if test yes != "$enable_dlopen"; then 11657 enable_dlopen=unknown 11658 enable_dlopen_self=unknown 11659 enable_dlopen_self_static=unknown 11660else 11661 lt_cv_dlopen=no 11662 lt_cv_dlopen_libs= 11663 11664 case $host_os in 11665 beos*) 11666 lt_cv_dlopen=load_add_on 11667 lt_cv_dlopen_libs= 11668 lt_cv_dlopen_self=yes 11669 ;; 11670 11671 mingw* | pw32* | cegcc*) 11672 lt_cv_dlopen=LoadLibrary 11673 lt_cv_dlopen_libs= 11674 ;; 11675 11676 cygwin*) 11677 lt_cv_dlopen=dlopen 11678 lt_cv_dlopen_libs= 11679 ;; 11680 11681 darwin*) 11682 # if libdl is installed we need to link against it 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11684$as_echo_n "checking for dlopen in -ldl... " >&6; } 11685if ${ac_cv_lib_dl_dlopen+:} false; then : 11686 $as_echo_n "(cached) " >&6 11687else 11688 ac_check_lib_save_LIBS=$LIBS 11689LIBS="-ldl $LIBS" 11690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11691/* end confdefs.h. */ 11692 11693/* Override any GCC internal prototype to avoid an error. 11694 Use char because int might match the return type of a GCC 11695 builtin and then its argument prototype would still apply. */ 11696#ifdef __cplusplus 11697extern "C" 11698#endif 11699char dlopen (); 11700int 11701main () 11702{ 11703return dlopen (); 11704 ; 11705 return 0; 11706} 11707_ACEOF 11708if ac_fn_c_try_link "$LINENO"; then : 11709 ac_cv_lib_dl_dlopen=yes 11710else 11711 ac_cv_lib_dl_dlopen=no 11712fi 11713rm -f core conftest.err conftest.$ac_objext \ 11714 conftest$ac_exeext conftest.$ac_ext 11715LIBS=$ac_check_lib_save_LIBS 11716fi 11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11718$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11719if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11720 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11721else 11722 11723 lt_cv_dlopen=dyld 11724 lt_cv_dlopen_libs= 11725 lt_cv_dlopen_self=yes 11726 11727fi 11728 11729 ;; 11730 11731 tpf*) 11732 # Don't try to run any link tests for TPF. We know it's impossible 11733 # because TPF is a cross-compiler, and we know how we open DSOs. 11734 lt_cv_dlopen=dlopen 11735 lt_cv_dlopen_libs= 11736 lt_cv_dlopen_self=no 11737 ;; 11738 11739 *) 11740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11741if test "x$ac_cv_func_shl_load" = xyes; then : 11742 lt_cv_dlopen=shl_load 11743else 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11745$as_echo_n "checking for shl_load in -ldld... " >&6; } 11746if ${ac_cv_lib_dld_shl_load+:} false; then : 11747 $as_echo_n "(cached) " >&6 11748else 11749 ac_check_lib_save_LIBS=$LIBS 11750LIBS="-ldld $LIBS" 11751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11752/* end confdefs.h. */ 11753 11754/* Override any GCC internal prototype to avoid an error. 11755 Use char because int might match the return type of a GCC 11756 builtin and then its argument prototype would still apply. */ 11757#ifdef __cplusplus 11758extern "C" 11759#endif 11760char shl_load (); 11761int 11762main () 11763{ 11764return shl_load (); 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769if ac_fn_c_try_link "$LINENO"; then : 11770 ac_cv_lib_dld_shl_load=yes 11771else 11772 ac_cv_lib_dld_shl_load=no 11773fi 11774rm -f core conftest.err conftest.$ac_objext \ 11775 conftest$ac_exeext conftest.$ac_ext 11776LIBS=$ac_check_lib_save_LIBS 11777fi 11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11779$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11780if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11781 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11782else 11783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11784if test "x$ac_cv_func_dlopen" = xyes; then : 11785 lt_cv_dlopen=dlopen 11786else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11788$as_echo_n "checking for dlopen in -ldl... " >&6; } 11789if ${ac_cv_lib_dl_dlopen+:} false; then : 11790 $as_echo_n "(cached) " >&6 11791else 11792 ac_check_lib_save_LIBS=$LIBS 11793LIBS="-ldl $LIBS" 11794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11795/* end confdefs.h. */ 11796 11797/* Override any GCC internal prototype to avoid an error. 11798 Use char because int might match the return type of a GCC 11799 builtin and then its argument prototype would still apply. */ 11800#ifdef __cplusplus 11801extern "C" 11802#endif 11803char dlopen (); 11804int 11805main () 11806{ 11807return dlopen (); 11808 ; 11809 return 0; 11810} 11811_ACEOF 11812if ac_fn_c_try_link "$LINENO"; then : 11813 ac_cv_lib_dl_dlopen=yes 11814else 11815 ac_cv_lib_dl_dlopen=no 11816fi 11817rm -f core conftest.err conftest.$ac_objext \ 11818 conftest$ac_exeext conftest.$ac_ext 11819LIBS=$ac_check_lib_save_LIBS 11820fi 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11822$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11823if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11824 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11825else 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11827$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11828if ${ac_cv_lib_svld_dlopen+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 ac_check_lib_save_LIBS=$LIBS 11832LIBS="-lsvld $LIBS" 11833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835 11836/* Override any GCC internal prototype to avoid an error. 11837 Use char because int might match the return type of a GCC 11838 builtin and then its argument prototype would still apply. */ 11839#ifdef __cplusplus 11840extern "C" 11841#endif 11842char dlopen (); 11843int 11844main () 11845{ 11846return dlopen (); 11847 ; 11848 return 0; 11849} 11850_ACEOF 11851if ac_fn_c_try_link "$LINENO"; then : 11852 ac_cv_lib_svld_dlopen=yes 11853else 11854 ac_cv_lib_svld_dlopen=no 11855fi 11856rm -f core conftest.err conftest.$ac_objext \ 11857 conftest$ac_exeext conftest.$ac_ext 11858LIBS=$ac_check_lib_save_LIBS 11859fi 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11861$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11862if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11863 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11864else 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11866$as_echo_n "checking for dld_link in -ldld... " >&6; } 11867if ${ac_cv_lib_dld_dld_link+:} false; then : 11868 $as_echo_n "(cached) " >&6 11869else 11870 ac_check_lib_save_LIBS=$LIBS 11871LIBS="-ldld $LIBS" 11872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874 11875/* Override any GCC internal prototype to avoid an error. 11876 Use char because int might match the return type of a GCC 11877 builtin and then its argument prototype would still apply. */ 11878#ifdef __cplusplus 11879extern "C" 11880#endif 11881char dld_link (); 11882int 11883main () 11884{ 11885return dld_link (); 11886 ; 11887 return 0; 11888} 11889_ACEOF 11890if ac_fn_c_try_link "$LINENO"; then : 11891 ac_cv_lib_dld_dld_link=yes 11892else 11893 ac_cv_lib_dld_dld_link=no 11894fi 11895rm -f core conftest.err conftest.$ac_objext \ 11896 conftest$ac_exeext conftest.$ac_ext 11897LIBS=$ac_check_lib_save_LIBS 11898fi 11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11900$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11901if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11902 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11903fi 11904 11905 11906fi 11907 11908 11909fi 11910 11911 11912fi 11913 11914 11915fi 11916 11917 11918fi 11919 11920 ;; 11921 esac 11922 11923 if test no = "$lt_cv_dlopen"; then 11924 enable_dlopen=no 11925 else 11926 enable_dlopen=yes 11927 fi 11928 11929 case $lt_cv_dlopen in 11930 dlopen) 11931 save_CPPFLAGS=$CPPFLAGS 11932 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11933 11934 save_LDFLAGS=$LDFLAGS 11935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11936 11937 save_LIBS=$LIBS 11938 LIBS="$lt_cv_dlopen_libs $LIBS" 11939 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11941$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11942if ${lt_cv_dlopen_self+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944else 11945 if test yes = "$cross_compiling"; then : 11946 lt_cv_dlopen_self=cross 11947else 11948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11949 lt_status=$lt_dlunknown 11950 cat > conftest.$ac_ext <<_LT_EOF 11951#line $LINENO "configure" 11952#include "confdefs.h" 11953 11954#if HAVE_DLFCN_H 11955#include <dlfcn.h> 11956#endif 11957 11958#include <stdio.h> 11959 11960#ifdef RTLD_GLOBAL 11961# define LT_DLGLOBAL RTLD_GLOBAL 11962#else 11963# ifdef DL_GLOBAL 11964# define LT_DLGLOBAL DL_GLOBAL 11965# else 11966# define LT_DLGLOBAL 0 11967# endif 11968#endif 11969 11970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11971 find out it does not work in some platform. */ 11972#ifndef LT_DLLAZY_OR_NOW 11973# ifdef RTLD_LAZY 11974# define LT_DLLAZY_OR_NOW RTLD_LAZY 11975# else 11976# ifdef DL_LAZY 11977# define LT_DLLAZY_OR_NOW DL_LAZY 11978# else 11979# ifdef RTLD_NOW 11980# define LT_DLLAZY_OR_NOW RTLD_NOW 11981# else 11982# ifdef DL_NOW 11983# define LT_DLLAZY_OR_NOW DL_NOW 11984# else 11985# define LT_DLLAZY_OR_NOW 0 11986# endif 11987# endif 11988# endif 11989# endif 11990#endif 11991 11992/* When -fvisibility=hidden is used, assume the code has been annotated 11993 correspondingly for the symbols needed. */ 11994#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11995int fnord () __attribute__((visibility("default"))); 11996#endif 11997 11998int fnord () { return 42; } 11999int main () 12000{ 12001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12002 int status = $lt_dlunknown; 12003 12004 if (self) 12005 { 12006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12007 else 12008 { 12009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12010 else puts (dlerror ()); 12011 } 12012 /* dlclose (self); */ 12013 } 12014 else 12015 puts (dlerror ()); 12016 12017 return status; 12018} 12019_LT_EOF 12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12021 (eval $ac_link) 2>&5 12022 ac_status=$? 12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12024 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12025 (./conftest; exit; ) >&5 2>/dev/null 12026 lt_status=$? 12027 case x$lt_status in 12028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12031 esac 12032 else : 12033 # compilation failed 12034 lt_cv_dlopen_self=no 12035 fi 12036fi 12037rm -fr conftest* 12038 12039 12040fi 12041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12042$as_echo "$lt_cv_dlopen_self" >&6; } 12043 12044 if test yes = "$lt_cv_dlopen_self"; then 12045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12047$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12048if ${lt_cv_dlopen_self_static+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050else 12051 if test yes = "$cross_compiling"; then : 12052 lt_cv_dlopen_self_static=cross 12053else 12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12055 lt_status=$lt_dlunknown 12056 cat > conftest.$ac_ext <<_LT_EOF 12057#line $LINENO "configure" 12058#include "confdefs.h" 12059 12060#if HAVE_DLFCN_H 12061#include <dlfcn.h> 12062#endif 12063 12064#include <stdio.h> 12065 12066#ifdef RTLD_GLOBAL 12067# define LT_DLGLOBAL RTLD_GLOBAL 12068#else 12069# ifdef DL_GLOBAL 12070# define LT_DLGLOBAL DL_GLOBAL 12071# else 12072# define LT_DLGLOBAL 0 12073# endif 12074#endif 12075 12076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12077 find out it does not work in some platform. */ 12078#ifndef LT_DLLAZY_OR_NOW 12079# ifdef RTLD_LAZY 12080# define LT_DLLAZY_OR_NOW RTLD_LAZY 12081# else 12082# ifdef DL_LAZY 12083# define LT_DLLAZY_OR_NOW DL_LAZY 12084# else 12085# ifdef RTLD_NOW 12086# define LT_DLLAZY_OR_NOW RTLD_NOW 12087# else 12088# ifdef DL_NOW 12089# define LT_DLLAZY_OR_NOW DL_NOW 12090# else 12091# define LT_DLLAZY_OR_NOW 0 12092# endif 12093# endif 12094# endif 12095# endif 12096#endif 12097 12098/* When -fvisibility=hidden is used, assume the code has been annotated 12099 correspondingly for the symbols needed. */ 12100#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12101int fnord () __attribute__((visibility("default"))); 12102#endif 12103 12104int fnord () { return 42; } 12105int main () 12106{ 12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12108 int status = $lt_dlunknown; 12109 12110 if (self) 12111 { 12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12113 else 12114 { 12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12116 else puts (dlerror ()); 12117 } 12118 /* dlclose (self); */ 12119 } 12120 else 12121 puts (dlerror ()); 12122 12123 return status; 12124} 12125_LT_EOF 12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12127 (eval $ac_link) 2>&5 12128 ac_status=$? 12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12130 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12131 (./conftest; exit; ) >&5 2>/dev/null 12132 lt_status=$? 12133 case x$lt_status in 12134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12137 esac 12138 else : 12139 # compilation failed 12140 lt_cv_dlopen_self_static=no 12141 fi 12142fi 12143rm -fr conftest* 12144 12145 12146fi 12147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12148$as_echo "$lt_cv_dlopen_self_static" >&6; } 12149 fi 12150 12151 CPPFLAGS=$save_CPPFLAGS 12152 LDFLAGS=$save_LDFLAGS 12153 LIBS=$save_LIBS 12154 ;; 12155 esac 12156 12157 case $lt_cv_dlopen_self in 12158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12159 *) enable_dlopen_self=unknown ;; 12160 esac 12161 12162 case $lt_cv_dlopen_self_static in 12163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12164 *) enable_dlopen_self_static=unknown ;; 12165 esac 12166fi 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184striplib= 12185old_striplib= 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12187$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12188if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12190 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12192$as_echo "yes" >&6; } 12193else 12194# FIXME - insert some real tests, host_os isn't really good enough 12195 case $host_os in 12196 darwin*) 12197 if test -n "$STRIP"; then 12198 striplib="$STRIP -x" 12199 old_striplib="$STRIP -S" 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12201$as_echo "yes" >&6; } 12202 else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204$as_echo "no" >&6; } 12205 fi 12206 ;; 12207 *) 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12209$as_echo "no" >&6; } 12210 ;; 12211 esac 12212fi 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 # Report what library types will actually be built 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12227$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12229$as_echo "$can_build_shared" >&6; } 12230 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12232$as_echo_n "checking whether to build shared libraries... " >&6; } 12233 test no = "$can_build_shared" && enable_shared=no 12234 12235 # On AIX, shared libraries and static libraries use the same namespace, and 12236 # are all built from PIC. 12237 case $host_os in 12238 aix3*) 12239 test yes = "$enable_shared" && enable_static=no 12240 if test -n "$RANLIB"; then 12241 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12242 postinstall_cmds='$RANLIB $lib' 12243 fi 12244 ;; 12245 12246 aix[4-9]*) 12247 if test ia64 != "$host_cpu"; then 12248 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12249 yes,aix,yes) ;; # shared object as lib.so file only 12250 yes,svr4,*) ;; # shared object as lib.so archive member only 12251 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12252 esac 12253 fi 12254 ;; 12255 esac 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12257$as_echo "$enable_shared" >&6; } 12258 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12260$as_echo_n "checking whether to build static libraries... " >&6; } 12261 # Make sure either enable_shared or enable_static is yes. 12262 test yes = "$enable_shared" || enable_static=yes 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12264$as_echo "$enable_static" >&6; } 12265 12266 12267 12268 12269fi 12270ac_ext=c 12271ac_cpp='$CPP $CPPFLAGS' 12272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12274ac_compiler_gnu=$ac_cv_c_compiler_gnu 12275 12276CC=$lt_save_CC 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 ac_config_commands="$ac_config_commands libtool" 12293 12294 12295 12296 12297# Only expand once: 12298 12299 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 12301$as_echo_n "checking for library containing strerror... " >&6; } 12302if ${ac_cv_search_strerror+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 ac_func_search_save_LIBS=$LIBS 12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12307/* end confdefs.h. */ 12308 12309/* Override any GCC internal prototype to avoid an error. 12310 Use char because int might match the return type of a GCC 12311 builtin and then its argument prototype would still apply. */ 12312#ifdef __cplusplus 12313extern "C" 12314#endif 12315char strerror (); 12316int 12317main () 12318{ 12319return strerror (); 12320 ; 12321 return 0; 12322} 12323_ACEOF 12324for ac_lib in '' cposix; do 12325 if test -z "$ac_lib"; then 12326 ac_res="none required" 12327 else 12328 ac_res=-l$ac_lib 12329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12330 fi 12331 if ac_fn_c_try_link "$LINENO"; then : 12332 ac_cv_search_strerror=$ac_res 12333fi 12334rm -f core conftest.err conftest.$ac_objext \ 12335 conftest$ac_exeext 12336 if ${ac_cv_search_strerror+:} false; then : 12337 break 12338fi 12339done 12340if ${ac_cv_search_strerror+:} false; then : 12341 12342else 12343 ac_cv_search_strerror=no 12344fi 12345rm conftest.$ac_ext 12346LIBS=$ac_func_search_save_LIBS 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 12349$as_echo "$ac_cv_search_strerror" >&6; } 12350ac_res=$ac_cv_search_strerror 12351if test "$ac_res" != no; then : 12352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12353 12354fi 12355 12356ACLOCAL_AMFLAFS="$ACLOCAL_FLAGS -I m4" 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12367 if test -n "$ac_tool_prefix"; then 12368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12369set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12371$as_echo_n "checking for $ac_word... " >&6; } 12372if ${ac_cv_path_PKG_CONFIG+:} false; then : 12373 $as_echo_n "(cached) " >&6 12374else 12375 case $PKG_CONFIG in 12376 [\\/]* | ?:[\\/]*) 12377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12378 ;; 12379 *) 12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12381for as_dir in $PATH 12382do 12383 IFS=$as_save_IFS 12384 test -z "$as_dir" && as_dir=. 12385 for ac_exec_ext in '' $ac_executable_extensions; do 12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12389 break 2 12390 fi 12391done 12392 done 12393IFS=$as_save_IFS 12394 12395 ;; 12396esac 12397fi 12398PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12399if test -n "$PKG_CONFIG"; then 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12401$as_echo "$PKG_CONFIG" >&6; } 12402else 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12404$as_echo "no" >&6; } 12405fi 12406 12407 12408fi 12409if test -z "$ac_cv_path_PKG_CONFIG"; then 12410 ac_pt_PKG_CONFIG=$PKG_CONFIG 12411 # Extract the first word of "pkg-config", so it can be a program name with args. 12412set dummy pkg-config; ac_word=$2 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12414$as_echo_n "checking for $ac_word... " >&6; } 12415if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 case $ac_pt_PKG_CONFIG in 12419 [\\/]* | ?:[\\/]*) 12420 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12421 ;; 12422 *) 12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12424for as_dir in $PATH 12425do 12426 IFS=$as_save_IFS 12427 test -z "$as_dir" && as_dir=. 12428 for ac_exec_ext in '' $ac_executable_extensions; do 12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12432 break 2 12433 fi 12434done 12435 done 12436IFS=$as_save_IFS 12437 12438 ;; 12439esac 12440fi 12441ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12442if test -n "$ac_pt_PKG_CONFIG"; then 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12444$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12445else 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12447$as_echo "no" >&6; } 12448fi 12449 12450 if test "x$ac_pt_PKG_CONFIG" = x; then 12451 PKG_CONFIG="" 12452 else 12453 case $cross_compiling:$ac_tool_warned in 12454yes:) 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12457ac_tool_warned=yes ;; 12458esac 12459 PKG_CONFIG=$ac_pt_PKG_CONFIG 12460 fi 12461else 12462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12463fi 12464 12465fi 12466if test -n "$PKG_CONFIG"; then 12467 _pkg_min_version=0.9.0 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12469$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12472$as_echo "yes" >&6; } 12473 else 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12475$as_echo "no" >&6; } 12476 PKG_CONFIG="" 12477 fi 12478fi 12479if test "x$PKG_CONFIG" = "x"; then as_fn_error $? "You need to install pkg-config" "$LINENO" 5; fi 12480 12481# Checks for programs. 12482ac_ext=c 12483ac_cpp='$CPP $CPPFLAGS' 12484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12486ac_compiler_gnu=$ac_cv_c_compiler_gnu 12487if test -n "$ac_tool_prefix"; then 12488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12489set dummy ${ac_tool_prefix}gcc; ac_word=$2 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12491$as_echo_n "checking for $ac_word... " >&6; } 12492if ${ac_cv_prog_CC+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 if test -n "$CC"; then 12496 ac_cv_prog_CC="$CC" # Let the user override the test. 12497else 12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12499for as_dir in $PATH 12500do 12501 IFS=$as_save_IFS 12502 test -z "$as_dir" && as_dir=. 12503 for ac_exec_ext in '' $ac_executable_extensions; do 12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12505 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12507 break 2 12508 fi 12509done 12510 done 12511IFS=$as_save_IFS 12512 12513fi 12514fi 12515CC=$ac_cv_prog_CC 12516if test -n "$CC"; then 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12518$as_echo "$CC" >&6; } 12519else 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12521$as_echo "no" >&6; } 12522fi 12523 12524 12525fi 12526if test -z "$ac_cv_prog_CC"; then 12527 ac_ct_CC=$CC 12528 # Extract the first word of "gcc", so it can be a program name with args. 12529set dummy gcc; ac_word=$2 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12531$as_echo_n "checking for $ac_word... " >&6; } 12532if ${ac_cv_prog_ac_ct_CC+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 if test -n "$ac_ct_CC"; then 12536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12537else 12538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12539for as_dir in $PATH 12540do 12541 IFS=$as_save_IFS 12542 test -z "$as_dir" && as_dir=. 12543 for ac_exec_ext in '' $ac_executable_extensions; do 12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12545 ac_cv_prog_ac_ct_CC="gcc" 12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12547 break 2 12548 fi 12549done 12550 done 12551IFS=$as_save_IFS 12552 12553fi 12554fi 12555ac_ct_CC=$ac_cv_prog_ac_ct_CC 12556if test -n "$ac_ct_CC"; then 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12558$as_echo "$ac_ct_CC" >&6; } 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561$as_echo "no" >&6; } 12562fi 12563 12564 if test "x$ac_ct_CC" = x; then 12565 CC="" 12566 else 12567 case $cross_compiling:$ac_tool_warned in 12568yes:) 12569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12571ac_tool_warned=yes ;; 12572esac 12573 CC=$ac_ct_CC 12574 fi 12575else 12576 CC="$ac_cv_prog_CC" 12577fi 12578 12579if test -z "$CC"; then 12580 if test -n "$ac_tool_prefix"; then 12581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12582set dummy ${ac_tool_prefix}cc; ac_word=$2 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12584$as_echo_n "checking for $ac_word... " >&6; } 12585if ${ac_cv_prog_CC+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 if test -n "$CC"; then 12589 ac_cv_prog_CC="$CC" # Let the user override the test. 12590else 12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12592for as_dir in $PATH 12593do 12594 IFS=$as_save_IFS 12595 test -z "$as_dir" && as_dir=. 12596 for ac_exec_ext in '' $ac_executable_extensions; do 12597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12598 ac_cv_prog_CC="${ac_tool_prefix}cc" 12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12600 break 2 12601 fi 12602done 12603 done 12604IFS=$as_save_IFS 12605 12606fi 12607fi 12608CC=$ac_cv_prog_CC 12609if test -n "$CC"; then 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12611$as_echo "$CC" >&6; } 12612else 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614$as_echo "no" >&6; } 12615fi 12616 12617 12618 fi 12619fi 12620if test -z "$CC"; then 12621 # Extract the first word of "cc", so it can be a program name with args. 12622set dummy cc; ac_word=$2 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12624$as_echo_n "checking for $ac_word... " >&6; } 12625if ${ac_cv_prog_CC+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 if test -n "$CC"; then 12629 ac_cv_prog_CC="$CC" # Let the user override the test. 12630else 12631 ac_prog_rejected=no 12632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12633for as_dir in $PATH 12634do 12635 IFS=$as_save_IFS 12636 test -z "$as_dir" && as_dir=. 12637 for ac_exec_ext in '' $ac_executable_extensions; do 12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12640 ac_prog_rejected=yes 12641 continue 12642 fi 12643 ac_cv_prog_CC="cc" 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12645 break 2 12646 fi 12647done 12648 done 12649IFS=$as_save_IFS 12650 12651if test $ac_prog_rejected = yes; then 12652 # We found a bogon in the path, so make sure we never use it. 12653 set dummy $ac_cv_prog_CC 12654 shift 12655 if test $# != 0; then 12656 # We chose a different compiler from the bogus one. 12657 # However, it has the same basename, so the bogon will be chosen 12658 # first if we set CC to just the basename; use the full file name. 12659 shift 12660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12661 fi 12662fi 12663fi 12664fi 12665CC=$ac_cv_prog_CC 12666if test -n "$CC"; then 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12668$as_echo "$CC" >&6; } 12669else 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12671$as_echo "no" >&6; } 12672fi 12673 12674 12675fi 12676if test -z "$CC"; then 12677 if test -n "$ac_tool_prefix"; then 12678 for ac_prog in cl.exe 12679 do 12680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12681set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12683$as_echo_n "checking for $ac_word... " >&6; } 12684if ${ac_cv_prog_CC+:} false; then : 12685 $as_echo_n "(cached) " >&6 12686else 12687 if test -n "$CC"; then 12688 ac_cv_prog_CC="$CC" # Let the user override the test. 12689else 12690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12691for as_dir in $PATH 12692do 12693 IFS=$as_save_IFS 12694 test -z "$as_dir" && as_dir=. 12695 for ac_exec_ext in '' $ac_executable_extensions; do 12696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12699 break 2 12700 fi 12701done 12702 done 12703IFS=$as_save_IFS 12704 12705fi 12706fi 12707CC=$ac_cv_prog_CC 12708if test -n "$CC"; then 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12710$as_echo "$CC" >&6; } 12711else 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12713$as_echo "no" >&6; } 12714fi 12715 12716 12717 test -n "$CC" && break 12718 done 12719fi 12720if test -z "$CC"; then 12721 ac_ct_CC=$CC 12722 for ac_prog in cl.exe 12723do 12724 # Extract the first word of "$ac_prog", so it can be a program name with args. 12725set dummy $ac_prog; ac_word=$2 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12727$as_echo_n "checking for $ac_word... " >&6; } 12728if ${ac_cv_prog_ac_ct_CC+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 if test -n "$ac_ct_CC"; then 12732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12733else 12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12735for as_dir in $PATH 12736do 12737 IFS=$as_save_IFS 12738 test -z "$as_dir" && as_dir=. 12739 for ac_exec_ext in '' $ac_executable_extensions; do 12740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12741 ac_cv_prog_ac_ct_CC="$ac_prog" 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12743 break 2 12744 fi 12745done 12746 done 12747IFS=$as_save_IFS 12748 12749fi 12750fi 12751ac_ct_CC=$ac_cv_prog_ac_ct_CC 12752if test -n "$ac_ct_CC"; then 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12754$as_echo "$ac_ct_CC" >&6; } 12755else 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12757$as_echo "no" >&6; } 12758fi 12759 12760 12761 test -n "$ac_ct_CC" && break 12762done 12763 12764 if test "x$ac_ct_CC" = x; then 12765 CC="" 12766 else 12767 case $cross_compiling:$ac_tool_warned in 12768yes:) 12769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12771ac_tool_warned=yes ;; 12772esac 12773 CC=$ac_ct_CC 12774 fi 12775fi 12776 12777fi 12778 12779 12780test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12782as_fn_error $? "no acceptable C compiler found in \$PATH 12783See \`config.log' for more details" "$LINENO" 5; } 12784 12785# Provide some information about the compiler. 12786$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12787set X $ac_compile 12788ac_compiler=$2 12789for ac_option in --version -v -V -qversion; do 12790 { { ac_try="$ac_compiler $ac_option >&5" 12791case "(($ac_try" in 12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12793 *) ac_try_echo=$ac_try;; 12794esac 12795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12796$as_echo "$ac_try_echo"; } >&5 12797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12798 ac_status=$? 12799 if test -s conftest.err; then 12800 sed '10a\ 12801... rest of stderr output deleted ... 12802 10q' conftest.err >conftest.er1 12803 cat conftest.er1 >&5 12804 fi 12805 rm -f conftest.er1 conftest.err 12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12807 test $ac_status = 0; } 12808done 12809 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12811$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12812if ${ac_cv_c_compiler_gnu+:} false; then : 12813 $as_echo_n "(cached) " >&6 12814else 12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817 12818int 12819main () 12820{ 12821#ifndef __GNUC__ 12822 choke me 12823#endif 12824 12825 ; 12826 return 0; 12827} 12828_ACEOF 12829if ac_fn_c_try_compile "$LINENO"; then : 12830 ac_compiler_gnu=yes 12831else 12832 ac_compiler_gnu=no 12833fi 12834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12835ac_cv_c_compiler_gnu=$ac_compiler_gnu 12836 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12839$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12840if test $ac_compiler_gnu = yes; then 12841 GCC=yes 12842else 12843 GCC= 12844fi 12845ac_test_CFLAGS=${CFLAGS+set} 12846ac_save_CFLAGS=$CFLAGS 12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12848$as_echo_n "checking whether $CC accepts -g... " >&6; } 12849if ${ac_cv_prog_cc_g+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 ac_save_c_werror_flag=$ac_c_werror_flag 12853 ac_c_werror_flag=yes 12854 ac_cv_prog_cc_g=no 12855 CFLAGS="-g" 12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858 12859int 12860main () 12861{ 12862 12863 ; 12864 return 0; 12865} 12866_ACEOF 12867if ac_fn_c_try_compile "$LINENO"; then : 12868 ac_cv_prog_cc_g=yes 12869else 12870 CFLAGS="" 12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12872/* end confdefs.h. */ 12873 12874int 12875main () 12876{ 12877 12878 ; 12879 return 0; 12880} 12881_ACEOF 12882if ac_fn_c_try_compile "$LINENO"; then : 12883 12884else 12885 ac_c_werror_flag=$ac_save_c_werror_flag 12886 CFLAGS="-g" 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889 12890int 12891main () 12892{ 12893 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898if ac_fn_c_try_compile "$LINENO"; then : 12899 ac_cv_prog_cc_g=yes 12900fi 12901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12902fi 12903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12904fi 12905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12906 ac_c_werror_flag=$ac_save_c_werror_flag 12907fi 12908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12909$as_echo "$ac_cv_prog_cc_g" >&6; } 12910if test "$ac_test_CFLAGS" = set; then 12911 CFLAGS=$ac_save_CFLAGS 12912elif test $ac_cv_prog_cc_g = yes; then 12913 if test "$GCC" = yes; then 12914 CFLAGS="-g -O2" 12915 else 12916 CFLAGS="-g" 12917 fi 12918else 12919 if test "$GCC" = yes; then 12920 CFLAGS="-O2" 12921 else 12922 CFLAGS= 12923 fi 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12926$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12927if ${ac_cv_prog_cc_c89+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929else 12930 ac_cv_prog_cc_c89=no 12931ac_save_CC=$CC 12932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12933/* end confdefs.h. */ 12934#include <stdarg.h> 12935#include <stdio.h> 12936struct stat; 12937/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12938struct buf { int x; }; 12939FILE * (*rcsopen) (struct buf *, struct stat *, int); 12940static char *e (p, i) 12941 char **p; 12942 int i; 12943{ 12944 return p[i]; 12945} 12946static char *f (char * (*g) (char **, int), char **p, ...) 12947{ 12948 char *s; 12949 va_list v; 12950 va_start (v,p); 12951 s = g (p, va_arg (v,int)); 12952 va_end (v); 12953 return s; 12954} 12955 12956/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12957 function prototypes and stuff, but not '\xHH' hex character constants. 12958 These don't provoke an error unfortunately, instead are silently treated 12959 as 'x'. The following induces an error, until -std is added to get 12960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12961 array size at least. It's necessary to write '\x00'==0 to get something 12962 that's true only with -std. */ 12963int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12964 12965/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12966 inside strings and character constants. */ 12967#define FOO(x) 'x' 12968int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12969 12970int test (int i, double x); 12971struct s1 {int (*f) (int a);}; 12972struct s2 {int (*f) (double a);}; 12973int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12974int argc; 12975char **argv; 12976int 12977main () 12978{ 12979return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12985 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12986do 12987 CC="$ac_save_CC $ac_arg" 12988 if ac_fn_c_try_compile "$LINENO"; then : 12989 ac_cv_prog_cc_c89=$ac_arg 12990fi 12991rm -f core conftest.err conftest.$ac_objext 12992 test "x$ac_cv_prog_cc_c89" != "xno" && break 12993done 12994rm -f conftest.$ac_ext 12995CC=$ac_save_CC 12996 12997fi 12998# AC_CACHE_VAL 12999case "x$ac_cv_prog_cc_c89" in 13000 x) 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13002$as_echo "none needed" >&6; } ;; 13003 xno) 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13005$as_echo "unsupported" >&6; } ;; 13006 *) 13007 CC="$CC $ac_cv_prog_cc_c89" 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13009$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13010esac 13011if test "x$ac_cv_prog_cc_c89" != xno; then : 13012 13013fi 13014 13015ac_ext=c 13016ac_cpp='$CPP $CPPFLAGS' 13017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13019ac_compiler_gnu=$ac_cv_c_compiler_gnu 13020 13021ac_ext=c 13022ac_cpp='$CPP $CPPFLAGS' 13023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13025ac_compiler_gnu=$ac_cv_c_compiler_gnu 13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13027$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13028if ${am_cv_prog_cc_c_o+:} false; then : 13029 $as_echo_n "(cached) " >&6 13030else 13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13032/* end confdefs.h. */ 13033 13034int 13035main () 13036{ 13037 13038 ; 13039 return 0; 13040} 13041_ACEOF 13042 # Make sure it works both with $CC and with simple cc. 13043 # Following AC_PROG_CC_C_O, we do the test twice because some 13044 # compilers refuse to overwrite an existing .o file with -o, 13045 # though they will create one. 13046 am_cv_prog_cc_c_o=yes 13047 for am_i in 1 2; do 13048 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13049 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13050 ac_status=$? 13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13052 (exit $ac_status); } \ 13053 && test -f conftest2.$ac_objext; then 13054 : OK 13055 else 13056 am_cv_prog_cc_c_o=no 13057 break 13058 fi 13059 done 13060 rm -f core conftest* 13061 unset am_i 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13064$as_echo "$am_cv_prog_cc_c_o" >&6; } 13065if test "$am_cv_prog_cc_c_o" != yes; then 13066 # Losing compiler, so override with the script. 13067 # FIXME: It is wrong to rewrite CC. 13068 # But if we don't then we get into trouble of one sort or another. 13069 # A longer-term fix would be to have automake use am__CC in this case, 13070 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13071 CC="$am_aux_dir/compile $CC" 13072fi 13073ac_ext=c 13074ac_cpp='$CPP $CPPFLAGS' 13075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13077ac_compiler_gnu=$ac_cv_c_compiler_gnu 13078 13079 13080depcc="$CC" am_compiler_list= 13081 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13083$as_echo_n "checking dependency style of $depcc... " >&6; } 13084if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13085 $as_echo_n "(cached) " >&6 13086else 13087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13088 # We make a subdir and do the tests there. Otherwise we can end up 13089 # making bogus files that we don't know about and never remove. For 13090 # instance it was reported that on HP-UX the gcc test will end up 13091 # making a dummy file named 'D' -- because '-MD' means "put the output 13092 # in D". 13093 rm -rf conftest.dir 13094 mkdir conftest.dir 13095 # Copy depcomp to subdir because otherwise we won't find it if we're 13096 # using a relative directory. 13097 cp "$am_depcomp" conftest.dir 13098 cd conftest.dir 13099 # We will build objects and dependencies in a subdirectory because 13100 # it helps to detect inapplicable dependency modes. For instance 13101 # both Tru64's cc and ICC support -MD to output dependencies as a 13102 # side effect of compilation, but ICC will put the dependencies in 13103 # the current directory while Tru64 will put them in the object 13104 # directory. 13105 mkdir sub 13106 13107 am_cv_CC_dependencies_compiler_type=none 13108 if test "$am_compiler_list" = ""; then 13109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13110 fi 13111 am__universal=false 13112 case " $depcc " in #( 13113 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13114 esac 13115 13116 for depmode in $am_compiler_list; do 13117 # Setup a source with many dependencies, because some compilers 13118 # like to wrap large dependency lists on column 80 (with \), and 13119 # we should not choose a depcomp mode which is confused by this. 13120 # 13121 # We need to recreate these files for each test, as the compiler may 13122 # overwrite some of them when testing with obscure command lines. 13123 # This happens at least with the AIX C compiler. 13124 : > sub/conftest.c 13125 for i in 1 2 3 4 5 6; do 13126 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13127 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13128 # Solaris 10 /bin/sh. 13129 echo '/* dummy */' > sub/conftst$i.h 13130 done 13131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13132 13133 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13134 # mode. It turns out that the SunPro C++ compiler does not properly 13135 # handle '-M -o', and we need to detect this. Also, some Intel 13136 # versions had trouble with output in subdirs. 13137 am__obj=sub/conftest.${OBJEXT-o} 13138 am__minus_obj="-o $am__obj" 13139 case $depmode in 13140 gcc) 13141 # This depmode causes a compiler race in universal mode. 13142 test "$am__universal" = false || continue 13143 ;; 13144 nosideeffect) 13145 # After this tag, mechanisms are not by side-effect, so they'll 13146 # only be used when explicitly requested. 13147 if test "x$enable_dependency_tracking" = xyes; then 13148 continue 13149 else 13150 break 13151 fi 13152 ;; 13153 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13154 # This compiler won't grok '-c -o', but also, the minuso test has 13155 # not run yet. These depmodes are late enough in the game, and 13156 # so weak that their functioning should not be impacted. 13157 am__obj=conftest.${OBJEXT-o} 13158 am__minus_obj= 13159 ;; 13160 none) break ;; 13161 esac 13162 if depmode=$depmode \ 13163 source=sub/conftest.c object=$am__obj \ 13164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13166 >/dev/null 2>conftest.err && 13167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13171 # icc doesn't choke on unknown options, it will just issue warnings 13172 # or remarks (even with -Werror). So we grep stderr for any message 13173 # that says an option was ignored or not supported. 13174 # When given -MP, icc 7.0 and 7.1 complain thusly: 13175 # icc: Command line warning: ignoring option '-M'; no argument required 13176 # The diagnosis changed in icc 8.0: 13177 # icc: Command line remark: option '-MP' not supported 13178 if (grep 'ignoring option' conftest.err || 13179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13180 am_cv_CC_dependencies_compiler_type=$depmode 13181 break 13182 fi 13183 fi 13184 done 13185 13186 cd .. 13187 rm -rf conftest.dir 13188else 13189 am_cv_CC_dependencies_compiler_type=none 13190fi 13191 13192fi 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13196 13197 if 13198 test "x$enable_dependency_tracking" != xno \ 13199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13200 am__fastdepCC_TRUE= 13201 am__fastdepCC_FALSE='#' 13202else 13203 am__fastdepCC_TRUE='#' 13204 am__fastdepCC_FALSE= 13205fi 13206 13207 13208 13209 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13211$as_echo_n "checking for ANSI C header files... " >&6; } 13212if ${ac_cv_header_stdc+:} false; then : 13213 $as_echo_n "(cached) " >&6 13214else 13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13216/* end confdefs.h. */ 13217#include <stdlib.h> 13218#include <stdarg.h> 13219#include <string.h> 13220#include <float.h> 13221 13222int 13223main () 13224{ 13225 13226 ; 13227 return 0; 13228} 13229_ACEOF 13230if ac_fn_c_try_compile "$LINENO"; then : 13231 ac_cv_header_stdc=yes 13232else 13233 ac_cv_header_stdc=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236 13237if test $ac_cv_header_stdc = yes; then 13238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240/* end confdefs.h. */ 13241#include <string.h> 13242 13243_ACEOF 13244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13245 $EGREP "memchr" >/dev/null 2>&1; then : 13246 13247else 13248 ac_cv_header_stdc=no 13249fi 13250rm -f conftest* 13251 13252fi 13253 13254if test $ac_cv_header_stdc = yes; then 13255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258#include <stdlib.h> 13259 13260_ACEOF 13261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13262 $EGREP "free" >/dev/null 2>&1; then : 13263 13264else 13265 ac_cv_header_stdc=no 13266fi 13267rm -f conftest* 13268 13269fi 13270 13271if test $ac_cv_header_stdc = yes; then 13272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13273 if test "$cross_compiling" = yes; then : 13274 : 13275else 13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13277/* end confdefs.h. */ 13278#include <ctype.h> 13279#include <stdlib.h> 13280#if ((' ' & 0x0FF) == 0x020) 13281# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13282# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13283#else 13284# define ISLOWER(c) \ 13285 (('a' <= (c) && (c) <= 'i') \ 13286 || ('j' <= (c) && (c) <= 'r') \ 13287 || ('s' <= (c) && (c) <= 'z')) 13288# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13289#endif 13290 13291#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13292int 13293main () 13294{ 13295 int i; 13296 for (i = 0; i < 256; i++) 13297 if (XOR (islower (i), ISLOWER (i)) 13298 || toupper (i) != TOUPPER (i)) 13299 return 2; 13300 return 0; 13301} 13302_ACEOF 13303if ac_fn_c_try_run "$LINENO"; then : 13304 13305else 13306 ac_cv_header_stdc=no 13307fi 13308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13309 conftest.$ac_objext conftest.beam conftest.$ac_ext 13310fi 13311 13312fi 13313fi 13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13315$as_echo "$ac_cv_header_stdc" >&6; } 13316if test $ac_cv_header_stdc = yes; then 13317 13318$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13319 13320fi 13321 13322 13323SHAMROCK_EXPAND_LIBDIR 13324SHAMROCK_EXPAND_BINDIR 13325SHAMROCK_EXPAND_DATADIR 13326 13327# 13328# pkg-config 13329# 13330 13331 13332 13333 13334 13335 13336 13337if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13338 if test -n "$ac_tool_prefix"; then 13339 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13340set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13342$as_echo_n "checking for $ac_word... " >&6; } 13343if ${ac_cv_path_PKG_CONFIG+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 case $PKG_CONFIG in 13347 [\\/]* | ?:[\\/]*) 13348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13349 ;; 13350 *) 13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13352for as_dir in $PATH 13353do 13354 IFS=$as_save_IFS 13355 test -z "$as_dir" && as_dir=. 13356 for ac_exec_ext in '' $ac_executable_extensions; do 13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13360 break 2 13361 fi 13362done 13363 done 13364IFS=$as_save_IFS 13365 13366 ;; 13367esac 13368fi 13369PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13370if test -n "$PKG_CONFIG"; then 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13372$as_echo "$PKG_CONFIG" >&6; } 13373else 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13375$as_echo "no" >&6; } 13376fi 13377 13378 13379fi 13380if test -z "$ac_cv_path_PKG_CONFIG"; then 13381 ac_pt_PKG_CONFIG=$PKG_CONFIG 13382 # Extract the first word of "pkg-config", so it can be a program name with args. 13383set dummy pkg-config; ac_word=$2 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13385$as_echo_n "checking for $ac_word... " >&6; } 13386if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 case $ac_pt_PKG_CONFIG in 13390 [\\/]* | ?:[\\/]*) 13391 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13392 ;; 13393 *) 13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13395for as_dir in $PATH 13396do 13397 IFS=$as_save_IFS 13398 test -z "$as_dir" && as_dir=. 13399 for ac_exec_ext in '' $ac_executable_extensions; do 13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13401 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13403 break 2 13404 fi 13405done 13406 done 13407IFS=$as_save_IFS 13408 13409 ;; 13410esac 13411fi 13412ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13413if test -n "$ac_pt_PKG_CONFIG"; then 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13415$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13416else 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13418$as_echo "no" >&6; } 13419fi 13420 13421 if test "x$ac_pt_PKG_CONFIG" = x; then 13422 PKG_CONFIG="" 13423 else 13424 case $cross_compiling:$ac_tool_warned in 13425yes:) 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13428ac_tool_warned=yes ;; 13429esac 13430 PKG_CONFIG=$ac_pt_PKG_CONFIG 13431 fi 13432else 13433 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13434fi 13435 13436fi 13437if test -n "$PKG_CONFIG"; then 13438 _pkg_min_version=0.9.0 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13440$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13441 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13443$as_echo "yes" >&6; } 13444 else 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13446$as_echo "no" >&6; } 13447 PKG_CONFIG="" 13448 fi 13449fi 13450 13451# 13452# glib 13453# 13454 13455pkg_failed=no 13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 13457$as_echo_n "checking for GLIB... " >&6; } 13458 13459if test -n "$GLIB_CFLAGS"; then 13460 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 13461 elif test -n "$PKG_CONFIG"; then 13462 if test -n "$PKG_CONFIG" && \ 13463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0\""; } >&5 13464 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0") 2>&5 13465 ac_status=$? 13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13467 test $ac_status = 0; }; then 13468 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0" 2>/dev/null` 13469 test "x$?" != "x0" && pkg_failed=yes 13470else 13471 pkg_failed=yes 13472fi 13473 else 13474 pkg_failed=untried 13475fi 13476if test -n "$GLIB_LIBS"; then 13477 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 13478 elif test -n "$PKG_CONFIG"; then 13479 if test -n "$PKG_CONFIG" && \ 13480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0\""; } >&5 13481 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0") 2>&5 13482 ac_status=$? 13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13484 test $ac_status = 0; }; then 13485 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0" 2>/dev/null` 13486 test "x$?" != "x0" && pkg_failed=yes 13487else 13488 pkg_failed=yes 13489fi 13490 else 13491 pkg_failed=untried 13492fi 13493 13494 13495 13496if test $pkg_failed = yes; then 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13498$as_echo "no" >&6; } 13499 13500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13501 _pkg_short_errors_supported=yes 13502else 13503 _pkg_short_errors_supported=no 13504fi 13505 if test $_pkg_short_errors_supported = yes; then 13506 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0" 2>&1` 13507 else 13508 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0" 2>&1` 13509 fi 13510 # Put the nasty error message in config.log where it belongs 13511 echo "$GLIB_PKG_ERRORS" >&5 13512 13513 as_fn_error $? "Package requirements (glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0) were not met: 13514 13515$GLIB_PKG_ERRORS 13516 13517Consider adjusting the PKG_CONFIG_PATH environment variable if you 13518installed software in a non-standard prefix. 13519 13520Alternatively, you may set the environment variables GLIB_CFLAGS 13521and GLIB_LIBS to avoid the need to call pkg-config. 13522See the pkg-config man page for more details." "$LINENO" 5 13523elif test $pkg_failed = untried; then 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13525$as_echo "no" >&6; } 13526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13528as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13529is in your PATH or set the PKG_CONFIG environment variable to the full 13530path to pkg-config. 13531 13532Alternatively, you may set the environment variables GLIB_CFLAGS 13533and GLIB_LIBS to avoid the need to call pkg-config. 13534See the pkg-config man page for more details. 13535 13536To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13537See \`config.log' for more details" "$LINENO" 5; } 13538else 13539 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 13540 GLIB_LIBS=$pkg_cv_GLIB_LIBS 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13542$as_echo "yes" >&6; } 13543 13544fi 13545 13546# 13547# gdbus-codegen 13548# 13549# Extract the first word of "gdbus-codegen", so it can be a program name with args. 13550set dummy gdbus-codegen; ac_word=$2 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13552$as_echo_n "checking for $ac_word... " >&6; } 13553if ${ac_cv_path_GDBUS_CODEGEN+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 case $GDBUS_CODEGEN in 13557 [\\/]* | ?:[\\/]*) 13558 ac_cv_path_GDBUS_CODEGEN="$GDBUS_CODEGEN" # Let the user override the test with a path. 13559 ;; 13560 *) 13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13562for as_dir in $PATH 13563do 13564 IFS=$as_save_IFS 13565 test -z "$as_dir" && as_dir=. 13566 for ac_exec_ext in '' $ac_executable_extensions; do 13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13568 ac_cv_path_GDBUS_CODEGEN="$as_dir/$ac_word$ac_exec_ext" 13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13570 break 2 13571 fi 13572done 13573 done 13574IFS=$as_save_IFS 13575 13576 ;; 13577esac 13578fi 13579GDBUS_CODEGEN=$ac_cv_path_GDBUS_CODEGEN 13580if test -n "$GDBUS_CODEGEN"; then 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDBUS_CODEGEN" >&5 13582$as_echo "$GDBUS_CODEGEN" >&6; } 13583else 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13585$as_echo "no" >&6; } 13586fi 13587 13588 13589if test -z "$GDBUS_CODEGEN"; then as_fn_error $? "gdbus-codegen is required but was not found" "$LINENO" 5; fi 13590 13591# 13592# libwnck 13593# 13594 13595pkg_failed=no 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WNCK" >&5 13597$as_echo_n "checking for WNCK... " >&6; } 13598 13599if test -n "$WNCK_CFLAGS"; then 13600 pkg_cv_WNCK_CFLAGS="$WNCK_CFLAGS" 13601 elif test -n "$PKG_CONFIG"; then 13602 if test -n "$PKG_CONFIG" && \ 13603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwnck-3.0 >= 3.4.7\""; } >&5 13604 ($PKG_CONFIG --exists --print-errors "libwnck-3.0 >= 3.4.7") 2>&5 13605 ac_status=$? 13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13607 test $ac_status = 0; }; then 13608 pkg_cv_WNCK_CFLAGS=`$PKG_CONFIG --cflags "libwnck-3.0 >= 3.4.7" 2>/dev/null` 13609 test "x$?" != "x0" && pkg_failed=yes 13610else 13611 pkg_failed=yes 13612fi 13613 else 13614 pkg_failed=untried 13615fi 13616if test -n "$WNCK_LIBS"; then 13617 pkg_cv_WNCK_LIBS="$WNCK_LIBS" 13618 elif test -n "$PKG_CONFIG"; then 13619 if test -n "$PKG_CONFIG" && \ 13620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwnck-3.0 >= 3.4.7\""; } >&5 13621 ($PKG_CONFIG --exists --print-errors "libwnck-3.0 >= 3.4.7") 2>&5 13622 ac_status=$? 13623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13624 test $ac_status = 0; }; then 13625 pkg_cv_WNCK_LIBS=`$PKG_CONFIG --libs "libwnck-3.0 >= 3.4.7" 2>/dev/null` 13626 test "x$?" != "x0" && pkg_failed=yes 13627else 13628 pkg_failed=yes 13629fi 13630 else 13631 pkg_failed=untried 13632fi 13633 13634 13635 13636if test $pkg_failed = yes; then 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13638$as_echo "no" >&6; } 13639 13640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13641 _pkg_short_errors_supported=yes 13642else 13643 _pkg_short_errors_supported=no 13644fi 13645 if test $_pkg_short_errors_supported = yes; then 13646 WNCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwnck-3.0 >= 3.4.7" 2>&1` 13647 else 13648 WNCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwnck-3.0 >= 3.4.7" 2>&1` 13649 fi 13650 # Put the nasty error message in config.log where it belongs 13651 echo "$WNCK_PKG_ERRORS" >&5 13652 13653 as_fn_error $? "Package requirements (libwnck-3.0 >= 3.4.7) were not met: 13654 13655$WNCK_PKG_ERRORS 13656 13657Consider adjusting the PKG_CONFIG_PATH environment variable if you 13658installed software in a non-standard prefix. 13659 13660Alternatively, you may set the environment variables WNCK_CFLAGS 13661and WNCK_LIBS to avoid the need to call pkg-config. 13662See the pkg-config man page for more details." "$LINENO" 5 13663elif test $pkg_failed = untried; then 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13665$as_echo "no" >&6; } 13666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13668as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13669is in your PATH or set the PKG_CONFIG environment variable to the full 13670path to pkg-config. 13671 13672Alternatively, you may set the environment variables WNCK_CFLAGS 13673and WNCK_LIBS to avoid the need to call pkg-config. 13674See the pkg-config man page for more details. 13675 13676To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13677See \`config.log' for more details" "$LINENO" 5; } 13678else 13679 WNCK_CFLAGS=$pkg_cv_WNCK_CFLAGS 13680 WNCK_LIBS=$pkg_cv_WNCK_LIBS 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13682$as_echo "yes" >&6; } 13683 13684fi 13685 13686# 13687# libgtop 13688# 13689 13690pkg_failed=no 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5 13692$as_echo_n "checking for GTOP... " >&6; } 13693 13694if test -n "$GTOP_CFLAGS"; then 13695 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS" 13696 elif test -n "$PKG_CONFIG"; then 13697 if test -n "$PKG_CONFIG" && \ 13698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5 13699 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5 13700 ac_status=$? 13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13702 test $ac_status = 0; }; then 13703 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null` 13704 test "x$?" != "x0" && pkg_failed=yes 13705else 13706 pkg_failed=yes 13707fi 13708 else 13709 pkg_failed=untried 13710fi 13711if test -n "$GTOP_LIBS"; then 13712 pkg_cv_GTOP_LIBS="$GTOP_LIBS" 13713 elif test -n "$PKG_CONFIG"; then 13714 if test -n "$PKG_CONFIG" && \ 13715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5 13716 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5 13717 ac_status=$? 13718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13719 test $ac_status = 0; }; then 13720 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null` 13721 test "x$?" != "x0" && pkg_failed=yes 13722else 13723 pkg_failed=yes 13724fi 13725 else 13726 pkg_failed=untried 13727fi 13728 13729 13730 13731if test $pkg_failed = yes; then 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13733$as_echo "no" >&6; } 13734 13735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13736 _pkg_short_errors_supported=yes 13737else 13738 _pkg_short_errors_supported=no 13739fi 13740 if test $_pkg_short_errors_supported = yes; then 13741 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1` 13742 else 13743 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1` 13744 fi 13745 # Put the nasty error message in config.log where it belongs 13746 echo "$GTOP_PKG_ERRORS" >&5 13747 13748 as_fn_error $? "Package requirements (libgtop-2.0) were not met: 13749 13750$GTOP_PKG_ERRORS 13751 13752Consider adjusting the PKG_CONFIG_PATH environment variable if you 13753installed software in a non-standard prefix. 13754 13755Alternatively, you may set the environment variables GTOP_CFLAGS 13756and GTOP_LIBS to avoid the need to call pkg-config. 13757See the pkg-config man page for more details." "$LINENO" 5 13758elif test $pkg_failed = untried; then 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13760$as_echo "no" >&6; } 13761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13763as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13764is in your PATH or set the PKG_CONFIG environment variable to the full 13765path to pkg-config. 13766 13767Alternatively, you may set the environment variables GTOP_CFLAGS 13768and GTOP_LIBS to avoid the need to call pkg-config. 13769See the pkg-config man page for more details. 13770 13771To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13772See \`config.log' for more details" "$LINENO" 5; } 13773else 13774 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS 13775 GTOP_LIBS=$pkg_cv_GTOP_LIBS 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13777$as_echo "yes" >&6; } 13778 13779fi 13780 13781# 13782# libsn 13783# 13784 13785pkg_failed=no 13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SN" >&5 13787$as_echo_n "checking for SN... " >&6; } 13788 13789if test -n "$SN_CFLAGS"; then 13790 pkg_cv_SN_CFLAGS="$SN_CFLAGS" 13791 elif test -n "$PKG_CONFIG"; then 13792 if test -n "$PKG_CONFIG" && \ 13793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0\""; } >&5 13794 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0") 2>&5 13795 ac_status=$? 13796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13797 test $ac_status = 0; }; then 13798 pkg_cv_SN_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0" 2>/dev/null` 13799 test "x$?" != "x0" && pkg_failed=yes 13800else 13801 pkg_failed=yes 13802fi 13803 else 13804 pkg_failed=untried 13805fi 13806if test -n "$SN_LIBS"; then 13807 pkg_cv_SN_LIBS="$SN_LIBS" 13808 elif test -n "$PKG_CONFIG"; then 13809 if test -n "$PKG_CONFIG" && \ 13810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0\""; } >&5 13811 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0") 2>&5 13812 ac_status=$? 13813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13814 test $ac_status = 0; }; then 13815 pkg_cv_SN_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0" 2>/dev/null` 13816 test "x$?" != "x0" && pkg_failed=yes 13817else 13818 pkg_failed=yes 13819fi 13820 else 13821 pkg_failed=untried 13822fi 13823 13824 13825 13826if test $pkg_failed = yes; then 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13828$as_echo "no" >&6; } 13829 13830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13831 _pkg_short_errors_supported=yes 13832else 13833 _pkg_short_errors_supported=no 13834fi 13835 if test $_pkg_short_errors_supported = yes; then 13836 SN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libstartup-notification-1.0" 2>&1` 13837 else 13838 SN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libstartup-notification-1.0" 2>&1` 13839 fi 13840 # Put the nasty error message in config.log where it belongs 13841 echo "$SN_PKG_ERRORS" >&5 13842 13843 as_fn_error $? "Package requirements (libstartup-notification-1.0) were not met: 13844 13845$SN_PKG_ERRORS 13846 13847Consider adjusting the PKG_CONFIG_PATH environment variable if you 13848installed software in a non-standard prefix. 13849 13850Alternatively, you may set the environment variables SN_CFLAGS 13851and SN_LIBS to avoid the need to call pkg-config. 13852See the pkg-config man page for more details." "$LINENO" 5 13853elif test $pkg_failed = untried; then 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13855$as_echo "no" >&6; } 13856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13858as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13859is in your PATH or set the PKG_CONFIG environment variable to the full 13860path to pkg-config. 13861 13862Alternatively, you may set the environment variables SN_CFLAGS 13863and SN_LIBS to avoid the need to call pkg-config. 13864See the pkg-config man page for more details. 13865 13866To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13867See \`config.log' for more details" "$LINENO" 5; } 13868else 13869 SN_CFLAGS=$pkg_cv_SN_CFLAGS 13870 SN_LIBS=$pkg_cv_SN_LIBS 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13872$as_echo "yes" >&6; } 13873 13874fi 13875 13876# 13877# x11 13878# 13879 13880pkg_failed=no 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 13882$as_echo_n "checking for X... " >&6; } 13883 13884if test -n "$X_CFLAGS"; then 13885 pkg_cv_X_CFLAGS="$X_CFLAGS" 13886 elif test -n "$PKG_CONFIG"; then 13887 if test -n "$PKG_CONFIG" && \ 13888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 13889 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 13890 ac_status=$? 13891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13892 test $ac_status = 0; }; then 13893 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 13894 test "x$?" != "x0" && pkg_failed=yes 13895else 13896 pkg_failed=yes 13897fi 13898 else 13899 pkg_failed=untried 13900fi 13901if test -n "$X_LIBS"; then 13902 pkg_cv_X_LIBS="$X_LIBS" 13903 elif test -n "$PKG_CONFIG"; then 13904 if test -n "$PKG_CONFIG" && \ 13905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 13906 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 13907 ac_status=$? 13908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13909 test $ac_status = 0; }; then 13910 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 13911 test "x$?" != "x0" && pkg_failed=yes 13912else 13913 pkg_failed=yes 13914fi 13915 else 13916 pkg_failed=untried 13917fi 13918 13919 13920 13921if test $pkg_failed = yes; then 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13923$as_echo "no" >&6; } 13924 13925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13926 _pkg_short_errors_supported=yes 13927else 13928 _pkg_short_errors_supported=no 13929fi 13930 if test $_pkg_short_errors_supported = yes; then 13931 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 13932 else 13933 X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 13934 fi 13935 # Put the nasty error message in config.log where it belongs 13936 echo "$X_PKG_ERRORS" >&5 13937 13938 as_fn_error $? "Package requirements (x11) were not met: 13939 13940$X_PKG_ERRORS 13941 13942Consider adjusting the PKG_CONFIG_PATH environment variable if you 13943installed software in a non-standard prefix. 13944 13945Alternatively, you may set the environment variables X_CFLAGS 13946and X_LIBS to avoid the need to call pkg-config. 13947See the pkg-config man page for more details." "$LINENO" 5 13948elif test $pkg_failed = untried; then 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13950$as_echo "no" >&6; } 13951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13953as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13954is in your PATH or set the PKG_CONFIG environment variable to the full 13955path to pkg-config. 13956 13957Alternatively, you may set the environment variables X_CFLAGS 13958and X_LIBS to avoid the need to call pkg-config. 13959See the pkg-config man page for more details. 13960 13961To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13962See \`config.log' for more details" "$LINENO" 5; } 13963else 13964 X_CFLAGS=$pkg_cv_X_CFLAGS 13965 X_LIBS=$pkg_cv_X_LIBS 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13967$as_echo "yes" >&6; } 13968 13969fi 13970 13971# 13972# DbusMenu 13973# 13974# Check whether --enable-export-actions-menu was given. 13975if test "${enable_export_actions_menu+set}" = set; then : 13976 enableval=$enable_export_actions_menu; 13977else 13978 enable_export_actions_menu=no 13979fi 13980 13981 13982 if test "x$enable_export_actions_menu" != "xno"; then 13983 EXPORT_ACTIONS_MENU_TRUE= 13984 EXPORT_ACTIONS_MENU_FALSE='#' 13985else 13986 EXPORT_ACTIONS_MENU_TRUE='#' 13987 EXPORT_ACTIONS_MENU_FALSE= 13988fi 13989 13990 13991if test "x$enable_export_actions_menu" = "xyes"; then 13992 13993pkg_failed=no 13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENU" >&5 13995$as_echo_n "checking for DBUSMENU... " >&6; } 13996 13997if test -n "$DBUSMENU_CFLAGS"; then 13998 pkg_cv_DBUSMENU_CFLAGS="$DBUSMENU_CFLAGS" 13999 elif test -n "$PKG_CONFIG"; then 14000 if test -n "$PKG_CONFIG" && \ 14001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbusmenu-glib-0.4, dbusmenu-gtk3-0.4\""; } >&5 14002 ($PKG_CONFIG --exists --print-errors "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4") 2>&5 14003 ac_status=$? 14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14005 test $ac_status = 0; }; then 14006 pkg_cv_DBUSMENU_CFLAGS=`$PKG_CONFIG --cflags "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4" 2>/dev/null` 14007 test "x$?" != "x0" && pkg_failed=yes 14008else 14009 pkg_failed=yes 14010fi 14011 else 14012 pkg_failed=untried 14013fi 14014if test -n "$DBUSMENU_LIBS"; then 14015 pkg_cv_DBUSMENU_LIBS="$DBUSMENU_LIBS" 14016 elif test -n "$PKG_CONFIG"; then 14017 if test -n "$PKG_CONFIG" && \ 14018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbusmenu-glib-0.4, dbusmenu-gtk3-0.4\""; } >&5 14019 ($PKG_CONFIG --exists --print-errors "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4") 2>&5 14020 ac_status=$? 14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14022 test $ac_status = 0; }; then 14023 pkg_cv_DBUSMENU_LIBS=`$PKG_CONFIG --libs "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4" 2>/dev/null` 14024 test "x$?" != "x0" && pkg_failed=yes 14025else 14026 pkg_failed=yes 14027fi 14028 else 14029 pkg_failed=untried 14030fi 14031 14032 14033 14034if test $pkg_failed = yes; then 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036$as_echo "no" >&6; } 14037 14038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14039 _pkg_short_errors_supported=yes 14040else 14041 _pkg_short_errors_supported=no 14042fi 14043 if test $_pkg_short_errors_supported = yes; then 14044 DBUSMENU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4" 2>&1` 14045 else 14046 DBUSMENU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbusmenu-glib-0.4, dbusmenu-gtk3-0.4" 2>&1` 14047 fi 14048 # Put the nasty error message in config.log where it belongs 14049 echo "$DBUSMENU_PKG_ERRORS" >&5 14050 14051 as_fn_error $? "Package requirements (dbusmenu-glib-0.4, dbusmenu-gtk3-0.4) were not met: 14052 14053$DBUSMENU_PKG_ERRORS 14054 14055Consider adjusting the PKG_CONFIG_PATH environment variable if you 14056installed software in a non-standard prefix. 14057 14058Alternatively, you may set the environment variables DBUSMENU_CFLAGS 14059and DBUSMENU_LIBS to avoid the need to call pkg-config. 14060See the pkg-config man page for more details." "$LINENO" 5 14061elif test $pkg_failed = untried; then 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14063$as_echo "no" >&6; } 14064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14066as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14067is in your PATH or set the PKG_CONFIG environment variable to the full 14068path to pkg-config. 14069 14070Alternatively, you may set the environment variables DBUSMENU_CFLAGS 14071and DBUSMENU_LIBS to avoid the need to call pkg-config. 14072See the pkg-config man page for more details. 14073 14074To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14075See \`config.log' for more details" "$LINENO" 5; } 14076else 14077 DBUSMENU_CFLAGS=$pkg_cv_DBUSMENU_CFLAGS 14078 DBUSMENU_LIBS=$pkg_cv_DBUSMENU_LIBS 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14080$as_echo "yes" >&6; } 14081 14082fi 14083fi 14084 14085########################### 14086# GObject Introspection 14087########################### 14088 14089 14090 14091 14092 # Check whether --enable-introspection was given. 14093if test "${enable_introspection+set}" = set; then : 14094 enableval=$enable_introspection; 14095else 14096 enable_introspection=auto 14097fi 14098 14099 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 14101$as_echo_n "checking for gobject-introspection... " >&6; } 14102 14103 case $enable_introspection in #( 14104 no) : 14105 found_introspection="no (disabled, use --enable-introspection to enable)" 14106 ;; #( 14107 yes) : 14108 if test -n "$PKG_CONFIG" && \ 14109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 14110 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 14111 ac_status=$? 14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14113 test $ac_status = 0; }; then 14114 : 14115else 14116 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 14117fi 14118 if test -n "$PKG_CONFIG" && \ 14119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.10.2\""; } >&5 14120 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.10.2") 2>&5 14121 ac_status=$? 14122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14123 test $ac_status = 0; }; then 14124 found_introspection=yes 14125else 14126 as_fn_error $? "You need to have gobject-introspection >= 0.10.2 installed to build bamf" "$LINENO" 5 14127fi 14128 ;; #( 14129 auto) : 14130 if test -n "$PKG_CONFIG" && \ 14131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.10.2\""; } >&5 14132 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.10.2") 2>&5 14133 ac_status=$? 14134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14135 test $ac_status = 0; }; then 14136 found_introspection=yes 14137else 14138 found_introspection=no 14139fi 14140 enable_introspection=$found_introspection 14141 ;; #( 14142 *) : 14143 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 14144 ;; 14145esac 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 14147$as_echo "$found_introspection" >&6; } 14148 14149 INTROSPECTION_SCANNER= 14150 INTROSPECTION_COMPILER= 14151 INTROSPECTION_GENERATE= 14152 INTROSPECTION_GIRDIR= 14153 INTROSPECTION_TYPELIBDIR= 14154 if test "x$found_introspection" = "xyes"; then 14155 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 14156 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 14157 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 14158 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 14159 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 14160 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 14161 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 14162 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 14163 fi 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 if test "x$found_introspection" = "xyes"; then 14174 HAVE_INTROSPECTION_TRUE= 14175 HAVE_INTROSPECTION_FALSE='#' 14176else 14177 HAVE_INTROSPECTION_TRUE='#' 14178 HAVE_INTROSPECTION_FALSE= 14179fi 14180 14181 14182 14183 14184########################### 14185# Vala API Generation 14186########################### 14187 14188if test "$enable_introspection" = "yes"; then 14189 # Extract the first word of "vapigen", so it can be a program name with args. 14190set dummy vapigen; ac_word=$2 14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14192$as_echo_n "checking for $ac_word... " >&6; } 14193if ${ac_cv_path_VALA_API_GEN+:} false; then : 14194 $as_echo_n "(cached) " >&6 14195else 14196 case $VALA_API_GEN in 14197 [\\/]* | ?:[\\/]*) 14198 ac_cv_path_VALA_API_GEN="$VALA_API_GEN" # Let the user override the test with a path. 14199 ;; 14200 *) 14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14202for as_dir in $PATH 14203do 14204 IFS=$as_save_IFS 14205 test -z "$as_dir" && as_dir=. 14206 for ac_exec_ext in '' $ac_executable_extensions; do 14207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14208 ac_cv_path_VALA_API_GEN="$as_dir/$ac_word$ac_exec_ext" 14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14210 break 2 14211 fi 14212done 14213 done 14214IFS=$as_save_IFS 14215 14216 ;; 14217esac 14218fi 14219VALA_API_GEN=$ac_cv_path_VALA_API_GEN 14220if test -n "$VALA_API_GEN"; then 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALA_API_GEN" >&5 14222$as_echo "$VALA_API_GEN" >&6; } 14223else 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14225$as_echo "no" >&6; } 14226fi 14227 14228 14229 if test -z "$VALA_API_GEN"; then 14230 as_fn_error $? "vapigen is needed to build introspection" "$LINENO" 5 14231 HAVE_INTROSPECTION=0 14232 enable_introspection="no" 14233 fi 14234fi 14235 14236########################### 14237# GTK-DOC 14238########################### 14239 14240 14241 14242 gtk_doc_requires="gtk-doc >= 1.0" 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 14244$as_echo_n "checking for gtk-doc... " >&6; } 14245 if test -n "$PKG_CONFIG" && \ 14246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 14247 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 14248 ac_status=$? 14249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14250 test $ac_status = 0; }; then 14251 have_gtk_doc=yes 14252else 14253 have_gtk_doc=no 14254fi 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 14256$as_echo "$have_gtk_doc" >&6; } 14257 14258 if test "$have_gtk_doc" = "no"; then 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 14260 You will not be able to create source packages with 'make dist' 14261 because $gtk_doc_requires is not found." >&5 14262$as_echo "$as_me: WARNING: 14263 You will not be able to create source packages with 'make dist' 14264 because $gtk_doc_requires is not found." >&2;} 14265 fi 14266 14267 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 14268set dummy gtkdoc-check; ac_word=$2 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14270$as_echo_n "checking for $ac_word... " >&6; } 14271if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 14272 $as_echo_n "(cached) " >&6 14273else 14274 if test -n "$GTKDOC_CHECK"; then 14275 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 14276else 14277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14278for as_dir in $PATH 14279do 14280 IFS=$as_save_IFS 14281 test -z "$as_dir" && as_dir=. 14282 for ac_exec_ext in '' $ac_executable_extensions; do 14283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14284 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 14285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14286 break 2 14287 fi 14288done 14289 done 14290IFS=$as_save_IFS 14291 14292fi 14293fi 14294GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 14295if test -n "$GTKDOC_CHECK"; then 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 14297$as_echo "$GTKDOC_CHECK" >&6; } 14298else 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14300$as_echo "no" >&6; } 14301fi 14302 14303 14304 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 14305set dummy gtkdoc-check; ac_word=$2 14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14307$as_echo_n "checking for $ac_word... " >&6; } 14308if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 14309 $as_echo_n "(cached) " >&6 14310else 14311 case $GTKDOC_CHECK_PATH in 14312 [\\/]* | ?:[\\/]*) 14313 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 14314 ;; 14315 *) 14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14317for as_dir in $PATH 14318do 14319 IFS=$as_save_IFS 14320 test -z "$as_dir" && as_dir=. 14321 for ac_exec_ext in '' $ac_executable_extensions; do 14322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14323 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 14324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14325 break 2 14326 fi 14327done 14328 done 14329IFS=$as_save_IFS 14330 14331 ;; 14332esac 14333fi 14334GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 14335if test -n "$GTKDOC_CHECK_PATH"; then 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 14337$as_echo "$GTKDOC_CHECK_PATH" >&6; } 14338else 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14340$as_echo "no" >&6; } 14341fi 14342 14343 14344 for ac_prog in gtkdoc-rebase 14345do 14346 # Extract the first word of "$ac_prog", so it can be a program name with args. 14347set dummy $ac_prog; ac_word=$2 14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14349$as_echo_n "checking for $ac_word... " >&6; } 14350if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 14351 $as_echo_n "(cached) " >&6 14352else 14353 case $GTKDOC_REBASE in 14354 [\\/]* | ?:[\\/]*) 14355 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 14356 ;; 14357 *) 14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14359for as_dir in $PATH 14360do 14361 IFS=$as_save_IFS 14362 test -z "$as_dir" && as_dir=. 14363 for ac_exec_ext in '' $ac_executable_extensions; do 14364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14365 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14367 break 2 14368 fi 14369done 14370 done 14371IFS=$as_save_IFS 14372 14373 ;; 14374esac 14375fi 14376GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 14377if test -n "$GTKDOC_REBASE"; then 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 14379$as_echo "$GTKDOC_REBASE" >&6; } 14380else 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14382$as_echo "no" >&6; } 14383fi 14384 14385 14386 test -n "$GTKDOC_REBASE" && break 14387done 14388test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 14389 14390 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 14391set dummy gtkdoc-mkpdf; ac_word=$2 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14393$as_echo_n "checking for $ac_word... " >&6; } 14394if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 case $GTKDOC_MKPDF in 14398 [\\/]* | ?:[\\/]*) 14399 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 14400 ;; 14401 *) 14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14403for as_dir in $PATH 14404do 14405 IFS=$as_save_IFS 14406 test -z "$as_dir" && as_dir=. 14407 for ac_exec_ext in '' $ac_executable_extensions; do 14408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14409 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 14410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14411 break 2 14412 fi 14413done 14414 done 14415IFS=$as_save_IFS 14416 14417 ;; 14418esac 14419fi 14420GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 14421if test -n "$GTKDOC_MKPDF"; then 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 14423$as_echo "$GTKDOC_MKPDF" >&6; } 14424else 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14426$as_echo "no" >&6; } 14427fi 14428 14429 14430 14431 14432# Check whether --with-html-dir was given. 14433if test "${with_html_dir+set}" = set; then : 14434 withval=$with_html_dir; 14435else 14436 with_html_dir='${datadir}/gtk-doc/html' 14437fi 14438 14439 HTML_DIR="$with_html_dir" 14440 14441 14442 # Check whether --enable-gtk-doc was given. 14443if test "${enable_gtk_doc+set}" = set; then : 14444 enableval=$enable_gtk_doc; 14445else 14446 enable_gtk_doc=no 14447fi 14448 14449 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 14451$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 14453$as_echo "$enable_gtk_doc" >&6; } 14454 14455 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 14456 as_fn_error $? " 14457 You must have $gtk_doc_requires installed to build documentation for 14458 $PACKAGE_NAME. Please install gtk-doc or disable building the 14459 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 14460 fi 14461 14462 if test "x$PACKAGE_NAME" != "xglib"; then 14463 14464pkg_failed=no 14465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 14466$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 14467 14468if test -n "$GTKDOC_DEPS_CFLAGS"; then 14469 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 14470 elif test -n "$PKG_CONFIG"; then 14471 if test -n "$PKG_CONFIG" && \ 14472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 14473 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 14474 ac_status=$? 14475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14476 test $ac_status = 0; }; then 14477 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 14478 test "x$?" != "x0" && pkg_failed=yes 14479else 14480 pkg_failed=yes 14481fi 14482 else 14483 pkg_failed=untried 14484fi 14485if test -n "$GTKDOC_DEPS_LIBS"; then 14486 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 14487 elif test -n "$PKG_CONFIG"; then 14488 if test -n "$PKG_CONFIG" && \ 14489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 14490 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 14491 ac_status=$? 14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14493 test $ac_status = 0; }; then 14494 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 14495 test "x$?" != "x0" && pkg_failed=yes 14496else 14497 pkg_failed=yes 14498fi 14499 else 14500 pkg_failed=untried 14501fi 14502 14503 14504 14505if test $pkg_failed = yes; then 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14507$as_echo "no" >&6; } 14508 14509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14510 _pkg_short_errors_supported=yes 14511else 14512 _pkg_short_errors_supported=no 14513fi 14514 if test $_pkg_short_errors_supported = yes; then 14515 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 14516 else 14517 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 14518 fi 14519 # Put the nasty error message in config.log where it belongs 14520 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 14521 14522 : 14523elif test $pkg_failed = untried; then 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14525$as_echo "no" >&6; } 14526 : 14527else 14528 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 14529 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14531$as_echo "yes" >&6; } 14532 14533fi 14534 fi 14535 14536 # Check whether --enable-gtk-doc-html was given. 14537if test "${enable_gtk_doc_html+set}" = set; then : 14538 enableval=$enable_gtk_doc_html; 14539else 14540 enable_gtk_doc_html=yes 14541fi 14542 14543 # Check whether --enable-gtk-doc-pdf was given. 14544if test "${enable_gtk_doc_pdf+set}" = set; then : 14545 enableval=$enable_gtk_doc_pdf; 14546else 14547 enable_gtk_doc_pdf=no 14548fi 14549 14550 14551 if test -z "$GTKDOC_MKPDF"; then 14552 enable_gtk_doc_pdf=no 14553 fi 14554 14555 if test -z "$AM_DEFAULT_VERBOSITY"; then 14556 AM_DEFAULT_VERBOSITY=1 14557 fi 14558 14559 14560 if test x$have_gtk_doc = xyes; then 14561 HAVE_GTK_DOC_TRUE= 14562 HAVE_GTK_DOC_FALSE='#' 14563else 14564 HAVE_GTK_DOC_TRUE='#' 14565 HAVE_GTK_DOC_FALSE= 14566fi 14567 14568 if test x$enable_gtk_doc = xyes; then 14569 ENABLE_GTK_DOC_TRUE= 14570 ENABLE_GTK_DOC_FALSE='#' 14571else 14572 ENABLE_GTK_DOC_TRUE='#' 14573 ENABLE_GTK_DOC_FALSE= 14574fi 14575 14576 if test x$enable_gtk_doc_html = xyes; then 14577 GTK_DOC_BUILD_HTML_TRUE= 14578 GTK_DOC_BUILD_HTML_FALSE='#' 14579else 14580 GTK_DOC_BUILD_HTML_TRUE='#' 14581 GTK_DOC_BUILD_HTML_FALSE= 14582fi 14583 14584 if test x$enable_gtk_doc_pdf = xyes; then 14585 GTK_DOC_BUILD_PDF_TRUE= 14586 GTK_DOC_BUILD_PDF_FALSE='#' 14587else 14588 GTK_DOC_BUILD_PDF_TRUE='#' 14589 GTK_DOC_BUILD_PDF_FALSE= 14590fi 14591 14592 if test -n "$LIBTOOL"; then 14593 GTK_DOC_USE_LIBTOOL_TRUE= 14594 GTK_DOC_USE_LIBTOOL_FALSE='#' 14595else 14596 GTK_DOC_USE_LIBTOOL_TRUE='#' 14597 GTK_DOC_USE_LIBTOOL_FALSE= 14598fi 14599 14600 if test -n "$GTKDOC_REBASE"; then 14601 GTK_DOC_USE_REBASE_TRUE= 14602 GTK_DOC_USE_REBASE_FALSE='#' 14603else 14604 GTK_DOC_USE_REBASE_TRUE='#' 14605 GTK_DOC_USE_REBASE_FALSE= 14606fi 14607 14608 14609 14610########################### 14611# gtester2xunit checks # 14612########################### 14613 14614# Extract the first word of "python", so it can be a program name with args. 14615set dummy python; ac_word=$2 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14617$as_echo_n "checking for $ac_word... " >&6; } 14618if ${ac_cv_path_PYTHON+:} false; then : 14619 $as_echo_n "(cached) " >&6 14620else 14621 case $PYTHON in 14622 [\\/]* | ?:[\\/]*) 14623 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 14624 ;; 14625 *) 14626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14627for as_dir in $PATH 14628do 14629 IFS=$as_save_IFS 14630 test -z "$as_dir" && as_dir=. 14631 for ac_exec_ext in '' $ac_executable_extensions; do 14632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14633 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 14634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14635 break 2 14636 fi 14637done 14638 done 14639IFS=$as_save_IFS 14640 14641 ;; 14642esac 14643fi 14644PYTHON=$ac_cv_path_PYTHON 14645if test -n "$PYTHON"; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 14647$as_echo "$PYTHON" >&6; } 14648else 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14650$as_echo "no" >&6; } 14651fi 14652 14653 14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtester2xunit dependencies" >&5 14655$as_echo_n "checking for gtester2xunit dependencies... " >&6; } 14656if !($PYTHON -c "import lxml" 2> /dev/null); then 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14658$as_echo "no" >&6; } 14659 as_fn_error $? "You need to install python-lxml" "$LINENO" 5; 14660fi 14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14662$as_echo "yes" >&6; } 14663 14664########################### 14665# Headless tests 14666########################### 14667# Check whether --enable-headless-tests was given. 14668if test "${enable_headless_tests+set}" = set; then : 14669 enableval=$enable_headless_tests; 14670else 14671 enable_headless_tests=no 14672fi 14673 14674 14675 if test "x$enable_headless_tests" != "xno"; then 14676 ENABLE_HEADLESS_TESTS_TRUE= 14677 ENABLE_HEADLESS_TESTS_FALSE='#' 14678else 14679 ENABLE_HEADLESS_TESTS_TRUE='#' 14680 ENABLE_HEADLESS_TESTS_FALSE= 14681fi 14682 14683 14684if test "x$enable_headless_tests" = "xyes"; then 14685 # Extract the first word of "Xvfb", so it can be a program name with args. 14686set dummy Xvfb; ac_word=$2 14687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14688$as_echo_n "checking for $ac_word... " >&6; } 14689if ${ac_cv_path_XVFB+:} false; then : 14690 $as_echo_n "(cached) " >&6 14691else 14692 case $XVFB in 14693 [\\/]* | ?:[\\/]*) 14694 ac_cv_path_XVFB="$XVFB" # Let the user override the test with a path. 14695 ;; 14696 *) 14697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14698for as_dir in $PATH 14699do 14700 IFS=$as_save_IFS 14701 test -z "$as_dir" && as_dir=. 14702 for ac_exec_ext in '' $ac_executable_extensions; do 14703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14704 ac_cv_path_XVFB="$as_dir/$ac_word$ac_exec_ext" 14705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14706 break 2 14707 fi 14708done 14709 done 14710IFS=$as_save_IFS 14711 14712 ;; 14713esac 14714fi 14715XVFB=$ac_cv_path_XVFB 14716if test -n "$XVFB"; then 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 14718$as_echo "$XVFB" >&6; } 14719else 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14721$as_echo "no" >&6; } 14722fi 14723 14724 14725 # Extract the first word of "dbus-run-session", so it can be a program name with args. 14726set dummy dbus-run-session; ac_word=$2 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14728$as_echo_n "checking for $ac_word... " >&6; } 14729if ${ac_cv_path_DBUS_RUN_SESSION+:} false; then : 14730 $as_echo_n "(cached) " >&6 14731else 14732 case $DBUS_RUN_SESSION in 14733 [\\/]* | ?:[\\/]*) 14734 ac_cv_path_DBUS_RUN_SESSION="$DBUS_RUN_SESSION" # Let the user override the test with a path. 14735 ;; 14736 *) 14737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14738for as_dir in $PATH 14739do 14740 IFS=$as_save_IFS 14741 test -z "$as_dir" && as_dir=. 14742 for ac_exec_ext in '' $ac_executable_extensions; do 14743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14744 ac_cv_path_DBUS_RUN_SESSION="$as_dir/$ac_word$ac_exec_ext" 14745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14746 break 2 14747 fi 14748done 14749 done 14750IFS=$as_save_IFS 14751 14752 ;; 14753esac 14754fi 14755DBUS_RUN_SESSION=$ac_cv_path_DBUS_RUN_SESSION 14756if test -n "$DBUS_RUN_SESSION"; then 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_RUN_SESSION" >&5 14758$as_echo "$DBUS_RUN_SESSION" >&6; } 14759else 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14761$as_echo "no" >&6; } 14762fi 14763 14764 14765 14766 if test -z "$XVFB" -o -z "$DBUS_RUN_SESSION"; then 14767 as_fn_error $? "Xvfb and dbus-run-session are needed for headless-tests" "$LINENO" 5 14768 fi 14769fi 14770 14771########################### 14772# gcov coverage reporting 14773########################### 14774 14775 # Check whether --enable-gcov was given. 14776if test "${enable_gcov+set}" = set; then : 14777 enableval=$enable_gcov; use_gcov=$enableval 14778else 14779 use_gcov=no 14780fi 14781 14782 14783 if test "x$use_gcov" = "xyes"; then 14784 HAVE_GCOV_TRUE= 14785 HAVE_GCOV_FALSE='#' 14786else 14787 HAVE_GCOV_TRUE='#' 14788 HAVE_GCOV_FALSE= 14789fi 14790 14791 14792 if test "x$use_gcov" = "xyes"; then 14793 # we need gcc: 14794 if test "$GCC" != "yes"; then 14795 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 14796 fi 14797 14798 # Check if ccache is being used 14799 # Extract the first word of "shtool", so it can be a program name with args. 14800set dummy shtool; ac_word=$2 14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14802$as_echo_n "checking for $ac_word... " >&6; } 14803if ${ac_cv_prog_SHTOOL+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 if test -n "$SHTOOL"; then 14807 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test. 14808else 14809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14810for as_dir in $PATH 14811do 14812 IFS=$as_save_IFS 14813 test -z "$as_dir" && as_dir=. 14814 for ac_exec_ext in '' $ac_executable_extensions; do 14815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14816 ac_cv_prog_SHTOOL="shtool" 14817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14818 break 2 14819 fi 14820done 14821 done 14822IFS=$as_save_IFS 14823 14824fi 14825fi 14826SHTOOL=$ac_cv_prog_SHTOOL 14827if test -n "$SHTOOL"; then 14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5 14829$as_echo "$SHTOOL" >&6; } 14830else 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14832$as_echo "no" >&6; } 14833fi 14834 14835 14836 if test "$SHTOOL"; then 14837 case `$SHTOOL path $CC` in #( 14838 *ccache*) : 14839 gcc_ccache=yes ;; #( 14840 *) : 14841 gcc_ccache=no ;; 14842esac 14843 fi 14844 14845 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then 14846 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 14847 fi 14848 14849 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12" 14850 # Extract the first word of "lcov", so it can be a program name with args. 14851set dummy lcov; ac_word=$2 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14853$as_echo_n "checking for $ac_word... " >&6; } 14854if ${ac_cv_prog_LCOV+:} false; then : 14855 $as_echo_n "(cached) " >&6 14856else 14857 if test -n "$LCOV"; then 14858 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 14859else 14860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14861for as_dir in $PATH 14862do 14863 IFS=$as_save_IFS 14864 test -z "$as_dir" && as_dir=. 14865 for ac_exec_ext in '' $ac_executable_extensions; do 14866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14867 ac_cv_prog_LCOV="lcov" 14868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14869 break 2 14870 fi 14871done 14872 done 14873IFS=$as_save_IFS 14874 14875fi 14876fi 14877LCOV=$ac_cv_prog_LCOV 14878if test -n "$LCOV"; then 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 14880$as_echo "$LCOV" >&6; } 14881else 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14883$as_echo "no" >&6; } 14884fi 14885 14886 14887 # Extract the first word of "genhtml", so it can be a program name with args. 14888set dummy genhtml; ac_word=$2 14889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14890$as_echo_n "checking for $ac_word... " >&6; } 14891if ${ac_cv_prog_GENHTML+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 if test -n "$GENHTML"; then 14895 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 14896else 14897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14898for as_dir in $PATH 14899do 14900 IFS=$as_save_IFS 14901 test -z "$as_dir" && as_dir=. 14902 for ac_exec_ext in '' $ac_executable_extensions; do 14903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14904 ac_cv_prog_GENHTML="genhtml" 14905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14906 break 2 14907 fi 14908done 14909 done 14910IFS=$as_save_IFS 14911 14912fi 14913fi 14914GENHTML=$ac_cv_prog_GENHTML 14915if test -n "$GENHTML"; then 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 14917$as_echo "$GENHTML" >&6; } 14918else 14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14920$as_echo "no" >&6; } 14921fi 14922 14923 14924 14925 if test "$LCOV"; then 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5 14927$as_echo_n "checking for lcov version... " >&6; } 14928if ${glib_cv_lcov_version+:} false; then : 14929 $as_echo_n "(cached) " >&6 14930else 14931 14932 glib_cv_lcov_version=invalid 14933 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'` 14934 for lcov_check_version in $lcov_version_list; do 14935 if test "$lcov_version" = "$lcov_check_version"; then 14936 glib_cv_lcov_version="$lcov_check_version (ok)" 14937 fi 14938 done 14939 14940fi 14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5 14942$as_echo "$glib_cv_lcov_version" >&6; } 14943 else 14944 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list" 14945 as_fn_error $? "$lcov_msg" "$LINENO" 5 14946 fi 14947 14948 case $glib_cv_lcov_version in 14949 ""|invalid) 14950 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)." 14951 as_fn_error $? "$lcov_msg" "$LINENO" 5 14952 LCOV="exit 0;" 14953 ;; 14954 esac 14955 14956 if test -z "$GENHTML"; then 14957 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 14958 fi 14959 14960 ac_cv_check_gcov=yes 14961 ac_cv_check_lcov=yes 14962 14963 # Remove all optimization flags from CFLAGS 14964 14965 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` 14966 14967 14968 # Add the special gcc flags 14969 COVERAGE_CFLAGS="-O0 --coverage" 14970 COVERAGE_CXXFLAGS="-O0 --coverage" 14971 COVERAGE_LDFLAGS="-lgcov" 14972 14973 # Check availability of gcovr 14974 # Extract the first word of "gcovr", so it can be a program name with args. 14975set dummy gcovr; ac_word=$2 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14977$as_echo_n "checking for $ac_word... " >&6; } 14978if ${ac_cv_prog_GCOVR+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 if test -n "$GCOVR"; then 14982 ac_cv_prog_GCOVR="$GCOVR" # Let the user override the test. 14983else 14984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14985for as_dir in $PATH 14986do 14987 IFS=$as_save_IFS 14988 test -z "$as_dir" && as_dir=. 14989 for ac_exec_ext in '' $ac_executable_extensions; do 14990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14991 ac_cv_prog_GCOVR="gcovr" 14992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14993 break 2 14994 fi 14995done 14996 done 14997IFS=$as_save_IFS 14998 14999fi 15000fi 15001GCOVR=$ac_cv_prog_GCOVR 15002if test -n "$GCOVR"; then 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOVR" >&5 15004$as_echo "$GCOVR" >&6; } 15005else 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15007$as_echo "no" >&6; } 15008fi 15009 15010 15011 if test -z "$GCOVR"; then 15012 ac_cv_check_gcovr=no 15013 else 15014 ac_cv_check_gcovr=yes 15015 fi 15016fi 15017 15018 if test "x$ac_cv_check_gcov" = xyes; then 15019 HAVE_GCOV_TRUE= 15020 HAVE_GCOV_FALSE='#' 15021else 15022 HAVE_GCOV_TRUE='#' 15023 HAVE_GCOV_FALSE= 15024fi 15025 15026 if test "x$ac_cv_check_lcov" = xyes; then 15027 HAVE_LCOV_TRUE= 15028 HAVE_LCOV_FALSE='#' 15029else 15030 HAVE_LCOV_TRUE='#' 15031 HAVE_LCOV_FALSE= 15032fi 15033 15034 if test "x$ac_cv_check_gcovr" = xyes; then 15035 HAVE_GCOVR_TRUE= 15036 HAVE_GCOVR_FALSE='#' 15037else 15038 HAVE_GCOVR_TRUE='#' 15039 HAVE_GCOVR_FALSE= 15040fi 15041 15042 15043 15044 15045# 15046# Gnome/GTK checks 15047# 15048 15049# Check whether --enable-gtktest was given. 15050if test "${enable_gtktest+set}" = set; then : 15051 enableval=$enable_gtktest; 15052else 15053 enable_gtktest=yes 15054fi 15055 15056 min_gtk_version=3.0.0 15057 15058 pkg_config_args="gtk+-3.0 >= $min_gtk_version" 15059 for module in . 15060 do 15061 case "$module" in 15062 gthread) 15063 pkg_config_args="$pkg_config_args gthread-2.0" 15064 ;; 15065 esac 15066 done 15067 15068 no_gtk="" 15069 15070 15071 15072 15073 15074 15075 15076 15077if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15078 if test -n "$ac_tool_prefix"; then 15079 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15080set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15082$as_echo_n "checking for $ac_word... " >&6; } 15083if ${ac_cv_path_PKG_CONFIG+:} false; then : 15084 $as_echo_n "(cached) " >&6 15085else 15086 case $PKG_CONFIG in 15087 [\\/]* | ?:[\\/]*) 15088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15089 ;; 15090 *) 15091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15092for as_dir in $PATH 15093do 15094 IFS=$as_save_IFS 15095 test -z "$as_dir" && as_dir=. 15096 for ac_exec_ext in '' $ac_executable_extensions; do 15097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15100 break 2 15101 fi 15102done 15103 done 15104IFS=$as_save_IFS 15105 15106 ;; 15107esac 15108fi 15109PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15110if test -n "$PKG_CONFIG"; then 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15112$as_echo "$PKG_CONFIG" >&6; } 15113else 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15115$as_echo "no" >&6; } 15116fi 15117 15118 15119fi 15120if test -z "$ac_cv_path_PKG_CONFIG"; then 15121 ac_pt_PKG_CONFIG=$PKG_CONFIG 15122 # Extract the first word of "pkg-config", so it can be a program name with args. 15123set dummy pkg-config; ac_word=$2 15124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15125$as_echo_n "checking for $ac_word... " >&6; } 15126if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15127 $as_echo_n "(cached) " >&6 15128else 15129 case $ac_pt_PKG_CONFIG in 15130 [\\/]* | ?:[\\/]*) 15131 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15132 ;; 15133 *) 15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15135for as_dir in $PATH 15136do 15137 IFS=$as_save_IFS 15138 test -z "$as_dir" && as_dir=. 15139 for ac_exec_ext in '' $ac_executable_extensions; do 15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15141 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15143 break 2 15144 fi 15145done 15146 done 15147IFS=$as_save_IFS 15148 15149 ;; 15150esac 15151fi 15152ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15153if test -n "$ac_pt_PKG_CONFIG"; then 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15155$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15156else 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15158$as_echo "no" >&6; } 15159fi 15160 15161 if test "x$ac_pt_PKG_CONFIG" = x; then 15162 PKG_CONFIG="" 15163 else 15164 case $cross_compiling:$ac_tool_warned in 15165yes:) 15166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15168ac_tool_warned=yes ;; 15169esac 15170 PKG_CONFIG=$ac_pt_PKG_CONFIG 15171 fi 15172else 15173 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15174fi 15175 15176fi 15177if test -n "$PKG_CONFIG"; then 15178 _pkg_min_version=0.16 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15180$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15181 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15183$as_echo "yes" >&6; } 15184 else 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15186$as_echo "no" >&6; } 15187 PKG_CONFIG="" 15188 fi 15189fi 15190 15191 if test -z "$PKG_CONFIG"; then 15192 no_gtk=yes 15193 fi 15194 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 15196$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } 15197 15198 if test -n "$PKG_CONFIG"; then 15199 ## don't try to run the test against uninstalled libtool libs 15200 if $PKG_CONFIG --uninstalled $pkg_config_args; then 15201 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 15202 enable_gtktest=no 15203 fi 15204 15205 if $PKG_CONFIG $pkg_config_args; then 15206 : 15207 else 15208 no_gtk=yes 15209 fi 15210 fi 15211 15212 if test x"$no_gtk" = x ; then 15213 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 15214 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 15215 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 15216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 15217 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 15218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 15219 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 15220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 15221 if test "x$enable_gtktest" = "xyes" ; then 15222 ac_save_CFLAGS="$CFLAGS" 15223 ac_save_LIBS="$LIBS" 15224 CFLAGS="$CFLAGS $GTK_CFLAGS" 15225 LIBS="$GTK_LIBS $LIBS" 15226 rm -f conf.gtktest 15227 if test "$cross_compiling" = yes; then : 15228 echo $ac_n "cross compiling; assumed OK... $ac_c" 15229else 15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15231/* end confdefs.h. */ 15232 15233#include <gtk/gtk.h> 15234#include <stdio.h> 15235#include <stdlib.h> 15236 15237int 15238main () 15239{ 15240 unsigned int major, minor, micro; 15241 15242 fclose (fopen ("conf.gtktest", "w")); 15243 15244 if (sscanf("$min_gtk_version", "%u.%u.%u", &major, &minor, µ) != 3) { 15245 printf("%s, bad version string\n", "$min_gtk_version"); 15246 exit(1); 15247 } 15248 15249 if ((gtk_major_version != $gtk_config_major_version) || 15250 (gtk_minor_version != $gtk_config_minor_version) || 15251 (gtk_micro_version != $gtk_config_micro_version)) 15252 { 15253 printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 15254 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 15255 gtk_major_version, gtk_minor_version, gtk_micro_version); 15256 printf ("*** was found! If pkg-config was correct, then it is best\n"); 15257 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 15258 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 15259 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 15260 printf("*** required on your system.\n"); 15261 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 15262 printf("*** to point to the correct configuration files\n"); 15263 } 15264 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 15265 (gtk_minor_version != GTK_MINOR_VERSION) || 15266 (gtk_micro_version != GTK_MICRO_VERSION)) 15267 { 15268 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 15269 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 15270 printf("*** library (version %d.%d.%d)\n", 15271 gtk_major_version, gtk_minor_version, gtk_micro_version); 15272 } 15273 else 15274 { 15275 if ((gtk_major_version > major) || 15276 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 15277 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 15278 { 15279 return 0; 15280 } 15281 else 15282 { 15283 printf("\n*** An old version of GTK+ (%u.%u.%u) was found.\n", 15284 gtk_major_version, gtk_minor_version, gtk_micro_version); 15285 printf("*** You need a version of GTK+ newer than %u.%u.%u. The latest version of\n", 15286 major, minor, micro); 15287 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 15288 printf("***\n"); 15289 printf("*** If you have already installed a sufficiently new version, this error\n"); 15290 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 15291 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 15292 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 15293 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 15294 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 15295 printf("*** so that the correct libraries are found at run-time))\n"); 15296 } 15297 } 15298 return 1; 15299} 15300 15301_ACEOF 15302if ac_fn_c_try_run "$LINENO"; then : 15303 15304else 15305 no_gtk=yes 15306fi 15307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15308 conftest.$ac_objext conftest.beam conftest.$ac_ext 15309fi 15310 15311 CFLAGS="$ac_save_CFLAGS" 15312 LIBS="$ac_save_LIBS" 15313 fi 15314 fi 15315 if test "x$no_gtk" = x ; then 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 15317$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } 15318 : 15319 else 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15321$as_echo "no" >&6; } 15322 if test -z "$PKG_CONFIG"; then 15323 echo "*** A new enough version of pkg-config was not found." 15324 echo "*** See http://pkgconfig.sourceforge.net" 15325 else 15326 if test -f conf.gtktest ; then 15327 : 15328 else 15329 echo "*** Could not run GTK+ test program, checking why..." 15330 ac_save_CFLAGS="$CFLAGS" 15331 ac_save_LIBS="$LIBS" 15332 CFLAGS="$CFLAGS $GTK_CFLAGS" 15333 LIBS="$LIBS $GTK_LIBS" 15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335/* end confdefs.h. */ 15336 15337#include <gtk/gtk.h> 15338#include <stdio.h> 15339 15340int 15341main () 15342{ 15343 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 15344 ; 15345 return 0; 15346} 15347_ACEOF 15348if ac_fn_c_try_link "$LINENO"; then : 15349 echo "*** The test program compiled, but did not run. This usually means" 15350 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 15351 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 15352 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15353 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15354 echo "*** is required on your system" 15355 echo "***" 15356 echo "*** If you have an old version installed, it is best to remove it, although" 15357 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15358else 15359 echo "*** The test program failed to compile or link. See the file config.log for the" 15360 echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed." 15361fi 15362rm -f core conftest.err conftest.$ac_objext \ 15363 conftest$ac_exeext conftest.$ac_ext 15364 CFLAGS="$ac_save_CFLAGS" 15365 LIBS="$ac_save_LIBS" 15366 fi 15367 fi 15368 GTK_CFLAGS="" 15369 GTK_LIBS="" 15370 : 15371 fi 15372 15373 15374 rm -f conf.gtktest 15375 15376 15377CFLAGS="$CFLAGS -Wall -Winit-self -Warray-bounds -Wimplicit-function-declaration" 15378 15379 15380 15381 15382origgiomodulesdir=`pkg-config --variable=giomoduledir gio-2.0` 15383# Make giomodulesdir honour 'prefix', so that distcheck works. 15384giomodulesdir=`echo "$origgiomodulesdir" | sed 's|/usr|${prefix}|'` 15385 15386 15387ac_config_files="$ac_config_files Makefile lib/libbamf-private/Makefile lib/libbamf/Makefile lib/libbamf/libbamf3.pc src/Makefile tests/Makefile tests/bamfdaemon/Makefile tests/libbamf/Makefile data/Makefile doc/Makefile doc/reference/Makefile doc/reference/libbamf/Makefile" 15388 15389cat >confcache <<\_ACEOF 15390# This file is a shell script that caches the results of configure 15391# tests run on this system so they can be shared between configure 15392# scripts and configure runs, see configure's option --config-cache. 15393# It is not useful on other systems. If it contains results you don't 15394# want to keep, you may remove or edit it. 15395# 15396# config.status only pays attention to the cache file if you give it 15397# the --recheck option to rerun configure. 15398# 15399# `ac_cv_env_foo' variables (set or unset) will be overridden when 15400# loading this file, other *unset* `ac_cv_foo' will be assigned the 15401# following values. 15402 15403_ACEOF 15404 15405# The following way of writing the cache mishandles newlines in values, 15406# but we know of no workaround that is simple, portable, and efficient. 15407# So, we kill variables containing newlines. 15408# Ultrix sh set writes to stderr and can't be redirected directly, 15409# and sets the high bit in the cache file unless we assign to the vars. 15410( 15411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15412 eval ac_val=\$$ac_var 15413 case $ac_val in #( 15414 *${as_nl}*) 15415 case $ac_var in #( 15416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15417$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15418 esac 15419 case $ac_var in #( 15420 _ | IFS | as_nl) ;; #( 15421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15422 *) { eval $ac_var=; unset $ac_var;} ;; 15423 esac ;; 15424 esac 15425 done 15426 15427 (set) 2>&1 | 15428 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15429 *${as_nl}ac_space=\ *) 15430 # `set' does not quote correctly, so add quotes: double-quote 15431 # substitution turns \\\\ into \\, and sed turns \\ into \. 15432 sed -n \ 15433 "s/'/'\\\\''/g; 15434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15435 ;; #( 15436 *) 15437 # `set' quotes correctly as required by POSIX, so do not add quotes. 15438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15439 ;; 15440 esac | 15441 sort 15442) | 15443 sed ' 15444 /^ac_cv_env_/b end 15445 t clear 15446 :clear 15447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15448 t end 15449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15450 :end' >>confcache 15451if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15452 if test -w "$cache_file"; then 15453 if test "x$cache_file" != "x/dev/null"; then 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15455$as_echo "$as_me: updating cache $cache_file" >&6;} 15456 if test ! -f "$cache_file" || test -h "$cache_file"; then 15457 cat confcache >"$cache_file" 15458 else 15459 case $cache_file in #( 15460 */* | ?:*) 15461 mv -f confcache "$cache_file"$$ && 15462 mv -f "$cache_file"$$ "$cache_file" ;; #( 15463 *) 15464 mv -f confcache "$cache_file" ;; 15465 esac 15466 fi 15467 fi 15468 else 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15470$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15471 fi 15472fi 15473rm -f confcache 15474 15475test "x$prefix" = xNONE && prefix=$ac_default_prefix 15476# Let make expand exec_prefix. 15477test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15478 15479DEFS=-DHAVE_CONFIG_H 15480 15481ac_libobjs= 15482ac_ltlibobjs= 15483U= 15484for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15485 # 1. Remove the extension, and $U if already installed. 15486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15487 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15489 # will be set to the directory where LIBOBJS objects are built. 15490 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15491 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15492done 15493LIBOBJS=$ac_libobjs 15494 15495LTLIBOBJS=$ac_ltlibobjs 15496 15497 15498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15499$as_echo_n "checking that generated files are newer than configure... " >&6; } 15500 if test -n "$am_sleep_pid"; then 15501 # Hide warnings about reused PIDs. 15502 wait $am_sleep_pid 2>/dev/null 15503 fi 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15505$as_echo "done" >&6; } 15506 if test -n "$EXEEXT"; then 15507 am__EXEEXT_TRUE= 15508 am__EXEEXT_FALSE='#' 15509else 15510 am__EXEEXT_TRUE='#' 15511 am__EXEEXT_FALSE= 15512fi 15513 15514if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15515 as_fn_error $? "conditional \"AMDEP\" was never defined. 15516Usually this means the macro was only invoked conditionally." "$LINENO" 5 15517fi 15518if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15519 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15520Usually this means the macro was only invoked conditionally." "$LINENO" 5 15521fi 15522if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15523 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15524Usually this means the macro was only invoked conditionally." "$LINENO" 5 15525fi 15526if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15527 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15528Usually this means the macro was only invoked conditionally." "$LINENO" 5 15529fi 15530if test -z "${EXPORT_ACTIONS_MENU_TRUE}" && test -z "${EXPORT_ACTIONS_MENU_FALSE}"; then 15531 as_fn_error $? "conditional \"EXPORT_ACTIONS_MENU\" was never defined. 15532Usually this means the macro was only invoked conditionally." "$LINENO" 5 15533fi 15534if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 15535 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 15536Usually this means the macro was only invoked conditionally." "$LINENO" 5 15537fi 15538if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 15539 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 15540Usually this means the macro was only invoked conditionally." "$LINENO" 5 15541fi 15542if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 15543 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 15544Usually this means the macro was only invoked conditionally." "$LINENO" 5 15545fi 15546if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 15547 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 15548Usually this means the macro was only invoked conditionally." "$LINENO" 5 15549fi 15550if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 15551 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 15552Usually this means the macro was only invoked conditionally." "$LINENO" 5 15553fi 15554if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 15555 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 15556Usually this means the macro was only invoked conditionally." "$LINENO" 5 15557fi 15558if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 15559 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 15560Usually this means the macro was only invoked conditionally." "$LINENO" 5 15561fi 15562if test -z "${ENABLE_HEADLESS_TESTS_TRUE}" && test -z "${ENABLE_HEADLESS_TESTS_FALSE}"; then 15563 as_fn_error $? "conditional \"ENABLE_HEADLESS_TESTS\" was never defined. 15564Usually this means the macro was only invoked conditionally." "$LINENO" 5 15565fi 15566if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then 15567 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined. 15568Usually this means the macro was only invoked conditionally." "$LINENO" 5 15569fi 15570if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then 15571 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined. 15572Usually this means the macro was only invoked conditionally." "$LINENO" 5 15573fi 15574if test -z "${HAVE_LCOV_TRUE}" && test -z "${HAVE_LCOV_FALSE}"; then 15575 as_fn_error $? "conditional \"HAVE_LCOV\" was never defined. 15576Usually this means the macro was only invoked conditionally." "$LINENO" 5 15577fi 15578if test -z "${HAVE_GCOVR_TRUE}" && test -z "${HAVE_GCOVR_FALSE}"; then 15579 as_fn_error $? "conditional \"HAVE_GCOVR\" was never defined. 15580Usually this means the macro was only invoked conditionally." "$LINENO" 5 15581fi 15582 15583: "${CONFIG_STATUS=./config.status}" 15584ac_write_fail=0 15585ac_clean_files_save=$ac_clean_files 15586ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15588$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15589as_write_fail=0 15590cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15591#! $SHELL 15592# Generated by $as_me. 15593# Run this file to recreate the current configuration. 15594# Compiler output produced by configure, useful for debugging 15595# configure, is in config.log if it exists. 15596 15597debug=false 15598ac_cs_recheck=false 15599ac_cs_silent=false 15600 15601SHELL=\${CONFIG_SHELL-$SHELL} 15602export SHELL 15603_ASEOF 15604cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15605## -------------------- ## 15606## M4sh Initialization. ## 15607## -------------------- ## 15608 15609# Be more Bourne compatible 15610DUALCASE=1; export DUALCASE # for MKS sh 15611if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15612 emulate sh 15613 NULLCMD=: 15614 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15615 # is contrary to our usage. Disable this feature. 15616 alias -g '${1+"$@"}'='"$@"' 15617 setopt NO_GLOB_SUBST 15618else 15619 case `(set -o) 2>/dev/null` in #( 15620 *posix*) : 15621 set -o posix ;; #( 15622 *) : 15623 ;; 15624esac 15625fi 15626 15627 15628as_nl=' 15629' 15630export as_nl 15631# Printing a long string crashes Solaris 7 /usr/bin/printf. 15632as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15634as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15635# Prefer a ksh shell builtin over an external printf program on Solaris, 15636# but without wasting forks for bash or zsh. 15637if test -z "$BASH_VERSION$ZSH_VERSION" \ 15638 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15639 as_echo='print -r --' 15640 as_echo_n='print -rn --' 15641elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15642 as_echo='printf %s\n' 15643 as_echo_n='printf %s' 15644else 15645 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15646 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15647 as_echo_n='/usr/ucb/echo -n' 15648 else 15649 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15650 as_echo_n_body='eval 15651 arg=$1; 15652 case $arg in #( 15653 *"$as_nl"*) 15654 expr "X$arg" : "X\\(.*\\)$as_nl"; 15655 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15656 esac; 15657 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15658 ' 15659 export as_echo_n_body 15660 as_echo_n='sh -c $as_echo_n_body as_echo' 15661 fi 15662 export as_echo_body 15663 as_echo='sh -c $as_echo_body as_echo' 15664fi 15665 15666# The user is always right. 15667if test "${PATH_SEPARATOR+set}" != set; then 15668 PATH_SEPARATOR=: 15669 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15670 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15671 PATH_SEPARATOR=';' 15672 } 15673fi 15674 15675 15676# IFS 15677# We need space, tab and new line, in precisely that order. Quoting is 15678# there to prevent editors from complaining about space-tab. 15679# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15680# splitting by setting IFS to empty value.) 15681IFS=" "" $as_nl" 15682 15683# Find who we are. Look in the path if we contain no directory separator. 15684as_myself= 15685case $0 in #(( 15686 *[\\/]* ) as_myself=$0 ;; 15687 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15688for as_dir in $PATH 15689do 15690 IFS=$as_save_IFS 15691 test -z "$as_dir" && as_dir=. 15692 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15693 done 15694IFS=$as_save_IFS 15695 15696 ;; 15697esac 15698# We did not find ourselves, most probably we were run as `sh COMMAND' 15699# in which case we are not to be found in the path. 15700if test "x$as_myself" = x; then 15701 as_myself=$0 15702fi 15703if test ! -f "$as_myself"; then 15704 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15705 exit 1 15706fi 15707 15708# Unset variables that we do not need and which cause bugs (e.g. in 15709# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15710# suppresses any "Segmentation fault" message there. '((' could 15711# trigger a bug in pdksh 5.2.14. 15712for as_var in BASH_ENV ENV MAIL MAILPATH 15713do eval test x\${$as_var+set} = xset \ 15714 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15715done 15716PS1='$ ' 15717PS2='> ' 15718PS4='+ ' 15719 15720# NLS nuisances. 15721LC_ALL=C 15722export LC_ALL 15723LANGUAGE=C 15724export LANGUAGE 15725 15726# CDPATH. 15727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15728 15729 15730# as_fn_error STATUS ERROR [LINENO LOG_FD] 15731# ---------------------------------------- 15732# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15733# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15734# script with STATUS, using 1 if that was 0. 15735as_fn_error () 15736{ 15737 as_status=$1; test $as_status -eq 0 && as_status=1 15738 if test "$4"; then 15739 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15740 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15741 fi 15742 $as_echo "$as_me: error: $2" >&2 15743 as_fn_exit $as_status 15744} # as_fn_error 15745 15746 15747# as_fn_set_status STATUS 15748# ----------------------- 15749# Set $? to STATUS, without forking. 15750as_fn_set_status () 15751{ 15752 return $1 15753} # as_fn_set_status 15754 15755# as_fn_exit STATUS 15756# ----------------- 15757# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15758as_fn_exit () 15759{ 15760 set +e 15761 as_fn_set_status $1 15762 exit $1 15763} # as_fn_exit 15764 15765# as_fn_unset VAR 15766# --------------- 15767# Portably unset VAR. 15768as_fn_unset () 15769{ 15770 { eval $1=; unset $1;} 15771} 15772as_unset=as_fn_unset 15773# as_fn_append VAR VALUE 15774# ---------------------- 15775# Append the text in VALUE to the end of the definition contained in VAR. Take 15776# advantage of any shell optimizations that allow amortized linear growth over 15777# repeated appends, instead of the typical quadratic growth present in naive 15778# implementations. 15779if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15780 eval 'as_fn_append () 15781 { 15782 eval $1+=\$2 15783 }' 15784else 15785 as_fn_append () 15786 { 15787 eval $1=\$$1\$2 15788 } 15789fi # as_fn_append 15790 15791# as_fn_arith ARG... 15792# ------------------ 15793# Perform arithmetic evaluation on the ARGs, and store the result in the 15794# global $as_val. Take advantage of shells that can avoid forks. The arguments 15795# must be portable across $(()) and expr. 15796if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15797 eval 'as_fn_arith () 15798 { 15799 as_val=$(( $* )) 15800 }' 15801else 15802 as_fn_arith () 15803 { 15804 as_val=`expr "$@" || test $? -eq 1` 15805 } 15806fi # as_fn_arith 15807 15808 15809if expr a : '\(a\)' >/dev/null 2>&1 && 15810 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15811 as_expr=expr 15812else 15813 as_expr=false 15814fi 15815 15816if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15817 as_basename=basename 15818else 15819 as_basename=false 15820fi 15821 15822if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15823 as_dirname=dirname 15824else 15825 as_dirname=false 15826fi 15827 15828as_me=`$as_basename -- "$0" || 15829$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15830 X"$0" : 'X\(//\)$' \| \ 15831 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15832$as_echo X/"$0" | 15833 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15834 s//\1/ 15835 q 15836 } 15837 /^X\/\(\/\/\)$/{ 15838 s//\1/ 15839 q 15840 } 15841 /^X\/\(\/\).*/{ 15842 s//\1/ 15843 q 15844 } 15845 s/.*/./; q'` 15846 15847# Avoid depending upon Character Ranges. 15848as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15849as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15850as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15851as_cr_digits='0123456789' 15852as_cr_alnum=$as_cr_Letters$as_cr_digits 15853 15854ECHO_C= ECHO_N= ECHO_T= 15855case `echo -n x` in #((((( 15856-n*) 15857 case `echo 'xy\c'` in 15858 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15859 xy) ECHO_C='\c';; 15860 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15861 ECHO_T=' ';; 15862 esac;; 15863*) 15864 ECHO_N='-n';; 15865esac 15866 15867rm -f conf$$ conf$$.exe conf$$.file 15868if test -d conf$$.dir; then 15869 rm -f conf$$.dir/conf$$.file 15870else 15871 rm -f conf$$.dir 15872 mkdir conf$$.dir 2>/dev/null 15873fi 15874if (echo >conf$$.file) 2>/dev/null; then 15875 if ln -s conf$$.file conf$$ 2>/dev/null; then 15876 as_ln_s='ln -s' 15877 # ... but there are two gotchas: 15878 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15879 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15880 # In both cases, we have to default to `cp -pR'. 15881 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15882 as_ln_s='cp -pR' 15883 elif ln conf$$.file conf$$ 2>/dev/null; then 15884 as_ln_s=ln 15885 else 15886 as_ln_s='cp -pR' 15887 fi 15888else 15889 as_ln_s='cp -pR' 15890fi 15891rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15892rmdir conf$$.dir 2>/dev/null 15893 15894 15895# as_fn_mkdir_p 15896# ------------- 15897# Create "$as_dir" as a directory, including parents if necessary. 15898as_fn_mkdir_p () 15899{ 15900 15901 case $as_dir in #( 15902 -*) as_dir=./$as_dir;; 15903 esac 15904 test -d "$as_dir" || eval $as_mkdir_p || { 15905 as_dirs= 15906 while :; do 15907 case $as_dir in #( 15908 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15909 *) as_qdir=$as_dir;; 15910 esac 15911 as_dirs="'$as_qdir' $as_dirs" 15912 as_dir=`$as_dirname -- "$as_dir" || 15913$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15914 X"$as_dir" : 'X\(//\)[^/]' \| \ 15915 X"$as_dir" : 'X\(//\)$' \| \ 15916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15917$as_echo X"$as_dir" | 15918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15919 s//\1/ 15920 q 15921 } 15922 /^X\(\/\/\)[^/].*/{ 15923 s//\1/ 15924 q 15925 } 15926 /^X\(\/\/\)$/{ 15927 s//\1/ 15928 q 15929 } 15930 /^X\(\/\).*/{ 15931 s//\1/ 15932 q 15933 } 15934 s/.*/./; q'` 15935 test -d "$as_dir" && break 15936 done 15937 test -z "$as_dirs" || eval "mkdir $as_dirs" 15938 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15939 15940 15941} # as_fn_mkdir_p 15942if mkdir -p . 2>/dev/null; then 15943 as_mkdir_p='mkdir -p "$as_dir"' 15944else 15945 test -d ./-p && rmdir ./-p 15946 as_mkdir_p=false 15947fi 15948 15949 15950# as_fn_executable_p FILE 15951# ----------------------- 15952# Test if FILE is an executable regular file. 15953as_fn_executable_p () 15954{ 15955 test -f "$1" && test -x "$1" 15956} # as_fn_executable_p 15957as_test_x='test -x' 15958as_executable_p=as_fn_executable_p 15959 15960# Sed expression to map a string onto a valid CPP name. 15961as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15962 15963# Sed expression to map a string onto a valid variable name. 15964as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15965 15966 15967exec 6>&1 15968## ----------------------------------- ## 15969## Main body of $CONFIG_STATUS script. ## 15970## ----------------------------------- ## 15971_ASEOF 15972test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15973 15974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15975# Save the log message, to keep $0 and so on meaningful, and to 15976# report actual input values of CONFIG_FILES etc. instead of their 15977# values after options handling. 15978ac_log=" 15979This file was extended by bamf $as_me 0.5.4, which was 15980generated by GNU Autoconf 2.69. Invocation command line was 15981 15982 CONFIG_FILES = $CONFIG_FILES 15983 CONFIG_HEADERS = $CONFIG_HEADERS 15984 CONFIG_LINKS = $CONFIG_LINKS 15985 CONFIG_COMMANDS = $CONFIG_COMMANDS 15986 $ $0 $@ 15987 15988on `(hostname || uname -n) 2>/dev/null | sed 1q` 15989" 15990 15991_ACEOF 15992 15993case $ac_config_files in *" 15994"*) set x $ac_config_files; shift; ac_config_files=$*;; 15995esac 15996 15997case $ac_config_headers in *" 15998"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15999esac 16000 16001 16002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16003# Files that config.status was made for. 16004config_files="$ac_config_files" 16005config_headers="$ac_config_headers" 16006config_commands="$ac_config_commands" 16007 16008_ACEOF 16009 16010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16011ac_cs_usage="\ 16012\`$as_me' instantiates files and other configuration actions 16013from templates according to the current configuration. Unless the files 16014and actions are specified as TAGs, all are instantiated by default. 16015 16016Usage: $0 [OPTION]... [TAG]... 16017 16018 -h, --help print this help, then exit 16019 -V, --version print version number and configuration settings, then exit 16020 --config print configuration, then exit 16021 -q, --quiet, --silent 16022 do not print progress messages 16023 -d, --debug don't remove temporary files 16024 --recheck update $as_me by reconfiguring in the same conditions 16025 --file=FILE[:TEMPLATE] 16026 instantiate the configuration file FILE 16027 --header=FILE[:TEMPLATE] 16028 instantiate the configuration header FILE 16029 16030Configuration files: 16031$config_files 16032 16033Configuration headers: 16034$config_headers 16035 16036Configuration commands: 16037$config_commands 16038 16039Report bugs to <dx-team@canonical.com>." 16040 16041_ACEOF 16042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16043ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16044ac_cs_version="\\ 16045bamf config.status 0.5.4 16046configured by $0, generated by GNU Autoconf 2.69, 16047 with options \\"\$ac_cs_config\\" 16048 16049Copyright (C) 2012 Free Software Foundation, Inc. 16050This config.status script is free software; the Free Software Foundation 16051gives unlimited permission to copy, distribute and modify it." 16052 16053ac_pwd='$ac_pwd' 16054srcdir='$srcdir' 16055INSTALL='$INSTALL' 16056MKDIR_P='$MKDIR_P' 16057AWK='$AWK' 16058test -n "\$AWK" || AWK=awk 16059_ACEOF 16060 16061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16062# The default lists apply if the user does not specify any file. 16063ac_need_defaults=: 16064while test $# != 0 16065do 16066 case $1 in 16067 --*=?*) 16068 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16070 ac_shift=: 16071 ;; 16072 --*=) 16073 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16074 ac_optarg= 16075 ac_shift=: 16076 ;; 16077 *) 16078 ac_option=$1 16079 ac_optarg=$2 16080 ac_shift=shift 16081 ;; 16082 esac 16083 16084 case $ac_option in 16085 # Handling of the options. 16086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16087 ac_cs_recheck=: ;; 16088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16089 $as_echo "$ac_cs_version"; exit ;; 16090 --config | --confi | --conf | --con | --co | --c ) 16091 $as_echo "$ac_cs_config"; exit ;; 16092 --debug | --debu | --deb | --de | --d | -d ) 16093 debug=: ;; 16094 --file | --fil | --fi | --f ) 16095 $ac_shift 16096 case $ac_optarg in 16097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16098 '') as_fn_error $? "missing file argument" ;; 16099 esac 16100 as_fn_append CONFIG_FILES " '$ac_optarg'" 16101 ac_need_defaults=false;; 16102 --header | --heade | --head | --hea ) 16103 $ac_shift 16104 case $ac_optarg in 16105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16106 esac 16107 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16108 ac_need_defaults=false;; 16109 --he | --h) 16110 # Conflict between --help and --header 16111 as_fn_error $? "ambiguous option: \`$1' 16112Try \`$0 --help' for more information.";; 16113 --help | --hel | -h ) 16114 $as_echo "$ac_cs_usage"; exit ;; 16115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16116 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16117 ac_cs_silent=: ;; 16118 16119 # This is an error. 16120 -*) as_fn_error $? "unrecognized option: \`$1' 16121Try \`$0 --help' for more information." ;; 16122 16123 *) as_fn_append ac_config_targets " $1" 16124 ac_need_defaults=false ;; 16125 16126 esac 16127 shift 16128done 16129 16130ac_configure_extra_args= 16131 16132if $ac_cs_silent; then 16133 exec 6>/dev/null 16134 ac_configure_extra_args="$ac_configure_extra_args --silent" 16135fi 16136 16137_ACEOF 16138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16139if \$ac_cs_recheck; then 16140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16141 shift 16142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16143 CONFIG_SHELL='$SHELL' 16144 export CONFIG_SHELL 16145 exec "\$@" 16146fi 16147 16148_ACEOF 16149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16150exec 5>>config.log 16151{ 16152 echo 16153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16154## Running $as_me. ## 16155_ASBOX 16156 $as_echo "$ac_log" 16157} >&5 16158 16159_ACEOF 16160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16161# 16162# INIT-COMMANDS 16163# 16164AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16165 16166 16167# The HP-UX ksh and POSIX shell print the target directory to stdout 16168# if CDPATH is set. 16169(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16170 16171sed_quote_subst='$sed_quote_subst' 16172double_quote_subst='$double_quote_subst' 16173delay_variable_subst='$delay_variable_subst' 16174enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16175macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16176macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16177enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16178pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16179enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16180shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16181SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16182ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16183PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16184host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16185host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16186host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16187build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16188build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16189build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16190SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16191Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16192GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16193EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16194FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16195LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16196NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16197LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16198max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16199ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16200exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16201lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16202lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16203lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16204lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16205lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16206reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16207reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16208OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16209deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16210file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16211file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16212want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16213DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16214sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16215AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16216AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16217archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16218STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16219RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16220old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16221old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16222old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16223lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16224CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16225CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16226compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16227GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16228lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16229lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16230lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16231lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16232lt_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"`' 16233lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16234nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16235lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16236lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16237objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16238MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16239lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16240lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16241lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16242lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16243lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16244need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16245MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16246DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16247NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16248LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16249OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16250OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16251libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16252shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16253extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16254archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16255enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16256export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16257whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16258compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16259old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16260old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16261archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16262archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16263module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16264module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16265with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16266allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16267no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16268hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16269hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16270hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16271hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16272hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16273hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16274hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16275inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16276link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16277always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16278export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16279exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16280include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16281prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16282postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16283file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16284variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16285need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16286need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16287version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16288runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16289shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16290shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16291libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16292library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16293soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16294install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16295postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16296postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16297finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16298finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16299hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16300sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16301configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16302configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16303hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16304enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16305enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16306enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16307old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16308striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16309 16310LTCC='$LTCC' 16311LTCFLAGS='$LTCFLAGS' 16312compiler='$compiler_DEFAULT' 16313 16314# A function that is used when there is no print builtin or printf. 16315func_fallback_echo () 16316{ 16317 eval 'cat <<_LTECHO_EOF 16318\$1 16319_LTECHO_EOF' 16320} 16321 16322# Quote evaled strings. 16323for var in SHELL \ 16324ECHO \ 16325PATH_SEPARATOR \ 16326SED \ 16327GREP \ 16328EGREP \ 16329FGREP \ 16330LD \ 16331NM \ 16332LN_S \ 16333lt_SP2NL \ 16334lt_NL2SP \ 16335reload_flag \ 16336OBJDUMP \ 16337deplibs_check_method \ 16338file_magic_cmd \ 16339file_magic_glob \ 16340want_nocaseglob \ 16341DLLTOOL \ 16342sharedlib_from_linklib_cmd \ 16343AR \ 16344AR_FLAGS \ 16345archiver_list_spec \ 16346STRIP \ 16347RANLIB \ 16348CC \ 16349CFLAGS \ 16350compiler \ 16351lt_cv_sys_global_symbol_pipe \ 16352lt_cv_sys_global_symbol_to_cdecl \ 16353lt_cv_sys_global_symbol_to_import \ 16354lt_cv_sys_global_symbol_to_c_name_address \ 16355lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16356lt_cv_nm_interface \ 16357nm_file_list_spec \ 16358lt_cv_truncate_bin \ 16359lt_prog_compiler_no_builtin_flag \ 16360lt_prog_compiler_pic \ 16361lt_prog_compiler_wl \ 16362lt_prog_compiler_static \ 16363lt_cv_prog_compiler_c_o \ 16364need_locks \ 16365MANIFEST_TOOL \ 16366DSYMUTIL \ 16367NMEDIT \ 16368LIPO \ 16369OTOOL \ 16370OTOOL64 \ 16371shrext_cmds \ 16372export_dynamic_flag_spec \ 16373whole_archive_flag_spec \ 16374compiler_needs_object \ 16375with_gnu_ld \ 16376allow_undefined_flag \ 16377no_undefined_flag \ 16378hardcode_libdir_flag_spec \ 16379hardcode_libdir_separator \ 16380exclude_expsyms \ 16381include_expsyms \ 16382file_list_spec \ 16383variables_saved_for_relink \ 16384libname_spec \ 16385library_names_spec \ 16386soname_spec \ 16387install_override_mode \ 16388finish_eval \ 16389old_striplib \ 16390striplib; do 16391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16392 *[\\\\\\\`\\"\\\$]*) 16393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16394 ;; 16395 *) 16396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16397 ;; 16398 esac 16399done 16400 16401# Double-quote double-evaled strings. 16402for var in reload_cmds \ 16403old_postinstall_cmds \ 16404old_postuninstall_cmds \ 16405old_archive_cmds \ 16406extract_expsyms_cmds \ 16407old_archive_from_new_cmds \ 16408old_archive_from_expsyms_cmds \ 16409archive_cmds \ 16410archive_expsym_cmds \ 16411module_cmds \ 16412module_expsym_cmds \ 16413export_symbols_cmds \ 16414prelink_cmds \ 16415postlink_cmds \ 16416postinstall_cmds \ 16417postuninstall_cmds \ 16418finish_cmds \ 16419sys_lib_search_path_spec \ 16420configure_time_dlsearch_path \ 16421configure_time_lt_sys_library_path; do 16422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16423 *[\\\\\\\`\\"\\\$]*) 16424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16425 ;; 16426 *) 16427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16428 ;; 16429 esac 16430done 16431 16432ac_aux_dir='$ac_aux_dir' 16433 16434# See if we are running on zsh, and set the options that allow our 16435# commands through without removal of \ escapes INIT. 16436if test -n "\${ZSH_VERSION+set}"; then 16437 setopt NO_GLOB_SUBST 16438fi 16439 16440 16441 PACKAGE='$PACKAGE' 16442 VERSION='$VERSION' 16443 RM='$RM' 16444 ofile='$ofile' 16445 16446 16447 16448 16449_ACEOF 16450 16451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16452 16453# Handling of arguments. 16454for ac_config_target in $ac_config_targets 16455do 16456 case $ac_config_target in 16457 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16458 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16459 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16460 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16461 "lib/libbamf-private/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libbamf-private/Makefile" ;; 16462 "lib/libbamf/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libbamf/Makefile" ;; 16463 "lib/libbamf/libbamf3.pc") CONFIG_FILES="$CONFIG_FILES lib/libbamf/libbamf3.pc" ;; 16464 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16465 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16466 "tests/bamfdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bamfdaemon/Makefile" ;; 16467 "tests/libbamf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libbamf/Makefile" ;; 16468 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 16469 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16470 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 16471 "doc/reference/libbamf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/libbamf/Makefile" ;; 16472 16473 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16474 esac 16475done 16476 16477 16478# If the user did not use the arguments to specify the items to instantiate, 16479# then the envvar interface is used. Set only those that are not. 16480# We use the long form for the default assignment because of an extremely 16481# bizarre bug on SunOS 4.1.3. 16482if $ac_need_defaults; then 16483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16486fi 16487 16488# Have a temporary directory for convenience. Make it in the build tree 16489# simply because there is no reason against having it here, and in addition, 16490# creating and moving files from /tmp can sometimes cause problems. 16491# Hook for its removal unless debugging. 16492# Note that there is a small window in which the directory will not be cleaned: 16493# after its creation but before its name has been assigned to `$tmp'. 16494$debug || 16495{ 16496 tmp= ac_tmp= 16497 trap 'exit_status=$? 16498 : "${ac_tmp:=$tmp}" 16499 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16500' 0 16501 trap 'as_fn_exit 1' 1 2 13 15 16502} 16503# Create a (secure) tmp directory for tmp files. 16504 16505{ 16506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16507 test -d "$tmp" 16508} || 16509{ 16510 tmp=./conf$$-$RANDOM 16511 (umask 077 && mkdir "$tmp") 16512} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16513ac_tmp=$tmp 16514 16515# Set up the scripts for CONFIG_FILES section. 16516# No need to generate them if there are no CONFIG_FILES. 16517# This happens for instance with `./config.status config.h'. 16518if test -n "$CONFIG_FILES"; then 16519 16520 16521ac_cr=`echo X | tr X '\015'` 16522# On cygwin, bash can eat \r inside `` if the user requested igncr. 16523# But we know of no other shell where ac_cr would be empty at this 16524# point, so we can use a bashism as a fallback. 16525if test "x$ac_cr" = x; then 16526 eval ac_cr=\$\'\\r\' 16527fi 16528ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16529if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16530 ac_cs_awk_cr='\\r' 16531else 16532 ac_cs_awk_cr=$ac_cr 16533fi 16534 16535echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16536_ACEOF 16537 16538 16539{ 16540 echo "cat >conf$$subs.awk <<_ACEOF" && 16541 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16542 echo "_ACEOF" 16543} >conf$$subs.sh || 16544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16545ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16546ac_delim='%!_!# ' 16547for ac_last_try in false false false false false :; do 16548 . ./conf$$subs.sh || 16549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16550 16551 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16552 if test $ac_delim_n = $ac_delim_num; then 16553 break 16554 elif $ac_last_try; then 16555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16556 else 16557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16558 fi 16559done 16560rm -f conf$$subs.sh 16561 16562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16563cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16564_ACEOF 16565sed -n ' 16566h 16567s/^/S["/; s/!.*/"]=/ 16568p 16569g 16570s/^[^!]*!// 16571:repl 16572t repl 16573s/'"$ac_delim"'$// 16574t delim 16575:nl 16576h 16577s/\(.\{148\}\)..*/\1/ 16578t more1 16579s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16580p 16581n 16582b repl 16583:more1 16584s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16585p 16586g 16587s/.\{148\}// 16588t nl 16589:delim 16590h 16591s/\(.\{148\}\)..*/\1/ 16592t more2 16593s/["\\]/\\&/g; s/^/"/; s/$/"/ 16594p 16595b 16596:more2 16597s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16598p 16599g 16600s/.\{148\}// 16601t delim 16602' <conf$$subs.awk | sed ' 16603/^[^""]/{ 16604 N 16605 s/\n// 16606} 16607' >>$CONFIG_STATUS || ac_write_fail=1 16608rm -f conf$$subs.awk 16609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16610_ACAWK 16611cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16612 for (key in S) S_is_set[key] = 1 16613 FS = "" 16614 16615} 16616{ 16617 line = $ 0 16618 nfields = split(line, field, "@") 16619 substed = 0 16620 len = length(field[1]) 16621 for (i = 2; i < nfields; i++) { 16622 key = field[i] 16623 keylen = length(key) 16624 if (S_is_set[key]) { 16625 value = S[key] 16626 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16627 len += length(value) + length(field[++i]) 16628 substed = 1 16629 } else 16630 len += 1 + keylen 16631 } 16632 16633 print line 16634} 16635 16636_ACAWK 16637_ACEOF 16638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16639if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16641else 16642 cat 16643fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16645_ACEOF 16646 16647# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16648# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16649# trailing colons and then remove the whole line if VPATH becomes empty 16650# (actually we leave an empty line to preserve line numbers). 16651if test "x$srcdir" = x.; then 16652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16653h 16654s/// 16655s/^/:/ 16656s/[ ]*$/:/ 16657s/:\$(srcdir):/:/g 16658s/:\${srcdir}:/:/g 16659s/:@srcdir@:/:/g 16660s/^:*// 16661s/:*$// 16662x 16663s/\(=[ ]*\).*/\1/ 16664G 16665s/\n// 16666s/^[^=]*=[ ]*$// 16667}' 16668fi 16669 16670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16671fi # test -n "$CONFIG_FILES" 16672 16673# Set up the scripts for CONFIG_HEADERS section. 16674# No need to generate them if there are no CONFIG_HEADERS. 16675# This happens for instance with `./config.status Makefile'. 16676if test -n "$CONFIG_HEADERS"; then 16677cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16678BEGIN { 16679_ACEOF 16680 16681# Transform confdefs.h into an awk script `defines.awk', embedded as 16682# here-document in config.status, that substitutes the proper values into 16683# config.h.in to produce config.h. 16684 16685# Create a delimiter string that does not exist in confdefs.h, to ease 16686# handling of long lines. 16687ac_delim='%!_!# ' 16688for ac_last_try in false false :; do 16689 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16690 if test -z "$ac_tt"; then 16691 break 16692 elif $ac_last_try; then 16693 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16694 else 16695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16696 fi 16697done 16698 16699# For the awk script, D is an array of macro values keyed by name, 16700# likewise P contains macro parameters if any. Preserve backslash 16701# newline sequences. 16702 16703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16704sed -n ' 16705s/.\{148\}/&'"$ac_delim"'/g 16706t rset 16707:rset 16708s/^[ ]*#[ ]*define[ ][ ]*/ / 16709t def 16710d 16711:def 16712s/\\$// 16713t bsnl 16714s/["\\]/\\&/g 16715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16716D["\1"]=" \3"/p 16717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16718d 16719:bsnl 16720s/["\\]/\\&/g 16721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16722D["\1"]=" \3\\\\\\n"\\/p 16723t cont 16724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16725t cont 16726d 16727:cont 16728n 16729s/.\{148\}/&'"$ac_delim"'/g 16730t clear 16731:clear 16732s/\\$// 16733t bsnlc 16734s/["\\]/\\&/g; s/^/"/; s/$/"/p 16735d 16736:bsnlc 16737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16738b cont 16739' <confdefs.h | sed ' 16740s/'"$ac_delim"'/"\\\ 16741"/g' >>$CONFIG_STATUS || ac_write_fail=1 16742 16743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16744 for (key in D) D_is_set[key] = 1 16745 FS = "" 16746} 16747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16748 line = \$ 0 16749 split(line, arg, " ") 16750 if (arg[1] == "#") { 16751 defundef = arg[2] 16752 mac1 = arg[3] 16753 } else { 16754 defundef = substr(arg[1], 2) 16755 mac1 = arg[2] 16756 } 16757 split(mac1, mac2, "(") #) 16758 macro = mac2[1] 16759 prefix = substr(line, 1, index(line, defundef) - 1) 16760 if (D_is_set[macro]) { 16761 # Preserve the white space surrounding the "#". 16762 print prefix "define", macro P[macro] D[macro] 16763 next 16764 } else { 16765 # Replace #undef with comments. This is necessary, for example, 16766 # in the case of _POSIX_SOURCE, which is predefined and required 16767 # on some systems where configure will not decide to define it. 16768 if (defundef == "undef") { 16769 print "/*", prefix defundef, macro, "*/" 16770 next 16771 } 16772 } 16773} 16774{ print } 16775_ACAWK 16776_ACEOF 16777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16778 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16779fi # test -n "$CONFIG_HEADERS" 16780 16781 16782eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16783shift 16784for ac_tag 16785do 16786 case $ac_tag in 16787 :[FHLC]) ac_mode=$ac_tag; continue;; 16788 esac 16789 case $ac_mode$ac_tag in 16790 :[FHL]*:*);; 16791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16792 :[FH]-) ac_tag=-:-;; 16793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16794 esac 16795 ac_save_IFS=$IFS 16796 IFS=: 16797 set x $ac_tag 16798 IFS=$ac_save_IFS 16799 shift 16800 ac_file=$1 16801 shift 16802 16803 case $ac_mode in 16804 :L) ac_source=$1;; 16805 :[FH]) 16806 ac_file_inputs= 16807 for ac_f 16808 do 16809 case $ac_f in 16810 -) ac_f="$ac_tmp/stdin";; 16811 *) # Look for the file first in the build tree, then in the source tree 16812 # (if the path is not absolute). The absolute path cannot be DOS-style, 16813 # because $ac_f cannot contain `:'. 16814 test -f "$ac_f" || 16815 case $ac_f in 16816 [\\/$]*) false;; 16817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16818 esac || 16819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16820 esac 16821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16822 as_fn_append ac_file_inputs " '$ac_f'" 16823 done 16824 16825 # Let's still pretend it is `configure' which instantiates (i.e., don't 16826 # use $as_me), people would be surprised to read: 16827 # /* config.h. Generated by config.status. */ 16828 configure_input='Generated from '` 16829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16830 `' by configure.' 16831 if test x"$ac_file" != x-; then 16832 configure_input="$ac_file. $configure_input" 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16834$as_echo "$as_me: creating $ac_file" >&6;} 16835 fi 16836 # Neutralize special characters interpreted by sed in replacement strings. 16837 case $configure_input in #( 16838 *\&* | *\|* | *\\* ) 16839 ac_sed_conf_input=`$as_echo "$configure_input" | 16840 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16841 *) ac_sed_conf_input=$configure_input;; 16842 esac 16843 16844 case $ac_tag in 16845 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16847 esac 16848 ;; 16849 esac 16850 16851 ac_dir=`$as_dirname -- "$ac_file" || 16852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16853 X"$ac_file" : 'X\(//\)[^/]' \| \ 16854 X"$ac_file" : 'X\(//\)$' \| \ 16855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16856$as_echo X"$ac_file" | 16857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16858 s//\1/ 16859 q 16860 } 16861 /^X\(\/\/\)[^/].*/{ 16862 s//\1/ 16863 q 16864 } 16865 /^X\(\/\/\)$/{ 16866 s//\1/ 16867 q 16868 } 16869 /^X\(\/\).*/{ 16870 s//\1/ 16871 q 16872 } 16873 s/.*/./; q'` 16874 as_dir="$ac_dir"; as_fn_mkdir_p 16875 ac_builddir=. 16876 16877case "$ac_dir" in 16878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16879*) 16880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16881 # A ".." for each directory in $ac_dir_suffix. 16882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16883 case $ac_top_builddir_sub in 16884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16886 esac ;; 16887esac 16888ac_abs_top_builddir=$ac_pwd 16889ac_abs_builddir=$ac_pwd$ac_dir_suffix 16890# for backward compatibility: 16891ac_top_builddir=$ac_top_build_prefix 16892 16893case $srcdir in 16894 .) # We are building in place. 16895 ac_srcdir=. 16896 ac_top_srcdir=$ac_top_builddir_sub 16897 ac_abs_top_srcdir=$ac_pwd ;; 16898 [\\/]* | ?:[\\/]* ) # Absolute name. 16899 ac_srcdir=$srcdir$ac_dir_suffix; 16900 ac_top_srcdir=$srcdir 16901 ac_abs_top_srcdir=$srcdir ;; 16902 *) # Relative name. 16903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16904 ac_top_srcdir=$ac_top_build_prefix$srcdir 16905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16906esac 16907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16908 16909 16910 case $ac_mode in 16911 :F) 16912 # 16913 # CONFIG_FILE 16914 # 16915 16916 case $INSTALL in 16917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16919 esac 16920 ac_MKDIR_P=$MKDIR_P 16921 case $MKDIR_P in 16922 [\\/$]* | ?:[\\/]* ) ;; 16923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16924 esac 16925_ACEOF 16926 16927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16928# If the template does not know about datarootdir, expand it. 16929# FIXME: This hack should be removed a few years after 2.60. 16930ac_datarootdir_hack=; ac_datarootdir_seen= 16931ac_sed_dataroot=' 16932/datarootdir/ { 16933 p 16934 q 16935} 16936/@datadir@/p 16937/@docdir@/p 16938/@infodir@/p 16939/@localedir@/p 16940/@mandir@/p' 16941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16942*datarootdir*) ac_datarootdir_seen=yes;; 16943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16945$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16946_ACEOF 16947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16948 ac_datarootdir_hack=' 16949 s&@datadir@&$datadir&g 16950 s&@docdir@&$docdir&g 16951 s&@infodir@&$infodir&g 16952 s&@localedir@&$localedir&g 16953 s&@mandir@&$mandir&g 16954 s&\\\${datarootdir}&$datarootdir&g' ;; 16955esac 16956_ACEOF 16957 16958# Neutralize VPATH when `$srcdir' = `.'. 16959# Shell code in configure.ac might set extrasub. 16960# FIXME: do we really want to maintain this feature? 16961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16962ac_sed_extra="$ac_vpsub 16963$extrasub 16964_ACEOF 16965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16966:t 16967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16968s|@configure_input@|$ac_sed_conf_input|;t t 16969s&@top_builddir@&$ac_top_builddir_sub&;t t 16970s&@top_build_prefix@&$ac_top_build_prefix&;t t 16971s&@srcdir@&$ac_srcdir&;t t 16972s&@abs_srcdir@&$ac_abs_srcdir&;t t 16973s&@top_srcdir@&$ac_top_srcdir&;t t 16974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16975s&@builddir@&$ac_builddir&;t t 16976s&@abs_builddir@&$ac_abs_builddir&;t t 16977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16978s&@INSTALL@&$ac_INSTALL&;t t 16979s&@MKDIR_P@&$ac_MKDIR_P&;t t 16980$ac_datarootdir_hack 16981" 16982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16983 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16984 16985test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16986 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16988 "$ac_tmp/out"`; test -z "$ac_out"; } && 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16990which seems to be undefined. Please make sure it is defined" >&5 16991$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16992which seems to be undefined. Please make sure it is defined" >&2;} 16993 16994 rm -f "$ac_tmp/stdin" 16995 case $ac_file in 16996 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16997 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16998 esac \ 16999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17000 ;; 17001 :H) 17002 # 17003 # CONFIG_HEADER 17004 # 17005 if test x"$ac_file" != x-; then 17006 { 17007 $as_echo "/* $configure_input */" \ 17008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17009 } >"$ac_tmp/config.h" \ 17010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17011 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17013$as_echo "$as_me: $ac_file is unchanged" >&6;} 17014 else 17015 rm -f "$ac_file" 17016 mv "$ac_tmp/config.h" "$ac_file" \ 17017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17018 fi 17019 else 17020 $as_echo "/* $configure_input */" \ 17021 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17022 || as_fn_error $? "could not create -" "$LINENO" 5 17023 fi 17024# Compute "$ac_file"'s index in $config_headers. 17025_am_arg="$ac_file" 17026_am_stamp_count=1 17027for _am_header in $config_headers :; do 17028 case $_am_header in 17029 $_am_arg | $_am_arg:* ) 17030 break ;; 17031 * ) 17032 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17033 esac 17034done 17035echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17036$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17037 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17038 X"$_am_arg" : 'X\(//\)$' \| \ 17039 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17040$as_echo X"$_am_arg" | 17041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17042 s//\1/ 17043 q 17044 } 17045 /^X\(\/\/\)[^/].*/{ 17046 s//\1/ 17047 q 17048 } 17049 /^X\(\/\/\)$/{ 17050 s//\1/ 17051 q 17052 } 17053 /^X\(\/\).*/{ 17054 s//\1/ 17055 q 17056 } 17057 s/.*/./; q'`/stamp-h$_am_stamp_count 17058 ;; 17059 17060 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17061$as_echo "$as_me: executing $ac_file commands" >&6;} 17062 ;; 17063 esac 17064 17065 17066 case $ac_file$ac_mode in 17067 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17068 # Older Autoconf quotes --file arguments for eval, but not when files 17069 # are listed without --file. Let's play safe and only enable the eval 17070 # if we detect the quoting. 17071 # TODO: see whether this extra hack can be removed once we start 17072 # requiring Autoconf 2.70 or later. 17073 case $CONFIG_FILES in #( 17074 *\'*) : 17075 eval set x "$CONFIG_FILES" ;; #( 17076 *) : 17077 set x $CONFIG_FILES ;; #( 17078 *) : 17079 ;; 17080esac 17081 shift 17082 # Used to flag and report bootstrapping failures. 17083 am_rc=0 17084 for am_mf 17085 do 17086 # Strip MF so we end up with the name of the file. 17087 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17088 # Check whether this is an Automake generated Makefile which includes 17089 # dependency-tracking related rules and includes. 17090 # Grep'ing the whole file directly is not great: AIX grep has a line 17091 # limit of 2048, but all sed's we know have understand at least 4000. 17092 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17093 || continue 17094 am_dirpart=`$as_dirname -- "$am_mf" || 17095$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17096 X"$am_mf" : 'X\(//\)[^/]' \| \ 17097 X"$am_mf" : 'X\(//\)$' \| \ 17098 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17099$as_echo X"$am_mf" | 17100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17101 s//\1/ 17102 q 17103 } 17104 /^X\(\/\/\)[^/].*/{ 17105 s//\1/ 17106 q 17107 } 17108 /^X\(\/\/\)$/{ 17109 s//\1/ 17110 q 17111 } 17112 /^X\(\/\).*/{ 17113 s//\1/ 17114 q 17115 } 17116 s/.*/./; q'` 17117 am_filepart=`$as_basename -- "$am_mf" || 17118$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17119 X"$am_mf" : 'X\(//\)$' \| \ 17120 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17121$as_echo X/"$am_mf" | 17122 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17123 s//\1/ 17124 q 17125 } 17126 /^X\/\(\/\/\)$/{ 17127 s//\1/ 17128 q 17129 } 17130 /^X\/\(\/\).*/{ 17131 s//\1/ 17132 q 17133 } 17134 s/.*/./; q'` 17135 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17136 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17137 | $MAKE -f - am--depfiles" >&5 17138 (cd "$am_dirpart" \ 17139 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17140 | $MAKE -f - am--depfiles) >&5 2>&5 17141 ac_status=$? 17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17143 (exit $ac_status); } || am_rc=$? 17144 done 17145 if test $am_rc -ne 0; then 17146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17148as_fn_error $? "Something went wrong bootstrapping makefile fragments 17149 for automatic dependency tracking. Try re-running configure with the 17150 '--disable-dependency-tracking' option to at least be able to build 17151 the package (albeit without support for automatic dependency tracking). 17152See \`config.log' for more details" "$LINENO" 5; } 17153 fi 17154 { am_dirpart=; unset am_dirpart;} 17155 { am_filepart=; unset am_filepart;} 17156 { am_mf=; unset am_mf;} 17157 { am_rc=; unset am_rc;} 17158 rm -f conftest-deps.mk 17159} 17160 ;; 17161 "libtool":C) 17162 17163 # See if we are running on zsh, and set the options that allow our 17164 # commands through without removal of \ escapes. 17165 if test -n "${ZSH_VERSION+set}"; then 17166 setopt NO_GLOB_SUBST 17167 fi 17168 17169 cfgfile=${ofile}T 17170 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17171 $RM "$cfgfile" 17172 17173 cat <<_LT_EOF >> "$cfgfile" 17174#! $SHELL 17175# Generated automatically by $as_me ($PACKAGE) $VERSION 17176# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17177 17178# Provide generalized library-building support services. 17179# Written by Gordon Matzigkeit, 1996 17180 17181# Copyright (C) 2014 Free Software Foundation, Inc. 17182# This is free software; see the source for copying conditions. There is NO 17183# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17184 17185# GNU Libtool is free software; you can redistribute it and/or modify 17186# it under the terms of the GNU General Public License as published by 17187# the Free Software Foundation; either version 2 of of the License, or 17188# (at your option) any later version. 17189# 17190# As a special exception to the GNU General Public License, if you 17191# distribute this file as part of a program or library that is built 17192# using GNU Libtool, you may include this file under the same 17193# distribution terms that you use for the rest of that program. 17194# 17195# GNU Libtool is distributed in the hope that it will be useful, but 17196# WITHOUT ANY WARRANTY; without even the implied warranty of 17197# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17198# GNU General Public License for more details. 17199# 17200# You should have received a copy of the GNU General Public License 17201# along with this program. If not, see <http://www.gnu.org/licenses/>. 17202 17203 17204# The names of the tagged configurations supported by this script. 17205available_tags='' 17206 17207# Configured defaults for sys_lib_dlsearch_path munging. 17208: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17209 17210# ### BEGIN LIBTOOL CONFIG 17211 17212# Whether or not to build static libraries. 17213build_old_libs=$enable_static 17214 17215# Which release of libtool.m4 was used? 17216macro_version=$macro_version 17217macro_revision=$macro_revision 17218 17219# Whether or not to build shared libraries. 17220build_libtool_libs=$enable_shared 17221 17222# What type of objects to build. 17223pic_mode=$pic_mode 17224 17225# Whether or not to optimize for fast installation. 17226fast_install=$enable_fast_install 17227 17228# Shared archive member basename,for filename based shared library versioning on AIX. 17229shared_archive_member_spec=$shared_archive_member_spec 17230 17231# Shell to use when invoking shell scripts. 17232SHELL=$lt_SHELL 17233 17234# An echo program that protects backslashes. 17235ECHO=$lt_ECHO 17236 17237# The PATH separator for the build system. 17238PATH_SEPARATOR=$lt_PATH_SEPARATOR 17239 17240# The host system. 17241host_alias=$host_alias 17242host=$host 17243host_os=$host_os 17244 17245# The build system. 17246build_alias=$build_alias 17247build=$build 17248build_os=$build_os 17249 17250# A sed program that does not truncate output. 17251SED=$lt_SED 17252 17253# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17254Xsed="\$SED -e 1s/^X//" 17255 17256# A grep program that handles long lines. 17257GREP=$lt_GREP 17258 17259# An ERE matcher. 17260EGREP=$lt_EGREP 17261 17262# A literal string matcher. 17263FGREP=$lt_FGREP 17264 17265# A BSD- or MS-compatible name lister. 17266NM=$lt_NM 17267 17268# Whether we need soft or hard links. 17269LN_S=$lt_LN_S 17270 17271# What is the maximum length of a command? 17272max_cmd_len=$max_cmd_len 17273 17274# Object file suffix (normally "o"). 17275objext=$ac_objext 17276 17277# Executable file suffix (normally ""). 17278exeext=$exeext 17279 17280# whether the shell understands "unset". 17281lt_unset=$lt_unset 17282 17283# turn spaces into newlines. 17284SP2NL=$lt_lt_SP2NL 17285 17286# turn newlines into spaces. 17287NL2SP=$lt_lt_NL2SP 17288 17289# convert \$build file names to \$host format. 17290to_host_file_cmd=$lt_cv_to_host_file_cmd 17291 17292# convert \$build files to toolchain format. 17293to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17294 17295# An object symbol dumper. 17296OBJDUMP=$lt_OBJDUMP 17297 17298# Method to check whether dependent libraries are shared objects. 17299deplibs_check_method=$lt_deplibs_check_method 17300 17301# Command to use when deplibs_check_method = "file_magic". 17302file_magic_cmd=$lt_file_magic_cmd 17303 17304# How to find potential files when deplibs_check_method = "file_magic". 17305file_magic_glob=$lt_file_magic_glob 17306 17307# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17308want_nocaseglob=$lt_want_nocaseglob 17309 17310# DLL creation program. 17311DLLTOOL=$lt_DLLTOOL 17312 17313# Command to associate shared and link libraries. 17314sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17315 17316# The archiver. 17317AR=$lt_AR 17318 17319# Flags to create an archive. 17320AR_FLAGS=$lt_AR_FLAGS 17321 17322# How to feed a file listing to the archiver. 17323archiver_list_spec=$lt_archiver_list_spec 17324 17325# A symbol stripping program. 17326STRIP=$lt_STRIP 17327 17328# Commands used to install an old-style archive. 17329RANLIB=$lt_RANLIB 17330old_postinstall_cmds=$lt_old_postinstall_cmds 17331old_postuninstall_cmds=$lt_old_postuninstall_cmds 17332 17333# Whether to use a lock for old archive extraction. 17334lock_old_archive_extraction=$lock_old_archive_extraction 17335 17336# A C compiler. 17337LTCC=$lt_CC 17338 17339# LTCC compiler flags. 17340LTCFLAGS=$lt_CFLAGS 17341 17342# Take the output of nm and produce a listing of raw symbols and C names. 17343global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17344 17345# Transform the output of nm in a proper C declaration. 17346global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17347 17348# Transform the output of nm into a list of symbols to manually relocate. 17349global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17350 17351# Transform the output of nm in a C name address pair. 17352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17353 17354# Transform the output of nm in a C name address pair when lib prefix is needed. 17355global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17356 17357# The name lister interface. 17358nm_interface=$lt_lt_cv_nm_interface 17359 17360# Specify filename containing input files for \$NM. 17361nm_file_list_spec=$lt_nm_file_list_spec 17362 17363# The root where to search for dependent libraries,and where our libraries should be installed. 17364lt_sysroot=$lt_sysroot 17365 17366# Command to truncate a binary pipe. 17367lt_truncate_bin=$lt_lt_cv_truncate_bin 17368 17369# The name of the directory that contains temporary libtool files. 17370objdir=$objdir 17371 17372# Used to examine libraries when file_magic_cmd begins with "file". 17373MAGIC_CMD=$MAGIC_CMD 17374 17375# Must we lock files when doing compilation? 17376need_locks=$lt_need_locks 17377 17378# Manifest tool. 17379MANIFEST_TOOL=$lt_MANIFEST_TOOL 17380 17381# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17382DSYMUTIL=$lt_DSYMUTIL 17383 17384# Tool to change global to local symbols on Mac OS X. 17385NMEDIT=$lt_NMEDIT 17386 17387# Tool to manipulate fat objects and archives on Mac OS X. 17388LIPO=$lt_LIPO 17389 17390# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17391OTOOL=$lt_OTOOL 17392 17393# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17394OTOOL64=$lt_OTOOL64 17395 17396# Old archive suffix (normally "a"). 17397libext=$libext 17398 17399# Shared library suffix (normally ".so"). 17400shrext_cmds=$lt_shrext_cmds 17401 17402# The commands to extract the exported symbol list from a shared archive. 17403extract_expsyms_cmds=$lt_extract_expsyms_cmds 17404 17405# Variables whose values should be saved in libtool wrapper scripts and 17406# restored at link time. 17407variables_saved_for_relink=$lt_variables_saved_for_relink 17408 17409# Do we need the "lib" prefix for modules? 17410need_lib_prefix=$need_lib_prefix 17411 17412# Do we need a version for libraries? 17413need_version=$need_version 17414 17415# Library versioning type. 17416version_type=$version_type 17417 17418# Shared library runtime path variable. 17419runpath_var=$runpath_var 17420 17421# Shared library path variable. 17422shlibpath_var=$shlibpath_var 17423 17424# Is shlibpath searched before the hard-coded library search path? 17425shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17426 17427# Format of library name prefix. 17428libname_spec=$lt_libname_spec 17429 17430# List of archive names. First name is the real one, the rest are links. 17431# The last name is the one that the linker finds with -lNAME 17432library_names_spec=$lt_library_names_spec 17433 17434# The coded name of the library, if different from the real name. 17435soname_spec=$lt_soname_spec 17436 17437# Permission mode override for installation of shared libraries. 17438install_override_mode=$lt_install_override_mode 17439 17440# Command to use after installation of a shared archive. 17441postinstall_cmds=$lt_postinstall_cmds 17442 17443# Command to use after uninstallation of a shared archive. 17444postuninstall_cmds=$lt_postuninstall_cmds 17445 17446# Commands used to finish a libtool library installation in a directory. 17447finish_cmds=$lt_finish_cmds 17448 17449# As "finish_cmds", except a single script fragment to be evaled but 17450# not shown. 17451finish_eval=$lt_finish_eval 17452 17453# Whether we should hardcode library paths into libraries. 17454hardcode_into_libs=$hardcode_into_libs 17455 17456# Compile-time system search path for libraries. 17457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17458 17459# Detected run-time system search path for libraries. 17460sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17461 17462# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17463configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17464 17465# Whether dlopen is supported. 17466dlopen_support=$enable_dlopen 17467 17468# Whether dlopen of programs is supported. 17469dlopen_self=$enable_dlopen_self 17470 17471# Whether dlopen of statically linked programs is supported. 17472dlopen_self_static=$enable_dlopen_self_static 17473 17474# Commands to strip libraries. 17475old_striplib=$lt_old_striplib 17476striplib=$lt_striplib 17477 17478 17479# The linker used to build libraries. 17480LD=$lt_LD 17481 17482# How to create reloadable object files. 17483reload_flag=$lt_reload_flag 17484reload_cmds=$lt_reload_cmds 17485 17486# Commands used to build an old-style archive. 17487old_archive_cmds=$lt_old_archive_cmds 17488 17489# A language specific compiler. 17490CC=$lt_compiler 17491 17492# Is the compiler the GNU compiler? 17493with_gcc=$GCC 17494 17495# Compiler flag to turn off builtin functions. 17496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17497 17498# Additional compiler flags for building library objects. 17499pic_flag=$lt_lt_prog_compiler_pic 17500 17501# How to pass a linker flag through the compiler. 17502wl=$lt_lt_prog_compiler_wl 17503 17504# Compiler flag to prevent dynamic linking. 17505link_static_flag=$lt_lt_prog_compiler_static 17506 17507# Does compiler simultaneously support -c and -o options? 17508compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17509 17510# Whether or not to add -lc for building shared libraries. 17511build_libtool_need_lc=$archive_cmds_need_lc 17512 17513# Whether or not to disallow shared libs when runtime libs are static. 17514allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17515 17516# Compiler flag to allow reflexive dlopens. 17517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17518 17519# Compiler flag to generate shared objects directly from archives. 17520whole_archive_flag_spec=$lt_whole_archive_flag_spec 17521 17522# Whether the compiler copes with passing no objects directly. 17523compiler_needs_object=$lt_compiler_needs_object 17524 17525# Create an old-style archive from a shared archive. 17526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17527 17528# Create a temporary old-style archive to link instead of a shared archive. 17529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17530 17531# Commands used to build a shared archive. 17532archive_cmds=$lt_archive_cmds 17533archive_expsym_cmds=$lt_archive_expsym_cmds 17534 17535# Commands used to build a loadable module if different from building 17536# a shared archive. 17537module_cmds=$lt_module_cmds 17538module_expsym_cmds=$lt_module_expsym_cmds 17539 17540# Whether we are building with GNU ld or not. 17541with_gnu_ld=$lt_with_gnu_ld 17542 17543# Flag that allows shared libraries with undefined symbols to be built. 17544allow_undefined_flag=$lt_allow_undefined_flag 17545 17546# Flag that enforces no undefined symbols. 17547no_undefined_flag=$lt_no_undefined_flag 17548 17549# Flag to hardcode \$libdir into a binary during linking. 17550# This must work even if \$libdir does not exist 17551hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17552 17553# Whether we need a single "-rpath" flag with a separated argument. 17554hardcode_libdir_separator=$lt_hardcode_libdir_separator 17555 17556# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17557# DIR into the resulting binary. 17558hardcode_direct=$hardcode_direct 17559 17560# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17561# DIR into the resulting binary and the resulting library dependency is 17562# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17563# library is relocated. 17564hardcode_direct_absolute=$hardcode_direct_absolute 17565 17566# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17567# into the resulting binary. 17568hardcode_minus_L=$hardcode_minus_L 17569 17570# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17571# into the resulting binary. 17572hardcode_shlibpath_var=$hardcode_shlibpath_var 17573 17574# Set to "yes" if building a shared library automatically hardcodes DIR 17575# into the library and all subsequent libraries and executables linked 17576# against it. 17577hardcode_automatic=$hardcode_automatic 17578 17579# Set to yes if linker adds runtime paths of dependent libraries 17580# to runtime path list. 17581inherit_rpath=$inherit_rpath 17582 17583# Whether libtool must link a program against all its dependency libraries. 17584link_all_deplibs=$link_all_deplibs 17585 17586# Set to "yes" if exported symbols are required. 17587always_export_symbols=$always_export_symbols 17588 17589# The commands to list exported symbols. 17590export_symbols_cmds=$lt_export_symbols_cmds 17591 17592# Symbols that should not be listed in the preloaded symbols. 17593exclude_expsyms=$lt_exclude_expsyms 17594 17595# Symbols that must always be exported. 17596include_expsyms=$lt_include_expsyms 17597 17598# Commands necessary for linking programs (against libraries) with templates. 17599prelink_cmds=$lt_prelink_cmds 17600 17601# Commands necessary for finishing linking programs. 17602postlink_cmds=$lt_postlink_cmds 17603 17604# Specify filename containing input files. 17605file_list_spec=$lt_file_list_spec 17606 17607# How to hardcode a shared library path into an executable. 17608hardcode_action=$hardcode_action 17609 17610# ### END LIBTOOL CONFIG 17611 17612_LT_EOF 17613 17614 cat <<'_LT_EOF' >> "$cfgfile" 17615 17616# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17617 17618# func_munge_path_list VARIABLE PATH 17619# ----------------------------------- 17620# VARIABLE is name of variable containing _space_ separated list of 17621# directories to be munged by the contents of PATH, which is string 17622# having a format: 17623# "DIR[:DIR]:" 17624# string "DIR[ DIR]" will be prepended to VARIABLE 17625# ":DIR[:DIR]" 17626# string "DIR[ DIR]" will be appended to VARIABLE 17627# "DIRP[:DIRP]::[DIRA:]DIRA" 17628# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17629# "DIRA[ DIRA]" will be appended to VARIABLE 17630# "DIR[:DIR]" 17631# VARIABLE will be replaced by "DIR[ DIR]" 17632func_munge_path_list () 17633{ 17634 case x$2 in 17635 x) 17636 ;; 17637 *:) 17638 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17639 ;; 17640 x:*) 17641 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17642 ;; 17643 *::*) 17644 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17645 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17646 ;; 17647 *) 17648 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17649 ;; 17650 esac 17651} 17652 17653 17654# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17655func_cc_basename () 17656{ 17657 for cc_temp in $*""; do 17658 case $cc_temp in 17659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17661 \-*) ;; 17662 *) break;; 17663 esac 17664 done 17665 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17666} 17667 17668 17669# ### END FUNCTIONS SHARED WITH CONFIGURE 17670 17671_LT_EOF 17672 17673 case $host_os in 17674 aix3*) 17675 cat <<\_LT_EOF >> "$cfgfile" 17676# AIX sometimes has problems with the GCC collect2 program. For some 17677# reason, if we set the COLLECT_NAMES environment variable, the problems 17678# vanish in a puff of smoke. 17679if test set != "${COLLECT_NAMES+set}"; then 17680 COLLECT_NAMES= 17681 export COLLECT_NAMES 17682fi 17683_LT_EOF 17684 ;; 17685 esac 17686 17687 17688ltmain=$ac_aux_dir/ltmain.sh 17689 17690 17691 # We use sed instead of cat because bash on DJGPP gets confused if 17692 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17693 # text mode, it properly converts lines to CR/LF. This bash problem 17694 # is reportedly fixed, but why not run on old versions too? 17695 sed '$q' "$ltmain" >> "$cfgfile" \ 17696 || (rm -f "$cfgfile"; exit 1) 17697 17698 mv -f "$cfgfile" "$ofile" || 17699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17700 chmod +x "$ofile" 17701 17702 ;; 17703 17704 esac 17705done # for ac_tag 17706 17707 17708as_fn_exit 0 17709_ACEOF 17710ac_clean_files=$ac_clean_files_save 17711 17712test $ac_write_fail = 0 || 17713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17714 17715 17716# configure is writing to config.log, and then calls config.status. 17717# config.status does its own redirection, appending to config.log. 17718# Unfortunately, on DOS this fails, as config.log is still kept open 17719# by configure, so config.status won't be able to write to it; its 17720# output is simply discarded. So we exec the FD to /dev/null, 17721# effectively closing config.log, so it can be properly (re)opened and 17722# appended to by config.status. When coming back to configure, we 17723# need to make the FD available again. 17724if test "$no_create" != yes; then 17725 ac_cs_success=: 17726 ac_config_status_args= 17727 test "$silent" = yes && 17728 ac_config_status_args="$ac_config_status_args --quiet" 17729 exec 5>/dev/null 17730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17731 exec 5>>config.log 17732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17733 # would make configure fail if this is the last instruction. 17734 $ac_cs_success || as_fn_exit 1 17735fi 17736if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17738$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17739fi 17740 17741 17742cat <<EOF 17743 17744${PACKAGE}-${VERSION} 17745 17746 Build Environment 17747 Install Prefix: ${prefix} 17748 Introspection: ${enable_introspection} 17749 Headless tests: ${enable_headless_tests} 17750 Coverage Reporting: ${use_gcov} 17751 Export actions menus: ${enable_export_actions_menu} 17752 17753EOF 17754