1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libgpod 0.8.3. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libgpod' 589PACKAGE_TARNAME='libgpod' 590PACKAGE_VERSION='0.8.3' 591PACKAGE_STRING='libgpod 0.8.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="configure.ac" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636GMCS_FLAGS 637HAVE_MONO_FALSE 638HAVE_MONO_TRUE 639GLIBSHARP_LIBS 640GLIBSHARP_CFLAGS 641GDKSHARP_LIBS 642GDKSHARP_CFLAGS 643MONO 644MCS 645MONO_MODULE_LIBS 646MONO_MODULE_CFLAGS 647expanded_libdir 648HAVE_PYTHON_FALSE 649HAVE_PYTHON_TRUE 650SWIG_LIB 651SWIG 652PYTHON_LDFLAGS 653PYTHON_INCLUDES 654pkgpyexecdir 655pyexecdir 656pkgpythondir 657pythondir 658PYTHON_PLATFORM 659PYTHON_EXEC_PREFIX 660PYTHON_PREFIX 661PYTHON_VERSION 662PYTHON 663GTK_DOC_USE_REBASE_FALSE 664GTK_DOC_USE_REBASE_TRUE 665GTK_DOC_USE_LIBTOOL_FALSE 666GTK_DOC_USE_LIBTOOL_TRUE 667GTK_DOC_BUILD_PDF_FALSE 668GTK_DOC_BUILD_PDF_TRUE 669GTK_DOC_BUILD_HTML_FALSE 670GTK_DOC_BUILD_HTML_TRUE 671ENABLE_GTK_DOC_FALSE 672ENABLE_GTK_DOC_TRUE 673GTKDOC_DEPS_LIBS 674GTKDOC_DEPS_CFLAGS 675HTML_DIR 676GTKDOC_MKPDF 677GTKDOC_REBASE 678GTKDOC_CHECK 679MKINSTALLDIRS 680POSUB 681POFILES 682PO_IN_DATADIR_FALSE 683PO_IN_DATADIR_TRUE 684INTLLIBS 685INSTOBJEXT 686GMOFILES 687CATOBJEXT 688CATALOGS 689MSGFMT_OPTS 690GETTEXT_PACKAGE 691HAVE_PYGOBJECT_FALSE 692HAVE_PYGOBJECT_TRUE 693PYGOBJECT_LIBS 694PYGOBJECT_CFLAGS 695GDKPIXBUF_REQ 696HAVE_GDKPIXBUF_FALSE 697HAVE_GDKPIXBUF_TRUE 698GDKPIXBUF_LIBS 699GDKPIXBUF_CFLAGS 700LIBXML_LIBS 701LIBXML_CFLAGS 702HAVE_TAGLIB_FALSE 703HAVE_TAGLIB_TRUE 704TAGLIB_LIBS 705TAGLIB_CFLAGS 706LIBGPOD_BLOB_DIR 707TMPMOUNTDIR 708udevdir 709USE_UDEV_FALSE 710USE_UDEV_TRUE 711HAVE_LIBIMOBILEDEVICE_FALSE 712HAVE_LIBIMOBILEDEVICE_TRUE 713LIBIMOBILEDEVICE_REQ 714LIBIMOBILEDEVICE_LIBS 715LIBIMOBILEDEVICE_CFLAGS 716HAVE_HAL_FALSE 717HAVE_HAL_TRUE 718HAL_LIBS 719HAL_CFLAGS 720HALFDIDIR 721HALCALLOUTSDIR 722HAVE_ZLIB_FALSE 723HAVE_ZLIB_TRUE 724Z_LIBS 725HAVE_LIBUSB_FALSE 726HAVE_LIBUSB_TRUE 727LIBUSB_LIBS 728LIBUSB_CFLAGS 729HAVE_SGUTILS_FALSE 730HAVE_SGUTILS_TRUE 731SGUTILS_LIBS 732LIBGPOD_LIBS 733LIBGPOD_CFLAGS 734PKG_CONFIG_LIBDIR 735PKG_CONFIG_PATH 736PKG_CONFIG 737DATADIRNAME 738ALL_LINGUAS 739INTLTOOL_PERL 740GMSGFMT 741MSGFMT 742MSGMERGE 743XGETTEXT 744INTLTOOL_POLICY_RULE 745INTLTOOL_SERVICE_RULE 746INTLTOOL_THEME_RULE 747INTLTOOL_SCHEMAS_RULE 748INTLTOOL_CAVES_RULE 749INTLTOOL_XML_NOMERGE_RULE 750INTLTOOL_XML_RULE 751INTLTOOL_KBD_RULE 752INTLTOOL_XAM_RULE 753INTLTOOL_UI_RULE 754INTLTOOL_SOUNDLIST_RULE 755INTLTOOL_SHEET_RULE 756INTLTOOL_SERVER_RULE 757INTLTOOL_PONG_RULE 758INTLTOOL_OAF_RULE 759INTLTOOL_PROP_RULE 760INTLTOOL_KEYS_RULE 761INTLTOOL_DIRECTORY_RULE 762INTLTOOL_DESKTOP_RULE 763intltool__v_merge_options_0 764intltool__v_merge_options_ 765INTLTOOL_V_MERGE_OPTIONS 766INTLTOOL__v_MERGE_0 767INTLTOOL__v_MERGE_ 768INTLTOOL_V_MERGE 769INTLTOOL_EXTRACT 770INTLTOOL_MERGE 771INTLTOOL_UPDATE 772USE_NLS 773CXXCPP 774OTOOL64 775OTOOL 776LIPO 777NMEDIT 778DSYMUTIL 779MANIFEST_TOOL 780RANLIB 781ac_ct_AR 782AR 783DLLTOOL 784OBJDUMP 785LN_S 786NM 787ac_ct_DUMPBIN 788DUMPBIN 789LIBTOOL 790LD 791FGREP 792SED 793host_os 794host_vendor 795host_cpu 796host 797build_os 798build_vendor 799build_cpu 800build 801am__fastdepCXX_FALSE 802am__fastdepCXX_TRUE 803CXXDEPMODE 804ac_ct_CXX 805CXXFLAGS 806CXX 807EGREP 808GREP 809CPP 810am__fastdepCC_FALSE 811am__fastdepCC_TRUE 812CCDEPMODE 813am__nodep 814AMDEPBACKSLASH 815AMDEP_FALSE 816AMDEP_TRUE 817am__quote 818am__include 819DEPDIR 820OBJEXT 821EXEEXT 822ac_ct_CC 823CPPFLAGS 824LDFLAGS 825CFLAGS 826CC 827MAINT 828MAINTAINER_MODE_FALSE 829MAINTAINER_MODE_TRUE 830ACLOCAL_AMFLAGS 831AM_BACKSLASH 832AM_DEFAULT_VERBOSITY 833AM_DEFAULT_V 834AM_V 835am__untar 836am__tar 837AMTAR 838am__leading_dot 839SET_MAKE 840AWK 841mkdir_p 842MKDIR_P 843INSTALL_STRIP_PROGRAM 844STRIP 845install_sh 846MAKEINFO 847AUTOHEADER 848AUTOMAKE 849AUTOCONF 850ACLOCAL 851VERSION 852PACKAGE 853CYGPATH_W 854am__isrc 855INSTALL_DATA 856INSTALL_SCRIPT 857INSTALL_PROGRAM 858LIBGPOD_SO_VERSION 859target_alias 860host_alias 861build_alias 862LIBS 863ECHO_T 864ECHO_N 865ECHO_C 866DEFS 867mandir 868localedir 869libdir 870psdir 871pdfdir 872dvidir 873htmldir 874infodir 875docdir 876oldincludedir 877includedir 878localstatedir 879sharedstatedir 880sysconfdir 881datadir 882datarootdir 883libexecdir 884sbindir 885bindir 886program_transform_name 887prefix 888exec_prefix 889PACKAGE_URL 890PACKAGE_BUGREPORT 891PACKAGE_STRING 892PACKAGE_VERSION 893PACKAGE_TARNAME 894PACKAGE_NAME 895PATH_SEPARATOR 896SHELL' 897ac_subst_files='' 898ac_user_opts=' 899enable_option_checking 900enable_silent_rules 901enable_maintainer_mode 902enable_dependency_tracking 903with_gnu_ld 904enable_shared 905enable_static 906with_pic 907enable_fast_install 908with_sysroot 909enable_libtool_lock 910enable_nls 911with_hal 912with_hal_callouts_dir 913with_hal_fdi_dir 914with_libimobiledevice 915enable_udev 916with_udev_dir 917with_temp_mount_dir 918with_libgpod_blob_dir 919enable_libxml 920enable_gdk_pixbuf 921enable_pygobject 922with_html_dir 923enable_gtk_doc 924enable_gtk_doc_html 925enable_gtk_doc_pdf 926with_python 927with_mono 928enable_more_warnings 929' 930 ac_precious_vars='build_alias 931host_alias 932target_alias 933CC 934CFLAGS 935LDFLAGS 936LIBS 937CPPFLAGS 938CPP 939CXX 940CXXFLAGS 941CCC 942CXXCPP 943PKG_CONFIG 944PKG_CONFIG_PATH 945PKG_CONFIG_LIBDIR 946LIBGPOD_CFLAGS 947LIBGPOD_LIBS 948LIBUSB_CFLAGS 949LIBUSB_LIBS 950HAL_CFLAGS 951HAL_LIBS 952LIBIMOBILEDEVICE_CFLAGS 953LIBIMOBILEDEVICE_LIBS 954TAGLIB_CFLAGS 955TAGLIB_LIBS 956LIBXML_CFLAGS 957LIBXML_LIBS 958GDKPIXBUF_CFLAGS 959GDKPIXBUF_LIBS 960PYGOBJECT_CFLAGS 961PYGOBJECT_LIBS 962GTKDOC_DEPS_CFLAGS 963GTKDOC_DEPS_LIBS 964PYTHON 965MONO_MODULE_CFLAGS 966MONO_MODULE_LIBS 967GDKSHARP_CFLAGS 968GDKSHARP_LIBS 969GLIBSHARP_CFLAGS 970GLIBSHARP_LIBS' 971 972 973# Initialize some variables set by options. 974ac_init_help= 975ac_init_version=false 976ac_unrecognized_opts= 977ac_unrecognized_sep= 978# The variables have the same names as the options, with 979# dashes changed to underlines. 980cache_file=/dev/null 981exec_prefix=NONE 982no_create= 983no_recursion= 984prefix=NONE 985program_prefix=NONE 986program_suffix=NONE 987program_transform_name=s,x,x, 988silent= 989site= 990srcdir= 991verbose= 992x_includes=NONE 993x_libraries=NONE 994 995# Installation directory options. 996# These are left unexpanded so users can "make install exec_prefix=/foo" 997# and all the variables that are supposed to be based on exec_prefix 998# by default will actually change. 999# Use braces instead of parens because sh, perl, etc. also accept them. 1000# (The list follows the same order as the GNU Coding Standards.) 1001bindir='${exec_prefix}/bin' 1002sbindir='${exec_prefix}/sbin' 1003libexecdir='${exec_prefix}/libexec' 1004datarootdir='${prefix}/share' 1005datadir='${datarootdir}' 1006sysconfdir='${prefix}/etc' 1007sharedstatedir='${prefix}/com' 1008localstatedir='${prefix}/var' 1009includedir='${prefix}/include' 1010oldincludedir='/usr/include' 1011docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1012infodir='${datarootdir}/info' 1013htmldir='${docdir}' 1014dvidir='${docdir}' 1015pdfdir='${docdir}' 1016psdir='${docdir}' 1017libdir='${exec_prefix}/lib' 1018localedir='${datarootdir}/locale' 1019mandir='${datarootdir}/man' 1020 1021ac_prev= 1022ac_dashdash= 1023for ac_option 1024do 1025 # If the previous option needs an argument, assign it. 1026 if test -n "$ac_prev"; then 1027 eval $ac_prev=\$ac_option 1028 ac_prev= 1029 continue 1030 fi 1031 1032 case $ac_option in 1033 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1034 *=) ac_optarg= ;; 1035 *) ac_optarg=yes ;; 1036 esac 1037 1038 # Accept the important Cygnus configure options, so we can diagnose typos. 1039 1040 case $ac_dashdash$ac_option in 1041 --) 1042 ac_dashdash=yes ;; 1043 1044 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1045 ac_prev=bindir ;; 1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1047 bindir=$ac_optarg ;; 1048 1049 -build | --build | --buil | --bui | --bu) 1050 ac_prev=build_alias ;; 1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1052 build_alias=$ac_optarg ;; 1053 1054 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1056 ac_prev=cache_file ;; 1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1059 cache_file=$ac_optarg ;; 1060 1061 --config-cache | -C) 1062 cache_file=config.cache ;; 1063 1064 -datadir | --datadir | --datadi | --datad) 1065 ac_prev=datadir ;; 1066 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1067 datadir=$ac_optarg ;; 1068 1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1070 | --dataroo | --dataro | --datar) 1071 ac_prev=datarootdir ;; 1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1074 datarootdir=$ac_optarg ;; 1075 1076 -disable-* | --disable-*) 1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1078 # Reject names that are not valid shell variable names. 1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1080 as_fn_error $? "invalid feature name: $ac_useropt" 1081 ac_useropt_orig=$ac_useropt 1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1083 case $ac_user_opts in 1084 *" 1085"enable_$ac_useropt" 1086"*) ;; 1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1088 ac_unrecognized_sep=', ';; 1089 esac 1090 eval enable_$ac_useropt=no ;; 1091 1092 -docdir | --docdir | --docdi | --doc | --do) 1093 ac_prev=docdir ;; 1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1095 docdir=$ac_optarg ;; 1096 1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1098 ac_prev=dvidir ;; 1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1100 dvidir=$ac_optarg ;; 1101 1102 -enable-* | --enable-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid feature name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"enable_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval enable_$ac_useropt=\$ac_optarg ;; 1117 1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1120 | --exec | --exe | --ex) 1121 ac_prev=exec_prefix ;; 1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1124 | --exec=* | --exe=* | --ex=*) 1125 exec_prefix=$ac_optarg ;; 1126 1127 -gas | --gas | --ga | --g) 1128 # Obsolete; use --with-gas. 1129 with_gas=yes ;; 1130 1131 -help | --help | --hel | --he | -h) 1132 ac_init_help=long ;; 1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1134 ac_init_help=recursive ;; 1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1136 ac_init_help=short ;; 1137 1138 -host | --host | --hos | --ho) 1139 ac_prev=host_alias ;; 1140 -host=* | --host=* | --hos=* | --ho=*) 1141 host_alias=$ac_optarg ;; 1142 1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1144 ac_prev=htmldir ;; 1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1146 | --ht=*) 1147 htmldir=$ac_optarg ;; 1148 1149 -includedir | --includedir | --includedi | --included | --include \ 1150 | --includ | --inclu | --incl | --inc) 1151 ac_prev=includedir ;; 1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1153 | --includ=* | --inclu=* | --incl=* | --inc=*) 1154 includedir=$ac_optarg ;; 1155 1156 -infodir | --infodir | --infodi | --infod | --info | --inf) 1157 ac_prev=infodir ;; 1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1159 infodir=$ac_optarg ;; 1160 1161 -libdir | --libdir | --libdi | --libd) 1162 ac_prev=libdir ;; 1163 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1164 libdir=$ac_optarg ;; 1165 1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1167 | --libexe | --libex | --libe) 1168 ac_prev=libexecdir ;; 1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1170 | --libexe=* | --libex=* | --libe=*) 1171 libexecdir=$ac_optarg ;; 1172 1173 -localedir | --localedir | --localedi | --localed | --locale) 1174 ac_prev=localedir ;; 1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1176 localedir=$ac_optarg ;; 1177 1178 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1179 | --localstate | --localstat | --localsta | --localst | --locals) 1180 ac_prev=localstatedir ;; 1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1183 localstatedir=$ac_optarg ;; 1184 1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1186 ac_prev=mandir ;; 1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1188 mandir=$ac_optarg ;; 1189 1190 -nfp | --nfp | --nf) 1191 # Obsolete; use --without-fp. 1192 with_fp=no ;; 1193 1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1195 | --no-cr | --no-c | -n) 1196 no_create=yes ;; 1197 1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1200 no_recursion=yes ;; 1201 1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1204 | --oldin | --oldi | --old | --ol | --o) 1205 ac_prev=oldincludedir ;; 1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1209 oldincludedir=$ac_optarg ;; 1210 1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1212 ac_prev=prefix ;; 1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1214 prefix=$ac_optarg ;; 1215 1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1217 | --program-pre | --program-pr | --program-p) 1218 ac_prev=program_prefix ;; 1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1221 program_prefix=$ac_optarg ;; 1222 1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1224 | --program-suf | --program-su | --program-s) 1225 ac_prev=program_suffix ;; 1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1228 program_suffix=$ac_optarg ;; 1229 1230 -program-transform-name | --program-transform-name \ 1231 | --program-transform-nam | --program-transform-na \ 1232 | --program-transform-n | --program-transform- \ 1233 | --program-transform | --program-transfor \ 1234 | --program-transfo | --program-transf \ 1235 | --program-trans | --program-tran \ 1236 | --progr-tra | --program-tr | --program-t) 1237 ac_prev=program_transform_name ;; 1238 -program-transform-name=* | --program-transform-name=* \ 1239 | --program-transform-nam=* | --program-transform-na=* \ 1240 | --program-transform-n=* | --program-transform-=* \ 1241 | --program-transform=* | --program-transfor=* \ 1242 | --program-transfo=* | --program-transf=* \ 1243 | --program-trans=* | --program-tran=* \ 1244 | --progr-tra=* | --program-tr=* | --program-t=*) 1245 program_transform_name=$ac_optarg ;; 1246 1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1248 ac_prev=pdfdir ;; 1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1250 pdfdir=$ac_optarg ;; 1251 1252 -psdir | --psdir | --psdi | --psd | --ps) 1253 ac_prev=psdir ;; 1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1255 psdir=$ac_optarg ;; 1256 1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1258 | -silent | --silent | --silen | --sile | --sil) 1259 silent=yes ;; 1260 1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1262 ac_prev=sbindir ;; 1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1264 | --sbi=* | --sb=*) 1265 sbindir=$ac_optarg ;; 1266 1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1269 | --sharedst | --shareds | --shared | --share | --shar \ 1270 | --sha | --sh) 1271 ac_prev=sharedstatedir ;; 1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1275 | --sha=* | --sh=*) 1276 sharedstatedir=$ac_optarg ;; 1277 1278 -site | --site | --sit) 1279 ac_prev=site ;; 1280 -site=* | --site=* | --sit=*) 1281 site=$ac_optarg ;; 1282 1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1284 ac_prev=srcdir ;; 1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1286 srcdir=$ac_optarg ;; 1287 1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1289 | --syscon | --sysco | --sysc | --sys | --sy) 1290 ac_prev=sysconfdir ;; 1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1293 sysconfdir=$ac_optarg ;; 1294 1295 -target | --target | --targe | --targ | --tar | --ta | --t) 1296 ac_prev=target_alias ;; 1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1298 target_alias=$ac_optarg ;; 1299 1300 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1301 verbose=yes ;; 1302 1303 -version | --version | --versio | --versi | --vers | -V) 1304 ac_init_version=: ;; 1305 1306 -with-* | --with-*) 1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1308 # Reject names that are not valid shell variable names. 1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1310 as_fn_error $? "invalid package name: $ac_useropt" 1311 ac_useropt_orig=$ac_useropt 1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1313 case $ac_user_opts in 1314 *" 1315"with_$ac_useropt" 1316"*) ;; 1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1318 ac_unrecognized_sep=', ';; 1319 esac 1320 eval with_$ac_useropt=\$ac_optarg ;; 1321 1322 -without-* | --without-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 as_fn_error $? "invalid package name: $ac_useropt" 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331"with_$ac_useropt" 1332"*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval with_$ac_useropt=no ;; 1337 1338 --x) 1339 # Obsolete; use --with-x. 1340 with_x=yes ;; 1341 1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1343 | --x-incl | --x-inc | --x-in | --x-i) 1344 ac_prev=x_includes ;; 1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1347 x_includes=$ac_optarg ;; 1348 1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1351 ac_prev=x_libraries ;; 1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1354 x_libraries=$ac_optarg ;; 1355 1356 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1357Try \`$0 --help' for more information" 1358 ;; 1359 1360 *=*) 1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1362 # Reject names that are not valid shell variable names. 1363 case $ac_envvar in #( 1364 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1365 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1366 esac 1367 eval $ac_envvar=\$ac_optarg 1368 export $ac_envvar ;; 1369 1370 *) 1371 # FIXME: should be removed in autoconf 3.0. 1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1375 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1376 ;; 1377 1378 esac 1379done 1380 1381if test -n "$ac_prev"; then 1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1383 as_fn_error $? "missing argument to $ac_option" 1384fi 1385 1386if test -n "$ac_unrecognized_opts"; then 1387 case $enable_option_checking in 1388 no) ;; 1389 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1391 esac 1392fi 1393 1394# Check all directory arguments for consistency. 1395for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1396 datadir sysconfdir sharedstatedir localstatedir includedir \ 1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1398 libdir localedir mandir 1399do 1400 eval ac_val=\$$ac_var 1401 # Remove trailing slashes. 1402 case $ac_val in 1403 */ ) 1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1405 eval $ac_var=\$ac_val;; 1406 esac 1407 # Be sure to have absolute directory names. 1408 case $ac_val in 1409 [\\/$]* | ?:[\\/]* ) continue;; 1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1411 esac 1412 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1413done 1414 1415# There might be people who depend on the old broken behavior: `$host' 1416# used to hold the argument of --host etc. 1417# FIXME: To remove some day. 1418build=$build_alias 1419host=$host_alias 1420target=$target_alias 1421 1422# FIXME: To remove some day. 1423if test "x$host_alias" != x; then 1424 if test "x$build_alias" = x; then 1425 cross_compiling=maybe 1426 elif test "x$build_alias" != "x$host_alias"; then 1427 cross_compiling=yes 1428 fi 1429fi 1430 1431ac_tool_prefix= 1432test -n "$host_alias" && ac_tool_prefix=$host_alias- 1433 1434test "$silent" = yes && exec 6>/dev/null 1435 1436 1437ac_pwd=`pwd` && test -n "$ac_pwd" && 1438ac_ls_di=`ls -di .` && 1439ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1440 as_fn_error $? "working directory cannot be determined" 1441test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1442 as_fn_error $? "pwd does not report name of working directory" 1443 1444 1445# Find the source files, if location was not specified. 1446if test -z "$srcdir"; then 1447 ac_srcdir_defaulted=yes 1448 # Try the directory containing this script, then the parent directory. 1449 ac_confdir=`$as_dirname -- "$as_myself" || 1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1451 X"$as_myself" : 'X\(//\)[^/]' \| \ 1452 X"$as_myself" : 'X\(//\)$' \| \ 1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1454$as_echo X"$as_myself" | 1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)[^/].*/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\).*/{ 1468 s//\1/ 1469 q 1470 } 1471 s/.*/./; q'` 1472 srcdir=$ac_confdir 1473 if test ! -r "$srcdir/$ac_unique_file"; then 1474 srcdir=.. 1475 fi 1476else 1477 ac_srcdir_defaulted=no 1478fi 1479if test ! -r "$srcdir/$ac_unique_file"; then 1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1481 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1482fi 1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1484ac_abs_confdir=`( 1485 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1486 pwd)` 1487# When building in place, set srcdir=. 1488if test "$ac_abs_confdir" = "$ac_pwd"; then 1489 srcdir=. 1490fi 1491# Remove unnecessary trailing slashes from srcdir. 1492# Double slashes in file names in object file debugging info 1493# mess up M-x gdb in Emacs. 1494case $srcdir in 1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1496esac 1497for ac_var in $ac_precious_vars; do 1498 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_env_${ac_var}_value=\$${ac_var} 1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1502done 1503 1504# 1505# Report the --help message. 1506# 1507if test "$ac_init_help" = "long"; then 1508 # Omit some internal or obsolete options to make the list less imposing. 1509 # This message is too long to be a string in the A/UX 3.1 sh. 1510 cat <<_ACEOF 1511\`configure' configures libgpod 0.8.3 to adapt to many kinds of systems. 1512 1513Usage: $0 [OPTION]... [VAR=VALUE]... 1514 1515To assign environment variables (e.g., CC, CFLAGS...), specify them as 1516VAR=VALUE. See below for descriptions of some of the useful variables. 1517 1518Defaults for the options are specified in brackets. 1519 1520Configuration: 1521 -h, --help display this help and exit 1522 --help=short display options specific to this package 1523 --help=recursive display the short help of all the included packages 1524 -V, --version display version information and exit 1525 -q, --quiet, --silent do not print \`checking ...' messages 1526 --cache-file=FILE cache test results in FILE [disabled] 1527 -C, --config-cache alias for \`--cache-file=config.cache' 1528 -n, --no-create do not create output files 1529 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1530 1531Installation directories: 1532 --prefix=PREFIX install architecture-independent files in PREFIX 1533 [$ac_default_prefix] 1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1535 [PREFIX] 1536 1537By default, \`make install' will install all the files in 1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1539an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1540for instance \`--prefix=\$HOME'. 1541 1542For better control, use the options below. 1543 1544Fine tuning of the installation directories: 1545 --bindir=DIR user executables [EPREFIX/bin] 1546 --sbindir=DIR system admin executables [EPREFIX/sbin] 1547 --libexecdir=DIR program executables [EPREFIX/libexec] 1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1551 --libdir=DIR object code libraries [EPREFIX/lib] 1552 --includedir=DIR C header files [PREFIX/include] 1553 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1556 --infodir=DIR info documentation [DATAROOTDIR/info] 1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1558 --mandir=DIR man documentation [DATAROOTDIR/man] 1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpod] 1560 --htmldir=DIR html documentation [DOCDIR] 1561 --dvidir=DIR dvi documentation [DOCDIR] 1562 --pdfdir=DIR pdf documentation [DOCDIR] 1563 --psdir=DIR ps documentation [DOCDIR] 1564_ACEOF 1565 1566 cat <<\_ACEOF 1567 1568Program names: 1569 --program-prefix=PREFIX prepend PREFIX to installed program names 1570 --program-suffix=SUFFIX append SUFFIX to installed program names 1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1572 1573System types: 1574 --build=BUILD configure for building on BUILD [guessed] 1575 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1576_ACEOF 1577fi 1578 1579if test -n "$ac_init_help"; then 1580 case $ac_init_help in 1581 short | recursive ) echo "Configuration of libgpod 0.8.3:";; 1582 esac 1583 cat <<\_ACEOF 1584 1585Optional Features: 1586 --disable-option-checking ignore unrecognized --enable/--with options 1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1589 --enable-silent-rules less verbose build output (undo: "make V=1") 1590 --disable-silent-rules verbose build output (undo: "make V=0") 1591 --enable-maintainer-mode 1592 enable make rules and dependencies not useful (and 1593 sometimes confusing) to the casual installer 1594 --enable-dependency-tracking 1595 do not reject slow dependency extractors 1596 --disable-dependency-tracking 1597 speeds up one-time build 1598 --enable-shared[=PKGS] build shared libraries [default=yes] 1599 --enable-static[=PKGS] build static libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-libtool-lock avoid locking (might break parallel builds) 1603 --disable-nls do not use Native Language Support 1604 --disable-udev Disable udev callout 1605 --disable-libxml SysInfoExtended won't be parsed 1606 --disable-gdk-pixbuf ArtworkDB will be disabled without gdk-pixbuf 1607 --disable-pygobject Python API will lack GdkPixbuf support without 1608 PyGOBJECT 1609 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1610 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1611 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1612 --enable-more-warnings Maximum compiler warnings 1613 1614Optional Packages: 1615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1618 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1619 both] 1620 --with-sysroot=DIR Search for dependent libraries within DIR 1621 (or the compiler's sysroot if not specified). 1622 --with-hal Enable HAL support 1623 --with-hal-callouts-dir=DIR 1624 Directory where HAL expects its callout scripts to 1625 be located 1626 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be 1627 located 1628 --without-libimobiledevice 1629 Disable iPhone/iPod Touch support 1630 --with-udev-dir=DIR Directory where udev expects helper programs to be 1631 located 1632 --with-temp-mount-dir=DIR 1633 Directory where HAL/udev will create a sub-directory 1634 to mount iPods 1635 --with-libgpod-blob-dir=PATH 1636 Load libgpod binary blobs from this directory 1637 [LIBDIR/libgpod] 1638 --with-html-dir=PATH path to installed docs 1639 --with-python=PATH build python bindings [[default=yes]] 1640 --with-mono build mono bindings [[default=auto]] 1641 1642Some influential environment variables: 1643 CC C compiler command 1644 CFLAGS C compiler flags 1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1646 nonstandard directory <lib dir> 1647 LIBS libraries to pass to the linker, e.g. -l<library> 1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1649 you have headers in a nonstandard directory <include dir> 1650 CPP C preprocessor 1651 CXX C++ compiler command 1652 CXXFLAGS C++ compiler flags 1653 CXXCPP C++ preprocessor 1654 PKG_CONFIG path to pkg-config utility 1655 PKG_CONFIG_PATH 1656 directories to add to pkg-config's search path 1657 PKG_CONFIG_LIBDIR 1658 path overriding pkg-config's built-in search path 1659 LIBGPOD_CFLAGS 1660 C compiler flags for LIBGPOD, overriding pkg-config 1661 LIBGPOD_LIBS 1662 linker flags for LIBGPOD, overriding pkg-config 1663 LIBUSB_CFLAGS 1664 C compiler flags for LIBUSB, overriding pkg-config 1665 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config 1666 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 1667 HAL_LIBS linker flags for HAL, overriding pkg-config 1668 LIBIMOBILEDEVICE_CFLAGS 1669 C compiler flags for LIBIMOBILEDEVICE, overriding pkg-config 1670 LIBIMOBILEDEVICE_LIBS 1671 linker flags for LIBIMOBILEDEVICE, overriding pkg-config 1672 TAGLIB_CFLAGS 1673 C compiler flags for TAGLIB, overriding pkg-config 1674 TAGLIB_LIBS linker flags for TAGLIB, overriding pkg-config 1675 LIBXML_CFLAGS 1676 C compiler flags for LIBXML, overriding pkg-config 1677 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1678 GDKPIXBUF_CFLAGS 1679 C compiler flags for GDKPIXBUF, overriding pkg-config 1680 GDKPIXBUF_LIBS 1681 linker flags for GDKPIXBUF, overriding pkg-config 1682 PYGOBJECT_CFLAGS 1683 C compiler flags for PYGOBJECT, overriding pkg-config 1684 PYGOBJECT_LIBS 1685 linker flags for PYGOBJECT, overriding pkg-config 1686 GTKDOC_DEPS_CFLAGS 1687 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1688 GTKDOC_DEPS_LIBS 1689 linker flags for GTKDOC_DEPS, overriding pkg-config 1690 PYTHON the Python interpreter 1691 MONO_MODULE_CFLAGS 1692 C compiler flags for MONO_MODULE, overriding pkg-config 1693 MONO_MODULE_LIBS 1694 linker flags for MONO_MODULE, overriding pkg-config 1695 GDKSHARP_CFLAGS 1696 C compiler flags for GDKSHARP, overriding pkg-config 1697 GDKSHARP_LIBS 1698 linker flags for GDKSHARP, overriding pkg-config 1699 GLIBSHARP_CFLAGS 1700 C compiler flags for GLIBSHARP, overriding pkg-config 1701 GLIBSHARP_LIBS 1702 linker flags for GLIBSHARP, overriding pkg-config 1703 1704Use these variables to override the choices made by `configure' or to help 1705it to find libraries and programs with nonstandard names/locations. 1706 1707Report bugs to the package provider. 1708_ACEOF 1709ac_status=$? 1710fi 1711 1712if test "$ac_init_help" = "recursive"; then 1713 # If there are subdirs, report their specific --help. 1714 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1715 test -d "$ac_dir" || 1716 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1717 continue 1718 ac_builddir=. 1719 1720case "$ac_dir" in 1721.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1722*) 1723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1724 # A ".." for each directory in $ac_dir_suffix. 1725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1726 case $ac_top_builddir_sub in 1727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1729 esac ;; 1730esac 1731ac_abs_top_builddir=$ac_pwd 1732ac_abs_builddir=$ac_pwd$ac_dir_suffix 1733# for backward compatibility: 1734ac_top_builddir=$ac_top_build_prefix 1735 1736case $srcdir in 1737 .) # We are building in place. 1738 ac_srcdir=. 1739 ac_top_srcdir=$ac_top_builddir_sub 1740 ac_abs_top_srcdir=$ac_pwd ;; 1741 [\\/]* | ?:[\\/]* ) # Absolute name. 1742 ac_srcdir=$srcdir$ac_dir_suffix; 1743 ac_top_srcdir=$srcdir 1744 ac_abs_top_srcdir=$srcdir ;; 1745 *) # Relative name. 1746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1747 ac_top_srcdir=$ac_top_build_prefix$srcdir 1748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1749esac 1750ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1751 1752 cd "$ac_dir" || { ac_status=$?; continue; } 1753 # Check for guested configure. 1754 if test -f "$ac_srcdir/configure.gnu"; then 1755 echo && 1756 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1757 elif test -f "$ac_srcdir/configure"; then 1758 echo && 1759 $SHELL "$ac_srcdir/configure" --help=recursive 1760 else 1761 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1762 fi || ac_status=$? 1763 cd "$ac_pwd" || { ac_status=$?; break; } 1764 done 1765fi 1766 1767test -n "$ac_init_help" && exit $ac_status 1768if $ac_init_version; then 1769 cat <<\_ACEOF 1770libgpod configure 0.8.3 1771generated by GNU Autoconf 2.69 1772 1773Copyright (C) 2012 Free Software Foundation, Inc. 1774This configure script is free software; the Free Software Foundation 1775gives unlimited permission to copy, distribute and modify it. 1776_ACEOF 1777 exit 1778fi 1779 1780## ------------------------ ## 1781## Autoconf initialization. ## 1782## ------------------------ ## 1783 1784# ac_fn_c_try_compile LINENO 1785# -------------------------- 1786# Try to compile conftest.$ac_ext, and return whether this succeeded. 1787ac_fn_c_try_compile () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 rm -f conftest.$ac_objext 1791 if { { ac_try="$ac_compile" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_compile") 2>conftest.err 1799 ac_status=$? 1800 if test -s conftest.err; then 1801 grep -v '^ *+' conftest.err >conftest.er1 1802 cat conftest.er1 >&5 1803 mv -f conftest.er1 conftest.err 1804 fi 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } && { 1807 test -z "$ac_c_werror_flag" || 1808 test ! -s conftest.err 1809 } && test -s conftest.$ac_objext; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: failed program was:" >&5 1813sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_compile 1821 1822# ac_fn_c_try_cpp LINENO 1823# ---------------------- 1824# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1825ac_fn_c_try_cpp () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 if { { ac_try="$ac_cpp conftest.$ac_ext" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1836 ac_status=$? 1837 if test -s conftest.err; then 1838 grep -v '^ *+' conftest.err >conftest.er1 1839 cat conftest.er1 >&5 1840 mv -f conftest.er1 conftest.err 1841 fi 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } > conftest.i && { 1844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1845 test ! -s conftest.err 1846 }; then : 1847 ac_retval=0 1848else 1849 $as_echo "$as_me: failed program was:" >&5 1850sed 's/^/| /' conftest.$ac_ext >&5 1851 1852 ac_retval=1 1853fi 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 as_fn_set_status $ac_retval 1856 1857} # ac_fn_c_try_cpp 1858 1859# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1860# ------------------------------------------------------- 1861# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1862# the include files in INCLUDES and setting the cache variable VAR 1863# accordingly. 1864ac_fn_c_check_header_mongrel () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 if eval \${$3+:} false; then : 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869$as_echo_n "checking for $2... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872fi 1873eval ac_res=\$$3 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875$as_echo "$ac_res" >&6; } 1876else 1877 # Is the header compilable? 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1879$as_echo_n "checking $2 usability... " >&6; } 1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882$4 1883#include <$2> 1884_ACEOF 1885if ac_fn_c_try_compile "$LINENO"; then : 1886 ac_header_compiler=yes 1887else 1888 ac_header_compiler=no 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1892$as_echo "$ac_header_compiler" >&6; } 1893 1894# Is the header present? 1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1896$as_echo_n "checking $2 presence... " >&6; } 1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899#include <$2> 1900_ACEOF 1901if ac_fn_c_try_cpp "$LINENO"; then : 1902 ac_header_preproc=yes 1903else 1904 ac_header_preproc=no 1905fi 1906rm -f conftest.err conftest.i conftest.$ac_ext 1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1908$as_echo "$ac_header_preproc" >&6; } 1909 1910# So? What about this header? 1911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1912 yes:no: ) 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1914$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1917 ;; 1918 no:yes:* ) 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1920$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1922$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1924$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1926$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1929 ;; 1930esac 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1932$as_echo_n "checking for $2... " >&6; } 1933if eval \${$3+:} false; then : 1934 $as_echo_n "(cached) " >&6 1935else 1936 eval "$3=\$ac_header_compiler" 1937fi 1938eval ac_res=\$$3 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1940$as_echo "$ac_res" >&6; } 1941fi 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 1944} # ac_fn_c_check_header_mongrel 1945 1946# ac_fn_c_try_run LINENO 1947# ---------------------- 1948# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1949# that executables *can* be run. 1950ac_fn_c_try_run () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 if { { ac_try="$ac_link" 1954case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959$as_echo "$ac_try_echo"; } >&5 1960 (eval "$ac_link") 2>&5 1961 ac_status=$? 1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1963 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1964 { { case "(($ac_try" in 1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1966 *) ac_try_echo=$ac_try;; 1967esac 1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1969$as_echo "$ac_try_echo"; } >&5 1970 (eval "$ac_try") 2>&5 1971 ac_status=$? 1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1973 test $ac_status = 0; }; }; then : 1974 ac_retval=0 1975else 1976 $as_echo "$as_me: program exited with status $ac_status" >&5 1977 $as_echo "$as_me: failed program was:" >&5 1978sed 's/^/| /' conftest.$ac_ext >&5 1979 1980 ac_retval=$ac_status 1981fi 1982 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 as_fn_set_status $ac_retval 1985 1986} # ac_fn_c_try_run 1987 1988# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1989# ------------------------------------------------------- 1990# Tests whether HEADER exists and can be compiled using the include files in 1991# INCLUDES, setting the cache variable VAR accordingly. 1992ac_fn_c_check_header_compile () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001/* end confdefs.h. */ 2002$4 2003#include <$2> 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 eval "$3=yes" 2007else 2008 eval "$3=no" 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2011fi 2012eval ac_res=\$$3 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2014$as_echo "$ac_res" >&6; } 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 2017} # ac_fn_c_check_header_compile 2018 2019# ac_fn_cxx_try_compile LINENO 2020# ---------------------------- 2021# Try to compile conftest.$ac_ext, and return whether this succeeded. 2022ac_fn_cxx_try_compile () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 rm -f conftest.$ac_objext 2026 if { { ac_try="$ac_compile" 2027case "(($ac_try" in 2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2029 *) ac_try_echo=$ac_try;; 2030esac 2031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2032$as_echo "$ac_try_echo"; } >&5 2033 (eval "$ac_compile") 2>conftest.err 2034 ac_status=$? 2035 if test -s conftest.err; then 2036 grep -v '^ *+' conftest.err >conftest.er1 2037 cat conftest.er1 >&5 2038 mv -f conftest.er1 conftest.err 2039 fi 2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2041 test $ac_status = 0; } && { 2042 test -z "$ac_cxx_werror_flag" || 2043 test ! -s conftest.err 2044 } && test -s conftest.$ac_objext; then : 2045 ac_retval=0 2046else 2047 $as_echo "$as_me: failed program was:" >&5 2048sed 's/^/| /' conftest.$ac_ext >&5 2049 2050 ac_retval=1 2051fi 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2053 as_fn_set_status $ac_retval 2054 2055} # ac_fn_cxx_try_compile 2056 2057# ac_fn_c_try_link LINENO 2058# ----------------------- 2059# Try to link conftest.$ac_ext, and return whether this succeeded. 2060ac_fn_c_try_link () 2061{ 2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2063 rm -f conftest.$ac_objext conftest$ac_exeext 2064 if { { ac_try="$ac_link" 2065case "(($ac_try" in 2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2067 *) ac_try_echo=$ac_try;; 2068esac 2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2070$as_echo "$ac_try_echo"; } >&5 2071 (eval "$ac_link") 2>conftest.err 2072 ac_status=$? 2073 if test -s conftest.err; then 2074 grep -v '^ *+' conftest.err >conftest.er1 2075 cat conftest.er1 >&5 2076 mv -f conftest.er1 conftest.err 2077 fi 2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2079 test $ac_status = 0; } && { 2080 test -z "$ac_c_werror_flag" || 2081 test ! -s conftest.err 2082 } && test -s conftest$ac_exeext && { 2083 test "$cross_compiling" = yes || 2084 test -x conftest$ac_exeext 2085 }; then : 2086 ac_retval=0 2087else 2088 $as_echo "$as_me: failed program was:" >&5 2089sed 's/^/| /' conftest.$ac_ext >&5 2090 2091 ac_retval=1 2092fi 2093 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2094 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2095 # interfere with the next link command; also delete a directory that is 2096 # left behind by Apple's compiler. We do this before executing the actions. 2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 as_fn_set_status $ac_retval 2100 2101} # ac_fn_c_try_link 2102 2103# ac_fn_c_check_func LINENO FUNC VAR 2104# ---------------------------------- 2105# Tests whether FUNC exists, setting the cache variable VAR accordingly 2106ac_fn_c_check_func () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2110$as_echo_n "checking for $2... " >&6; } 2111if eval \${$3+:} false; then : 2112 $as_echo_n "(cached) " >&6 2113else 2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115/* end confdefs.h. */ 2116/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2117 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2118#define $2 innocuous_$2 2119 2120/* System header to define __stub macros and hopefully few prototypes, 2121 which can conflict with char $2 (); below. 2122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2123 <limits.h> exists even on freestanding compilers. */ 2124 2125#ifdef __STDC__ 2126# include <limits.h> 2127#else 2128# include <assert.h> 2129#endif 2130 2131#undef $2 2132 2133/* Override any GCC internal prototype to avoid an error. 2134 Use char because int might match the return type of a GCC 2135 builtin and then its argument prototype would still apply. */ 2136#ifdef __cplusplus 2137extern "C" 2138#endif 2139char $2 (); 2140/* The GNU C library defines this for functions which it implements 2141 to always fail with ENOSYS. Some functions are actually named 2142 something starting with __ and the normal name is an alias. */ 2143#if defined __stub_$2 || defined __stub___$2 2144choke me 2145#endif 2146 2147int 2148main () 2149{ 2150return $2 (); 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_link "$LINENO"; then : 2156 eval "$3=yes" 2157else 2158 eval "$3=no" 2159fi 2160rm -f core conftest.err conftest.$ac_objext \ 2161 conftest$ac_exeext conftest.$ac_ext 2162fi 2163eval ac_res=\$$3 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2165$as_echo "$ac_res" >&6; } 2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2167 2168} # ac_fn_c_check_func 2169 2170# ac_fn_cxx_try_cpp LINENO 2171# ------------------------ 2172# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2173ac_fn_cxx_try_cpp () 2174{ 2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2176 if { { ac_try="$ac_cpp conftest.$ac_ext" 2177case "(($ac_try" in 2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2179 *) ac_try_echo=$ac_try;; 2180esac 2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2182$as_echo "$ac_try_echo"; } >&5 2183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2184 ac_status=$? 2185 if test -s conftest.err; then 2186 grep -v '^ *+' conftest.err >conftest.er1 2187 cat conftest.er1 >&5 2188 mv -f conftest.er1 conftest.err 2189 fi 2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2191 test $ac_status = 0; } > conftest.i && { 2192 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2193 test ! -s conftest.err 2194 }; then : 2195 ac_retval=0 2196else 2197 $as_echo "$as_me: failed program was:" >&5 2198sed 's/^/| /' conftest.$ac_ext >&5 2199 2200 ac_retval=1 2201fi 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 as_fn_set_status $ac_retval 2204 2205} # ac_fn_cxx_try_cpp 2206 2207# ac_fn_cxx_try_link LINENO 2208# ------------------------- 2209# Try to link conftest.$ac_ext, and return whether this succeeded. 2210ac_fn_cxx_try_link () 2211{ 2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2213 rm -f conftest.$ac_objext conftest$ac_exeext 2214 if { { ac_try="$ac_link" 2215case "(($ac_try" in 2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2217 *) ac_try_echo=$ac_try;; 2218esac 2219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2220$as_echo "$ac_try_echo"; } >&5 2221 (eval "$ac_link") 2>conftest.err 2222 ac_status=$? 2223 if test -s conftest.err; then 2224 grep -v '^ *+' conftest.err >conftest.er1 2225 cat conftest.er1 >&5 2226 mv -f conftest.er1 conftest.err 2227 fi 2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2229 test $ac_status = 0; } && { 2230 test -z "$ac_cxx_werror_flag" || 2231 test ! -s conftest.err 2232 } && test -s conftest$ac_exeext && { 2233 test "$cross_compiling" = yes || 2234 test -x conftest$ac_exeext 2235 }; then : 2236 ac_retval=0 2237else 2238 $as_echo "$as_me: failed program was:" >&5 2239sed 's/^/| /' conftest.$ac_ext >&5 2240 2241 ac_retval=1 2242fi 2243 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2244 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2245 # interfere with the next link command; also delete a directory that is 2246 # left behind by Apple's compiler. We do this before executing the actions. 2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2249 as_fn_set_status $ac_retval 2250 2251} # ac_fn_cxx_try_link 2252 2253# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2254# ---------------------------------------------------- 2255# Tries to find if the field MEMBER exists in type AGGR, after including 2256# INCLUDES, setting cache variable VAR accordingly. 2257ac_fn_c_check_member () 2258{ 2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2261$as_echo_n "checking for $2.$3... " >&6; } 2262if eval \${$4+:} false; then : 2263 $as_echo_n "(cached) " >&6 2264else 2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$5 2268int 2269main () 2270{ 2271static $2 ac_aggr; 2272if (ac_aggr.$3) 2273return 0; 2274 ; 2275 return 0; 2276} 2277_ACEOF 2278if ac_fn_c_try_compile "$LINENO"; then : 2279 eval "$4=yes" 2280else 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$5 2284int 2285main () 2286{ 2287static $2 ac_aggr; 2288if (sizeof ac_aggr.$3) 2289return 0; 2290 ; 2291 return 0; 2292} 2293_ACEOF 2294if ac_fn_c_try_compile "$LINENO"; then : 2295 eval "$4=yes" 2296else 2297 eval "$4=no" 2298fi 2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2300fi 2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2302fi 2303eval ac_res=\$$4 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2305$as_echo "$ac_res" >&6; } 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 2308} # ac_fn_c_check_member 2309 2310# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2311# -------------------------------------------- 2312# Tries to find the compile-time value of EXPR in a program that includes 2313# INCLUDES, setting VAR accordingly. Returns whether the value could be 2314# computed 2315ac_fn_c_compute_int () 2316{ 2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2318 if test "$cross_compiling" = yes; then 2319 # Depending upon the size, compute the lo and hi bounds. 2320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2321/* end confdefs.h. */ 2322$4 2323int 2324main () 2325{ 2326static int test_array [1 - 2 * !(($2) >= 0)]; 2327test_array [0] = 0; 2328return test_array [0]; 2329 2330 ; 2331 return 0; 2332} 2333_ACEOF 2334if ac_fn_c_try_compile "$LINENO"; then : 2335 ac_lo=0 ac_mid=0 2336 while :; do 2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2338/* end confdefs.h. */ 2339$4 2340int 2341main () 2342{ 2343static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2344test_array [0] = 0; 2345return test_array [0]; 2346 2347 ; 2348 return 0; 2349} 2350_ACEOF 2351if ac_fn_c_try_compile "$LINENO"; then : 2352 ac_hi=$ac_mid; break 2353else 2354 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2355 if test $ac_lo -le $ac_mid; then 2356 ac_lo= ac_hi= 2357 break 2358 fi 2359 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362 done 2363else 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365/* end confdefs.h. */ 2366$4 2367int 2368main () 2369{ 2370static int test_array [1 - 2 * !(($2) < 0)]; 2371test_array [0] = 0; 2372return test_array [0]; 2373 2374 ; 2375 return 0; 2376} 2377_ACEOF 2378if ac_fn_c_try_compile "$LINENO"; then : 2379 ac_hi=-1 ac_mid=-1 2380 while :; do 2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2382/* end confdefs.h. */ 2383$4 2384int 2385main () 2386{ 2387static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2388test_array [0] = 0; 2389return test_array [0]; 2390 2391 ; 2392 return 0; 2393} 2394_ACEOF 2395if ac_fn_c_try_compile "$LINENO"; then : 2396 ac_lo=$ac_mid; break 2397else 2398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2399 if test $ac_mid -le $ac_hi; then 2400 ac_lo= ac_hi= 2401 break 2402 fi 2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2404fi 2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2406 done 2407else 2408 ac_lo= ac_hi= 2409fi 2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2411fi 2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413# Binary search between lo and hi bounds. 2414while test "x$ac_lo" != "x$ac_hi"; do 2415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417/* end confdefs.h. */ 2418$4 2419int 2420main () 2421{ 2422static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2423test_array [0] = 0; 2424return test_array [0]; 2425 2426 ; 2427 return 0; 2428} 2429_ACEOF 2430if ac_fn_c_try_compile "$LINENO"; then : 2431 ac_hi=$ac_mid 2432else 2433 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2434fi 2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2436done 2437case $ac_lo in #(( 2438?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2439'') ac_retval=1 ;; 2440esac 2441 else 2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2443/* end confdefs.h. */ 2444$4 2445static long int longval () { return $2; } 2446static unsigned long int ulongval () { return $2; } 2447#include <stdio.h> 2448#include <stdlib.h> 2449int 2450main () 2451{ 2452 2453 FILE *f = fopen ("conftest.val", "w"); 2454 if (! f) 2455 return 1; 2456 if (($2) < 0) 2457 { 2458 long int i = longval (); 2459 if (i != ($2)) 2460 return 1; 2461 fprintf (f, "%ld", i); 2462 } 2463 else 2464 { 2465 unsigned long int i = ulongval (); 2466 if (i != ($2)) 2467 return 1; 2468 fprintf (f, "%lu", i); 2469 } 2470 /* Do not output a trailing newline, as this causes \r\n confusion 2471 on some platforms. */ 2472 return ferror (f) || fclose (f) != 0; 2473 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478if ac_fn_c_try_run "$LINENO"; then : 2479 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2480else 2481 ac_retval=1 2482fi 2483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2484 conftest.$ac_objext conftest.beam conftest.$ac_ext 2485rm -f conftest.val 2486 2487 fi 2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2489 as_fn_set_status $ac_retval 2490 2491} # ac_fn_c_compute_int 2492cat >config.log <<_ACEOF 2493This file contains any messages produced by compilers while 2494running configure, to aid debugging if configure makes a mistake. 2495 2496It was created by libgpod $as_me 0.8.3, which was 2497generated by GNU Autoconf 2.69. Invocation command line was 2498 2499 $ $0 $@ 2500 2501_ACEOF 2502exec 5>>config.log 2503{ 2504cat <<_ASUNAME 2505## --------- ## 2506## Platform. ## 2507## --------- ## 2508 2509hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2510uname -m = `(uname -m) 2>/dev/null || echo unknown` 2511uname -r = `(uname -r) 2>/dev/null || echo unknown` 2512uname -s = `(uname -s) 2>/dev/null || echo unknown` 2513uname -v = `(uname -v) 2>/dev/null || echo unknown` 2514 2515/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2516/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2517 2518/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2519/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2520/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2521/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2522/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2523/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2524/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2525 2526_ASUNAME 2527 2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529for as_dir in $PATH 2530do 2531 IFS=$as_save_IFS 2532 test -z "$as_dir" && as_dir=. 2533 $as_echo "PATH: $as_dir" 2534 done 2535IFS=$as_save_IFS 2536 2537} >&5 2538 2539cat >&5 <<_ACEOF 2540 2541 2542## ----------- ## 2543## Core tests. ## 2544## ----------- ## 2545 2546_ACEOF 2547 2548 2549# Keep a trace of the command line. 2550# Strip out --no-create and --no-recursion so they do not pile up. 2551# Strip out --silent because we don't want to record it for future runs. 2552# Also quote any args containing shell meta-characters. 2553# Make two passes to allow for proper duplicate-argument suppression. 2554ac_configure_args= 2555ac_configure_args0= 2556ac_configure_args1= 2557ac_must_keep_next=false 2558for ac_pass in 1 2 2559do 2560 for ac_arg 2561 do 2562 case $ac_arg in 2563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2565 | -silent | --silent | --silen | --sile | --sil) 2566 continue ;; 2567 *\'*) 2568 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2569 esac 2570 case $ac_pass in 2571 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2572 2) 2573 as_fn_append ac_configure_args1 " '$ac_arg'" 2574 if test $ac_must_keep_next = true; then 2575 ac_must_keep_next=false # Got value, back to normal. 2576 else 2577 case $ac_arg in 2578 *=* | --config-cache | -C | -disable-* | --disable-* \ 2579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2581 | -with-* | --with-* | -without-* | --without-* | --x) 2582 case "$ac_configure_args0 " in 2583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2584 esac 2585 ;; 2586 -* ) ac_must_keep_next=true ;; 2587 esac 2588 fi 2589 as_fn_append ac_configure_args " '$ac_arg'" 2590 ;; 2591 esac 2592 done 2593done 2594{ ac_configure_args0=; unset ac_configure_args0;} 2595{ ac_configure_args1=; unset ac_configure_args1;} 2596 2597# When interrupted or exit'd, cleanup temporary files, and complete 2598# config.log. We remove comments because anyway the quotes in there 2599# would cause problems or look ugly. 2600# WARNING: Use '\'' to represent an apostrophe within the trap. 2601# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2602trap 'exit_status=$? 2603 # Save into config.log some information that might help in debugging. 2604 { 2605 echo 2606 2607 $as_echo "## ---------------- ## 2608## Cache variables. ## 2609## ---------------- ##" 2610 echo 2611 # The following way of writing the cache mishandles newlines in values, 2612( 2613 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2614 eval ac_val=\$$ac_var 2615 case $ac_val in #( 2616 *${as_nl}*) 2617 case $ac_var in #( 2618 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2619$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2620 esac 2621 case $ac_var in #( 2622 _ | IFS | as_nl) ;; #( 2623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2624 *) { eval $ac_var=; unset $ac_var;} ;; 2625 esac ;; 2626 esac 2627 done 2628 (set) 2>&1 | 2629 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2630 *${as_nl}ac_space=\ *) 2631 sed -n \ 2632 "s/'\''/'\''\\\\'\'''\''/g; 2633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2634 ;; #( 2635 *) 2636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2637 ;; 2638 esac | 2639 sort 2640) 2641 echo 2642 2643 $as_echo "## ----------------- ## 2644## Output variables. ## 2645## ----------------- ##" 2646 echo 2647 for ac_var in $ac_subst_vars 2648 do 2649 eval ac_val=\$$ac_var 2650 case $ac_val in 2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2652 esac 2653 $as_echo "$ac_var='\''$ac_val'\''" 2654 done | sort 2655 echo 2656 2657 if test -n "$ac_subst_files"; then 2658 $as_echo "## ------------------- ## 2659## File substitutions. ## 2660## ------------------- ##" 2661 echo 2662 for ac_var in $ac_subst_files 2663 do 2664 eval ac_val=\$$ac_var 2665 case $ac_val in 2666 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2667 esac 2668 $as_echo "$ac_var='\''$ac_val'\''" 2669 done | sort 2670 echo 2671 fi 2672 2673 if test -s confdefs.h; then 2674 $as_echo "## ----------- ## 2675## confdefs.h. ## 2676## ----------- ##" 2677 echo 2678 cat confdefs.h 2679 echo 2680 fi 2681 test "$ac_signal" != 0 && 2682 $as_echo "$as_me: caught signal $ac_signal" 2683 $as_echo "$as_me: exit $exit_status" 2684 } >&5 2685 rm -f core *.core core.conftest.* && 2686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2687 exit $exit_status 2688' 0 2689for ac_signal in 1 2 13 15; do 2690 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2691done 2692ac_signal=0 2693 2694# confdefs.h avoids OS command line length limits that DEFS can exceed. 2695rm -f -r conftest* confdefs.h 2696 2697$as_echo "/* confdefs.h */" > confdefs.h 2698 2699# Predefined preprocessor variables. 2700 2701cat >>confdefs.h <<_ACEOF 2702#define PACKAGE_NAME "$PACKAGE_NAME" 2703_ACEOF 2704 2705cat >>confdefs.h <<_ACEOF 2706#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2707_ACEOF 2708 2709cat >>confdefs.h <<_ACEOF 2710#define PACKAGE_VERSION "$PACKAGE_VERSION" 2711_ACEOF 2712 2713cat >>confdefs.h <<_ACEOF 2714#define PACKAGE_STRING "$PACKAGE_STRING" 2715_ACEOF 2716 2717cat >>confdefs.h <<_ACEOF 2718#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2719_ACEOF 2720 2721cat >>confdefs.h <<_ACEOF 2722#define PACKAGE_URL "$PACKAGE_URL" 2723_ACEOF 2724 2725 2726# Let the site file select an alternate cache file if it wants to. 2727# Prefer an explicitly selected file to automatically selected ones. 2728ac_site_file1=NONE 2729ac_site_file2=NONE 2730if test -n "$CONFIG_SITE"; then 2731 # We do not want a PATH search for config.site. 2732 case $CONFIG_SITE in #(( 2733 -*) ac_site_file1=./$CONFIG_SITE;; 2734 */*) ac_site_file1=$CONFIG_SITE;; 2735 *) ac_site_file1=./$CONFIG_SITE;; 2736 esac 2737elif test "x$prefix" != xNONE; then 2738 ac_site_file1=$prefix/share/config.site 2739 ac_site_file2=$prefix/etc/config.site 2740else 2741 ac_site_file1=$ac_default_prefix/share/config.site 2742 ac_site_file2=$ac_default_prefix/etc/config.site 2743fi 2744for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2745do 2746 test "x$ac_site_file" = xNONE && continue 2747 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2749$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2750 sed 's/^/| /' "$ac_site_file" >&5 2751 . "$ac_site_file" \ 2752 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754as_fn_error $? "failed to load site script $ac_site_file 2755See \`config.log' for more details" "$LINENO" 5; } 2756 fi 2757done 2758 2759if test -r "$cache_file"; then 2760 # Some versions of bash will fail to source /dev/null (special files 2761 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2762 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2764$as_echo "$as_me: loading cache $cache_file" >&6;} 2765 case $cache_file in 2766 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2767 *) . "./$cache_file";; 2768 esac 2769 fi 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2772$as_echo "$as_me: creating cache $cache_file" >&6;} 2773 >$cache_file 2774fi 2775 2776# Check that the precious variables saved in the cache have kept the same 2777# value. 2778ac_cache_corrupted=false 2779for ac_var in $ac_precious_vars; do 2780 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2781 eval ac_new_set=\$ac_env_${ac_var}_set 2782 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2783 eval ac_new_val=\$ac_env_${ac_var}_value 2784 case $ac_old_set,$ac_new_set in 2785 set,) 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2787$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2788 ac_cache_corrupted=: ;; 2789 ,set) 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2791$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2792 ac_cache_corrupted=: ;; 2793 ,);; 2794 *) 2795 if test "x$ac_old_val" != "x$ac_new_val"; then 2796 # differences in whitespace do not lead to failure. 2797 ac_old_val_w=`echo x $ac_old_val` 2798 ac_new_val_w=`echo x $ac_new_val` 2799 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2801$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2802 ac_cache_corrupted=: 2803 else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2805$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2806 eval $ac_var=\$ac_old_val 2807 fi 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2809$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2811$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2812 fi;; 2813 esac 2814 # Pass precious variables to config.status. 2815 if test "$ac_new_set" = set; then 2816 case $ac_new_val in 2817 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2818 *) ac_arg=$ac_var=$ac_new_val ;; 2819 esac 2820 case " $ac_configure_args " in 2821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2822 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2823 esac 2824 fi 2825done 2826if $ac_cache_corrupted; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2830$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2831 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2832fi 2833## -------------------- ## 2834## Main body of script. ## 2835## -------------------- ## 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842 2843 2844 2845 2846 2847ac_config_headers="$ac_config_headers config.h" 2848 2849 2850# +1 : 0 : +1 == adds new functions to the interface 2851# +1 : 0 : 0 == changes or removes functions (changes include both 2852# changes to the signature and the semantic) 2853# ? :+1 : ? == just internal changes 2854# CURRENT : REVISION : AGE 2855LIBGPOD_SO_VERSION=7:2:3 2856 2857 2858am__api_version='1.13' 2859 2860ac_aux_dir= 2861for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2862 if test -f "$ac_dir/install-sh"; then 2863 ac_aux_dir=$ac_dir 2864 ac_install_sh="$ac_aux_dir/install-sh -c" 2865 break 2866 elif test -f "$ac_dir/install.sh"; then 2867 ac_aux_dir=$ac_dir 2868 ac_install_sh="$ac_aux_dir/install.sh -c" 2869 break 2870 elif test -f "$ac_dir/shtool"; then 2871 ac_aux_dir=$ac_dir 2872 ac_install_sh="$ac_aux_dir/shtool install -c" 2873 break 2874 fi 2875done 2876if test -z "$ac_aux_dir"; then 2877 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2878fi 2879 2880# These three variables are undocumented and unsupported, 2881# and are intended to be withdrawn in a future Autoconf release. 2882# They can cause serious problems if a builder's source tree is in a directory 2883# whose full name contains unusual characters. 2884ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2885ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2886ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2887 2888 2889# Find a good install program. We prefer a C program (faster), 2890# so one script is as good as another. But avoid the broken or 2891# incompatible versions: 2892# SysV /etc/install, /usr/sbin/install 2893# SunOS /usr/etc/install 2894# IRIX /sbin/install 2895# AIX /bin/install 2896# AmigaOS /C/install, which installs bootblocks on floppy discs 2897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2898# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2900# OS/2's system install, which has a completely different semantic 2901# ./install, which can be erroneously created by make from ./install.sh. 2902# Reject install programs that cannot install multiple files. 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2904$as_echo_n "checking for a BSD-compatible install... " >&6; } 2905if test -z "$INSTALL"; then 2906if ${ac_cv_path_install+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 # Account for people who put trailing slashes in PATH elements. 2915case $as_dir/ in #(( 2916 ./ | .// | /[cC]/* | \ 2917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2918 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2919 /usr/ucb/* ) ;; 2920 *) 2921 # OSF1 and SCO ODT 3.0 have their own names for install. 2922 # Don't use installbsd from OSF since it installs stuff as root 2923 # by default. 2924 for ac_prog in ginstall scoinst install; do 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2927 if test $ac_prog = install && 2928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2929 # AIX install. It has an incompatible calling convention. 2930 : 2931 elif test $ac_prog = install && 2932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2933 # program-specific install script used by HP pwplus--don't use. 2934 : 2935 else 2936 rm -rf conftest.one conftest.two conftest.dir 2937 echo one > conftest.one 2938 echo two > conftest.two 2939 mkdir conftest.dir 2940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2941 test -s conftest.one && test -s conftest.two && 2942 test -s conftest.dir/conftest.one && 2943 test -s conftest.dir/conftest.two 2944 then 2945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2946 break 3 2947 fi 2948 fi 2949 fi 2950 done 2951 done 2952 ;; 2953esac 2954 2955 done 2956IFS=$as_save_IFS 2957 2958rm -rf conftest.one conftest.two conftest.dir 2959 2960fi 2961 if test "${ac_cv_path_install+set}" = set; then 2962 INSTALL=$ac_cv_path_install 2963 else 2964 # As a last resort, use the slow shell script. Don't cache a 2965 # value for INSTALL within a source directory, because that will 2966 # break other packages using the cache if that directory is 2967 # removed, or if the value is a relative name. 2968 INSTALL=$ac_install_sh 2969 fi 2970fi 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2972$as_echo "$INSTALL" >&6; } 2973 2974# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2975# It thinks the first close brace ends the variable substitution. 2976test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2977 2978test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2979 2980test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2981 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2983$as_echo_n "checking whether build environment is sane... " >&6; } 2984# Reject unsafe characters in $srcdir or the absolute working directory 2985# name. Accept space and tab only in the latter. 2986am_lf=' 2987' 2988case `pwd` in 2989 *[\\\"\#\$\&\'\`$am_lf]*) 2990 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2991esac 2992case $srcdir in 2993 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2994 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2995esac 2996 2997# Do 'set' in a subshell so we don't clobber the current shell's 2998# arguments. Must try -L first in case configure is actually a 2999# symlink; some systems play weird games with the mod time of symlinks 3000# (eg FreeBSD returns the mod time of the symlink's containing 3001# directory). 3002if ( 3003 am_has_slept=no 3004 for am_try in 1 2; do 3005 echo "timestamp, slept: $am_has_slept" > conftest.file 3006 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3007 if test "$*" = "X"; then 3008 # -L didn't work. 3009 set X `ls -t "$srcdir/configure" conftest.file` 3010 fi 3011 if test "$*" != "X $srcdir/configure conftest.file" \ 3012 && test "$*" != "X conftest.file $srcdir/configure"; then 3013 3014 # If neither matched, then we have a broken ls. This can happen 3015 # if, for instance, CONFIG_SHELL is bash and it inherits a 3016 # broken ls alias from the environment. This has actually 3017 # happened. Such a system could not be considered "sane". 3018 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3019 alias in your environment" "$LINENO" 5 3020 fi 3021 if test "$2" = conftest.file || test $am_try -eq 2; then 3022 break 3023 fi 3024 # Just in case. 3025 sleep 1 3026 am_has_slept=yes 3027 done 3028 test "$2" = conftest.file 3029 ) 3030then 3031 # Ok. 3032 : 3033else 3034 as_fn_error $? "newly created file is older than distributed files! 3035Check your system clock" "$LINENO" 5 3036fi 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3038$as_echo "yes" >&6; } 3039# If we didn't sleep, we still need to ensure time stamps of config.status and 3040# generated files are strictly newer. 3041am_sleep_pid= 3042if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3043 ( sleep 1 ) & 3044 am_sleep_pid=$! 3045fi 3046 3047rm -f conftest.file 3048 3049test "$program_prefix" != NONE && 3050 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3051# Use a double $ so make ignores it. 3052test "$program_suffix" != NONE && 3053 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3054# Double any \ or $. 3055# By default was `s,x,x', remove it if useless. 3056ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3057program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3058 3059# expand $ac_aux_dir to an absolute path 3060am_aux_dir=`cd $ac_aux_dir && pwd` 3061 3062if test x"${MISSING+set}" != xset; then 3063 case $am_aux_dir in 3064 *\ * | *\ *) 3065 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3066 *) 3067 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3068 esac 3069fi 3070# Use eval to expand $SHELL 3071if eval "$MISSING --is-lightweight"; then 3072 am_missing_run="$MISSING " 3073else 3074 am_missing_run= 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3076$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3077fi 3078 3079if test x"${install_sh}" != xset; then 3080 case $am_aux_dir in 3081 *\ * | *\ *) 3082 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3083 *) 3084 install_sh="\${SHELL} $am_aux_dir/install-sh" 3085 esac 3086fi 3087 3088# Installed binaries are usually stripped using 'strip' when the user 3089# run "make install-strip". However 'strip' might not be the right 3090# tool to use in cross-compilation environments, therefore Automake 3091# will honor the 'STRIP' environment variable to overrule this program. 3092if test "$cross_compiling" != no; then 3093 if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3095set dummy ${ac_tool_prefix}strip; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_STRIP+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$STRIP"; then 3102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121STRIP=$ac_cv_prog_STRIP 3122if test -n "$STRIP"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3124$as_echo "$STRIP" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131fi 3132if test -z "$ac_cv_prog_STRIP"; then 3133 ac_ct_STRIP=$STRIP 3134 # Extract the first word of "strip", so it can be a program name with args. 3135set dummy strip; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_STRIP"; then 3142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_STRIP="strip" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3162if test -n "$ac_ct_STRIP"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3164$as_echo "$ac_ct_STRIP" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 if test "x$ac_ct_STRIP" = x; then 3171 STRIP=":" 3172 else 3173 case $cross_compiling:$ac_tool_warned in 3174yes:) 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3177ac_tool_warned=yes ;; 3178esac 3179 STRIP=$ac_ct_STRIP 3180 fi 3181else 3182 STRIP="$ac_cv_prog_STRIP" 3183fi 3184 3185fi 3186INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3187 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3189$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3190if test -z "$MKDIR_P"; then 3191 if ${ac_cv_path_mkdir+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_prog in mkdir gmkdir; do 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3202 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3203 'mkdir (GNU coreutils) '* | \ 3204 'mkdir (coreutils) '* | \ 3205 'mkdir (fileutils) '4.1*) 3206 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3207 break 3;; 3208 esac 3209 done 3210 done 3211 done 3212IFS=$as_save_IFS 3213 3214fi 3215 3216 test -d ./--version && rmdir ./--version 3217 if test "${ac_cv_path_mkdir+set}" = set; then 3218 MKDIR_P="$ac_cv_path_mkdir -p" 3219 else 3220 # As a last resort, use the slow shell script. Don't cache a 3221 # value for MKDIR_P within a source directory, because that will 3222 # break other packages using the cache if that directory is 3223 # removed, or if the value is a relative name. 3224 MKDIR_P="$ac_install_sh -d" 3225 fi 3226fi 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3228$as_echo "$MKDIR_P" >&6; } 3229 3230for ac_prog in gawk mawk nawk awk 3231do 3232 # Extract the first word of "$ac_prog", so it can be a program name with args. 3233set dummy $ac_prog; ac_word=$2 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3235$as_echo_n "checking for $ac_word... " >&6; } 3236if ${ac_cv_prog_AWK+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 if test -n "$AWK"; then 3240 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3241else 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 ac_cv_prog_AWK="$ac_prog" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254 done 3255IFS=$as_save_IFS 3256 3257fi 3258fi 3259AWK=$ac_cv_prog_AWK 3260if test -n "$AWK"; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3262$as_echo "$AWK" >&6; } 3263else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3265$as_echo "no" >&6; } 3266fi 3267 3268 3269 test -n "$AWK" && break 3270done 3271 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3273$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3274set x ${MAKE-make} 3275ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3276if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 cat >conftest.make <<\_ACEOF 3280SHELL = /bin/sh 3281all: 3282 @echo '@@@%%%=$(MAKE)=@@@%%%' 3283_ACEOF 3284# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3285case `${MAKE-make} -f conftest.make 2>/dev/null` in 3286 *@@@%%%=?*=@@@%%%*) 3287 eval ac_cv_prog_make_${ac_make}_set=yes;; 3288 *) 3289 eval ac_cv_prog_make_${ac_make}_set=no;; 3290esac 3291rm -f conftest.make 3292fi 3293if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3295$as_echo "yes" >&6; } 3296 SET_MAKE= 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300 SET_MAKE="MAKE=${MAKE-make}" 3301fi 3302 3303rm -rf .tst 2>/dev/null 3304mkdir .tst 2>/dev/null 3305if test -d .tst; then 3306 am__leading_dot=. 3307else 3308 am__leading_dot=_ 3309fi 3310rmdir .tst 2>/dev/null 3311 3312# Check whether --enable-silent-rules was given. 3313if test "${enable_silent_rules+set}" = set; then : 3314 enableval=$enable_silent_rules; 3315fi 3316 3317case $enable_silent_rules in # ((( 3318 yes) AM_DEFAULT_VERBOSITY=0;; 3319 no) AM_DEFAULT_VERBOSITY=1;; 3320 *) AM_DEFAULT_VERBOSITY=1;; 3321esac 3322am_make=${MAKE-make} 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3324$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3325if ${am_cv_make_support_nested_variables+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if $as_echo 'TRUE=$(BAR$(V)) 3329BAR0=false 3330BAR1=true 3331V=1 3332am__doit: 3333 @$(TRUE) 3334.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3335 am_cv_make_support_nested_variables=yes 3336else 3337 am_cv_make_support_nested_variables=no 3338fi 3339fi 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3341$as_echo "$am_cv_make_support_nested_variables" >&6; } 3342if test $am_cv_make_support_nested_variables = yes; then 3343 AM_V='$(V)' 3344 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3345else 3346 AM_V=$AM_DEFAULT_VERBOSITY 3347 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3348fi 3349AM_BACKSLASH='\' 3350 3351if test "`cd $srcdir && pwd`" != "`pwd`"; then 3352 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3353 # is not polluted with repeated "-I." 3354 am__isrc=' -I$(srcdir)' 3355 # test to see if srcdir already configured 3356 if test -f $srcdir/config.status; then 3357 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3358 fi 3359fi 3360 3361# test whether we have cygpath 3362if test -z "$CYGPATH_W"; then 3363 if (cygpath --version) >/dev/null 2>/dev/null; then 3364 CYGPATH_W='cygpath -w' 3365 else 3366 CYGPATH_W=echo 3367 fi 3368fi 3369 3370 3371# Define the identity of the package. 3372 PACKAGE='libgpod' 3373 VERSION='0.8.3' 3374 3375 3376cat >>confdefs.h <<_ACEOF 3377#define PACKAGE "$PACKAGE" 3378_ACEOF 3379 3380 3381cat >>confdefs.h <<_ACEOF 3382#define VERSION "$VERSION" 3383_ACEOF 3384 3385# Some tools Automake needs. 3386 3387ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3388 3389 3390AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3391 3392 3393AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3394 3395 3396AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3397 3398 3399MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3400 3401# For better backward compatibility. To be removed once Automake 1.9.x 3402# dies out for good. For more background, see: 3403# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3404# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3405mkdir_p='$(MKDIR_P)' 3406 3407# We need awk for the "check" target. The system "awk" is bad on 3408# some platforms. 3409# Always define AMTAR for backward compatibility. Yes, it's still used 3410# in the wild :-( We should find a proper way to deprecate it ... 3411AMTAR='$${TAR-tar}' 3412 3413 3414# We'll loop over all known methods to create a tar archive until one works. 3415_am_tools='gnutar pax cpio none' 3416 3417am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3418 3419 3420 3421 3422 3423 3424 3425ACLOCAL_AMFLAGS="$ACLOCAL_FLAGS" 3426 3427 3428 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3430$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3431 # Check whether --enable-maintainer-mode was given. 3432if test "${enable_maintainer_mode+set}" = set; then : 3433 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3434else 3435 USE_MAINTAINER_MODE=no 3436fi 3437 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3439$as_echo "$USE_MAINTAINER_MODE" >&6; } 3440 if test $USE_MAINTAINER_MODE = yes; then 3441 MAINTAINER_MODE_TRUE= 3442 MAINTAINER_MODE_FALSE='#' 3443else 3444 MAINTAINER_MODE_TRUE='#' 3445 MAINTAINER_MODE_FALSE= 3446fi 3447 3448 MAINT=$MAINTAINER_MODE_TRUE 3449 3450 3451 3452DEPDIR="${am__leading_dot}deps" 3453 3454ac_config_commands="$ac_config_commands depfiles" 3455 3456 3457am_make=${MAKE-make} 3458cat > confinc << 'END' 3459am__doit: 3460 @echo this is the am__doit target 3461.PHONY: am__doit 3462END 3463# If we don't find an include directive, just comment out the code. 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3465$as_echo_n "checking for style of include used by $am_make... " >&6; } 3466am__include="#" 3467am__quote= 3468_am_result=none 3469# First try GNU make style include. 3470echo "include confinc" > confmf 3471# Ignore all kinds of additional output from 'make'. 3472case `$am_make -s -f confmf 2> /dev/null` in #( 3473*the\ am__doit\ target*) 3474 am__include=include 3475 am__quote= 3476 _am_result=GNU 3477 ;; 3478esac 3479# Now try BSD make style include. 3480if test "$am__include" = "#"; then 3481 echo '.include "confinc"' > confmf 3482 case `$am_make -s -f confmf 2> /dev/null` in #( 3483 *the\ am__doit\ target*) 3484 am__include=.include 3485 am__quote="\"" 3486 _am_result=BSD 3487 ;; 3488 esac 3489fi 3490 3491 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3493$as_echo "$_am_result" >&6; } 3494rm -f confinc confmf 3495 3496# Check whether --enable-dependency-tracking was given. 3497if test "${enable_dependency_tracking+set}" = set; then : 3498 enableval=$enable_dependency_tracking; 3499fi 3500 3501if test "x$enable_dependency_tracking" != xno; then 3502 am_depcomp="$ac_aux_dir/depcomp" 3503 AMDEPBACKSLASH='\' 3504 am__nodep='_no' 3505fi 3506 if test "x$enable_dependency_tracking" != xno; then 3507 AMDEP_TRUE= 3508 AMDEP_FALSE='#' 3509else 3510 AMDEP_TRUE='#' 3511 AMDEP_FALSE= 3512fi 3513 3514 3515ac_ext=c 3516ac_cpp='$CPP $CPPFLAGS' 3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3519ac_compiler_gnu=$ac_cv_c_compiler_gnu 3520if test -n "$ac_tool_prefix"; then 3521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3522set dummy ${ac_tool_prefix}gcc; ac_word=$2 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3524$as_echo_n "checking for $ac_word... " >&6; } 3525if ${ac_cv_prog_CC+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 if test -n "$CC"; then 3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3530else 3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532for as_dir in $PATH 3533do 3534 IFS=$as_save_IFS 3535 test -z "$as_dir" && as_dir=. 3536 for ac_exec_ext in '' $ac_executable_extensions; do 3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3538 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3540 break 2 3541 fi 3542done 3543 done 3544IFS=$as_save_IFS 3545 3546fi 3547fi 3548CC=$ac_cv_prog_CC 3549if test -n "$CC"; then 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3551$as_echo "$CC" >&6; } 3552else 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554$as_echo "no" >&6; } 3555fi 3556 3557 3558fi 3559if test -z "$ac_cv_prog_CC"; then 3560 ac_ct_CC=$CC 3561 # Extract the first word of "gcc", so it can be a program name with args. 3562set dummy gcc; ac_word=$2 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564$as_echo_n "checking for $ac_word... " >&6; } 3565if ${ac_cv_prog_ac_ct_CC+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if test -n "$ac_ct_CC"; then 3569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3570else 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 test -z "$as_dir" && as_dir=. 3576 for ac_exec_ext in '' $ac_executable_extensions; do 3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3578 ac_cv_prog_ac_ct_CC="gcc" 3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 break 2 3581 fi 3582done 3583 done 3584IFS=$as_save_IFS 3585 3586fi 3587fi 3588ac_ct_CC=$ac_cv_prog_ac_ct_CC 3589if test -n "$ac_ct_CC"; then 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3591$as_echo "$ac_ct_CC" >&6; } 3592else 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3594$as_echo "no" >&6; } 3595fi 3596 3597 if test "x$ac_ct_CC" = x; then 3598 CC="" 3599 else 3600 case $cross_compiling:$ac_tool_warned in 3601yes:) 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3604ac_tool_warned=yes ;; 3605esac 3606 CC=$ac_ct_CC 3607 fi 3608else 3609 CC="$ac_cv_prog_CC" 3610fi 3611 3612if test -z "$CC"; then 3613 if test -n "$ac_tool_prefix"; then 3614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3615set dummy ${ac_tool_prefix}cc; ac_word=$2 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3617$as_echo_n "checking for $ac_word... " >&6; } 3618if ${ac_cv_prog_CC+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -n "$CC"; then 3622 ac_cv_prog_CC="$CC" # Let the user override the test. 3623else 3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625for as_dir in $PATH 3626do 3627 IFS=$as_save_IFS 3628 test -z "$as_dir" && as_dir=. 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3631 ac_cv_prog_CC="${ac_tool_prefix}cc" 3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3633 break 2 3634 fi 3635done 3636 done 3637IFS=$as_save_IFS 3638 3639fi 3640fi 3641CC=$ac_cv_prog_CC 3642if test -n "$CC"; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3644$as_echo "$CC" >&6; } 3645else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648fi 3649 3650 3651 fi 3652fi 3653if test -z "$CC"; then 3654 # Extract the first word of "cc", so it can be a program name with args. 3655set dummy cc; ac_word=$2 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657$as_echo_n "checking for $ac_word... " >&6; } 3658if ${ac_cv_prog_CC+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if test -n "$CC"; then 3662 ac_cv_prog_CC="$CC" # Let the user override the test. 3663else 3664 ac_prog_rejected=no 3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH 3667do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3673 ac_prog_rejected=yes 3674 continue 3675 fi 3676 ac_cv_prog_CC="cc" 3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3678 break 2 3679 fi 3680done 3681 done 3682IFS=$as_save_IFS 3683 3684if test $ac_prog_rejected = yes; then 3685 # We found a bogon in the path, so make sure we never use it. 3686 set dummy $ac_cv_prog_CC 3687 shift 3688 if test $# != 0; then 3689 # We chose a different compiler from the bogus one. 3690 # However, it has the same basename, so the bogon will be chosen 3691 # first if we set CC to just the basename; use the full file name. 3692 shift 3693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3694 fi 3695fi 3696fi 3697fi 3698CC=$ac_cv_prog_CC 3699if test -n "$CC"; then 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701$as_echo "$CC" >&6; } 3702else 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704$as_echo "no" >&6; } 3705fi 3706 3707 3708fi 3709if test -z "$CC"; then 3710 if test -n "$ac_tool_prefix"; then 3711 for ac_prog in cl.exe 3712 do 3713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3714set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3716$as_echo_n "checking for $ac_word... " >&6; } 3717if ${ac_cv_prog_CC+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 if test -n "$CC"; then 3721 ac_cv_prog_CC="$CC" # Let the user override the test. 3722else 3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH 3725do 3726 IFS=$as_save_IFS 3727 test -z "$as_dir" && as_dir=. 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734done 3735 done 3736IFS=$as_save_IFS 3737 3738fi 3739fi 3740CC=$ac_cv_prog_CC 3741if test -n "$CC"; then 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3743$as_echo "$CC" >&6; } 3744else 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3746$as_echo "no" >&6; } 3747fi 3748 3749 3750 test -n "$CC" && break 3751 done 3752fi 3753if test -z "$CC"; then 3754 ac_ct_CC=$CC 3755 for ac_prog in cl.exe 3756do 3757 # Extract the first word of "$ac_prog", so it can be a program name with args. 3758set dummy $ac_prog; ac_word=$2 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3760$as_echo_n "checking for $ac_word... " >&6; } 3761if ${ac_cv_prog_ac_ct_CC+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 if test -n "$ac_ct_CC"; then 3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3766else 3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3768for as_dir in $PATH 3769do 3770 IFS=$as_save_IFS 3771 test -z "$as_dir" && as_dir=. 3772 for ac_exec_ext in '' $ac_executable_extensions; do 3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3774 ac_cv_prog_ac_ct_CC="$ac_prog" 3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3776 break 2 3777 fi 3778done 3779 done 3780IFS=$as_save_IFS 3781 3782fi 3783fi 3784ac_ct_CC=$ac_cv_prog_ac_ct_CC 3785if test -n "$ac_ct_CC"; then 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3787$as_echo "$ac_ct_CC" >&6; } 3788else 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790$as_echo "no" >&6; } 3791fi 3792 3793 3794 test -n "$ac_ct_CC" && break 3795done 3796 3797 if test "x$ac_ct_CC" = x; then 3798 CC="" 3799 else 3800 case $cross_compiling:$ac_tool_warned in 3801yes:) 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3804ac_tool_warned=yes ;; 3805esac 3806 CC=$ac_ct_CC 3807 fi 3808fi 3809 3810fi 3811 3812 3813test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3815as_fn_error $? "no acceptable C compiler found in \$PATH 3816See \`config.log' for more details" "$LINENO" 5; } 3817 3818# Provide some information about the compiler. 3819$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3820set X $ac_compile 3821ac_compiler=$2 3822for ac_option in --version -v -V -qversion; do 3823 { { ac_try="$ac_compiler $ac_option >&5" 3824case "(($ac_try" in 3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *) ac_try_echo=$ac_try;; 3827esac 3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3829$as_echo "$ac_try_echo"; } >&5 3830 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3831 ac_status=$? 3832 if test -s conftest.err; then 3833 sed '10a\ 3834... rest of stderr output deleted ... 3835 10q' conftest.err >conftest.er1 3836 cat conftest.er1 >&5 3837 fi 3838 rm -f conftest.er1 conftest.err 3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3840 test $ac_status = 0; } 3841done 3842 3843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854ac_clean_files_save=$ac_clean_files 3855ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3856# Try to create an executable without -o first, disregard a.out. 3857# It will help us diagnose broken compilers, and finding out an intuition 3858# of exeext. 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3860$as_echo_n "checking whether the C compiler works... " >&6; } 3861ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3862 3863# The possible output files: 3864ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3865 3866ac_rmfiles= 3867for ac_file in $ac_files 3868do 3869 case $ac_file in 3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3871 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3872 esac 3873done 3874rm -f $ac_rmfiles 3875 3876if { { ac_try="$ac_link_default" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3882$as_echo "$ac_try_echo"; } >&5 3883 (eval "$ac_link_default") 2>&5 3884 ac_status=$? 3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3886 test $ac_status = 0; }; then : 3887 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3888# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3889# in a Makefile. We should not override ac_cv_exeext if it was cached, 3890# so that the user can short-circuit this test for compilers unknown to 3891# Autoconf. 3892for ac_file in $ac_files '' 3893do 3894 test -f "$ac_file" || continue 3895 case $ac_file in 3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3897 ;; 3898 [ab].out ) 3899 # We found the default executable, but exeext='' is most 3900 # certainly right. 3901 break;; 3902 *.* ) 3903 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3904 then :; else 3905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3906 fi 3907 # We set ac_cv_exeext here because the later test for it is not 3908 # safe: cross compilers may not add the suffix if given an `-o' 3909 # argument, so we may need to know it at that point already. 3910 # Even if this section looks crufty: it has the advantage of 3911 # actually working. 3912 break;; 3913 * ) 3914 break;; 3915 esac 3916done 3917test "$ac_cv_exeext" = no && ac_cv_exeext= 3918 3919else 3920 ac_file='' 3921fi 3922if test -z "$ac_file"; then : 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3924$as_echo "no" >&6; } 3925$as_echo "$as_me: failed program was:" >&5 3926sed 's/^/| /' conftest.$ac_ext >&5 3927 3928{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3930as_fn_error 77 "C compiler cannot create executables 3931See \`config.log' for more details" "$LINENO" 5; } 3932else 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3934$as_echo "yes" >&6; } 3935fi 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3937$as_echo_n "checking for C compiler default output file name... " >&6; } 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3939$as_echo "$ac_file" >&6; } 3940ac_exeext=$ac_cv_exeext 3941 3942rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3943ac_clean_files=$ac_clean_files_save 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3945$as_echo_n "checking for suffix of executables... " >&6; } 3946if { { ac_try="$ac_link" 3947case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950esac 3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3952$as_echo "$ac_try_echo"; } >&5 3953 (eval "$ac_link") 2>&5 3954 ac_status=$? 3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; }; then : 3957 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3958# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3959# work properly (i.e., refer to `conftest.exe'), while it won't with 3960# `rm'. 3961for ac_file in conftest.exe conftest conftest.*; do 3962 test -f "$ac_file" || continue 3963 case $ac_file in 3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3966 break;; 3967 * ) break;; 3968 esac 3969done 3970else 3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3973as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3974See \`config.log' for more details" "$LINENO" 5; } 3975fi 3976rm -f conftest conftest$ac_cv_exeext 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3978$as_echo "$ac_cv_exeext" >&6; } 3979 3980rm -f conftest.$ac_ext 3981EXEEXT=$ac_cv_exeext 3982ac_exeext=$EXEEXT 3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985#include <stdio.h> 3986int 3987main () 3988{ 3989FILE *f = fopen ("conftest.out", "w"); 3990 return ferror (f) || fclose (f) != 0; 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996ac_clean_files="$ac_clean_files conftest.out" 3997# Check that the compiler produces executables we can run. If not, either 3998# the compiler is broken, or we cross compile. 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4000$as_echo_n "checking whether we are cross compiling... " >&6; } 4001if test "$cross_compiling" != yes; then 4002 { { ac_try="$ac_link" 4003case "(($ac_try" in 4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4005 *) ac_try_echo=$ac_try;; 4006esac 4007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4008$as_echo "$ac_try_echo"; } >&5 4009 (eval "$ac_link") 2>&5 4010 ac_status=$? 4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4012 test $ac_status = 0; } 4013 if { ac_try='./conftest$ac_cv_exeext' 4014 { { case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4019$as_echo "$ac_try_echo"; } >&5 4020 (eval "$ac_try") 2>&5 4021 ac_status=$? 4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4023 test $ac_status = 0; }; }; then 4024 cross_compiling=no 4025 else 4026 if test "$cross_compiling" = maybe; then 4027 cross_compiling=yes 4028 else 4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4031as_fn_error $? "cannot run C compiled programs. 4032If you meant to cross compile, use \`--host'. 4033See \`config.log' for more details" "$LINENO" 5; } 4034 fi 4035 fi 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4038$as_echo "$cross_compiling" >&6; } 4039 4040rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4041ac_clean_files=$ac_clean_files_save 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4043$as_echo_n "checking for suffix of object files... " >&6; } 4044if ${ac_cv_objext+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049 4050int 4051main () 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058rm -f conftest.o conftest.obj 4059if { { ac_try="$ac_compile" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065$as_echo "$ac_try_echo"; } >&5 4066 (eval "$ac_compile") 2>&5 4067 ac_status=$? 4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; }; then : 4070 for ac_file in conftest.o conftest.obj conftest.*; do 4071 test -f "$ac_file" || continue; 4072 case $ac_file in 4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4075 break;; 4076 esac 4077done 4078else 4079 $as_echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4084as_fn_error $? "cannot compute suffix of object files: cannot compile 4085See \`config.log' for more details" "$LINENO" 5; } 4086fi 4087rm -f conftest.$ac_cv_objext conftest.$ac_ext 4088fi 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4090$as_echo "$ac_cv_objext" >&6; } 4091OBJEXT=$ac_cv_objext 4092ac_objext=$OBJEXT 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4094$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4095if ${ac_cv_c_compiler_gnu+:} false; then : 4096 $as_echo_n "(cached) " >&6 4097else 4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099/* end confdefs.h. */ 4100 4101int 4102main () 4103{ 4104#ifndef __GNUC__ 4105 choke me 4106#endif 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112if ac_fn_c_try_compile "$LINENO"; then : 4113 ac_compiler_gnu=yes 4114else 4115 ac_compiler_gnu=no 4116fi 4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4118ac_cv_c_compiler_gnu=$ac_compiler_gnu 4119 4120fi 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4122$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4123if test $ac_compiler_gnu = yes; then 4124 GCC=yes 4125else 4126 GCC= 4127fi 4128ac_test_CFLAGS=${CFLAGS+set} 4129ac_save_CFLAGS=$CFLAGS 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4131$as_echo_n "checking whether $CC accepts -g... " >&6; } 4132if ${ac_cv_prog_cc_g+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 ac_save_c_werror_flag=$ac_c_werror_flag 4136 ac_c_werror_flag=yes 4137 ac_cv_prog_cc_g=no 4138 CFLAGS="-g" 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141 4142int 4143main () 4144{ 4145 4146 ; 4147 return 0; 4148} 4149_ACEOF 4150if ac_fn_c_try_compile "$LINENO"; then : 4151 ac_cv_prog_cc_g=yes 4152else 4153 CFLAGS="" 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165if ac_fn_c_try_compile "$LINENO"; then : 4166 4167else 4168 ac_c_werror_flag=$ac_save_c_werror_flag 4169 CFLAGS="-g" 4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4171/* end confdefs.h. */ 4172 4173int 4174main () 4175{ 4176 4177 ; 4178 return 0; 4179} 4180_ACEOF 4181if ac_fn_c_try_compile "$LINENO"; then : 4182 ac_cv_prog_cc_g=yes 4183fi 4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4185fi 4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4187fi 4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4189 ac_c_werror_flag=$ac_save_c_werror_flag 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4192$as_echo "$ac_cv_prog_cc_g" >&6; } 4193if test "$ac_test_CFLAGS" = set; then 4194 CFLAGS=$ac_save_CFLAGS 4195elif test $ac_cv_prog_cc_g = yes; then 4196 if test "$GCC" = yes; then 4197 CFLAGS="-g -O2" 4198 else 4199 CFLAGS="-g" 4200 fi 4201else 4202 if test "$GCC" = yes; then 4203 CFLAGS="-O2" 4204 else 4205 CFLAGS= 4206 fi 4207fi 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4209$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4210if ${ac_cv_prog_cc_c89+:} false; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 ac_cv_prog_cc_c89=no 4214ac_save_CC=$CC 4215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216/* end confdefs.h. */ 4217#include <stdarg.h> 4218#include <stdio.h> 4219struct stat; 4220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4221struct buf { int x; }; 4222FILE * (*rcsopen) (struct buf *, struct stat *, int); 4223static char *e (p, i) 4224 char **p; 4225 int i; 4226{ 4227 return p[i]; 4228} 4229static char *f (char * (*g) (char **, int), char **p, ...) 4230{ 4231 char *s; 4232 va_list v; 4233 va_start (v,p); 4234 s = g (p, va_arg (v,int)); 4235 va_end (v); 4236 return s; 4237} 4238 4239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4240 function prototypes and stuff, but not '\xHH' hex character constants. 4241 These don't provoke an error unfortunately, instead are silently treated 4242 as 'x'. The following induces an error, until -std is added to get 4243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4244 array size at least. It's necessary to write '\x00'==0 to get something 4245 that's true only with -std. */ 4246int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4247 4248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4249 inside strings and character constants. */ 4250#define FOO(x) 'x' 4251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4252 4253int test (int i, double x); 4254struct s1 {int (*f) (int a);}; 4255struct s2 {int (*f) (double a);}; 4256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4257int argc; 4258char **argv; 4259int 4260main () 4261{ 4262return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4263 ; 4264 return 0; 4265} 4266_ACEOF 4267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4269do 4270 CC="$ac_save_CC $ac_arg" 4271 if ac_fn_c_try_compile "$LINENO"; then : 4272 ac_cv_prog_cc_c89=$ac_arg 4273fi 4274rm -f core conftest.err conftest.$ac_objext 4275 test "x$ac_cv_prog_cc_c89" != "xno" && break 4276done 4277rm -f conftest.$ac_ext 4278CC=$ac_save_CC 4279 4280fi 4281# AC_CACHE_VAL 4282case "x$ac_cv_prog_cc_c89" in 4283 x) 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4285$as_echo "none needed" >&6; } ;; 4286 xno) 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4288$as_echo "unsupported" >&6; } ;; 4289 *) 4290 CC="$CC $ac_cv_prog_cc_c89" 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4292$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4293esac 4294if test "x$ac_cv_prog_cc_c89" != xno; then : 4295 4296fi 4297 4298ac_ext=c 4299ac_cpp='$CPP $CPPFLAGS' 4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4302ac_compiler_gnu=$ac_cv_c_compiler_gnu 4303 4304depcc="$CC" am_compiler_list= 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4307$as_echo_n "checking dependency style of $depcc... " >&6; } 4308if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4312 # We make a subdir and do the tests there. Otherwise we can end up 4313 # making bogus files that we don't know about and never remove. For 4314 # instance it was reported that on HP-UX the gcc test will end up 4315 # making a dummy file named 'D' -- because '-MD' means "put the output 4316 # in D". 4317 rm -rf conftest.dir 4318 mkdir conftest.dir 4319 # Copy depcomp to subdir because otherwise we won't find it if we're 4320 # using a relative directory. 4321 cp "$am_depcomp" conftest.dir 4322 cd conftest.dir 4323 # We will build objects and dependencies in a subdirectory because 4324 # it helps to detect inapplicable dependency modes. For instance 4325 # both Tru64's cc and ICC support -MD to output dependencies as a 4326 # side effect of compilation, but ICC will put the dependencies in 4327 # the current directory while Tru64 will put them in the object 4328 # directory. 4329 mkdir sub 4330 4331 am_cv_CC_dependencies_compiler_type=none 4332 if test "$am_compiler_list" = ""; then 4333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4334 fi 4335 am__universal=false 4336 case " $depcc " in #( 4337 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4338 esac 4339 4340 for depmode in $am_compiler_list; do 4341 # Setup a source with many dependencies, because some compilers 4342 # like to wrap large dependency lists on column 80 (with \), and 4343 # we should not choose a depcomp mode which is confused by this. 4344 # 4345 # We need to recreate these files for each test, as the compiler may 4346 # overwrite some of them when testing with obscure command lines. 4347 # This happens at least with the AIX C compiler. 4348 : > sub/conftest.c 4349 for i in 1 2 3 4 5 6; do 4350 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4351 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4352 # Solaris 10 /bin/sh. 4353 echo '/* dummy */' > sub/conftst$i.h 4354 done 4355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4356 4357 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4358 # mode. It turns out that the SunPro C++ compiler does not properly 4359 # handle '-M -o', and we need to detect this. Also, some Intel 4360 # versions had trouble with output in subdirs. 4361 am__obj=sub/conftest.${OBJEXT-o} 4362 am__minus_obj="-o $am__obj" 4363 case $depmode in 4364 gcc) 4365 # This depmode causes a compiler race in universal mode. 4366 test "$am__universal" = false || continue 4367 ;; 4368 nosideeffect) 4369 # After this tag, mechanisms are not by side-effect, so they'll 4370 # only be used when explicitly requested. 4371 if test "x$enable_dependency_tracking" = xyes; then 4372 continue 4373 else 4374 break 4375 fi 4376 ;; 4377 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4378 # This compiler won't grok '-c -o', but also, the minuso test has 4379 # not run yet. These depmodes are late enough in the game, and 4380 # so weak that their functioning should not be impacted. 4381 am__obj=conftest.${OBJEXT-o} 4382 am__minus_obj= 4383 ;; 4384 none) break ;; 4385 esac 4386 if depmode=$depmode \ 4387 source=sub/conftest.c object=$am__obj \ 4388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4390 >/dev/null 2>conftest.err && 4391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4395 # icc doesn't choke on unknown options, it will just issue warnings 4396 # or remarks (even with -Werror). So we grep stderr for any message 4397 # that says an option was ignored or not supported. 4398 # When given -MP, icc 7.0 and 7.1 complain thusly: 4399 # icc: Command line warning: ignoring option '-M'; no argument required 4400 # The diagnosis changed in icc 8.0: 4401 # icc: Command line remark: option '-MP' not supported 4402 if (grep 'ignoring option' conftest.err || 4403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4404 am_cv_CC_dependencies_compiler_type=$depmode 4405 break 4406 fi 4407 fi 4408 done 4409 4410 cd .. 4411 rm -rf conftest.dir 4412else 4413 am_cv_CC_dependencies_compiler_type=none 4414fi 4415 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4418$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4419CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4420 4421 if 4422 test "x$enable_dependency_tracking" != xno \ 4423 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4424 am__fastdepCC_TRUE= 4425 am__fastdepCC_FALSE='#' 4426else 4427 am__fastdepCC_TRUE='#' 4428 am__fastdepCC_FALSE= 4429fi 4430 4431 4432 4433ac_ext=c 4434ac_cpp='$CPP $CPPFLAGS' 4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4437ac_compiler_gnu=$ac_cv_c_compiler_gnu 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4439$as_echo_n "checking how to run the C preprocessor... " >&6; } 4440# On Suns, sometimes $CPP names a directory. 4441if test -n "$CPP" && test -d "$CPP"; then 4442 CPP= 4443fi 4444if test -z "$CPP"; then 4445 if ${ac_cv_prog_CPP+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 # Double quotes because CPP needs to be expanded 4449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4450 do 4451 ac_preproc_ok=false 4452for ac_c_preproc_warn_flag in '' yes 4453do 4454 # Use a header file that comes with gcc, so configuring glibc 4455 # with a fresh cross-compiler works. 4456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4457 # <limits.h> exists even on freestanding compilers. 4458 # On the NeXT, cc -E runs the code through the compiler's parser, 4459 # not just through cpp. "Syntax error" is here to catch this case. 4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461/* end confdefs.h. */ 4462#ifdef __STDC__ 4463# include <limits.h> 4464#else 4465# include <assert.h> 4466#endif 4467 Syntax error 4468_ACEOF 4469if ac_fn_c_try_cpp "$LINENO"; then : 4470 4471else 4472 # Broken: fails on valid input. 4473continue 4474fi 4475rm -f conftest.err conftest.i conftest.$ac_ext 4476 4477 # OK, works on sane cases. Now check whether nonexistent headers 4478 # can be detected and how. 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481#include <ac_nonexistent.h> 4482_ACEOF 4483if ac_fn_c_try_cpp "$LINENO"; then : 4484 # Broken: success on invalid input. 4485continue 4486else 4487 # Passes both tests. 4488ac_preproc_ok=: 4489break 4490fi 4491rm -f conftest.err conftest.i conftest.$ac_ext 4492 4493done 4494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4495rm -f conftest.i conftest.err conftest.$ac_ext 4496if $ac_preproc_ok; then : 4497 break 4498fi 4499 4500 done 4501 ac_cv_prog_CPP=$CPP 4502 4503fi 4504 CPP=$ac_cv_prog_CPP 4505else 4506 ac_cv_prog_CPP=$CPP 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4509$as_echo "$CPP" >&6; } 4510ac_preproc_ok=false 4511for ac_c_preproc_warn_flag in '' yes 4512do 4513 # Use a header file that comes with gcc, so configuring glibc 4514 # with a fresh cross-compiler works. 4515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4516 # <limits.h> exists even on freestanding compilers. 4517 # On the NeXT, cc -E runs the code through the compiler's parser, 4518 # not just through cpp. "Syntax error" is here to catch this case. 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521#ifdef __STDC__ 4522# include <limits.h> 4523#else 4524# include <assert.h> 4525#endif 4526 Syntax error 4527_ACEOF 4528if ac_fn_c_try_cpp "$LINENO"; then : 4529 4530else 4531 # Broken: fails on valid input. 4532continue 4533fi 4534rm -f conftest.err conftest.i conftest.$ac_ext 4535 4536 # OK, works on sane cases. Now check whether nonexistent headers 4537 # can be detected and how. 4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539/* end confdefs.h. */ 4540#include <ac_nonexistent.h> 4541_ACEOF 4542if ac_fn_c_try_cpp "$LINENO"; then : 4543 # Broken: success on invalid input. 4544continue 4545else 4546 # Passes both tests. 4547ac_preproc_ok=: 4548break 4549fi 4550rm -f conftest.err conftest.i conftest.$ac_ext 4551 4552done 4553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4554rm -f conftest.i conftest.err conftest.$ac_ext 4555if $ac_preproc_ok; then : 4556 4557else 4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4560as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4561See \`config.log' for more details" "$LINENO" 5; } 4562fi 4563 4564ac_ext=c 4565ac_cpp='$CPP $CPPFLAGS' 4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4568ac_compiler_gnu=$ac_cv_c_compiler_gnu 4569 4570 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4572$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4573if ${ac_cv_path_GREP+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -z "$GREP"; then 4577 ac_path_GREP_found=false 4578 # Loop through the user's path and test for each of PROGNAME-LIST 4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_prog in grep ggrep; do 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4587 as_fn_executable_p "$ac_path_GREP" || continue 4588# Check for GNU ac_path_GREP and select it if it is found. 4589 # Check for GNU $ac_path_GREP 4590case `"$ac_path_GREP" --version 2>&1` in 4591*GNU*) 4592 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4593*) 4594 ac_count=0 4595 $as_echo_n 0123456789 >"conftest.in" 4596 while : 4597 do 4598 cat "conftest.in" "conftest.in" >"conftest.tmp" 4599 mv "conftest.tmp" "conftest.in" 4600 cp "conftest.in" "conftest.nl" 4601 $as_echo 'GREP' >> "conftest.nl" 4602 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4604 as_fn_arith $ac_count + 1 && ac_count=$as_val 4605 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4606 # Best one so far, save it but keep looking for a better one 4607 ac_cv_path_GREP="$ac_path_GREP" 4608 ac_path_GREP_max=$ac_count 4609 fi 4610 # 10*(2^10) chars as input seems more than enough 4611 test $ac_count -gt 10 && break 4612 done 4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4614esac 4615 4616 $ac_path_GREP_found && break 3 4617 done 4618 done 4619 done 4620IFS=$as_save_IFS 4621 if test -z "$ac_cv_path_GREP"; then 4622 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4623 fi 4624else 4625 ac_cv_path_GREP=$GREP 4626fi 4627 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4630$as_echo "$ac_cv_path_GREP" >&6; } 4631 GREP="$ac_cv_path_GREP" 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4635$as_echo_n "checking for egrep... " >&6; } 4636if ${ac_cv_path_EGREP+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4640 then ac_cv_path_EGREP="$GREP -E" 4641 else 4642 if test -z "$EGREP"; then 4643 ac_path_EGREP_found=false 4644 # Loop through the user's path and test for each of PROGNAME-LIST 4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4647do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_prog in egrep; do 4651 for ac_exec_ext in '' $ac_executable_extensions; do 4652 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4653 as_fn_executable_p "$ac_path_EGREP" || continue 4654# Check for GNU ac_path_EGREP and select it if it is found. 4655 # Check for GNU $ac_path_EGREP 4656case `"$ac_path_EGREP" --version 2>&1` in 4657*GNU*) 4658 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4659*) 4660 ac_count=0 4661 $as_echo_n 0123456789 >"conftest.in" 4662 while : 4663 do 4664 cat "conftest.in" "conftest.in" >"conftest.tmp" 4665 mv "conftest.tmp" "conftest.in" 4666 cp "conftest.in" "conftest.nl" 4667 $as_echo 'EGREP' >> "conftest.nl" 4668 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4670 as_fn_arith $ac_count + 1 && ac_count=$as_val 4671 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4672 # Best one so far, save it but keep looking for a better one 4673 ac_cv_path_EGREP="$ac_path_EGREP" 4674 ac_path_EGREP_max=$ac_count 4675 fi 4676 # 10*(2^10) chars as input seems more than enough 4677 test $ac_count -gt 10 && break 4678 done 4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4680esac 4681 4682 $ac_path_EGREP_found && break 3 4683 done 4684 done 4685 done 4686IFS=$as_save_IFS 4687 if test -z "$ac_cv_path_EGREP"; then 4688 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4689 fi 4690else 4691 ac_cv_path_EGREP=$EGREP 4692fi 4693 4694 fi 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4697$as_echo "$ac_cv_path_EGREP" >&6; } 4698 EGREP="$ac_cv_path_EGREP" 4699 4700 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4702$as_echo_n "checking for ANSI C header files... " >&6; } 4703if ${ac_cv_header_stdc+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708#include <stdlib.h> 4709#include <stdarg.h> 4710#include <string.h> 4711#include <float.h> 4712 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_c_try_compile "$LINENO"; then : 4722 ac_cv_header_stdc=yes 4723else 4724 ac_cv_header_stdc=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727 4728if test $ac_cv_header_stdc = yes; then 4729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732#include <string.h> 4733 4734_ACEOF 4735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4736 $EGREP "memchr" >/dev/null 2>&1; then : 4737 4738else 4739 ac_cv_header_stdc=no 4740fi 4741rm -f conftest* 4742 4743fi 4744 4745if test $ac_cv_header_stdc = yes; then 4746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749#include <stdlib.h> 4750 4751_ACEOF 4752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4753 $EGREP "free" >/dev/null 2>&1; then : 4754 4755else 4756 ac_cv_header_stdc=no 4757fi 4758rm -f conftest* 4759 4760fi 4761 4762if test $ac_cv_header_stdc = yes; then 4763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4764 if test "$cross_compiling" = yes; then : 4765 : 4766else 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769#include <ctype.h> 4770#include <stdlib.h> 4771#if ((' ' & 0x0FF) == 0x020) 4772# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4773# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4774#else 4775# define ISLOWER(c) \ 4776 (('a' <= (c) && (c) <= 'i') \ 4777 || ('j' <= (c) && (c) <= 'r') \ 4778 || ('s' <= (c) && (c) <= 'z')) 4779# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4780#endif 4781 4782#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4783int 4784main () 4785{ 4786 int i; 4787 for (i = 0; i < 256; i++) 4788 if (XOR (islower (i), ISLOWER (i)) 4789 || toupper (i) != TOUPPER (i)) 4790 return 2; 4791 return 0; 4792} 4793_ACEOF 4794if ac_fn_c_try_run "$LINENO"; then : 4795 4796else 4797 ac_cv_header_stdc=no 4798fi 4799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4800 conftest.$ac_objext conftest.beam conftest.$ac_ext 4801fi 4802 4803fi 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4806$as_echo "$ac_cv_header_stdc" >&6; } 4807if test $ac_cv_header_stdc = yes; then 4808 4809$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4810 4811fi 4812 4813# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4814for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4815 inttypes.h stdint.h unistd.h 4816do : 4817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4818ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4819" 4820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4821 cat >>confdefs.h <<_ACEOF 4822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4823_ACEOF 4824 4825fi 4826 4827done 4828 4829 4830 4831 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4832if test "x$ac_cv_header_minix_config_h" = xyes; then : 4833 MINIX=yes 4834else 4835 MINIX= 4836fi 4837 4838 4839 if test "$MINIX" = yes; then 4840 4841$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4842 4843 4844$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4845 4846 4847$as_echo "#define _MINIX 1" >>confdefs.h 4848 4849 fi 4850 4851 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4853$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4854if ${ac_cv_safe_to_define___extensions__+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859 4860# define __EXTENSIONS__ 1 4861 $ac_includes_default 4862int 4863main () 4864{ 4865 4866 ; 4867 return 0; 4868} 4869_ACEOF 4870if ac_fn_c_try_compile "$LINENO"; then : 4871 ac_cv_safe_to_define___extensions__=yes 4872else 4873 ac_cv_safe_to_define___extensions__=no 4874fi 4875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4876fi 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4878$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4879 test $ac_cv_safe_to_define___extensions__ = yes && 4880 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4881 4882 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4883 4884 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4885 4886 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4887 4888 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4889 4890 4891ac_ext=c 4892ac_cpp='$CPP $CPPFLAGS' 4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4895ac_compiler_gnu=$ac_cv_c_compiler_gnu 4896if test -n "$ac_tool_prefix"; then 4897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4898set dummy ${ac_tool_prefix}gcc; ac_word=$2 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4900$as_echo_n "checking for $ac_word... " >&6; } 4901if ${ac_cv_prog_CC+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 if test -n "$CC"; then 4905 ac_cv_prog_CC="$CC" # Let the user override the test. 4906else 4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908for as_dir in $PATH 4909do 4910 IFS=$as_save_IFS 4911 test -z "$as_dir" && as_dir=. 4912 for ac_exec_ext in '' $ac_executable_extensions; do 4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4914 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4916 break 2 4917 fi 4918done 4919 done 4920IFS=$as_save_IFS 4921 4922fi 4923fi 4924CC=$ac_cv_prog_CC 4925if test -n "$CC"; then 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4927$as_echo "$CC" >&6; } 4928else 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4930$as_echo "no" >&6; } 4931fi 4932 4933 4934fi 4935if test -z "$ac_cv_prog_CC"; then 4936 ac_ct_CC=$CC 4937 # Extract the first word of "gcc", so it can be a program name with args. 4938set dummy gcc; ac_word=$2 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4940$as_echo_n "checking for $ac_word... " >&6; } 4941if ${ac_cv_prog_ac_ct_CC+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 if test -n "$ac_ct_CC"; then 4945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4946else 4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948for as_dir in $PATH 4949do 4950 IFS=$as_save_IFS 4951 test -z "$as_dir" && as_dir=. 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4954 ac_cv_prog_ac_ct_CC="gcc" 4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4956 break 2 4957 fi 4958done 4959 done 4960IFS=$as_save_IFS 4961 4962fi 4963fi 4964ac_ct_CC=$ac_cv_prog_ac_ct_CC 4965if test -n "$ac_ct_CC"; then 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4967$as_echo "$ac_ct_CC" >&6; } 4968else 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4970$as_echo "no" >&6; } 4971fi 4972 4973 if test "x$ac_ct_CC" = x; then 4974 CC="" 4975 else 4976 case $cross_compiling:$ac_tool_warned in 4977yes:) 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4980ac_tool_warned=yes ;; 4981esac 4982 CC=$ac_ct_CC 4983 fi 4984else 4985 CC="$ac_cv_prog_CC" 4986fi 4987 4988if test -z "$CC"; then 4989 if test -n "$ac_tool_prefix"; then 4990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4991set dummy ${ac_tool_prefix}cc; ac_word=$2 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4993$as_echo_n "checking for $ac_word... " >&6; } 4994if ${ac_cv_prog_CC+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$CC"; then 4998 ac_cv_prog_CC="$CC" # Let the user override the test. 4999else 5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 test -z "$as_dir" && as_dir=. 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5007 ac_cv_prog_CC="${ac_tool_prefix}cc" 5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5009 break 2 5010 fi 5011done 5012 done 5013IFS=$as_save_IFS 5014 5015fi 5016fi 5017CC=$ac_cv_prog_CC 5018if test -n "$CC"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5020$as_echo "$CC" >&6; } 5021else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023$as_echo "no" >&6; } 5024fi 5025 5026 5027 fi 5028fi 5029if test -z "$CC"; then 5030 # Extract the first word of "cc", so it can be a program name with args. 5031set dummy cc; ac_word=$2 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5033$as_echo_n "checking for $ac_word... " >&6; } 5034if ${ac_cv_prog_CC+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 if test -n "$CC"; then 5038 ac_cv_prog_CC="$CC" # Let the user override the test. 5039else 5040 ac_prog_rejected=no 5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5042for as_dir in $PATH 5043do 5044 IFS=$as_save_IFS 5045 test -z "$as_dir" && as_dir=. 5046 for ac_exec_ext in '' $ac_executable_extensions; do 5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5049 ac_prog_rejected=yes 5050 continue 5051 fi 5052 ac_cv_prog_CC="cc" 5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5054 break 2 5055 fi 5056done 5057 done 5058IFS=$as_save_IFS 5059 5060if test $ac_prog_rejected = yes; then 5061 # We found a bogon in the path, so make sure we never use it. 5062 set dummy $ac_cv_prog_CC 5063 shift 5064 if test $# != 0; then 5065 # We chose a different compiler from the bogus one. 5066 # However, it has the same basename, so the bogon will be chosen 5067 # first if we set CC to just the basename; use the full file name. 5068 shift 5069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5070 fi 5071fi 5072fi 5073fi 5074CC=$ac_cv_prog_CC 5075if test -n "$CC"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5077$as_echo "$CC" >&6; } 5078else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080$as_echo "no" >&6; } 5081fi 5082 5083 5084fi 5085if test -z "$CC"; then 5086 if test -n "$ac_tool_prefix"; then 5087 for ac_prog in cl.exe 5088 do 5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5090set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5092$as_echo_n "checking for $ac_word... " >&6; } 5093if ${ac_cv_prog_CC+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 if test -n "$CC"; then 5097 ac_cv_prog_CC="$CC" # Let the user override the test. 5098else 5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5100for as_dir in $PATH 5101do 5102 IFS=$as_save_IFS 5103 test -z "$as_dir" && as_dir=. 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110done 5111 done 5112IFS=$as_save_IFS 5113 5114fi 5115fi 5116CC=$ac_cv_prog_CC 5117if test -n "$CC"; then 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5119$as_echo "$CC" >&6; } 5120else 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5122$as_echo "no" >&6; } 5123fi 5124 5125 5126 test -n "$CC" && break 5127 done 5128fi 5129if test -z "$CC"; then 5130 ac_ct_CC=$CC 5131 for ac_prog in cl.exe 5132do 5133 # Extract the first word of "$ac_prog", so it can be a program name with args. 5134set dummy $ac_prog; ac_word=$2 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136$as_echo_n "checking for $ac_word... " >&6; } 5137if ${ac_cv_prog_ac_ct_CC+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 if test -n "$ac_ct_CC"; then 5141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5142else 5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5144for as_dir in $PATH 5145do 5146 IFS=$as_save_IFS 5147 test -z "$as_dir" && as_dir=. 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5150 ac_cv_prog_ac_ct_CC="$ac_prog" 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5152 break 2 5153 fi 5154done 5155 done 5156IFS=$as_save_IFS 5157 5158fi 5159fi 5160ac_ct_CC=$ac_cv_prog_ac_ct_CC 5161if test -n "$ac_ct_CC"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5163$as_echo "$ac_ct_CC" >&6; } 5164else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166$as_echo "no" >&6; } 5167fi 5168 5169 5170 test -n "$ac_ct_CC" && break 5171done 5172 5173 if test "x$ac_ct_CC" = x; then 5174 CC="" 5175 else 5176 case $cross_compiling:$ac_tool_warned in 5177yes:) 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5180ac_tool_warned=yes ;; 5181esac 5182 CC=$ac_ct_CC 5183 fi 5184fi 5185 5186fi 5187 5188 5189test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5191as_fn_error $? "no acceptable C compiler found in \$PATH 5192See \`config.log' for more details" "$LINENO" 5; } 5193 5194# Provide some information about the compiler. 5195$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5196set X $ac_compile 5197ac_compiler=$2 5198for ac_option in --version -v -V -qversion; do 5199 { { ac_try="$ac_compiler $ac_option >&5" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5205$as_echo "$ac_try_echo"; } >&5 5206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5207 ac_status=$? 5208 if test -s conftest.err; then 5209 sed '10a\ 5210... rest of stderr output deleted ... 5211 10q' conftest.err >conftest.er1 5212 cat conftest.er1 >&5 5213 fi 5214 rm -f conftest.er1 conftest.err 5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5216 test $ac_status = 0; } 5217done 5218 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5220$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5221if ${ac_cv_c_compiler_gnu+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226 5227int 5228main () 5229{ 5230#ifndef __GNUC__ 5231 choke me 5232#endif 5233 5234 ; 5235 return 0; 5236} 5237_ACEOF 5238if ac_fn_c_try_compile "$LINENO"; then : 5239 ac_compiler_gnu=yes 5240else 5241 ac_compiler_gnu=no 5242fi 5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5244ac_cv_c_compiler_gnu=$ac_compiler_gnu 5245 5246fi 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5248$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5249if test $ac_compiler_gnu = yes; then 5250 GCC=yes 5251else 5252 GCC= 5253fi 5254ac_test_CFLAGS=${CFLAGS+set} 5255ac_save_CFLAGS=$CFLAGS 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5257$as_echo_n "checking whether $CC accepts -g... " >&6; } 5258if ${ac_cv_prog_cc_g+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 ac_save_c_werror_flag=$ac_c_werror_flag 5262 ac_c_werror_flag=yes 5263 ac_cv_prog_cc_g=no 5264 CFLAGS="-g" 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5266/* end confdefs.h. */ 5267 5268int 5269main () 5270{ 5271 5272 ; 5273 return 0; 5274} 5275_ACEOF 5276if ac_fn_c_try_compile "$LINENO"; then : 5277 ac_cv_prog_cc_g=yes 5278else 5279 CFLAGS="" 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282 5283int 5284main () 5285{ 5286 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291if ac_fn_c_try_compile "$LINENO"; then : 5292 5293else 5294 ac_c_werror_flag=$ac_save_c_werror_flag 5295 CFLAGS="-g" 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298 5299int 5300main () 5301{ 5302 5303 ; 5304 return 0; 5305} 5306_ACEOF 5307if ac_fn_c_try_compile "$LINENO"; then : 5308 ac_cv_prog_cc_g=yes 5309fi 5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315 ac_c_werror_flag=$ac_save_c_werror_flag 5316fi 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5318$as_echo "$ac_cv_prog_cc_g" >&6; } 5319if test "$ac_test_CFLAGS" = set; then 5320 CFLAGS=$ac_save_CFLAGS 5321elif test $ac_cv_prog_cc_g = yes; then 5322 if test "$GCC" = yes; then 5323 CFLAGS="-g -O2" 5324 else 5325 CFLAGS="-g" 5326 fi 5327else 5328 if test "$GCC" = yes; then 5329 CFLAGS="-O2" 5330 else 5331 CFLAGS= 5332 fi 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5335$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5336if ${ac_cv_prog_cc_c89+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 ac_cv_prog_cc_c89=no 5340ac_save_CC=$CC 5341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5342/* end confdefs.h. */ 5343#include <stdarg.h> 5344#include <stdio.h> 5345struct stat; 5346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5347struct buf { int x; }; 5348FILE * (*rcsopen) (struct buf *, struct stat *, int); 5349static char *e (p, i) 5350 char **p; 5351 int i; 5352{ 5353 return p[i]; 5354} 5355static char *f (char * (*g) (char **, int), char **p, ...) 5356{ 5357 char *s; 5358 va_list v; 5359 va_start (v,p); 5360 s = g (p, va_arg (v,int)); 5361 va_end (v); 5362 return s; 5363} 5364 5365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5366 function prototypes and stuff, but not '\xHH' hex character constants. 5367 These don't provoke an error unfortunately, instead are silently treated 5368 as 'x'. The following induces an error, until -std is added to get 5369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5370 array size at least. It's necessary to write '\x00'==0 to get something 5371 that's true only with -std. */ 5372int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5373 5374/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5375 inside strings and character constants. */ 5376#define FOO(x) 'x' 5377int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5378 5379int test (int i, double x); 5380struct s1 {int (*f) (int a);}; 5381struct s2 {int (*f) (double a);}; 5382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5383int argc; 5384char **argv; 5385int 5386main () 5387{ 5388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5389 ; 5390 return 0; 5391} 5392_ACEOF 5393for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5395do 5396 CC="$ac_save_CC $ac_arg" 5397 if ac_fn_c_try_compile "$LINENO"; then : 5398 ac_cv_prog_cc_c89=$ac_arg 5399fi 5400rm -f core conftest.err conftest.$ac_objext 5401 test "x$ac_cv_prog_cc_c89" != "xno" && break 5402done 5403rm -f conftest.$ac_ext 5404CC=$ac_save_CC 5405 5406fi 5407# AC_CACHE_VAL 5408case "x$ac_cv_prog_cc_c89" in 5409 x) 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5411$as_echo "none needed" >&6; } ;; 5412 xno) 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5414$as_echo "unsupported" >&6; } ;; 5415 *) 5416 CC="$CC $ac_cv_prog_cc_c89" 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5418$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5419esac 5420if test "x$ac_cv_prog_cc_c89" != xno; then : 5421 5422fi 5423 5424ac_ext=c 5425ac_cpp='$CPP $CPPFLAGS' 5426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5428ac_compiler_gnu=$ac_cv_c_compiler_gnu 5429 5430depcc="$CC" am_compiler_list= 5431 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5433$as_echo_n "checking dependency style of $depcc... " >&6; } 5434if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436else 5437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5438 # We make a subdir and do the tests there. Otherwise we can end up 5439 # making bogus files that we don't know about and never remove. For 5440 # instance it was reported that on HP-UX the gcc test will end up 5441 # making a dummy file named 'D' -- because '-MD' means "put the output 5442 # in D". 5443 rm -rf conftest.dir 5444 mkdir conftest.dir 5445 # Copy depcomp to subdir because otherwise we won't find it if we're 5446 # using a relative directory. 5447 cp "$am_depcomp" conftest.dir 5448 cd conftest.dir 5449 # We will build objects and dependencies in a subdirectory because 5450 # it helps to detect inapplicable dependency modes. For instance 5451 # both Tru64's cc and ICC support -MD to output dependencies as a 5452 # side effect of compilation, but ICC will put the dependencies in 5453 # the current directory while Tru64 will put them in the object 5454 # directory. 5455 mkdir sub 5456 5457 am_cv_CC_dependencies_compiler_type=none 5458 if test "$am_compiler_list" = ""; then 5459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5460 fi 5461 am__universal=false 5462 case " $depcc " in #( 5463 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5464 esac 5465 5466 for depmode in $am_compiler_list; do 5467 # Setup a source with many dependencies, because some compilers 5468 # like to wrap large dependency lists on column 80 (with \), and 5469 # we should not choose a depcomp mode which is confused by this. 5470 # 5471 # We need to recreate these files for each test, as the compiler may 5472 # overwrite some of them when testing with obscure command lines. 5473 # This happens at least with the AIX C compiler. 5474 : > sub/conftest.c 5475 for i in 1 2 3 4 5 6; do 5476 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5478 # Solaris 10 /bin/sh. 5479 echo '/* dummy */' > sub/conftst$i.h 5480 done 5481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5482 5483 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5484 # mode. It turns out that the SunPro C++ compiler does not properly 5485 # handle '-M -o', and we need to detect this. Also, some Intel 5486 # versions had trouble with output in subdirs. 5487 am__obj=sub/conftest.${OBJEXT-o} 5488 am__minus_obj="-o $am__obj" 5489 case $depmode in 5490 gcc) 5491 # This depmode causes a compiler race in universal mode. 5492 test "$am__universal" = false || continue 5493 ;; 5494 nosideeffect) 5495 # After this tag, mechanisms are not by side-effect, so they'll 5496 # only be used when explicitly requested. 5497 if test "x$enable_dependency_tracking" = xyes; then 5498 continue 5499 else 5500 break 5501 fi 5502 ;; 5503 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5504 # This compiler won't grok '-c -o', but also, the minuso test has 5505 # not run yet. These depmodes are late enough in the game, and 5506 # so weak that their functioning should not be impacted. 5507 am__obj=conftest.${OBJEXT-o} 5508 am__minus_obj= 5509 ;; 5510 none) break ;; 5511 esac 5512 if depmode=$depmode \ 5513 source=sub/conftest.c object=$am__obj \ 5514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5516 >/dev/null 2>conftest.err && 5517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5521 # icc doesn't choke on unknown options, it will just issue warnings 5522 # or remarks (even with -Werror). So we grep stderr for any message 5523 # that says an option was ignored or not supported. 5524 # When given -MP, icc 7.0 and 7.1 complain thusly: 5525 # icc: Command line warning: ignoring option '-M'; no argument required 5526 # The diagnosis changed in icc 8.0: 5527 # icc: Command line remark: option '-MP' not supported 5528 if (grep 'ignoring option' conftest.err || 5529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5530 am_cv_CC_dependencies_compiler_type=$depmode 5531 break 5532 fi 5533 fi 5534 done 5535 5536 cd .. 5537 rm -rf conftest.dir 5538else 5539 am_cv_CC_dependencies_compiler_type=none 5540fi 5541 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5544$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5545CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5546 5547 if 5548 test "x$enable_dependency_tracking" != xno \ 5549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5550 am__fastdepCC_TRUE= 5551 am__fastdepCC_FALSE='#' 5552else 5553 am__fastdepCC_TRUE='#' 5554 am__fastdepCC_FALSE= 5555fi 5556 5557 5558if test "x$CC" != xcc; then 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5560$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5561else 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5563$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5564fi 5565set dummy $CC; ac_cc=`$as_echo "$2" | 5566 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5567if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571/* end confdefs.h. */ 5572 5573int 5574main () 5575{ 5576 5577 ; 5578 return 0; 5579} 5580_ACEOF 5581# Make sure it works both with $CC and with simple cc. 5582# We do the test twice because some compilers refuse to overwrite an 5583# existing .o file with -o, though they will create one. 5584ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5585rm -f conftest2.* 5586if { { case "(($ac_try" in 5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5588 *) ac_try_echo=$ac_try;; 5589esac 5590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5591$as_echo "$ac_try_echo"; } >&5 5592 (eval "$ac_try") 2>&5 5593 ac_status=$? 5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5595 test $ac_status = 0; } && 5596 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5598 *) ac_try_echo=$ac_try;; 5599esac 5600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5601$as_echo "$ac_try_echo"; } >&5 5602 (eval "$ac_try") 2>&5 5603 ac_status=$? 5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5605 test $ac_status = 0; }; 5606then 5607 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5608 if test "x$CC" != xcc; then 5609 # Test first that cc exists at all. 5610 if { ac_try='cc -c conftest.$ac_ext >&5' 5611 { { case "(($ac_try" in 5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5613 *) ac_try_echo=$ac_try;; 5614esac 5615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5616$as_echo "$ac_try_echo"; } >&5 5617 (eval "$ac_try") 2>&5 5618 ac_status=$? 5619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5620 test $ac_status = 0; }; }; then 5621 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5622 rm -f conftest2.* 5623 if { { case "(($ac_try" in 5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5625 *) ac_try_echo=$ac_try;; 5626esac 5627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5628$as_echo "$ac_try_echo"; } >&5 5629 (eval "$ac_try") 2>&5 5630 ac_status=$? 5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5632 test $ac_status = 0; } && 5633 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5635 *) ac_try_echo=$ac_try;; 5636esac 5637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5638$as_echo "$ac_try_echo"; } >&5 5639 (eval "$ac_try") 2>&5 5640 ac_status=$? 5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5642 test $ac_status = 0; }; 5643 then 5644 # cc works too. 5645 : 5646 else 5647 # cc exists but doesn't like -o. 5648 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5649 fi 5650 fi 5651 fi 5652else 5653 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5654fi 5655rm -f core conftest* 5656 5657fi 5658if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5660$as_echo "yes" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; } 5664 5665$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5666 5667fi 5668 5669# FIXME: we rely on the cache variable name because 5670# there is no other way. 5671set dummy $CC 5672am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5673eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5674if test "$am_t" != yes; then 5675 # Losing compiler, so override with the script. 5676 # FIXME: It is wrong to rewrite CC. 5677 # But if we don't then we get into trouble of one sort or another. 5678 # A longer-term fix would be to have automake use am__CC in this case, 5679 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5680 CC="$am_aux_dir/compile $CC" 5681fi 5682 5683 5684 5685# AC_PROG_CXX is only needed for the test program tests/test-rebuild-db.cc. 5686# You can safely remove AC_PROG_CXX and the test program (edit tests/Makefile.am) 5687# if you should run into problems. 5688ac_ext=cpp 5689ac_cpp='$CXXCPP $CPPFLAGS' 5690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5693if test -z "$CXX"; then 5694 if test -n "$CCC"; then 5695 CXX=$CCC 5696 else 5697 if test -n "$ac_tool_prefix"; then 5698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5699 do 5700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5701set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5703$as_echo_n "checking for $ac_word... " >&6; } 5704if ${ac_cv_prog_CXX+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 if test -n "$CXX"; then 5708 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5709else 5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5711for as_dir in $PATH 5712do 5713 IFS=$as_save_IFS 5714 test -z "$as_dir" && as_dir=. 5715 for ac_exec_ext in '' $ac_executable_extensions; do 5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5719 break 2 5720 fi 5721done 5722 done 5723IFS=$as_save_IFS 5724 5725fi 5726fi 5727CXX=$ac_cv_prog_CXX 5728if test -n "$CXX"; then 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5730$as_echo "$CXX" >&6; } 5731else 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5733$as_echo "no" >&6; } 5734fi 5735 5736 5737 test -n "$CXX" && break 5738 done 5739fi 5740if test -z "$CXX"; then 5741 ac_ct_CXX=$CXX 5742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5743do 5744 # Extract the first word of "$ac_prog", so it can be a program name with args. 5745set dummy $ac_prog; ac_word=$2 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5747$as_echo_n "checking for $ac_word... " >&6; } 5748if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 if test -n "$ac_ct_CXX"; then 5752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5753else 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_ac_ct_CXX="$ac_prog" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769fi 5770fi 5771ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5772if test -n "$ac_ct_CXX"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5774$as_echo "$ac_ct_CXX" >&6; } 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778fi 5779 5780 5781 test -n "$ac_ct_CXX" && break 5782done 5783 5784 if test "x$ac_ct_CXX" = x; then 5785 CXX="g++" 5786 else 5787 case $cross_compiling:$ac_tool_warned in 5788yes:) 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5791ac_tool_warned=yes ;; 5792esac 5793 CXX=$ac_ct_CXX 5794 fi 5795fi 5796 5797 fi 5798fi 5799# Provide some information about the compiler. 5800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5801set X $ac_compile 5802ac_compiler=$2 5803for ac_option in --version -v -V -qversion; do 5804 { { ac_try="$ac_compiler $ac_option >&5" 5805case "(($ac_try" in 5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5807 *) ac_try_echo=$ac_try;; 5808esac 5809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5810$as_echo "$ac_try_echo"; } >&5 5811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5812 ac_status=$? 5813 if test -s conftest.err; then 5814 sed '10a\ 5815... rest of stderr output deleted ... 5816 10q' conftest.err >conftest.er1 5817 cat conftest.er1 >&5 5818 fi 5819 rm -f conftest.er1 conftest.err 5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5821 test $ac_status = 0; } 5822done 5823 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5825$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5826if ${ac_cv_cxx_compiler_gnu+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831 5832int 5833main () 5834{ 5835#ifndef __GNUC__ 5836 choke me 5837#endif 5838 5839 ; 5840 return 0; 5841} 5842_ACEOF 5843if ac_fn_cxx_try_compile "$LINENO"; then : 5844 ac_compiler_gnu=yes 5845else 5846 ac_compiler_gnu=no 5847fi 5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5850 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5853$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5854if test $ac_compiler_gnu = yes; then 5855 GXX=yes 5856else 5857 GXX= 5858fi 5859ac_test_CXXFLAGS=${CXXFLAGS+set} 5860ac_save_CXXFLAGS=$CXXFLAGS 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5862$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5863if ${ac_cv_prog_cxx_g+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5867 ac_cxx_werror_flag=yes 5868 ac_cv_prog_cxx_g=no 5869 CXXFLAGS="-g" 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872 5873int 5874main () 5875{ 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_cxx_try_compile "$LINENO"; then : 5882 ac_cv_prog_cxx_g=yes 5883else 5884 CXXFLAGS="" 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5886/* end confdefs.h. */ 5887 5888int 5889main () 5890{ 5891 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896if ac_fn_cxx_try_compile "$LINENO"; then : 5897 5898else 5899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5900 CXXFLAGS="-g" 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903 5904int 5905main () 5906{ 5907 5908 ; 5909 return 0; 5910} 5911_ACEOF 5912if ac_fn_cxx_try_compile "$LINENO"; then : 5913 ac_cv_prog_cxx_g=yes 5914fi 5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5916fi 5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918fi 5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5921fi 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5923$as_echo "$ac_cv_prog_cxx_g" >&6; } 5924if test "$ac_test_CXXFLAGS" = set; then 5925 CXXFLAGS=$ac_save_CXXFLAGS 5926elif test $ac_cv_prog_cxx_g = yes; then 5927 if test "$GXX" = yes; then 5928 CXXFLAGS="-g -O2" 5929 else 5930 CXXFLAGS="-g" 5931 fi 5932else 5933 if test "$GXX" = yes; then 5934 CXXFLAGS="-O2" 5935 else 5936 CXXFLAGS= 5937 fi 5938fi 5939ac_ext=c 5940ac_cpp='$CPP $CPPFLAGS' 5941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5943ac_compiler_gnu=$ac_cv_c_compiler_gnu 5944 5945depcc="$CXX" am_compiler_list= 5946 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5948$as_echo_n "checking dependency style of $depcc... " >&6; } 5949if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5953 # We make a subdir and do the tests there. Otherwise we can end up 5954 # making bogus files that we don't know about and never remove. For 5955 # instance it was reported that on HP-UX the gcc test will end up 5956 # making a dummy file named 'D' -- because '-MD' means "put the output 5957 # in D". 5958 rm -rf conftest.dir 5959 mkdir conftest.dir 5960 # Copy depcomp to subdir because otherwise we won't find it if we're 5961 # using a relative directory. 5962 cp "$am_depcomp" conftest.dir 5963 cd conftest.dir 5964 # We will build objects and dependencies in a subdirectory because 5965 # it helps to detect inapplicable dependency modes. For instance 5966 # both Tru64's cc and ICC support -MD to output dependencies as a 5967 # side effect of compilation, but ICC will put the dependencies in 5968 # the current directory while Tru64 will put them in the object 5969 # directory. 5970 mkdir sub 5971 5972 am_cv_CXX_dependencies_compiler_type=none 5973 if test "$am_compiler_list" = ""; then 5974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5975 fi 5976 am__universal=false 5977 case " $depcc " in #( 5978 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5979 esac 5980 5981 for depmode in $am_compiler_list; do 5982 # Setup a source with many dependencies, because some compilers 5983 # like to wrap large dependency lists on column 80 (with \), and 5984 # we should not choose a depcomp mode which is confused by this. 5985 # 5986 # We need to recreate these files for each test, as the compiler may 5987 # overwrite some of them when testing with obscure command lines. 5988 # This happens at least with the AIX C compiler. 5989 : > sub/conftest.c 5990 for i in 1 2 3 4 5 6; do 5991 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5992 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5993 # Solaris 10 /bin/sh. 5994 echo '/* dummy */' > sub/conftst$i.h 5995 done 5996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5997 5998 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5999 # mode. It turns out that the SunPro C++ compiler does not properly 6000 # handle '-M -o', and we need to detect this. Also, some Intel 6001 # versions had trouble with output in subdirs. 6002 am__obj=sub/conftest.${OBJEXT-o} 6003 am__minus_obj="-o $am__obj" 6004 case $depmode in 6005 gcc) 6006 # This depmode causes a compiler race in universal mode. 6007 test "$am__universal" = false || continue 6008 ;; 6009 nosideeffect) 6010 # After this tag, mechanisms are not by side-effect, so they'll 6011 # only be used when explicitly requested. 6012 if test "x$enable_dependency_tracking" = xyes; then 6013 continue 6014 else 6015 break 6016 fi 6017 ;; 6018 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6019 # This compiler won't grok '-c -o', but also, the minuso test has 6020 # not run yet. These depmodes are late enough in the game, and 6021 # so weak that their functioning should not be impacted. 6022 am__obj=conftest.${OBJEXT-o} 6023 am__minus_obj= 6024 ;; 6025 none) break ;; 6026 esac 6027 if depmode=$depmode \ 6028 source=sub/conftest.c object=$am__obj \ 6029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6030 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6031 >/dev/null 2>conftest.err && 6032 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6034 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6036 # icc doesn't choke on unknown options, it will just issue warnings 6037 # or remarks (even with -Werror). So we grep stderr for any message 6038 # that says an option was ignored or not supported. 6039 # When given -MP, icc 7.0 and 7.1 complain thusly: 6040 # icc: Command line warning: ignoring option '-M'; no argument required 6041 # The diagnosis changed in icc 8.0: 6042 # icc: Command line remark: option '-MP' not supported 6043 if (grep 'ignoring option' conftest.err || 6044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6045 am_cv_CXX_dependencies_compiler_type=$depmode 6046 break 6047 fi 6048 fi 6049 done 6050 6051 cd .. 6052 rm -rf conftest.dir 6053else 6054 am_cv_CXX_dependencies_compiler_type=none 6055fi 6056 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6059$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6060CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6061 6062 if 6063 test "x$enable_dependency_tracking" != xno \ 6064 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6065 am__fastdepCXX_TRUE= 6066 am__fastdepCXX_FALSE='#' 6067else 6068 am__fastdepCXX_TRUE='#' 6069 am__fastdepCXX_FALSE= 6070fi 6071 6072 6073 6074# Make sure we can run config.sub. 6075$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6076 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6079$as_echo_n "checking build system type... " >&6; } 6080if ${ac_cv_build+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 ac_build_alias=$build_alias 6084test "x$ac_build_alias" = x && 6085 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6086test "x$ac_build_alias" = x && 6087 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6088ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6089 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6090 6091fi 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6093$as_echo "$ac_cv_build" >&6; } 6094case $ac_cv_build in 6095*-*-*) ;; 6096*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6097esac 6098build=$ac_cv_build 6099ac_save_IFS=$IFS; IFS='-' 6100set x $ac_cv_build 6101shift 6102build_cpu=$1 6103build_vendor=$2 6104shift; shift 6105# Remember, the first character of IFS is used to create $*, 6106# except with old shells: 6107build_os=$* 6108IFS=$ac_save_IFS 6109case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6110 6111 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6113$as_echo_n "checking host system type... " >&6; } 6114if ${ac_cv_host+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116else 6117 if test "x$host_alias" = x; then 6118 ac_cv_host=$ac_cv_build 6119else 6120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6121 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6122fi 6123 6124fi 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6126$as_echo "$ac_cv_host" >&6; } 6127case $ac_cv_host in 6128*-*-*) ;; 6129*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6130esac 6131host=$ac_cv_host 6132ac_save_IFS=$IFS; IFS='-' 6133set x $ac_cv_host 6134shift 6135host_cpu=$1 6136host_vendor=$2 6137shift; shift 6138# Remember, the first character of IFS is used to create $*, 6139# except with old shells: 6140host_os=$* 6141IFS=$ac_save_IFS 6142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6143 6144 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6146$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6147if ${ac_cv_path_SED+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6151 for ac_i in 1 2 3 4 5 6 7; do 6152 ac_script="$ac_script$as_nl$ac_script" 6153 done 6154 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6155 { ac_script=; unset ac_script;} 6156 if test -z "$SED"; then 6157 ac_path_SED_found=false 6158 # Loop through the user's path and test for each of PROGNAME-LIST 6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160for as_dir in $PATH 6161do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_prog in sed gsed; do 6165 for ac_exec_ext in '' $ac_executable_extensions; do 6166 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6167 as_fn_executable_p "$ac_path_SED" || continue 6168# Check for GNU ac_path_SED and select it if it is found. 6169 # Check for GNU $ac_path_SED 6170case `"$ac_path_SED" --version 2>&1` in 6171*GNU*) 6172 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6173*) 6174 ac_count=0 6175 $as_echo_n 0123456789 >"conftest.in" 6176 while : 6177 do 6178 cat "conftest.in" "conftest.in" >"conftest.tmp" 6179 mv "conftest.tmp" "conftest.in" 6180 cp "conftest.in" "conftest.nl" 6181 $as_echo '' >> "conftest.nl" 6182 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6184 as_fn_arith $ac_count + 1 && ac_count=$as_val 6185 if test $ac_count -gt ${ac_path_SED_max-0}; then 6186 # Best one so far, save it but keep looking for a better one 6187 ac_cv_path_SED="$ac_path_SED" 6188 ac_path_SED_max=$ac_count 6189 fi 6190 # 10*(2^10) chars as input seems more than enough 6191 test $ac_count -gt 10 && break 6192 done 6193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6194esac 6195 6196 $ac_path_SED_found && break 3 6197 done 6198 done 6199 done 6200IFS=$as_save_IFS 6201 if test -z "$ac_cv_path_SED"; then 6202 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6203 fi 6204else 6205 ac_cv_path_SED=$SED 6206fi 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6210$as_echo "$ac_cv_path_SED" >&6; } 6211 SED="$ac_cv_path_SED" 6212 rm -f conftest.sed 6213 6214test -z "$SED" && SED=sed 6215Xsed="$SED -e 1s/^X//" 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6228$as_echo_n "checking for fgrep... " >&6; } 6229if ${ac_cv_path_FGREP+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6233 then ac_cv_path_FGREP="$GREP -F" 6234 else 6235 if test -z "$FGREP"; then 6236 ac_path_FGREP_found=false 6237 # Loop through the user's path and test for each of PROGNAME-LIST 6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6240do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_prog in fgrep; do 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6246 as_fn_executable_p "$ac_path_FGREP" || continue 6247# Check for GNU ac_path_FGREP and select it if it is found. 6248 # Check for GNU $ac_path_FGREP 6249case `"$ac_path_FGREP" --version 2>&1` in 6250*GNU*) 6251 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6252*) 6253 ac_count=0 6254 $as_echo_n 0123456789 >"conftest.in" 6255 while : 6256 do 6257 cat "conftest.in" "conftest.in" >"conftest.tmp" 6258 mv "conftest.tmp" "conftest.in" 6259 cp "conftest.in" "conftest.nl" 6260 $as_echo 'FGREP' >> "conftest.nl" 6261 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6263 as_fn_arith $ac_count + 1 && ac_count=$as_val 6264 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6265 # Best one so far, save it but keep looking for a better one 6266 ac_cv_path_FGREP="$ac_path_FGREP" 6267 ac_path_FGREP_max=$ac_count 6268 fi 6269 # 10*(2^10) chars as input seems more than enough 6270 test $ac_count -gt 10 && break 6271 done 6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6273esac 6274 6275 $ac_path_FGREP_found && break 3 6276 done 6277 done 6278 done 6279IFS=$as_save_IFS 6280 if test -z "$ac_cv_path_FGREP"; then 6281 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6282 fi 6283else 6284 ac_cv_path_FGREP=$FGREP 6285fi 6286 6287 fi 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6290$as_echo "$ac_cv_path_FGREP" >&6; } 6291 FGREP="$ac_cv_path_FGREP" 6292 6293 6294test -z "$GREP" && GREP=grep 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6313ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6314ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6315 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6317$as_echo_n "checking how to print strings... " >&6; } 6318# Test print first, because it will be a builtin if present. 6319if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6320 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6321 ECHO='print -r --' 6322elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6323 ECHO='printf %s\n' 6324else 6325 # Use this function as a fallback that always works. 6326 func_fallback_echo () 6327 { 6328 eval 'cat <<_LTECHO_EOF 6329$1 6330_LTECHO_EOF' 6331 } 6332 ECHO='func_fallback_echo' 6333fi 6334 6335# func_echo_all arg... 6336# Invoke $ECHO with all args, space-separated. 6337func_echo_all () 6338{ 6339 $ECHO "" 6340} 6341 6342case "$ECHO" in 6343 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6344$as_echo "printf" >&6; } ;; 6345 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6346$as_echo "print -r" >&6; } ;; 6347 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6348$as_echo "cat" >&6; } ;; 6349esac 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366# Check whether --with-gnu-ld was given. 6367if test "${with_gnu_ld+set}" = set; then : 6368 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6369else 6370 with_gnu_ld=no 6371fi 6372 6373ac_prog=ld 6374if test "$GCC" = yes; then 6375 # Check if gcc -print-prog-name=ld gives a path. 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6377$as_echo_n "checking for ld used by $CC... " >&6; } 6378 case $host in 6379 *-*-mingw*) 6380 # gcc leaves a trailing carriage return which upsets mingw 6381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6382 *) 6383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6384 esac 6385 case $ac_prog in 6386 # Accept absolute paths. 6387 [\\/]* | ?:[\\/]*) 6388 re_direlt='/[^/][^/]*/\.\./' 6389 # Canonicalize the pathname of ld 6390 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6391 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6392 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6393 done 6394 test -z "$LD" && LD="$ac_prog" 6395 ;; 6396 "") 6397 # If it fails, then pretend we aren't using GCC. 6398 ac_prog=ld 6399 ;; 6400 *) 6401 # If it is relative, then search for the first ld in PATH. 6402 with_gnu_ld=unknown 6403 ;; 6404 esac 6405elif test "$with_gnu_ld" = yes; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6407$as_echo_n "checking for GNU ld... " >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6410$as_echo_n "checking for non-GNU ld... " >&6; } 6411fi 6412if ${lt_cv_path_LD+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if test -z "$LD"; then 6416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6417 for ac_dir in $PATH; do 6418 IFS="$lt_save_ifs" 6419 test -z "$ac_dir" && ac_dir=. 6420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6421 lt_cv_path_LD="$ac_dir/$ac_prog" 6422 # Check to see if the program is GNU ld. I'd rather use --version, 6423 # but apparently some variants of GNU ld only accept -v. 6424 # Break only if it was the GNU/non-GNU ld that we prefer. 6425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6426 *GNU* | *'with BFD'*) 6427 test "$with_gnu_ld" != no && break 6428 ;; 6429 *) 6430 test "$with_gnu_ld" != yes && break 6431 ;; 6432 esac 6433 fi 6434 done 6435 IFS="$lt_save_ifs" 6436else 6437 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6438fi 6439fi 6440 6441LD="$lt_cv_path_LD" 6442if test -n "$LD"; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6444$as_echo "$LD" >&6; } 6445else 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6447$as_echo "no" >&6; } 6448fi 6449test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6451$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6452if ${lt_cv_prog_gnu_ld+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454else 6455 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6456case `$LD -v 2>&1 </dev/null` in 6457*GNU* | *'with BFD'*) 6458 lt_cv_prog_gnu_ld=yes 6459 ;; 6460*) 6461 lt_cv_prog_gnu_ld=no 6462 ;; 6463esac 6464fi 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6466$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6467with_gnu_ld=$lt_cv_prog_gnu_ld 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6478$as_echo_n "checking for ANSI C header files... " >&6; } 6479if ${ac_cv_header_stdc+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484#include <stdlib.h> 6485#include <stdarg.h> 6486#include <string.h> 6487#include <float.h> 6488 6489int 6490main () 6491{ 6492 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_c_try_compile "$LINENO"; then : 6498 ac_cv_header_stdc=yes 6499else 6500 ac_cv_header_stdc=no 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503 6504if test $ac_cv_header_stdc = yes; then 6505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6507/* end confdefs.h. */ 6508#include <string.h> 6509 6510_ACEOF 6511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6512 $EGREP "memchr" >/dev/null 2>&1; then : 6513 6514else 6515 ac_cv_header_stdc=no 6516fi 6517rm -f conftest* 6518 6519fi 6520 6521if test $ac_cv_header_stdc = yes; then 6522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525#include <stdlib.h> 6526 6527_ACEOF 6528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6529 $EGREP "free" >/dev/null 2>&1; then : 6530 6531else 6532 ac_cv_header_stdc=no 6533fi 6534rm -f conftest* 6535 6536fi 6537 6538if test $ac_cv_header_stdc = yes; then 6539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6540 if test "$cross_compiling" = yes; then : 6541 : 6542else 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545#include <ctype.h> 6546#include <stdlib.h> 6547#if ((' ' & 0x0FF) == 0x020) 6548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6550#else 6551# define ISLOWER(c) \ 6552 (('a' <= (c) && (c) <= 'i') \ 6553 || ('j' <= (c) && (c) <= 'r') \ 6554 || ('s' <= (c) && (c) <= 'z')) 6555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6556#endif 6557 6558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6559int 6560main () 6561{ 6562 int i; 6563 for (i = 0; i < 256; i++) 6564 if (XOR (islower (i), ISLOWER (i)) 6565 || toupper (i) != TOUPPER (i)) 6566 return 2; 6567 return 0; 6568} 6569_ACEOF 6570if ac_fn_c_try_run "$LINENO"; then : 6571 6572else 6573 ac_cv_header_stdc=no 6574fi 6575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6576 conftest.$ac_objext conftest.beam conftest.$ac_ext 6577fi 6578 6579fi 6580fi 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6582$as_echo "$ac_cv_header_stdc" >&6; } 6583if test $ac_cv_header_stdc = yes; then 6584 6585$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6586 6587fi 6588 6589 6590case `pwd` in 6591 *\ * | *\ *) 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6593$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6594esac 6595 6596 6597 6598macro_version='2.4.2' 6599macro_revision='1.3337' 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613ltmain="$ac_aux_dir/ltmain.sh" 6614 6615# Backslashify metacharacters that are still active within 6616# double-quoted strings. 6617sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6618 6619# Same as above, but do not quote variable references. 6620double_quote_subst='s/\(["`\\]\)/\\\1/g' 6621 6622# Sed substitution to delay expansion of an escaped shell variable in a 6623# double_quote_subst'ed string. 6624delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6625 6626# Sed substitution to delay expansion of an escaped single quote. 6627delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6628 6629# Sed substitution to avoid accidental globbing in evaled expressions 6630no_glob_subst='s/\*/\\\*/g' 6631 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6633$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6634if ${lt_cv_path_NM+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$NM"; then 6638 # Let the user override the test. 6639 lt_cv_path_NM="$NM" 6640else 6641 lt_nm_to_check="${ac_tool_prefix}nm" 6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6643 lt_nm_to_check="$lt_nm_to_check nm" 6644 fi 6645 for lt_tmp_nm in $lt_nm_to_check; do 6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6648 IFS="$lt_save_ifs" 6649 test -z "$ac_dir" && ac_dir=. 6650 tmp_nm="$ac_dir/$lt_tmp_nm" 6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6652 # Check to see if the nm accepts a BSD-compat flag. 6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6654 # nm: unknown option "B" ignored 6655 # Tru64's nm complains that /dev/null is an invalid object file 6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6657 */dev/null* | *'Invalid file or object type'*) 6658 lt_cv_path_NM="$tmp_nm -B" 6659 break 6660 ;; 6661 *) 6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6663 */dev/null*) 6664 lt_cv_path_NM="$tmp_nm -p" 6665 break 6666 ;; 6667 *) 6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6669 continue # so that we can try to find one that supports BSD flags 6670 ;; 6671 esac 6672 ;; 6673 esac 6674 fi 6675 done 6676 IFS="$lt_save_ifs" 6677 done 6678 : ${lt_cv_path_NM=no} 6679fi 6680fi 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6682$as_echo "$lt_cv_path_NM" >&6; } 6683if test "$lt_cv_path_NM" != "no"; then 6684 NM="$lt_cv_path_NM" 6685else 6686 # Didn't find any BSD compatible name lister, look for dumpbin. 6687 if test -n "$DUMPBIN"; then : 6688 # Let the user override the test. 6689 else 6690 if test -n "$ac_tool_prefix"; then 6691 for ac_prog in dumpbin "link -dump" 6692 do 6693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6694set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_DUMPBIN+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$DUMPBIN"; then 6701 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720DUMPBIN=$ac_cv_prog_DUMPBIN 6721if test -n "$DUMPBIN"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6723$as_echo "$DUMPBIN" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 6730 test -n "$DUMPBIN" && break 6731 done 6732fi 6733if test -z "$DUMPBIN"; then 6734 ac_ct_DUMPBIN=$DUMPBIN 6735 for ac_prog in dumpbin "link -dump" 6736do 6737 # Extract the first word of "$ac_prog", so it can be a program name with args. 6738set dummy $ac_prog; ac_word=$2 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740$as_echo_n "checking for $ac_word... " >&6; } 6741if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 if test -n "$ac_ct_DUMPBIN"; then 6745 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6765if test -n "$ac_ct_DUMPBIN"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6767$as_echo "$ac_ct_DUMPBIN" >&6; } 6768else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770$as_echo "no" >&6; } 6771fi 6772 6773 6774 test -n "$ac_ct_DUMPBIN" && break 6775done 6776 6777 if test "x$ac_ct_DUMPBIN" = x; then 6778 DUMPBIN=":" 6779 else 6780 case $cross_compiling:$ac_tool_warned in 6781yes:) 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6784ac_tool_warned=yes ;; 6785esac 6786 DUMPBIN=$ac_ct_DUMPBIN 6787 fi 6788fi 6789 6790 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6791 *COFF*) 6792 DUMPBIN="$DUMPBIN -symbols" 6793 ;; 6794 *) 6795 DUMPBIN=: 6796 ;; 6797 esac 6798 fi 6799 6800 if test "$DUMPBIN" != ":"; then 6801 NM="$DUMPBIN" 6802 fi 6803fi 6804test -z "$NM" && NM=nm 6805 6806 6807 6808 6809 6810 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6812$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6813if ${lt_cv_nm_interface+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 lt_cv_nm_interface="BSD nm" 6817 echo "int some_variable = 0;" > conftest.$ac_ext 6818 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6819 (eval "$ac_compile" 2>conftest.err) 6820 cat conftest.err >&5 6821 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6822 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6823 cat conftest.err >&5 6824 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6825 cat conftest.out >&5 6826 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6827 lt_cv_nm_interface="MS dumpbin" 6828 fi 6829 rm -f conftest* 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6832$as_echo "$lt_cv_nm_interface" >&6; } 6833 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6835$as_echo_n "checking whether ln -s works... " >&6; } 6836LN_S=$as_ln_s 6837if test "$LN_S" = "ln -s"; then 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6839$as_echo "yes" >&6; } 6840else 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6842$as_echo "no, using $LN_S" >&6; } 6843fi 6844 6845# find the maximum length of command line arguments 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6847$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6848if ${lt_cv_sys_max_cmd_len+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 i=0 6852 teststring="ABCD" 6853 6854 case $build_os in 6855 msdosdjgpp*) 6856 # On DJGPP, this test can blow up pretty badly due to problems in libc 6857 # (any single argument exceeding 2000 bytes causes a buffer overrun 6858 # during glob expansion). Even if it were fixed, the result of this 6859 # check would be larger than it should be. 6860 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6861 ;; 6862 6863 gnu*) 6864 # Under GNU Hurd, this test is not required because there is 6865 # no limit to the length of command line arguments. 6866 # Libtool will interpret -1 as no limit whatsoever 6867 lt_cv_sys_max_cmd_len=-1; 6868 ;; 6869 6870 cygwin* | mingw* | cegcc*) 6871 # On Win9x/ME, this test blows up -- it succeeds, but takes 6872 # about 5 minutes as the teststring grows exponentially. 6873 # Worse, since 9x/ME are not pre-emptively multitasking, 6874 # you end up with a "frozen" computer, even though with patience 6875 # the test eventually succeeds (with a max line length of 256k). 6876 # Instead, let's just punt: use the minimum linelength reported by 6877 # all of the supported platforms: 8192 (on NT/2K/XP). 6878 lt_cv_sys_max_cmd_len=8192; 6879 ;; 6880 6881 mint*) 6882 # On MiNT this can take a long time and run out of memory. 6883 lt_cv_sys_max_cmd_len=8192; 6884 ;; 6885 6886 amigaos*) 6887 # On AmigaOS with pdksh, this test takes hours, literally. 6888 # So we just punt and use a minimum line length of 8192. 6889 lt_cv_sys_max_cmd_len=8192; 6890 ;; 6891 6892 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6893 # This has been around since 386BSD, at least. Likely further. 6894 if test -x /sbin/sysctl; then 6895 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6896 elif test -x /usr/sbin/sysctl; then 6897 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6898 else 6899 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6900 fi 6901 # And add a safety zone 6902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6904 ;; 6905 6906 interix*) 6907 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6908 lt_cv_sys_max_cmd_len=196608 6909 ;; 6910 6911 os2*) 6912 # The test takes a long time on OS/2. 6913 lt_cv_sys_max_cmd_len=8192 6914 ;; 6915 6916 osf*) 6917 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6918 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6919 # nice to cause kernel panics so lets avoid the loop below. 6920 # First set a reasonable default. 6921 lt_cv_sys_max_cmd_len=16384 6922 # 6923 if test -x /sbin/sysconfig; then 6924 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6925 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6926 esac 6927 fi 6928 ;; 6929 sco3.2v5*) 6930 lt_cv_sys_max_cmd_len=102400 6931 ;; 6932 sysv5* | sco5v6* | sysv4.2uw2*) 6933 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6934 if test -n "$kargmax"; then 6935 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6936 else 6937 lt_cv_sys_max_cmd_len=32768 6938 fi 6939 ;; 6940 *) 6941 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6942 if test -n "$lt_cv_sys_max_cmd_len"; then 6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6945 else 6946 # Make teststring a little bigger before we do anything with it. 6947 # a 1K string should be a reasonable start. 6948 for i in 1 2 3 4 5 6 7 8 ; do 6949 teststring=$teststring$teststring 6950 done 6951 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6952 # If test is not a shell built-in, we'll probably end up computing a 6953 # maximum length that is only half of the actual maximum length, but 6954 # we can't tell. 6955 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6956 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6957 test $i != 17 # 1/2 MB should be enough 6958 do 6959 i=`expr $i + 1` 6960 teststring=$teststring$teststring 6961 done 6962 # Only check the string length outside the loop. 6963 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6964 teststring= 6965 # Add a significant safety factor because C++ compilers can tack on 6966 # massive amounts of additional arguments before passing them to the 6967 # linker. It appears as though 1/2 is a usable value. 6968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6969 fi 6970 ;; 6971 esac 6972 6973fi 6974 6975if test -n $lt_cv_sys_max_cmd_len ; then 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6977$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6978else 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6980$as_echo "none" >&6; } 6981fi 6982max_cmd_len=$lt_cv_sys_max_cmd_len 6983 6984 6985 6986 6987 6988 6989: ${CP="cp -f"} 6990: ${MV="mv -f"} 6991: ${RM="rm -f"} 6992 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6994$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6995# Try some XSI features 6996xsi_shell=no 6997( _lt_dummy="a/b/c" 6998 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6999 = c,a/b,b/c, \ 7000 && eval 'test $(( 1 + 1 )) -eq 2 \ 7001 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7002 && xsi_shell=yes 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7004$as_echo "$xsi_shell" >&6; } 7005 7006 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7008$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7009lt_shell_append=no 7010( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7011 >/dev/null 2>&1 \ 7012 && lt_shell_append=yes 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7014$as_echo "$lt_shell_append" >&6; } 7015 7016 7017if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7018 lt_unset=unset 7019else 7020 lt_unset=false 7021fi 7022 7023 7024 7025 7026 7027# test EBCDIC or ASCII 7028case `echo X|tr X '\101'` in 7029 A) # ASCII based system 7030 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7031 lt_SP2NL='tr \040 \012' 7032 lt_NL2SP='tr \015\012 \040\040' 7033 ;; 7034 *) # EBCDIC based system 7035 lt_SP2NL='tr \100 \n' 7036 lt_NL2SP='tr \r\n \100\100' 7037 ;; 7038esac 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7049$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7050if ${lt_cv_to_host_file_cmd+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 case $host in 7054 *-*-mingw* ) 7055 case $build in 7056 *-*-mingw* ) # actually msys 7057 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7058 ;; 7059 *-*-cygwin* ) 7060 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7061 ;; 7062 * ) # otherwise, assume *nix 7063 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7064 ;; 7065 esac 7066 ;; 7067 *-*-cygwin* ) 7068 case $build in 7069 *-*-mingw* ) # actually msys 7070 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7071 ;; 7072 *-*-cygwin* ) 7073 lt_cv_to_host_file_cmd=func_convert_file_noop 7074 ;; 7075 * ) # otherwise, assume *nix 7076 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7077 ;; 7078 esac 7079 ;; 7080 * ) # unhandled hosts (and "normal" native builds) 7081 lt_cv_to_host_file_cmd=func_convert_file_noop 7082 ;; 7083esac 7084 7085fi 7086 7087to_host_file_cmd=$lt_cv_to_host_file_cmd 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7089$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7090 7091 7092 7093 7094 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7096$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7097if ${lt_cv_to_tool_file_cmd+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 #assume ordinary cross tools, or native build. 7101lt_cv_to_tool_file_cmd=func_convert_file_noop 7102case $host in 7103 *-*-mingw* ) 7104 case $build in 7105 *-*-mingw* ) # actually msys 7106 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7107 ;; 7108 esac 7109 ;; 7110esac 7111 7112fi 7113 7114to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7116$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7117 7118 7119 7120 7121 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7123$as_echo_n "checking for $LD option to reload object files... " >&6; } 7124if ${lt_cv_ld_reload_flag+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 lt_cv_ld_reload_flag='-r' 7128fi 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7130$as_echo "$lt_cv_ld_reload_flag" >&6; } 7131reload_flag=$lt_cv_ld_reload_flag 7132case $reload_flag in 7133"" | " "*) ;; 7134*) reload_flag=" $reload_flag" ;; 7135esac 7136reload_cmds='$LD$reload_flag -o $output$reload_objs' 7137case $host_os in 7138 cygwin* | mingw* | pw32* | cegcc*) 7139 if test "$GCC" != yes; then 7140 reload_cmds=false 7141 fi 7142 ;; 7143 darwin*) 7144 if test "$GCC" = yes; then 7145 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7146 else 7147 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7148 fi 7149 ;; 7150esac 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}objdump; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_OBJDUMP+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$OBJDUMP"; then 7169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188OBJDUMP=$ac_cv_prog_OBJDUMP 7189if test -n "$OBJDUMP"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7191$as_echo "$OBJDUMP" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_OBJDUMP"; then 7200 ac_ct_OBJDUMP=$OBJDUMP 7201 # Extract the first word of "objdump", so it can be a program name with args. 7202set dummy objdump; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_OBJDUMP"; then 7209 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7229if test -n "$ac_ct_OBJDUMP"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7231$as_echo "$ac_ct_OBJDUMP" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_OBJDUMP" = x; then 7238 OBJDUMP="false" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 OBJDUMP=$ac_ct_OBJDUMP 7247 fi 7248else 7249 OBJDUMP="$ac_cv_prog_OBJDUMP" 7250fi 7251 7252test -z "$OBJDUMP" && OBJDUMP=objdump 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7263$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7264if ${lt_cv_deplibs_check_method+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 lt_cv_file_magic_cmd='$MAGIC_CMD' 7268lt_cv_file_magic_test_file= 7269lt_cv_deplibs_check_method='unknown' 7270# Need to set the preceding variable on all platforms that support 7271# interlibrary dependencies. 7272# 'none' -- dependencies not supported. 7273# `unknown' -- same as none, but documents that we really don't know. 7274# 'pass_all' -- all dependencies passed with no checks. 7275# 'test_compile' -- check by making test program. 7276# 'file_magic [[regex]]' -- check by looking for files in library path 7277# which responds to the $file_magic_cmd with a given extended regex. 7278# If you have `file' or equivalent on your system and you're not sure 7279# whether `pass_all' will *always* work, you probably want this one. 7280 7281case $host_os in 7282aix[4-9]*) 7283 lt_cv_deplibs_check_method=pass_all 7284 ;; 7285 7286beos*) 7287 lt_cv_deplibs_check_method=pass_all 7288 ;; 7289 7290bsdi[45]*) 7291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7292 lt_cv_file_magic_cmd='/usr/bin/file -L' 7293 lt_cv_file_magic_test_file=/shlib/libc.so 7294 ;; 7295 7296cygwin*) 7297 # func_win32_libid is a shell function defined in ltmain.sh 7298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7299 lt_cv_file_magic_cmd='func_win32_libid' 7300 ;; 7301 7302mingw* | pw32*) 7303 # Base MSYS/MinGW do not provide the 'file' command needed by 7304 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7305 # unless we find 'file', for example because we are cross-compiling. 7306 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7307 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7309 lt_cv_file_magic_cmd='func_win32_libid' 7310 else 7311 # Keep this pattern in sync with the one in func_win32_libid. 7312 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7313 lt_cv_file_magic_cmd='$OBJDUMP -f' 7314 fi 7315 ;; 7316 7317cegcc*) 7318 # use the weaker test based on 'objdump'. See mingw*. 7319 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7320 lt_cv_file_magic_cmd='$OBJDUMP -f' 7321 ;; 7322 7323darwin* | rhapsody*) 7324 lt_cv_deplibs_check_method=pass_all 7325 ;; 7326 7327freebsd* | dragonfly*) 7328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7329 case $host_cpu in 7330 i*86 ) 7331 # Not sure whether the presence of OpenBSD here was a mistake. 7332 # Let's accept both of them until this is cleared up. 7333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7334 lt_cv_file_magic_cmd=/usr/bin/file 7335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7336 ;; 7337 esac 7338 else 7339 lt_cv_deplibs_check_method=pass_all 7340 fi 7341 ;; 7342 7343gnu*) 7344 lt_cv_deplibs_check_method=pass_all 7345 ;; 7346 7347haiku*) 7348 lt_cv_deplibs_check_method=pass_all 7349 ;; 7350 7351hpux10.20* | hpux11*) 7352 lt_cv_file_magic_cmd=/usr/bin/file 7353 case $host_cpu in 7354 ia64*) 7355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7356 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7357 ;; 7358 hppa*64*) 7359 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]' 7360 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7361 ;; 7362 *) 7363 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7364 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7365 ;; 7366 esac 7367 ;; 7368 7369interix[3-9]*) 7370 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7372 ;; 7373 7374irix5* | irix6* | nonstopux*) 7375 case $LD in 7376 *-32|*"-32 ") libmagic=32-bit;; 7377 *-n32|*"-n32 ") libmagic=N32;; 7378 *-64|*"-64 ") libmagic=64-bit;; 7379 *) libmagic=never-match;; 7380 esac 7381 lt_cv_deplibs_check_method=pass_all 7382 ;; 7383 7384# This must be glibc/ELF. 7385linux* | k*bsd*-gnu | kopensolaris*-gnu) 7386 lt_cv_deplibs_check_method=pass_all 7387 ;; 7388 7389netbsd*) 7390 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7392 else 7393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7394 fi 7395 ;; 7396 7397newos6*) 7398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7399 lt_cv_file_magic_cmd=/usr/bin/file 7400 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7401 ;; 7402 7403*nto* | *qnx*) 7404 lt_cv_deplibs_check_method=pass_all 7405 ;; 7406 7407openbsd*) 7408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7410 else 7411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7412 fi 7413 ;; 7414 7415osf3* | osf4* | osf5*) 7416 lt_cv_deplibs_check_method=pass_all 7417 ;; 7418 7419rdos*) 7420 lt_cv_deplibs_check_method=pass_all 7421 ;; 7422 7423solaris*) 7424 lt_cv_deplibs_check_method=pass_all 7425 ;; 7426 7427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7428 lt_cv_deplibs_check_method=pass_all 7429 ;; 7430 7431sysv4 | sysv4.3*) 7432 case $host_vendor in 7433 motorola) 7434 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]' 7435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7436 ;; 7437 ncr) 7438 lt_cv_deplibs_check_method=pass_all 7439 ;; 7440 sequent) 7441 lt_cv_file_magic_cmd='/bin/file' 7442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7443 ;; 7444 sni) 7445 lt_cv_file_magic_cmd='/bin/file' 7446 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7447 lt_cv_file_magic_test_file=/lib/libc.so 7448 ;; 7449 siemens) 7450 lt_cv_deplibs_check_method=pass_all 7451 ;; 7452 pc) 7453 lt_cv_deplibs_check_method=pass_all 7454 ;; 7455 esac 7456 ;; 7457 7458tpf*) 7459 lt_cv_deplibs_check_method=pass_all 7460 ;; 7461esac 7462 7463fi 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7465$as_echo "$lt_cv_deplibs_check_method" >&6; } 7466 7467file_magic_glob= 7468want_nocaseglob=no 7469if test "$build" = "$host"; then 7470 case $host_os in 7471 mingw* | pw32*) 7472 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7473 want_nocaseglob=yes 7474 else 7475 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7476 fi 7477 ;; 7478 esac 7479fi 7480 7481file_magic_cmd=$lt_cv_file_magic_cmd 7482deplibs_check_method=$lt_cv_deplibs_check_method 7483test -z "$deplibs_check_method" && deplibs_check_method=unknown 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if ${ac_cv_prog_DLLTOOL+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 if test -n "$DLLTOOL"; then 7515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7524 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534DLLTOOL=$ac_cv_prog_DLLTOOL 7535if test -n "$DLLTOOL"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7537$as_echo "$DLLTOOL" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 7544fi 7545if test -z "$ac_cv_prog_DLLTOOL"; then 7546 ac_ct_DLLTOOL=$DLLTOOL 7547 # Extract the first word of "dlltool", so it can be a program name with args. 7548set dummy dlltool; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$ac_ct_DLLTOOL"; then 7555 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7575if test -n "$ac_ct_DLLTOOL"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7577$as_echo "$ac_ct_DLLTOOL" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 if test "x$ac_ct_DLLTOOL" = x; then 7584 DLLTOOL="false" 7585 else 7586 case $cross_compiling:$ac_tool_warned in 7587yes:) 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7590ac_tool_warned=yes ;; 7591esac 7592 DLLTOOL=$ac_ct_DLLTOOL 7593 fi 7594else 7595 DLLTOOL="$ac_cv_prog_DLLTOOL" 7596fi 7597 7598test -z "$DLLTOOL" && DLLTOOL=dlltool 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7610$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7611if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 lt_cv_sharedlib_from_linklib_cmd='unknown' 7615 7616case $host_os in 7617cygwin* | mingw* | pw32* | cegcc*) 7618 # two different shell functions defined in ltmain.sh 7619 # decide which to use based on capabilities of $DLLTOOL 7620 case `$DLLTOOL --help 2>&1` in 7621 *--identify-strict*) 7622 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7623 ;; 7624 *) 7625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7626 ;; 7627 esac 7628 ;; 7629*) 7630 # fallback: assume linklib IS sharedlib 7631 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7632 ;; 7633esac 7634 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7637$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7638sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7639test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7640 7641 7642 7643 7644 7645 7646 7647if test -n "$ac_tool_prefix"; then 7648 for ac_prog in ar 7649 do 7650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7651set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7653$as_echo_n "checking for $ac_word... " >&6; } 7654if ${ac_cv_prog_AR+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 if test -n "$AR"; then 7658 ac_cv_prog_AR="$AR" # Let the user override the test. 7659else 7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7661for as_dir in $PATH 7662do 7663 IFS=$as_save_IFS 7664 test -z "$as_dir" && as_dir=. 7665 for ac_exec_ext in '' $ac_executable_extensions; do 7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7669 break 2 7670 fi 7671done 7672 done 7673IFS=$as_save_IFS 7674 7675fi 7676fi 7677AR=$ac_cv_prog_AR 7678if test -n "$AR"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7680$as_echo "$AR" >&6; } 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7683$as_echo "no" >&6; } 7684fi 7685 7686 7687 test -n "$AR" && break 7688 done 7689fi 7690if test -z "$AR"; then 7691 ac_ct_AR=$AR 7692 for ac_prog in ar 7693do 7694 # Extract the first word of "$ac_prog", so it can be a program name with args. 7695set dummy $ac_prog; ac_word=$2 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7697$as_echo_n "checking for $ac_word... " >&6; } 7698if ${ac_cv_prog_ac_ct_AR+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 if test -n "$ac_ct_AR"; then 7702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7703else 7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7705for as_dir in $PATH 7706do 7707 IFS=$as_save_IFS 7708 test -z "$as_dir" && as_dir=. 7709 for ac_exec_ext in '' $ac_executable_extensions; do 7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7711 ac_cv_prog_ac_ct_AR="$ac_prog" 7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7713 break 2 7714 fi 7715done 7716 done 7717IFS=$as_save_IFS 7718 7719fi 7720fi 7721ac_ct_AR=$ac_cv_prog_ac_ct_AR 7722if test -n "$ac_ct_AR"; then 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7724$as_echo "$ac_ct_AR" >&6; } 7725else 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7727$as_echo "no" >&6; } 7728fi 7729 7730 7731 test -n "$ac_ct_AR" && break 7732done 7733 7734 if test "x$ac_ct_AR" = x; then 7735 AR="false" 7736 else 7737 case $cross_compiling:$ac_tool_warned in 7738yes:) 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7741ac_tool_warned=yes ;; 7742esac 7743 AR=$ac_ct_AR 7744 fi 7745fi 7746 7747: ${AR=ar} 7748: ${AR_FLAGS=cru} 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7761$as_echo_n "checking for archiver @FILE support... " >&6; } 7762if ${lt_cv_ar_at_file+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 lt_cv_ar_at_file=no 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768 7769int 7770main () 7771{ 7772 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_c_try_compile "$LINENO"; then : 7778 echo conftest.$ac_objext > conftest.lst 7779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7781 (eval $lt_ar_try) 2>&5 7782 ac_status=$? 7783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7784 test $ac_status = 0; } 7785 if test "$ac_status" -eq 0; then 7786 # Ensure the archiver fails upon bogus file names. 7787 rm -f conftest.$ac_objext libconftest.a 7788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7789 (eval $lt_ar_try) 2>&5 7790 ac_status=$? 7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7792 test $ac_status = 0; } 7793 if test "$ac_status" -ne 0; then 7794 lt_cv_ar_at_file=@ 7795 fi 7796 fi 7797 rm -f conftest.* libconftest.a 7798 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7801 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7804$as_echo "$lt_cv_ar_at_file" >&6; } 7805 7806if test "x$lt_cv_ar_at_file" = xno; then 7807 archiver_list_spec= 7808else 7809 archiver_list_spec=$lt_cv_ar_at_file 7810fi 7811 7812 7813 7814 7815 7816 7817 7818if test -n "$ac_tool_prefix"; then 7819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7820set dummy ${ac_tool_prefix}strip; ac_word=$2 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7822$as_echo_n "checking for $ac_word... " >&6; } 7823if ${ac_cv_prog_STRIP+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 if test -n "$STRIP"; then 7827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7828else 7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7830for as_dir in $PATH 7831do 7832 IFS=$as_save_IFS 7833 test -z "$as_dir" && as_dir=. 7834 for ac_exec_ext in '' $ac_executable_extensions; do 7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7836 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7838 break 2 7839 fi 7840done 7841 done 7842IFS=$as_save_IFS 7843 7844fi 7845fi 7846STRIP=$ac_cv_prog_STRIP 7847if test -n "$STRIP"; then 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7849$as_echo "$STRIP" >&6; } 7850else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852$as_echo "no" >&6; } 7853fi 7854 7855 7856fi 7857if test -z "$ac_cv_prog_STRIP"; then 7858 ac_ct_STRIP=$STRIP 7859 # Extract the first word of "strip", so it can be a program name with args. 7860set dummy strip; ac_word=$2 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862$as_echo_n "checking for $ac_word... " >&6; } 7863if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 if test -n "$ac_ct_STRIP"; then 7867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7868else 7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870for as_dir in $PATH 7871do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_prog_ac_ct_STRIP="strip" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880done 7881 done 7882IFS=$as_save_IFS 7883 7884fi 7885fi 7886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7887if test -n "$ac_ct_STRIP"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7889$as_echo "$ac_ct_STRIP" >&6; } 7890else 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892$as_echo "no" >&6; } 7893fi 7894 7895 if test "x$ac_ct_STRIP" = x; then 7896 STRIP=":" 7897 else 7898 case $cross_compiling:$ac_tool_warned in 7899yes:) 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7902ac_tool_warned=yes ;; 7903esac 7904 STRIP=$ac_ct_STRIP 7905 fi 7906else 7907 STRIP="$ac_cv_prog_STRIP" 7908fi 7909 7910test -z "$STRIP" && STRIP=: 7911 7912 7913 7914 7915 7916 7917if test -n "$ac_tool_prefix"; then 7918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7919set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921$as_echo_n "checking for $ac_word... " >&6; } 7922if ${ac_cv_prog_RANLIB+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 if test -n "$RANLIB"; then 7926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7927else 7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7929for as_dir in $PATH 7930do 7931 IFS=$as_save_IFS 7932 test -z "$as_dir" && as_dir=. 7933 for ac_exec_ext in '' $ac_executable_extensions; do 7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7937 break 2 7938 fi 7939done 7940 done 7941IFS=$as_save_IFS 7942 7943fi 7944fi 7945RANLIB=$ac_cv_prog_RANLIB 7946if test -n "$RANLIB"; then 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7948$as_echo "$RANLIB" >&6; } 7949else 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7951$as_echo "no" >&6; } 7952fi 7953 7954 7955fi 7956if test -z "$ac_cv_prog_RANLIB"; then 7957 ac_ct_RANLIB=$RANLIB 7958 # Extract the first word of "ranlib", so it can be a program name with args. 7959set dummy ranlib; ac_word=$2 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961$as_echo_n "checking for $ac_word... " >&6; } 7962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 if test -n "$ac_ct_RANLIB"; then 7966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7975 ac_cv_prog_ac_ct_RANLIB="ranlib" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979done 7980 done 7981IFS=$as_save_IFS 7982 7983fi 7984fi 7985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7986if test -n "$ac_ct_RANLIB"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7988$as_echo "$ac_ct_RANLIB" >&6; } 7989else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991$as_echo "no" >&6; } 7992fi 7993 7994 if test "x$ac_ct_RANLIB" = x; then 7995 RANLIB=":" 7996 else 7997 case $cross_compiling:$ac_tool_warned in 7998yes:) 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8001ac_tool_warned=yes ;; 8002esac 8003 RANLIB=$ac_ct_RANLIB 8004 fi 8005else 8006 RANLIB="$ac_cv_prog_RANLIB" 8007fi 8008 8009test -z "$RANLIB" && RANLIB=: 8010 8011 8012 8013 8014 8015 8016# Determine commands to create old-style static archives. 8017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8018old_postinstall_cmds='chmod 644 $oldlib' 8019old_postuninstall_cmds= 8020 8021if test -n "$RANLIB"; then 8022 case $host_os in 8023 openbsd*) 8024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8025 ;; 8026 *) 8027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8028 ;; 8029 esac 8030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8031fi 8032 8033case $host_os in 8034 darwin*) 8035 lock_old_archive_extraction=yes ;; 8036 *) 8037 lock_old_archive_extraction=no ;; 8038esac 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078# If no C compiler was specified, use CC. 8079LTCC=${LTCC-"$CC"} 8080 8081# If no C compiler flags were specified, use CFLAGS. 8082LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8083 8084# Allow CC to be a program name with arguments. 8085compiler=$CC 8086 8087 8088# Check for command to grab the raw symbol name followed by C symbol from nm. 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8091if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 8095# These are sane defaults that work on at least a few old systems. 8096# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8097 8098# Character class describing NM global symbol codes. 8099symcode='[BCDEGRST]' 8100 8101# Regexp to match symbols that can be accessed directly from C. 8102sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8103 8104# Define system-specific variables. 8105case $host_os in 8106aix*) 8107 symcode='[BCDT]' 8108 ;; 8109cygwin* | mingw* | pw32* | cegcc*) 8110 symcode='[ABCDGISTW]' 8111 ;; 8112hpux*) 8113 if test "$host_cpu" = ia64; then 8114 symcode='[ABCDEGRST]' 8115 fi 8116 ;; 8117irix* | nonstopux*) 8118 symcode='[BCDEGRST]' 8119 ;; 8120osf*) 8121 symcode='[BCDEGQRST]' 8122 ;; 8123solaris*) 8124 symcode='[BDRT]' 8125 ;; 8126sco3.2v5*) 8127 symcode='[DT]' 8128 ;; 8129sysv4.2uw2*) 8130 symcode='[DT]' 8131 ;; 8132sysv5* | sco5v6* | unixware* | OpenUNIX*) 8133 symcode='[ABDT]' 8134 ;; 8135sysv4) 8136 symcode='[DFNSTU]' 8137 ;; 8138esac 8139 8140# If we're using GNU nm, then use its standard symbol codes. 8141case `$NM -V 2>&1` in 8142*GNU* | *'with BFD'*) 8143 symcode='[ABCDGIRSTW]' ;; 8144esac 8145 8146# Transform an extracted symbol line into a proper C declaration. 8147# Some systems (esp. on ia64) link data and code symbols differently, 8148# so use this general approach. 8149lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8150 8151# Transform an extracted symbol line into symbol name and symbol address 8152lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8154 8155# Handle CRLF in mingw tool chain 8156opt_cr= 8157case $build_os in 8158mingw*) 8159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8160 ;; 8161esac 8162 8163# Try without a prefix underscore, then with it. 8164for ac_symprfx in "" "_"; do 8165 8166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8167 symxfrm="\\1 $ac_symprfx\\2 \\2" 8168 8169 # Write the raw and C identifiers. 8170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8171 # Fake it for dumpbin and say T for any non-static function 8172 # and D for any global variable. 8173 # Also find C++ and __fastcall symbols from MSVC++, 8174 # which start with @ or ?. 8175 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8176" {last_section=section; section=\$ 3};"\ 8177" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8178" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8179" \$ 0!~/External *\|/{next};"\ 8180" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8181" {if(hide[section]) next};"\ 8182" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8183" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8184" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8185" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8186" ' prfx=^$ac_symprfx" 8187 else 8188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8189 fi 8190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8191 8192 # Check to see that the pipe works correctly. 8193 pipe_works=no 8194 8195 rm -f conftest* 8196 cat > conftest.$ac_ext <<_LT_EOF 8197#ifdef __cplusplus 8198extern "C" { 8199#endif 8200char nm_test_var; 8201void nm_test_func(void); 8202void nm_test_func(void){} 8203#ifdef __cplusplus 8204} 8205#endif 8206int main(){nm_test_var='a';nm_test_func();return(0);} 8207_LT_EOF 8208 8209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8210 (eval $ac_compile) 2>&5 8211 ac_status=$? 8212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8213 test $ac_status = 0; }; then 8214 # Now try to grab the symbols. 8215 nlist=conftest.nm 8216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8218 ac_status=$? 8219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8220 test $ac_status = 0; } && test -s "$nlist"; then 8221 # Try sorting and uniquifying the output. 8222 if sort "$nlist" | uniq > "$nlist"T; then 8223 mv -f "$nlist"T "$nlist" 8224 else 8225 rm -f "$nlist"T 8226 fi 8227 8228 # Make sure that we snagged all the symbols we need. 8229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8231 cat <<_LT_EOF > conftest.$ac_ext 8232/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8233#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8234/* DATA imports from DLLs on WIN32 con't be const, because runtime 8235 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8236# define LT_DLSYM_CONST 8237#elif defined(__osf__) 8238/* This system does not cope well with relocations in const data. */ 8239# define LT_DLSYM_CONST 8240#else 8241# define LT_DLSYM_CONST const 8242#endif 8243 8244#ifdef __cplusplus 8245extern "C" { 8246#endif 8247 8248_LT_EOF 8249 # Now generate the symbol file. 8250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8251 8252 cat <<_LT_EOF >> conftest.$ac_ext 8253 8254/* The mapping between symbol names and symbols. */ 8255LT_DLSYM_CONST struct { 8256 const char *name; 8257 void *address; 8258} 8259lt__PROGRAM__LTX_preloaded_symbols[] = 8260{ 8261 { "@PROGRAM@", (void *) 0 }, 8262_LT_EOF 8263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8264 cat <<\_LT_EOF >> conftest.$ac_ext 8265 {0, (void *) 0} 8266}; 8267 8268/* This works around a problem in FreeBSD linker */ 8269#ifdef FREEBSD_WORKAROUND 8270static const void *lt_preloaded_setup() { 8271 return lt__PROGRAM__LTX_preloaded_symbols; 8272} 8273#endif 8274 8275#ifdef __cplusplus 8276} 8277#endif 8278_LT_EOF 8279 # Now try linking the two files. 8280 mv conftest.$ac_objext conftstm.$ac_objext 8281 lt_globsym_save_LIBS=$LIBS 8282 lt_globsym_save_CFLAGS=$CFLAGS 8283 LIBS="conftstm.$ac_objext" 8284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8286 (eval $ac_link) 2>&5 8287 ac_status=$? 8288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8289 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8290 pipe_works=yes 8291 fi 8292 LIBS=$lt_globsym_save_LIBS 8293 CFLAGS=$lt_globsym_save_CFLAGS 8294 else 8295 echo "cannot find nm_test_func in $nlist" >&5 8296 fi 8297 else 8298 echo "cannot find nm_test_var in $nlist" >&5 8299 fi 8300 else 8301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8302 fi 8303 else 8304 echo "$progname: failed program was:" >&5 8305 cat conftest.$ac_ext >&5 8306 fi 8307 rm -rf conftest* conftst* 8308 8309 # Do not use the global_symbol_pipe unless it works. 8310 if test "$pipe_works" = yes; then 8311 break 8312 else 8313 lt_cv_sys_global_symbol_pipe= 8314 fi 8315done 8316 8317fi 8318 8319if test -z "$lt_cv_sys_global_symbol_pipe"; then 8320 lt_cv_sys_global_symbol_to_cdecl= 8321fi 8322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8324$as_echo "failed" >&6; } 8325else 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8327$as_echo "ok" >&6; } 8328fi 8329 8330# Response file support. 8331if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8332 nm_file_list_spec='@' 8333elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8334 nm_file_list_spec='@' 8335fi 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8364$as_echo_n "checking for sysroot... " >&6; } 8365 8366# Check whether --with-sysroot was given. 8367if test "${with_sysroot+set}" = set; then : 8368 withval=$with_sysroot; 8369else 8370 with_sysroot=no 8371fi 8372 8373 8374lt_sysroot= 8375case ${with_sysroot} in #( 8376 yes) 8377 if test "$GCC" = yes; then 8378 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8379 fi 8380 ;; #( 8381 /*) 8382 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8383 ;; #( 8384 no|'') 8385 ;; #( 8386 *) 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8388$as_echo "${with_sysroot}" >&6; } 8389 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8390 ;; 8391esac 8392 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8394$as_echo "${lt_sysroot:-no}" >&6; } 8395 8396 8397 8398 8399 8400# Check whether --enable-libtool-lock was given. 8401if test "${enable_libtool_lock+set}" = set; then : 8402 enableval=$enable_libtool_lock; 8403fi 8404 8405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8406 8407# Some flags need to be propagated to the compiler or linker for good 8408# libtool support. 8409case $host in 8410ia64-*-hpux*) 8411 # Find out which ABI we are using. 8412 echo 'int i;' > conftest.$ac_ext 8413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8414 (eval $ac_compile) 2>&5 8415 ac_status=$? 8416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8417 test $ac_status = 0; }; then 8418 case `/usr/bin/file conftest.$ac_objext` in 8419 *ELF-32*) 8420 HPUX_IA64_MODE="32" 8421 ;; 8422 *ELF-64*) 8423 HPUX_IA64_MODE="64" 8424 ;; 8425 esac 8426 fi 8427 rm -rf conftest* 8428 ;; 8429*-*-irix6*) 8430 # Find out which ABI we are using. 8431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8433 (eval $ac_compile) 2>&5 8434 ac_status=$? 8435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8436 test $ac_status = 0; }; then 8437 if test "$lt_cv_prog_gnu_ld" = yes; then 8438 case `/usr/bin/file conftest.$ac_objext` in 8439 *32-bit*) 8440 LD="${LD-ld} -melf32bsmip" 8441 ;; 8442 *N32*) 8443 LD="${LD-ld} -melf32bmipn32" 8444 ;; 8445 *64-bit*) 8446 LD="${LD-ld} -melf64bmip" 8447 ;; 8448 esac 8449 else 8450 case `/usr/bin/file conftest.$ac_objext` in 8451 *32-bit*) 8452 LD="${LD-ld} -32" 8453 ;; 8454 *N32*) 8455 LD="${LD-ld} -n32" 8456 ;; 8457 *64-bit*) 8458 LD="${LD-ld} -64" 8459 ;; 8460 esac 8461 fi 8462 fi 8463 rm -rf conftest* 8464 ;; 8465 8466x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8467s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8468 # Find out which ABI we are using. 8469 echo 'int i;' > conftest.$ac_ext 8470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8471 (eval $ac_compile) 2>&5 8472 ac_status=$? 8473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8474 test $ac_status = 0; }; then 8475 case `/usr/bin/file conftest.o` in 8476 *32-bit*) 8477 case $host in 8478 x86_64-*kfreebsd*-gnu) 8479 LD="${LD-ld} -m elf_i386_fbsd" 8480 ;; 8481 x86_64-*linux*) 8482 LD="${LD-ld} -m elf_i386" 8483 ;; 8484 ppc64-*linux*|powerpc64-*linux*) 8485 LD="${LD-ld} -m elf32ppclinux" 8486 ;; 8487 s390x-*linux*) 8488 LD="${LD-ld} -m elf_s390" 8489 ;; 8490 sparc64-*linux*) 8491 LD="${LD-ld} -m elf32_sparc" 8492 ;; 8493 esac 8494 ;; 8495 *64-bit*) 8496 case $host in 8497 x86_64-*kfreebsd*-gnu) 8498 LD="${LD-ld} -m elf_x86_64_fbsd" 8499 ;; 8500 x86_64-*linux*) 8501 LD="${LD-ld} -m elf_x86_64" 8502 ;; 8503 ppc*-*linux*|powerpc*-*linux*) 8504 LD="${LD-ld} -m elf64ppc" 8505 ;; 8506 s390*-*linux*|s390*-*tpf*) 8507 LD="${LD-ld} -m elf64_s390" 8508 ;; 8509 sparc*-*linux*) 8510 LD="${LD-ld} -m elf64_sparc" 8511 ;; 8512 esac 8513 ;; 8514 esac 8515 fi 8516 rm -rf conftest* 8517 ;; 8518 8519*-*-sco3.2v5*) 8520 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8521 SAVE_CFLAGS="$CFLAGS" 8522 CFLAGS="$CFLAGS -belf" 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8524$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8525if ${lt_cv_cc_needs_belf+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 ac_ext=c 8529ac_cpp='$CPP $CPPFLAGS' 8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8532ac_compiler_gnu=$ac_cv_c_compiler_gnu 8533 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536 8537int 8538main () 8539{ 8540 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545if ac_fn_c_try_link "$LINENO"; then : 8546 lt_cv_cc_needs_belf=yes 8547else 8548 lt_cv_cc_needs_belf=no 8549fi 8550rm -f core conftest.err conftest.$ac_objext \ 8551 conftest$ac_exeext conftest.$ac_ext 8552 ac_ext=c 8553ac_cpp='$CPP $CPPFLAGS' 8554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8556ac_compiler_gnu=$ac_cv_c_compiler_gnu 8557 8558fi 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8560$as_echo "$lt_cv_cc_needs_belf" >&6; } 8561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8563 CFLAGS="$SAVE_CFLAGS" 8564 fi 8565 ;; 8566*-*solaris*) 8567 # Find out which ABI we are using. 8568 echo 'int i;' > conftest.$ac_ext 8569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8570 (eval $ac_compile) 2>&5 8571 ac_status=$? 8572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8573 test $ac_status = 0; }; then 8574 case `/usr/bin/file conftest.o` in 8575 *64-bit*) 8576 case $lt_cv_prog_gnu_ld in 8577 yes*) 8578 case $host in 8579 i?86-*-solaris*) 8580 LD="${LD-ld} -m elf_x86_64" 8581 ;; 8582 sparc*-*-solaris*) 8583 LD="${LD-ld} -m elf64_sparc" 8584 ;; 8585 esac 8586 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8587 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8588 LD="${LD-ld}_sol2" 8589 fi 8590 ;; 8591 *) 8592 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8593 LD="${LD-ld} -64" 8594 fi 8595 ;; 8596 esac 8597 ;; 8598 esac 8599 fi 8600 rm -rf conftest* 8601 ;; 8602esac 8603 8604need_locks="$enable_libtool_lock" 8605 8606if test -n "$ac_tool_prefix"; then 8607 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8608set dummy ${ac_tool_prefix}mt; ac_word=$2 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8610$as_echo_n "checking for $ac_word... " >&6; } 8611if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613else 8614 if test -n "$MANIFEST_TOOL"; then 8615 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8616else 8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8618for as_dir in $PATH 8619do 8620 IFS=$as_save_IFS 8621 test -z "$as_dir" && as_dir=. 8622 for ac_exec_ext in '' $ac_executable_extensions; do 8623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8624 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8626 break 2 8627 fi 8628done 8629 done 8630IFS=$as_save_IFS 8631 8632fi 8633fi 8634MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8635if test -n "$MANIFEST_TOOL"; then 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8637$as_echo "$MANIFEST_TOOL" >&6; } 8638else 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8640$as_echo "no" >&6; } 8641fi 8642 8643 8644fi 8645if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8646 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8647 # Extract the first word of "mt", so it can be a program name with args. 8648set dummy mt; ac_word=$2 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8650$as_echo_n "checking for $ac_word... " >&6; } 8651if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 if test -n "$ac_ct_MANIFEST_TOOL"; then 8655 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8656else 8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8658for as_dir in $PATH 8659do 8660 IFS=$as_save_IFS 8661 test -z "$as_dir" && as_dir=. 8662 for ac_exec_ext in '' $ac_executable_extensions; do 8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8666 break 2 8667 fi 8668done 8669 done 8670IFS=$as_save_IFS 8671 8672fi 8673fi 8674ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8675if test -n "$ac_ct_MANIFEST_TOOL"; then 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8677$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8678else 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8680$as_echo "no" >&6; } 8681fi 8682 8683 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8684 MANIFEST_TOOL=":" 8685 else 8686 case $cross_compiling:$ac_tool_warned in 8687yes:) 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8690ac_tool_warned=yes ;; 8691esac 8692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8693 fi 8694else 8695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8696fi 8697 8698test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8700$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8701if ${lt_cv_path_mainfest_tool+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 lt_cv_path_mainfest_tool=no 8705 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8706 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8707 cat conftest.err >&5 8708 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8709 lt_cv_path_mainfest_tool=yes 8710 fi 8711 rm -f conftest* 8712fi 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8714$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8715if test "x$lt_cv_path_mainfest_tool" != xyes; then 8716 MANIFEST_TOOL=: 8717fi 8718 8719 8720 8721 8722 8723 8724 case $host_os in 8725 rhapsody* | darwin*) 8726 if test -n "$ac_tool_prefix"; then 8727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8730$as_echo_n "checking for $ac_word... " >&6; } 8731if ${ac_cv_prog_DSYMUTIL+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733else 8734 if test -n "$DSYMUTIL"; then 8735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8736else 8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8738for as_dir in $PATH 8739do 8740 IFS=$as_save_IFS 8741 test -z "$as_dir" && as_dir=. 8742 for ac_exec_ext in '' $ac_executable_extensions; do 8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8746 break 2 8747 fi 8748done 8749 done 8750IFS=$as_save_IFS 8751 8752fi 8753fi 8754DSYMUTIL=$ac_cv_prog_DSYMUTIL 8755if test -n "$DSYMUTIL"; then 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8757$as_echo "$DSYMUTIL" >&6; } 8758else 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8760$as_echo "no" >&6; } 8761fi 8762 8763 8764fi 8765if test -z "$ac_cv_prog_DSYMUTIL"; then 8766 ac_ct_DSYMUTIL=$DSYMUTIL 8767 # Extract the first word of "dsymutil", so it can be a program name with args. 8768set dummy dsymutil; ac_word=$2 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8770$as_echo_n "checking for $ac_word... " >&6; } 8771if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 if test -n "$ac_ct_DSYMUTIL"; then 8775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8776else 8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8778for as_dir in $PATH 8779do 8780 IFS=$as_save_IFS 8781 test -z "$as_dir" && as_dir=. 8782 for ac_exec_ext in '' $ac_executable_extensions; do 8783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8786 break 2 8787 fi 8788done 8789 done 8790IFS=$as_save_IFS 8791 8792fi 8793fi 8794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8795if test -n "$ac_ct_DSYMUTIL"; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8797$as_echo "$ac_ct_DSYMUTIL" >&6; } 8798else 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8800$as_echo "no" >&6; } 8801fi 8802 8803 if test "x$ac_ct_DSYMUTIL" = x; then 8804 DSYMUTIL=":" 8805 else 8806 case $cross_compiling:$ac_tool_warned in 8807yes:) 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8810ac_tool_warned=yes ;; 8811esac 8812 DSYMUTIL=$ac_ct_DSYMUTIL 8813 fi 8814else 8815 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8816fi 8817 8818 if test -n "$ac_tool_prefix"; then 8819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8820set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822$as_echo_n "checking for $ac_word... " >&6; } 8823if ${ac_cv_prog_NMEDIT+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 if test -n "$NMEDIT"; then 8827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8828else 8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830for as_dir in $PATH 8831do 8832 IFS=$as_save_IFS 8833 test -z "$as_dir" && as_dir=. 8834 for ac_exec_ext in '' $ac_executable_extensions; do 8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8838 break 2 8839 fi 8840done 8841 done 8842IFS=$as_save_IFS 8843 8844fi 8845fi 8846NMEDIT=$ac_cv_prog_NMEDIT 8847if test -n "$NMEDIT"; then 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8849$as_echo "$NMEDIT" >&6; } 8850else 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852$as_echo "no" >&6; } 8853fi 8854 8855 8856fi 8857if test -z "$ac_cv_prog_NMEDIT"; then 8858 ac_ct_NMEDIT=$NMEDIT 8859 # Extract the first word of "nmedit", so it can be a program name with args. 8860set dummy nmedit; ac_word=$2 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8862$as_echo_n "checking for $ac_word... " >&6; } 8863if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 if test -n "$ac_ct_NMEDIT"; then 8867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8868else 8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8870for as_dir in $PATH 8871do 8872 IFS=$as_save_IFS 8873 test -z "$as_dir" && as_dir=. 8874 for ac_exec_ext in '' $ac_executable_extensions; do 8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8876 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8878 break 2 8879 fi 8880done 8881 done 8882IFS=$as_save_IFS 8883 8884fi 8885fi 8886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8887if test -n "$ac_ct_NMEDIT"; then 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8889$as_echo "$ac_ct_NMEDIT" >&6; } 8890else 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8892$as_echo "no" >&6; } 8893fi 8894 8895 if test "x$ac_ct_NMEDIT" = x; then 8896 NMEDIT=":" 8897 else 8898 case $cross_compiling:$ac_tool_warned in 8899yes:) 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8902ac_tool_warned=yes ;; 8903esac 8904 NMEDIT=$ac_ct_NMEDIT 8905 fi 8906else 8907 NMEDIT="$ac_cv_prog_NMEDIT" 8908fi 8909 8910 if test -n "$ac_tool_prefix"; then 8911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8912set dummy ${ac_tool_prefix}lipo; ac_word=$2 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8914$as_echo_n "checking for $ac_word... " >&6; } 8915if ${ac_cv_prog_LIPO+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917else 8918 if test -n "$LIPO"; then 8919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8920else 8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8922for as_dir in $PATH 8923do 8924 IFS=$as_save_IFS 8925 test -z "$as_dir" && as_dir=. 8926 for ac_exec_ext in '' $ac_executable_extensions; do 8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8930 break 2 8931 fi 8932done 8933 done 8934IFS=$as_save_IFS 8935 8936fi 8937fi 8938LIPO=$ac_cv_prog_LIPO 8939if test -n "$LIPO"; then 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8941$as_echo "$LIPO" >&6; } 8942else 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8944$as_echo "no" >&6; } 8945fi 8946 8947 8948fi 8949if test -z "$ac_cv_prog_LIPO"; then 8950 ac_ct_LIPO=$LIPO 8951 # Extract the first word of "lipo", so it can be a program name with args. 8952set dummy lipo; ac_word=$2 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8954$as_echo_n "checking for $ac_word... " >&6; } 8955if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 if test -n "$ac_ct_LIPO"; then 8959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8960else 8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8962for as_dir in $PATH 8963do 8964 IFS=$as_save_IFS 8965 test -z "$as_dir" && as_dir=. 8966 for ac_exec_ext in '' $ac_executable_extensions; do 8967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8968 ac_cv_prog_ac_ct_LIPO="lipo" 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8970 break 2 8971 fi 8972done 8973 done 8974IFS=$as_save_IFS 8975 8976fi 8977fi 8978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8979if test -n "$ac_ct_LIPO"; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8981$as_echo "$ac_ct_LIPO" >&6; } 8982else 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8984$as_echo "no" >&6; } 8985fi 8986 8987 if test "x$ac_ct_LIPO" = x; then 8988 LIPO=":" 8989 else 8990 case $cross_compiling:$ac_tool_warned in 8991yes:) 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8994ac_tool_warned=yes ;; 8995esac 8996 LIPO=$ac_ct_LIPO 8997 fi 8998else 8999 LIPO="$ac_cv_prog_LIPO" 9000fi 9001 9002 if test -n "$ac_tool_prefix"; then 9003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9004set dummy ${ac_tool_prefix}otool; ac_word=$2 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9006$as_echo_n "checking for $ac_word... " >&6; } 9007if ${ac_cv_prog_OTOOL+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 if test -n "$OTOOL"; then 9011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9012else 9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9014for as_dir in $PATH 9015do 9016 IFS=$as_save_IFS 9017 test -z "$as_dir" && as_dir=. 9018 for ac_exec_ext in '' $ac_executable_extensions; do 9019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9022 break 2 9023 fi 9024done 9025 done 9026IFS=$as_save_IFS 9027 9028fi 9029fi 9030OTOOL=$ac_cv_prog_OTOOL 9031if test -n "$OTOOL"; then 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9033$as_echo "$OTOOL" >&6; } 9034else 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9036$as_echo "no" >&6; } 9037fi 9038 9039 9040fi 9041if test -z "$ac_cv_prog_OTOOL"; then 9042 ac_ct_OTOOL=$OTOOL 9043 # Extract the first word of "otool", so it can be a program name with args. 9044set dummy otool; ac_word=$2 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9046$as_echo_n "checking for $ac_word... " >&6; } 9047if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 if test -n "$ac_ct_OTOOL"; then 9051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9052else 9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9054for as_dir in $PATH 9055do 9056 IFS=$as_save_IFS 9057 test -z "$as_dir" && as_dir=. 9058 for ac_exec_ext in '' $ac_executable_extensions; do 9059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9060 ac_cv_prog_ac_ct_OTOOL="otool" 9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9062 break 2 9063 fi 9064done 9065 done 9066IFS=$as_save_IFS 9067 9068fi 9069fi 9070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9071if test -n "$ac_ct_OTOOL"; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9073$as_echo "$ac_ct_OTOOL" >&6; } 9074else 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9076$as_echo "no" >&6; } 9077fi 9078 9079 if test "x$ac_ct_OTOOL" = x; then 9080 OTOOL=":" 9081 else 9082 case $cross_compiling:$ac_tool_warned in 9083yes:) 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9086ac_tool_warned=yes ;; 9087esac 9088 OTOOL=$ac_ct_OTOOL 9089 fi 9090else 9091 OTOOL="$ac_cv_prog_OTOOL" 9092fi 9093 9094 if test -n "$ac_tool_prefix"; then 9095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9096set dummy ${ac_tool_prefix}otool64; ac_word=$2 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9098$as_echo_n "checking for $ac_word... " >&6; } 9099if ${ac_cv_prog_OTOOL64+:} false; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 if test -n "$OTOOL64"; then 9103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9104else 9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9106for as_dir in $PATH 9107do 9108 IFS=$as_save_IFS 9109 test -z "$as_dir" && as_dir=. 9110 for ac_exec_ext in '' $ac_executable_extensions; do 9111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9114 break 2 9115 fi 9116done 9117 done 9118IFS=$as_save_IFS 9119 9120fi 9121fi 9122OTOOL64=$ac_cv_prog_OTOOL64 9123if test -n "$OTOOL64"; then 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9125$as_echo "$OTOOL64" >&6; } 9126else 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9128$as_echo "no" >&6; } 9129fi 9130 9131 9132fi 9133if test -z "$ac_cv_prog_OTOOL64"; then 9134 ac_ct_OTOOL64=$OTOOL64 9135 # Extract the first word of "otool64", so it can be a program name with args. 9136set dummy otool64; ac_word=$2 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9138$as_echo_n "checking for $ac_word... " >&6; } 9139if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 if test -n "$ac_ct_OTOOL64"; then 9143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9144else 9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9146for as_dir in $PATH 9147do 9148 IFS=$as_save_IFS 9149 test -z "$as_dir" && as_dir=. 9150 for ac_exec_ext in '' $ac_executable_extensions; do 9151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9152 ac_cv_prog_ac_ct_OTOOL64="otool64" 9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9154 break 2 9155 fi 9156done 9157 done 9158IFS=$as_save_IFS 9159 9160fi 9161fi 9162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9163if test -n "$ac_ct_OTOOL64"; then 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9165$as_echo "$ac_ct_OTOOL64" >&6; } 9166else 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9168$as_echo "no" >&6; } 9169fi 9170 9171 if test "x$ac_ct_OTOOL64" = x; then 9172 OTOOL64=":" 9173 else 9174 case $cross_compiling:$ac_tool_warned in 9175yes:) 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9178ac_tool_warned=yes ;; 9179esac 9180 OTOOL64=$ac_ct_OTOOL64 9181 fi 9182else 9183 OTOOL64="$ac_cv_prog_OTOOL64" 9184fi 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9213$as_echo_n "checking for -single_module linker flag... " >&6; } 9214if ${lt_cv_apple_cc_single_mod+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 lt_cv_apple_cc_single_mod=no 9218 if test -z "${LT_MULTI_MODULE}"; then 9219 # By default we will add the -single_module flag. You can override 9220 # by either setting the environment variable LT_MULTI_MODULE 9221 # non-empty at configure time, or by adding -multi_module to the 9222 # link flags. 9223 rm -rf libconftest.dylib* 9224 echo "int foo(void){return 1;}" > conftest.c 9225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9226-dynamiclib -Wl,-single_module conftest.c" >&5 9227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9229 _lt_result=$? 9230 # If there is a non-empty error log, and "single_module" 9231 # appears in it, assume the flag caused a linker warning 9232 if test -s conftest.err && $GREP single_module conftest.err; then 9233 cat conftest.err >&5 9234 # Otherwise, if the output was created with a 0 exit code from 9235 # the compiler, it worked. 9236 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9237 lt_cv_apple_cc_single_mod=yes 9238 else 9239 cat conftest.err >&5 9240 fi 9241 rm -rf libconftest.dylib* 9242 rm -f conftest.* 9243 fi 9244fi 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9246$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9247 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9249$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9250if ${lt_cv_ld_exported_symbols_list+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 lt_cv_ld_exported_symbols_list=no 9254 save_LDFLAGS=$LDFLAGS 9255 echo "_main" > conftest.sym 9256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259 9260int 9261main () 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO"; then : 9269 lt_cv_ld_exported_symbols_list=yes 9270else 9271 lt_cv_ld_exported_symbols_list=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext \ 9274 conftest$ac_exeext conftest.$ac_ext 9275 LDFLAGS="$save_LDFLAGS" 9276 9277fi 9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9279$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9280 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9282$as_echo_n "checking for -force_load linker flag... " >&6; } 9283if ${lt_cv_ld_force_load+:} false; then : 9284 $as_echo_n "(cached) " >&6 9285else 9286 lt_cv_ld_force_load=no 9287 cat > conftest.c << _LT_EOF 9288int forced_loaded() { return 2;} 9289_LT_EOF 9290 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9291 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9292 echo "$AR cru libconftest.a conftest.o" >&5 9293 $AR cru libconftest.a conftest.o 2>&5 9294 echo "$RANLIB libconftest.a" >&5 9295 $RANLIB libconftest.a 2>&5 9296 cat > conftest.c << _LT_EOF 9297int main() { return 0;} 9298_LT_EOF 9299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9301 _lt_result=$? 9302 if test -s conftest.err && $GREP force_load conftest.err; then 9303 cat conftest.err >&5 9304 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9305 lt_cv_ld_force_load=yes 9306 else 9307 cat conftest.err >&5 9308 fi 9309 rm -f conftest.err libconftest.a conftest conftest.c 9310 rm -rf conftest.dSYM 9311 9312fi 9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9314$as_echo "$lt_cv_ld_force_load" >&6; } 9315 case $host_os in 9316 rhapsody* | darwin1.[012]) 9317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9318 darwin1.*) 9319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9320 darwin*) # darwin 5.x on 9321 # if running on 10.5 or later, the deployment target defaults 9322 # to the OS version, if on x86, and 10.4, the deployment 9323 # target defaults to 10.4. Don't you love it? 9324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9325 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9327 10.[012]*) 9328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9329 10.*) 9330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9331 esac 9332 ;; 9333 esac 9334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9335 _lt_dar_single_mod='$single_module' 9336 fi 9337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9339 else 9340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9341 fi 9342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9343 _lt_dsymutil='~$DSYMUTIL $lib || :' 9344 else 9345 _lt_dsymutil= 9346 fi 9347 ;; 9348 esac 9349 9350for ac_header in dlfcn.h 9351do : 9352 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9353" 9354if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9355 cat >>confdefs.h <<_ACEOF 9356#define HAVE_DLFCN_H 1 9357_ACEOF 9358 9359fi 9360 9361done 9362 9363 9364 9365 9366func_stripname_cnf () 9367{ 9368 case ${2} in 9369 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9370 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9371 esac 9372} # func_stripname_cnf 9373 9374 9375 9376 9377 9378# Set options 9379 9380 9381 9382 enable_dlopen=no 9383 9384 9385 enable_win32_dll=no 9386 9387 9388 # Check whether --enable-shared was given. 9389if test "${enable_shared+set}" = set; then : 9390 enableval=$enable_shared; p=${PACKAGE-default} 9391 case $enableval in 9392 yes) enable_shared=yes ;; 9393 no) enable_shared=no ;; 9394 *) 9395 enable_shared=no 9396 # Look at the argument we got. We use all the common list separators. 9397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9398 for pkg in $enableval; do 9399 IFS="$lt_save_ifs" 9400 if test "X$pkg" = "X$p"; then 9401 enable_shared=yes 9402 fi 9403 done 9404 IFS="$lt_save_ifs" 9405 ;; 9406 esac 9407else 9408 enable_shared=yes 9409fi 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 # Check whether --enable-static was given. 9420if test "${enable_static+set}" = set; then : 9421 enableval=$enable_static; p=${PACKAGE-default} 9422 case $enableval in 9423 yes) enable_static=yes ;; 9424 no) enable_static=no ;; 9425 *) 9426 enable_static=no 9427 # Look at the argument we got. We use all the common list separators. 9428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9429 for pkg in $enableval; do 9430 IFS="$lt_save_ifs" 9431 if test "X$pkg" = "X$p"; then 9432 enable_static=yes 9433 fi 9434 done 9435 IFS="$lt_save_ifs" 9436 ;; 9437 esac 9438else 9439 enable_static=yes 9440fi 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451# Check whether --with-pic was given. 9452if test "${with_pic+set}" = set; then : 9453 withval=$with_pic; lt_p=${PACKAGE-default} 9454 case $withval in 9455 yes|no) pic_mode=$withval ;; 9456 *) 9457 pic_mode=default 9458 # Look at the argument we got. We use all the common list separators. 9459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9460 for lt_pkg in $withval; do 9461 IFS="$lt_save_ifs" 9462 if test "X$lt_pkg" = "X$lt_p"; then 9463 pic_mode=yes 9464 fi 9465 done 9466 IFS="$lt_save_ifs" 9467 ;; 9468 esac 9469else 9470 pic_mode=default 9471fi 9472 9473 9474test -z "$pic_mode" && pic_mode=default 9475 9476 9477 9478 9479 9480 9481 9482 # Check whether --enable-fast-install was given. 9483if test "${enable_fast_install+set}" = set; then : 9484 enableval=$enable_fast_install; p=${PACKAGE-default} 9485 case $enableval in 9486 yes) enable_fast_install=yes ;; 9487 no) enable_fast_install=no ;; 9488 *) 9489 enable_fast_install=no 9490 # Look at the argument we got. We use all the common list separators. 9491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9492 for pkg in $enableval; do 9493 IFS="$lt_save_ifs" 9494 if test "X$pkg" = "X$p"; then 9495 enable_fast_install=yes 9496 fi 9497 done 9498 IFS="$lt_save_ifs" 9499 ;; 9500 esac 9501else 9502 enable_fast_install=yes 9503fi 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515# This can be used to rebuild libtool when needed 9516LIBTOOL_DEPS="$ltmain" 9517 9518# Always use our own libtool. 9519LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550test -z "$LN_S" && LN_S="ln -s" 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565if test -n "${ZSH_VERSION+set}" ; then 9566 setopt NO_GLOB_SUBST 9567fi 9568 9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9570$as_echo_n "checking for objdir... " >&6; } 9571if ${lt_cv_objdir+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 rm -f .libs 2>/dev/null 9575mkdir .libs 2>/dev/null 9576if test -d .libs; then 9577 lt_cv_objdir=.libs 9578else 9579 # MS-DOS does not allow filenames that begin with a dot. 9580 lt_cv_objdir=_libs 9581fi 9582rmdir .libs 2>/dev/null 9583fi 9584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9585$as_echo "$lt_cv_objdir" >&6; } 9586objdir=$lt_cv_objdir 9587 9588 9589 9590 9591 9592cat >>confdefs.h <<_ACEOF 9593#define LT_OBJDIR "$lt_cv_objdir/" 9594_ACEOF 9595 9596 9597 9598 9599case $host_os in 9600aix3*) 9601 # AIX sometimes has problems with the GCC collect2 program. For some 9602 # reason, if we set the COLLECT_NAMES environment variable, the problems 9603 # vanish in a puff of smoke. 9604 if test "X${COLLECT_NAMES+set}" != Xset; then 9605 COLLECT_NAMES= 9606 export COLLECT_NAMES 9607 fi 9608 ;; 9609esac 9610 9611# Global variables: 9612ofile=libtool 9613can_build_shared=yes 9614 9615# All known linkers require a `.a' archive for static linking (except MSVC, 9616# which needs '.lib'). 9617libext=a 9618 9619with_gnu_ld="$lt_cv_prog_gnu_ld" 9620 9621old_CC="$CC" 9622old_CFLAGS="$CFLAGS" 9623 9624# Set sane defaults for various variables 9625test -z "$CC" && CC=cc 9626test -z "$LTCC" && LTCC=$CC 9627test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9628test -z "$LD" && LD=ld 9629test -z "$ac_objext" && ac_objext=o 9630 9631for cc_temp in $compiler""; do 9632 case $cc_temp in 9633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9635 \-*) ;; 9636 *) break;; 9637 esac 9638done 9639cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9640 9641 9642# Only perform the check for file, if the check method requires it 9643test -z "$MAGIC_CMD" && MAGIC_CMD=file 9644case $deplibs_check_method in 9645file_magic*) 9646 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9648$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9649if ${lt_cv_path_MAGIC_CMD+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 case $MAGIC_CMD in 9653[\\/*] | ?:[\\/]*) 9654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9655 ;; 9656*) 9657 lt_save_MAGIC_CMD="$MAGIC_CMD" 9658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9660 for ac_dir in $ac_dummy; do 9661 IFS="$lt_save_ifs" 9662 test -z "$ac_dir" && ac_dir=. 9663 if test -f $ac_dir/${ac_tool_prefix}file; then 9664 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9665 if test -n "$file_magic_test_file"; then 9666 case $deplibs_check_method in 9667 "file_magic "*) 9668 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9671 $EGREP "$file_magic_regex" > /dev/null; then 9672 : 9673 else 9674 cat <<_LT_EOF 1>&2 9675 9676*** Warning: the command libtool uses to detect shared libraries, 9677*** $file_magic_cmd, produces output that libtool cannot recognize. 9678*** The result is that libtool may fail to recognize shared libraries 9679*** as such. This will affect the creation of libtool libraries that 9680*** depend on shared libraries, but programs linked with such libtool 9681*** libraries will work regardless of this problem. Nevertheless, you 9682*** may want to report the problem to your system manager and/or to 9683*** bug-libtool@gnu.org 9684 9685_LT_EOF 9686 fi ;; 9687 esac 9688 fi 9689 break 9690 fi 9691 done 9692 IFS="$lt_save_ifs" 9693 MAGIC_CMD="$lt_save_MAGIC_CMD" 9694 ;; 9695esac 9696fi 9697 9698MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9699if test -n "$MAGIC_CMD"; then 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9701$as_echo "$MAGIC_CMD" >&6; } 9702else 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9704$as_echo "no" >&6; } 9705fi 9706 9707 9708 9709 9710 9711if test -z "$lt_cv_path_MAGIC_CMD"; then 9712 if test -n "$ac_tool_prefix"; then 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9714$as_echo_n "checking for file... " >&6; } 9715if ${lt_cv_path_MAGIC_CMD+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 case $MAGIC_CMD in 9719[\\/*] | ?:[\\/]*) 9720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9721 ;; 9722*) 9723 lt_save_MAGIC_CMD="$MAGIC_CMD" 9724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9726 for ac_dir in $ac_dummy; do 9727 IFS="$lt_save_ifs" 9728 test -z "$ac_dir" && ac_dir=. 9729 if test -f $ac_dir/file; then 9730 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9731 if test -n "$file_magic_test_file"; then 9732 case $deplibs_check_method in 9733 "file_magic "*) 9734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9737 $EGREP "$file_magic_regex" > /dev/null; then 9738 : 9739 else 9740 cat <<_LT_EOF 1>&2 9741 9742*** Warning: the command libtool uses to detect shared libraries, 9743*** $file_magic_cmd, produces output that libtool cannot recognize. 9744*** The result is that libtool may fail to recognize shared libraries 9745*** as such. This will affect the creation of libtool libraries that 9746*** depend on shared libraries, but programs linked with such libtool 9747*** libraries will work regardless of this problem. Nevertheless, you 9748*** may want to report the problem to your system manager and/or to 9749*** bug-libtool@gnu.org 9750 9751_LT_EOF 9752 fi ;; 9753 esac 9754 fi 9755 break 9756 fi 9757 done 9758 IFS="$lt_save_ifs" 9759 MAGIC_CMD="$lt_save_MAGIC_CMD" 9760 ;; 9761esac 9762fi 9763 9764MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9765if test -n "$MAGIC_CMD"; then 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9767$as_echo "$MAGIC_CMD" >&6; } 9768else 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9770$as_echo "no" >&6; } 9771fi 9772 9773 9774 else 9775 MAGIC_CMD=: 9776 fi 9777fi 9778 9779 fi 9780 ;; 9781esac 9782 9783# Use C for the default configuration in the libtool script 9784 9785lt_save_CC="$CC" 9786ac_ext=c 9787ac_cpp='$CPP $CPPFLAGS' 9788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9790ac_compiler_gnu=$ac_cv_c_compiler_gnu 9791 9792 9793# Source file extension for C test sources. 9794ac_ext=c 9795 9796# Object file extension for compiled C test sources. 9797objext=o 9798objext=$objext 9799 9800# Code to be used in simple compile tests 9801lt_simple_compile_test_code="int some_variable = 0;" 9802 9803# Code to be used in simple link tests 9804lt_simple_link_test_code='int main(){return(0);}' 9805 9806 9807 9808 9809 9810 9811 9812# If no C compiler was specified, use CC. 9813LTCC=${LTCC-"$CC"} 9814 9815# If no C compiler flags were specified, use CFLAGS. 9816LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9817 9818# Allow CC to be a program name with arguments. 9819compiler=$CC 9820 9821# Save the default compiler, since it gets overwritten when the other 9822# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9823compiler_DEFAULT=$CC 9824 9825# save warnings/boilerplate of simple test code 9826ac_outfile=conftest.$ac_objext 9827echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9828eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9829_lt_compiler_boilerplate=`cat conftest.err` 9830$RM conftest* 9831 9832ac_outfile=conftest.$ac_objext 9833echo "$lt_simple_link_test_code" >conftest.$ac_ext 9834eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9835_lt_linker_boilerplate=`cat conftest.err` 9836$RM -r conftest* 9837 9838 9839## CAVEAT EMPTOR: 9840## There is no encapsulation within the following macros, do not change 9841## the running order or otherwise move them around unless you know exactly 9842## what you are doing... 9843if test -n "$compiler"; then 9844 9845lt_prog_compiler_no_builtin_flag= 9846 9847if test "$GCC" = yes; then 9848 case $cc_basename in 9849 nvcc*) 9850 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9851 *) 9852 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9853 esac 9854 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9856$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9857if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 lt_cv_prog_compiler_rtti_exceptions=no 9861 ac_outfile=conftest.$ac_objext 9862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9863 lt_compiler_flag="-fno-rtti -fno-exceptions" 9864 # Insert the option either (1) after the last *FLAGS variable, or 9865 # (2) before a word containing "conftest.", or (3) at the end. 9866 # Note that $ac_compile itself does not contain backslashes and begins 9867 # with a dollar sign (not a hyphen), so the echo should work correctly. 9868 # The option is referenced via a variable to avoid confusing sed. 9869 lt_compile=`echo "$ac_compile" | $SED \ 9870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9872 -e 's:$: $lt_compiler_flag:'` 9873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9874 (eval "$lt_compile" 2>conftest.err) 9875 ac_status=$? 9876 cat conftest.err >&5 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 if (exit $ac_status) && test -s "$ac_outfile"; then 9879 # The compiler can only warn and ignore the option if not recognized 9880 # So say no if there are warnings other than the usual output. 9881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9884 lt_cv_prog_compiler_rtti_exceptions=yes 9885 fi 9886 fi 9887 $RM conftest* 9888 9889fi 9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9891$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9892 9893if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9894 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9895else 9896 : 9897fi 9898 9899fi 9900 9901 9902 9903 9904 9905 9906 lt_prog_compiler_wl= 9907lt_prog_compiler_pic= 9908lt_prog_compiler_static= 9909 9910 9911 if test "$GCC" = yes; then 9912 lt_prog_compiler_wl='-Wl,' 9913 lt_prog_compiler_static='-static' 9914 9915 case $host_os in 9916 aix*) 9917 # All AIX code is PIC. 9918 if test "$host_cpu" = ia64; then 9919 # AIX 5 now supports IA64 processor 9920 lt_prog_compiler_static='-Bstatic' 9921 fi 9922 ;; 9923 9924 amigaos*) 9925 case $host_cpu in 9926 powerpc) 9927 # see comment about AmigaOS4 .so support 9928 lt_prog_compiler_pic='-fPIC' 9929 ;; 9930 m68k) 9931 # FIXME: we need at least 68020 code to build shared libraries, but 9932 # adding the `-m68020' flag to GCC prevents building anything better, 9933 # like `-m68040'. 9934 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9935 ;; 9936 esac 9937 ;; 9938 9939 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9940 # PIC is the default for these OSes. 9941 ;; 9942 9943 mingw* | cygwin* | pw32* | os2* | cegcc*) 9944 # This hack is so that the source file can tell whether it is being 9945 # built for inclusion in a dll (and should export symbols for example). 9946 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9947 # (--disable-auto-import) libraries 9948 lt_prog_compiler_pic='-DDLL_EXPORT' 9949 ;; 9950 9951 darwin* | rhapsody*) 9952 # PIC is the default on this platform 9953 # Common symbols not allowed in MH_DYLIB files 9954 lt_prog_compiler_pic='-fno-common' 9955 ;; 9956 9957 haiku*) 9958 # PIC is the default for Haiku. 9959 # The "-static" flag exists, but is broken. 9960 lt_prog_compiler_static= 9961 ;; 9962 9963 hpux*) 9964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9966 # sets the default TLS model and affects inlining. 9967 case $host_cpu in 9968 hppa*64*) 9969 # +Z the default 9970 ;; 9971 *) 9972 lt_prog_compiler_pic='-fPIC' 9973 ;; 9974 esac 9975 ;; 9976 9977 interix[3-9]*) 9978 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9979 # Instead, we relocate shared libraries at runtime. 9980 ;; 9981 9982 msdosdjgpp*) 9983 # Just because we use GCC doesn't mean we suddenly get shared libraries 9984 # on systems that don't support them. 9985 lt_prog_compiler_can_build_shared=no 9986 enable_shared=no 9987 ;; 9988 9989 *nto* | *qnx*) 9990 # QNX uses GNU C++, but need to define -shared option too, otherwise 9991 # it will coredump. 9992 lt_prog_compiler_pic='-fPIC -shared' 9993 ;; 9994 9995 sysv4*MP*) 9996 if test -d /usr/nec; then 9997 lt_prog_compiler_pic=-Kconform_pic 9998 fi 9999 ;; 10000 10001 *) 10002 lt_prog_compiler_pic='-fPIC' 10003 ;; 10004 esac 10005 10006 case $cc_basename in 10007 nvcc*) # Cuda Compiler Driver 2.2 10008 lt_prog_compiler_wl='-Xlinker ' 10009 if test -n "$lt_prog_compiler_pic"; then 10010 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10011 fi 10012 ;; 10013 esac 10014 else 10015 # PORTME Check for flag to pass linker flags through the system compiler. 10016 case $host_os in 10017 aix*) 10018 lt_prog_compiler_wl='-Wl,' 10019 if test "$host_cpu" = ia64; then 10020 # AIX 5 now supports IA64 processor 10021 lt_prog_compiler_static='-Bstatic' 10022 else 10023 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10024 fi 10025 ;; 10026 10027 mingw* | cygwin* | pw32* | os2* | cegcc*) 10028 # This hack is so that the source file can tell whether it is being 10029 # built for inclusion in a dll (and should export symbols for example). 10030 lt_prog_compiler_pic='-DDLL_EXPORT' 10031 ;; 10032 10033 hpux9* | hpux10* | hpux11*) 10034 lt_prog_compiler_wl='-Wl,' 10035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10036 # not for PA HP-UX. 10037 case $host_cpu in 10038 hppa*64*|ia64*) 10039 # +Z the default 10040 ;; 10041 *) 10042 lt_prog_compiler_pic='+Z' 10043 ;; 10044 esac 10045 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10046 lt_prog_compiler_static='${wl}-a ${wl}archive' 10047 ;; 10048 10049 irix5* | irix6* | nonstopux*) 10050 lt_prog_compiler_wl='-Wl,' 10051 # PIC (with -KPIC) is the default. 10052 lt_prog_compiler_static='-non_shared' 10053 ;; 10054 10055 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10056 case $cc_basename in 10057 # old Intel for x86_64 which still supported -KPIC. 10058 ecc*) 10059 lt_prog_compiler_wl='-Wl,' 10060 lt_prog_compiler_pic='-KPIC' 10061 lt_prog_compiler_static='-static' 10062 ;; 10063 # icc used to be incompatible with GCC. 10064 # ICC 10 doesn't accept -KPIC any more. 10065 icc* | ifort*) 10066 lt_prog_compiler_wl='-Wl,' 10067 lt_prog_compiler_pic='-fPIC' 10068 lt_prog_compiler_static='-static' 10069 ;; 10070 # Lahey Fortran 8.1. 10071 lf95*) 10072 lt_prog_compiler_wl='-Wl,' 10073 lt_prog_compiler_pic='--shared' 10074 lt_prog_compiler_static='--static' 10075 ;; 10076 nagfor*) 10077 # NAG Fortran compiler 10078 lt_prog_compiler_wl='-Wl,-Wl,,' 10079 lt_prog_compiler_pic='-PIC' 10080 lt_prog_compiler_static='-Bstatic' 10081 ;; 10082 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10083 # Portland Group compilers (*not* the Pentium gcc compiler, 10084 # which looks to be a dead project) 10085 lt_prog_compiler_wl='-Wl,' 10086 lt_prog_compiler_pic='-fpic' 10087 lt_prog_compiler_static='-Bstatic' 10088 ;; 10089 ccc*) 10090 lt_prog_compiler_wl='-Wl,' 10091 # All Alpha code is PIC. 10092 lt_prog_compiler_static='-non_shared' 10093 ;; 10094 xl* | bgxl* | bgf* | mpixl*) 10095 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10096 lt_prog_compiler_wl='-Wl,' 10097 lt_prog_compiler_pic='-qpic' 10098 lt_prog_compiler_static='-qstaticlink' 10099 ;; 10100 *) 10101 case `$CC -V 2>&1 | sed 5q` in 10102 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10103 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10104 lt_prog_compiler_pic='-KPIC' 10105 lt_prog_compiler_static='-Bstatic' 10106 lt_prog_compiler_wl='' 10107 ;; 10108 *Sun\ F* | *Sun*Fortran*) 10109 lt_prog_compiler_pic='-KPIC' 10110 lt_prog_compiler_static='-Bstatic' 10111 lt_prog_compiler_wl='-Qoption ld ' 10112 ;; 10113 *Sun\ C*) 10114 # Sun C 5.9 10115 lt_prog_compiler_pic='-KPIC' 10116 lt_prog_compiler_static='-Bstatic' 10117 lt_prog_compiler_wl='-Wl,' 10118 ;; 10119 *Intel*\ [CF]*Compiler*) 10120 lt_prog_compiler_wl='-Wl,' 10121 lt_prog_compiler_pic='-fPIC' 10122 lt_prog_compiler_static='-static' 10123 ;; 10124 *Portland\ Group*) 10125 lt_prog_compiler_wl='-Wl,' 10126 lt_prog_compiler_pic='-fpic' 10127 lt_prog_compiler_static='-Bstatic' 10128 ;; 10129 esac 10130 ;; 10131 esac 10132 ;; 10133 10134 newsos6) 10135 lt_prog_compiler_pic='-KPIC' 10136 lt_prog_compiler_static='-Bstatic' 10137 ;; 10138 10139 *nto* | *qnx*) 10140 # QNX uses GNU C++, but need to define -shared option too, otherwise 10141 # it will coredump. 10142 lt_prog_compiler_pic='-fPIC -shared' 10143 ;; 10144 10145 osf3* | osf4* | osf5*) 10146 lt_prog_compiler_wl='-Wl,' 10147 # All OSF/1 code is PIC. 10148 lt_prog_compiler_static='-non_shared' 10149 ;; 10150 10151 rdos*) 10152 lt_prog_compiler_static='-non_shared' 10153 ;; 10154 10155 solaris*) 10156 lt_prog_compiler_pic='-KPIC' 10157 lt_prog_compiler_static='-Bstatic' 10158 case $cc_basename in 10159 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10160 lt_prog_compiler_wl='-Qoption ld ';; 10161 *) 10162 lt_prog_compiler_wl='-Wl,';; 10163 esac 10164 ;; 10165 10166 sunos4*) 10167 lt_prog_compiler_wl='-Qoption ld ' 10168 lt_prog_compiler_pic='-PIC' 10169 lt_prog_compiler_static='-Bstatic' 10170 ;; 10171 10172 sysv4 | sysv4.2uw2* | sysv4.3*) 10173 lt_prog_compiler_wl='-Wl,' 10174 lt_prog_compiler_pic='-KPIC' 10175 lt_prog_compiler_static='-Bstatic' 10176 ;; 10177 10178 sysv4*MP*) 10179 if test -d /usr/nec ;then 10180 lt_prog_compiler_pic='-Kconform_pic' 10181 lt_prog_compiler_static='-Bstatic' 10182 fi 10183 ;; 10184 10185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10186 lt_prog_compiler_wl='-Wl,' 10187 lt_prog_compiler_pic='-KPIC' 10188 lt_prog_compiler_static='-Bstatic' 10189 ;; 10190 10191 unicos*) 10192 lt_prog_compiler_wl='-Wl,' 10193 lt_prog_compiler_can_build_shared=no 10194 ;; 10195 10196 uts4*) 10197 lt_prog_compiler_pic='-pic' 10198 lt_prog_compiler_static='-Bstatic' 10199 ;; 10200 10201 *) 10202 lt_prog_compiler_can_build_shared=no 10203 ;; 10204 esac 10205 fi 10206 10207case $host_os in 10208 # For platforms which do not support PIC, -DPIC is meaningless: 10209 *djgpp*) 10210 lt_prog_compiler_pic= 10211 ;; 10212 *) 10213 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10214 ;; 10215esac 10216 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10218$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10219if ${lt_cv_prog_compiler_pic+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10225$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10226lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10227 10228# 10229# Check to make sure the PIC flag actually works. 10230# 10231if test -n "$lt_prog_compiler_pic"; then 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10233$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10234if ${lt_cv_prog_compiler_pic_works+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 lt_cv_prog_compiler_pic_works=no 10238 ac_outfile=conftest.$ac_objext 10239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10240 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10241 # Insert the option either (1) after the last *FLAGS variable, or 10242 # (2) before a word containing "conftest.", or (3) at the end. 10243 # Note that $ac_compile itself does not contain backslashes and begins 10244 # with a dollar sign (not a hyphen), so the echo should work correctly. 10245 # The option is referenced via a variable to avoid confusing sed. 10246 lt_compile=`echo "$ac_compile" | $SED \ 10247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10249 -e 's:$: $lt_compiler_flag:'` 10250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10251 (eval "$lt_compile" 2>conftest.err) 10252 ac_status=$? 10253 cat conftest.err >&5 10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10255 if (exit $ac_status) && test -s "$ac_outfile"; then 10256 # The compiler can only warn and ignore the option if not recognized 10257 # So say no if there are warnings other than the usual output. 10258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10261 lt_cv_prog_compiler_pic_works=yes 10262 fi 10263 fi 10264 $RM conftest* 10265 10266fi 10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10268$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10269 10270if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10271 case $lt_prog_compiler_pic in 10272 "" | " "*) ;; 10273 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10274 esac 10275else 10276 lt_prog_compiler_pic= 10277 lt_prog_compiler_can_build_shared=no 10278fi 10279 10280fi 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292# 10293# Check to make sure the static flag actually works. 10294# 10295wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10297$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10298if ${lt_cv_prog_compiler_static_works+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 lt_cv_prog_compiler_static_works=no 10302 save_LDFLAGS="$LDFLAGS" 10303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10304 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10306 # The linker can only warn and ignore the option if not recognized 10307 # So say no if there are warnings 10308 if test -s conftest.err; then 10309 # Append any errors to the config.log. 10310 cat conftest.err 1>&5 10311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10313 if diff conftest.exp conftest.er2 >/dev/null; then 10314 lt_cv_prog_compiler_static_works=yes 10315 fi 10316 else 10317 lt_cv_prog_compiler_static_works=yes 10318 fi 10319 fi 10320 $RM -r conftest* 10321 LDFLAGS="$save_LDFLAGS" 10322 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10325$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10326 10327if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10328 : 10329else 10330 lt_prog_compiler_static= 10331fi 10332 10333 10334 10335 10336 10337 10338 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10341if ${lt_cv_prog_compiler_c_o+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 lt_cv_prog_compiler_c_o=no 10345 $RM -r conftest 2>/dev/null 10346 mkdir conftest 10347 cd conftest 10348 mkdir out 10349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10350 10351 lt_compiler_flag="-o out/conftest2.$ac_objext" 10352 # Insert the option either (1) after the last *FLAGS variable, or 10353 # (2) before a word containing "conftest.", or (3) at the end. 10354 # Note that $ac_compile itself does not contain backslashes and begins 10355 # with a dollar sign (not a hyphen), so the echo should work correctly. 10356 lt_compile=`echo "$ac_compile" | $SED \ 10357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10359 -e 's:$: $lt_compiler_flag:'` 10360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10361 (eval "$lt_compile" 2>out/conftest.err) 10362 ac_status=$? 10363 cat out/conftest.err >&5 10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10365 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10366 then 10367 # The compiler can only warn and ignore the option if not recognized 10368 # So say no if there are warnings 10369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10372 lt_cv_prog_compiler_c_o=yes 10373 fi 10374 fi 10375 chmod u+w . 2>&5 10376 $RM conftest* 10377 # SGI C++ compiler will create directory out/ii_files/ for 10378 # template instantiation 10379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10380 $RM out/* && rmdir out 10381 cd .. 10382 $RM -r conftest 10383 $RM conftest* 10384 10385fi 10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10387$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10388 10389 10390 10391 10392 10393 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10396if ${lt_cv_prog_compiler_c_o+:} false; then : 10397 $as_echo_n "(cached) " >&6 10398else 10399 lt_cv_prog_compiler_c_o=no 10400 $RM -r conftest 2>/dev/null 10401 mkdir conftest 10402 cd conftest 10403 mkdir out 10404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10405 10406 lt_compiler_flag="-o out/conftest2.$ac_objext" 10407 # Insert the option either (1) after the last *FLAGS variable, or 10408 # (2) before a word containing "conftest.", or (3) at the end. 10409 # Note that $ac_compile itself does not contain backslashes and begins 10410 # with a dollar sign (not a hyphen), so the echo should work correctly. 10411 lt_compile=`echo "$ac_compile" | $SED \ 10412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10414 -e 's:$: $lt_compiler_flag:'` 10415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10416 (eval "$lt_compile" 2>out/conftest.err) 10417 ac_status=$? 10418 cat out/conftest.err >&5 10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10421 then 10422 # The compiler can only warn and ignore the option if not recognized 10423 # So say no if there are warnings 10424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10427 lt_cv_prog_compiler_c_o=yes 10428 fi 10429 fi 10430 chmod u+w . 2>&5 10431 $RM conftest* 10432 # SGI C++ compiler will create directory out/ii_files/ for 10433 # template instantiation 10434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10435 $RM out/* && rmdir out 10436 cd .. 10437 $RM -r conftest 10438 $RM conftest* 10439 10440fi 10441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10442$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10443 10444 10445 10446 10447hard_links="nottested" 10448if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10449 # do not overwrite the value of need_locks provided by the user 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10451$as_echo_n "checking if we can lock with hard links... " >&6; } 10452 hard_links=yes 10453 $RM conftest* 10454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10455 touch conftest.a 10456 ln conftest.a conftest.b 2>&5 || hard_links=no 10457 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10459$as_echo "$hard_links" >&6; } 10460 if test "$hard_links" = no; then 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10462$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10463 need_locks=warn 10464 fi 10465else 10466 need_locks=no 10467fi 10468 10469 10470 10471 10472 10473 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10476 10477 runpath_var= 10478 allow_undefined_flag= 10479 always_export_symbols=no 10480 archive_cmds= 10481 archive_expsym_cmds= 10482 compiler_needs_object=no 10483 enable_shared_with_static_runtimes=no 10484 export_dynamic_flag_spec= 10485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10486 hardcode_automatic=no 10487 hardcode_direct=no 10488 hardcode_direct_absolute=no 10489 hardcode_libdir_flag_spec= 10490 hardcode_libdir_separator= 10491 hardcode_minus_L=no 10492 hardcode_shlibpath_var=unsupported 10493 inherit_rpath=no 10494 link_all_deplibs=unknown 10495 module_cmds= 10496 module_expsym_cmds= 10497 old_archive_from_new_cmds= 10498 old_archive_from_expsyms_cmds= 10499 thread_safe_flag_spec= 10500 whole_archive_flag_spec= 10501 # include_expsyms should be a list of space-separated symbols to be *always* 10502 # included in the symbol list 10503 include_expsyms= 10504 # exclude_expsyms can be an extended regexp of symbols to exclude 10505 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10507 # as well as any symbol that contains `d'. 10508 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10510 # platforms (ab)use it in PIC code, but their linkers get confused if 10511 # the symbol is explicitly referenced. Since portable code cannot 10512 # rely on this symbol name, it's probably fine to never include it in 10513 # preloaded symbol tables. 10514 # Exclude shared library initialization/finalization symbols. 10515 extract_expsyms_cmds= 10516 10517 case $host_os in 10518 cygwin* | mingw* | pw32* | cegcc*) 10519 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10520 # When not using gcc, we currently assume that we are using 10521 # Microsoft Visual C++. 10522 if test "$GCC" != yes; then 10523 with_gnu_ld=no 10524 fi 10525 ;; 10526 interix*) 10527 # we just hope/assume this is gcc and not c89 (= MSVC++) 10528 with_gnu_ld=yes 10529 ;; 10530 openbsd*) 10531 with_gnu_ld=no 10532 ;; 10533 esac 10534 10535 ld_shlibs=yes 10536 10537 # On some targets, GNU ld is compatible enough with the native linker 10538 # that we're better off using the native interface for both. 10539 lt_use_gnu_ld_interface=no 10540 if test "$with_gnu_ld" = yes; then 10541 case $host_os in 10542 aix*) 10543 # The AIX port of GNU ld has always aspired to compatibility 10544 # with the native linker. However, as the warning in the GNU ld 10545 # block says, versions before 2.19.5* couldn't really create working 10546 # shared libraries, regardless of the interface used. 10547 case `$LD -v 2>&1` in 10548 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10549 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10550 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10551 *) 10552 lt_use_gnu_ld_interface=yes 10553 ;; 10554 esac 10555 ;; 10556 *) 10557 lt_use_gnu_ld_interface=yes 10558 ;; 10559 esac 10560 fi 10561 10562 if test "$lt_use_gnu_ld_interface" = yes; then 10563 # If archive_cmds runs LD, not CC, wlarc should be empty 10564 wlarc='${wl}' 10565 10566 # Set some defaults for GNU ld with shared library support. These 10567 # are reset later if shared libraries are not supported. Putting them 10568 # here allows them to be overridden if necessary. 10569 runpath_var=LD_RUN_PATH 10570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10571 export_dynamic_flag_spec='${wl}--export-dynamic' 10572 # ancient GNU ld didn't support --whole-archive et. al. 10573 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10574 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10575 else 10576 whole_archive_flag_spec= 10577 fi 10578 supports_anon_versioning=no 10579 case `$LD -v 2>&1` in 10580 *GNU\ gold*) supports_anon_versioning=yes ;; 10581 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10584 *\ 2.11.*) ;; # other 2.11 versions 10585 *) supports_anon_versioning=yes ;; 10586 esac 10587 10588 # See if GNU ld supports shared libraries. 10589 case $host_os in 10590 aix[3-9]*) 10591 # On AIX/PPC, the GNU linker is very broken 10592 if test "$host_cpu" != ia64; then 10593 ld_shlibs=no 10594 cat <<_LT_EOF 1>&2 10595 10596*** Warning: the GNU linker, at least up to release 2.19, is reported 10597*** to be unable to reliably create shared libraries on AIX. 10598*** Therefore, libtool is disabling shared libraries support. If you 10599*** really care for shared libraries, you may want to install binutils 10600*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10601*** You will then need to restart the configuration process. 10602 10603_LT_EOF 10604 fi 10605 ;; 10606 10607 amigaos*) 10608 case $host_cpu in 10609 powerpc) 10610 # see comment about AmigaOS4 .so support 10611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10612 archive_expsym_cmds='' 10613 ;; 10614 m68k) 10615 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)' 10616 hardcode_libdir_flag_spec='-L$libdir' 10617 hardcode_minus_L=yes 10618 ;; 10619 esac 10620 ;; 10621 10622 beos*) 10623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10624 allow_undefined_flag=unsupported 10625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10626 # support --undefined. This deserves some investigation. FIXME 10627 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10628 else 10629 ld_shlibs=no 10630 fi 10631 ;; 10632 10633 cygwin* | mingw* | pw32* | cegcc*) 10634 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10635 # as there is no search path for DLLs. 10636 hardcode_libdir_flag_spec='-L$libdir' 10637 export_dynamic_flag_spec='${wl}--export-all-symbols' 10638 allow_undefined_flag=unsupported 10639 always_export_symbols=no 10640 enable_shared_with_static_runtimes=yes 10641 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' 10642 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10643 10644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10646 # If the export-symbols file already is a .def file (1st line 10647 # is EXPORTS), use it as is; otherwise, prepend... 10648 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10649 cp $export_symbols $output_objdir/$soname.def; 10650 else 10651 echo EXPORTS > $output_objdir/$soname.def; 10652 cat $export_symbols >> $output_objdir/$soname.def; 10653 fi~ 10654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10655 else 10656 ld_shlibs=no 10657 fi 10658 ;; 10659 10660 haiku*) 10661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10662 link_all_deplibs=yes 10663 ;; 10664 10665 interix[3-9]*) 10666 hardcode_direct=no 10667 hardcode_shlibpath_var=no 10668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10669 export_dynamic_flag_spec='${wl}-E' 10670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10671 # Instead, shared libraries are loaded at an image base (0x10000000 by 10672 # default) and relocated if they conflict, which is a slow very memory 10673 # consuming and fragmenting process. To avoid this, we pick a random, 10674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10675 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10677 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' 10678 ;; 10679 10680 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10681 tmp_diet=no 10682 if test "$host_os" = linux-dietlibc; then 10683 case $cc_basename in 10684 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10685 esac 10686 fi 10687 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10688 && test "$tmp_diet" = no 10689 then 10690 tmp_addflag=' $pic_flag' 10691 tmp_sharedflag='-shared' 10692 case $cc_basename,$host_cpu in 10693 pgcc*) # Portland Group C compiler 10694 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' 10695 tmp_addflag=' $pic_flag' 10696 ;; 10697 pgf77* | pgf90* | pgf95* | pgfortran*) 10698 # Portland Group f77 and f90 compilers 10699 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' 10700 tmp_addflag=' $pic_flag -Mnomain' ;; 10701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10702 tmp_addflag=' -i_dynamic' ;; 10703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10704 tmp_addflag=' -i_dynamic -nofor_main' ;; 10705 ifc* | ifort*) # Intel Fortran compiler 10706 tmp_addflag=' -nofor_main' ;; 10707 lf95*) # Lahey Fortran 8.1 10708 whole_archive_flag_spec= 10709 tmp_sharedflag='--shared' ;; 10710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10711 tmp_sharedflag='-qmkshrobj' 10712 tmp_addflag= ;; 10713 nvcc*) # Cuda Compiler Driver 2.2 10714 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' 10715 compiler_needs_object=yes 10716 ;; 10717 esac 10718 case `$CC -V 2>&1 | sed 5q` in 10719 *Sun\ C*) # Sun C 5.9 10720 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' 10721 compiler_needs_object=yes 10722 tmp_sharedflag='-G' ;; 10723 *Sun\ F*) # Sun Fortran 8.3 10724 tmp_sharedflag='-G' ;; 10725 esac 10726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10727 10728 if test "x$supports_anon_versioning" = xyes; then 10729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10731 echo "local: *; };" >> $output_objdir/$libname.ver~ 10732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10733 fi 10734 10735 case $cc_basename in 10736 xlf* | bgf* | bgxlf* | mpixlf*) 10737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10740 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10741 if test "x$supports_anon_versioning" = xyes; then 10742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10744 echo "local: *; };" >> $output_objdir/$libname.ver~ 10745 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10746 fi 10747 ;; 10748 esac 10749 else 10750 ld_shlibs=no 10751 fi 10752 ;; 10753 10754 netbsd*) 10755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10757 wlarc= 10758 else 10759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10760 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10761 fi 10762 ;; 10763 10764 solaris*) 10765 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10766 ld_shlibs=no 10767 cat <<_LT_EOF 1>&2 10768 10769*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10770*** create shared libraries on Solaris systems. Therefore, libtool 10771*** is disabling shared libraries support. We urge you to upgrade GNU 10772*** binutils to release 2.9.1 or newer. Another option is to modify 10773*** your PATH or compiler configuration so that the native linker is 10774*** used, and then restart. 10775 10776_LT_EOF 10777 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10779 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10780 else 10781 ld_shlibs=no 10782 fi 10783 ;; 10784 10785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10786 case `$LD -v 2>&1` in 10787 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10788 ld_shlibs=no 10789 cat <<_LT_EOF 1>&2 10790 10791*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10792*** reliably create shared libraries on SCO systems. Therefore, libtool 10793*** is disabling shared libraries support. We urge you to upgrade GNU 10794*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10795*** your PATH or compiler configuration so that the native linker is 10796*** used, and then restart. 10797 10798_LT_EOF 10799 ;; 10800 *) 10801 # For security reasons, it is highly recommended that you always 10802 # use absolute paths for naming shared libraries, and exclude the 10803 # DT_RUNPATH tag from executables and libraries. But doing so 10804 # requires that you compile everything twice, which is a pain. 10805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10809 else 10810 ld_shlibs=no 10811 fi 10812 ;; 10813 esac 10814 ;; 10815 10816 sunos4*) 10817 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10818 wlarc= 10819 hardcode_direct=yes 10820 hardcode_shlibpath_var=no 10821 ;; 10822 10823 *) 10824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10827 else 10828 ld_shlibs=no 10829 fi 10830 ;; 10831 esac 10832 10833 if test "$ld_shlibs" = no; then 10834 runpath_var= 10835 hardcode_libdir_flag_spec= 10836 export_dynamic_flag_spec= 10837 whole_archive_flag_spec= 10838 fi 10839 else 10840 # PORTME fill in a description of your system's linker (not GNU ld) 10841 case $host_os in 10842 aix3*) 10843 allow_undefined_flag=unsupported 10844 always_export_symbols=yes 10845 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' 10846 # Note: this linker hardcodes the directories in LIBPATH if there 10847 # are no directories specified by -L. 10848 hardcode_minus_L=yes 10849 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10850 # Neither direct hardcoding nor static linking is supported with a 10851 # broken collect2. 10852 hardcode_direct=unsupported 10853 fi 10854 ;; 10855 10856 aix[4-9]*) 10857 if test "$host_cpu" = ia64; then 10858 # On IA64, the linker does run time linking by default, so we don't 10859 # have to do anything special. 10860 aix_use_runtimelinking=no 10861 exp_sym_flag='-Bexport' 10862 no_entry_flag="" 10863 else 10864 # If we're using GNU nm, then we don't want the "-C" option. 10865 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10866 # Also, AIX nm treats weak defined symbols like other global 10867 # defined symbols, whereas GNU nm marks them as "W". 10868 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10869 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10870 else 10871 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10872 fi 10873 aix_use_runtimelinking=no 10874 10875 # Test if we are trying to use run time linking or normal 10876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10877 # need to do runtime linking. 10878 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10879 for ld_flag in $LDFLAGS; do 10880 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10881 aix_use_runtimelinking=yes 10882 break 10883 fi 10884 done 10885 ;; 10886 esac 10887 10888 exp_sym_flag='-bexport' 10889 no_entry_flag='-bnoentry' 10890 fi 10891 10892 # When large executables or shared objects are built, AIX ld can 10893 # have problems creating the table of contents. If linking a library 10894 # or program results in "error TOC overflow" add -mminimal-toc to 10895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10897 10898 archive_cmds='' 10899 hardcode_direct=yes 10900 hardcode_direct_absolute=yes 10901 hardcode_libdir_separator=':' 10902 link_all_deplibs=yes 10903 file_list_spec='${wl}-f,' 10904 10905 if test "$GCC" = yes; then 10906 case $host_os in aix4.[012]|aix4.[012].*) 10907 # We only want to do this on AIX 4.2 and lower, the check 10908 # below for broken collect2 doesn't work under 4.3+ 10909 collect2name=`${CC} -print-prog-name=collect2` 10910 if test -f "$collect2name" && 10911 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10912 then 10913 # We have reworked collect2 10914 : 10915 else 10916 # We have old collect2 10917 hardcode_direct=unsupported 10918 # It fails to find uninstalled libraries when the uninstalled 10919 # path is not listed in the libpath. Setting hardcode_minus_L 10920 # to unsupported forces relinking 10921 hardcode_minus_L=yes 10922 hardcode_libdir_flag_spec='-L$libdir' 10923 hardcode_libdir_separator= 10924 fi 10925 ;; 10926 esac 10927 shared_flag='-shared' 10928 if test "$aix_use_runtimelinking" = yes; then 10929 shared_flag="$shared_flag "'${wl}-G' 10930 fi 10931 else 10932 # not using gcc 10933 if test "$host_cpu" = ia64; then 10934 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10935 # chokes on -Wl,-G. The following line is correct: 10936 shared_flag='-G' 10937 else 10938 if test "$aix_use_runtimelinking" = yes; then 10939 shared_flag='${wl}-G' 10940 else 10941 shared_flag='${wl}-bM:SRE' 10942 fi 10943 fi 10944 fi 10945 10946 export_dynamic_flag_spec='${wl}-bexpall' 10947 # It seems that -bexpall does not export symbols beginning with 10948 # underscore (_), so it is better to generate a list of symbols to export. 10949 always_export_symbols=yes 10950 if test "$aix_use_runtimelinking" = yes; then 10951 # Warning - without using the other runtime loading flags (-brtl), 10952 # -berok will link without error, but may produce a broken library. 10953 allow_undefined_flag='-berok' 10954 # Determine the default libpath from the value encoded in an 10955 # empty executable. 10956 if test "${lt_cv_aix_libpath+set}" = set; then 10957 aix_libpath=$lt_cv_aix_libpath 10958else 10959 if ${lt_cv_aix_libpath_+:} false; then : 10960 $as_echo_n "(cached) " >&6 10961else 10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10963/* end confdefs.h. */ 10964 10965int 10966main () 10967{ 10968 10969 ; 10970 return 0; 10971} 10972_ACEOF 10973if ac_fn_c_try_link "$LINENO"; then : 10974 10975 lt_aix_libpath_sed=' 10976 /Import File Strings/,/^$/ { 10977 /^0/ { 10978 s/^0 *\([^ ]*\) *$/\1/ 10979 p 10980 } 10981 }' 10982 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10983 # Check for a 64-bit object if we didn't find anything. 10984 if test -z "$lt_cv_aix_libpath_"; then 10985 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10986 fi 10987fi 10988rm -f core conftest.err conftest.$ac_objext \ 10989 conftest$ac_exeext conftest.$ac_ext 10990 if test -z "$lt_cv_aix_libpath_"; then 10991 lt_cv_aix_libpath_="/usr/lib:/lib" 10992 fi 10993 10994fi 10995 10996 aix_libpath=$lt_cv_aix_libpath_ 10997fi 10998 10999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11000 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11001 else 11002 if test "$host_cpu" = ia64; then 11003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11004 allow_undefined_flag="-z nodefs" 11005 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" 11006 else 11007 # Determine the default libpath from the value encoded in an 11008 # empty executable. 11009 if test "${lt_cv_aix_libpath+set}" = set; then 11010 aix_libpath=$lt_cv_aix_libpath 11011else 11012 if ${lt_cv_aix_libpath_+:} false; then : 11013 $as_echo_n "(cached) " >&6 11014else 11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016/* end confdefs.h. */ 11017 11018int 11019main () 11020{ 11021 11022 ; 11023 return 0; 11024} 11025_ACEOF 11026if ac_fn_c_try_link "$LINENO"; then : 11027 11028 lt_aix_libpath_sed=' 11029 /Import File Strings/,/^$/ { 11030 /^0/ { 11031 s/^0 *\([^ ]*\) *$/\1/ 11032 p 11033 } 11034 }' 11035 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11036 # Check for a 64-bit object if we didn't find anything. 11037 if test -z "$lt_cv_aix_libpath_"; then 11038 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11039 fi 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043 if test -z "$lt_cv_aix_libpath_"; then 11044 lt_cv_aix_libpath_="/usr/lib:/lib" 11045 fi 11046 11047fi 11048 11049 aix_libpath=$lt_cv_aix_libpath_ 11050fi 11051 11052 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11053 # Warning - without using the other run time loading flags, 11054 # -berok will link without error, but may produce a broken library. 11055 no_undefined_flag=' ${wl}-bernotok' 11056 allow_undefined_flag=' ${wl}-berok' 11057 if test "$with_gnu_ld" = yes; then 11058 # We only use this code for GNU lds that support --whole-archive. 11059 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11060 else 11061 # Exported symbols can be pulled into shared objects from archives 11062 whole_archive_flag_spec='$convenience' 11063 fi 11064 archive_cmds_need_lc=yes 11065 # This is similar to how AIX traditionally builds its shared libraries. 11066 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11067 fi 11068 fi 11069 ;; 11070 11071 amigaos*) 11072 case $host_cpu in 11073 powerpc) 11074 # see comment about AmigaOS4 .so support 11075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11076 archive_expsym_cmds='' 11077 ;; 11078 m68k) 11079 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)' 11080 hardcode_libdir_flag_spec='-L$libdir' 11081 hardcode_minus_L=yes 11082 ;; 11083 esac 11084 ;; 11085 11086 bsdi[45]*) 11087 export_dynamic_flag_spec=-rdynamic 11088 ;; 11089 11090 cygwin* | mingw* | pw32* | cegcc*) 11091 # When not using gcc, we currently assume that we are using 11092 # Microsoft Visual C++. 11093 # hardcode_libdir_flag_spec is actually meaningless, as there is 11094 # no search path for DLLs. 11095 case $cc_basename in 11096 cl*) 11097 # Native MSVC 11098 hardcode_libdir_flag_spec=' ' 11099 allow_undefined_flag=unsupported 11100 always_export_symbols=yes 11101 file_list_spec='@' 11102 # Tell ltmain to make .lib files, not .a files. 11103 libext=lib 11104 # Tell ltmain to make .dll files, not .so files. 11105 shrext_cmds=".dll" 11106 # FIXME: Setting linknames here is a bad hack. 11107 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11108 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11109 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11110 else 11111 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11112 fi~ 11113 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11114 linknames=' 11115 # The linker will not automatically build a static lib if we build a DLL. 11116 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11117 enable_shared_with_static_runtimes=yes 11118 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11120 # Don't use ranlib 11121 old_postinstall_cmds='chmod 644 $oldlib' 11122 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11123 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11124 case $lt_outputfile in 11125 *.exe|*.EXE) ;; 11126 *) 11127 lt_outputfile="$lt_outputfile.exe" 11128 lt_tool_outputfile="$lt_tool_outputfile.exe" 11129 ;; 11130 esac~ 11131 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11132 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11133 $RM "$lt_outputfile.manifest"; 11134 fi' 11135 ;; 11136 *) 11137 # Assume MSVC wrapper 11138 hardcode_libdir_flag_spec=' ' 11139 allow_undefined_flag=unsupported 11140 # Tell ltmain to make .lib files, not .a files. 11141 libext=lib 11142 # Tell ltmain to make .dll files, not .so files. 11143 shrext_cmds=".dll" 11144 # FIXME: Setting linknames here is a bad hack. 11145 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11146 # The linker will automatically build a .lib file if we build a DLL. 11147 old_archive_from_new_cmds='true' 11148 # FIXME: Should let the user specify the lib program. 11149 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11150 enable_shared_with_static_runtimes=yes 11151 ;; 11152 esac 11153 ;; 11154 11155 darwin* | rhapsody*) 11156 11157 11158 archive_cmds_need_lc=no 11159 hardcode_direct=no 11160 hardcode_automatic=yes 11161 hardcode_shlibpath_var=unsupported 11162 if test "$lt_cv_ld_force_load" = "yes"; then 11163 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\"`' 11164 11165 else 11166 whole_archive_flag_spec='' 11167 fi 11168 link_all_deplibs=yes 11169 allow_undefined_flag="$_lt_dar_allow_undefined" 11170 case $cc_basename in 11171 ifort*) _lt_dar_can_shared=yes ;; 11172 *) _lt_dar_can_shared=$GCC ;; 11173 esac 11174 if test "$_lt_dar_can_shared" = "yes"; then 11175 output_verbose_link_cmd=func_echo_all 11176 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11177 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11178 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}" 11179 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}" 11180 11181 else 11182 ld_shlibs=no 11183 fi 11184 11185 ;; 11186 11187 dgux*) 11188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11189 hardcode_libdir_flag_spec='-L$libdir' 11190 hardcode_shlibpath_var=no 11191 ;; 11192 11193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11194 # support. Future versions do this automatically, but an explicit c++rt0.o 11195 # does not break anything, and helps significantly (at the cost of a little 11196 # extra space). 11197 freebsd2.2*) 11198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11199 hardcode_libdir_flag_spec='-R$libdir' 11200 hardcode_direct=yes 11201 hardcode_shlibpath_var=no 11202 ;; 11203 11204 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11205 freebsd2.*) 11206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11207 hardcode_direct=yes 11208 hardcode_minus_L=yes 11209 hardcode_shlibpath_var=no 11210 ;; 11211 11212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11213 freebsd* | dragonfly*) 11214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11215 hardcode_libdir_flag_spec='-R$libdir' 11216 hardcode_direct=yes 11217 hardcode_shlibpath_var=no 11218 ;; 11219 11220 hpux9*) 11221 if test "$GCC" = yes; then 11222 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11223 else 11224 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11225 fi 11226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11227 hardcode_libdir_separator=: 11228 hardcode_direct=yes 11229 11230 # hardcode_minus_L: Not really in the search PATH, 11231 # but as the default location of the library. 11232 hardcode_minus_L=yes 11233 export_dynamic_flag_spec='${wl}-E' 11234 ;; 11235 11236 hpux10*) 11237 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11238 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11239 else 11240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11241 fi 11242 if test "$with_gnu_ld" = no; then 11243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11244 hardcode_libdir_separator=: 11245 hardcode_direct=yes 11246 hardcode_direct_absolute=yes 11247 export_dynamic_flag_spec='${wl}-E' 11248 # hardcode_minus_L: Not really in the search PATH, 11249 # but as the default location of the library. 11250 hardcode_minus_L=yes 11251 fi 11252 ;; 11253 11254 hpux11*) 11255 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11256 case $host_cpu in 11257 hppa*64*) 11258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11259 ;; 11260 ia64*) 11261 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11262 ;; 11263 *) 11264 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11265 ;; 11266 esac 11267 else 11268 case $host_cpu in 11269 hppa*64*) 11270 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11271 ;; 11272 ia64*) 11273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11274 ;; 11275 *) 11276 11277 # Older versions of the 11.00 compiler do not understand -b yet 11278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11280$as_echo_n "checking if $CC understands -b... " >&6; } 11281if ${lt_cv_prog_compiler__b+:} false; then : 11282 $as_echo_n "(cached) " >&6 11283else 11284 lt_cv_prog_compiler__b=no 11285 save_LDFLAGS="$LDFLAGS" 11286 LDFLAGS="$LDFLAGS -b" 11287 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11289 # The linker can only warn and ignore the option if not recognized 11290 # So say no if there are warnings 11291 if test -s conftest.err; then 11292 # Append any errors to the config.log. 11293 cat conftest.err 1>&5 11294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11296 if diff conftest.exp conftest.er2 >/dev/null; then 11297 lt_cv_prog_compiler__b=yes 11298 fi 11299 else 11300 lt_cv_prog_compiler__b=yes 11301 fi 11302 fi 11303 $RM -r conftest* 11304 LDFLAGS="$save_LDFLAGS" 11305 11306fi 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11308$as_echo "$lt_cv_prog_compiler__b" >&6; } 11309 11310if test x"$lt_cv_prog_compiler__b" = xyes; then 11311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11312else 11313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11314fi 11315 11316 ;; 11317 esac 11318 fi 11319 if test "$with_gnu_ld" = no; then 11320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11321 hardcode_libdir_separator=: 11322 11323 case $host_cpu in 11324 hppa*64*|ia64*) 11325 hardcode_direct=no 11326 hardcode_shlibpath_var=no 11327 ;; 11328 *) 11329 hardcode_direct=yes 11330 hardcode_direct_absolute=yes 11331 export_dynamic_flag_spec='${wl}-E' 11332 11333 # hardcode_minus_L: Not really in the search PATH, 11334 # but as the default location of the library. 11335 hardcode_minus_L=yes 11336 ;; 11337 esac 11338 fi 11339 ;; 11340 11341 irix5* | irix6* | nonstopux*) 11342 if test "$GCC" = yes; then 11343 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' 11344 # Try to use the -exported_symbol ld option, if it does not 11345 # work, assume that -exports_file does not work either and 11346 # implicitly export all symbols. 11347 # This should be the same for all languages, so no per-tag cache variable. 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11349$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11350if ${lt_cv_irix_exported_symbol+:} false; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 save_LDFLAGS="$LDFLAGS" 11354 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11356/* end confdefs.h. */ 11357int foo (void) { return 0; } 11358_ACEOF 11359if ac_fn_c_try_link "$LINENO"; then : 11360 lt_cv_irix_exported_symbol=yes 11361else 11362 lt_cv_irix_exported_symbol=no 11363fi 11364rm -f core conftest.err conftest.$ac_objext \ 11365 conftest$ac_exeext conftest.$ac_ext 11366 LDFLAGS="$save_LDFLAGS" 11367fi 11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11369$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11370 if test "$lt_cv_irix_exported_symbol" = yes; then 11371 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' 11372 fi 11373 else 11374 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' 11375 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' 11376 fi 11377 archive_cmds_need_lc='no' 11378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11379 hardcode_libdir_separator=: 11380 inherit_rpath=yes 11381 link_all_deplibs=yes 11382 ;; 11383 11384 netbsd*) 11385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11387 else 11388 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11389 fi 11390 hardcode_libdir_flag_spec='-R$libdir' 11391 hardcode_direct=yes 11392 hardcode_shlibpath_var=no 11393 ;; 11394 11395 newsos6) 11396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11397 hardcode_direct=yes 11398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11399 hardcode_libdir_separator=: 11400 hardcode_shlibpath_var=no 11401 ;; 11402 11403 *nto* | *qnx*) 11404 ;; 11405 11406 openbsd*) 11407 if test -f /usr/libexec/ld.so; then 11408 hardcode_direct=yes 11409 hardcode_shlibpath_var=no 11410 hardcode_direct_absolute=yes 11411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11413 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11415 export_dynamic_flag_spec='${wl}-E' 11416 else 11417 case $host_os in 11418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11420 hardcode_libdir_flag_spec='-R$libdir' 11421 ;; 11422 *) 11423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11425 ;; 11426 esac 11427 fi 11428 else 11429 ld_shlibs=no 11430 fi 11431 ;; 11432 11433 os2*) 11434 hardcode_libdir_flag_spec='-L$libdir' 11435 hardcode_minus_L=yes 11436 allow_undefined_flag=unsupported 11437 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11438 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11439 ;; 11440 11441 osf3*) 11442 if test "$GCC" = yes; then 11443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11444 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' 11445 else 11446 allow_undefined_flag=' -expect_unresolved \*' 11447 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' 11448 fi 11449 archive_cmds_need_lc='no' 11450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11451 hardcode_libdir_separator=: 11452 ;; 11453 11454 osf4* | osf5*) # as osf3* with the addition of -msym flag 11455 if test "$GCC" = yes; then 11456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11457 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' 11458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11459 else 11460 allow_undefined_flag=' -expect_unresolved \*' 11461 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' 11462 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~ 11463 $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' 11464 11465 # Both c and cxx compiler support -rpath directly 11466 hardcode_libdir_flag_spec='-rpath $libdir' 11467 fi 11468 archive_cmds_need_lc='no' 11469 hardcode_libdir_separator=: 11470 ;; 11471 11472 solaris*) 11473 no_undefined_flag=' -z defs' 11474 if test "$GCC" = yes; then 11475 wlarc='${wl}' 11476 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11478 $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' 11479 else 11480 case `$CC -V 2>&1` in 11481 *"Compilers 5.0"*) 11482 wlarc='' 11483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11486 ;; 11487 *) 11488 wlarc='${wl}' 11489 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11491 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11492 ;; 11493 esac 11494 fi 11495 hardcode_libdir_flag_spec='-R$libdir' 11496 hardcode_shlibpath_var=no 11497 case $host_os in 11498 solaris2.[0-5] | solaris2.[0-5].*) ;; 11499 *) 11500 # The compiler driver will combine and reorder linker options, 11501 # but understands `-z linker_flag'. GCC discards it without `$wl', 11502 # but is careful enough not to reorder. 11503 # Supported since Solaris 2.6 (maybe 2.5.1?) 11504 if test "$GCC" = yes; then 11505 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11506 else 11507 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11508 fi 11509 ;; 11510 esac 11511 link_all_deplibs=yes 11512 ;; 11513 11514 sunos4*) 11515 if test "x$host_vendor" = xsequent; then 11516 # Use $CC to link under sequent, because it throws in some extra .o 11517 # files that make .init and .fini sections work. 11518 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11519 else 11520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11521 fi 11522 hardcode_libdir_flag_spec='-L$libdir' 11523 hardcode_direct=yes 11524 hardcode_minus_L=yes 11525 hardcode_shlibpath_var=no 11526 ;; 11527 11528 sysv4) 11529 case $host_vendor in 11530 sni) 11531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11532 hardcode_direct=yes # is this really true??? 11533 ;; 11534 siemens) 11535 ## LD is ld it makes a PLAMLIB 11536 ## CC just makes a GrossModule. 11537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11538 reload_cmds='$CC -r -o $output$reload_objs' 11539 hardcode_direct=no 11540 ;; 11541 motorola) 11542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11544 ;; 11545 esac 11546 runpath_var='LD_RUN_PATH' 11547 hardcode_shlibpath_var=no 11548 ;; 11549 11550 sysv4.3*) 11551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11552 hardcode_shlibpath_var=no 11553 export_dynamic_flag_spec='-Bexport' 11554 ;; 11555 11556 sysv4*MP*) 11557 if test -d /usr/nec; then 11558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11559 hardcode_shlibpath_var=no 11560 runpath_var=LD_RUN_PATH 11561 hardcode_runpath_var=yes 11562 ld_shlibs=yes 11563 fi 11564 ;; 11565 11566 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11567 no_undefined_flag='${wl}-z,text' 11568 archive_cmds_need_lc=no 11569 hardcode_shlibpath_var=no 11570 runpath_var='LD_RUN_PATH' 11571 11572 if test "$GCC" = yes; then 11573 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11574 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11575 else 11576 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11578 fi 11579 ;; 11580 11581 sysv5* | sco3.2v5* | sco5v6*) 11582 # Note: We can NOT use -z defs as we might desire, because we do not 11583 # link with -lc, and that would cause any symbols used from libc to 11584 # always be unresolved, which means just about no library would 11585 # ever link correctly. If we're not using GNU ld we use -z text 11586 # though, which does catch some bad symbols but isn't as heavy-handed 11587 # as -z defs. 11588 no_undefined_flag='${wl}-z,text' 11589 allow_undefined_flag='${wl}-z,nodefs' 11590 archive_cmds_need_lc=no 11591 hardcode_shlibpath_var=no 11592 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11593 hardcode_libdir_separator=':' 11594 link_all_deplibs=yes 11595 export_dynamic_flag_spec='${wl}-Bexport' 11596 runpath_var='LD_RUN_PATH' 11597 11598 if test "$GCC" = yes; then 11599 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11600 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11601 else 11602 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11603 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11604 fi 11605 ;; 11606 11607 uts4*) 11608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11609 hardcode_libdir_flag_spec='-L$libdir' 11610 hardcode_shlibpath_var=no 11611 ;; 11612 11613 *) 11614 ld_shlibs=no 11615 ;; 11616 esac 11617 11618 if test x$host_vendor = xsni; then 11619 case $host in 11620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11621 export_dynamic_flag_spec='${wl}-Blargedynsym' 11622 ;; 11623 esac 11624 fi 11625 fi 11626 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11628$as_echo "$ld_shlibs" >&6; } 11629test "$ld_shlibs" = no && can_build_shared=no 11630 11631with_gnu_ld=$with_gnu_ld 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647# 11648# Do we need to explicitly link libc? 11649# 11650case "x$archive_cmds_need_lc" in 11651x|xyes) 11652 # Assume -lc should be added 11653 archive_cmds_need_lc=yes 11654 11655 if test "$enable_shared" = yes && test "$GCC" = yes; then 11656 case $archive_cmds in 11657 *'~'*) 11658 # FIXME: we may have to deal with multi-command sequences. 11659 ;; 11660 '$CC '*) 11661 # Test whether the compiler implicitly links with -lc since on some 11662 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11663 # to ld, don't add -lc before -lgcc. 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11665$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11666if ${lt_cv_archive_cmds_need_lc+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 $RM conftest* 11670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11671 11672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11673 (eval $ac_compile) 2>&5 11674 ac_status=$? 11675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11676 test $ac_status = 0; } 2>conftest.err; then 11677 soname=conftest 11678 lib=conftest 11679 libobjs=conftest.$ac_objext 11680 deplibs= 11681 wl=$lt_prog_compiler_wl 11682 pic_flag=$lt_prog_compiler_pic 11683 compiler_flags=-v 11684 linker_flags=-v 11685 verstring= 11686 output_objdir=. 11687 libname=conftest 11688 lt_save_allow_undefined_flag=$allow_undefined_flag 11689 allow_undefined_flag= 11690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11691 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11692 ac_status=$? 11693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11694 test $ac_status = 0; } 11695 then 11696 lt_cv_archive_cmds_need_lc=no 11697 else 11698 lt_cv_archive_cmds_need_lc=yes 11699 fi 11700 allow_undefined_flag=$lt_save_allow_undefined_flag 11701 else 11702 cat conftest.err 1>&5 11703 fi 11704 $RM conftest* 11705 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11708$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11709 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11710 ;; 11711 esac 11712 fi 11713 ;; 11714esac 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11868$as_echo_n "checking dynamic linker characteristics... " >&6; } 11869 11870if test "$GCC" = yes; then 11871 case $host_os in 11872 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11873 *) lt_awk_arg="/^libraries:/" ;; 11874 esac 11875 case $host_os in 11876 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11877 *) lt_sed_strip_eq="s,=/,/,g" ;; 11878 esac 11879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11880 case $lt_search_path_spec in 11881 *\;*) 11882 # if the path contains ";" then we assume it to be the separator 11883 # otherwise default to the standard path separator (i.e. ":") - it is 11884 # assumed that no part of a normal pathname contains ";" but that should 11885 # okay in the real world where ";" in dirpaths is itself problematic. 11886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11887 ;; 11888 *) 11889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11890 ;; 11891 esac 11892 # Ok, now we have the path, separated by spaces, we can step through it 11893 # and add multilib dir if necessary. 11894 lt_tmp_lt_search_path_spec= 11895 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11896 for lt_sys_path in $lt_search_path_spec; do 11897 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11899 else 11900 test -d "$lt_sys_path" && \ 11901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11902 fi 11903 done 11904 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11905BEGIN {RS=" "; FS="/|\n";} { 11906 lt_foo=""; 11907 lt_count=0; 11908 for (lt_i = NF; lt_i > 0; lt_i--) { 11909 if ($lt_i != "" && $lt_i != ".") { 11910 if ($lt_i == "..") { 11911 lt_count++; 11912 } else { 11913 if (lt_count == 0) { 11914 lt_foo="/" $lt_i lt_foo; 11915 } else { 11916 lt_count--; 11917 } 11918 } 11919 } 11920 } 11921 if (lt_foo != "") { lt_freq[lt_foo]++; } 11922 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11923}'` 11924 # AWK program above erroneously prepends '/' to C:/dos/paths 11925 # for these hosts. 11926 case $host_os in 11927 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11928 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11929 esac 11930 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11931else 11932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11933fi 11934library_names_spec= 11935libname_spec='lib$name' 11936soname_spec= 11937shrext_cmds=".so" 11938postinstall_cmds= 11939postuninstall_cmds= 11940finish_cmds= 11941finish_eval= 11942shlibpath_var= 11943shlibpath_overrides_runpath=unknown 11944version_type=none 11945dynamic_linker="$host_os ld.so" 11946sys_lib_dlsearch_path_spec="/lib /usr/lib" 11947need_lib_prefix=unknown 11948hardcode_into_libs=no 11949 11950# when you set need_version to no, make sure it does not cause -set_version 11951# flags to be left without arguments 11952need_version=unknown 11953 11954case $host_os in 11955aix3*) 11956 version_type=linux # correct to gnu/linux during the next big refactor 11957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11958 shlibpath_var=LIBPATH 11959 11960 # AIX 3 has no versioning support, so we append a major version to the name. 11961 soname_spec='${libname}${release}${shared_ext}$major' 11962 ;; 11963 11964aix[4-9]*) 11965 version_type=linux # correct to gnu/linux during the next big refactor 11966 need_lib_prefix=no 11967 need_version=no 11968 hardcode_into_libs=yes 11969 if test "$host_cpu" = ia64; then 11970 # AIX 5 supports IA64 11971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11972 shlibpath_var=LD_LIBRARY_PATH 11973 else 11974 # With GCC up to 2.95.x, collect2 would create an import file 11975 # for dependence libraries. The import file would start with 11976 # the line `#! .'. This would cause the generated library to 11977 # depend on `.', always an invalid library. This was fixed in 11978 # development snapshots of GCC prior to 3.0. 11979 case $host_os in 11980 aix4 | aix4.[01] | aix4.[01].*) 11981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11982 echo ' yes ' 11983 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11984 : 11985 else 11986 can_build_shared=no 11987 fi 11988 ;; 11989 esac 11990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11991 # soname into executable. Probably we can add versioning support to 11992 # collect2, so additional links can be useful in future. 11993 if test "$aix_use_runtimelinking" = yes; then 11994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11995 # instead of lib<name>.a to let people know that these are not 11996 # typical AIX shared libraries. 11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11998 else 11999 # We preserve .a as extension for shared libraries through AIX4.2 12000 # and later when we are not doing run time linking. 12001 library_names_spec='${libname}${release}.a $libname.a' 12002 soname_spec='${libname}${release}${shared_ext}$major' 12003 fi 12004 shlibpath_var=LIBPATH 12005 fi 12006 ;; 12007 12008amigaos*) 12009 case $host_cpu in 12010 powerpc) 12011 # Since July 2007 AmigaOS4 officially supports .so libraries. 12012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12014 ;; 12015 m68k) 12016 library_names_spec='$libname.ixlibrary $libname.a' 12017 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12018 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12019 ;; 12020 esac 12021 ;; 12022 12023beos*) 12024 library_names_spec='${libname}${shared_ext}' 12025 dynamic_linker="$host_os ld.so" 12026 shlibpath_var=LIBRARY_PATH 12027 ;; 12028 12029bsdi[45]*) 12030 version_type=linux # correct to gnu/linux during the next big refactor 12031 need_version=no 12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12033 soname_spec='${libname}${release}${shared_ext}$major' 12034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12035 shlibpath_var=LD_LIBRARY_PATH 12036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12038 # the default ld.so.conf also contains /usr/contrib/lib and 12039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12040 # libtool to hard-code these into programs 12041 ;; 12042 12043cygwin* | mingw* | pw32* | cegcc*) 12044 version_type=windows 12045 shrext_cmds=".dll" 12046 need_version=no 12047 need_lib_prefix=no 12048 12049 case $GCC,$cc_basename in 12050 yes,*) 12051 # gcc 12052 library_names_spec='$libname.dll.a' 12053 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12054 postinstall_cmds='base_file=`basename \${file}`~ 12055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12056 dldir=$destdir/`dirname \$dlpath`~ 12057 test -d \$dldir || mkdir -p \$dldir~ 12058 $install_prog $dir/$dlname \$dldir/$dlname~ 12059 chmod a+x \$dldir/$dlname~ 12060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12062 fi' 12063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12064 dlpath=$dir/\$dldll~ 12065 $RM \$dlpath' 12066 shlibpath_overrides_runpath=yes 12067 12068 case $host_os in 12069 cygwin*) 12070 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12072 12073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12074 ;; 12075 mingw* | cegcc*) 12076 # MinGW DLLs use traditional 'lib' prefix 12077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12078 ;; 12079 pw32*) 12080 # pw32 DLLs use 'pw' prefix rather than 'lib' 12081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12082 ;; 12083 esac 12084 dynamic_linker='Win32 ld.exe' 12085 ;; 12086 12087 *,cl*) 12088 # Native MSVC 12089 libname_spec='$name' 12090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12091 library_names_spec='${libname}.dll.lib' 12092 12093 case $build_os in 12094 mingw*) 12095 sys_lib_search_path_spec= 12096 lt_save_ifs=$IFS 12097 IFS=';' 12098 for lt_path in $LIB 12099 do 12100 IFS=$lt_save_ifs 12101 # Let DOS variable expansion print the short 8.3 style file name. 12102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12104 done 12105 IFS=$lt_save_ifs 12106 # Convert to MSYS style. 12107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12108 ;; 12109 cygwin*) 12110 # Convert to unix form, then to dos form, then back to unix form 12111 # but this time dos style (no spaces!) so that the unix form looks 12112 # like /cygdrive/c/PROGRA~1:/cygdr... 12113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12116 ;; 12117 *) 12118 sys_lib_search_path_spec="$LIB" 12119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12120 # It is most probably a Windows format PATH. 12121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12122 else 12123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12124 fi 12125 # FIXME: find the short name or the path components, as spaces are 12126 # common. (e.g. "Program Files" -> "PROGRA~1") 12127 ;; 12128 esac 12129 12130 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12131 postinstall_cmds='base_file=`basename \${file}`~ 12132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12133 dldir=$destdir/`dirname \$dlpath`~ 12134 test -d \$dldir || mkdir -p \$dldir~ 12135 $install_prog $dir/$dlname \$dldir/$dlname' 12136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12137 dlpath=$dir/\$dldll~ 12138 $RM \$dlpath' 12139 shlibpath_overrides_runpath=yes 12140 dynamic_linker='Win32 link.exe' 12141 ;; 12142 12143 *) 12144 # Assume MSVC wrapper 12145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12146 dynamic_linker='Win32 ld.exe' 12147 ;; 12148 esac 12149 # FIXME: first we should search . and the directory the executable is in 12150 shlibpath_var=PATH 12151 ;; 12152 12153darwin* | rhapsody*) 12154 dynamic_linker="$host_os dyld" 12155 version_type=darwin 12156 need_lib_prefix=no 12157 need_version=no 12158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12159 soname_spec='${libname}${release}${major}$shared_ext' 12160 shlibpath_overrides_runpath=yes 12161 shlibpath_var=DYLD_LIBRARY_PATH 12162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12163 12164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12166 ;; 12167 12168dgux*) 12169 version_type=linux # correct to gnu/linux during the next big refactor 12170 need_lib_prefix=no 12171 need_version=no 12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12173 soname_spec='${libname}${release}${shared_ext}$major' 12174 shlibpath_var=LD_LIBRARY_PATH 12175 ;; 12176 12177freebsd* | dragonfly*) 12178 # DragonFly does not have aout. When/if they implement a new 12179 # versioning mechanism, adjust this. 12180 if test -x /usr/bin/objformat; then 12181 objformat=`/usr/bin/objformat` 12182 else 12183 case $host_os in 12184 freebsd[23].*) objformat=aout ;; 12185 *) objformat=elf ;; 12186 esac 12187 fi 12188 version_type=freebsd-$objformat 12189 case $version_type in 12190 freebsd-elf*) 12191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12192 need_version=no 12193 need_lib_prefix=no 12194 ;; 12195 freebsd-*) 12196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12197 need_version=yes 12198 ;; 12199 esac 12200 shlibpath_var=LD_LIBRARY_PATH 12201 case $host_os in 12202 freebsd2.*) 12203 shlibpath_overrides_runpath=yes 12204 ;; 12205 freebsd3.[01]* | freebsdelf3.[01]*) 12206 shlibpath_overrides_runpath=yes 12207 hardcode_into_libs=yes 12208 ;; 12209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12211 shlibpath_overrides_runpath=no 12212 hardcode_into_libs=yes 12213 ;; 12214 *) # from 4.6 on, and DragonFly 12215 shlibpath_overrides_runpath=yes 12216 hardcode_into_libs=yes 12217 ;; 12218 esac 12219 ;; 12220 12221gnu*) 12222 version_type=linux # correct to gnu/linux during the next big refactor 12223 need_lib_prefix=no 12224 need_version=no 12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12226 soname_spec='${libname}${release}${shared_ext}$major' 12227 shlibpath_var=LD_LIBRARY_PATH 12228 shlibpath_overrides_runpath=no 12229 hardcode_into_libs=yes 12230 ;; 12231 12232haiku*) 12233 version_type=linux # correct to gnu/linux during the next big refactor 12234 need_lib_prefix=no 12235 need_version=no 12236 dynamic_linker="$host_os runtime_loader" 12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12238 soname_spec='${libname}${release}${shared_ext}$major' 12239 shlibpath_var=LIBRARY_PATH 12240 shlibpath_overrides_runpath=yes 12241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12242 hardcode_into_libs=yes 12243 ;; 12244 12245hpux9* | hpux10* | hpux11*) 12246 # Give a soname corresponding to the major version so that dld.sl refuses to 12247 # link against other versions. 12248 version_type=sunos 12249 need_lib_prefix=no 12250 need_version=no 12251 case $host_cpu in 12252 ia64*) 12253 shrext_cmds='.so' 12254 hardcode_into_libs=yes 12255 dynamic_linker="$host_os dld.so" 12256 shlibpath_var=LD_LIBRARY_PATH 12257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12259 soname_spec='${libname}${release}${shared_ext}$major' 12260 if test "X$HPUX_IA64_MODE" = X32; then 12261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12262 else 12263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12264 fi 12265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12266 ;; 12267 hppa*64*) 12268 shrext_cmds='.sl' 12269 hardcode_into_libs=yes 12270 dynamic_linker="$host_os dld.sl" 12271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12274 soname_spec='${libname}${release}${shared_ext}$major' 12275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12277 ;; 12278 *) 12279 shrext_cmds='.sl' 12280 dynamic_linker="$host_os dld.sl" 12281 shlibpath_var=SHLIB_PATH 12282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12284 soname_spec='${libname}${release}${shared_ext}$major' 12285 ;; 12286 esac 12287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12288 postinstall_cmds='chmod 555 $lib' 12289 # or fails outright, so override atomically: 12290 install_override_mode=555 12291 ;; 12292 12293interix[3-9]*) 12294 version_type=linux # correct to gnu/linux during the next big refactor 12295 need_lib_prefix=no 12296 need_version=no 12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12298 soname_spec='${libname}${release}${shared_ext}$major' 12299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12300 shlibpath_var=LD_LIBRARY_PATH 12301 shlibpath_overrides_runpath=no 12302 hardcode_into_libs=yes 12303 ;; 12304 12305irix5* | irix6* | nonstopux*) 12306 case $host_os in 12307 nonstopux*) version_type=nonstopux ;; 12308 *) 12309 if test "$lt_cv_prog_gnu_ld" = yes; then 12310 version_type=linux # correct to gnu/linux during the next big refactor 12311 else 12312 version_type=irix 12313 fi ;; 12314 esac 12315 need_lib_prefix=no 12316 need_version=no 12317 soname_spec='${libname}${release}${shared_ext}$major' 12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12319 case $host_os in 12320 irix5* | nonstopux*) 12321 libsuff= shlibsuff= 12322 ;; 12323 *) 12324 case $LD in # libtool.m4 will add one of these switches to LD 12325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12326 libsuff= shlibsuff= libmagic=32-bit;; 12327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12328 libsuff=32 shlibsuff=N32 libmagic=N32;; 12329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12330 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12331 *) libsuff= shlibsuff= libmagic=never-match;; 12332 esac 12333 ;; 12334 esac 12335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12336 shlibpath_overrides_runpath=no 12337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12339 hardcode_into_libs=yes 12340 ;; 12341 12342# No shared lib support for Linux oldld, aout, or coff. 12343linux*oldld* | linux*aout* | linux*coff*) 12344 dynamic_linker=no 12345 ;; 12346 12347# This must be glibc/ELF. 12348linux* | k*bsd*-gnu | kopensolaris*-gnu) 12349 version_type=linux # correct to gnu/linux during the next big refactor 12350 need_lib_prefix=no 12351 need_version=no 12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12353 soname_spec='${libname}${release}${shared_ext}$major' 12354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12355 shlibpath_var=LD_LIBRARY_PATH 12356 shlibpath_overrides_runpath=no 12357 12358 # Some binutils ld are patched to set DT_RUNPATH 12359 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 lt_cv_shlibpath_overrides_runpath=no 12363 save_LDFLAGS=$LDFLAGS 12364 save_libdir=$libdir 12365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12368/* end confdefs.h. */ 12369 12370int 12371main () 12372{ 12373 12374 ; 12375 return 0; 12376} 12377_ACEOF 12378if ac_fn_c_try_link "$LINENO"; then : 12379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12380 lt_cv_shlibpath_overrides_runpath=yes 12381fi 12382fi 12383rm -f core conftest.err conftest.$ac_objext \ 12384 conftest$ac_exeext conftest.$ac_ext 12385 LDFLAGS=$save_LDFLAGS 12386 libdir=$save_libdir 12387 12388fi 12389 12390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12391 12392 # This implies no fast_install, which is unacceptable. 12393 # Some rework will be needed to allow for fast_install 12394 # before this can be enabled. 12395 hardcode_into_libs=yes 12396 12397 # Add ABI-specific directories to the system library path. 12398 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12399 12400 # Append ld.so.conf contents to the search path 12401 if test -f /etc/ld.so.conf; then 12402 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' ' '` 12403 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12404 12405 fi 12406 12407 # We used to test for /lib/ld.so.1 and disable shared libraries on 12408 # powerpc, because MkLinux only supported shared libraries with the 12409 # GNU dynamic linker. Since this was broken with cross compilers, 12410 # most powerpc-linux boxes support dynamic linking these days and 12411 # people can always --disable-shared, the test was removed, and we 12412 # assume the GNU/Linux dynamic linker is in use. 12413 dynamic_linker='GNU/Linux ld.so' 12414 ;; 12415 12416netbsd*) 12417 version_type=sunos 12418 need_lib_prefix=no 12419 need_version=no 12420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12423 dynamic_linker='NetBSD (a.out) ld.so' 12424 else 12425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12426 soname_spec='${libname}${release}${shared_ext}$major' 12427 dynamic_linker='NetBSD ld.elf_so' 12428 fi 12429 shlibpath_var=LD_LIBRARY_PATH 12430 shlibpath_overrides_runpath=yes 12431 hardcode_into_libs=yes 12432 ;; 12433 12434newsos6) 12435 version_type=linux # correct to gnu/linux during the next big refactor 12436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12437 shlibpath_var=LD_LIBRARY_PATH 12438 shlibpath_overrides_runpath=yes 12439 ;; 12440 12441*nto* | *qnx*) 12442 version_type=qnx 12443 need_lib_prefix=no 12444 need_version=no 12445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12446 soname_spec='${libname}${release}${shared_ext}$major' 12447 shlibpath_var=LD_LIBRARY_PATH 12448 shlibpath_overrides_runpath=no 12449 hardcode_into_libs=yes 12450 dynamic_linker='ldqnx.so' 12451 ;; 12452 12453openbsd*) 12454 version_type=sunos 12455 sys_lib_dlsearch_path_spec="/usr/lib" 12456 need_lib_prefix=no 12457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12458 case $host_os in 12459 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12460 *) need_version=no ;; 12461 esac 12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12466 case $host_os in 12467 openbsd2.[89] | openbsd2.[89].*) 12468 shlibpath_overrides_runpath=no 12469 ;; 12470 *) 12471 shlibpath_overrides_runpath=yes 12472 ;; 12473 esac 12474 else 12475 shlibpath_overrides_runpath=yes 12476 fi 12477 ;; 12478 12479os2*) 12480 libname_spec='$name' 12481 shrext_cmds=".dll" 12482 need_lib_prefix=no 12483 library_names_spec='$libname${shared_ext} $libname.a' 12484 dynamic_linker='OS/2 ld.exe' 12485 shlibpath_var=LIBPATH 12486 ;; 12487 12488osf3* | osf4* | osf5*) 12489 version_type=osf 12490 need_lib_prefix=no 12491 need_version=no 12492 soname_spec='${libname}${release}${shared_ext}$major' 12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12494 shlibpath_var=LD_LIBRARY_PATH 12495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12497 ;; 12498 12499rdos*) 12500 dynamic_linker=no 12501 ;; 12502 12503solaris*) 12504 version_type=linux # correct to gnu/linux during the next big refactor 12505 need_lib_prefix=no 12506 need_version=no 12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12508 soname_spec='${libname}${release}${shared_ext}$major' 12509 shlibpath_var=LD_LIBRARY_PATH 12510 shlibpath_overrides_runpath=yes 12511 hardcode_into_libs=yes 12512 # ldd complains unless libraries are executable 12513 postinstall_cmds='chmod +x $lib' 12514 ;; 12515 12516sunos4*) 12517 version_type=sunos 12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12520 shlibpath_var=LD_LIBRARY_PATH 12521 shlibpath_overrides_runpath=yes 12522 if test "$with_gnu_ld" = yes; then 12523 need_lib_prefix=no 12524 fi 12525 need_version=yes 12526 ;; 12527 12528sysv4 | sysv4.3*) 12529 version_type=linux # correct to gnu/linux during the next big refactor 12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12531 soname_spec='${libname}${release}${shared_ext}$major' 12532 shlibpath_var=LD_LIBRARY_PATH 12533 case $host_vendor in 12534 sni) 12535 shlibpath_overrides_runpath=no 12536 need_lib_prefix=no 12537 runpath_var=LD_RUN_PATH 12538 ;; 12539 siemens) 12540 need_lib_prefix=no 12541 ;; 12542 motorola) 12543 need_lib_prefix=no 12544 need_version=no 12545 shlibpath_overrides_runpath=no 12546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12547 ;; 12548 esac 12549 ;; 12550 12551sysv4*MP*) 12552 if test -d /usr/nec ;then 12553 version_type=linux # correct to gnu/linux during the next big refactor 12554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12555 soname_spec='$libname${shared_ext}.$major' 12556 shlibpath_var=LD_LIBRARY_PATH 12557 fi 12558 ;; 12559 12560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12561 version_type=freebsd-elf 12562 need_lib_prefix=no 12563 need_version=no 12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12565 soname_spec='${libname}${release}${shared_ext}$major' 12566 shlibpath_var=LD_LIBRARY_PATH 12567 shlibpath_overrides_runpath=yes 12568 hardcode_into_libs=yes 12569 if test "$with_gnu_ld" = yes; then 12570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12571 else 12572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12573 case $host_os in 12574 sco3.2v5*) 12575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12576 ;; 12577 esac 12578 fi 12579 sys_lib_dlsearch_path_spec='/usr/lib' 12580 ;; 12581 12582tpf*) 12583 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12584 version_type=linux # correct to gnu/linux during the next big refactor 12585 need_lib_prefix=no 12586 need_version=no 12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12588 shlibpath_var=LD_LIBRARY_PATH 12589 shlibpath_overrides_runpath=no 12590 hardcode_into_libs=yes 12591 ;; 12592 12593uts4*) 12594 version_type=linux # correct to gnu/linux during the next big refactor 12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12596 soname_spec='${libname}${release}${shared_ext}$major' 12597 shlibpath_var=LD_LIBRARY_PATH 12598 ;; 12599 12600*) 12601 dynamic_linker=no 12602 ;; 12603esac 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12605$as_echo "$dynamic_linker" >&6; } 12606test "$dynamic_linker" = no && can_build_shared=no 12607 12608variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12609if test "$GCC" = yes; then 12610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12611fi 12612 12613if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12614 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12615fi 12616if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12617 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12618fi 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12712$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12713hardcode_action= 12714if test -n "$hardcode_libdir_flag_spec" || 12715 test -n "$runpath_var" || 12716 test "X$hardcode_automatic" = "Xyes" ; then 12717 12718 # We can hardcode non-existent directories. 12719 if test "$hardcode_direct" != no && 12720 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12721 # have to relink, otherwise we might link with an installed library 12722 # when we should be linking with a yet-to-be-installed one 12723 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12724 test "$hardcode_minus_L" != no; then 12725 # Linking always hardcodes the temporary library directory. 12726 hardcode_action=relink 12727 else 12728 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12729 hardcode_action=immediate 12730 fi 12731else 12732 # We cannot hardcode anything, or else we can only hardcode existing 12733 # directories. 12734 hardcode_action=unsupported 12735fi 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12737$as_echo "$hardcode_action" >&6; } 12738 12739if test "$hardcode_action" = relink || 12740 test "$inherit_rpath" = yes; then 12741 # Fast installation is not supported 12742 enable_fast_install=no 12743elif test "$shlibpath_overrides_runpath" = yes || 12744 test "$enable_shared" = no; then 12745 # Fast installation is not necessary 12746 enable_fast_install=needless 12747fi 12748 12749 12750 12751 12752 12753 12754 if test "x$enable_dlopen" != xyes; then 12755 enable_dlopen=unknown 12756 enable_dlopen_self=unknown 12757 enable_dlopen_self_static=unknown 12758else 12759 lt_cv_dlopen=no 12760 lt_cv_dlopen_libs= 12761 12762 case $host_os in 12763 beos*) 12764 lt_cv_dlopen="load_add_on" 12765 lt_cv_dlopen_libs= 12766 lt_cv_dlopen_self=yes 12767 ;; 12768 12769 mingw* | pw32* | cegcc*) 12770 lt_cv_dlopen="LoadLibrary" 12771 lt_cv_dlopen_libs= 12772 ;; 12773 12774 cygwin*) 12775 lt_cv_dlopen="dlopen" 12776 lt_cv_dlopen_libs= 12777 ;; 12778 12779 darwin*) 12780 # if libdl is installed we need to link against it 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12782$as_echo_n "checking for dlopen in -ldl... " >&6; } 12783if ${ac_cv_lib_dl_dlopen+:} false; then : 12784 $as_echo_n "(cached) " >&6 12785else 12786 ac_check_lib_save_LIBS=$LIBS 12787LIBS="-ldl $LIBS" 12788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12789/* end confdefs.h. */ 12790 12791/* Override any GCC internal prototype to avoid an error. 12792 Use char because int might match the return type of a GCC 12793 builtin and then its argument prototype would still apply. */ 12794#ifdef __cplusplus 12795extern "C" 12796#endif 12797char dlopen (); 12798int 12799main () 12800{ 12801return dlopen (); 12802 ; 12803 return 0; 12804} 12805_ACEOF 12806if ac_fn_c_try_link "$LINENO"; then : 12807 ac_cv_lib_dl_dlopen=yes 12808else 12809 ac_cv_lib_dl_dlopen=no 12810fi 12811rm -f core conftest.err conftest.$ac_objext \ 12812 conftest$ac_exeext conftest.$ac_ext 12813LIBS=$ac_check_lib_save_LIBS 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12816$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12817if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12819else 12820 12821 lt_cv_dlopen="dyld" 12822 lt_cv_dlopen_libs= 12823 lt_cv_dlopen_self=yes 12824 12825fi 12826 12827 ;; 12828 12829 *) 12830 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12831if test "x$ac_cv_func_shl_load" = xyes; then : 12832 lt_cv_dlopen="shl_load" 12833else 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12835$as_echo_n "checking for shl_load in -ldld... " >&6; } 12836if ${ac_cv_lib_dld_shl_load+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 ac_check_lib_save_LIBS=$LIBS 12840LIBS="-ldld $LIBS" 12841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12842/* end confdefs.h. */ 12843 12844/* Override any GCC internal prototype to avoid an error. 12845 Use char because int might match the return type of a GCC 12846 builtin and then its argument prototype would still apply. */ 12847#ifdef __cplusplus 12848extern "C" 12849#endif 12850char shl_load (); 12851int 12852main () 12853{ 12854return shl_load (); 12855 ; 12856 return 0; 12857} 12858_ACEOF 12859if ac_fn_c_try_link "$LINENO"; then : 12860 ac_cv_lib_dld_shl_load=yes 12861else 12862 ac_cv_lib_dld_shl_load=no 12863fi 12864rm -f core conftest.err conftest.$ac_objext \ 12865 conftest$ac_exeext conftest.$ac_ext 12866LIBS=$ac_check_lib_save_LIBS 12867fi 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12869$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12870if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12872else 12873 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12874if test "x$ac_cv_func_dlopen" = xyes; then : 12875 lt_cv_dlopen="dlopen" 12876else 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12878$as_echo_n "checking for dlopen in -ldl... " >&6; } 12879if ${ac_cv_lib_dl_dlopen+:} false; then : 12880 $as_echo_n "(cached) " >&6 12881else 12882 ac_check_lib_save_LIBS=$LIBS 12883LIBS="-ldl $LIBS" 12884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12885/* end confdefs.h. */ 12886 12887/* Override any GCC internal prototype to avoid an error. 12888 Use char because int might match the return type of a GCC 12889 builtin and then its argument prototype would still apply. */ 12890#ifdef __cplusplus 12891extern "C" 12892#endif 12893char dlopen (); 12894int 12895main () 12896{ 12897return dlopen (); 12898 ; 12899 return 0; 12900} 12901_ACEOF 12902if ac_fn_c_try_link "$LINENO"; then : 12903 ac_cv_lib_dl_dlopen=yes 12904else 12905 ac_cv_lib_dl_dlopen=no 12906fi 12907rm -f core conftest.err conftest.$ac_objext \ 12908 conftest$ac_exeext conftest.$ac_ext 12909LIBS=$ac_check_lib_save_LIBS 12910fi 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12912$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12913if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12915else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12917$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12918if ${ac_cv_lib_svld_dlopen+:} false; then : 12919 $as_echo_n "(cached) " >&6 12920else 12921 ac_check_lib_save_LIBS=$LIBS 12922LIBS="-lsvld $LIBS" 12923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924/* end confdefs.h. */ 12925 12926/* Override any GCC internal prototype to avoid an error. 12927 Use char because int might match the return type of a GCC 12928 builtin and then its argument prototype would still apply. */ 12929#ifdef __cplusplus 12930extern "C" 12931#endif 12932char dlopen (); 12933int 12934main () 12935{ 12936return dlopen (); 12937 ; 12938 return 0; 12939} 12940_ACEOF 12941if ac_fn_c_try_link "$LINENO"; then : 12942 ac_cv_lib_svld_dlopen=yes 12943else 12944 ac_cv_lib_svld_dlopen=no 12945fi 12946rm -f core conftest.err conftest.$ac_objext \ 12947 conftest$ac_exeext conftest.$ac_ext 12948LIBS=$ac_check_lib_save_LIBS 12949fi 12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12951$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12952if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12954else 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12956$as_echo_n "checking for dld_link in -ldld... " >&6; } 12957if ${ac_cv_lib_dld_dld_link+:} false; then : 12958 $as_echo_n "(cached) " >&6 12959else 12960 ac_check_lib_save_LIBS=$LIBS 12961LIBS="-ldld $LIBS" 12962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12963/* end confdefs.h. */ 12964 12965/* Override any GCC internal prototype to avoid an error. 12966 Use char because int might match the return type of a GCC 12967 builtin and then its argument prototype would still apply. */ 12968#ifdef __cplusplus 12969extern "C" 12970#endif 12971char dld_link (); 12972int 12973main () 12974{ 12975return dld_link (); 12976 ; 12977 return 0; 12978} 12979_ACEOF 12980if ac_fn_c_try_link "$LINENO"; then : 12981 ac_cv_lib_dld_dld_link=yes 12982else 12983 ac_cv_lib_dld_dld_link=no 12984fi 12985rm -f core conftest.err conftest.$ac_objext \ 12986 conftest$ac_exeext conftest.$ac_ext 12987LIBS=$ac_check_lib_save_LIBS 12988fi 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12990$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12991if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12993fi 12994 12995 12996fi 12997 12998 12999fi 13000 13001 13002fi 13003 13004 13005fi 13006 13007 13008fi 13009 13010 ;; 13011 esac 13012 13013 if test "x$lt_cv_dlopen" != xno; then 13014 enable_dlopen=yes 13015 else 13016 enable_dlopen=no 13017 fi 13018 13019 case $lt_cv_dlopen in 13020 dlopen) 13021 save_CPPFLAGS="$CPPFLAGS" 13022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13023 13024 save_LDFLAGS="$LDFLAGS" 13025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13026 13027 save_LIBS="$LIBS" 13028 LIBS="$lt_cv_dlopen_libs $LIBS" 13029 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13031$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13032if ${lt_cv_dlopen_self+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 if test "$cross_compiling" = yes; then : 13036 lt_cv_dlopen_self=cross 13037else 13038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13039 lt_status=$lt_dlunknown 13040 cat > conftest.$ac_ext <<_LT_EOF 13041#line $LINENO "configure" 13042#include "confdefs.h" 13043 13044#if HAVE_DLFCN_H 13045#include <dlfcn.h> 13046#endif 13047 13048#include <stdio.h> 13049 13050#ifdef RTLD_GLOBAL 13051# define LT_DLGLOBAL RTLD_GLOBAL 13052#else 13053# ifdef DL_GLOBAL 13054# define LT_DLGLOBAL DL_GLOBAL 13055# else 13056# define LT_DLGLOBAL 0 13057# endif 13058#endif 13059 13060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13061 find out it does not work in some platform. */ 13062#ifndef LT_DLLAZY_OR_NOW 13063# ifdef RTLD_LAZY 13064# define LT_DLLAZY_OR_NOW RTLD_LAZY 13065# else 13066# ifdef DL_LAZY 13067# define LT_DLLAZY_OR_NOW DL_LAZY 13068# else 13069# ifdef RTLD_NOW 13070# define LT_DLLAZY_OR_NOW RTLD_NOW 13071# else 13072# ifdef DL_NOW 13073# define LT_DLLAZY_OR_NOW DL_NOW 13074# else 13075# define LT_DLLAZY_OR_NOW 0 13076# endif 13077# endif 13078# endif 13079# endif 13080#endif 13081 13082/* When -fvisbility=hidden is used, assume the code has been annotated 13083 correspondingly for the symbols needed. */ 13084#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13085int fnord () __attribute__((visibility("default"))); 13086#endif 13087 13088int fnord () { return 42; } 13089int main () 13090{ 13091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13092 int status = $lt_dlunknown; 13093 13094 if (self) 13095 { 13096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13097 else 13098 { 13099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13100 else puts (dlerror ()); 13101 } 13102 /* dlclose (self); */ 13103 } 13104 else 13105 puts (dlerror ()); 13106 13107 return status; 13108} 13109_LT_EOF 13110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13111 (eval $ac_link) 2>&5 13112 ac_status=$? 13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13115 (./conftest; exit; ) >&5 2>/dev/null 13116 lt_status=$? 13117 case x$lt_status in 13118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13120 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13121 esac 13122 else : 13123 # compilation failed 13124 lt_cv_dlopen_self=no 13125 fi 13126fi 13127rm -fr conftest* 13128 13129 13130fi 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13132$as_echo "$lt_cv_dlopen_self" >&6; } 13133 13134 if test "x$lt_cv_dlopen_self" = xyes; then 13135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13137$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13138if ${lt_cv_dlopen_self_static+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 if test "$cross_compiling" = yes; then : 13142 lt_cv_dlopen_self_static=cross 13143else 13144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13145 lt_status=$lt_dlunknown 13146 cat > conftest.$ac_ext <<_LT_EOF 13147#line $LINENO "configure" 13148#include "confdefs.h" 13149 13150#if HAVE_DLFCN_H 13151#include <dlfcn.h> 13152#endif 13153 13154#include <stdio.h> 13155 13156#ifdef RTLD_GLOBAL 13157# define LT_DLGLOBAL RTLD_GLOBAL 13158#else 13159# ifdef DL_GLOBAL 13160# define LT_DLGLOBAL DL_GLOBAL 13161# else 13162# define LT_DLGLOBAL 0 13163# endif 13164#endif 13165 13166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13167 find out it does not work in some platform. */ 13168#ifndef LT_DLLAZY_OR_NOW 13169# ifdef RTLD_LAZY 13170# define LT_DLLAZY_OR_NOW RTLD_LAZY 13171# else 13172# ifdef DL_LAZY 13173# define LT_DLLAZY_OR_NOW DL_LAZY 13174# else 13175# ifdef RTLD_NOW 13176# define LT_DLLAZY_OR_NOW RTLD_NOW 13177# else 13178# ifdef DL_NOW 13179# define LT_DLLAZY_OR_NOW DL_NOW 13180# else 13181# define LT_DLLAZY_OR_NOW 0 13182# endif 13183# endif 13184# endif 13185# endif 13186#endif 13187 13188/* When -fvisbility=hidden is used, assume the code has been annotated 13189 correspondingly for the symbols needed. */ 13190#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13191int fnord () __attribute__((visibility("default"))); 13192#endif 13193 13194int fnord () { return 42; } 13195int main () 13196{ 13197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13198 int status = $lt_dlunknown; 13199 13200 if (self) 13201 { 13202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13203 else 13204 { 13205 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13206 else puts (dlerror ()); 13207 } 13208 /* dlclose (self); */ 13209 } 13210 else 13211 puts (dlerror ()); 13212 13213 return status; 13214} 13215_LT_EOF 13216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13217 (eval $ac_link) 2>&5 13218 ac_status=$? 13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13220 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13221 (./conftest; exit; ) >&5 2>/dev/null 13222 lt_status=$? 13223 case x$lt_status in 13224 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13225 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13226 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13227 esac 13228 else : 13229 # compilation failed 13230 lt_cv_dlopen_self_static=no 13231 fi 13232fi 13233rm -fr conftest* 13234 13235 13236fi 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13238$as_echo "$lt_cv_dlopen_self_static" >&6; } 13239 fi 13240 13241 CPPFLAGS="$save_CPPFLAGS" 13242 LDFLAGS="$save_LDFLAGS" 13243 LIBS="$save_LIBS" 13244 ;; 13245 esac 13246 13247 case $lt_cv_dlopen_self in 13248 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13249 *) enable_dlopen_self=unknown ;; 13250 esac 13251 13252 case $lt_cv_dlopen_self_static in 13253 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13254 *) enable_dlopen_self_static=unknown ;; 13255 esac 13256fi 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274striplib= 13275old_striplib= 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13277$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13278if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13280 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13282$as_echo "yes" >&6; } 13283else 13284# FIXME - insert some real tests, host_os isn't really good enough 13285 case $host_os in 13286 darwin*) 13287 if test -n "$STRIP" ; then 13288 striplib="$STRIP -x" 13289 old_striplib="$STRIP -S" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13291$as_echo "yes" >&6; } 13292 else 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13294$as_echo "no" >&6; } 13295 fi 13296 ;; 13297 *) 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13299$as_echo "no" >&6; } 13300 ;; 13301 esac 13302fi 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 # Report which library types will actually be built 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13317$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13319$as_echo "$can_build_shared" >&6; } 13320 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13322$as_echo_n "checking whether to build shared libraries... " >&6; } 13323 test "$can_build_shared" = "no" && enable_shared=no 13324 13325 # On AIX, shared libraries and static libraries use the same namespace, and 13326 # are all built from PIC. 13327 case $host_os in 13328 aix3*) 13329 test "$enable_shared" = yes && enable_static=no 13330 if test -n "$RANLIB"; then 13331 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13332 postinstall_cmds='$RANLIB $lib' 13333 fi 13334 ;; 13335 13336 aix[4-9]*) 13337 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13338 test "$enable_shared" = yes && enable_static=no 13339 fi 13340 ;; 13341 esac 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13343$as_echo "$enable_shared" >&6; } 13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13346$as_echo_n "checking whether to build static libraries... " >&6; } 13347 # Make sure either enable_shared or enable_static is yes. 13348 test "$enable_shared" = yes || enable_static=yes 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13350$as_echo "$enable_static" >&6; } 13351 13352 13353 13354 13355fi 13356ac_ext=c 13357ac_cpp='$CPP $CPPFLAGS' 13358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13360ac_compiler_gnu=$ac_cv_c_compiler_gnu 13361 13362CC="$lt_save_CC" 13363 13364 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13366 (test "X$CXX" != "Xg++"))) ; then 13367 ac_ext=cpp 13368ac_cpp='$CXXCPP $CPPFLAGS' 13369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13373$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13374if test -z "$CXXCPP"; then 13375 if ${ac_cv_prog_CXXCPP+:} false; then : 13376 $as_echo_n "(cached) " >&6 13377else 13378 # Double quotes because CXXCPP needs to be expanded 13379 for CXXCPP in "$CXX -E" "/lib/cpp" 13380 do 13381 ac_preproc_ok=false 13382for ac_cxx_preproc_warn_flag in '' yes 13383do 13384 # Use a header file that comes with gcc, so configuring glibc 13385 # with a fresh cross-compiler works. 13386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13387 # <limits.h> exists even on freestanding compilers. 13388 # On the NeXT, cc -E runs the code through the compiler's parser, 13389 # not just through cpp. "Syntax error" is here to catch this case. 13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391/* end confdefs.h. */ 13392#ifdef __STDC__ 13393# include <limits.h> 13394#else 13395# include <assert.h> 13396#endif 13397 Syntax error 13398_ACEOF 13399if ac_fn_cxx_try_cpp "$LINENO"; then : 13400 13401else 13402 # Broken: fails on valid input. 13403continue 13404fi 13405rm -f conftest.err conftest.i conftest.$ac_ext 13406 13407 # OK, works on sane cases. Now check whether nonexistent headers 13408 # can be detected and how. 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411#include <ac_nonexistent.h> 13412_ACEOF 13413if ac_fn_cxx_try_cpp "$LINENO"; then : 13414 # Broken: success on invalid input. 13415continue 13416else 13417 # Passes both tests. 13418ac_preproc_ok=: 13419break 13420fi 13421rm -f conftest.err conftest.i conftest.$ac_ext 13422 13423done 13424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13425rm -f conftest.i conftest.err conftest.$ac_ext 13426if $ac_preproc_ok; then : 13427 break 13428fi 13429 13430 done 13431 ac_cv_prog_CXXCPP=$CXXCPP 13432 13433fi 13434 CXXCPP=$ac_cv_prog_CXXCPP 13435else 13436 ac_cv_prog_CXXCPP=$CXXCPP 13437fi 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13439$as_echo "$CXXCPP" >&6; } 13440ac_preproc_ok=false 13441for ac_cxx_preproc_warn_flag in '' yes 13442do 13443 # Use a header file that comes with gcc, so configuring glibc 13444 # with a fresh cross-compiler works. 13445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13446 # <limits.h> exists even on freestanding compilers. 13447 # On the NeXT, cc -E runs the code through the compiler's parser, 13448 # not just through cpp. "Syntax error" is here to catch this case. 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451#ifdef __STDC__ 13452# include <limits.h> 13453#else 13454# include <assert.h> 13455#endif 13456 Syntax error 13457_ACEOF 13458if ac_fn_cxx_try_cpp "$LINENO"; then : 13459 13460else 13461 # Broken: fails on valid input. 13462continue 13463fi 13464rm -f conftest.err conftest.i conftest.$ac_ext 13465 13466 # OK, works on sane cases. Now check whether nonexistent headers 13467 # can be detected and how. 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13469/* end confdefs.h. */ 13470#include <ac_nonexistent.h> 13471_ACEOF 13472if ac_fn_cxx_try_cpp "$LINENO"; then : 13473 # Broken: success on invalid input. 13474continue 13475else 13476 # Passes both tests. 13477ac_preproc_ok=: 13478break 13479fi 13480rm -f conftest.err conftest.i conftest.$ac_ext 13481 13482done 13483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13484rm -f conftest.i conftest.err conftest.$ac_ext 13485if $ac_preproc_ok; then : 13486 13487else 13488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13490as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13491See \`config.log' for more details" "$LINENO" 5; } 13492fi 13493 13494ac_ext=c 13495ac_cpp='$CPP $CPPFLAGS' 13496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13498ac_compiler_gnu=$ac_cv_c_compiler_gnu 13499 13500else 13501 _lt_caught_CXX_error=yes 13502fi 13503 13504ac_ext=cpp 13505ac_cpp='$CXXCPP $CPPFLAGS' 13506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13509 13510archive_cmds_need_lc_CXX=no 13511allow_undefined_flag_CXX= 13512always_export_symbols_CXX=no 13513archive_expsym_cmds_CXX= 13514compiler_needs_object_CXX=no 13515export_dynamic_flag_spec_CXX= 13516hardcode_direct_CXX=no 13517hardcode_direct_absolute_CXX=no 13518hardcode_libdir_flag_spec_CXX= 13519hardcode_libdir_separator_CXX= 13520hardcode_minus_L_CXX=no 13521hardcode_shlibpath_var_CXX=unsupported 13522hardcode_automatic_CXX=no 13523inherit_rpath_CXX=no 13524module_cmds_CXX= 13525module_expsym_cmds_CXX= 13526link_all_deplibs_CXX=unknown 13527old_archive_cmds_CXX=$old_archive_cmds 13528reload_flag_CXX=$reload_flag 13529reload_cmds_CXX=$reload_cmds 13530no_undefined_flag_CXX= 13531whole_archive_flag_spec_CXX= 13532enable_shared_with_static_runtimes_CXX=no 13533 13534# Source file extension for C++ test sources. 13535ac_ext=cpp 13536 13537# Object file extension for compiled C++ test sources. 13538objext=o 13539objext_CXX=$objext 13540 13541# No sense in running all these tests if we already determined that 13542# the CXX compiler isn't working. Some variables (like enable_shared) 13543# are currently assumed to apply to all compilers on this platform, 13544# and will be corrupted by setting them based on a non-working compiler. 13545if test "$_lt_caught_CXX_error" != yes; then 13546 # Code to be used in simple compile tests 13547 lt_simple_compile_test_code="int some_variable = 0;" 13548 13549 # Code to be used in simple link tests 13550 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13551 13552 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13553 13554 13555 13556 13557 13558 13559# If no C compiler was specified, use CC. 13560LTCC=${LTCC-"$CC"} 13561 13562# If no C compiler flags were specified, use CFLAGS. 13563LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13564 13565# Allow CC to be a program name with arguments. 13566compiler=$CC 13567 13568 13569 # save warnings/boilerplate of simple test code 13570 ac_outfile=conftest.$ac_objext 13571echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13573_lt_compiler_boilerplate=`cat conftest.err` 13574$RM conftest* 13575 13576 ac_outfile=conftest.$ac_objext 13577echo "$lt_simple_link_test_code" >conftest.$ac_ext 13578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13579_lt_linker_boilerplate=`cat conftest.err` 13580$RM -r conftest* 13581 13582 13583 # Allow CC to be a program name with arguments. 13584 lt_save_CC=$CC 13585 lt_save_CFLAGS=$CFLAGS 13586 lt_save_LD=$LD 13587 lt_save_GCC=$GCC 13588 GCC=$GXX 13589 lt_save_with_gnu_ld=$with_gnu_ld 13590 lt_save_path_LD=$lt_cv_path_LD 13591 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13592 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13593 else 13594 $as_unset lt_cv_prog_gnu_ld 13595 fi 13596 if test -n "${lt_cv_path_LDCXX+set}"; then 13597 lt_cv_path_LD=$lt_cv_path_LDCXX 13598 else 13599 $as_unset lt_cv_path_LD 13600 fi 13601 test -z "${LDCXX+set}" || LD=$LDCXX 13602 CC=${CXX-"c++"} 13603 CFLAGS=$CXXFLAGS 13604 compiler=$CC 13605 compiler_CXX=$CC 13606 for cc_temp in $compiler""; do 13607 case $cc_temp in 13608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13610 \-*) ;; 13611 *) break;; 13612 esac 13613done 13614cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13615 13616 13617 if test -n "$compiler"; then 13618 # We don't want -fno-exception when compiling C++ code, so set the 13619 # no_builtin_flag separately 13620 if test "$GXX" = yes; then 13621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13622 else 13623 lt_prog_compiler_no_builtin_flag_CXX= 13624 fi 13625 13626 if test "$GXX" = yes; then 13627 # Set up default GNU C++ configuration 13628 13629 13630 13631# Check whether --with-gnu-ld was given. 13632if test "${with_gnu_ld+set}" = set; then : 13633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13634else 13635 with_gnu_ld=no 13636fi 13637 13638ac_prog=ld 13639if test "$GCC" = yes; then 13640 # Check if gcc -print-prog-name=ld gives a path. 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13642$as_echo_n "checking for ld used by $CC... " >&6; } 13643 case $host in 13644 *-*-mingw*) 13645 # gcc leaves a trailing carriage return which upsets mingw 13646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13647 *) 13648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13649 esac 13650 case $ac_prog in 13651 # Accept absolute paths. 13652 [\\/]* | ?:[\\/]*) 13653 re_direlt='/[^/][^/]*/\.\./' 13654 # Canonicalize the pathname of ld 13655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13658 done 13659 test -z "$LD" && LD="$ac_prog" 13660 ;; 13661 "") 13662 # If it fails, then pretend we aren't using GCC. 13663 ac_prog=ld 13664 ;; 13665 *) 13666 # If it is relative, then search for the first ld in PATH. 13667 with_gnu_ld=unknown 13668 ;; 13669 esac 13670elif test "$with_gnu_ld" = yes; then 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13672$as_echo_n "checking for GNU ld... " >&6; } 13673else 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13675$as_echo_n "checking for non-GNU ld... " >&6; } 13676fi 13677if ${lt_cv_path_LD+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 if test -z "$LD"; then 13681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13682 for ac_dir in $PATH; do 13683 IFS="$lt_save_ifs" 13684 test -z "$ac_dir" && ac_dir=. 13685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13686 lt_cv_path_LD="$ac_dir/$ac_prog" 13687 # Check to see if the program is GNU ld. I'd rather use --version, 13688 # but apparently some variants of GNU ld only accept -v. 13689 # Break only if it was the GNU/non-GNU ld that we prefer. 13690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13691 *GNU* | *'with BFD'*) 13692 test "$with_gnu_ld" != no && break 13693 ;; 13694 *) 13695 test "$with_gnu_ld" != yes && break 13696 ;; 13697 esac 13698 fi 13699 done 13700 IFS="$lt_save_ifs" 13701else 13702 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13703fi 13704fi 13705 13706LD="$lt_cv_path_LD" 13707if test -n "$LD"; then 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13709$as_echo "$LD" >&6; } 13710else 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13712$as_echo "no" >&6; } 13713fi 13714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13717if ${lt_cv_prog_gnu_ld+:} false; then : 13718 $as_echo_n "(cached) " >&6 13719else 13720 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13721case `$LD -v 2>&1 </dev/null` in 13722*GNU* | *'with BFD'*) 13723 lt_cv_prog_gnu_ld=yes 13724 ;; 13725*) 13726 lt_cv_prog_gnu_ld=no 13727 ;; 13728esac 13729fi 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13731$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13732with_gnu_ld=$lt_cv_prog_gnu_ld 13733 13734 13735 13736 13737 13738 13739 13740 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13741 # archiving commands below assume that GNU ld is being used. 13742 if test "$with_gnu_ld" = yes; then 13743 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13744 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13745 13746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13748 13749 # If archive_cmds runs LD, not CC, wlarc should be empty 13750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13751 # investigate it a little bit more. (MM) 13752 wlarc='${wl}' 13753 13754 # ancient GNU ld didn't support --whole-archive et. al. 13755 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13756 $GREP 'no-whole-archive' > /dev/null; then 13757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13758 else 13759 whole_archive_flag_spec_CXX= 13760 fi 13761 else 13762 with_gnu_ld=no 13763 wlarc= 13764 13765 # A generic and very simple default shared library creation 13766 # command for GNU C++ for the case where it uses the native 13767 # linker, instead of GNU ld. If possible, this setting should 13768 # overridden to take advantage of the native linker features on 13769 # the platform it is being used on. 13770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13771 fi 13772 13773 # Commands to make compiler produce verbose output that lists 13774 # what "hidden" libraries, object files and flags are used when 13775 # linking a shared library. 13776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13777 13778 else 13779 GXX=no 13780 with_gnu_ld=no 13781 wlarc= 13782 fi 13783 13784 # PORTME: fill in a description of your system's C++ link characteristics 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13786$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13787 ld_shlibs_CXX=yes 13788 case $host_os in 13789 aix3*) 13790 # FIXME: insert proper C++ library support 13791 ld_shlibs_CXX=no 13792 ;; 13793 aix[4-9]*) 13794 if test "$host_cpu" = ia64; then 13795 # On IA64, the linker does run time linking by default, so we don't 13796 # have to do anything special. 13797 aix_use_runtimelinking=no 13798 exp_sym_flag='-Bexport' 13799 no_entry_flag="" 13800 else 13801 aix_use_runtimelinking=no 13802 13803 # Test if we are trying to use run time linking or normal 13804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13805 # need to do runtime linking. 13806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13807 for ld_flag in $LDFLAGS; do 13808 case $ld_flag in 13809 *-brtl*) 13810 aix_use_runtimelinking=yes 13811 break 13812 ;; 13813 esac 13814 done 13815 ;; 13816 esac 13817 13818 exp_sym_flag='-bexport' 13819 no_entry_flag='-bnoentry' 13820 fi 13821 13822 # When large executables or shared objects are built, AIX ld can 13823 # have problems creating the table of contents. If linking a library 13824 # or program results in "error TOC overflow" add -mminimal-toc to 13825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13827 13828 archive_cmds_CXX='' 13829 hardcode_direct_CXX=yes 13830 hardcode_direct_absolute_CXX=yes 13831 hardcode_libdir_separator_CXX=':' 13832 link_all_deplibs_CXX=yes 13833 file_list_spec_CXX='${wl}-f,' 13834 13835 if test "$GXX" = yes; then 13836 case $host_os in aix4.[012]|aix4.[012].*) 13837 # We only want to do this on AIX 4.2 and lower, the check 13838 # below for broken collect2 doesn't work under 4.3+ 13839 collect2name=`${CC} -print-prog-name=collect2` 13840 if test -f "$collect2name" && 13841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13842 then 13843 # We have reworked collect2 13844 : 13845 else 13846 # We have old collect2 13847 hardcode_direct_CXX=unsupported 13848 # It fails to find uninstalled libraries when the uninstalled 13849 # path is not listed in the libpath. Setting hardcode_minus_L 13850 # to unsupported forces relinking 13851 hardcode_minus_L_CXX=yes 13852 hardcode_libdir_flag_spec_CXX='-L$libdir' 13853 hardcode_libdir_separator_CXX= 13854 fi 13855 esac 13856 shared_flag='-shared' 13857 if test "$aix_use_runtimelinking" = yes; then 13858 shared_flag="$shared_flag "'${wl}-G' 13859 fi 13860 else 13861 # not using gcc 13862 if test "$host_cpu" = ia64; then 13863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13864 # chokes on -Wl,-G. The following line is correct: 13865 shared_flag='-G' 13866 else 13867 if test "$aix_use_runtimelinking" = yes; then 13868 shared_flag='${wl}-G' 13869 else 13870 shared_flag='${wl}-bM:SRE' 13871 fi 13872 fi 13873 fi 13874 13875 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13876 # It seems that -bexpall does not export symbols beginning with 13877 # underscore (_), so it is better to generate a list of symbols to 13878 # export. 13879 always_export_symbols_CXX=yes 13880 if test "$aix_use_runtimelinking" = yes; then 13881 # Warning - without using the other runtime loading flags (-brtl), 13882 # -berok will link without error, but may produce a broken library. 13883 allow_undefined_flag_CXX='-berok' 13884 # Determine the default libpath from the value encoded in an empty 13885 # executable. 13886 if test "${lt_cv_aix_libpath+set}" = set; then 13887 aix_libpath=$lt_cv_aix_libpath 13888else 13889 if ${lt_cv_aix_libpath__CXX+:} false; then : 13890 $as_echo_n "(cached) " >&6 13891else 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13893/* end confdefs.h. */ 13894 13895int 13896main () 13897{ 13898 13899 ; 13900 return 0; 13901} 13902_ACEOF 13903if ac_fn_cxx_try_link "$LINENO"; then : 13904 13905 lt_aix_libpath_sed=' 13906 /Import File Strings/,/^$/ { 13907 /^0/ { 13908 s/^0 *\([^ ]*\) *$/\1/ 13909 p 13910 } 13911 }' 13912 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13913 # Check for a 64-bit object if we didn't find anything. 13914 if test -z "$lt_cv_aix_libpath__CXX"; then 13915 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13916 fi 13917fi 13918rm -f core conftest.err conftest.$ac_objext \ 13919 conftest$ac_exeext conftest.$ac_ext 13920 if test -z "$lt_cv_aix_libpath__CXX"; then 13921 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13922 fi 13923 13924fi 13925 13926 aix_libpath=$lt_cv_aix_libpath__CXX 13927fi 13928 13929 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13930 13931 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13932 else 13933 if test "$host_cpu" = ia64; then 13934 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13935 allow_undefined_flag_CXX="-z nodefs" 13936 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13937 else 13938 # Determine the default libpath from the value encoded in an 13939 # empty executable. 13940 if test "${lt_cv_aix_libpath+set}" = set; then 13941 aix_libpath=$lt_cv_aix_libpath 13942else 13943 if ${lt_cv_aix_libpath__CXX+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13947/* end confdefs.h. */ 13948 13949int 13950main () 13951{ 13952 13953 ; 13954 return 0; 13955} 13956_ACEOF 13957if ac_fn_cxx_try_link "$LINENO"; then : 13958 13959 lt_aix_libpath_sed=' 13960 /Import File Strings/,/^$/ { 13961 /^0/ { 13962 s/^0 *\([^ ]*\) *$/\1/ 13963 p 13964 } 13965 }' 13966 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13967 # Check for a 64-bit object if we didn't find anything. 13968 if test -z "$lt_cv_aix_libpath__CXX"; then 13969 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13970 fi 13971fi 13972rm -f core conftest.err conftest.$ac_objext \ 13973 conftest$ac_exeext conftest.$ac_ext 13974 if test -z "$lt_cv_aix_libpath__CXX"; then 13975 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13976 fi 13977 13978fi 13979 13980 aix_libpath=$lt_cv_aix_libpath__CXX 13981fi 13982 13983 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13984 # Warning - without using the other run time loading flags, 13985 # -berok will link without error, but may produce a broken library. 13986 no_undefined_flag_CXX=' ${wl}-bernotok' 13987 allow_undefined_flag_CXX=' ${wl}-berok' 13988 if test "$with_gnu_ld" = yes; then 13989 # We only use this code for GNU lds that support --whole-archive. 13990 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13991 else 13992 # Exported symbols can be pulled into shared objects from archives 13993 whole_archive_flag_spec_CXX='$convenience' 13994 fi 13995 archive_cmds_need_lc_CXX=yes 13996 # This is similar to how AIX traditionally builds its shared 13997 # libraries. 13998 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13999 fi 14000 fi 14001 ;; 14002 14003 beos*) 14004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14005 allow_undefined_flag_CXX=unsupported 14006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14007 # support --undefined. This deserves some investigation. FIXME 14008 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14009 else 14010 ld_shlibs_CXX=no 14011 fi 14012 ;; 14013 14014 chorus*) 14015 case $cc_basename in 14016 *) 14017 # FIXME: insert proper C++ library support 14018 ld_shlibs_CXX=no 14019 ;; 14020 esac 14021 ;; 14022 14023 cygwin* | mingw* | pw32* | cegcc*) 14024 case $GXX,$cc_basename in 14025 ,cl* | no,cl*) 14026 # Native MSVC 14027 # hardcode_libdir_flag_spec is actually meaningless, as there is 14028 # no search path for DLLs. 14029 hardcode_libdir_flag_spec_CXX=' ' 14030 allow_undefined_flag_CXX=unsupported 14031 always_export_symbols_CXX=yes 14032 file_list_spec_CXX='@' 14033 # Tell ltmain to make .lib files, not .a files. 14034 libext=lib 14035 # Tell ltmain to make .dll files, not .so files. 14036 shrext_cmds=".dll" 14037 # FIXME: Setting linknames here is a bad hack. 14038 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14039 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14040 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14041 else 14042 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14043 fi~ 14044 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14045 linknames=' 14046 # The linker will not automatically build a static lib if we build a DLL. 14047 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14048 enable_shared_with_static_runtimes_CXX=yes 14049 # Don't use ranlib 14050 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14051 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14052 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14053 case $lt_outputfile in 14054 *.exe|*.EXE) ;; 14055 *) 14056 lt_outputfile="$lt_outputfile.exe" 14057 lt_tool_outputfile="$lt_tool_outputfile.exe" 14058 ;; 14059 esac~ 14060 func_to_tool_file "$lt_outputfile"~ 14061 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14062 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14063 $RM "$lt_outputfile.manifest"; 14064 fi' 14065 ;; 14066 *) 14067 # g++ 14068 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14069 # as there is no search path for DLLs. 14070 hardcode_libdir_flag_spec_CXX='-L$libdir' 14071 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14072 allow_undefined_flag_CXX=unsupported 14073 always_export_symbols_CXX=no 14074 enable_shared_with_static_runtimes_CXX=yes 14075 14076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14078 # If the export-symbols file already is a .def file (1st line 14079 # is EXPORTS), use it as is; otherwise, prepend... 14080 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14081 cp $export_symbols $output_objdir/$soname.def; 14082 else 14083 echo EXPORTS > $output_objdir/$soname.def; 14084 cat $export_symbols >> $output_objdir/$soname.def; 14085 fi~ 14086 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14087 else 14088 ld_shlibs_CXX=no 14089 fi 14090 ;; 14091 esac 14092 ;; 14093 darwin* | rhapsody*) 14094 14095 14096 archive_cmds_need_lc_CXX=no 14097 hardcode_direct_CXX=no 14098 hardcode_automatic_CXX=yes 14099 hardcode_shlibpath_var_CXX=unsupported 14100 if test "$lt_cv_ld_force_load" = "yes"; then 14101 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14102 14103 else 14104 whole_archive_flag_spec_CXX='' 14105 fi 14106 link_all_deplibs_CXX=yes 14107 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14108 case $cc_basename in 14109 ifort*) _lt_dar_can_shared=yes ;; 14110 *) _lt_dar_can_shared=$GCC ;; 14111 esac 14112 if test "$_lt_dar_can_shared" = "yes"; then 14113 output_verbose_link_cmd=func_echo_all 14114 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14115 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14116 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14117 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 14118 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14119 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14120 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14121 fi 14122 14123 else 14124 ld_shlibs_CXX=no 14125 fi 14126 14127 ;; 14128 14129 dgux*) 14130 case $cc_basename in 14131 ec++*) 14132 # FIXME: insert proper C++ library support 14133 ld_shlibs_CXX=no 14134 ;; 14135 ghcx*) 14136 # Green Hills C++ Compiler 14137 # FIXME: insert proper C++ library support 14138 ld_shlibs_CXX=no 14139 ;; 14140 *) 14141 # FIXME: insert proper C++ library support 14142 ld_shlibs_CXX=no 14143 ;; 14144 esac 14145 ;; 14146 14147 freebsd2.*) 14148 # C++ shared libraries reported to be fairly broken before 14149 # switch to ELF 14150 ld_shlibs_CXX=no 14151 ;; 14152 14153 freebsd-elf*) 14154 archive_cmds_need_lc_CXX=no 14155 ;; 14156 14157 freebsd* | dragonfly*) 14158 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14159 # conventions 14160 ld_shlibs_CXX=yes 14161 ;; 14162 14163 gnu*) 14164 ;; 14165 14166 haiku*) 14167 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14168 link_all_deplibs_CXX=yes 14169 ;; 14170 14171 hpux9*) 14172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14173 hardcode_libdir_separator_CXX=: 14174 export_dynamic_flag_spec_CXX='${wl}-E' 14175 hardcode_direct_CXX=yes 14176 hardcode_minus_L_CXX=yes # Not in the search PATH, 14177 # but as the default 14178 # location of the library. 14179 14180 case $cc_basename in 14181 CC*) 14182 # FIXME: insert proper C++ library support 14183 ld_shlibs_CXX=no 14184 ;; 14185 aCC*) 14186 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14187 # Commands to make compiler produce verbose output that lists 14188 # what "hidden" libraries, object files and flags are used when 14189 # linking a shared library. 14190 # 14191 # There doesn't appear to be a way to prevent this compiler from 14192 # explicitly linking system object files so we need to strip them 14193 # from the output so that they don't get included in the library 14194 # dependencies. 14195 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14196 ;; 14197 *) 14198 if test "$GXX" = yes; then 14199 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14200 else 14201 # FIXME: insert proper C++ library support 14202 ld_shlibs_CXX=no 14203 fi 14204 ;; 14205 esac 14206 ;; 14207 14208 hpux10*|hpux11*) 14209 if test $with_gnu_ld = no; then 14210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14211 hardcode_libdir_separator_CXX=: 14212 14213 case $host_cpu in 14214 hppa*64*|ia64*) 14215 ;; 14216 *) 14217 export_dynamic_flag_spec_CXX='${wl}-E' 14218 ;; 14219 esac 14220 fi 14221 case $host_cpu in 14222 hppa*64*|ia64*) 14223 hardcode_direct_CXX=no 14224 hardcode_shlibpath_var_CXX=no 14225 ;; 14226 *) 14227 hardcode_direct_CXX=yes 14228 hardcode_direct_absolute_CXX=yes 14229 hardcode_minus_L_CXX=yes # Not in the search PATH, 14230 # but as the default 14231 # location of the library. 14232 ;; 14233 esac 14234 14235 case $cc_basename in 14236 CC*) 14237 # FIXME: insert proper C++ library support 14238 ld_shlibs_CXX=no 14239 ;; 14240 aCC*) 14241 case $host_cpu in 14242 hppa*64*) 14243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14244 ;; 14245 ia64*) 14246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14247 ;; 14248 *) 14249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14250 ;; 14251 esac 14252 # Commands to make compiler produce verbose output that lists 14253 # what "hidden" libraries, object files and flags are used when 14254 # linking a shared library. 14255 # 14256 # There doesn't appear to be a way to prevent this compiler from 14257 # explicitly linking system object files so we need to strip them 14258 # from the output so that they don't get included in the library 14259 # dependencies. 14260 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14261 ;; 14262 *) 14263 if test "$GXX" = yes; then 14264 if test $with_gnu_ld = no; then 14265 case $host_cpu in 14266 hppa*64*) 14267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14268 ;; 14269 ia64*) 14270 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14271 ;; 14272 *) 14273 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14274 ;; 14275 esac 14276 fi 14277 else 14278 # FIXME: insert proper C++ library support 14279 ld_shlibs_CXX=no 14280 fi 14281 ;; 14282 esac 14283 ;; 14284 14285 interix[3-9]*) 14286 hardcode_direct_CXX=no 14287 hardcode_shlibpath_var_CXX=no 14288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14289 export_dynamic_flag_spec_CXX='${wl}-E' 14290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14291 # Instead, shared libraries are loaded at an image base (0x10000000 by 14292 # default) and relocated if they conflict, which is a slow very memory 14293 # consuming and fragmenting process. To avoid this, we pick a random, 14294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14295 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14296 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14297 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14298 ;; 14299 irix5* | irix6*) 14300 case $cc_basename in 14301 CC*) 14302 # SGI C++ 14303 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14304 14305 # Archives containing C++ object files must be created using 14306 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14307 # necessary to make sure instantiated templates are included 14308 # in the archive. 14309 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14310 ;; 14311 *) 14312 if test "$GXX" = yes; then 14313 if test "$with_gnu_ld" = no; then 14314 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14315 else 14316 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 14317 fi 14318 fi 14319 link_all_deplibs_CXX=yes 14320 ;; 14321 esac 14322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14323 hardcode_libdir_separator_CXX=: 14324 inherit_rpath_CXX=yes 14325 ;; 14326 14327 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14328 case $cc_basename in 14329 KCC*) 14330 # Kuck and Associates, Inc. (KAI) C++ Compiler 14331 14332 # KCC will only create a shared library if the output file 14333 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14334 # to its proper name (with version) after linking. 14335 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14336 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 14337 # Commands to make compiler produce verbose output that lists 14338 # what "hidden" libraries, object files and flags are used when 14339 # linking a shared library. 14340 # 14341 # There doesn't appear to be a way to prevent this compiler from 14342 # explicitly linking system object files so we need to strip them 14343 # from the output so that they don't get included in the library 14344 # dependencies. 14345 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14346 14347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14349 14350 # Archives containing C++ object files must be created using 14351 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14352 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14353 ;; 14354 icpc* | ecpc* ) 14355 # Intel C++ 14356 with_gnu_ld=yes 14357 # version 8.0 and above of icpc choke on multiply defined symbols 14358 # if we add $predep_objects and $postdep_objects, however 7.1 and 14359 # earlier do not add the objects themselves. 14360 case `$CC -V 2>&1` in 14361 *"Version 7."*) 14362 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14363 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14364 ;; 14365 *) # Version 8.0 or newer 14366 tmp_idyn= 14367 case $host_cpu in 14368 ia64*) tmp_idyn=' -i_dynamic';; 14369 esac 14370 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14371 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14372 ;; 14373 esac 14374 archive_cmds_need_lc_CXX=no 14375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14377 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14378 ;; 14379 pgCC* | pgcpp*) 14380 # Portland Group C++ compiler 14381 case `$CC -V` in 14382 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14383 prelink_cmds_CXX='tpldir=Template.dir~ 14384 rm -rf $tpldir~ 14385 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14386 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14387 old_archive_cmds_CXX='tpldir=Template.dir~ 14388 rm -rf $tpldir~ 14389 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14390 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14391 $RANLIB $oldlib' 14392 archive_cmds_CXX='tpldir=Template.dir~ 14393 rm -rf $tpldir~ 14394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14395 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14396 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14397 rm -rf $tpldir~ 14398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14399 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14400 ;; 14401 *) # Version 6 and above use weak symbols 14402 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14403 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14404 ;; 14405 esac 14406 14407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14409 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14410 ;; 14411 cxx*) 14412 # Compaq C++ 14413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14414 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 14415 14416 runpath_var=LD_RUN_PATH 14417 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14418 hardcode_libdir_separator_CXX=: 14419 14420 # Commands to make compiler produce verbose output that lists 14421 # what "hidden" libraries, object files and flags are used when 14422 # linking a shared library. 14423 # 14424 # There doesn't appear to be a way to prevent this compiler from 14425 # explicitly linking system object files so we need to strip them 14426 # from the output so that they don't get included in the library 14427 # dependencies. 14428 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14429 ;; 14430 xl* | mpixl* | bgxl*) 14431 # IBM XL 8.0 on PPC, with GNU ld 14432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14434 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14435 if test "x$supports_anon_versioning" = xyes; then 14436 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14438 echo "local: *; };" >> $output_objdir/$libname.ver~ 14439 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14440 fi 14441 ;; 14442 *) 14443 case `$CC -V 2>&1 | sed 5q` in 14444 *Sun\ C*) 14445 # Sun C++ 5.9 14446 no_undefined_flag_CXX=' -zdefs' 14447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14448 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14449 hardcode_libdir_flag_spec_CXX='-R$libdir' 14450 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14451 compiler_needs_object_CXX=yes 14452 14453 # Not sure whether something based on 14454 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14455 # would be better. 14456 output_verbose_link_cmd='func_echo_all' 14457 14458 # Archives containing C++ object files must be created using 14459 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14460 # necessary to make sure instantiated templates are included 14461 # in the archive. 14462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14463 ;; 14464 esac 14465 ;; 14466 esac 14467 ;; 14468 14469 lynxos*) 14470 # FIXME: insert proper C++ library support 14471 ld_shlibs_CXX=no 14472 ;; 14473 14474 m88k*) 14475 # FIXME: insert proper C++ library support 14476 ld_shlibs_CXX=no 14477 ;; 14478 14479 mvs*) 14480 case $cc_basename in 14481 cxx*) 14482 # FIXME: insert proper C++ library support 14483 ld_shlibs_CXX=no 14484 ;; 14485 *) 14486 # FIXME: insert proper C++ library support 14487 ld_shlibs_CXX=no 14488 ;; 14489 esac 14490 ;; 14491 14492 netbsd*) 14493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14495 wlarc= 14496 hardcode_libdir_flag_spec_CXX='-R$libdir' 14497 hardcode_direct_CXX=yes 14498 hardcode_shlibpath_var_CXX=no 14499 fi 14500 # Workaround some broken pre-1.5 toolchains 14501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14502 ;; 14503 14504 *nto* | *qnx*) 14505 ld_shlibs_CXX=yes 14506 ;; 14507 14508 openbsd2*) 14509 # C++ shared libraries are fairly broken 14510 ld_shlibs_CXX=no 14511 ;; 14512 14513 openbsd*) 14514 if test -f /usr/libexec/ld.so; then 14515 hardcode_direct_CXX=yes 14516 hardcode_shlibpath_var_CXX=no 14517 hardcode_direct_absolute_CXX=yes 14518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14521 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14522 export_dynamic_flag_spec_CXX='${wl}-E' 14523 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14524 fi 14525 output_verbose_link_cmd=func_echo_all 14526 else 14527 ld_shlibs_CXX=no 14528 fi 14529 ;; 14530 14531 osf3* | osf4* | osf5*) 14532 case $cc_basename in 14533 KCC*) 14534 # Kuck and Associates, Inc. (KAI) C++ Compiler 14535 14536 # KCC will only create a shared library if the output file 14537 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14538 # to its proper name (with version) after linking. 14539 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14540 14541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14542 hardcode_libdir_separator_CXX=: 14543 14544 # Archives containing C++ object files must be created using 14545 # the KAI C++ compiler. 14546 case $host in 14547 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14548 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14549 esac 14550 ;; 14551 RCC*) 14552 # Rational C++ 2.4.1 14553 # FIXME: insert proper C++ library support 14554 ld_shlibs_CXX=no 14555 ;; 14556 cxx*) 14557 case $host in 14558 osf3*) 14559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14560 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14562 ;; 14563 *) 14564 allow_undefined_flag_CXX=' -expect_unresolved \*' 14565 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14567 echo "-hidden">> $lib.exp~ 14568 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 14569 $RM $lib.exp' 14570 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14571 ;; 14572 esac 14573 14574 hardcode_libdir_separator_CXX=: 14575 14576 # Commands to make compiler produce verbose output that lists 14577 # what "hidden" libraries, object files and flags are used when 14578 # linking a shared library. 14579 # 14580 # There doesn't appear to be a way to prevent this compiler from 14581 # explicitly linking system object files so we need to strip them 14582 # from the output so that they don't get included in the library 14583 # dependencies. 14584 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14585 ;; 14586 *) 14587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14589 case $host in 14590 osf3*) 14591 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14592 ;; 14593 *) 14594 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14595 ;; 14596 esac 14597 14598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14599 hardcode_libdir_separator_CXX=: 14600 14601 # Commands to make compiler produce verbose output that lists 14602 # what "hidden" libraries, object files and flags are used when 14603 # linking a shared library. 14604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14605 14606 else 14607 # FIXME: insert proper C++ library support 14608 ld_shlibs_CXX=no 14609 fi 14610 ;; 14611 esac 14612 ;; 14613 14614 psos*) 14615 # FIXME: insert proper C++ library support 14616 ld_shlibs_CXX=no 14617 ;; 14618 14619 sunos4*) 14620 case $cc_basename in 14621 CC*) 14622 # Sun C++ 4.x 14623 # FIXME: insert proper C++ library support 14624 ld_shlibs_CXX=no 14625 ;; 14626 lcc*) 14627 # Lucid 14628 # FIXME: insert proper C++ library support 14629 ld_shlibs_CXX=no 14630 ;; 14631 *) 14632 # FIXME: insert proper C++ library support 14633 ld_shlibs_CXX=no 14634 ;; 14635 esac 14636 ;; 14637 14638 solaris*) 14639 case $cc_basename in 14640 CC* | sunCC*) 14641 # Sun C++ 4.2, 5.x and Centerline C++ 14642 archive_cmds_need_lc_CXX=yes 14643 no_undefined_flag_CXX=' -zdefs' 14644 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14646 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14647 14648 hardcode_libdir_flag_spec_CXX='-R$libdir' 14649 hardcode_shlibpath_var_CXX=no 14650 case $host_os in 14651 solaris2.[0-5] | solaris2.[0-5].*) ;; 14652 *) 14653 # The compiler driver will combine and reorder linker options, 14654 # but understands `-z linker_flag'. 14655 # Supported since Solaris 2.6 (maybe 2.5.1?) 14656 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14657 ;; 14658 esac 14659 link_all_deplibs_CXX=yes 14660 14661 output_verbose_link_cmd='func_echo_all' 14662 14663 # Archives containing C++ object files must be created using 14664 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14665 # necessary to make sure instantiated templates are included 14666 # in the archive. 14667 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14668 ;; 14669 gcx*) 14670 # Green Hills C++ Compiler 14671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14672 14673 # The C++ compiler must be used to create the archive. 14674 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14675 ;; 14676 *) 14677 # GNU C++ compiler with Solaris linker 14678 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14679 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14680 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14681 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14682 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14683 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14684 14685 # Commands to make compiler produce verbose output that lists 14686 # what "hidden" libraries, object files and flags are used when 14687 # linking a shared library. 14688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14689 else 14690 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14691 # platform. 14692 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14694 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14695 14696 # Commands to make compiler produce verbose output that lists 14697 # what "hidden" libraries, object files and flags are used when 14698 # linking a shared library. 14699 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14700 fi 14701 14702 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14703 case $host_os in 14704 solaris2.[0-5] | solaris2.[0-5].*) ;; 14705 *) 14706 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14707 ;; 14708 esac 14709 fi 14710 ;; 14711 esac 14712 ;; 14713 14714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14715 no_undefined_flag_CXX='${wl}-z,text' 14716 archive_cmds_need_lc_CXX=no 14717 hardcode_shlibpath_var_CXX=no 14718 runpath_var='LD_RUN_PATH' 14719 14720 case $cc_basename in 14721 CC*) 14722 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14723 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14724 ;; 14725 *) 14726 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14727 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14728 ;; 14729 esac 14730 ;; 14731 14732 sysv5* | sco3.2v5* | sco5v6*) 14733 # Note: We can NOT use -z defs as we might desire, because we do not 14734 # link with -lc, and that would cause any symbols used from libc to 14735 # always be unresolved, which means just about no library would 14736 # ever link correctly. If we're not using GNU ld we use -z text 14737 # though, which does catch some bad symbols but isn't as heavy-handed 14738 # as -z defs. 14739 no_undefined_flag_CXX='${wl}-z,text' 14740 allow_undefined_flag_CXX='${wl}-z,nodefs' 14741 archive_cmds_need_lc_CXX=no 14742 hardcode_shlibpath_var_CXX=no 14743 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14744 hardcode_libdir_separator_CXX=':' 14745 link_all_deplibs_CXX=yes 14746 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14747 runpath_var='LD_RUN_PATH' 14748 14749 case $cc_basename in 14750 CC*) 14751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14753 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14754 '"$old_archive_cmds_CXX" 14755 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14756 '"$reload_cmds_CXX" 14757 ;; 14758 *) 14759 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14760 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14761 ;; 14762 esac 14763 ;; 14764 14765 tandem*) 14766 case $cc_basename in 14767 NCC*) 14768 # NonStop-UX NCC 3.20 14769 # FIXME: insert proper C++ library support 14770 ld_shlibs_CXX=no 14771 ;; 14772 *) 14773 # FIXME: insert proper C++ library support 14774 ld_shlibs_CXX=no 14775 ;; 14776 esac 14777 ;; 14778 14779 vxworks*) 14780 # FIXME: insert proper C++ library support 14781 ld_shlibs_CXX=no 14782 ;; 14783 14784 *) 14785 # FIXME: insert proper C++ library support 14786 ld_shlibs_CXX=no 14787 ;; 14788 esac 14789 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14791$as_echo "$ld_shlibs_CXX" >&6; } 14792 test "$ld_shlibs_CXX" = no && can_build_shared=no 14793 14794 GCC_CXX="$GXX" 14795 LD_CXX="$LD" 14796 14797 ## CAVEAT EMPTOR: 14798 ## There is no encapsulation within the following macros, do not change 14799 ## the running order or otherwise move them around unless you know exactly 14800 ## what you are doing... 14801 # Dependencies to place before and after the object being linked: 14802predep_objects_CXX= 14803postdep_objects_CXX= 14804predeps_CXX= 14805postdeps_CXX= 14806compiler_lib_search_path_CXX= 14807 14808cat > conftest.$ac_ext <<_LT_EOF 14809class Foo 14810{ 14811public: 14812 Foo (void) { a = 0; } 14813private: 14814 int a; 14815}; 14816_LT_EOF 14817 14818 14819_lt_libdeps_save_CFLAGS=$CFLAGS 14820case "$CC $CFLAGS " in #( 14821*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14822*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14823*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14824esac 14825 14826if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14827 (eval $ac_compile) 2>&5 14828 ac_status=$? 14829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14830 test $ac_status = 0; }; then 14831 # Parse the compiler output and extract the necessary 14832 # objects, libraries and library flags. 14833 14834 # Sentinel used to keep track of whether or not we are before 14835 # the conftest object file. 14836 pre_test_object_deps_done=no 14837 14838 for p in `eval "$output_verbose_link_cmd"`; do 14839 case ${prev}${p} in 14840 14841 -L* | -R* | -l*) 14842 # Some compilers place space between "-{L,R}" and the path. 14843 # Remove the space. 14844 if test $p = "-L" || 14845 test $p = "-R"; then 14846 prev=$p 14847 continue 14848 fi 14849 14850 # Expand the sysroot to ease extracting the directories later. 14851 if test -z "$prev"; then 14852 case $p in 14853 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14854 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14855 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14856 esac 14857 fi 14858 case $p in 14859 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14860 esac 14861 if test "$pre_test_object_deps_done" = no; then 14862 case ${prev} in 14863 -L | -R) 14864 # Internal compiler library paths should come after those 14865 # provided the user. The postdeps already come after the 14866 # user supplied libs so there is no need to process them. 14867 if test -z "$compiler_lib_search_path_CXX"; then 14868 compiler_lib_search_path_CXX="${prev}${p}" 14869 else 14870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14871 fi 14872 ;; 14873 # The "-l" case would never come before the object being 14874 # linked, so don't bother handling this case. 14875 esac 14876 else 14877 if test -z "$postdeps_CXX"; then 14878 postdeps_CXX="${prev}${p}" 14879 else 14880 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14881 fi 14882 fi 14883 prev= 14884 ;; 14885 14886 *.lto.$objext) ;; # Ignore GCC LTO objects 14887 *.$objext) 14888 # This assumes that the test object file only shows up 14889 # once in the compiler output. 14890 if test "$p" = "conftest.$objext"; then 14891 pre_test_object_deps_done=yes 14892 continue 14893 fi 14894 14895 if test "$pre_test_object_deps_done" = no; then 14896 if test -z "$predep_objects_CXX"; then 14897 predep_objects_CXX="$p" 14898 else 14899 predep_objects_CXX="$predep_objects_CXX $p" 14900 fi 14901 else 14902 if test -z "$postdep_objects_CXX"; then 14903 postdep_objects_CXX="$p" 14904 else 14905 postdep_objects_CXX="$postdep_objects_CXX $p" 14906 fi 14907 fi 14908 ;; 14909 14910 *) ;; # Ignore the rest. 14911 14912 esac 14913 done 14914 14915 # Clean up. 14916 rm -f a.out a.exe 14917else 14918 echo "libtool.m4: error: problem compiling CXX test program" 14919fi 14920 14921$RM -f confest.$objext 14922CFLAGS=$_lt_libdeps_save_CFLAGS 14923 14924# PORTME: override above test on systems where it is broken 14925case $host_os in 14926interix[3-9]*) 14927 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14928 # hack all around it, let's just trust "g++" to DTRT. 14929 predep_objects_CXX= 14930 postdep_objects_CXX= 14931 postdeps_CXX= 14932 ;; 14933 14934linux*) 14935 case `$CC -V 2>&1 | sed 5q` in 14936 *Sun\ C*) 14937 # Sun C++ 5.9 14938 14939 # The more standards-conforming stlport4 library is 14940 # incompatible with the Cstd library. Avoid specifying 14941 # it if it's in CXXFLAGS. Ignore libCrun as 14942 # -library=stlport4 depends on it. 14943 case " $CXX $CXXFLAGS " in 14944 *" -library=stlport4 "*) 14945 solaris_use_stlport4=yes 14946 ;; 14947 esac 14948 14949 if test "$solaris_use_stlport4" != yes; then 14950 postdeps_CXX='-library=Cstd -library=Crun' 14951 fi 14952 ;; 14953 esac 14954 ;; 14955 14956solaris*) 14957 case $cc_basename in 14958 CC* | sunCC*) 14959 # The more standards-conforming stlport4 library is 14960 # incompatible with the Cstd library. Avoid specifying 14961 # it if it's in CXXFLAGS. Ignore libCrun as 14962 # -library=stlport4 depends on it. 14963 case " $CXX $CXXFLAGS " in 14964 *" -library=stlport4 "*) 14965 solaris_use_stlport4=yes 14966 ;; 14967 esac 14968 14969 # Adding this requires a known-good setup of shared libraries for 14970 # Sun compiler versions before 5.6, else PIC objects from an old 14971 # archive will be linked into the output, leading to subtle bugs. 14972 if test "$solaris_use_stlport4" != yes; then 14973 postdeps_CXX='-library=Cstd -library=Crun' 14974 fi 14975 ;; 14976 esac 14977 ;; 14978esac 14979 14980 14981case " $postdeps_CXX " in 14982*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14983esac 14984 compiler_lib_search_dirs_CXX= 14985if test -n "${compiler_lib_search_path_CXX}"; then 14986 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14987fi 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 lt_prog_compiler_wl_CXX= 15020lt_prog_compiler_pic_CXX= 15021lt_prog_compiler_static_CXX= 15022 15023 15024 # C++ specific cases for pic, static, wl, etc. 15025 if test "$GXX" = yes; then 15026 lt_prog_compiler_wl_CXX='-Wl,' 15027 lt_prog_compiler_static_CXX='-static' 15028 15029 case $host_os in 15030 aix*) 15031 # All AIX code is PIC. 15032 if test "$host_cpu" = ia64; then 15033 # AIX 5 now supports IA64 processor 15034 lt_prog_compiler_static_CXX='-Bstatic' 15035 fi 15036 ;; 15037 15038 amigaos*) 15039 case $host_cpu in 15040 powerpc) 15041 # see comment about AmigaOS4 .so support 15042 lt_prog_compiler_pic_CXX='-fPIC' 15043 ;; 15044 m68k) 15045 # FIXME: we need at least 68020 code to build shared libraries, but 15046 # adding the `-m68020' flag to GCC prevents building anything better, 15047 # like `-m68040'. 15048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15049 ;; 15050 esac 15051 ;; 15052 15053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15054 # PIC is the default for these OSes. 15055 ;; 15056 mingw* | cygwin* | os2* | pw32* | cegcc*) 15057 # This hack is so that the source file can tell whether it is being 15058 # built for inclusion in a dll (and should export symbols for example). 15059 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15060 # (--disable-auto-import) libraries 15061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15062 ;; 15063 darwin* | rhapsody*) 15064 # PIC is the default on this platform 15065 # Common symbols not allowed in MH_DYLIB files 15066 lt_prog_compiler_pic_CXX='-fno-common' 15067 ;; 15068 *djgpp*) 15069 # DJGPP does not support shared libraries at all 15070 lt_prog_compiler_pic_CXX= 15071 ;; 15072 haiku*) 15073 # PIC is the default for Haiku. 15074 # The "-static" flag exists, but is broken. 15075 lt_prog_compiler_static_CXX= 15076 ;; 15077 interix[3-9]*) 15078 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15079 # Instead, we relocate shared libraries at runtime. 15080 ;; 15081 sysv4*MP*) 15082 if test -d /usr/nec; then 15083 lt_prog_compiler_pic_CXX=-Kconform_pic 15084 fi 15085 ;; 15086 hpux*) 15087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15089 # sets the default TLS model and affects inlining. 15090 case $host_cpu in 15091 hppa*64*) 15092 ;; 15093 *) 15094 lt_prog_compiler_pic_CXX='-fPIC' 15095 ;; 15096 esac 15097 ;; 15098 *qnx* | *nto*) 15099 # QNX uses GNU C++, but need to define -shared option too, otherwise 15100 # it will coredump. 15101 lt_prog_compiler_pic_CXX='-fPIC -shared' 15102 ;; 15103 *) 15104 lt_prog_compiler_pic_CXX='-fPIC' 15105 ;; 15106 esac 15107 else 15108 case $host_os in 15109 aix[4-9]*) 15110 # All AIX code is PIC. 15111 if test "$host_cpu" = ia64; then 15112 # AIX 5 now supports IA64 processor 15113 lt_prog_compiler_static_CXX='-Bstatic' 15114 else 15115 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15116 fi 15117 ;; 15118 chorus*) 15119 case $cc_basename in 15120 cxch68*) 15121 # Green Hills C++ Compiler 15122 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15123 ;; 15124 esac 15125 ;; 15126 mingw* | cygwin* | os2* | pw32* | cegcc*) 15127 # This hack is so that the source file can tell whether it is being 15128 # built for inclusion in a dll (and should export symbols for example). 15129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15130 ;; 15131 dgux*) 15132 case $cc_basename in 15133 ec++*) 15134 lt_prog_compiler_pic_CXX='-KPIC' 15135 ;; 15136 ghcx*) 15137 # Green Hills C++ Compiler 15138 lt_prog_compiler_pic_CXX='-pic' 15139 ;; 15140 *) 15141 ;; 15142 esac 15143 ;; 15144 freebsd* | dragonfly*) 15145 # FreeBSD uses GNU C++ 15146 ;; 15147 hpux9* | hpux10* | hpux11*) 15148 case $cc_basename in 15149 CC*) 15150 lt_prog_compiler_wl_CXX='-Wl,' 15151 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15152 if test "$host_cpu" != ia64; then 15153 lt_prog_compiler_pic_CXX='+Z' 15154 fi 15155 ;; 15156 aCC*) 15157 lt_prog_compiler_wl_CXX='-Wl,' 15158 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15159 case $host_cpu in 15160 hppa*64*|ia64*) 15161 # +Z the default 15162 ;; 15163 *) 15164 lt_prog_compiler_pic_CXX='+Z' 15165 ;; 15166 esac 15167 ;; 15168 *) 15169 ;; 15170 esac 15171 ;; 15172 interix*) 15173 # This is c89, which is MS Visual C++ (no shared libs) 15174 # Anyone wants to do a port? 15175 ;; 15176 irix5* | irix6* | nonstopux*) 15177 case $cc_basename in 15178 CC*) 15179 lt_prog_compiler_wl_CXX='-Wl,' 15180 lt_prog_compiler_static_CXX='-non_shared' 15181 # CC pic flag -KPIC is the default. 15182 ;; 15183 *) 15184 ;; 15185 esac 15186 ;; 15187 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15188 case $cc_basename in 15189 KCC*) 15190 # KAI C++ Compiler 15191 lt_prog_compiler_wl_CXX='--backend -Wl,' 15192 lt_prog_compiler_pic_CXX='-fPIC' 15193 ;; 15194 ecpc* ) 15195 # old Intel C++ for x86_64 which still supported -KPIC. 15196 lt_prog_compiler_wl_CXX='-Wl,' 15197 lt_prog_compiler_pic_CXX='-KPIC' 15198 lt_prog_compiler_static_CXX='-static' 15199 ;; 15200 icpc* ) 15201 # Intel C++, used to be incompatible with GCC. 15202 # ICC 10 doesn't accept -KPIC any more. 15203 lt_prog_compiler_wl_CXX='-Wl,' 15204 lt_prog_compiler_pic_CXX='-fPIC' 15205 lt_prog_compiler_static_CXX='-static' 15206 ;; 15207 pgCC* | pgcpp*) 15208 # Portland Group C++ compiler 15209 lt_prog_compiler_wl_CXX='-Wl,' 15210 lt_prog_compiler_pic_CXX='-fpic' 15211 lt_prog_compiler_static_CXX='-Bstatic' 15212 ;; 15213 cxx*) 15214 # Compaq C++ 15215 # Make sure the PIC flag is empty. It appears that all Alpha 15216 # Linux and Compaq Tru64 Unix objects are PIC. 15217 lt_prog_compiler_pic_CXX= 15218 lt_prog_compiler_static_CXX='-non_shared' 15219 ;; 15220 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15221 # IBM XL 8.0, 9.0 on PPC and BlueGene 15222 lt_prog_compiler_wl_CXX='-Wl,' 15223 lt_prog_compiler_pic_CXX='-qpic' 15224 lt_prog_compiler_static_CXX='-qstaticlink' 15225 ;; 15226 *) 15227 case `$CC -V 2>&1 | sed 5q` in 15228 *Sun\ C*) 15229 # Sun C++ 5.9 15230 lt_prog_compiler_pic_CXX='-KPIC' 15231 lt_prog_compiler_static_CXX='-Bstatic' 15232 lt_prog_compiler_wl_CXX='-Qoption ld ' 15233 ;; 15234 esac 15235 ;; 15236 esac 15237 ;; 15238 lynxos*) 15239 ;; 15240 m88k*) 15241 ;; 15242 mvs*) 15243 case $cc_basename in 15244 cxx*) 15245 lt_prog_compiler_pic_CXX='-W c,exportall' 15246 ;; 15247 *) 15248 ;; 15249 esac 15250 ;; 15251 netbsd*) 15252 ;; 15253 *qnx* | *nto*) 15254 # QNX uses GNU C++, but need to define -shared option too, otherwise 15255 # it will coredump. 15256 lt_prog_compiler_pic_CXX='-fPIC -shared' 15257 ;; 15258 osf3* | osf4* | osf5*) 15259 case $cc_basename in 15260 KCC*) 15261 lt_prog_compiler_wl_CXX='--backend -Wl,' 15262 ;; 15263 RCC*) 15264 # Rational C++ 2.4.1 15265 lt_prog_compiler_pic_CXX='-pic' 15266 ;; 15267 cxx*) 15268 # Digital/Compaq C++ 15269 lt_prog_compiler_wl_CXX='-Wl,' 15270 # Make sure the PIC flag is empty. It appears that all Alpha 15271 # Linux and Compaq Tru64 Unix objects are PIC. 15272 lt_prog_compiler_pic_CXX= 15273 lt_prog_compiler_static_CXX='-non_shared' 15274 ;; 15275 *) 15276 ;; 15277 esac 15278 ;; 15279 psos*) 15280 ;; 15281 solaris*) 15282 case $cc_basename in 15283 CC* | sunCC*) 15284 # Sun C++ 4.2, 5.x and Centerline C++ 15285 lt_prog_compiler_pic_CXX='-KPIC' 15286 lt_prog_compiler_static_CXX='-Bstatic' 15287 lt_prog_compiler_wl_CXX='-Qoption ld ' 15288 ;; 15289 gcx*) 15290 # Green Hills C++ Compiler 15291 lt_prog_compiler_pic_CXX='-PIC' 15292 ;; 15293 *) 15294 ;; 15295 esac 15296 ;; 15297 sunos4*) 15298 case $cc_basename in 15299 CC*) 15300 # Sun C++ 4.x 15301 lt_prog_compiler_pic_CXX='-pic' 15302 lt_prog_compiler_static_CXX='-Bstatic' 15303 ;; 15304 lcc*) 15305 # Lucid 15306 lt_prog_compiler_pic_CXX='-pic' 15307 ;; 15308 *) 15309 ;; 15310 esac 15311 ;; 15312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15313 case $cc_basename in 15314 CC*) 15315 lt_prog_compiler_wl_CXX='-Wl,' 15316 lt_prog_compiler_pic_CXX='-KPIC' 15317 lt_prog_compiler_static_CXX='-Bstatic' 15318 ;; 15319 esac 15320 ;; 15321 tandem*) 15322 case $cc_basename in 15323 NCC*) 15324 # NonStop-UX NCC 3.20 15325 lt_prog_compiler_pic_CXX='-KPIC' 15326 ;; 15327 *) 15328 ;; 15329 esac 15330 ;; 15331 vxworks*) 15332 ;; 15333 *) 15334 lt_prog_compiler_can_build_shared_CXX=no 15335 ;; 15336 esac 15337 fi 15338 15339case $host_os in 15340 # For platforms which do not support PIC, -DPIC is meaningless: 15341 *djgpp*) 15342 lt_prog_compiler_pic_CXX= 15343 ;; 15344 *) 15345 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15346 ;; 15347esac 15348 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15350$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15351if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15352 $as_echo_n "(cached) " >&6 15353else 15354 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15355fi 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15357$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15358lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15359 15360# 15361# Check to make sure the PIC flag actually works. 15362# 15363if test -n "$lt_prog_compiler_pic_CXX"; then 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15365$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15366if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15367 $as_echo_n "(cached) " >&6 15368else 15369 lt_cv_prog_compiler_pic_works_CXX=no 15370 ac_outfile=conftest.$ac_objext 15371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15372 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15373 # Insert the option either (1) after the last *FLAGS variable, or 15374 # (2) before a word containing "conftest.", or (3) at the end. 15375 # Note that $ac_compile itself does not contain backslashes and begins 15376 # with a dollar sign (not a hyphen), so the echo should work correctly. 15377 # The option is referenced via a variable to avoid confusing sed. 15378 lt_compile=`echo "$ac_compile" | $SED \ 15379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15381 -e 's:$: $lt_compiler_flag:'` 15382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15383 (eval "$lt_compile" 2>conftest.err) 15384 ac_status=$? 15385 cat conftest.err >&5 15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15387 if (exit $ac_status) && test -s "$ac_outfile"; then 15388 # The compiler can only warn and ignore the option if not recognized 15389 # So say no if there are warnings other than the usual output. 15390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15393 lt_cv_prog_compiler_pic_works_CXX=yes 15394 fi 15395 fi 15396 $RM conftest* 15397 15398fi 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15400$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15401 15402if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15403 case $lt_prog_compiler_pic_CXX in 15404 "" | " "*) ;; 15405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15406 esac 15407else 15408 lt_prog_compiler_pic_CXX= 15409 lt_prog_compiler_can_build_shared_CXX=no 15410fi 15411 15412fi 15413 15414 15415 15416 15417 15418# 15419# Check to make sure the static flag actually works. 15420# 15421wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15423$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15424if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15425 $as_echo_n "(cached) " >&6 15426else 15427 lt_cv_prog_compiler_static_works_CXX=no 15428 save_LDFLAGS="$LDFLAGS" 15429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15430 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15432 # The linker can only warn and ignore the option if not recognized 15433 # So say no if there are warnings 15434 if test -s conftest.err; then 15435 # Append any errors to the config.log. 15436 cat conftest.err 1>&5 15437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15439 if diff conftest.exp conftest.er2 >/dev/null; then 15440 lt_cv_prog_compiler_static_works_CXX=yes 15441 fi 15442 else 15443 lt_cv_prog_compiler_static_works_CXX=yes 15444 fi 15445 fi 15446 $RM -r conftest* 15447 LDFLAGS="$save_LDFLAGS" 15448 15449fi 15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15451$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15452 15453if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15454 : 15455else 15456 lt_prog_compiler_static_CXX= 15457fi 15458 15459 15460 15461 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15464if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15465 $as_echo_n "(cached) " >&6 15466else 15467 lt_cv_prog_compiler_c_o_CXX=no 15468 $RM -r conftest 2>/dev/null 15469 mkdir conftest 15470 cd conftest 15471 mkdir out 15472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15473 15474 lt_compiler_flag="-o out/conftest2.$ac_objext" 15475 # Insert the option either (1) after the last *FLAGS variable, or 15476 # (2) before a word containing "conftest.", or (3) at the end. 15477 # Note that $ac_compile itself does not contain backslashes and begins 15478 # with a dollar sign (not a hyphen), so the echo should work correctly. 15479 lt_compile=`echo "$ac_compile" | $SED \ 15480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15482 -e 's:$: $lt_compiler_flag:'` 15483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15484 (eval "$lt_compile" 2>out/conftest.err) 15485 ac_status=$? 15486 cat out/conftest.err >&5 15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15488 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15489 then 15490 # The compiler can only warn and ignore the option if not recognized 15491 # So say no if there are warnings 15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15495 lt_cv_prog_compiler_c_o_CXX=yes 15496 fi 15497 fi 15498 chmod u+w . 2>&5 15499 $RM conftest* 15500 # SGI C++ compiler will create directory out/ii_files/ for 15501 # template instantiation 15502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15503 $RM out/* && rmdir out 15504 cd .. 15505 $RM -r conftest 15506 $RM conftest* 15507 15508fi 15509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15510$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15511 15512 15513 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15516if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15517 $as_echo_n "(cached) " >&6 15518else 15519 lt_cv_prog_compiler_c_o_CXX=no 15520 $RM -r conftest 2>/dev/null 15521 mkdir conftest 15522 cd conftest 15523 mkdir out 15524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15525 15526 lt_compiler_flag="-o out/conftest2.$ac_objext" 15527 # Insert the option either (1) after the last *FLAGS variable, or 15528 # (2) before a word containing "conftest.", or (3) at the end. 15529 # Note that $ac_compile itself does not contain backslashes and begins 15530 # with a dollar sign (not a hyphen), so the echo should work correctly. 15531 lt_compile=`echo "$ac_compile" | $SED \ 15532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15534 -e 's:$: $lt_compiler_flag:'` 15535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15536 (eval "$lt_compile" 2>out/conftest.err) 15537 ac_status=$? 15538 cat out/conftest.err >&5 15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15540 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15541 then 15542 # The compiler can only warn and ignore the option if not recognized 15543 # So say no if there are warnings 15544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15547 lt_cv_prog_compiler_c_o_CXX=yes 15548 fi 15549 fi 15550 chmod u+w . 2>&5 15551 $RM conftest* 15552 # SGI C++ compiler will create directory out/ii_files/ for 15553 # template instantiation 15554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15555 $RM out/* && rmdir out 15556 cd .. 15557 $RM -r conftest 15558 $RM conftest* 15559 15560fi 15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15562$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15563 15564 15565 15566 15567hard_links="nottested" 15568if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15569 # do not overwrite the value of need_locks provided by the user 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15571$as_echo_n "checking if we can lock with hard links... " >&6; } 15572 hard_links=yes 15573 $RM conftest* 15574 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15575 touch conftest.a 15576 ln conftest.a conftest.b 2>&5 || hard_links=no 15577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15579$as_echo "$hard_links" >&6; } 15580 if test "$hard_links" = no; then 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15582$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15583 need_locks=warn 15584 fi 15585else 15586 need_locks=no 15587fi 15588 15589 15590 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15592$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15593 15594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15595 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15596 case $host_os in 15597 aix[4-9]*) 15598 # If we're using GNU nm, then we don't want the "-C" option. 15599 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15600 # Also, AIX nm treats weak defined symbols like other global defined 15601 # symbols, whereas GNU nm marks them as "W". 15602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15603 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15604 else 15605 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15606 fi 15607 ;; 15608 pw32*) 15609 export_symbols_cmds_CXX="$ltdll_cmds" 15610 ;; 15611 cygwin* | mingw* | cegcc*) 15612 case $cc_basename in 15613 cl*) 15614 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15615 ;; 15616 *) 15617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15618 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15619 ;; 15620 esac 15621 ;; 15622 *) 15623 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15624 ;; 15625 esac 15626 15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15628$as_echo "$ld_shlibs_CXX" >&6; } 15629test "$ld_shlibs_CXX" = no && can_build_shared=no 15630 15631with_gnu_ld_CXX=$with_gnu_ld 15632 15633 15634 15635 15636 15637 15638# 15639# Do we need to explicitly link libc? 15640# 15641case "x$archive_cmds_need_lc_CXX" in 15642x|xyes) 15643 # Assume -lc should be added 15644 archive_cmds_need_lc_CXX=yes 15645 15646 if test "$enable_shared" = yes && test "$GCC" = yes; then 15647 case $archive_cmds_CXX in 15648 *'~'*) 15649 # FIXME: we may have to deal with multi-command sequences. 15650 ;; 15651 '$CC '*) 15652 # Test whether the compiler implicitly links with -lc since on some 15653 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15654 # to ld, don't add -lc before -lgcc. 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15656$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15657if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659else 15660 $RM conftest* 15661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15662 15663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15664 (eval $ac_compile) 2>&5 15665 ac_status=$? 15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15667 test $ac_status = 0; } 2>conftest.err; then 15668 soname=conftest 15669 lib=conftest 15670 libobjs=conftest.$ac_objext 15671 deplibs= 15672 wl=$lt_prog_compiler_wl_CXX 15673 pic_flag=$lt_prog_compiler_pic_CXX 15674 compiler_flags=-v 15675 linker_flags=-v 15676 verstring= 15677 output_objdir=. 15678 libname=conftest 15679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15680 allow_undefined_flag_CXX= 15681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15682 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15683 ac_status=$? 15684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15685 test $ac_status = 0; } 15686 then 15687 lt_cv_archive_cmds_need_lc_CXX=no 15688 else 15689 lt_cv_archive_cmds_need_lc_CXX=yes 15690 fi 15691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15692 else 15693 cat conftest.err 1>&5 15694 fi 15695 $RM conftest* 15696 15697fi 15698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15699$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15700 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15701 ;; 15702 esac 15703 fi 15704 ;; 15705esac 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15769$as_echo_n "checking dynamic linker characteristics... " >&6; } 15770 15771library_names_spec= 15772libname_spec='lib$name' 15773soname_spec= 15774shrext_cmds=".so" 15775postinstall_cmds= 15776postuninstall_cmds= 15777finish_cmds= 15778finish_eval= 15779shlibpath_var= 15780shlibpath_overrides_runpath=unknown 15781version_type=none 15782dynamic_linker="$host_os ld.so" 15783sys_lib_dlsearch_path_spec="/lib /usr/lib" 15784need_lib_prefix=unknown 15785hardcode_into_libs=no 15786 15787# when you set need_version to no, make sure it does not cause -set_version 15788# flags to be left without arguments 15789need_version=unknown 15790 15791case $host_os in 15792aix3*) 15793 version_type=linux # correct to gnu/linux during the next big refactor 15794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15795 shlibpath_var=LIBPATH 15796 15797 # AIX 3 has no versioning support, so we append a major version to the name. 15798 soname_spec='${libname}${release}${shared_ext}$major' 15799 ;; 15800 15801aix[4-9]*) 15802 version_type=linux # correct to gnu/linux during the next big refactor 15803 need_lib_prefix=no 15804 need_version=no 15805 hardcode_into_libs=yes 15806 if test "$host_cpu" = ia64; then 15807 # AIX 5 supports IA64 15808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15809 shlibpath_var=LD_LIBRARY_PATH 15810 else 15811 # With GCC up to 2.95.x, collect2 would create an import file 15812 # for dependence libraries. The import file would start with 15813 # the line `#! .'. This would cause the generated library to 15814 # depend on `.', always an invalid library. This was fixed in 15815 # development snapshots of GCC prior to 3.0. 15816 case $host_os in 15817 aix4 | aix4.[01] | aix4.[01].*) 15818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15819 echo ' yes ' 15820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15821 : 15822 else 15823 can_build_shared=no 15824 fi 15825 ;; 15826 esac 15827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15828 # soname into executable. Probably we can add versioning support to 15829 # collect2, so additional links can be useful in future. 15830 if test "$aix_use_runtimelinking" = yes; then 15831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15832 # instead of lib<name>.a to let people know that these are not 15833 # typical AIX shared libraries. 15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15835 else 15836 # We preserve .a as extension for shared libraries through AIX4.2 15837 # and later when we are not doing run time linking. 15838 library_names_spec='${libname}${release}.a $libname.a' 15839 soname_spec='${libname}${release}${shared_ext}$major' 15840 fi 15841 shlibpath_var=LIBPATH 15842 fi 15843 ;; 15844 15845amigaos*) 15846 case $host_cpu in 15847 powerpc) 15848 # Since July 2007 AmigaOS4 officially supports .so libraries. 15849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15851 ;; 15852 m68k) 15853 library_names_spec='$libname.ixlibrary $libname.a' 15854 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15855 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15856 ;; 15857 esac 15858 ;; 15859 15860beos*) 15861 library_names_spec='${libname}${shared_ext}' 15862 dynamic_linker="$host_os ld.so" 15863 shlibpath_var=LIBRARY_PATH 15864 ;; 15865 15866bsdi[45]*) 15867 version_type=linux # correct to gnu/linux during the next big refactor 15868 need_version=no 15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15870 soname_spec='${libname}${release}${shared_ext}$major' 15871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15872 shlibpath_var=LD_LIBRARY_PATH 15873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15875 # the default ld.so.conf also contains /usr/contrib/lib and 15876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15877 # libtool to hard-code these into programs 15878 ;; 15879 15880cygwin* | mingw* | pw32* | cegcc*) 15881 version_type=windows 15882 shrext_cmds=".dll" 15883 need_version=no 15884 need_lib_prefix=no 15885 15886 case $GCC,$cc_basename in 15887 yes,*) 15888 # gcc 15889 library_names_spec='$libname.dll.a' 15890 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15891 postinstall_cmds='base_file=`basename \${file}`~ 15892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15893 dldir=$destdir/`dirname \$dlpath`~ 15894 test -d \$dldir || mkdir -p \$dldir~ 15895 $install_prog $dir/$dlname \$dldir/$dlname~ 15896 chmod a+x \$dldir/$dlname~ 15897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15899 fi' 15900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15901 dlpath=$dir/\$dldll~ 15902 $RM \$dlpath' 15903 shlibpath_overrides_runpath=yes 15904 15905 case $host_os in 15906 cygwin*) 15907 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15909 15910 ;; 15911 mingw* | cegcc*) 15912 # MinGW DLLs use traditional 'lib' prefix 15913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15914 ;; 15915 pw32*) 15916 # pw32 DLLs use 'pw' prefix rather than 'lib' 15917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15918 ;; 15919 esac 15920 dynamic_linker='Win32 ld.exe' 15921 ;; 15922 15923 *,cl*) 15924 # Native MSVC 15925 libname_spec='$name' 15926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15927 library_names_spec='${libname}.dll.lib' 15928 15929 case $build_os in 15930 mingw*) 15931 sys_lib_search_path_spec= 15932 lt_save_ifs=$IFS 15933 IFS=';' 15934 for lt_path in $LIB 15935 do 15936 IFS=$lt_save_ifs 15937 # Let DOS variable expansion print the short 8.3 style file name. 15938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15940 done 15941 IFS=$lt_save_ifs 15942 # Convert to MSYS style. 15943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15944 ;; 15945 cygwin*) 15946 # Convert to unix form, then to dos form, then back to unix form 15947 # but this time dos style (no spaces!) so that the unix form looks 15948 # like /cygdrive/c/PROGRA~1:/cygdr... 15949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15952 ;; 15953 *) 15954 sys_lib_search_path_spec="$LIB" 15955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15956 # It is most probably a Windows format PATH. 15957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15958 else 15959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15960 fi 15961 # FIXME: find the short name or the path components, as spaces are 15962 # common. (e.g. "Program Files" -> "PROGRA~1") 15963 ;; 15964 esac 15965 15966 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15967 postinstall_cmds='base_file=`basename \${file}`~ 15968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15969 dldir=$destdir/`dirname \$dlpath`~ 15970 test -d \$dldir || mkdir -p \$dldir~ 15971 $install_prog $dir/$dlname \$dldir/$dlname' 15972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15973 dlpath=$dir/\$dldll~ 15974 $RM \$dlpath' 15975 shlibpath_overrides_runpath=yes 15976 dynamic_linker='Win32 link.exe' 15977 ;; 15978 15979 *) 15980 # Assume MSVC wrapper 15981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15982 dynamic_linker='Win32 ld.exe' 15983 ;; 15984 esac 15985 # FIXME: first we should search . and the directory the executable is in 15986 shlibpath_var=PATH 15987 ;; 15988 15989darwin* | rhapsody*) 15990 dynamic_linker="$host_os dyld" 15991 version_type=darwin 15992 need_lib_prefix=no 15993 need_version=no 15994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15995 soname_spec='${libname}${release}${major}$shared_ext' 15996 shlibpath_overrides_runpath=yes 15997 shlibpath_var=DYLD_LIBRARY_PATH 15998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15999 16000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16001 ;; 16002 16003dgux*) 16004 version_type=linux # correct to gnu/linux during the next big refactor 16005 need_lib_prefix=no 16006 need_version=no 16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16008 soname_spec='${libname}${release}${shared_ext}$major' 16009 shlibpath_var=LD_LIBRARY_PATH 16010 ;; 16011 16012freebsd* | dragonfly*) 16013 # DragonFly does not have aout. When/if they implement a new 16014 # versioning mechanism, adjust this. 16015 if test -x /usr/bin/objformat; then 16016 objformat=`/usr/bin/objformat` 16017 else 16018 case $host_os in 16019 freebsd[23].*) objformat=aout ;; 16020 *) objformat=elf ;; 16021 esac 16022 fi 16023 version_type=freebsd-$objformat 16024 case $version_type in 16025 freebsd-elf*) 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16027 need_version=no 16028 need_lib_prefix=no 16029 ;; 16030 freebsd-*) 16031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16032 need_version=yes 16033 ;; 16034 esac 16035 shlibpath_var=LD_LIBRARY_PATH 16036 case $host_os in 16037 freebsd2.*) 16038 shlibpath_overrides_runpath=yes 16039 ;; 16040 freebsd3.[01]* | freebsdelf3.[01]*) 16041 shlibpath_overrides_runpath=yes 16042 hardcode_into_libs=yes 16043 ;; 16044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16046 shlibpath_overrides_runpath=no 16047 hardcode_into_libs=yes 16048 ;; 16049 *) # from 4.6 on, and DragonFly 16050 shlibpath_overrides_runpath=yes 16051 hardcode_into_libs=yes 16052 ;; 16053 esac 16054 ;; 16055 16056gnu*) 16057 version_type=linux # correct to gnu/linux during the next big refactor 16058 need_lib_prefix=no 16059 need_version=no 16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16061 soname_spec='${libname}${release}${shared_ext}$major' 16062 shlibpath_var=LD_LIBRARY_PATH 16063 shlibpath_overrides_runpath=no 16064 hardcode_into_libs=yes 16065 ;; 16066 16067haiku*) 16068 version_type=linux # correct to gnu/linux during the next big refactor 16069 need_lib_prefix=no 16070 need_version=no 16071 dynamic_linker="$host_os runtime_loader" 16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16073 soname_spec='${libname}${release}${shared_ext}$major' 16074 shlibpath_var=LIBRARY_PATH 16075 shlibpath_overrides_runpath=yes 16076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16077 hardcode_into_libs=yes 16078 ;; 16079 16080hpux9* | hpux10* | hpux11*) 16081 # Give a soname corresponding to the major version so that dld.sl refuses to 16082 # link against other versions. 16083 version_type=sunos 16084 need_lib_prefix=no 16085 need_version=no 16086 case $host_cpu in 16087 ia64*) 16088 shrext_cmds='.so' 16089 hardcode_into_libs=yes 16090 dynamic_linker="$host_os dld.so" 16091 shlibpath_var=LD_LIBRARY_PATH 16092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16094 soname_spec='${libname}${release}${shared_ext}$major' 16095 if test "X$HPUX_IA64_MODE" = X32; then 16096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16097 else 16098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16099 fi 16100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16101 ;; 16102 hppa*64*) 16103 shrext_cmds='.sl' 16104 hardcode_into_libs=yes 16105 dynamic_linker="$host_os dld.sl" 16106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16109 soname_spec='${libname}${release}${shared_ext}$major' 16110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16112 ;; 16113 *) 16114 shrext_cmds='.sl' 16115 dynamic_linker="$host_os dld.sl" 16116 shlibpath_var=SHLIB_PATH 16117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16119 soname_spec='${libname}${release}${shared_ext}$major' 16120 ;; 16121 esac 16122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16123 postinstall_cmds='chmod 555 $lib' 16124 # or fails outright, so override atomically: 16125 install_override_mode=555 16126 ;; 16127 16128interix[3-9]*) 16129 version_type=linux # correct to gnu/linux during the next big refactor 16130 need_lib_prefix=no 16131 need_version=no 16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16133 soname_spec='${libname}${release}${shared_ext}$major' 16134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16135 shlibpath_var=LD_LIBRARY_PATH 16136 shlibpath_overrides_runpath=no 16137 hardcode_into_libs=yes 16138 ;; 16139 16140irix5* | irix6* | nonstopux*) 16141 case $host_os in 16142 nonstopux*) version_type=nonstopux ;; 16143 *) 16144 if test "$lt_cv_prog_gnu_ld" = yes; then 16145 version_type=linux # correct to gnu/linux during the next big refactor 16146 else 16147 version_type=irix 16148 fi ;; 16149 esac 16150 need_lib_prefix=no 16151 need_version=no 16152 soname_spec='${libname}${release}${shared_ext}$major' 16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16154 case $host_os in 16155 irix5* | nonstopux*) 16156 libsuff= shlibsuff= 16157 ;; 16158 *) 16159 case $LD in # libtool.m4 will add one of these switches to LD 16160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16161 libsuff= shlibsuff= libmagic=32-bit;; 16162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16163 libsuff=32 shlibsuff=N32 libmagic=N32;; 16164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16165 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16166 *) libsuff= shlibsuff= libmagic=never-match;; 16167 esac 16168 ;; 16169 esac 16170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16171 shlibpath_overrides_runpath=no 16172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16174 hardcode_into_libs=yes 16175 ;; 16176 16177# No shared lib support for Linux oldld, aout, or coff. 16178linux*oldld* | linux*aout* | linux*coff*) 16179 dynamic_linker=no 16180 ;; 16181 16182# This must be glibc/ELF. 16183linux* | k*bsd*-gnu | kopensolaris*-gnu) 16184 version_type=linux # correct to gnu/linux during the next big refactor 16185 need_lib_prefix=no 16186 need_version=no 16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16188 soname_spec='${libname}${release}${shared_ext}$major' 16189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16190 shlibpath_var=LD_LIBRARY_PATH 16191 shlibpath_overrides_runpath=no 16192 16193 # Some binutils ld are patched to set DT_RUNPATH 16194 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 lt_cv_shlibpath_overrides_runpath=no 16198 save_LDFLAGS=$LDFLAGS 16199 save_libdir=$libdir 16200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203/* end confdefs.h. */ 16204 16205int 16206main () 16207{ 16208 16209 ; 16210 return 0; 16211} 16212_ACEOF 16213if ac_fn_cxx_try_link "$LINENO"; then : 16214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16215 lt_cv_shlibpath_overrides_runpath=yes 16216fi 16217fi 16218rm -f core conftest.err conftest.$ac_objext \ 16219 conftest$ac_exeext conftest.$ac_ext 16220 LDFLAGS=$save_LDFLAGS 16221 libdir=$save_libdir 16222 16223fi 16224 16225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16226 16227 # This implies no fast_install, which is unacceptable. 16228 # Some rework will be needed to allow for fast_install 16229 # before this can be enabled. 16230 hardcode_into_libs=yes 16231 16232 # Add ABI-specific directories to the system library path. 16233 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16234 16235 # Append ld.so.conf contents to the search path 16236 if test -f /etc/ld.so.conf; then 16237 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' ' '` 16238 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16239 16240 fi 16241 16242 # We used to test for /lib/ld.so.1 and disable shared libraries on 16243 # powerpc, because MkLinux only supported shared libraries with the 16244 # GNU dynamic linker. Since this was broken with cross compilers, 16245 # most powerpc-linux boxes support dynamic linking these days and 16246 # people can always --disable-shared, the test was removed, and we 16247 # assume the GNU/Linux dynamic linker is in use. 16248 dynamic_linker='GNU/Linux ld.so' 16249 ;; 16250 16251netbsd*) 16252 version_type=sunos 16253 need_lib_prefix=no 16254 need_version=no 16255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16258 dynamic_linker='NetBSD (a.out) ld.so' 16259 else 16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16261 soname_spec='${libname}${release}${shared_ext}$major' 16262 dynamic_linker='NetBSD ld.elf_so' 16263 fi 16264 shlibpath_var=LD_LIBRARY_PATH 16265 shlibpath_overrides_runpath=yes 16266 hardcode_into_libs=yes 16267 ;; 16268 16269newsos6) 16270 version_type=linux # correct to gnu/linux during the next big refactor 16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16272 shlibpath_var=LD_LIBRARY_PATH 16273 shlibpath_overrides_runpath=yes 16274 ;; 16275 16276*nto* | *qnx*) 16277 version_type=qnx 16278 need_lib_prefix=no 16279 need_version=no 16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 shlibpath_var=LD_LIBRARY_PATH 16283 shlibpath_overrides_runpath=no 16284 hardcode_into_libs=yes 16285 dynamic_linker='ldqnx.so' 16286 ;; 16287 16288openbsd*) 16289 version_type=sunos 16290 sys_lib_dlsearch_path_spec="/usr/lib" 16291 need_lib_prefix=no 16292 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16293 case $host_os in 16294 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16295 *) need_version=no ;; 16296 esac 16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16299 shlibpath_var=LD_LIBRARY_PATH 16300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16301 case $host_os in 16302 openbsd2.[89] | openbsd2.[89].*) 16303 shlibpath_overrides_runpath=no 16304 ;; 16305 *) 16306 shlibpath_overrides_runpath=yes 16307 ;; 16308 esac 16309 else 16310 shlibpath_overrides_runpath=yes 16311 fi 16312 ;; 16313 16314os2*) 16315 libname_spec='$name' 16316 shrext_cmds=".dll" 16317 need_lib_prefix=no 16318 library_names_spec='$libname${shared_ext} $libname.a' 16319 dynamic_linker='OS/2 ld.exe' 16320 shlibpath_var=LIBPATH 16321 ;; 16322 16323osf3* | osf4* | osf5*) 16324 version_type=osf 16325 need_lib_prefix=no 16326 need_version=no 16327 soname_spec='${libname}${release}${shared_ext}$major' 16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16329 shlibpath_var=LD_LIBRARY_PATH 16330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16332 ;; 16333 16334rdos*) 16335 dynamic_linker=no 16336 ;; 16337 16338solaris*) 16339 version_type=linux # correct to gnu/linux during the next big refactor 16340 need_lib_prefix=no 16341 need_version=no 16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16343 soname_spec='${libname}${release}${shared_ext}$major' 16344 shlibpath_var=LD_LIBRARY_PATH 16345 shlibpath_overrides_runpath=yes 16346 hardcode_into_libs=yes 16347 # ldd complains unless libraries are executable 16348 postinstall_cmds='chmod +x $lib' 16349 ;; 16350 16351sunos4*) 16352 version_type=sunos 16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 shlibpath_overrides_runpath=yes 16357 if test "$with_gnu_ld" = yes; then 16358 need_lib_prefix=no 16359 fi 16360 need_version=yes 16361 ;; 16362 16363sysv4 | sysv4.3*) 16364 version_type=linux # correct to gnu/linux during the next big refactor 16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16366 soname_spec='${libname}${release}${shared_ext}$major' 16367 shlibpath_var=LD_LIBRARY_PATH 16368 case $host_vendor in 16369 sni) 16370 shlibpath_overrides_runpath=no 16371 need_lib_prefix=no 16372 runpath_var=LD_RUN_PATH 16373 ;; 16374 siemens) 16375 need_lib_prefix=no 16376 ;; 16377 motorola) 16378 need_lib_prefix=no 16379 need_version=no 16380 shlibpath_overrides_runpath=no 16381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16382 ;; 16383 esac 16384 ;; 16385 16386sysv4*MP*) 16387 if test -d /usr/nec ;then 16388 version_type=linux # correct to gnu/linux during the next big refactor 16389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16390 soname_spec='$libname${shared_ext}.$major' 16391 shlibpath_var=LD_LIBRARY_PATH 16392 fi 16393 ;; 16394 16395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16396 version_type=freebsd-elf 16397 need_lib_prefix=no 16398 need_version=no 16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16400 soname_spec='${libname}${release}${shared_ext}$major' 16401 shlibpath_var=LD_LIBRARY_PATH 16402 shlibpath_overrides_runpath=yes 16403 hardcode_into_libs=yes 16404 if test "$with_gnu_ld" = yes; then 16405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16406 else 16407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16408 case $host_os in 16409 sco3.2v5*) 16410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16411 ;; 16412 esac 16413 fi 16414 sys_lib_dlsearch_path_spec='/usr/lib' 16415 ;; 16416 16417tpf*) 16418 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16419 version_type=linux # correct to gnu/linux during the next big refactor 16420 need_lib_prefix=no 16421 need_version=no 16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16423 shlibpath_var=LD_LIBRARY_PATH 16424 shlibpath_overrides_runpath=no 16425 hardcode_into_libs=yes 16426 ;; 16427 16428uts4*) 16429 version_type=linux # correct to gnu/linux during the next big refactor 16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16431 soname_spec='${libname}${release}${shared_ext}$major' 16432 shlibpath_var=LD_LIBRARY_PATH 16433 ;; 16434 16435*) 16436 dynamic_linker=no 16437 ;; 16438esac 16439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16440$as_echo "$dynamic_linker" >&6; } 16441test "$dynamic_linker" = no && can_build_shared=no 16442 16443variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16444if test "$GCC" = yes; then 16445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16446fi 16447 16448if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16449 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16450fi 16451if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16452 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16453fi 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16493$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16494hardcode_action_CXX= 16495if test -n "$hardcode_libdir_flag_spec_CXX" || 16496 test -n "$runpath_var_CXX" || 16497 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16498 16499 # We can hardcode non-existent directories. 16500 if test "$hardcode_direct_CXX" != no && 16501 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16502 # have to relink, otherwise we might link with an installed library 16503 # when we should be linking with a yet-to-be-installed one 16504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16505 test "$hardcode_minus_L_CXX" != no; then 16506 # Linking always hardcodes the temporary library directory. 16507 hardcode_action_CXX=relink 16508 else 16509 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16510 hardcode_action_CXX=immediate 16511 fi 16512else 16513 # We cannot hardcode anything, or else we can only hardcode existing 16514 # directories. 16515 hardcode_action_CXX=unsupported 16516fi 16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16518$as_echo "$hardcode_action_CXX" >&6; } 16519 16520if test "$hardcode_action_CXX" = relink || 16521 test "$inherit_rpath_CXX" = yes; then 16522 # Fast installation is not supported 16523 enable_fast_install=no 16524elif test "$shlibpath_overrides_runpath" = yes || 16525 test "$enable_shared" = no; then 16526 # Fast installation is not necessary 16527 enable_fast_install=needless 16528fi 16529 16530 16531 16532 16533 16534 16535 16536 fi # test -n "$compiler" 16537 16538 CC=$lt_save_CC 16539 CFLAGS=$lt_save_CFLAGS 16540 LDCXX=$LD 16541 LD=$lt_save_LD 16542 GCC=$lt_save_GCC 16543 with_gnu_ld=$lt_save_with_gnu_ld 16544 lt_cv_path_LDCXX=$lt_cv_path_LD 16545 lt_cv_path_LD=$lt_save_path_LD 16546 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16547 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16548fi # test "$_lt_caught_CXX_error" != yes 16549 16550ac_ext=c 16551ac_cpp='$CPP $CPPFLAGS' 16552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16554ac_compiler_gnu=$ac_cv_c_compiler_gnu 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 ac_config_commands="$ac_config_commands libtool" 16571 16572 16573 16574 16575# Only expand once: 16576 16577 16578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16579$as_echo_n "checking whether ln -s works... " >&6; } 16580LN_S=$as_ln_s 16581if test "$LN_S" = "ln -s"; then 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16583$as_echo "yes" >&6; } 16584else 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16586$as_echo "no, using $LN_S" >&6; } 16587fi 16588 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 16590$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 16591set x ${MAKE-make} 16592ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 16593if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 16594 $as_echo_n "(cached) " >&6 16595else 16596 cat >conftest.make <<\_ACEOF 16597SHELL = /bin/sh 16598all: 16599 @echo '@@@%%%=$(MAKE)=@@@%%%' 16600_ACEOF 16601# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 16602case `${MAKE-make} -f conftest.make 2>/dev/null` in 16603 *@@@%%%=?*=@@@%%%*) 16604 eval ac_cv_prog_make_${ac_make}_set=yes;; 16605 *) 16606 eval ac_cv_prog_make_${ac_make}_set=no;; 16607esac 16608rm -f conftest.make 16609fi 16610if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16612$as_echo "yes" >&6; } 16613 SET_MAKE= 16614else 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16616$as_echo "no" >&6; } 16617 SET_MAKE="MAKE=${MAKE-make}" 16618fi 16619 16620 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 16622$as_echo_n "checking whether NLS is requested... " >&6; } 16623 # Check whether --enable-nls was given. 16624if test "${enable_nls+set}" = set; then : 16625 enableval=$enable_nls; USE_NLS=$enableval 16626else 16627 USE_NLS=yes 16628fi 16629 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 16631$as_echo "$USE_NLS" >&6; } 16632 16633 16634 16635 16636case "$am__api_version" in 16637 1.01234) 16638 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 16639 ;; 16640 *) 16641 ;; 16642esac 16643 16644INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.21 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 16645INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 16646INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 16647if test -n "0.21"; then 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.21" >&5 16649$as_echo_n "checking for intltool >= 0.21... " >&6; } 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 16651$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } 16652 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 16653 as_fn_error $? "Your intltool is too old. You need intltool 0.21 or later." "$LINENO" 5 16654fi 16655 16656# Extract the first word of "intltool-update", so it can be a program name with args. 16657set dummy intltool-update; ac_word=$2 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16659$as_echo_n "checking for $ac_word... " >&6; } 16660if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : 16661 $as_echo_n "(cached) " >&6 16662else 16663 case $INTLTOOL_UPDATE in 16664 [\\/]* | ?:[\\/]*) 16665 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. 16666 ;; 16667 *) 16668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16669for as_dir in $PATH 16670do 16671 IFS=$as_save_IFS 16672 test -z "$as_dir" && as_dir=. 16673 for ac_exec_ext in '' $ac_executable_extensions; do 16674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16675 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" 16676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16677 break 2 16678 fi 16679done 16680 done 16681IFS=$as_save_IFS 16682 16683 ;; 16684esac 16685fi 16686INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE 16687if test -n "$INTLTOOL_UPDATE"; then 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 16689$as_echo "$INTLTOOL_UPDATE" >&6; } 16690else 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16692$as_echo "no" >&6; } 16693fi 16694 16695 16696# Extract the first word of "intltool-merge", so it can be a program name with args. 16697set dummy intltool-merge; ac_word=$2 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16699$as_echo_n "checking for $ac_word... " >&6; } 16700if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 case $INTLTOOL_MERGE in 16704 [\\/]* | ?:[\\/]*) 16705 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. 16706 ;; 16707 *) 16708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16709for as_dir in $PATH 16710do 16711 IFS=$as_save_IFS 16712 test -z "$as_dir" && as_dir=. 16713 for ac_exec_ext in '' $ac_executable_extensions; do 16714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16715 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" 16716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16717 break 2 16718 fi 16719done 16720 done 16721IFS=$as_save_IFS 16722 16723 ;; 16724esac 16725fi 16726INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE 16727if test -n "$INTLTOOL_MERGE"; then 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 16729$as_echo "$INTLTOOL_MERGE" >&6; } 16730else 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16732$as_echo "no" >&6; } 16733fi 16734 16735 16736# Extract the first word of "intltool-extract", so it can be a program name with args. 16737set dummy intltool-extract; ac_word=$2 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16739$as_echo_n "checking for $ac_word... " >&6; } 16740if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 case $INTLTOOL_EXTRACT in 16744 [\\/]* | ?:[\\/]*) 16745 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. 16746 ;; 16747 *) 16748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16749for as_dir in $PATH 16750do 16751 IFS=$as_save_IFS 16752 test -z "$as_dir" && as_dir=. 16753 for ac_exec_ext in '' $ac_executable_extensions; do 16754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16755 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" 16756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16757 break 2 16758 fi 16759done 16760 done 16761IFS=$as_save_IFS 16762 16763 ;; 16764esac 16765fi 16766INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT 16767if test -n "$INTLTOOL_EXTRACT"; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 16769$as_echo "$INTLTOOL_EXTRACT" >&6; } 16770else 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16772$as_echo "no" >&6; } 16773fi 16774 16775 16776if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 16777 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 16778fi 16779 16780if test -z "$AM_DEFAULT_VERBOSITY"; then 16781 AM_DEFAULT_VERBOSITY=1 16782fi 16783 16784 16785INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 16786INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 16787INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' 16788 16789 16790 16791 16792INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 16793intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 16794intltool__v_merge_options_0='-q' 16795 16796 16797 16798 16799 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16800INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16801 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16802 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16803 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' 16804 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16805 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16806 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16807INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16808 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16809 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16810if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 16811 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' 16812else 16813 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' 16814fi 16815 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16816 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16817 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16818 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16819 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16820 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16821 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919# Check the gettext tools to make sure they are GNU 16920# Extract the first word of "xgettext", so it can be a program name with args. 16921set dummy xgettext; ac_word=$2 16922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16923$as_echo_n "checking for $ac_word... " >&6; } 16924if ${ac_cv_path_XGETTEXT+:} false; then : 16925 $as_echo_n "(cached) " >&6 16926else 16927 case $XGETTEXT in 16928 [\\/]* | ?:[\\/]*) 16929 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 16930 ;; 16931 *) 16932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16933for as_dir in $PATH 16934do 16935 IFS=$as_save_IFS 16936 test -z "$as_dir" && as_dir=. 16937 for ac_exec_ext in '' $ac_executable_extensions; do 16938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16939 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 16940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16941 break 2 16942 fi 16943done 16944 done 16945IFS=$as_save_IFS 16946 16947 ;; 16948esac 16949fi 16950XGETTEXT=$ac_cv_path_XGETTEXT 16951if test -n "$XGETTEXT"; then 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 16953$as_echo "$XGETTEXT" >&6; } 16954else 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16956$as_echo "no" >&6; } 16957fi 16958 16959 16960# Extract the first word of "msgmerge", so it can be a program name with args. 16961set dummy msgmerge; ac_word=$2 16962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16963$as_echo_n "checking for $ac_word... " >&6; } 16964if ${ac_cv_path_MSGMERGE+:} false; then : 16965 $as_echo_n "(cached) " >&6 16966else 16967 case $MSGMERGE in 16968 [\\/]* | ?:[\\/]*) 16969 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 16970 ;; 16971 *) 16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16973for as_dir in $PATH 16974do 16975 IFS=$as_save_IFS 16976 test -z "$as_dir" && as_dir=. 16977 for ac_exec_ext in '' $ac_executable_extensions; do 16978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16979 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 16980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16981 break 2 16982 fi 16983done 16984 done 16985IFS=$as_save_IFS 16986 16987 ;; 16988esac 16989fi 16990MSGMERGE=$ac_cv_path_MSGMERGE 16991if test -n "$MSGMERGE"; then 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 16993$as_echo "$MSGMERGE" >&6; } 16994else 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16996$as_echo "no" >&6; } 16997fi 16998 16999 17000# Extract the first word of "msgfmt", so it can be a program name with args. 17001set dummy msgfmt; ac_word=$2 17002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17003$as_echo_n "checking for $ac_word... " >&6; } 17004if ${ac_cv_path_MSGFMT+:} false; then : 17005 $as_echo_n "(cached) " >&6 17006else 17007 case $MSGFMT in 17008 [\\/]* | ?:[\\/]*) 17009 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 17010 ;; 17011 *) 17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17013for as_dir in $PATH 17014do 17015 IFS=$as_save_IFS 17016 test -z "$as_dir" && as_dir=. 17017 for ac_exec_ext in '' $ac_executable_extensions; do 17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17019 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17021 break 2 17022 fi 17023done 17024 done 17025IFS=$as_save_IFS 17026 17027 ;; 17028esac 17029fi 17030MSGFMT=$ac_cv_path_MSGFMT 17031if test -n "$MSGFMT"; then 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 17033$as_echo "$MSGFMT" >&6; } 17034else 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17036$as_echo "no" >&6; } 17037fi 17038 17039 17040# Extract the first word of "gmsgfmt", so it can be a program name with args. 17041set dummy gmsgfmt; ac_word=$2 17042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17043$as_echo_n "checking for $ac_word... " >&6; } 17044if ${ac_cv_path_GMSGFMT+:} false; then : 17045 $as_echo_n "(cached) " >&6 17046else 17047 case $GMSGFMT in 17048 [\\/]* | ?:[\\/]*) 17049 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 17050 ;; 17051 *) 17052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17053for as_dir in $PATH 17054do 17055 IFS=$as_save_IFS 17056 test -z "$as_dir" && as_dir=. 17057 for ac_exec_ext in '' $ac_executable_extensions; do 17058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17059 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 17060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17061 break 2 17062 fi 17063done 17064 done 17065IFS=$as_save_IFS 17066 17067 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 17068 ;; 17069esac 17070fi 17071GMSGFMT=$ac_cv_path_GMSGFMT 17072if test -n "$GMSGFMT"; then 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 17074$as_echo "$GMSGFMT" >&6; } 17075else 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17077$as_echo "no" >&6; } 17078fi 17079 17080 17081if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 17082 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 17083fi 17084xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 17085mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 17086mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 17087if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 17088 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 17089fi 17090 17091# Extract the first word of "perl", so it can be a program name with args. 17092set dummy perl; ac_word=$2 17093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17094$as_echo_n "checking for $ac_word... " >&6; } 17095if ${ac_cv_path_INTLTOOL_PERL+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097else 17098 case $INTLTOOL_PERL in 17099 [\\/]* | ?:[\\/]*) 17100 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 17101 ;; 17102 *) 17103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17104for as_dir in $PATH 17105do 17106 IFS=$as_save_IFS 17107 test -z "$as_dir" && as_dir=. 17108 for ac_exec_ext in '' $ac_executable_extensions; do 17109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17110 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 17111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17112 break 2 17113 fi 17114done 17115 done 17116IFS=$as_save_IFS 17117 17118 ;; 17119esac 17120fi 17121INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 17122if test -n "$INTLTOOL_PERL"; then 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 17124$as_echo "$INTLTOOL_PERL" >&6; } 17125else 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17127$as_echo "no" >&6; } 17128fi 17129 17130 17131if test -z "$INTLTOOL_PERL"; then 17132 as_fn_error $? "perl not found" "$LINENO" 5 17133fi 17134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 17135$as_echo_n "checking for perl >= 5.8.1... " >&6; } 17136$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 17137if test $? -ne 0; then 17138 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 17139else 17140 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 17142$as_echo "$IT_PERL_VERSION" >&6; } 17143fi 17144if test "x" != "xno-xml"; then 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 17146$as_echo_n "checking for XML::Parser... " >&6; } 17147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17149$as_echo "ok" >&6; } 17150 else 17151 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 17152 fi 17153fi 17154 17155# Substitute ALL_LINGUAS so we can use it in po/Makefile 17156 17157 17158# Set DATADIRNAME correctly if it is not set yet 17159# (copied from glib-gettext.m4) 17160if test -z "$DATADIRNAME"; then 17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17162/* end confdefs.h. */ 17163 17164int 17165main () 17166{ 17167extern int _nl_msg_cat_cntr; 17168 return _nl_msg_cat_cntr 17169 ; 17170 return 0; 17171} 17172_ACEOF 17173if ac_fn_c_try_link "$LINENO"; then : 17174 DATADIRNAME=share 17175else 17176 case $host in 17177 *-*-solaris*) 17178 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 17179if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 17180 DATADIRNAME=share 17181else 17182 DATADIRNAME=lib 17183fi 17184 17185 ;; 17186 *) 17187 DATADIRNAME=lib 17188 ;; 17189 esac 17190fi 17191rm -f core conftest.err conftest.$ac_objext \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194 17195 17196 17197 17198 17199 17200for ac_func in localtime_r 17201do : 17202 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 17203if test "x$ac_cv_func_localtime_r" = xyes; then : 17204 cat >>confdefs.h <<_ACEOF 17205#define HAVE_LOCALTIME_R 1 17206_ACEOF 17207 17208fi 17209done 17210 17211ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 17212" 17213if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 17214 17215cat >>confdefs.h <<_ACEOF 17216#define HAVE_STRUCT_TM_TM_GMTOFF 1 17217_ACEOF 17218 17219 17220fi 17221 17222 17223 17224 17225 17226 17227 17228 17229if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17230 if test -n "$ac_tool_prefix"; then 17231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17232set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17234$as_echo_n "checking for $ac_word... " >&6; } 17235if ${ac_cv_path_PKG_CONFIG+:} false; then : 17236 $as_echo_n "(cached) " >&6 17237else 17238 case $PKG_CONFIG in 17239 [\\/]* | ?:[\\/]*) 17240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17241 ;; 17242 *) 17243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17244for as_dir in $PATH 17245do 17246 IFS=$as_save_IFS 17247 test -z "$as_dir" && as_dir=. 17248 for ac_exec_ext in '' $ac_executable_extensions; do 17249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17252 break 2 17253 fi 17254done 17255 done 17256IFS=$as_save_IFS 17257 17258 ;; 17259esac 17260fi 17261PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17262if test -n "$PKG_CONFIG"; then 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17264$as_echo "$PKG_CONFIG" >&6; } 17265else 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17267$as_echo "no" >&6; } 17268fi 17269 17270 17271fi 17272if test -z "$ac_cv_path_PKG_CONFIG"; then 17273 ac_pt_PKG_CONFIG=$PKG_CONFIG 17274 # Extract the first word of "pkg-config", so it can be a program name with args. 17275set dummy pkg-config; ac_word=$2 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17277$as_echo_n "checking for $ac_word... " >&6; } 17278if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17279 $as_echo_n "(cached) " >&6 17280else 17281 case $ac_pt_PKG_CONFIG in 17282 [\\/]* | ?:[\\/]*) 17283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17284 ;; 17285 *) 17286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17287for as_dir in $PATH 17288do 17289 IFS=$as_save_IFS 17290 test -z "$as_dir" && as_dir=. 17291 for ac_exec_ext in '' $ac_executable_extensions; do 17292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17293 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17295 break 2 17296 fi 17297done 17298 done 17299IFS=$as_save_IFS 17300 17301 ;; 17302esac 17303fi 17304ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17305if test -n "$ac_pt_PKG_CONFIG"; then 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17307$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17308else 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17310$as_echo "no" >&6; } 17311fi 17312 17313 if test "x$ac_pt_PKG_CONFIG" = x; then 17314 PKG_CONFIG="" 17315 else 17316 case $cross_compiling:$ac_tool_warned in 17317yes:) 17318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17320ac_tool_warned=yes ;; 17321esac 17322 PKG_CONFIG=$ac_pt_PKG_CONFIG 17323 fi 17324else 17325 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17326fi 17327 17328fi 17329if test -n "$PKG_CONFIG"; then 17330 _pkg_min_version=0.9.0 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17332$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17333 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17335$as_echo "yes" >&6; } 17336 else 17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17338$as_echo "no" >&6; } 17339 PKG_CONFIG="" 17340 fi 17341fi 17342 17343pkg_failed=no 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGPOD" >&5 17345$as_echo_n "checking for LIBGPOD... " >&6; } 17346 17347if test -n "$LIBGPOD_CFLAGS"; then 17348 pkg_cv_LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS" 17349 elif test -n "$PKG_CONFIG"; then 17350 if test -n "$PKG_CONFIG" && \ 17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0\""; } >&5 17352 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0") 2>&5 17353 ac_status=$? 17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17355 test $ac_status = 0; }; then 17356 pkg_cv_LIBGPOD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0" 2>/dev/null` 17357 test "x$?" != "x0" && pkg_failed=yes 17358else 17359 pkg_failed=yes 17360fi 17361 else 17362 pkg_failed=untried 17363fi 17364if test -n "$LIBGPOD_LIBS"; then 17365 pkg_cv_LIBGPOD_LIBS="$LIBGPOD_LIBS" 17366 elif test -n "$PKG_CONFIG"; then 17367 if test -n "$PKG_CONFIG" && \ 17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0\""; } >&5 17369 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0") 2>&5 17370 ac_status=$? 17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17372 test $ac_status = 0; }; then 17373 pkg_cv_LIBGPOD_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0" 2>/dev/null` 17374 test "x$?" != "x0" && pkg_failed=yes 17375else 17376 pkg_failed=yes 17377fi 17378 else 17379 pkg_failed=untried 17380fi 17381 17382 17383 17384if test $pkg_failed = yes; then 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17386$as_echo "no" >&6; } 17387 17388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17389 _pkg_short_errors_supported=yes 17390else 17391 _pkg_short_errors_supported=no 17392fi 17393 if test $_pkg_short_errors_supported = yes; then 17394 LIBGPOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0" 2>&1` 17395 else 17396 LIBGPOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0" 2>&1` 17397 fi 17398 # Put the nasty error message in config.log where it belongs 17399 echo "$LIBGPOD_PKG_ERRORS" >&5 17400 17401 as_fn_error $? "Package requirements (glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist-2.0 >= 2.0 gmodule-2.0) were not met: 17402 17403$LIBGPOD_PKG_ERRORS 17404 17405Consider adjusting the PKG_CONFIG_PATH environment variable if you 17406installed software in a non-standard prefix. 17407 17408Alternatively, you may set the environment variables LIBGPOD_CFLAGS 17409and LIBGPOD_LIBS to avoid the need to call pkg-config. 17410See the pkg-config man page for more details." "$LINENO" 5 17411elif test $pkg_failed = untried; then 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17413$as_echo "no" >&6; } 17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17416as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17417is in your PATH or set the PKG_CONFIG environment variable to the full 17418path to pkg-config. 17419 17420Alternatively, you may set the environment variables LIBGPOD_CFLAGS 17421and LIBGPOD_LIBS to avoid the need to call pkg-config. 17422See the pkg-config man page for more details. 17423 17424To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17425See \`config.log' for more details" "$LINENO" 5; } 17426else 17427 LIBGPOD_CFLAGS=$pkg_cv_LIBGPOD_CFLAGS 17428 LIBGPOD_LIBS=$pkg_cv_LIBGPOD_LIBS 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17430$as_echo "yes" >&6; } 17431 17432fi 17433 17434saved_CFLAGS="$CFLAGS" 17435saved_LIBS="$LIBS" 17436CFLAGS="$LIBGPOD_CFLAGS $CFLAGS" 17437LIBS="$LIBGPOD_LIBS $LIBS" 17438for ac_func in g_int64_hash g_int64_equal 17439do : 17440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17441ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17442if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17443 cat >>confdefs.h <<_ACEOF 17444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17445_ACEOF 17446 17447fi 17448done 17449 17450for ac_func in g_checksum_reset 17451do : 17452 ac_fn_c_check_func "$LINENO" "g_checksum_reset" "ac_cv_func_g_checksum_reset" 17453if test "x$ac_cv_func_g_checksum_reset" = xyes; then : 17454 cat >>confdefs.h <<_ACEOF 17455#define HAVE_G_CHECKSUM_RESET 1 17456_ACEOF 17457 17458fi 17459done 17460 17461for ac_func in g_mapped_file_unref 17462do : 17463 ac_fn_c_check_func "$LINENO" "g_mapped_file_unref" "ac_cv_func_g_mapped_file_unref" 17464if test "x$ac_cv_func_g_mapped_file_unref" = xyes; then : 17465 cat >>confdefs.h <<_ACEOF 17466#define HAVE_G_MAPPED_FILE_UNREF 1 17467_ACEOF 17468 17469fi 17470done 17471 17472CFLAGS="$saved_CFLAGS" 17473LIBS="$saved_LIBS" 17474 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_ll_inquiry in -lsgutils2" >&5 17476$as_echo_n "checking for sg_ll_inquiry in -lsgutils2... " >&6; } 17477if ${ac_cv_lib_sgutils2_sg_ll_inquiry+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 ac_check_lib_save_LIBS=$LIBS 17481LIBS="-lsgutils2 $LIBS" 17482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483/* end confdefs.h. */ 17484 17485/* Override any GCC internal prototype to avoid an error. 17486 Use char because int might match the return type of a GCC 17487 builtin and then its argument prototype would still apply. */ 17488#ifdef __cplusplus 17489extern "C" 17490#endif 17491char sg_ll_inquiry (); 17492int 17493main () 17494{ 17495return sg_ll_inquiry (); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500if ac_fn_c_try_link "$LINENO"; then : 17501 ac_cv_lib_sgutils2_sg_ll_inquiry=yes 17502else 17503 ac_cv_lib_sgutils2_sg_ll_inquiry=no 17504fi 17505rm -f core conftest.err conftest.$ac_objext \ 17506 conftest$ac_exeext conftest.$ac_ext 17507LIBS=$ac_check_lib_save_LIBS 17508fi 17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgutils2_sg_ll_inquiry" >&5 17510$as_echo "$ac_cv_lib_sgutils2_sg_ll_inquiry" >&6; } 17511if test "x$ac_cv_lib_sgutils2_sg_ll_inquiry" = xyes; then : 17512 SGUTILS_LIBS="-lsgutils2"; have_sgutils=yes 17513else 17514 have_sgutils=no 17515fi 17516 17517if test "x$have_sgutils" != xyes; then 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_ll_inquiry in -lsgutils" >&5 17519$as_echo_n "checking for sg_ll_inquiry in -lsgutils... " >&6; } 17520if ${ac_cv_lib_sgutils_sg_ll_inquiry+:} false; then : 17521 $as_echo_n "(cached) " >&6 17522else 17523 ac_check_lib_save_LIBS=$LIBS 17524LIBS="-lsgutils $LIBS" 17525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526/* end confdefs.h. */ 17527 17528/* Override any GCC internal prototype to avoid an error. 17529 Use char because int might match the return type of a GCC 17530 builtin and then its argument prototype would still apply. */ 17531#ifdef __cplusplus 17532extern "C" 17533#endif 17534char sg_ll_inquiry (); 17535int 17536main () 17537{ 17538return sg_ll_inquiry (); 17539 ; 17540 return 0; 17541} 17542_ACEOF 17543if ac_fn_c_try_link "$LINENO"; then : 17544 ac_cv_lib_sgutils_sg_ll_inquiry=yes 17545else 17546 ac_cv_lib_sgutils_sg_ll_inquiry=no 17547fi 17548rm -f core conftest.err conftest.$ac_objext \ 17549 conftest$ac_exeext conftest.$ac_ext 17550LIBS=$ac_check_lib_save_LIBS 17551fi 17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgutils_sg_ll_inquiry" >&5 17553$as_echo "$ac_cv_lib_sgutils_sg_ll_inquiry" >&6; } 17554if test "x$ac_cv_lib_sgutils_sg_ll_inquiry" = xyes; then : 17555 SGUTILS_LIBS="-lsgutils"; have_sgutils=yes 17556else 17557 have_sgutils=no 17558fi 17559 17560fi 17561 17562if test x"$have_sgutils" = xyes; then 17563 17564$as_echo "#define HAVE_SGUTILS 1" >>confdefs.h 17565 17566fi 17567 if test x"$have_sgutils" = xyes; then 17568 HAVE_SGUTILS_TRUE= 17569 HAVE_SGUTILS_FALSE='#' 17570else 17571 HAVE_SGUTILS_TRUE='#' 17572 HAVE_SGUTILS_FALSE= 17573fi 17574 17575 17576 17577pkg_failed=no 17578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5 17579$as_echo_n "checking for LIBUSB... " >&6; } 17580 17581if test -n "$LIBUSB_CFLAGS"; then 17582 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 17583 elif test -n "$PKG_CONFIG"; then 17584 if test -n "$PKG_CONFIG" && \ 17585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 17586 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 17587 ac_status=$? 17588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17589 test $ac_status = 0; }; then 17590 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` 17591 test "x$?" != "x0" && pkg_failed=yes 17592else 17593 pkg_failed=yes 17594fi 17595 else 17596 pkg_failed=untried 17597fi 17598if test -n "$LIBUSB_LIBS"; then 17599 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 17600 elif test -n "$PKG_CONFIG"; then 17601 if test -n "$PKG_CONFIG" && \ 17602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 17603 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 17604 ac_status=$? 17605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17606 test $ac_status = 0; }; then 17607 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` 17608 test "x$?" != "x0" && pkg_failed=yes 17609else 17610 pkg_failed=yes 17611fi 17612 else 17613 pkg_failed=untried 17614fi 17615 17616 17617 17618if test $pkg_failed = yes; then 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17620$as_echo "no" >&6; } 17621 17622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17623 _pkg_short_errors_supported=yes 17624else 17625 _pkg_short_errors_supported=no 17626fi 17627 if test $_pkg_short_errors_supported = yes; then 17628 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1` 17629 else 17630 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1` 17631 fi 17632 # Put the nasty error message in config.log where it belongs 17633 echo "$LIBUSB_PKG_ERRORS" >&5 17634 17635 have_libusb=no 17636elif test $pkg_failed = untried; then 17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17638$as_echo "no" >&6; } 17639 have_libusb=no 17640else 17641 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 17642 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17644$as_echo "yes" >&6; } 17645 have_libusb=yes 17646fi 17647if test x"$have_libusb" = xyes; then 17648 17649 cat >>confdefs.h <<_ACEOF 17650#define HAVE_LIBUSB 1 17651_ACEOF 17652 17653fi 17654 if test x"$have_libusb" = xyes; then 17655 HAVE_LIBUSB_TRUE= 17656 HAVE_LIBUSB_FALSE='#' 17657else 17658 HAVE_LIBUSB_TRUE='#' 17659 HAVE_LIBUSB_FALSE= 17660fi 17661 17662 17663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 17664$as_echo_n "checking for inflate in -lz... " >&6; } 17665if ${ac_cv_lib_z_inflate+:} false; then : 17666 $as_echo_n "(cached) " >&6 17667else 17668 ac_check_lib_save_LIBS=$LIBS 17669LIBS="-lz $LIBS" 17670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672 17673/* Override any GCC internal prototype to avoid an error. 17674 Use char because int might match the return type of a GCC 17675 builtin and then its argument prototype would still apply. */ 17676#ifdef __cplusplus 17677extern "C" 17678#endif 17679char inflate (); 17680int 17681main () 17682{ 17683return inflate (); 17684 ; 17685 return 0; 17686} 17687_ACEOF 17688if ac_fn_c_try_link "$LINENO"; then : 17689 ac_cv_lib_z_inflate=yes 17690else 17691 ac_cv_lib_z_inflate=no 17692fi 17693rm -f core conftest.err conftest.$ac_objext \ 17694 conftest$ac_exeext conftest.$ac_ext 17695LIBS=$ac_check_lib_save_LIBS 17696fi 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 17698$as_echo "$ac_cv_lib_z_inflate" >&6; } 17699if test "x$ac_cv_lib_z_inflate" = xyes; then : 17700 Z_LIBS="-lz"; have_zlib=yes 17701else 17702 have_zlib=no 17703fi 17704 17705if test "x$have_zlib" != xyes; then 17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lzlib" >&5 17707$as_echo_n "checking for inflate in -lzlib... " >&6; } 17708if ${ac_cv_lib_zlib_inflate+:} false; then : 17709 $as_echo_n "(cached) " >&6 17710else 17711 ac_check_lib_save_LIBS=$LIBS 17712LIBS="-lzlib $LIBS" 17713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17714/* end confdefs.h. */ 17715 17716/* Override any GCC internal prototype to avoid an error. 17717 Use char because int might match the return type of a GCC 17718 builtin and then its argument prototype would still apply. */ 17719#ifdef __cplusplus 17720extern "C" 17721#endif 17722char inflate (); 17723int 17724main () 17725{ 17726return inflate (); 17727 ; 17728 return 0; 17729} 17730_ACEOF 17731if ac_fn_c_try_link "$LINENO"; then : 17732 ac_cv_lib_zlib_inflate=yes 17733else 17734 ac_cv_lib_zlib_inflate=no 17735fi 17736rm -f core conftest.err conftest.$ac_objext \ 17737 conftest$ac_exeext conftest.$ac_ext 17738LIBS=$ac_check_lib_save_LIBS 17739fi 17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zlib_inflate" >&5 17741$as_echo "$ac_cv_lib_zlib_inflate" >&6; } 17742if test "x$ac_cv_lib_zlib_inflate" = xyes; then : 17743 Z_LIBS="-lzlib"; have_zlib=yes 17744else 17745 have_zlib=no 17746fi 17747 17748fi 17749if test x"$have_zlib" = xyes; then 17750 17751 cat >>confdefs.h <<_ACEOF 17752#define HAVE_ZLIB 1 17753_ACEOF 17754 17755else 17756 as_fn_error $? "couldn't find zlib, please install zlib development headers" "$LINENO" 5 17757fi 17758 17759 if test x"$have_zlib" = xyes; then 17760 HAVE_ZLIB_TRUE= 17761 HAVE_ZLIB_FALSE='#' 17762else 17763 HAVE_ZLIB_TRUE='#' 17764 HAVE_ZLIB_FALSE= 17765fi 17766 17767 17768 17769# Check whether --with-hal was given. 17770if test "${with_hal+set}" = set; then : 17771 withval=$with_hal; 17772else 17773 with_hal=no 17774fi 17775 17776 17777hal_callouts_dir="`$PKG_CONFIG --variable libdir hal`/hal/scripts" 17778 17779# Check whether --with-hal_callouts_dir was given. 17780if test "${with_hal_callouts_dir+set}" = set; then : 17781 withval=$with_hal_callouts_dir; 17782else 17783 with_hal_callouts_dir="$hal_callouts_dir" 17784fi 17785 17786HALCALLOUTSDIR="$with_hal_callouts_dir" 17787 17788 17789hal_fdi_dir="`$PKG_CONFIG --variable prefix hal`/share/hal/fdi" 17790 17791# Check whether --with-hal_fdi_dir was given. 17792if test "${with_hal_fdi_dir+set}" = set; then : 17793 withval=$with_hal_fdi_dir; 17794else 17795 with_hal_fdi_dir="$hal_fdi_dir" 17796fi 17797 17798HALFDIDIR="$with_hal_fdi_dir" 17799 17800 17801if test "x$with_hal" = "xyes"; then 17802 17803pkg_failed=no 17804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 17805$as_echo_n "checking for HAL... " >&6; } 17806 17807if test -n "$HAL_CFLAGS"; then 17808 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 17809 elif test -n "$PKG_CONFIG"; then 17810 if test -n "$PKG_CONFIG" && \ 17811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal >= 0.5 hal < 0.6\""; } >&5 17812 ($PKG_CONFIG --exists --print-errors "hal >= 0.5 hal < 0.6") 2>&5 17813 ac_status=$? 17814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17815 test $ac_status = 0; }; then 17816 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal >= 0.5 hal < 0.6" 2>/dev/null` 17817 test "x$?" != "x0" && pkg_failed=yes 17818else 17819 pkg_failed=yes 17820fi 17821 else 17822 pkg_failed=untried 17823fi 17824if test -n "$HAL_LIBS"; then 17825 pkg_cv_HAL_LIBS="$HAL_LIBS" 17826 elif test -n "$PKG_CONFIG"; then 17827 if test -n "$PKG_CONFIG" && \ 17828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal >= 0.5 hal < 0.6\""; } >&5 17829 ($PKG_CONFIG --exists --print-errors "hal >= 0.5 hal < 0.6") 2>&5 17830 ac_status=$? 17831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17832 test $ac_status = 0; }; then 17833 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal >= 0.5 hal < 0.6" 2>/dev/null` 17834 test "x$?" != "x0" && pkg_failed=yes 17835else 17836 pkg_failed=yes 17837fi 17838 else 17839 pkg_failed=untried 17840fi 17841 17842 17843 17844if test $pkg_failed = yes; then 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17846$as_echo "no" >&6; } 17847 17848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17849 _pkg_short_errors_supported=yes 17850else 17851 _pkg_short_errors_supported=no 17852fi 17853 if test $_pkg_short_errors_supported = yes; then 17854 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal >= 0.5 hal < 0.6" 2>&1` 17855 else 17856 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal >= 0.5 hal < 0.6" 2>&1` 17857 fi 17858 # Put the nasty error message in config.log where it belongs 17859 echo "$HAL_PKG_ERRORS" >&5 17860 17861 enable_hal=no 17862elif test $pkg_failed = untried; then 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17864$as_echo "no" >&6; } 17865 enable_hal=no 17866else 17867 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 17868 HAL_LIBS=$pkg_cv_HAL_LIBS 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17870$as_echo "yes" >&6; } 17871 enable_hal=yes 17872fi 17873 if test "x$enable_hal" != "xyes" -a "x$with_hal" = "xyes"; then 17874 as_fn_error $? "HAL support explicitly requested but HAL couldn't be found" "$LINENO" 5 17875 fi 17876 17877 if test "x$enable_hal" = "xyes"; then 17878 17879$as_echo "#define HAVE_HAL 1" >>confdefs.h 17880 17881 17882 17883 fi 17884fi 17885 if test x"$enable_hal" = xyes; then 17886 HAVE_HAL_TRUE= 17887 HAVE_HAL_FALSE='#' 17888else 17889 HAVE_HAL_TRUE='#' 17890 HAVE_HAL_FALSE= 17891fi 17892 17893 17894 17895# Check whether --with-libimobiledevice was given. 17896if test "${with_libimobiledevice+set}" = set; then : 17897 withval=$with_libimobiledevice; 17898fi 17899 17900 17901if test "x$with_libimobiledevice" != "xno"; then 17902 17903pkg_failed=no 17904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIMOBILEDEVICE" >&5 17905$as_echo_n "checking for LIBIMOBILEDEVICE... " >&6; } 17906 17907if test -n "$LIBIMOBILEDEVICE_CFLAGS"; then 17908 pkg_cv_LIBIMOBILEDEVICE_CFLAGS="$LIBIMOBILEDEVICE_CFLAGS" 17909 elif test -n "$PKG_CONFIG"; then 17910 if test -n "$PKG_CONFIG" && \ 17911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 0.9.7\""; } >&5 17912 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 0.9.7") 2>&5 17913 ac_status=$? 17914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17915 test $ac_status = 0; }; then 17916 pkg_cv_LIBIMOBILEDEVICE_CFLAGS=`$PKG_CONFIG --cflags "libimobiledevice-1.0 >= 0.9.7" 2>/dev/null` 17917 test "x$?" != "x0" && pkg_failed=yes 17918else 17919 pkg_failed=yes 17920fi 17921 else 17922 pkg_failed=untried 17923fi 17924if test -n "$LIBIMOBILEDEVICE_LIBS"; then 17925 pkg_cv_LIBIMOBILEDEVICE_LIBS="$LIBIMOBILEDEVICE_LIBS" 17926 elif test -n "$PKG_CONFIG"; then 17927 if test -n "$PKG_CONFIG" && \ 17928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 0.9.7\""; } >&5 17929 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 0.9.7") 2>&5 17930 ac_status=$? 17931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17932 test $ac_status = 0; }; then 17933 pkg_cv_LIBIMOBILEDEVICE_LIBS=`$PKG_CONFIG --libs "libimobiledevice-1.0 >= 0.9.7" 2>/dev/null` 17934 test "x$?" != "x0" && pkg_failed=yes 17935else 17936 pkg_failed=yes 17937fi 17938 else 17939 pkg_failed=untried 17940fi 17941 17942 17943 17944if test $pkg_failed = yes; then 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17946$as_echo "no" >&6; } 17947 17948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17949 _pkg_short_errors_supported=yes 17950else 17951 _pkg_short_errors_supported=no 17952fi 17953 if test $_pkg_short_errors_supported = yes; then 17954 LIBIMOBILEDEVICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libimobiledevice-1.0 >= 0.9.7" 2>&1` 17955 else 17956 LIBIMOBILEDEVICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libimobiledevice-1.0 >= 0.9.7" 2>&1` 17957 fi 17958 # Put the nasty error message in config.log where it belongs 17959 echo "$LIBIMOBILEDEVICE_PKG_ERRORS" >&5 17960 17961 enable_libimobiledevice=no 17962elif test $pkg_failed = untried; then 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17964$as_echo "no" >&6; } 17965 enable_libimobiledevice=no 17966else 17967 LIBIMOBILEDEVICE_CFLAGS=$pkg_cv_LIBIMOBILEDEVICE_CFLAGS 17968 LIBIMOBILEDEVICE_LIBS=$pkg_cv_LIBIMOBILEDEVICE_LIBS 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17970$as_echo "yes" >&6; } 17971 enable_libimobiledevice=yes 17972fi 17973 if test "x$enable_libimobiledevice" != "xyes" -a "x$with_libimobiledevice" = "xyes"; then 17974 as_fn_error $? "iPhone/iPod Touch support explicitly requested but libimobiledevice couldn't be found" "$LINENO" 5 17975 fi 17976 17977 if test "x$enable_libimobiledevice" = "xyes"; then 17978 LIBIMOBILEDEVICE_REQ="libimobiledevice-1.0" 17979 17980$as_echo "#define HAVE_LIBIMOBILEDEVICE 1" >>confdefs.h 17981 17982 if test -n "$PKG_CONFIG" && \ 17983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 1.1.5\""; } >&5 17984 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 1.1.5") 2>&5 17985 ac_status=$? 17986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17987 test $ac_status = 0; }; then 17988 17989$as_echo "#define HAVE_LIBIMOBILEDEVICE_1_1_5 1" >>confdefs.h 17990 17991fi 17992 fi 17993fi 17994 17995 if test x"$enable_libimobiledevice" = xyes; then 17996 HAVE_LIBIMOBILEDEVICE_TRUE= 17997 HAVE_LIBIMOBILEDEVICE_FALSE='#' 17998else 17999 HAVE_LIBIMOBILEDEVICE_TRUE='#' 18000 HAVE_LIBIMOBILEDEVICE_FALSE= 18001fi 18002 18003 18004# Check whether --enable-udev was given. 18005if test "${enable_udev+set}" = set; then : 18006 enableval=$enable_udev; if test x"$enableval" = "xno" ; then 18007 enable_udev=no 18008 else 18009 enable_udev=yes 18010 fi 18011else 18012 enable_udev=yes 18013fi 18014 18015 if test x"$enable_udev" = xyes; then 18016 USE_UDEV_TRUE= 18017 USE_UDEV_FALSE='#' 18018else 18019 USE_UDEV_TRUE='#' 18020 USE_UDEV_FALSE= 18021fi 18022 18023udevdir="/lib/udev" 18024 18025# Check whether --with-udev-dir was given. 18026if test "${with_udev_dir+set}" = set; then : 18027 withval=$with_udev_dir; udevdir="$with_udev_dir" 18028fi 18029 18030udevdir=$udevdir 18031 18032 18033 18034temp_mount_dir="/tmp/" 18035 18036# Check whether --with-temp_mount_dir was given. 18037if test "${with_temp_mount_dir+set}" = set; then : 18038 withval=$with_temp_mount_dir; 18039else 18040 with_temp_mount_dir="$temp_mount_dir" 18041fi 18042 18043TMPMOUNTDIR="$with_temp_mount_dir" 18044 18045 18046 18047cat >>confdefs.h <<_ACEOF 18048#define TMPMOUNTDIR "$with_temp_mount_dir" 18049_ACEOF 18050 18051 18052 18053# Check whether --with-libgpod-blob-dir was given. 18054if test "${with_libgpod_blob_dir+set}" = set; then : 18055 withval=$with_libgpod_blob_dir; 18056else 18057 with_libgpod_blob_dir='${libdir}/libgpod' 18058fi 18059 18060LIBGPOD_BLOB_DIR=$with_libgpod_blob_dir 18061 18062 18063 18064pkg_failed=no 18065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAGLIB" >&5 18066$as_echo_n "checking for TAGLIB... " >&6; } 18067 18068if test -n "$TAGLIB_CFLAGS"; then 18069 pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS" 18070 elif test -n "$PKG_CONFIG"; then 18071 if test -n "$PKG_CONFIG" && \ 18072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5 18073 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5 18074 ac_status=$? 18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18076 test $ac_status = 0; }; then 18077 pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib" 2>/dev/null` 18078 test "x$?" != "x0" && pkg_failed=yes 18079else 18080 pkg_failed=yes 18081fi 18082 else 18083 pkg_failed=untried 18084fi 18085if test -n "$TAGLIB_LIBS"; then 18086 pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS" 18087 elif test -n "$PKG_CONFIG"; then 18088 if test -n "$PKG_CONFIG" && \ 18089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5 18090 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5 18091 ac_status=$? 18092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18093 test $ac_status = 0; }; then 18094 pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib" 2>/dev/null` 18095 test "x$?" != "x0" && pkg_failed=yes 18096else 18097 pkg_failed=yes 18098fi 18099 else 18100 pkg_failed=untried 18101fi 18102 18103 18104 18105if test $pkg_failed = yes; then 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18107$as_echo "no" >&6; } 18108 18109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18110 _pkg_short_errors_supported=yes 18111else 18112 _pkg_short_errors_supported=no 18113fi 18114 if test $_pkg_short_errors_supported = yes; then 18115 TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "taglib" 2>&1` 18116 else 18117 TAGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "taglib" 2>&1` 18118 fi 18119 # Put the nasty error message in config.log where it belongs 18120 echo "$TAGLIB_PKG_ERRORS" >&5 18121 18122 have_taglib=no 18123elif test $pkg_failed = untried; then 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18125$as_echo "no" >&6; } 18126 have_taglib=no 18127else 18128 TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS 18129 TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18131$as_echo "yes" >&6; } 18132 have_taglib=yes 18133fi 18134if test x"$have_taglib" = xyes; then 18135 18136 cat >>confdefs.h <<_ACEOF 18137#define HAVE_TAGLIB 1 18138_ACEOF 18139 18140fi 18141 18142 18143 if test x"$have_taglib" = xyes; then 18144 HAVE_TAGLIB_TRUE= 18145 HAVE_TAGLIB_FALSE='#' 18146else 18147 HAVE_TAGLIB_TRUE='#' 18148 HAVE_TAGLIB_FALSE= 18149fi 18150 18151 18152# Check whether --enable-libxml was given. 18153if test "${enable_libxml+set}" = set; then : 18154 enableval=$enable_libxml; case "${enableval}" in 18155 no) enable_libxml=no ;; 18156 *) enable_libxml=yes;; 18157esac 18158fi 18159 18160 18161if test x$enable_libxml != xno; then 18162 18163pkg_failed=no 18164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 18165$as_echo_n "checking for LIBXML... " >&6; } 18166 18167if test -n "$LIBXML_CFLAGS"; then 18168 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 18169 elif test -n "$PKG_CONFIG"; then 18170 if test -n "$PKG_CONFIG" && \ 18171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 18172 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 18173 ac_status=$? 18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18175 test $ac_status = 0; }; then 18176 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 18177 test "x$?" != "x0" && pkg_failed=yes 18178else 18179 pkg_failed=yes 18180fi 18181 else 18182 pkg_failed=untried 18183fi 18184if test -n "$LIBXML_LIBS"; then 18185 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 18186 elif test -n "$PKG_CONFIG"; then 18187 if test -n "$PKG_CONFIG" && \ 18188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 18189 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 18190 ac_status=$? 18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18192 test $ac_status = 0; }; then 18193 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 18194 test "x$?" != "x0" && pkg_failed=yes 18195else 18196 pkg_failed=yes 18197fi 18198 else 18199 pkg_failed=untried 18200fi 18201 18202 18203 18204if test $pkg_failed = yes; then 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18206$as_echo "no" >&6; } 18207 18208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18209 _pkg_short_errors_supported=yes 18210else 18211 _pkg_short_errors_supported=no 18212fi 18213 if test $_pkg_short_errors_supported = yes; then 18214 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 18215 else 18216 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 18217 fi 18218 # Put the nasty error message in config.log where it belongs 18219 echo "$LIBXML_PKG_ERRORS" >&5 18220 18221 as_fn_error $? "Package requirements (libxml-2.0) were not met: 18222 18223$LIBXML_PKG_ERRORS 18224 18225Consider adjusting the PKG_CONFIG_PATH environment variable if you 18226installed software in a non-standard prefix. 18227 18228Alternatively, you may set the environment variables LIBXML_CFLAGS 18229and LIBXML_LIBS to avoid the need to call pkg-config. 18230See the pkg-config man page for more details." "$LINENO" 5 18231elif test $pkg_failed = untried; then 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18233$as_echo "no" >&6; } 18234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18236as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18237is in your PATH or set the PKG_CONFIG environment variable to the full 18238path to pkg-config. 18239 18240Alternatively, you may set the environment variables LIBXML_CFLAGS 18241and LIBXML_LIBS to avoid the need to call pkg-config. 18242See the pkg-config man page for more details. 18243 18244To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18245See \`config.log' for more details" "$LINENO" 5; } 18246else 18247 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 18248 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18250$as_echo "yes" >&6; } 18251 18252fi 18253 cat >>confdefs.h <<_ACEOF 18254#define HAVE_LIBXML 1 18255_ACEOF 18256 18257 LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $LIBXML_CFLAGS" 18258 LIBGPOD_LIBS="$LIBGPOD_LIBS $LIBXML_LIBS" 18259fi 18260 18261# Check whether --enable-gdk-pixbuf was given. 18262if test "${enable_gdk_pixbuf+set}" = set; then : 18263 enableval=$enable_gdk_pixbuf; case "${enableval}" in 18264 no) enable_gdkpixbuf=no ;; 18265 *) enable_gdkpixbuf=yes;; 18266esac 18267fi 18268 18269 18270if test x$enable_gdkpixbuf != xno; then 18271 GDKPIXBUF_REQ="gdk-pixbuf-2.0" 18272 18273pkg_failed=no 18274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDKPIXBUF" >&5 18275$as_echo_n "checking for GDKPIXBUF... " >&6; } 18276 18277if test -n "$GDKPIXBUF_CFLAGS"; then 18278 pkg_cv_GDKPIXBUF_CFLAGS="$GDKPIXBUF_CFLAGS" 18279 elif test -n "$PKG_CONFIG"; then 18280 if test -n "$PKG_CONFIG" && \ 18281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GDKPIXBUF_REQ >= 2.6.0\""; } >&5 18282 ($PKG_CONFIG --exists --print-errors "$GDKPIXBUF_REQ >= 2.6.0") 2>&5 18283 ac_status=$? 18284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18285 test $ac_status = 0; }; then 18286 pkg_cv_GDKPIXBUF_CFLAGS=`$PKG_CONFIG --cflags "$GDKPIXBUF_REQ >= 2.6.0" 2>/dev/null` 18287 test "x$?" != "x0" && pkg_failed=yes 18288else 18289 pkg_failed=yes 18290fi 18291 else 18292 pkg_failed=untried 18293fi 18294if test -n "$GDKPIXBUF_LIBS"; then 18295 pkg_cv_GDKPIXBUF_LIBS="$GDKPIXBUF_LIBS" 18296 elif test -n "$PKG_CONFIG"; then 18297 if test -n "$PKG_CONFIG" && \ 18298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GDKPIXBUF_REQ >= 2.6.0\""; } >&5 18299 ($PKG_CONFIG --exists --print-errors "$GDKPIXBUF_REQ >= 2.6.0") 2>&5 18300 ac_status=$? 18301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18302 test $ac_status = 0; }; then 18303 pkg_cv_GDKPIXBUF_LIBS=`$PKG_CONFIG --libs "$GDKPIXBUF_REQ >= 2.6.0" 2>/dev/null` 18304 test "x$?" != "x0" && pkg_failed=yes 18305else 18306 pkg_failed=yes 18307fi 18308 else 18309 pkg_failed=untried 18310fi 18311 18312 18313 18314if test $pkg_failed = yes; then 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18316$as_echo "no" >&6; } 18317 18318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18319 _pkg_short_errors_supported=yes 18320else 18321 _pkg_short_errors_supported=no 18322fi 18323 if test $_pkg_short_errors_supported = yes; then 18324 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GDKPIXBUF_REQ >= 2.6.0" 2>&1` 18325 else 18326 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GDKPIXBUF_REQ >= 2.6.0" 2>&1` 18327 fi 18328 # Put the nasty error message in config.log where it belongs 18329 echo "$GDKPIXBUF_PKG_ERRORS" >&5 18330 18331 have_gdkpixbuf=no 18332elif test $pkg_failed = untried; then 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18334$as_echo "no" >&6; } 18335 have_gdkpixbuf=no 18336else 18337 GDKPIXBUF_CFLAGS=$pkg_cv_GDKPIXBUF_CFLAGS 18338 GDKPIXBUF_LIBS=$pkg_cv_GDKPIXBUF_LIBS 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18340$as_echo "yes" >&6; } 18341 have_gdkpixbuf=yes 18342fi 18343 if test x"$enable_gdkpixbuf" = xyes -a x"$have_gdkpixbuf" = xno; then 18344 as_fn_error $? "gdk-pixbuf support explicitly requested but gdk-pixbuf couldn't be found" "$LINENO" 5 18345 fi 18346fi 18347if test x"$have_gdkpixbuf" = xyes; then 18348 cat >>confdefs.h <<_ACEOF 18349#define HAVE_GDKPIXBUF 1 18350_ACEOF 18351 18352 LIBGPOD_CFLAGS="$LIBGPOD_CFLAGS $GDKPIXBUF_CFLAGS" 18353 LIBGPOD_LIBS="$LIBGPOD_LIBS $GDKPIXBUF_LIBS" 18354else 18355 have_gdkpixbuf=no 18356 GDKPIXBUF_REQ="" 18357fi 18358 if test x"$have_gdkpixbuf" = xyes; then 18359 HAVE_GDKPIXBUF_TRUE= 18360 HAVE_GDKPIXBUF_FALSE='#' 18361else 18362 HAVE_GDKPIXBUF_TRUE='#' 18363 HAVE_GDKPIXBUF_FALSE= 18364fi 18365 18366 18367 18368 18369# Check whether --enable-pygobject was given. 18370if test "${enable_pygobject+set}" = set; then : 18371 enableval=$enable_pygobject; case "${enableval}" in 18372 no) enable_pygobject=no ;; 18373 *) enable_pygobject=yes;; 18374esac 18375fi 18376 18377 18378if test x$enable_pygobject != xno; then 18379 18380pkg_failed=no 18381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGOBJECT" >&5 18382$as_echo_n "checking for PYGOBJECT... " >&6; } 18383 18384if test -n "$PYGOBJECT_CFLAGS"; then 18385 pkg_cv_PYGOBJECT_CFLAGS="$PYGOBJECT_CFLAGS" 18386 elif test -n "$PKG_CONFIG"; then 18387 if test -n "$PKG_CONFIG" && \ 18388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-2.0 >= 2.8.0\""; } >&5 18389 ($PKG_CONFIG --exists --print-errors "pygobject-2.0 >= 2.8.0") 2>&5 18390 ac_status=$? 18391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18392 test $ac_status = 0; }; then 18393 pkg_cv_PYGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "pygobject-2.0 >= 2.8.0" 2>/dev/null` 18394 test "x$?" != "x0" && pkg_failed=yes 18395else 18396 pkg_failed=yes 18397fi 18398 else 18399 pkg_failed=untried 18400fi 18401if test -n "$PYGOBJECT_LIBS"; then 18402 pkg_cv_PYGOBJECT_LIBS="$PYGOBJECT_LIBS" 18403 elif test -n "$PKG_CONFIG"; then 18404 if test -n "$PKG_CONFIG" && \ 18405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-2.0 >= 2.8.0\""; } >&5 18406 ($PKG_CONFIG --exists --print-errors "pygobject-2.0 >= 2.8.0") 2>&5 18407 ac_status=$? 18408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18409 test $ac_status = 0; }; then 18410 pkg_cv_PYGOBJECT_LIBS=`$PKG_CONFIG --libs "pygobject-2.0 >= 2.8.0" 2>/dev/null` 18411 test "x$?" != "x0" && pkg_failed=yes 18412else 18413 pkg_failed=yes 18414fi 18415 else 18416 pkg_failed=untried 18417fi 18418 18419 18420 18421if test $pkg_failed = yes; then 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18423$as_echo "no" >&6; } 18424 18425if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18426 _pkg_short_errors_supported=yes 18427else 18428 _pkg_short_errors_supported=no 18429fi 18430 if test $_pkg_short_errors_supported = yes; then 18431 PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygobject-2.0 >= 2.8.0" 2>&1` 18432 else 18433 PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygobject-2.0 >= 2.8.0" 2>&1` 18434 fi 18435 # Put the nasty error message in config.log where it belongs 18436 echo "$PYGOBJECT_PKG_ERRORS" >&5 18437 18438 have_pygobject=no 18439elif test $pkg_failed = untried; then 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18441$as_echo "no" >&6; } 18442 have_pygobject=no 18443else 18444 PYGOBJECT_CFLAGS=$pkg_cv_PYGOBJECT_CFLAGS 18445 PYGOBJECT_LIBS=$pkg_cv_PYGOBJECT_LIBS 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18447$as_echo "yes" >&6; } 18448 have_pygobject=yes 18449fi 18450 if test x"$enable_pygobject" = xyes -a x"$have_pygobject" = xno; then 18451 as_fn_error $? "pygobject support explicitly requested but pygobject couldn't be found" "$LINENO" 5 18452 fi 18453fi 18454if test x"$have_pygobject" = xyes; then 18455 cat >>confdefs.h <<_ACEOF 18456#define HAVE_PYGOBJECT 1 18457_ACEOF 18458 18459else 18460 have_pygobject=no 18461fi 18462 if test x"$have_pygobject" = xyes; then 18463 HAVE_PYGOBJECT_TRUE= 18464 HAVE_PYGOBJECT_FALSE='#' 18465else 18466 HAVE_PYGOBJECT_TRUE='#' 18467 HAVE_PYGOBJECT_FALSE= 18468fi 18469 18470 18471 18472 18473ALL_LINGUAS="de es fr he it ja ro sv zh_CN" 18474 18475GETTEXT_PACKAGE=libgpod 18476 18477 18478cat >>confdefs.h <<_ACEOF 18479#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 18480_ACEOF 18481 18482 18483 18484 for ac_header in locale.h 18485do : 18486 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 18487if test "x$ac_cv_header_locale_h" = xyes; then : 18488 cat >>confdefs.h <<_ACEOF 18489#define HAVE_LOCALE_H 1 18490_ACEOF 18491 18492fi 18493 18494done 18495 18496 if test $ac_cv_header_locale_h = yes; then 18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 18498$as_echo_n "checking for LC_MESSAGES... " >&6; } 18499if ${am_cv_val_LC_MESSAGES+:} false; then : 18500 $as_echo_n "(cached) " >&6 18501else 18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18503/* end confdefs.h. */ 18504#include <locale.h> 18505int 18506main () 18507{ 18508return LC_MESSAGES 18509 ; 18510 return 0; 18511} 18512_ACEOF 18513if ac_fn_c_try_link "$LINENO"; then : 18514 am_cv_val_LC_MESSAGES=yes 18515else 18516 am_cv_val_LC_MESSAGES=no 18517fi 18518rm -f core conftest.err conftest.$ac_objext \ 18519 conftest$ac_exeext conftest.$ac_ext 18520fi 18521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 18522$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 18523 if test $am_cv_val_LC_MESSAGES = yes; then 18524 18525$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 18526 18527 fi 18528 fi 18529 USE_NLS=yes 18530 18531 18532 gt_cv_have_gettext=no 18533 18534 CATOBJEXT=NONE 18535 XGETTEXT=: 18536 INTLLIBS= 18537 18538 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 18539if test "x$ac_cv_header_libintl_h" = xyes; then : 18540 gt_cv_func_dgettext_libintl="no" 18541 libintl_extra_libs="" 18542 18543 # 18544 # First check in libc 18545 # 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 18547$as_echo_n "checking for ngettext in libc... " >&6; } 18548if ${gt_cv_func_ngettext_libc+:} false; then : 18549 $as_echo_n "(cached) " >&6 18550else 18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18552/* end confdefs.h. */ 18553 18554#include <libintl.h> 18555 18556int 18557main () 18558{ 18559return !ngettext ("","", 1) 18560 ; 18561 return 0; 18562} 18563_ACEOF 18564if ac_fn_c_try_link "$LINENO"; then : 18565 gt_cv_func_ngettext_libc=yes 18566else 18567 gt_cv_func_ngettext_libc=no 18568fi 18569rm -f core conftest.err conftest.$ac_objext \ 18570 conftest$ac_exeext conftest.$ac_ext 18571 18572fi 18573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 18574$as_echo "$gt_cv_func_ngettext_libc" >&6; } 18575 18576 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 18578$as_echo_n "checking for dgettext in libc... " >&6; } 18579if ${gt_cv_func_dgettext_libc+:} false; then : 18580 $as_echo_n "(cached) " >&6 18581else 18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18583/* end confdefs.h. */ 18584 18585#include <libintl.h> 18586 18587int 18588main () 18589{ 18590return !dgettext ("","") 18591 ; 18592 return 0; 18593} 18594_ACEOF 18595if ac_fn_c_try_link "$LINENO"; then : 18596 gt_cv_func_dgettext_libc=yes 18597else 18598 gt_cv_func_dgettext_libc=no 18599fi 18600rm -f core conftest.err conftest.$ac_objext \ 18601 conftest$ac_exeext conftest.$ac_ext 18602 18603fi 18604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 18605$as_echo "$gt_cv_func_dgettext_libc" >&6; } 18606 fi 18607 18608 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 18609 for ac_func in bind_textdomain_codeset 18610do : 18611 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 18612if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 18613 cat >>confdefs.h <<_ACEOF 18614#define HAVE_BIND_TEXTDOMAIN_CODESET 1 18615_ACEOF 18616 18617fi 18618done 18619 18620 fi 18621 18622 # 18623 # If we don't have everything we want, check in libintl 18624 # 18625 if test "$gt_cv_func_dgettext_libc" != "yes" \ 18626 || test "$gt_cv_func_ngettext_libc" != "yes" \ 18627 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 18628 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 18630$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 18631if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 18632 $as_echo_n "(cached) " >&6 18633else 18634 ac_check_lib_save_LIBS=$LIBS 18635LIBS="-lintl $LIBS" 18636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18637/* end confdefs.h. */ 18638 18639/* Override any GCC internal prototype to avoid an error. 18640 Use char because int might match the return type of a GCC 18641 builtin and then its argument prototype would still apply. */ 18642#ifdef __cplusplus 18643extern "C" 18644#endif 18645char bindtextdomain (); 18646int 18647main () 18648{ 18649return bindtextdomain (); 18650 ; 18651 return 0; 18652} 18653_ACEOF 18654if ac_fn_c_try_link "$LINENO"; then : 18655 ac_cv_lib_intl_bindtextdomain=yes 18656else 18657 ac_cv_lib_intl_bindtextdomain=no 18658fi 18659rm -f core conftest.err conftest.$ac_objext \ 18660 conftest$ac_exeext conftest.$ac_ext 18661LIBS=$ac_check_lib_save_LIBS 18662fi 18663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 18664$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 18665if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 18667$as_echo_n "checking for ngettext in -lintl... " >&6; } 18668if ${ac_cv_lib_intl_ngettext+:} false; then : 18669 $as_echo_n "(cached) " >&6 18670else 18671 ac_check_lib_save_LIBS=$LIBS 18672LIBS="-lintl $LIBS" 18673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18674/* end confdefs.h. */ 18675 18676/* Override any GCC internal prototype to avoid an error. 18677 Use char because int might match the return type of a GCC 18678 builtin and then its argument prototype would still apply. */ 18679#ifdef __cplusplus 18680extern "C" 18681#endif 18682char ngettext (); 18683int 18684main () 18685{ 18686return ngettext (); 18687 ; 18688 return 0; 18689} 18690_ACEOF 18691if ac_fn_c_try_link "$LINENO"; then : 18692 ac_cv_lib_intl_ngettext=yes 18693else 18694 ac_cv_lib_intl_ngettext=no 18695fi 18696rm -f core conftest.err conftest.$ac_objext \ 18697 conftest$ac_exeext conftest.$ac_ext 18698LIBS=$ac_check_lib_save_LIBS 18699fi 18700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 18701$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 18702if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 18704$as_echo_n "checking for dgettext in -lintl... " >&6; } 18705if ${ac_cv_lib_intl_dgettext+:} false; then : 18706 $as_echo_n "(cached) " >&6 18707else 18708 ac_check_lib_save_LIBS=$LIBS 18709LIBS="-lintl $LIBS" 18710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18711/* end confdefs.h. */ 18712 18713/* Override any GCC internal prototype to avoid an error. 18714 Use char because int might match the return type of a GCC 18715 builtin and then its argument prototype would still apply. */ 18716#ifdef __cplusplus 18717extern "C" 18718#endif 18719char dgettext (); 18720int 18721main () 18722{ 18723return dgettext (); 18724 ; 18725 return 0; 18726} 18727_ACEOF 18728if ac_fn_c_try_link "$LINENO"; then : 18729 ac_cv_lib_intl_dgettext=yes 18730else 18731 ac_cv_lib_intl_dgettext=no 18732fi 18733rm -f core conftest.err conftest.$ac_objext \ 18734 conftest$ac_exeext conftest.$ac_ext 18735LIBS=$ac_check_lib_save_LIBS 18736fi 18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 18738$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 18739if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 18740 gt_cv_func_dgettext_libintl=yes 18741fi 18742 18743fi 18744 18745fi 18746 18747 18748 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 18750$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 18752$as_echo "" >&6; } 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 18754$as_echo_n "checking for ngettext in -lintl... " >&6; } 18755if ${ac_cv_lib_intl_ngettext+:} false; then : 18756 $as_echo_n "(cached) " >&6 18757else 18758 ac_check_lib_save_LIBS=$LIBS 18759LIBS="-lintl -liconv $LIBS" 18760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18761/* end confdefs.h. */ 18762 18763/* Override any GCC internal prototype to avoid an error. 18764 Use char because int might match the return type of a GCC 18765 builtin and then its argument prototype would still apply. */ 18766#ifdef __cplusplus 18767extern "C" 18768#endif 18769char ngettext (); 18770int 18771main () 18772{ 18773return ngettext (); 18774 ; 18775 return 0; 18776} 18777_ACEOF 18778if ac_fn_c_try_link "$LINENO"; then : 18779 ac_cv_lib_intl_ngettext=yes 18780else 18781 ac_cv_lib_intl_ngettext=no 18782fi 18783rm -f core conftest.err conftest.$ac_objext \ 18784 conftest$ac_exeext conftest.$ac_ext 18785LIBS=$ac_check_lib_save_LIBS 18786fi 18787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 18788$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 18789if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 18791$as_echo_n "checking for dcgettext in -lintl... " >&6; } 18792if ${ac_cv_lib_intl_dcgettext+:} false; then : 18793 $as_echo_n "(cached) " >&6 18794else 18795 ac_check_lib_save_LIBS=$LIBS 18796LIBS="-lintl -liconv $LIBS" 18797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18798/* end confdefs.h. */ 18799 18800/* Override any GCC internal prototype to avoid an error. 18801 Use char because int might match the return type of a GCC 18802 builtin and then its argument prototype would still apply. */ 18803#ifdef __cplusplus 18804extern "C" 18805#endif 18806char dcgettext (); 18807int 18808main () 18809{ 18810return dcgettext (); 18811 ; 18812 return 0; 18813} 18814_ACEOF 18815if ac_fn_c_try_link "$LINENO"; then : 18816 ac_cv_lib_intl_dcgettext=yes 18817else 18818 ac_cv_lib_intl_dcgettext=no 18819fi 18820rm -f core conftest.err conftest.$ac_objext \ 18821 conftest$ac_exeext conftest.$ac_ext 18822LIBS=$ac_check_lib_save_LIBS 18823fi 18824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 18825$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 18826if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : 18827 gt_cv_func_dgettext_libintl=yes 18828 libintl_extra_libs=-liconv 18829else 18830 : 18831fi 18832 18833else 18834 : 18835fi 18836 18837 fi 18838 18839 # 18840 # If we found libintl, then check in it for bind_textdomain_codeset(); 18841 # we'll prefer libc if neither have bind_textdomain_codeset(), 18842 # and both have dgettext and ngettext 18843 # 18844 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 18845 glib_save_LIBS="$LIBS" 18846 LIBS="$LIBS -lintl $libintl_extra_libs" 18847 unset ac_cv_func_bind_textdomain_codeset 18848 for ac_func in bind_textdomain_codeset 18849do : 18850 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 18851if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 18852 cat >>confdefs.h <<_ACEOF 18853#define HAVE_BIND_TEXTDOMAIN_CODESET 1 18854_ACEOF 18855 18856fi 18857done 18858 18859 LIBS="$glib_save_LIBS" 18860 18861 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 18862 gt_cv_func_dgettext_libc=no 18863 else 18864 if test "$gt_cv_func_dgettext_libc" = "yes" \ 18865 && test "$gt_cv_func_ngettext_libc" = "yes"; then 18866 gt_cv_func_dgettext_libintl=no 18867 fi 18868 fi 18869 fi 18870 fi 18871 18872 if test "$gt_cv_func_dgettext_libc" = "yes" \ 18873 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 18874 gt_cv_have_gettext=yes 18875 fi 18876 18877 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 18878 INTLLIBS="-lintl $libintl_extra_libs" 18879 fi 18880 18881 if test "$gt_cv_have_gettext" = "yes"; then 18882 18883$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 18884 18885 # Extract the first word of "msgfmt", so it can be a program name with args. 18886set dummy msgfmt; ac_word=$2 18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18888$as_echo_n "checking for $ac_word... " >&6; } 18889if ${ac_cv_path_MSGFMT+:} false; then : 18890 $as_echo_n "(cached) " >&6 18891else 18892 case "$MSGFMT" in 18893 /*) 18894 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18895 ;; 18896 *) 18897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 18898 for ac_dir in $PATH; do 18899 test -z "$ac_dir" && ac_dir=. 18900 if test -f $ac_dir/$ac_word; then 18901 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 18902 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 18903 break 18904 fi 18905 fi 18906 done 18907 IFS="$ac_save_ifs" 18908 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 18909 ;; 18910esac 18911fi 18912MSGFMT="$ac_cv_path_MSGFMT" 18913if test "$MSGFMT" != "no"; then 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18915$as_echo "$MSGFMT" >&6; } 18916else 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18918$as_echo "no" >&6; } 18919fi 18920 if test "$MSGFMT" != "no"; then 18921 glib_save_LIBS="$LIBS" 18922 LIBS="$LIBS $INTLLIBS" 18923 for ac_func in dcgettext 18924do : 18925 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 18926if test "x$ac_cv_func_dcgettext" = xyes; then : 18927 cat >>confdefs.h <<_ACEOF 18928#define HAVE_DCGETTEXT 1 18929_ACEOF 18930 18931fi 18932done 18933 18934 MSGFMT_OPTS= 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 18936$as_echo_n "checking if msgfmt accepts -c... " >&6; } 18937 cat >conftest.foo <<_ACEOF 18938 18939msgid "" 18940msgstr "" 18941"Content-Type: text/plain; charset=UTF-8\n" 18942"Project-Id-Version: test 1.0\n" 18943"PO-Revision-Date: 2007-02-15 12:01+0100\n" 18944"Last-Translator: test <foo@bar.xx>\n" 18945"Language-Team: C <LL@li.org>\n" 18946"MIME-Version: 1.0\n" 18947"Content-Transfer-Encoding: 8bit\n" 18948 18949_ACEOF 18950if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 18951 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 18952 ac_status=$? 18953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18954 test $ac_status = 0; }; then 18955 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18956$as_echo "yes" >&6; } 18957else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18958$as_echo "no" >&6; } 18959echo "$as_me: failed input was:" >&5 18960sed 's/^/| /' conftest.foo >&5 18961fi 18962 18963 # Extract the first word of "gmsgfmt", so it can be a program name with args. 18964set dummy gmsgfmt; ac_word=$2 18965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18966$as_echo_n "checking for $ac_word... " >&6; } 18967if ${ac_cv_path_GMSGFMT+:} false; then : 18968 $as_echo_n "(cached) " >&6 18969else 18970 case $GMSGFMT in 18971 [\\/]* | ?:[\\/]*) 18972 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 18973 ;; 18974 *) 18975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18976for as_dir in $PATH 18977do 18978 IFS=$as_save_IFS 18979 test -z "$as_dir" && as_dir=. 18980 for ac_exec_ext in '' $ac_executable_extensions; do 18981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18982 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 18983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18984 break 2 18985 fi 18986done 18987 done 18988IFS=$as_save_IFS 18989 18990 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 18991 ;; 18992esac 18993fi 18994GMSGFMT=$ac_cv_path_GMSGFMT 18995if test -n "$GMSGFMT"; then 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 18997$as_echo "$GMSGFMT" >&6; } 18998else 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19000$as_echo "no" >&6; } 19001fi 19002 19003 19004 # Extract the first word of "xgettext", so it can be a program name with args. 19005set dummy xgettext; ac_word=$2 19006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19007$as_echo_n "checking for $ac_word... " >&6; } 19008if ${ac_cv_path_XGETTEXT+:} false; then : 19009 $as_echo_n "(cached) " >&6 19010else 19011 case "$XGETTEXT" in 19012 /*) 19013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 19014 ;; 19015 *) 19016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 19017 for ac_dir in $PATH; do 19018 test -z "$ac_dir" && ac_dir=. 19019 if test -f $ac_dir/$ac_word; then 19020 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 19021 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 19022 break 19023 fi 19024 fi 19025 done 19026 IFS="$ac_save_ifs" 19027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 19028 ;; 19029esac 19030fi 19031XGETTEXT="$ac_cv_path_XGETTEXT" 19032if test "$XGETTEXT" != ":"; then 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 19034$as_echo "$XGETTEXT" >&6; } 19035else 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19037$as_echo "no" >&6; } 19038fi 19039 19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19041/* end confdefs.h. */ 19042 19043int 19044main () 19045{ 19046extern int _nl_msg_cat_cntr; 19047 return _nl_msg_cat_cntr 19048 ; 19049 return 0; 19050} 19051_ACEOF 19052if ac_fn_c_try_link "$LINENO"; then : 19053 CATOBJEXT=.gmo 19054 DATADIRNAME=share 19055else 19056 case $host in 19057 *-*-solaris*) 19058 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 19059if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 19060 CATOBJEXT=.gmo 19061 DATADIRNAME=share 19062else 19063 CATOBJEXT=.mo 19064 DATADIRNAME=lib 19065fi 19066 19067 ;; 19068 *-*-openbsd*) 19069 CATOBJEXT=.mo 19070 DATADIRNAME=share 19071 ;; 19072 *) 19073 CATOBJEXT=.mo 19074 DATADIRNAME=lib 19075 ;; 19076 esac 19077fi 19078rm -f core conftest.err conftest.$ac_objext \ 19079 conftest$ac_exeext conftest.$ac_ext 19080 LIBS="$glib_save_LIBS" 19081 INSTOBJEXT=.mo 19082 else 19083 gt_cv_have_gettext=no 19084 fi 19085 fi 19086 19087fi 19088 19089 19090 19091 if test "$gt_cv_have_gettext" = "yes" ; then 19092 19093$as_echo "#define ENABLE_NLS 1" >>confdefs.h 19094 19095 fi 19096 19097 if test "$XGETTEXT" != ":"; then 19098 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 19099 : ; 19100 else 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 19102$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 19103 XGETTEXT=":" 19104 fi 19105 fi 19106 19107 # We need to process the po/ directory. 19108 POSUB=po 19109 19110 ac_config_commands="$ac_config_commands default-1" 19111 19112 19113 for lang in $ALL_LINGUAS; do 19114 GMOFILES="$GMOFILES $lang.gmo" 19115 POFILES="$POFILES $lang.po" 19116 done 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 if test "$gt_cv_have_gettext" = "yes"; then 19131 if test "x$ALL_LINGUAS" = "x"; then 19132 LINGUAS= 19133 else 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 19135$as_echo_n "checking for catalogs to be installed... " >&6; } 19136 NEW_LINGUAS= 19137 for presentlang in $ALL_LINGUAS; do 19138 useit=no 19139 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 19140 desiredlanguages="$LINGUAS" 19141 else 19142 desiredlanguages="$ALL_LINGUAS" 19143 fi 19144 for desiredlang in $desiredlanguages; do 19145 # Use the presentlang catalog if desiredlang is 19146 # a. equal to presentlang, or 19147 # b. a variant of presentlang (because in this case, 19148 # presentlang can be used as a fallback for messages 19149 # which are not translated in the desiredlang catalog). 19150 case "$desiredlang" in 19151 "$presentlang"*) useit=yes;; 19152 esac 19153 done 19154 if test $useit = yes; then 19155 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 19156 fi 19157 done 19158 LINGUAS=$NEW_LINGUAS 19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 19160$as_echo "$LINGUAS" >&6; } 19161 fi 19162 19163 if test -n "$LINGUAS"; then 19164 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 19165 fi 19166 fi 19167 19168 MKINSTALLDIRS= 19169 if test -n "$ac_aux_dir"; then 19170 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 19171 fi 19172 if test -z "$MKINSTALLDIRS"; then 19173 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 19174 fi 19175 19176 19177 test -d po || mkdir po 19178 if test "x$srcdir" != "x."; then 19179 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 19180 posrcprefix="$srcdir/" 19181 else 19182 posrcprefix="../$srcdir/" 19183 fi 19184 else 19185 posrcprefix="../" 19186 fi 19187 rm -f po/POTFILES 19188 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 19189 < $srcdir/po/POTFILES.in > po/POTFILES 19190 19191 19192 19193 19194 19195 19196 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 19197set dummy gtkdoc-check; ac_word=$2 19198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19199$as_echo_n "checking for $ac_word... " >&6; } 19200if ${ac_cv_path_GTKDOC_CHECK+:} false; then : 19201 $as_echo_n "(cached) " >&6 19202else 19203 case $GTKDOC_CHECK in 19204 [\\/]* | ?:[\\/]*) 19205 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. 19206 ;; 19207 *) 19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19209for as_dir in $PATH 19210do 19211 IFS=$as_save_IFS 19212 test -z "$as_dir" && as_dir=. 19213 for ac_exec_ext in '' $ac_executable_extensions; do 19214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19215 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" 19216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19217 break 2 19218 fi 19219done 19220 done 19221IFS=$as_save_IFS 19222 19223 ;; 19224esac 19225fi 19226GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK 19227if test -n "$GTKDOC_CHECK"; then 19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 19229$as_echo "$GTKDOC_CHECK" >&6; } 19230else 19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19232$as_echo "no" >&6; } 19233fi 19234 19235 19236 for ac_prog in gtkdoc-rebase 19237do 19238 # Extract the first word of "$ac_prog", so it can be a program name with args. 19239set dummy $ac_prog; ac_word=$2 19240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19241$as_echo_n "checking for $ac_word... " >&6; } 19242if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 19243 $as_echo_n "(cached) " >&6 19244else 19245 case $GTKDOC_REBASE in 19246 [\\/]* | ?:[\\/]*) 19247 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 19248 ;; 19249 *) 19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19251for as_dir in $PATH 19252do 19253 IFS=$as_save_IFS 19254 test -z "$as_dir" && as_dir=. 19255 for ac_exec_ext in '' $ac_executable_extensions; do 19256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19257 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 19258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19259 break 2 19260 fi 19261done 19262 done 19263IFS=$as_save_IFS 19264 19265 ;; 19266esac 19267fi 19268GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 19269if test -n "$GTKDOC_REBASE"; then 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 19271$as_echo "$GTKDOC_REBASE" >&6; } 19272else 19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19274$as_echo "no" >&6; } 19275fi 19276 19277 19278 test -n "$GTKDOC_REBASE" && break 19279done 19280test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 19281 19282 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 19283set dummy gtkdoc-mkpdf; ac_word=$2 19284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19285$as_echo_n "checking for $ac_word... " >&6; } 19286if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 19287 $as_echo_n "(cached) " >&6 19288else 19289 case $GTKDOC_MKPDF in 19290 [\\/]* | ?:[\\/]*) 19291 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 19292 ;; 19293 *) 19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19295for as_dir in $PATH 19296do 19297 IFS=$as_save_IFS 19298 test -z "$as_dir" && as_dir=. 19299 for ac_exec_ext in '' $ac_executable_extensions; do 19300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19301 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 19302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19303 break 2 19304 fi 19305done 19306 done 19307IFS=$as_save_IFS 19308 19309 ;; 19310esac 19311fi 19312GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 19313if test -n "$GTKDOC_MKPDF"; then 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 19315$as_echo "$GTKDOC_MKPDF" >&6; } 19316else 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19318$as_echo "no" >&6; } 19319fi 19320 19321 19322 19323 19324# Check whether --with-html-dir was given. 19325if test "${with_html_dir+set}" = set; then : 19326 withval=$with_html_dir; 19327else 19328 with_html_dir='${datadir}/gtk-doc/html' 19329fi 19330 19331 HTML_DIR="$with_html_dir" 19332 19333 19334 # Check whether --enable-gtk-doc was given. 19335if test "${enable_gtk_doc+set}" = set; then : 19336 enableval=$enable_gtk_doc; 19337else 19338 enable_gtk_doc=no 19339fi 19340 19341 19342 if test x$enable_gtk_doc = xyes; then 19343 if test -n "$PKG_CONFIG" && \ 19344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5 19345 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5 19346 ac_status=$? 19347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19348 test $ac_status = 0; }; then 19349 : 19350else 19351 as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5 19352fi 19353 if test "x$PACKAGE_NAME" != "xglib"; then 19354 19355pkg_failed=no 19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 19357$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 19358 19359if test -n "$GTKDOC_DEPS_CFLAGS"; then 19360 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 19361 elif test -n "$PKG_CONFIG"; then 19362 if test -n "$PKG_CONFIG" && \ 19363 { { $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 19364 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 19365 ac_status=$? 19366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19367 test $ac_status = 0; }; then 19368 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 19369 test "x$?" != "x0" && pkg_failed=yes 19370else 19371 pkg_failed=yes 19372fi 19373 else 19374 pkg_failed=untried 19375fi 19376if test -n "$GTKDOC_DEPS_LIBS"; then 19377 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 19378 elif test -n "$PKG_CONFIG"; then 19379 if test -n "$PKG_CONFIG" && \ 19380 { { $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 19381 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 19382 ac_status=$? 19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19384 test $ac_status = 0; }; then 19385 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 19386 test "x$?" != "x0" && pkg_failed=yes 19387else 19388 pkg_failed=yes 19389fi 19390 else 19391 pkg_failed=untried 19392fi 19393 19394 19395 19396if test $pkg_failed = yes; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398$as_echo "no" >&6; } 19399 19400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19401 _pkg_short_errors_supported=yes 19402else 19403 _pkg_short_errors_supported=no 19404fi 19405 if test $_pkg_short_errors_supported = yes; then 19406 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` 19407 else 19408 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 19409 fi 19410 # Put the nasty error message in config.log where it belongs 19411 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 19412 19413 : 19414elif test $pkg_failed = untried; then 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19416$as_echo "no" >&6; } 19417 : 19418else 19419 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 19420 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19422$as_echo "yes" >&6; } 19423 19424fi 19425 fi 19426 fi 19427 19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 19429$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 19431$as_echo "$enable_gtk_doc" >&6; } 19432 19433 # Check whether --enable-gtk-doc-html was given. 19434if test "${enable_gtk_doc_html+set}" = set; then : 19435 enableval=$enable_gtk_doc_html; 19436else 19437 enable_gtk_doc_html=yes 19438fi 19439 19440 # Check whether --enable-gtk-doc-pdf was given. 19441if test "${enable_gtk_doc_pdf+set}" = set; then : 19442 enableval=$enable_gtk_doc_pdf; 19443else 19444 enable_gtk_doc_pdf=no 19445fi 19446 19447 19448 if test -z "$GTKDOC_MKPDF"; then 19449 enable_gtk_doc_pdf=no 19450 fi 19451 19452 if test -z "$AM_DEFAULT_VERBOSITY"; then 19453 AM_DEFAULT_VERBOSITY=1 19454 fi 19455 19456 19457 if test x$enable_gtk_doc = xyes; then 19458 ENABLE_GTK_DOC_TRUE= 19459 ENABLE_GTK_DOC_FALSE='#' 19460else 19461 ENABLE_GTK_DOC_TRUE='#' 19462 ENABLE_GTK_DOC_FALSE= 19463fi 19464 19465 if test x$enable_gtk_doc_html = xyes; then 19466 GTK_DOC_BUILD_HTML_TRUE= 19467 GTK_DOC_BUILD_HTML_FALSE='#' 19468else 19469 GTK_DOC_BUILD_HTML_TRUE='#' 19470 GTK_DOC_BUILD_HTML_FALSE= 19471fi 19472 19473 if test x$enable_gtk_doc_pdf = xyes; then 19474 GTK_DOC_BUILD_PDF_TRUE= 19475 GTK_DOC_BUILD_PDF_FALSE='#' 19476else 19477 GTK_DOC_BUILD_PDF_TRUE='#' 19478 GTK_DOC_BUILD_PDF_FALSE= 19479fi 19480 19481 if test -n "$LIBTOOL"; then 19482 GTK_DOC_USE_LIBTOOL_TRUE= 19483 GTK_DOC_USE_LIBTOOL_FALSE='#' 19484else 19485 GTK_DOC_USE_LIBTOOL_TRUE='#' 19486 GTK_DOC_USE_LIBTOOL_FALSE= 19487fi 19488 19489 if test -n "$GTKDOC_REBASE"; then 19490 GTK_DOC_USE_REBASE_TRUE= 19491 GTK_DOC_USE_REBASE_FALSE='#' 19492else 19493 GTK_DOC_USE_REBASE_TRUE='#' 19494 GTK_DOC_USE_REBASE_FALSE= 19495fi 19496 19497 19498 19499 19500PYTHON_MIN_VERSION=2.1.1 19501PYTHON_MUTAGEN_MIN_VERSION=1.8 19502SWIG_MIN_VERSION=1.3.24 19503 19504 am_display_PYTHON=python 19505 19506 19507# Check whether --with-python was given. 19508if test "${with_python+set}" = set; then : 19509 withval=$with_python; with_python=$withval 19510else 19511 with_python=yes 19512fi 19513 19514 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build python bindings" >&5 19516$as_echo_n "checking whether to build python bindings... " >&6; } 19517 if test "X$with_python" != Xno; then 19518 if test "X$with_python" != Xyes; then 19519 PYTHON=$with_python 19520 fi 19521 with_python=yes 19522 fi 19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5 19524$as_echo "$with_python" >&6; } 19525 19526 if test "X$with_python" = Xyes; then 19527 if test -z "$PYTHON"; then 19528 # Extract the first word of "python", so it can be a program name with args. 19529set dummy python; ac_word=$2 19530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19531$as_echo_n "checking for $ac_word... " >&6; } 19532if ${ac_cv_path_PYTHON+:} false; then : 19533 $as_echo_n "(cached) " >&6 19534else 19535 case $PYTHON in 19536 [\\/]* | ?:[\\/]*) 19537 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19538 ;; 19539 *) 19540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19541for as_dir in $PATH 19542do 19543 IFS=$as_save_IFS 19544 test -z "$as_dir" && as_dir=. 19545 for ac_exec_ext in '' $ac_executable_extensions; do 19546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19547 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 19548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19549 break 2 19550 fi 19551done 19552 done 19553IFS=$as_save_IFS 19554 19555 ;; 19556esac 19557fi 19558PYTHON=$ac_cv_path_PYTHON 19559if test -n "$PYTHON"; then 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 19561$as_echo "$PYTHON" >&6; } 19562else 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19564$as_echo "no" >&6; } 19565fi 19566 19567 19568 fi 19569 19570 if test -n "$PYTHON"; then 19571 19572 19573 19574 19575 19576 19577 if test -n "$PYTHON"; then 19578 # If the user set $PYTHON, use it and don't search something else. 19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $PYTHON_MIN_VERSION" >&5 19580$as_echo_n "checking whether $PYTHON version is >= $PYTHON_MIN_VERSION... " >&6; } 19581 prog="import sys 19582# split strings by '.' and convert to numeric. Append some zeros 19583# because we need at least 4 digits for the hex conversion. 19584# map returns an iterator in Python 3.0 and a list in 2.x 19585minver = list(map(int, '$PYTHON_MIN_VERSION'.split('.'))) + [0, 0, 0] 19586minverhex = 0 19587# xrange is not present in Python 3.0 and range returns an iterator 19588for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 19589sys.exit(sys.hexversion < minverhex)" 19590 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 19591 ($PYTHON -c "$prog") >&5 2>&5 19592 ac_status=$? 19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19594 (exit $ac_status); }; then : 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19596$as_echo "yes" >&6; } 19597else 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19599$as_echo "no" >&6; } 19600 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 19601fi 19602 am_display_PYTHON=$PYTHON 19603 else 19604 # Otherwise, try each interpreter until we find one that satisfies 19605 # VERSION. 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $PYTHON_MIN_VERSION" >&5 19607$as_echo_n "checking for a Python interpreter with version >= $PYTHON_MIN_VERSION... " >&6; } 19608if ${am_cv_pathless_PYTHON+:} false; then : 19609 $as_echo_n "(cached) " >&6 19610else 19611 19612 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 19613 test "$am_cv_pathless_PYTHON" = none && break 19614 prog="import sys 19615# split strings by '.' and convert to numeric. Append some zeros 19616# because we need at least 4 digits for the hex conversion. 19617# map returns an iterator in Python 3.0 and a list in 2.x 19618minver = list(map(int, '$PYTHON_MIN_VERSION'.split('.'))) + [0, 0, 0] 19619minverhex = 0 19620# xrange is not present in Python 3.0 and range returns an iterator 19621for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 19622sys.exit(sys.hexversion < minverhex)" 19623 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 19624 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 19625 ac_status=$? 19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19627 (exit $ac_status); }; then : 19628 break 19629fi 19630 done 19631fi 19632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 19633$as_echo "$am_cv_pathless_PYTHON" >&6; } 19634 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 19635 if test "$am_cv_pathless_PYTHON" = none; then 19636 PYTHON=: 19637 else 19638 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 19639set dummy $am_cv_pathless_PYTHON; ac_word=$2 19640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19641$as_echo_n "checking for $ac_word... " >&6; } 19642if ${ac_cv_path_PYTHON+:} false; then : 19643 $as_echo_n "(cached) " >&6 19644else 19645 case $PYTHON in 19646 [\\/]* | ?:[\\/]*) 19647 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19648 ;; 19649 *) 19650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19651for as_dir in $PATH 19652do 19653 IFS=$as_save_IFS 19654 test -z "$as_dir" && as_dir=. 19655 for ac_exec_ext in '' $ac_executable_extensions; do 19656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19657 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 19658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19659 break 2 19660 fi 19661done 19662 done 19663IFS=$as_save_IFS 19664 19665 ;; 19666esac 19667fi 19668PYTHON=$ac_cv_path_PYTHON 19669if test -n "$PYTHON"; then 19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 19671$as_echo "$PYTHON" >&6; } 19672else 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19674$as_echo "no" >&6; } 19675fi 19676 19677 19678 fi 19679 am_display_PYTHON=$am_cv_pathless_PYTHON 19680 fi 19681 19682 19683 if test "$PYTHON" = :; then 19684 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 19685 else 19686 19687 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 19689$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 19690if ${am_cv_python_version+:} false; then : 19691 $as_echo_n "(cached) " >&6 19692else 19693 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 19694fi 19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 19696$as_echo "$am_cv_python_version" >&6; } 19697 PYTHON_VERSION=$am_cv_python_version 19698 19699 19700 19701 PYTHON_PREFIX='${prefix}' 19702 19703 PYTHON_EXEC_PREFIX='${exec_prefix}' 19704 19705 19706 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 19708$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 19709if ${am_cv_python_platform+:} false; then : 19710 $as_echo_n "(cached) " >&6 19711else 19712 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 19713fi 19714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 19715$as_echo "$am_cv_python_platform" >&6; } 19716 PYTHON_PLATFORM=$am_cv_python_platform 19717 19718 19719 # Just factor out some code duplication. 19720 am_python_setup_sysconfig="\ 19721import sys 19722# Prefer sysconfig over distutils.sysconfig, for better compatibility 19723# with python 3.x. See automake bug#10227. 19724try: 19725 import sysconfig 19726except ImportError: 19727 can_use_sysconfig = 0 19728else: 19729 can_use_sysconfig = 1 19730# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 19731# <https://github.com/pypa/virtualenv/issues/118> 19732try: 19733 from platform import python_implementation 19734 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 19735 can_use_sysconfig = 0 19736except ImportError: 19737 pass" 19738 19739 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 19741$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 19742if ${am_cv_python_pythondir+:} false; then : 19743 $as_echo_n "(cached) " >&6 19744else 19745 if test "x$prefix" = xNONE 19746 then 19747 am_py_prefix=$ac_default_prefix 19748 else 19749 am_py_prefix=$prefix 19750 fi 19751 am_cv_python_pythondir=`$PYTHON -c " 19752$am_python_setup_sysconfig 19753if can_use_sysconfig: 19754 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 19755else: 19756 from distutils import sysconfig 19757 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 19758sys.stdout.write(sitedir)"` 19759 case $am_cv_python_pythondir in 19760 $am_py_prefix*) 19761 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 19762 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 19763 ;; 19764 *) 19765 case $am_py_prefix in 19766 /usr|/System*) ;; 19767 *) 19768 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 19769 ;; 19770 esac 19771 ;; 19772 esac 19773 19774fi 19775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 19776$as_echo "$am_cv_python_pythondir" >&6; } 19777 pythondir=$am_cv_python_pythondir 19778 19779 19780 19781 pkgpythondir=\${pythondir}/$PACKAGE 19782 19783 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 19785$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 19786if ${am_cv_python_pyexecdir+:} false; then : 19787 $as_echo_n "(cached) " >&6 19788else 19789 if test "x$exec_prefix" = xNONE 19790 then 19791 am_py_exec_prefix=$am_py_prefix 19792 else 19793 am_py_exec_prefix=$exec_prefix 19794 fi 19795 am_cv_python_pyexecdir=`$PYTHON -c " 19796$am_python_setup_sysconfig 19797if can_use_sysconfig: 19798 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 19799else: 19800 from distutils import sysconfig 19801 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 19802sys.stdout.write(sitedir)"` 19803 case $am_cv_python_pyexecdir in 19804 $am_py_exec_prefix*) 19805 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 19806 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 19807 ;; 19808 *) 19809 case $am_py_exec_prefix in 19810 /usr|/System*) ;; 19811 *) 19812 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 19813 ;; 19814 esac 19815 ;; 19816 esac 19817 19818fi 19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 19820$as_echo "$am_cv_python_pyexecdir" >&6; } 19821 pyexecdir=$am_cv_python_pyexecdir 19822 19823 19824 19825 pkgpyexecdir=\${pyexecdir}/$PACKAGE 19826 19827 19828 19829 fi 19830 19831 19832 19833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python development headers" >&5 19834$as_echo_n "checking for python development headers... " >&6; } 19835py_prefix=`$PYTHON -c "import sys; print sys.prefix"` 19836py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` 19837PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" 19838if test "$py_prefix" != "$py_exec_prefix"; then 19839 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" 19840fi 19841 19842save_CPPFLAGS="$CPPFLAGS" 19843CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" 19844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19845/* end confdefs.h. */ 19846#include <Python.h> 19847_ACEOF 19848if ac_fn_c_try_cpp "$LINENO"; then : 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 19850$as_echo "found" >&6; } 19851with_python="yes" 19852else 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19854$as_echo "not found" >&6; } 19855with_python="no" 19856fi 19857rm -f conftest.err conftest.i conftest.$ac_ext 19858CPPFLAGS="$save_CPPFLAGS" 19859 19860 19861 if test "X$with_python" = Xyes; then 19862 if test `uname` = Darwin; then 19863 PYTHON_LDFLAGS="-Wl,-F. -Wl,-F. -bundle" 19864 if $PYTHON -c 'import sys, string; sys.exit(string.find(sys.prefix,"Framework")+1)'; then 19865 : 19866 else 19867 PYTHON_LDFLAGS="$PYTHON_LDFLAGS -framework Python" 19868 fi 19869 else 19870 PYTHON_LDFLAGS="-shared" 19871 fi 19872 19873 19874 19875py_mod_var=`echo mutagen` 19876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mutagen >= $PYTHON_MUTAGEN_MIN_VERSION" >&5 19877$as_echo_n "checking for python module mutagen >= $PYTHON_MUTAGEN_MIN_VERSION... " >&6; } 19878if eval \${py_cv_mod_$py_mod_var+:} false; then : 19879 $as_echo_n "(cached) " >&6 19880else 19881 19882prog=" 19883import sys, string, mutagen 19884curverstr = mutagen.version_string 19885# use method from AM_PYTHON_CHECK_VERSION 19886minver = map(int, string.split('$PYTHON_MUTAGEN_MIN_VERSION', '.')) 19887length = len(minver) 19888minver += [0, 0, 0] 19889minverhex = 0 19890for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] 19891curver = map(int, string.split(curverstr, '.')[:length]) 19892curver += [0, 0, 0] 19893curverhex = 0 19894for i in xrange(0, 4): curverhex = (curverhex << 8) + curver[i] 19895if (curverhex >= minverhex): 19896 sys.exit(0) 19897else: 19898 sys.exit(1) 19899sys.exit(0)" 19900if $PYTHON -c "$prog" 1>&5 2>&5 19901 then 19902 eval "py_cv_mod_$py_mod_var=yes" 19903 else 19904 eval "py_cv_mod_$py_mod_var=no" 19905 fi 19906 19907fi 19908 19909py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` 19910if test "x$py_val" != xno; then 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19912$as_echo "yes" >&6; } 19913 else 19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19915$as_echo "no" >&6; } 19916 with_python=no 19917fi 19918 19919 19920 19921 if test "X$with_python" = Xyes; then 19922 19923 # Extract the first word of "swig", so it can be a program name with args. 19924set dummy swig; ac_word=$2 19925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19926$as_echo_n "checking for $ac_word... " >&6; } 19927if ${ac_cv_path_SWIG+:} false; then : 19928 $as_echo_n "(cached) " >&6 19929else 19930 case $SWIG in 19931 [\\/]* | ?:[\\/]*) 19932 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 19933 ;; 19934 *) 19935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19936for as_dir in $PATH 19937do 19938 IFS=$as_save_IFS 19939 test -z "$as_dir" && as_dir=. 19940 for ac_exec_ext in '' $ac_executable_extensions; do 19941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19942 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 19943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19944 break 2 19945 fi 19946done 19947 done 19948IFS=$as_save_IFS 19949 19950 ;; 19951esac 19952fi 19953SWIG=$ac_cv_path_SWIG 19954if test -n "$SWIG"; then 19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 19956$as_echo "$SWIG" >&6; } 19957else 19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19959$as_echo "no" >&6; } 19960fi 19961 19962 19963 if test -z "$SWIG" ; then 19964 has_swig=no 19965 elif test -n "$SWIG_MIN_VERSION" ; then 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 19967$as_echo_n "checking SWIG version... " >&6; } 19968 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 19970$as_echo "$swig_version" >&6; } 19971 if test -n "$swig_version" ; then 19972 # Calculate the required version number components 19973 required=$SWIG_MIN_VERSION 19974 required_major=`echo $required | sed 's/[^0-9].*//'` 19975 if test -z "$required_major" ; then 19976 required_major=0 19977 fi 19978 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 19979 required_minor=`echo $required | sed 's/[^0-9].*//'` 19980 if test -z "$required_minor" ; then 19981 required_minor=0 19982 fi 19983 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 19984 required_patch=`echo $required | sed 's/[^0-9].*//'` 19985 if test -z "$required_patch" ; then 19986 required_patch=0 19987 fi 19988 # Calculate the available version number components 19989 available=$swig_version 19990 available_major=`echo $available | sed 's/[^0-9].*//'` 19991 if test -z "$available_major" ; then 19992 available_major=0 19993 fi 19994 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19995 available_minor=`echo $available | sed 's/[^0-9].*//'` 19996 if test -z "$available_minor" ; then 19997 available_minor=0 19998 fi 19999 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 20000 available_patch=`echo $available | sed 's/[^0-9].*//'` 20001 if test -z "$available_patch" ; then 20002 available_patch=0 20003 fi 20004 # Convert the version tuple into a single number for easier comparison. 20005 # Using base 100 should be safe since SWIG internally uses BCD values 20006 # to encode its version number. 20007 required_swig_vernum=`expr $required_major \* 10000 \ 20008 \+ $required_minor \* 100 \+ $required_patch` 20009 available_swig_vernum=`expr $available_major \* 10000 \ 20010 \+ $available_minor \* 100 \+ $available_patch` 20011 20012 if test $available_swig_vernum -lt $required_swig_vernum; then 20013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= $SWIG_MIN_VERSION is required. You have $swig_version." >&5 20014$as_echo "$as_me: WARNING: SWIG version >= $SWIG_MIN_VERSION is required. You have $swig_version." >&2;} 20015 SWIG='' 20016 has_swig=no 20017 else 20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 20019$as_echo_n "checking for SWIG library... " >&6; } 20020 SWIG_LIB=`$SWIG -swiglib` 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 20022$as_echo "$SWIG_LIB" >&6; } 20023 has_swig=yes 20024 fi 20025 else 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 20027$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 20028 SWIG='' 20029 has_swig=no 20030 fi 20031 fi 20032 20033 20034 with_python="$has_swig" 20035 fi 20036 fi 20037 else 20038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python not found. try --with-python=/path/to/python" >&5 20039$as_echo "$as_me: WARNING: python not found. try --with-python=/path/to/python" >&2;} 20040 with_python="no" 20041 fi 20042 fi 20043 if test x$with_python = xyes; then 20044 HAVE_PYTHON_TRUE= 20045 HAVE_PYTHON_FALSE='#' 20046else 20047 HAVE_PYTHON_TRUE='#' 20048 HAVE_PYTHON_FALSE= 20049fi 20050 20051 20052 20053 20054MONO_MIN_VERSION=1.9.1 20055GTK_SHARP_MIN_VERSION=2.12 20056 20057 20058# Check whether --with-mono was given. 20059if test "${with_mono+set}" = set; then : 20060 withval=$with_mono; with_mono=$withval 20061else 20062 with_mono=auto 20063fi 20064 20065 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mono bindings" >&5 20067$as_echo_n "checking whether to build mono bindings... " >&6; } 20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mono" >&5 20069$as_echo "$with_mono" >&6; } 20070 20071 if test "X$with_mono" != Xno; then 20072 mono_detected="yes" 20073 20074 expanded_libdir=`( 20075 case $prefix in 20076 NONE) prefix=$ac_default_prefix ;; 20077 *) ;; 20078 esac 20079 case $exec_prefix in 20080 NONE) exec_prefix=$prefix ;; 20081 *) ;; 20082 esac 20083 eval echo $libdir 20084 )` 20085 20086 20087 20088 20089pkg_failed=no 20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO_MODULE" >&5 20091$as_echo_n "checking for MONO_MODULE... " >&6; } 20092 20093if test -n "$MONO_MODULE_CFLAGS"; then 20094 pkg_cv_MONO_MODULE_CFLAGS="$MONO_MODULE_CFLAGS" 20095 elif test -n "$PKG_CONFIG"; then 20096 if test -n "$PKG_CONFIG" && \ 20097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_MIN_VERSION\""; } >&5 20098 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_MIN_VERSION") 2>&5 20099 ac_status=$? 20100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20101 test $ac_status = 0; }; then 20102 pkg_cv_MONO_MODULE_CFLAGS=`$PKG_CONFIG --cflags "mono >= $MONO_MIN_VERSION" 2>/dev/null` 20103 test "x$?" != "x0" && pkg_failed=yes 20104else 20105 pkg_failed=yes 20106fi 20107 else 20108 pkg_failed=untried 20109fi 20110if test -n "$MONO_MODULE_LIBS"; then 20111 pkg_cv_MONO_MODULE_LIBS="$MONO_MODULE_LIBS" 20112 elif test -n "$PKG_CONFIG"; then 20113 if test -n "$PKG_CONFIG" && \ 20114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_MIN_VERSION\""; } >&5 20115 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_MIN_VERSION") 2>&5 20116 ac_status=$? 20117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20118 test $ac_status = 0; }; then 20119 pkg_cv_MONO_MODULE_LIBS=`$PKG_CONFIG --libs "mono >= $MONO_MIN_VERSION" 2>/dev/null` 20120 test "x$?" != "x0" && pkg_failed=yes 20121else 20122 pkg_failed=yes 20123fi 20124 else 20125 pkg_failed=untried 20126fi 20127 20128 20129 20130if test $pkg_failed = yes; then 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20132$as_echo "no" >&6; } 20133 20134if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20135 _pkg_short_errors_supported=yes 20136else 20137 _pkg_short_errors_supported=no 20138fi 20139 if test $_pkg_short_errors_supported = yes; then 20140 MONO_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono >= $MONO_MIN_VERSION" 2>&1` 20141 else 20142 MONO_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono >= $MONO_MIN_VERSION" 2>&1` 20143 fi 20144 # Put the nasty error message in config.log where it belongs 20145 echo "$MONO_MODULE_PKG_ERRORS" >&5 20146 20147 found_mono="no" 20148elif test $pkg_failed = untried; then 20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20150$as_echo "no" >&6; } 20151 found_mono="no" 20152else 20153 MONO_MODULE_CFLAGS=$pkg_cv_MONO_MODULE_CFLAGS 20154 MONO_MODULE_LIBS=$pkg_cv_MONO_MODULE_LIBS 20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20156$as_echo "yes" >&6; } 20157 found_mono="yes" 20158fi 20159 if test "x$found_mono" = "xno"; then 20160 if test "X$with_mono" = "Xyes"; then 20161 as_fn_error $? "You need to install mono" "$LINENO" 5 20162 else 20163 mono_detected=no 20164 fi 20165 fi 20166 20167 20168 20169 20170 # Extract the first word of "gmcs", so it can be a program name with args. 20171set dummy gmcs; ac_word=$2 20172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20173$as_echo_n "checking for $ac_word... " >&6; } 20174if ${ac_cv_path_MCS+:} false; then : 20175 $as_echo_n "(cached) " >&6 20176else 20177 case $MCS in 20178 [\\/]* | ?:[\\/]*) 20179 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 20180 ;; 20181 *) 20182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20183for as_dir in $PATH 20184do 20185 IFS=$as_save_IFS 20186 test -z "$as_dir" && as_dir=. 20187 for ac_exec_ext in '' $ac_executable_extensions; do 20188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20189 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 20190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20191 break 2 20192 fi 20193done 20194 done 20195IFS=$as_save_IFS 20196 20197 test -z "$ac_cv_path_MCS" && ac_cv_path_MCS="no" 20198 ;; 20199esac 20200fi 20201MCS=$ac_cv_path_MCS 20202if test -n "$MCS"; then 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 20204$as_echo "$MCS" >&6; } 20205else 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20207$as_echo "no" >&6; } 20208fi 20209 20210 20211 20212 20213 if test "x$MCS" = "xno"; then 20214 if test "X$with_mono" = "Xyes"; then 20215 as_fn_error $? "You need to install 'gmcs'" "$LINENO" 5 20216 else 20217 mono_detected=no 20218 fi 20219 fi 20220 20221 20222 20223 20224 20225 # Extract the first word of "mono", so it can be a program name with args. 20226set dummy mono; ac_word=$2 20227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20228$as_echo_n "checking for $ac_word... " >&6; } 20229if ${ac_cv_path_MONO+:} false; then : 20230 $as_echo_n "(cached) " >&6 20231else 20232 case $MONO in 20233 [\\/]* | ?:[\\/]*) 20234 ac_cv_path_MONO="$MONO" # Let the user override the test with a path. 20235 ;; 20236 *) 20237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20238for as_dir in $PATH 20239do 20240 IFS=$as_save_IFS 20241 test -z "$as_dir" && as_dir=. 20242 for ac_exec_ext in '' $ac_executable_extensions; do 20243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20244 ac_cv_path_MONO="$as_dir/$ac_word$ac_exec_ext" 20245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20246 break 2 20247 fi 20248done 20249 done 20250IFS=$as_save_IFS 20251 20252 test -z "$ac_cv_path_MONO" && ac_cv_path_MONO="no" 20253 ;; 20254esac 20255fi 20256MONO=$ac_cv_path_MONO 20257if test -n "$MONO"; then 20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONO" >&5 20259$as_echo "$MONO" >&6; } 20260else 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20262$as_echo "no" >&6; } 20263fi 20264 20265 20266 20267 20268 if test "x$MONO" = "xno"; then 20269 if test "X$with_mono" = "Xyes"; then 20270 as_fn_error $? "You need to install 'mono'" "$LINENO" 5 20271 else 20272 mono_detected=no 20273 fi 20274 fi 20275 20276 20277 20278 found_gtksharp="yes" 20279 20280pkg_failed=no 20281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDKSHARP" >&5 20282$as_echo_n "checking for GDKSHARP... " >&6; } 20283 20284if test -n "$GDKSHARP_CFLAGS"; then 20285 pkg_cv_GDKSHARP_CFLAGS="$GDKSHARP_CFLAGS" 20286 elif test -n "$PKG_CONFIG"; then 20287 if test -n "$PKG_CONFIG" && \ 20288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= \$GTK_SHARP_MIN_VERSION\""; } >&5 20289 ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION") 2>&5 20290 ac_status=$? 20291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20292 test $ac_status = 0; }; then 20293 pkg_cv_GDKSHARP_CFLAGS=`$PKG_CONFIG --cflags "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>/dev/null` 20294 test "x$?" != "x0" && pkg_failed=yes 20295else 20296 pkg_failed=yes 20297fi 20298 else 20299 pkg_failed=untried 20300fi 20301if test -n "$GDKSHARP_LIBS"; then 20302 pkg_cv_GDKSHARP_LIBS="$GDKSHARP_LIBS" 20303 elif test -n "$PKG_CONFIG"; then 20304 if test -n "$PKG_CONFIG" && \ 20305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= \$GTK_SHARP_MIN_VERSION\""; } >&5 20306 ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION") 2>&5 20307 ac_status=$? 20308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20309 test $ac_status = 0; }; then 20310 pkg_cv_GDKSHARP_LIBS=`$PKG_CONFIG --libs "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>/dev/null` 20311 test "x$?" != "x0" && pkg_failed=yes 20312else 20313 pkg_failed=yes 20314fi 20315 else 20316 pkg_failed=untried 20317fi 20318 20319 20320 20321if test $pkg_failed = yes; then 20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20323$as_echo "no" >&6; } 20324 20325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20326 _pkg_short_errors_supported=yes 20327else 20328 _pkg_short_errors_supported=no 20329fi 20330 if test $_pkg_short_errors_supported = yes; then 20331 GDKSHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>&1` 20332 else 20333 GDKSHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>&1` 20334 fi 20335 # Put the nasty error message in config.log where it belongs 20336 echo "$GDKSHARP_PKG_ERRORS" >&5 20337 20338 found_gtksharp="no" 20339elif test $pkg_failed = untried; then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20341$as_echo "no" >&6; } 20342 found_gtksharp="no" 20343else 20344 GDKSHARP_CFLAGS=$pkg_cv_GDKSHARP_CFLAGS 20345 GDKSHARP_LIBS=$pkg_cv_GDKSHARP_LIBS 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20347$as_echo "yes" >&6; } 20348 20349fi 20350 20351 20352 20353pkg_failed=no 20354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIBSHARP" >&5 20355$as_echo_n "checking for GLIBSHARP... " >&6; } 20356 20357if test -n "$GLIBSHARP_CFLAGS"; then 20358 pkg_cv_GLIBSHARP_CFLAGS="$GLIBSHARP_CFLAGS" 20359 elif test -n "$PKG_CONFIG"; then 20360 if test -n "$PKG_CONFIG" && \ 20361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= \$GTK_SHARP_MIN_VERSION\""; } >&5 20362 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION") 2>&5 20363 ac_status=$? 20364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20365 test $ac_status = 0; }; then 20366 pkg_cv_GLIBSHARP_CFLAGS=`$PKG_CONFIG --cflags "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>/dev/null` 20367 test "x$?" != "x0" && pkg_failed=yes 20368else 20369 pkg_failed=yes 20370fi 20371 else 20372 pkg_failed=untried 20373fi 20374if test -n "$GLIBSHARP_LIBS"; then 20375 pkg_cv_GLIBSHARP_LIBS="$GLIBSHARP_LIBS" 20376 elif test -n "$PKG_CONFIG"; then 20377 if test -n "$PKG_CONFIG" && \ 20378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= \$GTK_SHARP_MIN_VERSION\""; } >&5 20379 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION") 2>&5 20380 ac_status=$? 20381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20382 test $ac_status = 0; }; then 20383 pkg_cv_GLIBSHARP_LIBS=`$PKG_CONFIG --libs "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>/dev/null` 20384 test "x$?" != "x0" && pkg_failed=yes 20385else 20386 pkg_failed=yes 20387fi 20388 else 20389 pkg_failed=untried 20390fi 20391 20392 20393 20394if test $pkg_failed = yes; then 20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20396$as_echo "no" >&6; } 20397 20398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20399 _pkg_short_errors_supported=yes 20400else 20401 _pkg_short_errors_supported=no 20402fi 20403 if test $_pkg_short_errors_supported = yes; then 20404 GLIBSHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>&1` 20405 else 20406 GLIBSHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-sharp-2.0 >= $GTK_SHARP_MIN_VERSION" 2>&1` 20407 fi 20408 # Put the nasty error message in config.log where it belongs 20409 echo "$GLIBSHARP_PKG_ERRORS" >&5 20410 20411 found_gtksharp="no" 20412elif test $pkg_failed = untried; then 20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20414$as_echo "no" >&6; } 20415 found_gtksharp="no" 20416else 20417 GLIBSHARP_CFLAGS=$pkg_cv_GLIBSHARP_CFLAGS 20418 GLIBSHARP_LIBS=$pkg_cv_GLIBSHARP_LIBS 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20420$as_echo "yes" >&6; } 20421 20422fi 20423 20424 if test "X$found_gtksharp" != "Xyes"; then 20425 if test "X$with_mono" = "Xyes"; then 20426 as_fn_error $? "You need to install gtk-sharp" "$LINENO" 5 20427 else 20428 mono_detected=no 20429 fi 20430 fi 20431 20432 if test "X$mono_detected" = "Xno"; then 20433 with_mono="no" 20434 else 20435 with_mono="yes" 20436 fi 20437 fi 20438 if test x$with_mono = xyes; then 20439 HAVE_MONO_TRUE= 20440 HAVE_MONO_FALSE='#' 20441else 20442 HAVE_MONO_TRUE='#' 20443 HAVE_MONO_FALSE= 20444fi 20445 20446 20447# The cast to long int works around a bug in the HP C Compiler, 20448# see AC_CHECK_SIZEOF for more information. 20449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 20450$as_echo_n "checking alignment of double... " >&6; } 20451if ${ac_cv_alignof_double+:} false; then : 20452 $as_echo_n "(cached) " >&6 20453else 20454 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default 20455#ifndef offsetof 20456# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 20457#endif 20458typedef struct { char x; double y; } ac__type_alignof_;"; then : 20459 20460else 20461 if test "$ac_cv_type_double" = yes; then 20462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20464as_fn_error 77 "cannot compute alignment of double 20465See \`config.log' for more details" "$LINENO" 5; } 20466 else 20467 ac_cv_alignof_double=0 20468 fi 20469fi 20470 20471fi 20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5 20473$as_echo "$ac_cv_alignof_double" >&6; } 20474 20475 20476 20477cat >>confdefs.h <<_ACEOF 20478#define ALIGNOF_DOUBLE $ac_cv_alignof_double 20479_ACEOF 20480 20481 20482if test "$ac_cv_alignof_double" -eq 4 ; then 20483 GMCS_FLAGS=-define:ALIGNMENT_X86_LINUX 20484else 20485 GMCS_FLAGS= 20486fi 20487 20488 20489 20490# Check whether --enable-more-warnings was given. 20491if test "${enable_more_warnings+set}" = set; then : 20492 enableval=$enable_more_warnings; set_more_warnings="$enableval" 20493else 20494 20495if test -e "$srcdir/autogen.sh"; then 20496 set_more_warnings=yes 20497else 20498 set_more_warnings=no 20499fi 20500 20501fi 20502 20503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5 20504$as_echo_n "checking for more warnings... " >&6; } 20505if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then 20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20507$as_echo "yes" >&6; } 20508 CFLAGS="\ 20509 -Wall \ 20510 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ 20511 -Wnested-externs -Wpointer-arith \ 20512 -Wcast-align -Wsign-compare \ 20513 -Werror \ 20514 $CFLAGS" 20515 20516 for option in -Wno-strict-aliasing -Wno-sign-compare -Wdeclaration-after-statement; do 20517 SAVE_CFLAGS="$CFLAGS" 20518 CFLAGS="$CFLAGS $option" 20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 20520$as_echo_n "checking whether gcc understands $option... " >&6; } 20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20522/* end confdefs.h. */ 20523 20524int 20525main () 20526{ 20527 20528 ; 20529 return 0; 20530} 20531_ACEOF 20532if ac_fn_c_try_compile "$LINENO"; then : 20533 has_option=yes 20534else 20535 has_option=no 20536fi 20537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20538 if test $has_option = no; then 20539 CFLAGS="$SAVE_CFLAGS" 20540 fi 20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 20542$as_echo "$has_option" >&6; } 20543 unset has_option 20544 unset SAVE_CFLAGS 20545 done 20546 unset option 20547else 20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20549$as_echo "no" >&6; } 20550fi 20551 20552 20553 20554 20555 20556 20557 20558# Check whether --enable-silent-rules was given. 20559if test "${enable_silent_rules+set}" = set; then : 20560 enableval=$enable_silent_rules; 20561fi 20562 20563case $enable_silent_rules in # ((( 20564 yes) AM_DEFAULT_VERBOSITY=0;; 20565 no) AM_DEFAULT_VERBOSITY=1;; 20566 *) AM_DEFAULT_VERBOSITY=0;; 20567esac 20568am_make=${MAKE-make} 20569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 20570$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 20571if ${am_cv_make_support_nested_variables+:} false; then : 20572 $as_echo_n "(cached) " >&6 20573else 20574 if $as_echo 'TRUE=$(BAR$(V)) 20575BAR0=false 20576BAR1=true 20577V=1 20578am__doit: 20579 @$(TRUE) 20580.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 20581 am_cv_make_support_nested_variables=yes 20582else 20583 am_cv_make_support_nested_variables=no 20584fi 20585fi 20586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 20587$as_echo "$am_cv_make_support_nested_variables" >&6; } 20588if test $am_cv_make_support_nested_variables = yes; then 20589 AM_V='$(V)' 20590 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20591else 20592 AM_V=$AM_DEFAULT_VERBOSITY 20593 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20594fi 20595AM_BACKSLASH='\' 20596 20597 20598ac_config_files="$ac_config_files Makefile bindings/Makefile bindings/mono/Makefile bindings/mono/libgpod-sharp/libgpod-sharp.pc bindings/mono/libgpod-sharp/Makefile bindings/mono/libgpod-sharp-test/Makefile bindings/mono/libgpod-sharp-test/libgpod-sharp-test bindings/python/gpod.i bindings/python/Makefile bindings/python/examples/Makefile bindings/python/tests/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml m4/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile libgpod-1.0.pc tools/90-libgpod.rules" 20599 20600cat >confcache <<\_ACEOF 20601# This file is a shell script that caches the results of configure 20602# tests run on this system so they can be shared between configure 20603# scripts and configure runs, see configure's option --config-cache. 20604# It is not useful on other systems. If it contains results you don't 20605# want to keep, you may remove or edit it. 20606# 20607# config.status only pays attention to the cache file if you give it 20608# the --recheck option to rerun configure. 20609# 20610# `ac_cv_env_foo' variables (set or unset) will be overridden when 20611# loading this file, other *unset* `ac_cv_foo' will be assigned the 20612# following values. 20613 20614_ACEOF 20615 20616# The following way of writing the cache mishandles newlines in values, 20617# but we know of no workaround that is simple, portable, and efficient. 20618# So, we kill variables containing newlines. 20619# Ultrix sh set writes to stderr and can't be redirected directly, 20620# and sets the high bit in the cache file unless we assign to the vars. 20621( 20622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20623 eval ac_val=\$$ac_var 20624 case $ac_val in #( 20625 *${as_nl}*) 20626 case $ac_var in #( 20627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20628$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20629 esac 20630 case $ac_var in #( 20631 _ | IFS | as_nl) ;; #( 20632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20633 *) { eval $ac_var=; unset $ac_var;} ;; 20634 esac ;; 20635 esac 20636 done 20637 20638 (set) 2>&1 | 20639 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20640 *${as_nl}ac_space=\ *) 20641 # `set' does not quote correctly, so add quotes: double-quote 20642 # substitution turns \\\\ into \\, and sed turns \\ into \. 20643 sed -n \ 20644 "s/'/'\\\\''/g; 20645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20646 ;; #( 20647 *) 20648 # `set' quotes correctly as required by POSIX, so do not add quotes. 20649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20650 ;; 20651 esac | 20652 sort 20653) | 20654 sed ' 20655 /^ac_cv_env_/b end 20656 t clear 20657 :clear 20658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20659 t end 20660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20661 :end' >>confcache 20662if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20663 if test -w "$cache_file"; then 20664 if test "x$cache_file" != "x/dev/null"; then 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20666$as_echo "$as_me: updating cache $cache_file" >&6;} 20667 if test ! -f "$cache_file" || test -h "$cache_file"; then 20668 cat confcache >"$cache_file" 20669 else 20670 case $cache_file in #( 20671 */* | ?:*) 20672 mv -f confcache "$cache_file"$$ && 20673 mv -f "$cache_file"$$ "$cache_file" ;; #( 20674 *) 20675 mv -f confcache "$cache_file" ;; 20676 esac 20677 fi 20678 fi 20679 else 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20681$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20682 fi 20683fi 20684rm -f confcache 20685 20686test "x$prefix" = xNONE && prefix=$ac_default_prefix 20687# Let make expand exec_prefix. 20688test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20689 20690DEFS=-DHAVE_CONFIG_H 20691 20692ac_libobjs= 20693ac_ltlibobjs= 20694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20695 # 1. Remove the extension, and $U if already installed. 20696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20697 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20699 # will be set to the directory where LIBOBJS objects are built. 20700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20702done 20703LIBOBJS=$ac_libobjs 20704 20705LTLIBOBJS=$ac_ltlibobjs 20706 20707 20708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20709$as_echo_n "checking that generated files are newer than configure... " >&6; } 20710 if test -n "$am_sleep_pid"; then 20711 # Hide warnings about reused PIDs. 20712 wait $am_sleep_pid 2>/dev/null 20713 fi 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20715$as_echo "done" >&6; } 20716 if test -n "$EXEEXT"; then 20717 am__EXEEXT_TRUE= 20718 am__EXEEXT_FALSE='#' 20719else 20720 am__EXEEXT_TRUE='#' 20721 am__EXEEXT_FALSE= 20722fi 20723 20724if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20725 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20726Usually this means the macro was only invoked conditionally." "$LINENO" 5 20727fi 20728if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20729 as_fn_error $? "conditional \"AMDEP\" was never defined. 20730Usually this means the macro was only invoked conditionally." "$LINENO" 5 20731fi 20732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20733 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20734Usually this means the macro was only invoked conditionally." "$LINENO" 5 20735fi 20736if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20738Usually this means the macro was only invoked conditionally." "$LINENO" 5 20739fi 20740if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20741 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20742Usually this means the macro was only invoked conditionally." "$LINENO" 5 20743fi 20744 20745 ac_config_commands="$ac_config_commands po/stamp-it" 20746 20747 20748if test -z "${HAVE_SGUTILS_TRUE}" && test -z "${HAVE_SGUTILS_FALSE}"; then 20749 as_fn_error $? "conditional \"HAVE_SGUTILS\" was never defined. 20750Usually this means the macro was only invoked conditionally." "$LINENO" 5 20751fi 20752if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then 20753 as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined. 20754Usually this means the macro was only invoked conditionally." "$LINENO" 5 20755fi 20756if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then 20757 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. 20758Usually this means the macro was only invoked conditionally." "$LINENO" 5 20759fi 20760if test -z "${HAVE_HAL_TRUE}" && test -z "${HAVE_HAL_FALSE}"; then 20761 as_fn_error $? "conditional \"HAVE_HAL\" was never defined. 20762Usually this means the macro was only invoked conditionally." "$LINENO" 5 20763fi 20764if test -z "${HAVE_LIBIMOBILEDEVICE_TRUE}" && test -z "${HAVE_LIBIMOBILEDEVICE_FALSE}"; then 20765 as_fn_error $? "conditional \"HAVE_LIBIMOBILEDEVICE\" was never defined. 20766Usually this means the macro was only invoked conditionally." "$LINENO" 5 20767fi 20768if test -z "${USE_UDEV_TRUE}" && test -z "${USE_UDEV_FALSE}"; then 20769 as_fn_error $? "conditional \"USE_UDEV\" was never defined. 20770Usually this means the macro was only invoked conditionally." "$LINENO" 5 20771fi 20772if test -z "${HAVE_TAGLIB_TRUE}" && test -z "${HAVE_TAGLIB_FALSE}"; then 20773 as_fn_error $? "conditional \"HAVE_TAGLIB\" was never defined. 20774Usually this means the macro was only invoked conditionally." "$LINENO" 5 20775fi 20776if test -z "${HAVE_GDKPIXBUF_TRUE}" && test -z "${HAVE_GDKPIXBUF_FALSE}"; then 20777 as_fn_error $? "conditional \"HAVE_GDKPIXBUF\" was never defined. 20778Usually this means the macro was only invoked conditionally." "$LINENO" 5 20779fi 20780if test -z "${HAVE_PYGOBJECT_TRUE}" && test -z "${HAVE_PYGOBJECT_FALSE}"; then 20781 as_fn_error $? "conditional \"HAVE_PYGOBJECT\" was never defined. 20782Usually this means the macro was only invoked conditionally." "$LINENO" 5 20783fi 20784if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 20785 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 20786Usually this means the macro was only invoked conditionally." "$LINENO" 5 20787fi 20788if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 20789 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 20790Usually this means the macro was only invoked conditionally." "$LINENO" 5 20791fi 20792if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 20793 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 20794Usually this means the macro was only invoked conditionally." "$LINENO" 5 20795fi 20796if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 20797 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 20798Usually this means the macro was only invoked conditionally." "$LINENO" 5 20799fi 20800if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 20801 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 20802Usually this means the macro was only invoked conditionally." "$LINENO" 5 20803fi 20804if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 20805 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 20806Usually this means the macro was only invoked conditionally." "$LINENO" 5 20807fi 20808if test -z "${HAVE_MONO_TRUE}" && test -z "${HAVE_MONO_FALSE}"; then 20809 as_fn_error $? "conditional \"HAVE_MONO\" was never defined. 20810Usually this means the macro was only invoked conditionally." "$LINENO" 5 20811fi 20812 20813: "${CONFIG_STATUS=./config.status}" 20814ac_write_fail=0 20815ac_clean_files_save=$ac_clean_files 20816ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20819as_write_fail=0 20820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20821#! $SHELL 20822# Generated by $as_me. 20823# Run this file to recreate the current configuration. 20824# Compiler output produced by configure, useful for debugging 20825# configure, is in config.log if it exists. 20826 20827debug=false 20828ac_cs_recheck=false 20829ac_cs_silent=false 20830 20831SHELL=\${CONFIG_SHELL-$SHELL} 20832export SHELL 20833_ASEOF 20834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20835## -------------------- ## 20836## M4sh Initialization. ## 20837## -------------------- ## 20838 20839# Be more Bourne compatible 20840DUALCASE=1; export DUALCASE # for MKS sh 20841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20842 emulate sh 20843 NULLCMD=: 20844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20845 # is contrary to our usage. Disable this feature. 20846 alias -g '${1+"$@"}'='"$@"' 20847 setopt NO_GLOB_SUBST 20848else 20849 case `(set -o) 2>/dev/null` in #( 20850 *posix*) : 20851 set -o posix ;; #( 20852 *) : 20853 ;; 20854esac 20855fi 20856 20857 20858as_nl=' 20859' 20860export as_nl 20861# Printing a long string crashes Solaris 7 /usr/bin/printf. 20862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20865# Prefer a ksh shell builtin over an external printf program on Solaris, 20866# but without wasting forks for bash or zsh. 20867if test -z "$BASH_VERSION$ZSH_VERSION" \ 20868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20869 as_echo='print -r --' 20870 as_echo_n='print -rn --' 20871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20872 as_echo='printf %s\n' 20873 as_echo_n='printf %s' 20874else 20875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20877 as_echo_n='/usr/ucb/echo -n' 20878 else 20879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20880 as_echo_n_body='eval 20881 arg=$1; 20882 case $arg in #( 20883 *"$as_nl"*) 20884 expr "X$arg" : "X\\(.*\\)$as_nl"; 20885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20886 esac; 20887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20888 ' 20889 export as_echo_n_body 20890 as_echo_n='sh -c $as_echo_n_body as_echo' 20891 fi 20892 export as_echo_body 20893 as_echo='sh -c $as_echo_body as_echo' 20894fi 20895 20896# The user is always right. 20897if test "${PATH_SEPARATOR+set}" != set; then 20898 PATH_SEPARATOR=: 20899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20901 PATH_SEPARATOR=';' 20902 } 20903fi 20904 20905 20906# IFS 20907# We need space, tab and new line, in precisely that order. Quoting is 20908# there to prevent editors from complaining about space-tab. 20909# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20910# splitting by setting IFS to empty value.) 20911IFS=" "" $as_nl" 20912 20913# Find who we are. Look in the path if we contain no directory separator. 20914as_myself= 20915case $0 in #(( 20916 *[\\/]* ) as_myself=$0 ;; 20917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20918for as_dir in $PATH 20919do 20920 IFS=$as_save_IFS 20921 test -z "$as_dir" && as_dir=. 20922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20923 done 20924IFS=$as_save_IFS 20925 20926 ;; 20927esac 20928# We did not find ourselves, most probably we were run as `sh COMMAND' 20929# in which case we are not to be found in the path. 20930if test "x$as_myself" = x; then 20931 as_myself=$0 20932fi 20933if test ! -f "$as_myself"; then 20934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20935 exit 1 20936fi 20937 20938# Unset variables that we do not need and which cause bugs (e.g. in 20939# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20940# suppresses any "Segmentation fault" message there. '((' could 20941# trigger a bug in pdksh 5.2.14. 20942for as_var in BASH_ENV ENV MAIL MAILPATH 20943do eval test x\${$as_var+set} = xset \ 20944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20945done 20946PS1='$ ' 20947PS2='> ' 20948PS4='+ ' 20949 20950# NLS nuisances. 20951LC_ALL=C 20952export LC_ALL 20953LANGUAGE=C 20954export LANGUAGE 20955 20956# CDPATH. 20957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20958 20959 20960# as_fn_error STATUS ERROR [LINENO LOG_FD] 20961# ---------------------------------------- 20962# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20963# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20964# script with STATUS, using 1 if that was 0. 20965as_fn_error () 20966{ 20967 as_status=$1; test $as_status -eq 0 && as_status=1 20968 if test "$4"; then 20969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20971 fi 20972 $as_echo "$as_me: error: $2" >&2 20973 as_fn_exit $as_status 20974} # as_fn_error 20975 20976 20977# as_fn_set_status STATUS 20978# ----------------------- 20979# Set $? to STATUS, without forking. 20980as_fn_set_status () 20981{ 20982 return $1 20983} # as_fn_set_status 20984 20985# as_fn_exit STATUS 20986# ----------------- 20987# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20988as_fn_exit () 20989{ 20990 set +e 20991 as_fn_set_status $1 20992 exit $1 20993} # as_fn_exit 20994 20995# as_fn_unset VAR 20996# --------------- 20997# Portably unset VAR. 20998as_fn_unset () 20999{ 21000 { eval $1=; unset $1;} 21001} 21002as_unset=as_fn_unset 21003# as_fn_append VAR VALUE 21004# ---------------------- 21005# Append the text in VALUE to the end of the definition contained in VAR. Take 21006# advantage of any shell optimizations that allow amortized linear growth over 21007# repeated appends, instead of the typical quadratic growth present in naive 21008# implementations. 21009if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21010 eval 'as_fn_append () 21011 { 21012 eval $1+=\$2 21013 }' 21014else 21015 as_fn_append () 21016 { 21017 eval $1=\$$1\$2 21018 } 21019fi # as_fn_append 21020 21021# as_fn_arith ARG... 21022# ------------------ 21023# Perform arithmetic evaluation on the ARGs, and store the result in the 21024# global $as_val. Take advantage of shells that can avoid forks. The arguments 21025# must be portable across $(()) and expr. 21026if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21027 eval 'as_fn_arith () 21028 { 21029 as_val=$(( $* )) 21030 }' 21031else 21032 as_fn_arith () 21033 { 21034 as_val=`expr "$@" || test $? -eq 1` 21035 } 21036fi # as_fn_arith 21037 21038 21039if expr a : '\(a\)' >/dev/null 2>&1 && 21040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21041 as_expr=expr 21042else 21043 as_expr=false 21044fi 21045 21046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21047 as_basename=basename 21048else 21049 as_basename=false 21050fi 21051 21052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21053 as_dirname=dirname 21054else 21055 as_dirname=false 21056fi 21057 21058as_me=`$as_basename -- "$0" || 21059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21060 X"$0" : 'X\(//\)$' \| \ 21061 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21062$as_echo X/"$0" | 21063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21064 s//\1/ 21065 q 21066 } 21067 /^X\/\(\/\/\)$/{ 21068 s//\1/ 21069 q 21070 } 21071 /^X\/\(\/\).*/{ 21072 s//\1/ 21073 q 21074 } 21075 s/.*/./; q'` 21076 21077# Avoid depending upon Character Ranges. 21078as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21080as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21081as_cr_digits='0123456789' 21082as_cr_alnum=$as_cr_Letters$as_cr_digits 21083 21084ECHO_C= ECHO_N= ECHO_T= 21085case `echo -n x` in #((((( 21086-n*) 21087 case `echo 'xy\c'` in 21088 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21089 xy) ECHO_C='\c';; 21090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21091 ECHO_T=' ';; 21092 esac;; 21093*) 21094 ECHO_N='-n';; 21095esac 21096 21097rm -f conf$$ conf$$.exe conf$$.file 21098if test -d conf$$.dir; then 21099 rm -f conf$$.dir/conf$$.file 21100else 21101 rm -f conf$$.dir 21102 mkdir conf$$.dir 2>/dev/null 21103fi 21104if (echo >conf$$.file) 2>/dev/null; then 21105 if ln -s conf$$.file conf$$ 2>/dev/null; then 21106 as_ln_s='ln -s' 21107 # ... but there are two gotchas: 21108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21110 # In both cases, we have to default to `cp -pR'. 21111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21112 as_ln_s='cp -pR' 21113 elif ln conf$$.file conf$$ 2>/dev/null; then 21114 as_ln_s=ln 21115 else 21116 as_ln_s='cp -pR' 21117 fi 21118else 21119 as_ln_s='cp -pR' 21120fi 21121rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21122rmdir conf$$.dir 2>/dev/null 21123 21124 21125# as_fn_mkdir_p 21126# ------------- 21127# Create "$as_dir" as a directory, including parents if necessary. 21128as_fn_mkdir_p () 21129{ 21130 21131 case $as_dir in #( 21132 -*) as_dir=./$as_dir;; 21133 esac 21134 test -d "$as_dir" || eval $as_mkdir_p || { 21135 as_dirs= 21136 while :; do 21137 case $as_dir in #( 21138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21139 *) as_qdir=$as_dir;; 21140 esac 21141 as_dirs="'$as_qdir' $as_dirs" 21142 as_dir=`$as_dirname -- "$as_dir" || 21143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21144 X"$as_dir" : 'X\(//\)[^/]' \| \ 21145 X"$as_dir" : 'X\(//\)$' \| \ 21146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21147$as_echo X"$as_dir" | 21148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21149 s//\1/ 21150 q 21151 } 21152 /^X\(\/\/\)[^/].*/{ 21153 s//\1/ 21154 q 21155 } 21156 /^X\(\/\/\)$/{ 21157 s//\1/ 21158 q 21159 } 21160 /^X\(\/\).*/{ 21161 s//\1/ 21162 q 21163 } 21164 s/.*/./; q'` 21165 test -d "$as_dir" && break 21166 done 21167 test -z "$as_dirs" || eval "mkdir $as_dirs" 21168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21169 21170 21171} # as_fn_mkdir_p 21172if mkdir -p . 2>/dev/null; then 21173 as_mkdir_p='mkdir -p "$as_dir"' 21174else 21175 test -d ./-p && rmdir ./-p 21176 as_mkdir_p=false 21177fi 21178 21179 21180# as_fn_executable_p FILE 21181# ----------------------- 21182# Test if FILE is an executable regular file. 21183as_fn_executable_p () 21184{ 21185 test -f "$1" && test -x "$1" 21186} # as_fn_executable_p 21187as_test_x='test -x' 21188as_executable_p=as_fn_executable_p 21189 21190# Sed expression to map a string onto a valid CPP name. 21191as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21192 21193# Sed expression to map a string onto a valid variable name. 21194as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21195 21196 21197exec 6>&1 21198## ----------------------------------- ## 21199## Main body of $CONFIG_STATUS script. ## 21200## ----------------------------------- ## 21201_ASEOF 21202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21203 21204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21205# Save the log message, to keep $0 and so on meaningful, and to 21206# report actual input values of CONFIG_FILES etc. instead of their 21207# values after options handling. 21208ac_log=" 21209This file was extended by libgpod $as_me 0.8.3, which was 21210generated by GNU Autoconf 2.69. Invocation command line was 21211 21212 CONFIG_FILES = $CONFIG_FILES 21213 CONFIG_HEADERS = $CONFIG_HEADERS 21214 CONFIG_LINKS = $CONFIG_LINKS 21215 CONFIG_COMMANDS = $CONFIG_COMMANDS 21216 $ $0 $@ 21217 21218on `(hostname || uname -n) 2>/dev/null | sed 1q` 21219" 21220 21221_ACEOF 21222 21223case $ac_config_files in *" 21224"*) set x $ac_config_files; shift; ac_config_files=$*;; 21225esac 21226 21227case $ac_config_headers in *" 21228"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21229esac 21230 21231 21232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21233# Files that config.status was made for. 21234config_files="$ac_config_files" 21235config_headers="$ac_config_headers" 21236config_commands="$ac_config_commands" 21237 21238_ACEOF 21239 21240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21241ac_cs_usage="\ 21242\`$as_me' instantiates files and other configuration actions 21243from templates according to the current configuration. Unless the files 21244and actions are specified as TAGs, all are instantiated by default. 21245 21246Usage: $0 [OPTION]... [TAG]... 21247 21248 -h, --help print this help, then exit 21249 -V, --version print version number and configuration settings, then exit 21250 --config print configuration, then exit 21251 -q, --quiet, --silent 21252 do not print progress messages 21253 -d, --debug don't remove temporary files 21254 --recheck update $as_me by reconfiguring in the same conditions 21255 --file=FILE[:TEMPLATE] 21256 instantiate the configuration file FILE 21257 --header=FILE[:TEMPLATE] 21258 instantiate the configuration header FILE 21259 21260Configuration files: 21261$config_files 21262 21263Configuration headers: 21264$config_headers 21265 21266Configuration commands: 21267$config_commands 21268 21269Report bugs to the package provider." 21270 21271_ACEOF 21272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21273ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21274ac_cs_version="\\ 21275libgpod config.status 0.8.3 21276configured by $0, generated by GNU Autoconf 2.69, 21277 with options \\"\$ac_cs_config\\" 21278 21279Copyright (C) 2012 Free Software Foundation, Inc. 21280This config.status script is free software; the Free Software Foundation 21281gives unlimited permission to copy, distribute and modify it." 21282 21283ac_pwd='$ac_pwd' 21284srcdir='$srcdir' 21285INSTALL='$INSTALL' 21286MKDIR_P='$MKDIR_P' 21287AWK='$AWK' 21288test -n "\$AWK" || AWK=awk 21289_ACEOF 21290 21291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21292# The default lists apply if the user does not specify any file. 21293ac_need_defaults=: 21294while test $# != 0 21295do 21296 case $1 in 21297 --*=?*) 21298 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21300 ac_shift=: 21301 ;; 21302 --*=) 21303 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21304 ac_optarg= 21305 ac_shift=: 21306 ;; 21307 *) 21308 ac_option=$1 21309 ac_optarg=$2 21310 ac_shift=shift 21311 ;; 21312 esac 21313 21314 case $ac_option in 21315 # Handling of the options. 21316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21317 ac_cs_recheck=: ;; 21318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21319 $as_echo "$ac_cs_version"; exit ;; 21320 --config | --confi | --conf | --con | --co | --c ) 21321 $as_echo "$ac_cs_config"; exit ;; 21322 --debug | --debu | --deb | --de | --d | -d ) 21323 debug=: ;; 21324 --file | --fil | --fi | --f ) 21325 $ac_shift 21326 case $ac_optarg in 21327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21328 '') as_fn_error $? "missing file argument" ;; 21329 esac 21330 as_fn_append CONFIG_FILES " '$ac_optarg'" 21331 ac_need_defaults=false;; 21332 --header | --heade | --head | --hea ) 21333 $ac_shift 21334 case $ac_optarg in 21335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21336 esac 21337 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21338 ac_need_defaults=false;; 21339 --he | --h) 21340 # Conflict between --help and --header 21341 as_fn_error $? "ambiguous option: \`$1' 21342Try \`$0 --help' for more information.";; 21343 --help | --hel | -h ) 21344 $as_echo "$ac_cs_usage"; exit ;; 21345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21346 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21347 ac_cs_silent=: ;; 21348 21349 # This is an error. 21350 -*) as_fn_error $? "unrecognized option: \`$1' 21351Try \`$0 --help' for more information." ;; 21352 21353 *) as_fn_append ac_config_targets " $1" 21354 ac_need_defaults=false ;; 21355 21356 esac 21357 shift 21358done 21359 21360ac_configure_extra_args= 21361 21362if $ac_cs_silent; then 21363 exec 6>/dev/null 21364 ac_configure_extra_args="$ac_configure_extra_args --silent" 21365fi 21366 21367_ACEOF 21368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21369if \$ac_cs_recheck; then 21370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21371 shift 21372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21373 CONFIG_SHELL='$SHELL' 21374 export CONFIG_SHELL 21375 exec "\$@" 21376fi 21377 21378_ACEOF 21379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21380exec 5>>config.log 21381{ 21382 echo 21383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21384## Running $as_me. ## 21385_ASBOX 21386 $as_echo "$ac_log" 21387} >&5 21388 21389_ACEOF 21390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21391# 21392# INIT-COMMANDS 21393# 21394AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21395 21396 21397# The HP-UX ksh and POSIX shell print the target directory to stdout 21398# if CDPATH is set. 21399(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21400 21401sed_quote_subst='$sed_quote_subst' 21402double_quote_subst='$double_quote_subst' 21403delay_variable_subst='$delay_variable_subst' 21404SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21405Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21406GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21407EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21408FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21409SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21410ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21411LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21412macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21413macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21414enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21415enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21416pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21417enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21418PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21419host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21420host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21421host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21422build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21423build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21424build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21425NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21426LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21427max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21428ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21429exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21430lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21431lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21432lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21433lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21434lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21435reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21436reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21437OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21438deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21439file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21440file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21441want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21442DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21443sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21444AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21445AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21446archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21447STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21448RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21449old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21450old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21451old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21452lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21453CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21454CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21455compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21456GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21457lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21458lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21459lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21460lt_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"`' 21461nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21462lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21463objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21464MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21465lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21466lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21467lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21468lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21469lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21470need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21471MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21472DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21473NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21474LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21475OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21476OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21477libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21478shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21479extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21480archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21481enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21482export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21483whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21484compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21485old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21486old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21487archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21488archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21489module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21490module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21491with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21492allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21493no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21494hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21495hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21496hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21497hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21498hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21499hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21500hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21501inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21502link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21503always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21504export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21505exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21506include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21507prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21508postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21509file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21510variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21511need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21512need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21513version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21514runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21515shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21516shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21517libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21518library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21519soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21520install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21521postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21522postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21523finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21524finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21525hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21526sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21527sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21528hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21529enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21530enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21531enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21532old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21533striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21534compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21535predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21536postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21537predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21538postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21539compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21540LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21541reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21542reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21543old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21544compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21545GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21546lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21547lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21548lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21549lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21550lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21551archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21552enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21553export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21554whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21555compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21556old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21557old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21558archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21559archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21560module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21561module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21562with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21563allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21564no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21565hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21566hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21567hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21568hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21569hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21570hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21571hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21572inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21573link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21574always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21575export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21576exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21577include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21578prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21579postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21580file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21581hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21582compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21583predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21584postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21585predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21586postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21587compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21588 21589LTCC='$LTCC' 21590LTCFLAGS='$LTCFLAGS' 21591compiler='$compiler_DEFAULT' 21592 21593# A function that is used when there is no print builtin or printf. 21594func_fallback_echo () 21595{ 21596 eval 'cat <<_LTECHO_EOF 21597\$1 21598_LTECHO_EOF' 21599} 21600 21601# Quote evaled strings. 21602for var in SED \ 21603GREP \ 21604EGREP \ 21605FGREP \ 21606SHELL \ 21607ECHO \ 21608LD \ 21609PATH_SEPARATOR \ 21610NM \ 21611LN_S \ 21612lt_SP2NL \ 21613lt_NL2SP \ 21614reload_flag \ 21615OBJDUMP \ 21616deplibs_check_method \ 21617file_magic_cmd \ 21618file_magic_glob \ 21619want_nocaseglob \ 21620DLLTOOL \ 21621sharedlib_from_linklib_cmd \ 21622AR \ 21623AR_FLAGS \ 21624archiver_list_spec \ 21625STRIP \ 21626RANLIB \ 21627CC \ 21628CFLAGS \ 21629compiler \ 21630lt_cv_sys_global_symbol_pipe \ 21631lt_cv_sys_global_symbol_to_cdecl \ 21632lt_cv_sys_global_symbol_to_c_name_address \ 21633lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21634nm_file_list_spec \ 21635lt_prog_compiler_no_builtin_flag \ 21636lt_prog_compiler_pic \ 21637lt_prog_compiler_wl \ 21638lt_prog_compiler_static \ 21639lt_cv_prog_compiler_c_o \ 21640need_locks \ 21641MANIFEST_TOOL \ 21642DSYMUTIL \ 21643NMEDIT \ 21644LIPO \ 21645OTOOL \ 21646OTOOL64 \ 21647shrext_cmds \ 21648export_dynamic_flag_spec \ 21649whole_archive_flag_spec \ 21650compiler_needs_object \ 21651with_gnu_ld \ 21652allow_undefined_flag \ 21653no_undefined_flag \ 21654hardcode_libdir_flag_spec \ 21655hardcode_libdir_separator \ 21656exclude_expsyms \ 21657include_expsyms \ 21658file_list_spec \ 21659variables_saved_for_relink \ 21660libname_spec \ 21661library_names_spec \ 21662soname_spec \ 21663install_override_mode \ 21664finish_eval \ 21665old_striplib \ 21666striplib \ 21667compiler_lib_search_dirs \ 21668predep_objects \ 21669postdep_objects \ 21670predeps \ 21671postdeps \ 21672compiler_lib_search_path \ 21673LD_CXX \ 21674reload_flag_CXX \ 21675compiler_CXX \ 21676lt_prog_compiler_no_builtin_flag_CXX \ 21677lt_prog_compiler_pic_CXX \ 21678lt_prog_compiler_wl_CXX \ 21679lt_prog_compiler_static_CXX \ 21680lt_cv_prog_compiler_c_o_CXX \ 21681export_dynamic_flag_spec_CXX \ 21682whole_archive_flag_spec_CXX \ 21683compiler_needs_object_CXX \ 21684with_gnu_ld_CXX \ 21685allow_undefined_flag_CXX \ 21686no_undefined_flag_CXX \ 21687hardcode_libdir_flag_spec_CXX \ 21688hardcode_libdir_separator_CXX \ 21689exclude_expsyms_CXX \ 21690include_expsyms_CXX \ 21691file_list_spec_CXX \ 21692compiler_lib_search_dirs_CXX \ 21693predep_objects_CXX \ 21694postdep_objects_CXX \ 21695predeps_CXX \ 21696postdeps_CXX \ 21697compiler_lib_search_path_CXX; do 21698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21699 *[\\\\\\\`\\"\\\$]*) 21700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21701 ;; 21702 *) 21703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21704 ;; 21705 esac 21706done 21707 21708# Double-quote double-evaled strings. 21709for var in reload_cmds \ 21710old_postinstall_cmds \ 21711old_postuninstall_cmds \ 21712old_archive_cmds \ 21713extract_expsyms_cmds \ 21714old_archive_from_new_cmds \ 21715old_archive_from_expsyms_cmds \ 21716archive_cmds \ 21717archive_expsym_cmds \ 21718module_cmds \ 21719module_expsym_cmds \ 21720export_symbols_cmds \ 21721prelink_cmds \ 21722postlink_cmds \ 21723postinstall_cmds \ 21724postuninstall_cmds \ 21725finish_cmds \ 21726sys_lib_search_path_spec \ 21727sys_lib_dlsearch_path_spec \ 21728reload_cmds_CXX \ 21729old_archive_cmds_CXX \ 21730old_archive_from_new_cmds_CXX \ 21731old_archive_from_expsyms_cmds_CXX \ 21732archive_cmds_CXX \ 21733archive_expsym_cmds_CXX \ 21734module_cmds_CXX \ 21735module_expsym_cmds_CXX \ 21736export_symbols_cmds_CXX \ 21737prelink_cmds_CXX \ 21738postlink_cmds_CXX; do 21739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21740 *[\\\\\\\`\\"\\\$]*) 21741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 21742 ;; 21743 *) 21744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21745 ;; 21746 esac 21747done 21748 21749ac_aux_dir='$ac_aux_dir' 21750xsi_shell='$xsi_shell' 21751lt_shell_append='$lt_shell_append' 21752 21753# See if we are running on zsh, and set the options which allow our 21754# commands through without removal of \ escapes INIT. 21755if test -n "\${ZSH_VERSION+set}" ; then 21756 setopt NO_GLOB_SUBST 21757fi 21758 21759 21760 PACKAGE='$PACKAGE' 21761 VERSION='$VERSION' 21762 TIMESTAMP='$TIMESTAMP' 21763 RM='$RM' 21764 ofile='$ofile' 21765 21766 21767 21768 21769 21770 21771 21772_ACEOF 21773 21774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21775 21776# Handling of arguments. 21777for ac_config_target in $ac_config_targets 21778do 21779 case $ac_config_target in 21780 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21781 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21782 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21783 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 21784 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21785 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;; 21786 "bindings/mono/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/mono/Makefile" ;; 21787 "bindings/mono/libgpod-sharp/libgpod-sharp.pc") CONFIG_FILES="$CONFIG_FILES bindings/mono/libgpod-sharp/libgpod-sharp.pc" ;; 21788 "bindings/mono/libgpod-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/mono/libgpod-sharp/Makefile" ;; 21789 "bindings/mono/libgpod-sharp-test/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/mono/libgpod-sharp-test/Makefile" ;; 21790 "bindings/mono/libgpod-sharp-test/libgpod-sharp-test") CONFIG_FILES="$CONFIG_FILES bindings/mono/libgpod-sharp-test/libgpod-sharp-test" ;; 21791 "bindings/python/gpod.i") CONFIG_FILES="$CONFIG_FILES bindings/python/gpod.i" ;; 21792 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;; 21793 "bindings/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/examples/Makefile" ;; 21794 "bindings/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/tests/Makefile" ;; 21795 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 21796 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;; 21797 "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;; 21798 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 21799 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21800 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21801 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21802 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21803 "libgpod-1.0.pc") CONFIG_FILES="$CONFIG_FILES libgpod-1.0.pc" ;; 21804 "tools/90-libgpod.rules") CONFIG_FILES="$CONFIG_FILES tools/90-libgpod.rules" ;; 21805 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 21806 21807 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21808 esac 21809done 21810 21811 21812# If the user did not use the arguments to specify the items to instantiate, 21813# then the envvar interface is used. Set only those that are not. 21814# We use the long form for the default assignment because of an extremely 21815# bizarre bug on SunOS 4.1.3. 21816if $ac_need_defaults; then 21817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21820fi 21821 21822# Have a temporary directory for convenience. Make it in the build tree 21823# simply because there is no reason against having it here, and in addition, 21824# creating and moving files from /tmp can sometimes cause problems. 21825# Hook for its removal unless debugging. 21826# Note that there is a small window in which the directory will not be cleaned: 21827# after its creation but before its name has been assigned to `$tmp'. 21828$debug || 21829{ 21830 tmp= ac_tmp= 21831 trap 'exit_status=$? 21832 : "${ac_tmp:=$tmp}" 21833 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21834' 0 21835 trap 'as_fn_exit 1' 1 2 13 15 21836} 21837# Create a (secure) tmp directory for tmp files. 21838 21839{ 21840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21841 test -d "$tmp" 21842} || 21843{ 21844 tmp=./conf$$-$RANDOM 21845 (umask 077 && mkdir "$tmp") 21846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21847ac_tmp=$tmp 21848 21849# Set up the scripts for CONFIG_FILES section. 21850# No need to generate them if there are no CONFIG_FILES. 21851# This happens for instance with `./config.status config.h'. 21852if test -n "$CONFIG_FILES"; then 21853 21854 21855ac_cr=`echo X | tr X '\015'` 21856# On cygwin, bash can eat \r inside `` if the user requested igncr. 21857# But we know of no other shell where ac_cr would be empty at this 21858# point, so we can use a bashism as a fallback. 21859if test "x$ac_cr" = x; then 21860 eval ac_cr=\$\'\\r\' 21861fi 21862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21864 ac_cs_awk_cr='\\r' 21865else 21866 ac_cs_awk_cr=$ac_cr 21867fi 21868 21869echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21870_ACEOF 21871 21872 21873{ 21874 echo "cat >conf$$subs.awk <<_ACEOF" && 21875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21876 echo "_ACEOF" 21877} >conf$$subs.sh || 21878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21880ac_delim='%!_!# ' 21881for ac_last_try in false false false false false :; do 21882 . ./conf$$subs.sh || 21883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21884 21885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21886 if test $ac_delim_n = $ac_delim_num; then 21887 break 21888 elif $ac_last_try; then 21889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21890 else 21891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21892 fi 21893done 21894rm -f conf$$subs.sh 21895 21896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21898_ACEOF 21899sed -n ' 21900h 21901s/^/S["/; s/!.*/"]=/ 21902p 21903g 21904s/^[^!]*!// 21905:repl 21906t repl 21907s/'"$ac_delim"'$// 21908t delim 21909:nl 21910h 21911s/\(.\{148\}\)..*/\1/ 21912t more1 21913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21914p 21915n 21916b repl 21917:more1 21918s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21919p 21920g 21921s/.\{148\}// 21922t nl 21923:delim 21924h 21925s/\(.\{148\}\)..*/\1/ 21926t more2 21927s/["\\]/\\&/g; s/^/"/; s/$/"/ 21928p 21929b 21930:more2 21931s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21932p 21933g 21934s/.\{148\}// 21935t delim 21936' <conf$$subs.awk | sed ' 21937/^[^""]/{ 21938 N 21939 s/\n// 21940} 21941' >>$CONFIG_STATUS || ac_write_fail=1 21942rm -f conf$$subs.awk 21943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21944_ACAWK 21945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21946 for (key in S) S_is_set[key] = 1 21947 FS = "" 21948 21949} 21950{ 21951 line = $ 0 21952 nfields = split(line, field, "@") 21953 substed = 0 21954 len = length(field[1]) 21955 for (i = 2; i < nfields; i++) { 21956 key = field[i] 21957 keylen = length(key) 21958 if (S_is_set[key]) { 21959 value = S[key] 21960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21961 len += length(value) + length(field[++i]) 21962 substed = 1 21963 } else 21964 len += 1 + keylen 21965 } 21966 21967 print line 21968} 21969 21970_ACAWK 21971_ACEOF 21972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21975else 21976 cat 21977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21978 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21979_ACEOF 21980 21981# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21983# trailing colons and then remove the whole line if VPATH becomes empty 21984# (actually we leave an empty line to preserve line numbers). 21985if test "x$srcdir" = x.; then 21986 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21987h 21988s/// 21989s/^/:/ 21990s/[ ]*$/:/ 21991s/:\$(srcdir):/:/g 21992s/:\${srcdir}:/:/g 21993s/:@srcdir@:/:/g 21994s/^:*// 21995s/:*$// 21996x 21997s/\(=[ ]*\).*/\1/ 21998G 21999s/\n// 22000s/^[^=]*=[ ]*$// 22001}' 22002fi 22003 22004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22005fi # test -n "$CONFIG_FILES" 22006 22007# Set up the scripts for CONFIG_HEADERS section. 22008# No need to generate them if there are no CONFIG_HEADERS. 22009# This happens for instance with `./config.status Makefile'. 22010if test -n "$CONFIG_HEADERS"; then 22011cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22012BEGIN { 22013_ACEOF 22014 22015# Transform confdefs.h into an awk script `defines.awk', embedded as 22016# here-document in config.status, that substitutes the proper values into 22017# config.h.in to produce config.h. 22018 22019# Create a delimiter string that does not exist in confdefs.h, to ease 22020# handling of long lines. 22021ac_delim='%!_!# ' 22022for ac_last_try in false false :; do 22023 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22024 if test -z "$ac_tt"; then 22025 break 22026 elif $ac_last_try; then 22027 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22028 else 22029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22030 fi 22031done 22032 22033# For the awk script, D is an array of macro values keyed by name, 22034# likewise P contains macro parameters if any. Preserve backslash 22035# newline sequences. 22036 22037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22038sed -n ' 22039s/.\{148\}/&'"$ac_delim"'/g 22040t rset 22041:rset 22042s/^[ ]*#[ ]*define[ ][ ]*/ / 22043t def 22044d 22045:def 22046s/\\$// 22047t bsnl 22048s/["\\]/\\&/g 22049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22050D["\1"]=" \3"/p 22051s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22052d 22053:bsnl 22054s/["\\]/\\&/g 22055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22056D["\1"]=" \3\\\\\\n"\\/p 22057t cont 22058s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22059t cont 22060d 22061:cont 22062n 22063s/.\{148\}/&'"$ac_delim"'/g 22064t clear 22065:clear 22066s/\\$// 22067t bsnlc 22068s/["\\]/\\&/g; s/^/"/; s/$/"/p 22069d 22070:bsnlc 22071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22072b cont 22073' <confdefs.h | sed ' 22074s/'"$ac_delim"'/"\\\ 22075"/g' >>$CONFIG_STATUS || ac_write_fail=1 22076 22077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22078 for (key in D) D_is_set[key] = 1 22079 FS = "" 22080} 22081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22082 line = \$ 0 22083 split(line, arg, " ") 22084 if (arg[1] == "#") { 22085 defundef = arg[2] 22086 mac1 = arg[3] 22087 } else { 22088 defundef = substr(arg[1], 2) 22089 mac1 = arg[2] 22090 } 22091 split(mac1, mac2, "(") #) 22092 macro = mac2[1] 22093 prefix = substr(line, 1, index(line, defundef) - 1) 22094 if (D_is_set[macro]) { 22095 # Preserve the white space surrounding the "#". 22096 print prefix "define", macro P[macro] D[macro] 22097 next 22098 } else { 22099 # Replace #undef with comments. This is necessary, for example, 22100 # in the case of _POSIX_SOURCE, which is predefined and required 22101 # on some systems where configure will not decide to define it. 22102 if (defundef == "undef") { 22103 print "/*", prefix defundef, macro, "*/" 22104 next 22105 } 22106 } 22107} 22108{ print } 22109_ACAWK 22110_ACEOF 22111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22112 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22113fi # test -n "$CONFIG_HEADERS" 22114 22115 22116eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22117shift 22118for ac_tag 22119do 22120 case $ac_tag in 22121 :[FHLC]) ac_mode=$ac_tag; continue;; 22122 esac 22123 case $ac_mode$ac_tag in 22124 :[FHL]*:*);; 22125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22126 :[FH]-) ac_tag=-:-;; 22127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22128 esac 22129 ac_save_IFS=$IFS 22130 IFS=: 22131 set x $ac_tag 22132 IFS=$ac_save_IFS 22133 shift 22134 ac_file=$1 22135 shift 22136 22137 case $ac_mode in 22138 :L) ac_source=$1;; 22139 :[FH]) 22140 ac_file_inputs= 22141 for ac_f 22142 do 22143 case $ac_f in 22144 -) ac_f="$ac_tmp/stdin";; 22145 *) # Look for the file first in the build tree, then in the source tree 22146 # (if the path is not absolute). The absolute path cannot be DOS-style, 22147 # because $ac_f cannot contain `:'. 22148 test -f "$ac_f" || 22149 case $ac_f in 22150 [\\/$]*) false;; 22151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22152 esac || 22153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22154 esac 22155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22156 as_fn_append ac_file_inputs " '$ac_f'" 22157 done 22158 22159 # Let's still pretend it is `configure' which instantiates (i.e., don't 22160 # use $as_me), people would be surprised to read: 22161 # /* config.h. Generated by config.status. */ 22162 configure_input='Generated from '` 22163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22164 `' by configure.' 22165 if test x"$ac_file" != x-; then 22166 configure_input="$ac_file. $configure_input" 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22168$as_echo "$as_me: creating $ac_file" >&6;} 22169 fi 22170 # Neutralize special characters interpreted by sed in replacement strings. 22171 case $configure_input in #( 22172 *\&* | *\|* | *\\* ) 22173 ac_sed_conf_input=`$as_echo "$configure_input" | 22174 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22175 *) ac_sed_conf_input=$configure_input;; 22176 esac 22177 22178 case $ac_tag in 22179 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22181 esac 22182 ;; 22183 esac 22184 22185 ac_dir=`$as_dirname -- "$ac_file" || 22186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22187 X"$ac_file" : 'X\(//\)[^/]' \| \ 22188 X"$ac_file" : 'X\(//\)$' \| \ 22189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22190$as_echo X"$ac_file" | 22191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22192 s//\1/ 22193 q 22194 } 22195 /^X\(\/\/\)[^/].*/{ 22196 s//\1/ 22197 q 22198 } 22199 /^X\(\/\/\)$/{ 22200 s//\1/ 22201 q 22202 } 22203 /^X\(\/\).*/{ 22204 s//\1/ 22205 q 22206 } 22207 s/.*/./; q'` 22208 as_dir="$ac_dir"; as_fn_mkdir_p 22209 ac_builddir=. 22210 22211case "$ac_dir" in 22212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22213*) 22214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22215 # A ".." for each directory in $ac_dir_suffix. 22216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22217 case $ac_top_builddir_sub in 22218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22220 esac ;; 22221esac 22222ac_abs_top_builddir=$ac_pwd 22223ac_abs_builddir=$ac_pwd$ac_dir_suffix 22224# for backward compatibility: 22225ac_top_builddir=$ac_top_build_prefix 22226 22227case $srcdir in 22228 .) # We are building in place. 22229 ac_srcdir=. 22230 ac_top_srcdir=$ac_top_builddir_sub 22231 ac_abs_top_srcdir=$ac_pwd ;; 22232 [\\/]* | ?:[\\/]* ) # Absolute name. 22233 ac_srcdir=$srcdir$ac_dir_suffix; 22234 ac_top_srcdir=$srcdir 22235 ac_abs_top_srcdir=$srcdir ;; 22236 *) # Relative name. 22237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22238 ac_top_srcdir=$ac_top_build_prefix$srcdir 22239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22240esac 22241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22242 22243 22244 case $ac_mode in 22245 :F) 22246 # 22247 # CONFIG_FILE 22248 # 22249 22250 case $INSTALL in 22251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22253 esac 22254 ac_MKDIR_P=$MKDIR_P 22255 case $MKDIR_P in 22256 [\\/$]* | ?:[\\/]* ) ;; 22257 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22258 esac 22259_ACEOF 22260 22261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22262# If the template does not know about datarootdir, expand it. 22263# FIXME: This hack should be removed a few years after 2.60. 22264ac_datarootdir_hack=; ac_datarootdir_seen= 22265ac_sed_dataroot=' 22266/datarootdir/ { 22267 p 22268 q 22269} 22270/@datadir@/p 22271/@docdir@/p 22272/@infodir@/p 22273/@localedir@/p 22274/@mandir@/p' 22275case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22276*datarootdir*) ac_datarootdir_seen=yes;; 22277*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22279$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22280_ACEOF 22281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22282 ac_datarootdir_hack=' 22283 s&@datadir@&$datadir&g 22284 s&@docdir@&$docdir&g 22285 s&@infodir@&$infodir&g 22286 s&@localedir@&$localedir&g 22287 s&@mandir@&$mandir&g 22288 s&\\\${datarootdir}&$datarootdir&g' ;; 22289esac 22290_ACEOF 22291 22292# Neutralize VPATH when `$srcdir' = `.'. 22293# Shell code in configure.ac might set extrasub. 22294# FIXME: do we really want to maintain this feature? 22295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22296ac_sed_extra="$ac_vpsub 22297$extrasub 22298_ACEOF 22299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22300:t 22301/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22302s|@configure_input@|$ac_sed_conf_input|;t t 22303s&@top_builddir@&$ac_top_builddir_sub&;t t 22304s&@top_build_prefix@&$ac_top_build_prefix&;t t 22305s&@srcdir@&$ac_srcdir&;t t 22306s&@abs_srcdir@&$ac_abs_srcdir&;t t 22307s&@top_srcdir@&$ac_top_srcdir&;t t 22308s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22309s&@builddir@&$ac_builddir&;t t 22310s&@abs_builddir@&$ac_abs_builddir&;t t 22311s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22312s&@INSTALL@&$ac_INSTALL&;t t 22313s&@MKDIR_P@&$ac_MKDIR_P&;t t 22314$ac_datarootdir_hack 22315" 22316eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22317 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22318 22319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22320 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22322 "$ac_tmp/out"`; test -z "$ac_out"; } && 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22324which seems to be undefined. Please make sure it is defined" >&5 22325$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22326which seems to be undefined. Please make sure it is defined" >&2;} 22327 22328 rm -f "$ac_tmp/stdin" 22329 case $ac_file in 22330 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22331 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22332 esac \ 22333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22334 ;; 22335 :H) 22336 # 22337 # CONFIG_HEADER 22338 # 22339 if test x"$ac_file" != x-; then 22340 { 22341 $as_echo "/* $configure_input */" \ 22342 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22343 } >"$ac_tmp/config.h" \ 22344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22345 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22347$as_echo "$as_me: $ac_file is unchanged" >&6;} 22348 else 22349 rm -f "$ac_file" 22350 mv "$ac_tmp/config.h" "$ac_file" \ 22351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22352 fi 22353 else 22354 $as_echo "/* $configure_input */" \ 22355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22356 || as_fn_error $? "could not create -" "$LINENO" 5 22357 fi 22358# Compute "$ac_file"'s index in $config_headers. 22359_am_arg="$ac_file" 22360_am_stamp_count=1 22361for _am_header in $config_headers :; do 22362 case $_am_header in 22363 $_am_arg | $_am_arg:* ) 22364 break ;; 22365 * ) 22366 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22367 esac 22368done 22369echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22370$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22371 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22372 X"$_am_arg" : 'X\(//\)$' \| \ 22373 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22374$as_echo X"$_am_arg" | 22375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22376 s//\1/ 22377 q 22378 } 22379 /^X\(\/\/\)[^/].*/{ 22380 s//\1/ 22381 q 22382 } 22383 /^X\(\/\/\)$/{ 22384 s//\1/ 22385 q 22386 } 22387 /^X\(\/\).*/{ 22388 s//\1/ 22389 q 22390 } 22391 s/.*/./; q'`/stamp-h$_am_stamp_count 22392 ;; 22393 22394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22395$as_echo "$as_me: executing $ac_file commands" >&6;} 22396 ;; 22397 esac 22398 22399 22400 case $ac_file$ac_mode in 22401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22402 # Older Autoconf quotes --file arguments for eval, but not when files 22403 # are listed without --file. Let's play safe and only enable the eval 22404 # if we detect the quoting. 22405 case $CONFIG_FILES in 22406 *\'*) eval set x "$CONFIG_FILES" ;; 22407 *) set x $CONFIG_FILES ;; 22408 esac 22409 shift 22410 for mf 22411 do 22412 # Strip MF so we end up with the name of the file. 22413 mf=`echo "$mf" | sed -e 's/:.*$//'` 22414 # Check whether this is an Automake generated Makefile or not. 22415 # We used to match only the files named 'Makefile.in', but 22416 # some people rename them; so instead we look at the file content. 22417 # Grep'ing the first line is not enough: some people post-process 22418 # each Makefile.in and add a new line on top of each file to say so. 22419 # Grep'ing the whole file is not good either: AIX grep has a line 22420 # limit of 2048, but all sed's we know have understand at least 4000. 22421 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22422 dirpart=`$as_dirname -- "$mf" || 22423$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22424 X"$mf" : 'X\(//\)[^/]' \| \ 22425 X"$mf" : 'X\(//\)$' \| \ 22426 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22427$as_echo X"$mf" | 22428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22429 s//\1/ 22430 q 22431 } 22432 /^X\(\/\/\)[^/].*/{ 22433 s//\1/ 22434 q 22435 } 22436 /^X\(\/\/\)$/{ 22437 s//\1/ 22438 q 22439 } 22440 /^X\(\/\).*/{ 22441 s//\1/ 22442 q 22443 } 22444 s/.*/./; q'` 22445 else 22446 continue 22447 fi 22448 # Extract the definition of DEPDIR, am__include, and am__quote 22449 # from the Makefile without running 'make'. 22450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22451 test -z "$DEPDIR" && continue 22452 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22453 test -z "$am__include" && continue 22454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22455 # Find all dependency output files, they are included files with 22456 # $(DEPDIR) in their names. We invoke sed twice because it is the 22457 # simplest approach to changing $(DEPDIR) to its actual value in the 22458 # expansion. 22459 for file in `sed -n " 22460 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22461 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22462 # Make sure the directory exists. 22463 test -f "$dirpart/$file" && continue 22464 fdir=`$as_dirname -- "$file" || 22465$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22466 X"$file" : 'X\(//\)[^/]' \| \ 22467 X"$file" : 'X\(//\)$' \| \ 22468 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22469$as_echo X"$file" | 22470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22471 s//\1/ 22472 q 22473 } 22474 /^X\(\/\/\)[^/].*/{ 22475 s//\1/ 22476 q 22477 } 22478 /^X\(\/\/\)$/{ 22479 s//\1/ 22480 q 22481 } 22482 /^X\(\/\).*/{ 22483 s//\1/ 22484 q 22485 } 22486 s/.*/./; q'` 22487 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22488 # echo "creating $dirpart/$file" 22489 echo '# dummy' > "$dirpart/$file" 22490 done 22491 done 22492} 22493 ;; 22494 "libtool":C) 22495 22496 # See if we are running on zsh, and set the options which allow our 22497 # commands through without removal of \ escapes. 22498 if test -n "${ZSH_VERSION+set}" ; then 22499 setopt NO_GLOB_SUBST 22500 fi 22501 22502 cfgfile="${ofile}T" 22503 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22504 $RM "$cfgfile" 22505 22506 cat <<_LT_EOF >> "$cfgfile" 22507#! $SHELL 22508 22509# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22510# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22512# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22513# 22514# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22515# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22516# Foundation, Inc. 22517# Written by Gordon Matzigkeit, 1996 22518# 22519# This file is part of GNU Libtool. 22520# 22521# GNU Libtool is free software; you can redistribute it and/or 22522# modify it under the terms of the GNU General Public License as 22523# published by the Free Software Foundation; either version 2 of 22524# the License, or (at your option) any later version. 22525# 22526# As a special exception to the GNU General Public License, 22527# if you distribute this file as part of a program or library that 22528# is built using GNU Libtool, you may include this file under the 22529# same distribution terms that you use for the rest of that program. 22530# 22531# GNU Libtool is distributed in the hope that it will be useful, 22532# but WITHOUT ANY WARRANTY; without even the implied warranty of 22533# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22534# GNU General Public License for more details. 22535# 22536# You should have received a copy of the GNU General Public License 22537# along with GNU Libtool; see the file COPYING. If not, a copy 22538# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22539# obtained by writing to the Free Software Foundation, Inc., 22540# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22541 22542 22543# The names of the tagged configurations supported by this script. 22544available_tags="CXX " 22545 22546# ### BEGIN LIBTOOL CONFIG 22547 22548# A sed program that does not truncate output. 22549SED=$lt_SED 22550 22551# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22552Xsed="\$SED -e 1s/^X//" 22553 22554# A grep program that handles long lines. 22555GREP=$lt_GREP 22556 22557# An ERE matcher. 22558EGREP=$lt_EGREP 22559 22560# A literal string matcher. 22561FGREP=$lt_FGREP 22562 22563# Shell to use when invoking shell scripts. 22564SHELL=$lt_SHELL 22565 22566# An echo program that protects backslashes. 22567ECHO=$lt_ECHO 22568 22569# Which release of libtool.m4 was used? 22570macro_version=$macro_version 22571macro_revision=$macro_revision 22572 22573# Whether or not to build shared libraries. 22574build_libtool_libs=$enable_shared 22575 22576# Whether or not to build static libraries. 22577build_old_libs=$enable_static 22578 22579# What type of objects to build. 22580pic_mode=$pic_mode 22581 22582# Whether or not to optimize for fast installation. 22583fast_install=$enable_fast_install 22584 22585# The PATH separator for the build system. 22586PATH_SEPARATOR=$lt_PATH_SEPARATOR 22587 22588# The host system. 22589host_alias=$host_alias 22590host=$host 22591host_os=$host_os 22592 22593# The build system. 22594build_alias=$build_alias 22595build=$build 22596build_os=$build_os 22597 22598# A BSD- or MS-compatible name lister. 22599NM=$lt_NM 22600 22601# Whether we need soft or hard links. 22602LN_S=$lt_LN_S 22603 22604# What is the maximum length of a command? 22605max_cmd_len=$max_cmd_len 22606 22607# Object file suffix (normally "o"). 22608objext=$ac_objext 22609 22610# Executable file suffix (normally ""). 22611exeext=$exeext 22612 22613# whether the shell understands "unset". 22614lt_unset=$lt_unset 22615 22616# turn spaces into newlines. 22617SP2NL=$lt_lt_SP2NL 22618 22619# turn newlines into spaces. 22620NL2SP=$lt_lt_NL2SP 22621 22622# convert \$build file names to \$host format. 22623to_host_file_cmd=$lt_cv_to_host_file_cmd 22624 22625# convert \$build files to toolchain format. 22626to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22627 22628# An object symbol dumper. 22629OBJDUMP=$lt_OBJDUMP 22630 22631# Method to check whether dependent libraries are shared objects. 22632deplibs_check_method=$lt_deplibs_check_method 22633 22634# Command to use when deplibs_check_method = "file_magic". 22635file_magic_cmd=$lt_file_magic_cmd 22636 22637# How to find potential files when deplibs_check_method = "file_magic". 22638file_magic_glob=$lt_file_magic_glob 22639 22640# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22641want_nocaseglob=$lt_want_nocaseglob 22642 22643# DLL creation program. 22644DLLTOOL=$lt_DLLTOOL 22645 22646# Command to associate shared and link libraries. 22647sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22648 22649# The archiver. 22650AR=$lt_AR 22651 22652# Flags to create an archive. 22653AR_FLAGS=$lt_AR_FLAGS 22654 22655# How to feed a file listing to the archiver. 22656archiver_list_spec=$lt_archiver_list_spec 22657 22658# A symbol stripping program. 22659STRIP=$lt_STRIP 22660 22661# Commands used to install an old-style archive. 22662RANLIB=$lt_RANLIB 22663old_postinstall_cmds=$lt_old_postinstall_cmds 22664old_postuninstall_cmds=$lt_old_postuninstall_cmds 22665 22666# Whether to use a lock for old archive extraction. 22667lock_old_archive_extraction=$lock_old_archive_extraction 22668 22669# A C compiler. 22670LTCC=$lt_CC 22671 22672# LTCC compiler flags. 22673LTCFLAGS=$lt_CFLAGS 22674 22675# Take the output of nm and produce a listing of raw symbols and C names. 22676global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22677 22678# Transform the output of nm in a proper C declaration. 22679global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22680 22681# Transform the output of nm in a C name address pair. 22682global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22683 22684# Transform the output of nm in a C name address pair when lib prefix is needed. 22685global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22686 22687# Specify filename containing input files for \$NM. 22688nm_file_list_spec=$lt_nm_file_list_spec 22689 22690# The root where to search for dependent libraries,and in which our libraries should be installed. 22691lt_sysroot=$lt_sysroot 22692 22693# The name of the directory that contains temporary libtool files. 22694objdir=$objdir 22695 22696# Used to examine libraries when file_magic_cmd begins with "file". 22697MAGIC_CMD=$MAGIC_CMD 22698 22699# Must we lock files when doing compilation? 22700need_locks=$lt_need_locks 22701 22702# Manifest tool. 22703MANIFEST_TOOL=$lt_MANIFEST_TOOL 22704 22705# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22706DSYMUTIL=$lt_DSYMUTIL 22707 22708# Tool to change global to local symbols on Mac OS X. 22709NMEDIT=$lt_NMEDIT 22710 22711# Tool to manipulate fat objects and archives on Mac OS X. 22712LIPO=$lt_LIPO 22713 22714# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22715OTOOL=$lt_OTOOL 22716 22717# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22718OTOOL64=$lt_OTOOL64 22719 22720# Old archive suffix (normally "a"). 22721libext=$libext 22722 22723# Shared library suffix (normally ".so"). 22724shrext_cmds=$lt_shrext_cmds 22725 22726# The commands to extract the exported symbol list from a shared archive. 22727extract_expsyms_cmds=$lt_extract_expsyms_cmds 22728 22729# Variables whose values should be saved in libtool wrapper scripts and 22730# restored at link time. 22731variables_saved_for_relink=$lt_variables_saved_for_relink 22732 22733# Do we need the "lib" prefix for modules? 22734need_lib_prefix=$need_lib_prefix 22735 22736# Do we need a version for libraries? 22737need_version=$need_version 22738 22739# Library versioning type. 22740version_type=$version_type 22741 22742# Shared library runtime path variable. 22743runpath_var=$runpath_var 22744 22745# Shared library path variable. 22746shlibpath_var=$shlibpath_var 22747 22748# Is shlibpath searched before the hard-coded library search path? 22749shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22750 22751# Format of library name prefix. 22752libname_spec=$lt_libname_spec 22753 22754# List of archive names. First name is the real one, the rest are links. 22755# The last name is the one that the linker finds with -lNAME 22756library_names_spec=$lt_library_names_spec 22757 22758# The coded name of the library, if different from the real name. 22759soname_spec=$lt_soname_spec 22760 22761# Permission mode override for installation of shared libraries. 22762install_override_mode=$lt_install_override_mode 22763 22764# Command to use after installation of a shared archive. 22765postinstall_cmds=$lt_postinstall_cmds 22766 22767# Command to use after uninstallation of a shared archive. 22768postuninstall_cmds=$lt_postuninstall_cmds 22769 22770# Commands used to finish a libtool library installation in a directory. 22771finish_cmds=$lt_finish_cmds 22772 22773# As "finish_cmds", except a single script fragment to be evaled but 22774# not shown. 22775finish_eval=$lt_finish_eval 22776 22777# Whether we should hardcode library paths into libraries. 22778hardcode_into_libs=$hardcode_into_libs 22779 22780# Compile-time system search path for libraries. 22781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22782 22783# Run-time system search path for libraries. 22784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22785 22786# Whether dlopen is supported. 22787dlopen_support=$enable_dlopen 22788 22789# Whether dlopen of programs is supported. 22790dlopen_self=$enable_dlopen_self 22791 22792# Whether dlopen of statically linked programs is supported. 22793dlopen_self_static=$enable_dlopen_self_static 22794 22795# Commands to strip libraries. 22796old_striplib=$lt_old_striplib 22797striplib=$lt_striplib 22798 22799 22800# The linker used to build libraries. 22801LD=$lt_LD 22802 22803# How to create reloadable object files. 22804reload_flag=$lt_reload_flag 22805reload_cmds=$lt_reload_cmds 22806 22807# Commands used to build an old-style archive. 22808old_archive_cmds=$lt_old_archive_cmds 22809 22810# A language specific compiler. 22811CC=$lt_compiler 22812 22813# Is the compiler the GNU compiler? 22814with_gcc=$GCC 22815 22816# Compiler flag to turn off builtin functions. 22817no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22818 22819# Additional compiler flags for building library objects. 22820pic_flag=$lt_lt_prog_compiler_pic 22821 22822# How to pass a linker flag through the compiler. 22823wl=$lt_lt_prog_compiler_wl 22824 22825# Compiler flag to prevent dynamic linking. 22826link_static_flag=$lt_lt_prog_compiler_static 22827 22828# Does compiler simultaneously support -c and -o options? 22829compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22830 22831# Whether or not to add -lc for building shared libraries. 22832build_libtool_need_lc=$archive_cmds_need_lc 22833 22834# Whether or not to disallow shared libs when runtime libs are static. 22835allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22836 22837# Compiler flag to allow reflexive dlopens. 22838export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22839 22840# Compiler flag to generate shared objects directly from archives. 22841whole_archive_flag_spec=$lt_whole_archive_flag_spec 22842 22843# Whether the compiler copes with passing no objects directly. 22844compiler_needs_object=$lt_compiler_needs_object 22845 22846# Create an old-style archive from a shared archive. 22847old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22848 22849# Create a temporary old-style archive to link instead of a shared archive. 22850old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22851 22852# Commands used to build a shared archive. 22853archive_cmds=$lt_archive_cmds 22854archive_expsym_cmds=$lt_archive_expsym_cmds 22855 22856# Commands used to build a loadable module if different from building 22857# a shared archive. 22858module_cmds=$lt_module_cmds 22859module_expsym_cmds=$lt_module_expsym_cmds 22860 22861# Whether we are building with GNU ld or not. 22862with_gnu_ld=$lt_with_gnu_ld 22863 22864# Flag that allows shared libraries with undefined symbols to be built. 22865allow_undefined_flag=$lt_allow_undefined_flag 22866 22867# Flag that enforces no undefined symbols. 22868no_undefined_flag=$lt_no_undefined_flag 22869 22870# Flag to hardcode \$libdir into a binary during linking. 22871# This must work even if \$libdir does not exist 22872hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22873 22874# Whether we need a single "-rpath" flag with a separated argument. 22875hardcode_libdir_separator=$lt_hardcode_libdir_separator 22876 22877# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22878# DIR into the resulting binary. 22879hardcode_direct=$hardcode_direct 22880 22881# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22882# DIR into the resulting binary and the resulting library dependency is 22883# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22884# library is relocated. 22885hardcode_direct_absolute=$hardcode_direct_absolute 22886 22887# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22888# into the resulting binary. 22889hardcode_minus_L=$hardcode_minus_L 22890 22891# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22892# into the resulting binary. 22893hardcode_shlibpath_var=$hardcode_shlibpath_var 22894 22895# Set to "yes" if building a shared library automatically hardcodes DIR 22896# into the library and all subsequent libraries and executables linked 22897# against it. 22898hardcode_automatic=$hardcode_automatic 22899 22900# Set to yes if linker adds runtime paths of dependent libraries 22901# to runtime path list. 22902inherit_rpath=$inherit_rpath 22903 22904# Whether libtool must link a program against all its dependency libraries. 22905link_all_deplibs=$link_all_deplibs 22906 22907# Set to "yes" if exported symbols are required. 22908always_export_symbols=$always_export_symbols 22909 22910# The commands to list exported symbols. 22911export_symbols_cmds=$lt_export_symbols_cmds 22912 22913# Symbols that should not be listed in the preloaded symbols. 22914exclude_expsyms=$lt_exclude_expsyms 22915 22916# Symbols that must always be exported. 22917include_expsyms=$lt_include_expsyms 22918 22919# Commands necessary for linking programs (against libraries) with templates. 22920prelink_cmds=$lt_prelink_cmds 22921 22922# Commands necessary for finishing linking programs. 22923postlink_cmds=$lt_postlink_cmds 22924 22925# Specify filename containing input files. 22926file_list_spec=$lt_file_list_spec 22927 22928# How to hardcode a shared library path into an executable. 22929hardcode_action=$hardcode_action 22930 22931# The directories searched by this compiler when creating a shared library. 22932compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22933 22934# Dependencies to place before and after the objects being linked to 22935# create a shared library. 22936predep_objects=$lt_predep_objects 22937postdep_objects=$lt_postdep_objects 22938predeps=$lt_predeps 22939postdeps=$lt_postdeps 22940 22941# The library search path used internally by the compiler when linking 22942# a shared library. 22943compiler_lib_search_path=$lt_compiler_lib_search_path 22944 22945# ### END LIBTOOL CONFIG 22946 22947_LT_EOF 22948 22949 case $host_os in 22950 aix3*) 22951 cat <<\_LT_EOF >> "$cfgfile" 22952# AIX sometimes has problems with the GCC collect2 program. For some 22953# reason, if we set the COLLECT_NAMES environment variable, the problems 22954# vanish in a puff of smoke. 22955if test "X${COLLECT_NAMES+set}" != Xset; then 22956 COLLECT_NAMES= 22957 export COLLECT_NAMES 22958fi 22959_LT_EOF 22960 ;; 22961 esac 22962 22963 22964ltmain="$ac_aux_dir/ltmain.sh" 22965 22966 22967 # We use sed instead of cat because bash on DJGPP gets confused if 22968 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22969 # text mode, it properly converts lines to CR/LF. This bash problem 22970 # is reportedly fixed, but why not run on old versions too? 22971 sed '$q' "$ltmain" >> "$cfgfile" \ 22972 || (rm -f "$cfgfile"; exit 1) 22973 22974 if test x"$xsi_shell" = xyes; then 22975 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22976func_dirname ()\ 22977{\ 22978\ case ${1} in\ 22979\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22980\ * ) func_dirname_result="${3}" ;;\ 22981\ esac\ 22982} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22983 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22985test 0 -eq $? || _lt_function_replace_fail=: 22986 22987 22988 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22989func_basename ()\ 22990{\ 22991\ func_basename_result="${1##*/}"\ 22992} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22995test 0 -eq $? || _lt_function_replace_fail=: 22996 22997 22998 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22999func_dirname_and_basename ()\ 23000{\ 23001\ case ${1} in\ 23002\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23003\ * ) func_dirname_result="${3}" ;;\ 23004\ esac\ 23005\ func_basename_result="${1##*/}"\ 23006} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23009test 0 -eq $? || _lt_function_replace_fail=: 23010 23011 23012 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 23013func_stripname ()\ 23014{\ 23015\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 23016\ # positional parameters, so assign one to ordinary parameter first.\ 23017\ func_stripname_result=${3}\ 23018\ func_stripname_result=${func_stripname_result#"${1}"}\ 23019\ func_stripname_result=${func_stripname_result%"${2}"}\ 23020} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 23021 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23023test 0 -eq $? || _lt_function_replace_fail=: 23024 23025 23026 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 23027func_split_long_opt ()\ 23028{\ 23029\ func_split_long_opt_name=${1%%=*}\ 23030\ func_split_long_opt_arg=${1#*=}\ 23031} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23032 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23034test 0 -eq $? || _lt_function_replace_fail=: 23035 23036 23037 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 23038func_split_short_opt ()\ 23039{\ 23040\ func_split_short_opt_arg=${1#??}\ 23041\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 23042} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23043 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23045test 0 -eq $? || _lt_function_replace_fail=: 23046 23047 23048 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 23049func_lo2o ()\ 23050{\ 23051\ case ${1} in\ 23052\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 23053\ *) func_lo2o_result=${1} ;;\ 23054\ esac\ 23055} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 23056 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23058test 0 -eq $? || _lt_function_replace_fail=: 23059 23060 23061 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 23062func_xform ()\ 23063{\ 23064 func_xform_result=${1%.*}.lo\ 23065} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 23066 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23068test 0 -eq $? || _lt_function_replace_fail=: 23069 23070 23071 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 23072func_arith ()\ 23073{\ 23074 func_arith_result=$(( $* ))\ 23075} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 23076 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23078test 0 -eq $? || _lt_function_replace_fail=: 23079 23080 23081 sed -e '/^func_len ()$/,/^} # func_len /c\ 23082func_len ()\ 23083{\ 23084 func_len_result=${#1}\ 23085} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 23086 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23088test 0 -eq $? || _lt_function_replace_fail=: 23089 23090fi 23091 23092if test x"$lt_shell_append" = xyes; then 23093 sed -e '/^func_append ()$/,/^} # func_append /c\ 23094func_append ()\ 23095{\ 23096 eval "${1}+=\\${2}"\ 23097} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23098 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23100test 0 -eq $? || _lt_function_replace_fail=: 23101 23102 23103 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23104func_append_quoted ()\ 23105{\ 23106\ func_quote_for_eval "${2}"\ 23107\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23108} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23111test 0 -eq $? || _lt_function_replace_fail=: 23112 23113 23114 # Save a `func_append' function call where possible by direct use of '+=' 23115 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23116 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23118 test 0 -eq $? || _lt_function_replace_fail=: 23119else 23120 # Save a `func_append' function call even when '+=' is not available 23121 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23122 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23124 test 0 -eq $? || _lt_function_replace_fail=: 23125fi 23126 23127if test x"$_lt_function_replace_fail" = x":"; then 23128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23129$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23130fi 23131 23132 23133 mv -f "$cfgfile" "$ofile" || 23134 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23135 chmod +x "$ofile" 23136 23137 23138 cat <<_LT_EOF >> "$ofile" 23139 23140# ### BEGIN LIBTOOL TAG CONFIG: CXX 23141 23142# The linker used to build libraries. 23143LD=$lt_LD_CXX 23144 23145# How to create reloadable object files. 23146reload_flag=$lt_reload_flag_CXX 23147reload_cmds=$lt_reload_cmds_CXX 23148 23149# Commands used to build an old-style archive. 23150old_archive_cmds=$lt_old_archive_cmds_CXX 23151 23152# A language specific compiler. 23153CC=$lt_compiler_CXX 23154 23155# Is the compiler the GNU compiler? 23156with_gcc=$GCC_CXX 23157 23158# Compiler flag to turn off builtin functions. 23159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23160 23161# Additional compiler flags for building library objects. 23162pic_flag=$lt_lt_prog_compiler_pic_CXX 23163 23164# How to pass a linker flag through the compiler. 23165wl=$lt_lt_prog_compiler_wl_CXX 23166 23167# Compiler flag to prevent dynamic linking. 23168link_static_flag=$lt_lt_prog_compiler_static_CXX 23169 23170# Does compiler simultaneously support -c and -o options? 23171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23172 23173# Whether or not to add -lc for building shared libraries. 23174build_libtool_need_lc=$archive_cmds_need_lc_CXX 23175 23176# Whether or not to disallow shared libs when runtime libs are static. 23177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23178 23179# Compiler flag to allow reflexive dlopens. 23180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23181 23182# Compiler flag to generate shared objects directly from archives. 23183whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23184 23185# Whether the compiler copes with passing no objects directly. 23186compiler_needs_object=$lt_compiler_needs_object_CXX 23187 23188# Create an old-style archive from a shared archive. 23189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23190 23191# Create a temporary old-style archive to link instead of a shared archive. 23192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23193 23194# Commands used to build a shared archive. 23195archive_cmds=$lt_archive_cmds_CXX 23196archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23197 23198# Commands used to build a loadable module if different from building 23199# a shared archive. 23200module_cmds=$lt_module_cmds_CXX 23201module_expsym_cmds=$lt_module_expsym_cmds_CXX 23202 23203# Whether we are building with GNU ld or not. 23204with_gnu_ld=$lt_with_gnu_ld_CXX 23205 23206# Flag that allows shared libraries with undefined symbols to be built. 23207allow_undefined_flag=$lt_allow_undefined_flag_CXX 23208 23209# Flag that enforces no undefined symbols. 23210no_undefined_flag=$lt_no_undefined_flag_CXX 23211 23212# Flag to hardcode \$libdir into a binary during linking. 23213# This must work even if \$libdir does not exist 23214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23215 23216# Whether we need a single "-rpath" flag with a separated argument. 23217hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23218 23219# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23220# DIR into the resulting binary. 23221hardcode_direct=$hardcode_direct_CXX 23222 23223# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23224# DIR into the resulting binary and the resulting library dependency is 23225# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23226# library is relocated. 23227hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23228 23229# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23230# into the resulting binary. 23231hardcode_minus_L=$hardcode_minus_L_CXX 23232 23233# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23234# into the resulting binary. 23235hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23236 23237# Set to "yes" if building a shared library automatically hardcodes DIR 23238# into the library and all subsequent libraries and executables linked 23239# against it. 23240hardcode_automatic=$hardcode_automatic_CXX 23241 23242# Set to yes if linker adds runtime paths of dependent libraries 23243# to runtime path list. 23244inherit_rpath=$inherit_rpath_CXX 23245 23246# Whether libtool must link a program against all its dependency libraries. 23247link_all_deplibs=$link_all_deplibs_CXX 23248 23249# Set to "yes" if exported symbols are required. 23250always_export_symbols=$always_export_symbols_CXX 23251 23252# The commands to list exported symbols. 23253export_symbols_cmds=$lt_export_symbols_cmds_CXX 23254 23255# Symbols that should not be listed in the preloaded symbols. 23256exclude_expsyms=$lt_exclude_expsyms_CXX 23257 23258# Symbols that must always be exported. 23259include_expsyms=$lt_include_expsyms_CXX 23260 23261# Commands necessary for linking programs (against libraries) with templates. 23262prelink_cmds=$lt_prelink_cmds_CXX 23263 23264# Commands necessary for finishing linking programs. 23265postlink_cmds=$lt_postlink_cmds_CXX 23266 23267# Specify filename containing input files. 23268file_list_spec=$lt_file_list_spec_CXX 23269 23270# How to hardcode a shared library path into an executable. 23271hardcode_action=$hardcode_action_CXX 23272 23273# The directories searched by this compiler when creating a shared library. 23274compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23275 23276# Dependencies to place before and after the objects being linked to 23277# create a shared library. 23278predep_objects=$lt_predep_objects_CXX 23279postdep_objects=$lt_postdep_objects_CXX 23280predeps=$lt_predeps_CXX 23281postdeps=$lt_postdeps_CXX 23282 23283# The library search path used internally by the compiler when linking 23284# a shared library. 23285compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23286 23287# ### END LIBTOOL TAG CONFIG: CXX 23288_LT_EOF 23289 23290 ;; 23291 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 23292 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 23293 esac ;; 23294 "po/stamp-it":C) 23295 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then 23296 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 23297 fi 23298 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 23299 >"po/stamp-it.tmp" 23300 sed '/^#/d 23301 s/^[[].*] *// 23302 /^[ ]*$/d 23303 '"s|^| $ac_top_srcdir/|" \ 23304 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 23305 23306 sed '/^POTFILES =/,/[^\\]$/ { 23307 /^POTFILES =/!d 23308 r po/POTFILES 23309 } 23310 ' "po/Makefile.in" >"po/Makefile" 23311 rm -f "po/Makefile.tmp" 23312 mv "po/stamp-it.tmp" "po/stamp-it" 23313 ;; 23314 23315 esac 23316done # for ac_tag 23317 23318 23319as_fn_exit 0 23320_ACEOF 23321ac_clean_files=$ac_clean_files_save 23322 23323test $ac_write_fail = 0 || 23324 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23325 23326 23327# configure is writing to config.log, and then calls config.status. 23328# config.status does its own redirection, appending to config.log. 23329# Unfortunately, on DOS this fails, as config.log is still kept open 23330# by configure, so config.status won't be able to write to it; its 23331# output is simply discarded. So we exec the FD to /dev/null, 23332# effectively closing config.log, so it can be properly (re)opened and 23333# appended to by config.status. When coming back to configure, we 23334# need to make the FD available again. 23335if test "$no_create" != yes; then 23336 ac_cs_success=: 23337 ac_config_status_args= 23338 test "$silent" = yes && 23339 ac_config_status_args="$ac_config_status_args --quiet" 23340 exec 5>/dev/null 23341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23342 exec 5>>config.log 23343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23344 # would make configure fail if this is the last instruction. 23345 $ac_cs_success || as_fn_exit 1 23346fi 23347if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23349$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23350fi 23351 23352 23353echo " 23354Configuration for $PACKAGE $VERSION : 23355-------------------------------- 23356 23357 Host System Type .........: $host 23358 Install path .............: $prefix 23359 Preprocessor .............: $CC $CPPFLAGS 23360 Compiler .................: $CC $CFLAGS $LIBGPOD_CFLAGS 23361 Linker ...................: $CC $LDFLAGS $LIBS $LIBGPOD_LIBS 23362 Artwork support ..........: $have_gdkpixbuf 23363 Mono bindings ............: $with_mono 23364 Python bindings ..........: $with_python 23365 PyGObject support ........: $have_pygobject 23366 iPhone/iPod Touch support.: $enable_libimobiledevice 23367 Temporary mount directory.: $with_temp_mount_dir 23368 23369 Now type 'make' to build $PACKAGE $VERSION, 23370 and then 'make install' for installation. 23371" 23372 23373if test x"$enable_libxml" = xno; then 23374 echo " 23375**WARNING** libxml support is disabled, libgpod won't be able to 23376parse SysInfoExtended. This means it can't take advantage of the 23377extensive iPod description (image formats, features, ...) 23378available from that file 23379" 23380fi 23381 23382if test x"$have_gdkpixbuf" = xno; then 23383 echo " 23384**WARNING** gdkpixbuf support is disabled. libgpod won't be able 23385to read or write artwork (covers, photos, ...) from/to the iPod 23386" 23387fi 23388 23389if test x"$enable_udev" = xyes -a x"$enable_hal" = xyes; then 23390 echo " 23391**WARNING** HAL and udev callouts have been enabled at the same time. 23392While this should be harmless, this isn't recommended. The udev 23393callout is the recommended one. 23394" 23395fi 23396