1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gerbv 2.7.0. 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='gerbv' 589PACKAGE_TARNAME='gerbv' 590PACKAGE_VERSION='2.7.0' 591PACKAGE_STRING='gerbv 2.7.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/gerbv.c" 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 632gt_needs= 633ac_header_list= 634gl_use_threads_default= 635ac_func_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640UPDATE_DESKTOP_DATABASE 641ENABLE_UPDATE_DESKTOP_DATABASE_FALSE 642ENABLE_UPDATE_DESKTOP_DATABASE_TRUE 643XDGDATADIR 644GTK_UPDATE_ICON_CACHE_BIN 645SETENV 646DXF_FALSE 647DXF_TRUE 648GTK_LIBS 649GTK_CFLAGS 650CAIRO_LIBS 651CAIRO_CFLAGS 652GSETTINGS_RULES 653GLIB_COMPILE_SCHEMAS 654gsettingsschemadir 655PKG_CONFIG_LIBDIR 656PKG_CONFIG_PATH 657GSETTINGS_DISABLE_SCHEMAS_COMPILE 658PKG_CONFIG 659HAVE_MAGICK_FALSE 660HAVE_MAGICK_TRUE 661IM_MONTAGE 662IM_DISPLAY 663IM_CONVERT 664IM_COMPOSITE 665IM_COMPARE 666IM_ANIMATE 667CXXCPP 668LT_SYS_LIBRARY_PATH 669OTOOL64 670OTOOL 671LIPO 672NMEDIT 673DSYMUTIL 674MANIFEST_TOOL 675ac_ct_AR 676AR 677DLLTOOL 678OBJDUMP 679LN_S 680NM 681ac_ct_DUMPBIN 682DUMPBIN 683LD 684FGREP 685LIBTOOL 686am__fastdepCXX_FALSE 687am__fastdepCXX_TRUE 688CXXDEPMODE 689ac_ct_CXX 690CXXFLAGS 691CXX 692WIN32_FALSE 693WIN32_TRUE 694WIN32 695HAVE_PO4A_FALSE 696HAVE_PO4A_TRUE 697nsgmls 698onsgmls 699po4a_translate 700po4a_gettextize 701POSUB 702LTLIBINTL 703LIBINTL 704INTLLIBS 705INTL_LIBTOOL_SUFFIX_PREFIX 706INTLOBJS 707GENCAT 708INSTOBJEXT 709DATADIRNAME 710CATOBJEXT 711USE_INCLUDED_LIBINTL 712BUILD_INCLUDED_LIBINTL 713LTLIBC 714WINDRES 715WOE32 716WOE32DLL 717HAVE_WPRINTF 718HAVE_NEWLOCALE 719HAVE_SNPRINTF 720HAVE_ASPRINTF 721HAVE_POSIX_PRINTF 722INTL_DEFAULT_VERBOSITY 723INTL_MACOSX_LIBS 724GLIBC21 725INTLBISON 726LTLIBICONV 727LIBICONV 728LTLIBMULTITHREAD 729LIBMULTITHREAD 730LTLIBTHREAD 731LIBTHREAD 732LIBPTH_PREFIX 733LTLIBPTH 734LIBPTH 735PRI_MACROS_BROKEN 736ALLOCA 737HAVE_VISIBILITY 738CFLAG_VISIBILITY 739RANLIB 740GLIBC2 741host_os 742host_vendor 743host_cpu 744host 745build_os 746build_vendor 747build_cpu 748build 749XGETTEXT_EXTRA_OPTIONS 750MSGMERGE 751XGETTEXT_015 752XGETTEXT 753GMSGFMT_015 754MSGFMT_015 755GMSGFMT 756MSGFMT 757GETTEXT_MACRO_VERSION 758SED 759USE_NLS 760MAINT 761MAINTAINER_MODE_FALSE 762MAINTAINER_MODE_TRUE 763EGREP 764GREP 765CPP 766am__fastdepCC_FALSE 767am__fastdepCC_TRUE 768CCDEPMODE 769am__nodep 770AMDEPBACKSLASH 771AMDEP_FALSE 772AMDEP_TRUE 773am__quote 774am__include 775DEPDIR 776OBJEXT 777EXEEXT 778ac_ct_CC 779CPPFLAGS 780LDFLAGS 781CFLAGS 782CC 783AM_BACKSLASH 784AM_DEFAULT_VERBOSITY 785AM_DEFAULT_V 786AM_V 787am__untar 788am__tar 789AMTAR 790am__leading_dot 791SET_MAKE 792AWK 793mkdir_p 794MKDIR_P 795INSTALL_STRIP_PROGRAM 796STRIP 797install_sh 798MAKEINFO 799AUTOHEADER 800AUTOMAKE 801AUTOCONF 802ACLOCAL 803VERSION 804PACKAGE 805CYGPATH_W 806am__isrc 807INSTALL_DATA 808INSTALL_SCRIPT 809INSTALL_PROGRAM 810target_alias 811host_alias 812build_alias 813LIBS 814ECHO_T 815ECHO_N 816ECHO_C 817DEFS 818mandir 819localedir 820libdir 821psdir 822pdfdir 823dvidir 824htmldir 825infodir 826docdir 827oldincludedir 828includedir 829runstatedir 830localstatedir 831sharedstatedir 832sysconfdir 833datadir 834datarootdir 835libexecdir 836sbindir 837bindir 838program_transform_name 839prefix 840exec_prefix 841PACKAGE_URL 842PACKAGE_BUGREPORT 843PACKAGE_STRING 844PACKAGE_VERSION 845PACKAGE_TARNAME 846PACKAGE_NAME 847PATH_SEPARATOR 848SHELL' 849ac_subst_files='' 850ac_user_opts=' 851enable_option_checking 852enable_silent_rules 853enable_dependency_tracking 854enable_maintainer_mode 855enable_nls 856enable_threads 857with_gnu_ld 858enable_rpath 859with_libpth_prefix 860with_libiconv_prefix 861with_included_gettext 862with_libintl_prefix 863enable_debug 864enable_unit_mm 865enable_shared 866enable_static 867with_pic 868enable_fast_install 869with_aix_soname 870with_sysroot 871enable_libtool_lock 872enable_schemas_compile 873enable_dxf 874enable_efence 875with_xdgdatadir 876enable_update_desktop_database 877' 878 ac_precious_vars='build_alias 879host_alias 880target_alias 881CC 882CFLAGS 883LDFLAGS 884LIBS 885CPPFLAGS 886CPP 887CXX 888CXXFLAGS 889CCC 890LT_SYS_LIBRARY_PATH 891CXXCPP 892PKG_CONFIG 893PKG_CONFIG_PATH 894PKG_CONFIG_LIBDIR 895CAIRO_CFLAGS 896CAIRO_LIBS 897GTK_CFLAGS 898GTK_LIBS' 899 900 901# Initialize some variables set by options. 902ac_init_help= 903ac_init_version=false 904ac_unrecognized_opts= 905ac_unrecognized_sep= 906# The variables have the same names as the options, with 907# dashes changed to underlines. 908cache_file=/dev/null 909exec_prefix=NONE 910no_create= 911no_recursion= 912prefix=NONE 913program_prefix=NONE 914program_suffix=NONE 915program_transform_name=s,x,x, 916silent= 917site= 918srcdir= 919verbose= 920x_includes=NONE 921x_libraries=NONE 922 923# Installation directory options. 924# These are left unexpanded so users can "make install exec_prefix=/foo" 925# and all the variables that are supposed to be based on exec_prefix 926# by default will actually change. 927# Use braces instead of parens because sh, perl, etc. also accept them. 928# (The list follows the same order as the GNU Coding Standards.) 929bindir='${exec_prefix}/bin' 930sbindir='${exec_prefix}/sbin' 931libexecdir='${exec_prefix}/libexec' 932datarootdir='${prefix}/share' 933datadir='${datarootdir}' 934sysconfdir='${prefix}/etc' 935sharedstatedir='${prefix}/com' 936localstatedir='${prefix}/var' 937runstatedir='${localstatedir}/run' 938includedir='${prefix}/include' 939oldincludedir='/usr/include' 940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 941infodir='${datarootdir}/info' 942htmldir='${docdir}' 943dvidir='${docdir}' 944pdfdir='${docdir}' 945psdir='${docdir}' 946libdir='${exec_prefix}/lib' 947localedir='${datarootdir}/locale' 948mandir='${datarootdir}/man' 949 950ac_prev= 951ac_dashdash= 952for ac_option 953do 954 # If the previous option needs an argument, assign it. 955 if test -n "$ac_prev"; then 956 eval $ac_prev=\$ac_option 957 ac_prev= 958 continue 959 fi 960 961 case $ac_option in 962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 963 *=) ac_optarg= ;; 964 *) ac_optarg=yes ;; 965 esac 966 967 # Accept the important Cygnus configure options, so we can diagnose typos. 968 969 case $ac_dashdash$ac_option in 970 --) 971 ac_dashdash=yes ;; 972 973 -bindir | --bindir | --bindi | --bind | --bin | --bi) 974 ac_prev=bindir ;; 975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 976 bindir=$ac_optarg ;; 977 978 -build | --build | --buil | --bui | --bu) 979 ac_prev=build_alias ;; 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 981 build_alias=$ac_optarg ;; 982 983 -cache-file | --cache-file | --cache-fil | --cache-fi \ 984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 985 ac_prev=cache_file ;; 986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 988 cache_file=$ac_optarg ;; 989 990 --config-cache | -C) 991 cache_file=config.cache ;; 992 993 -datadir | --datadir | --datadi | --datad) 994 ac_prev=datadir ;; 995 -datadir=* | --datadir=* | --datadi=* | --datad=*) 996 datadir=$ac_optarg ;; 997 998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 999 | --dataroo | --dataro | --datar) 1000 ac_prev=datarootdir ;; 1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1003 datarootdir=$ac_optarg ;; 1004 1005 -disable-* | --disable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: $ac_useropt" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=no ;; 1020 1021 -docdir | --docdir | --docdi | --doc | --do) 1022 ac_prev=docdir ;; 1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1024 docdir=$ac_optarg ;; 1025 1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1027 ac_prev=dvidir ;; 1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1029 dvidir=$ac_optarg ;; 1030 1031 -enable-* | --enable-*) 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1035 as_fn_error $? "invalid feature name: $ac_useropt" 1036 ac_useropt_orig=$ac_useropt 1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1038 case $ac_user_opts in 1039 *" 1040"enable_$ac_useropt" 1041"*) ;; 1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1043 ac_unrecognized_sep=', ';; 1044 esac 1045 eval enable_$ac_useropt=\$ac_optarg ;; 1046 1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1049 | --exec | --exe | --ex) 1050 ac_prev=exec_prefix ;; 1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1053 | --exec=* | --exe=* | --ex=*) 1054 exec_prefix=$ac_optarg ;; 1055 1056 -gas | --gas | --ga | --g) 1057 # Obsolete; use --with-gas. 1058 with_gas=yes ;; 1059 1060 -help | --help | --hel | --he | -h) 1061 ac_init_help=long ;; 1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1063 ac_init_help=recursive ;; 1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1065 ac_init_help=short ;; 1066 1067 -host | --host | --hos | --ho) 1068 ac_prev=host_alias ;; 1069 -host=* | --host=* | --hos=* | --ho=*) 1070 host_alias=$ac_optarg ;; 1071 1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1073 ac_prev=htmldir ;; 1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1075 | --ht=*) 1076 htmldir=$ac_optarg ;; 1077 1078 -includedir | --includedir | --includedi | --included | --include \ 1079 | --includ | --inclu | --incl | --inc) 1080 ac_prev=includedir ;; 1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1082 | --includ=* | --inclu=* | --incl=* | --inc=*) 1083 includedir=$ac_optarg ;; 1084 1085 -infodir | --infodir | --infodi | --infod | --info | --inf) 1086 ac_prev=infodir ;; 1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1088 infodir=$ac_optarg ;; 1089 1090 -libdir | --libdir | --libdi | --libd) 1091 ac_prev=libdir ;; 1092 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1093 libdir=$ac_optarg ;; 1094 1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1096 | --libexe | --libex | --libe) 1097 ac_prev=libexecdir ;; 1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1099 | --libexe=* | --libex=* | --libe=*) 1100 libexecdir=$ac_optarg ;; 1101 1102 -localedir | --localedir | --localedi | --localed | --locale) 1103 ac_prev=localedir ;; 1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1105 localedir=$ac_optarg ;; 1106 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1108 | --localstate | --localstat | --localsta | --localst | --locals) 1109 ac_prev=localstatedir ;; 1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1112 localstatedir=$ac_optarg ;; 1113 1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1115 ac_prev=mandir ;; 1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1117 mandir=$ac_optarg ;; 1118 1119 -nfp | --nfp | --nf) 1120 # Obsolete; use --without-fp. 1121 with_fp=no ;; 1122 1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1124 | --no-cr | --no-c | -n) 1125 no_create=yes ;; 1126 1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1129 no_recursion=yes ;; 1130 1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1133 | --oldin | --oldi | --old | --ol | --o) 1134 ac_prev=oldincludedir ;; 1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1138 oldincludedir=$ac_optarg ;; 1139 1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1141 ac_prev=prefix ;; 1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1143 prefix=$ac_optarg ;; 1144 1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1146 | --program-pre | --program-pr | --program-p) 1147 ac_prev=program_prefix ;; 1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1150 program_prefix=$ac_optarg ;; 1151 1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1153 | --program-suf | --program-su | --program-s) 1154 ac_prev=program_suffix ;; 1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1157 program_suffix=$ac_optarg ;; 1158 1159 -program-transform-name | --program-transform-name \ 1160 | --program-transform-nam | --program-transform-na \ 1161 | --program-transform-n | --program-transform- \ 1162 | --program-transform | --program-transfor \ 1163 | --program-transfo | --program-transf \ 1164 | --program-trans | --program-tran \ 1165 | --progr-tra | --program-tr | --program-t) 1166 ac_prev=program_transform_name ;; 1167 -program-transform-name=* | --program-transform-name=* \ 1168 | --program-transform-nam=* | --program-transform-na=* \ 1169 | --program-transform-n=* | --program-transform-=* \ 1170 | --program-transform=* | --program-transfor=* \ 1171 | --program-transfo=* | --program-transf=* \ 1172 | --program-trans=* | --program-tran=* \ 1173 | --progr-tra=* | --program-tr=* | --program-t=*) 1174 program_transform_name=$ac_optarg ;; 1175 1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1177 ac_prev=pdfdir ;; 1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1179 pdfdir=$ac_optarg ;; 1180 1181 -psdir | --psdir | --psdi | --psd | --ps) 1182 ac_prev=psdir ;; 1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1184 psdir=$ac_optarg ;; 1185 1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1187 | -silent | --silent | --silen | --sile | --sil) 1188 silent=yes ;; 1189 1190 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1191 | --runstate | --runstat | --runsta | --runst | --runs \ 1192 | --run | --ru | --r) 1193 ac_prev=runstatedir ;; 1194 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1195 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1196 | --run=* | --ru=* | --r=*) 1197 runstatedir=$ac_optarg ;; 1198 1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1200 ac_prev=sbindir ;; 1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1202 | --sbi=* | --sb=*) 1203 sbindir=$ac_optarg ;; 1204 1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1207 | --sharedst | --shareds | --shared | --share | --shar \ 1208 | --sha | --sh) 1209 ac_prev=sharedstatedir ;; 1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1213 | --sha=* | --sh=*) 1214 sharedstatedir=$ac_optarg ;; 1215 1216 -site | --site | --sit) 1217 ac_prev=site ;; 1218 -site=* | --site=* | --sit=*) 1219 site=$ac_optarg ;; 1220 1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1222 ac_prev=srcdir ;; 1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1224 srcdir=$ac_optarg ;; 1225 1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1227 | --syscon | --sysco | --sysc | --sys | --sy) 1228 ac_prev=sysconfdir ;; 1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1231 sysconfdir=$ac_optarg ;; 1232 1233 -target | --target | --targe | --targ | --tar | --ta | --t) 1234 ac_prev=target_alias ;; 1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1236 target_alias=$ac_optarg ;; 1237 1238 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1239 verbose=yes ;; 1240 1241 -version | --version | --versio | --versi | --vers | -V) 1242 ac_init_version=: ;; 1243 1244 -with-* | --with-*) 1245 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1248 as_fn_error $? "invalid package name: $ac_useropt" 1249 ac_useropt_orig=$ac_useropt 1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1251 case $ac_user_opts in 1252 *" 1253"with_$ac_useropt" 1254"*) ;; 1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1256 ac_unrecognized_sep=', ';; 1257 esac 1258 eval with_$ac_useropt=\$ac_optarg ;; 1259 1260 -without-* | --without-*) 1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1262 # Reject names that are not valid shell variable names. 1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1264 as_fn_error $? "invalid package name: $ac_useropt" 1265 ac_useropt_orig=$ac_useropt 1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1267 case $ac_user_opts in 1268 *" 1269"with_$ac_useropt" 1270"*) ;; 1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1272 ac_unrecognized_sep=', ';; 1273 esac 1274 eval with_$ac_useropt=no ;; 1275 1276 --x) 1277 # Obsolete; use --with-x. 1278 with_x=yes ;; 1279 1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1281 | --x-incl | --x-inc | --x-in | --x-i) 1282 ac_prev=x_includes ;; 1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1285 x_includes=$ac_optarg ;; 1286 1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1289 ac_prev=x_libraries ;; 1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1292 x_libraries=$ac_optarg ;; 1293 1294 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1295Try \`$0 --help' for more information" 1296 ;; 1297 1298 *=*) 1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1300 # Reject names that are not valid shell variable names. 1301 case $ac_envvar in #( 1302 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1303 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1304 esac 1305 eval $ac_envvar=\$ac_optarg 1306 export $ac_envvar ;; 1307 1308 *) 1309 # FIXME: should be removed in autoconf 3.0. 1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1314 ;; 1315 1316 esac 1317done 1318 1319if test -n "$ac_prev"; then 1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1321 as_fn_error $? "missing argument to $ac_option" 1322fi 1323 1324if test -n "$ac_unrecognized_opts"; then 1325 case $enable_option_checking in 1326 no) ;; 1327 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1329 esac 1330fi 1331 1332# Check all directory arguments for consistency. 1333for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1334 datadir sysconfdir sharedstatedir localstatedir includedir \ 1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1336 libdir localedir mandir runstatedir 1337do 1338 eval ac_val=\$$ac_var 1339 # Remove trailing slashes. 1340 case $ac_val in 1341 */ ) 1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1343 eval $ac_var=\$ac_val;; 1344 esac 1345 # Be sure to have absolute directory names. 1346 case $ac_val in 1347 [\\/$]* | ?:[\\/]* ) continue;; 1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1349 esac 1350 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1351done 1352 1353# There might be people who depend on the old broken behavior: `$host' 1354# used to hold the argument of --host etc. 1355# FIXME: To remove some day. 1356build=$build_alias 1357host=$host_alias 1358target=$target_alias 1359 1360# FIXME: To remove some day. 1361if test "x$host_alias" != x; then 1362 if test "x$build_alias" = x; then 1363 cross_compiling=maybe 1364 elif test "x$build_alias" != "x$host_alias"; then 1365 cross_compiling=yes 1366 fi 1367fi 1368 1369ac_tool_prefix= 1370test -n "$host_alias" && ac_tool_prefix=$host_alias- 1371 1372test "$silent" = yes && exec 6>/dev/null 1373 1374 1375ac_pwd=`pwd` && test -n "$ac_pwd" && 1376ac_ls_di=`ls -di .` && 1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1378 as_fn_error $? "working directory cannot be determined" 1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1380 as_fn_error $? "pwd does not report name of working directory" 1381 1382 1383# Find the source files, if location was not specified. 1384if test -z "$srcdir"; then 1385 ac_srcdir_defaulted=yes 1386 # Try the directory containing this script, then the parent directory. 1387 ac_confdir=`$as_dirname -- "$as_myself" || 1388$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1389 X"$as_myself" : 'X\(//\)[^/]' \| \ 1390 X"$as_myself" : 'X\(//\)$' \| \ 1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1392$as_echo X"$as_myself" | 1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1394 s//\1/ 1395 q 1396 } 1397 /^X\(\/\/\)[^/].*/{ 1398 s//\1/ 1399 q 1400 } 1401 /^X\(\/\/\)$/{ 1402 s//\1/ 1403 q 1404 } 1405 /^X\(\/\).*/{ 1406 s//\1/ 1407 q 1408 } 1409 s/.*/./; q'` 1410 srcdir=$ac_confdir 1411 if test ! -r "$srcdir/$ac_unique_file"; then 1412 srcdir=.. 1413 fi 1414else 1415 ac_srcdir_defaulted=no 1416fi 1417if test ! -r "$srcdir/$ac_unique_file"; then 1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1420fi 1421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1422ac_abs_confdir=`( 1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1424 pwd)` 1425# When building in place, set srcdir=. 1426if test "$ac_abs_confdir" = "$ac_pwd"; then 1427 srcdir=. 1428fi 1429# Remove unnecessary trailing slashes from srcdir. 1430# Double slashes in file names in object file debugging info 1431# mess up M-x gdb in Emacs. 1432case $srcdir in 1433*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1434esac 1435for ac_var in $ac_precious_vars; do 1436 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1437 eval ac_env_${ac_var}_value=\$${ac_var} 1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1439 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1440done 1441 1442# 1443# Report the --help message. 1444# 1445if test "$ac_init_help" = "long"; then 1446 # Omit some internal or obsolete options to make the list less imposing. 1447 # This message is too long to be a string in the A/UX 3.1 sh. 1448 cat <<_ACEOF 1449\`configure' configures gerbv 2.7.0 to adapt to many kinds of systems. 1450 1451Usage: $0 [OPTION]... [VAR=VALUE]... 1452 1453To assign environment variables (e.g., CC, CFLAGS...), specify them as 1454VAR=VALUE. See below for descriptions of some of the useful variables. 1455 1456Defaults for the options are specified in brackets. 1457 1458Configuration: 1459 -h, --help display this help and exit 1460 --help=short display options specific to this package 1461 --help=recursive display the short help of all the included packages 1462 -V, --version display version information and exit 1463 -q, --quiet, --silent do not print \`checking ...' messages 1464 --cache-file=FILE cache test results in FILE [disabled] 1465 -C, --config-cache alias for \`--cache-file=config.cache' 1466 -n, --no-create do not create output files 1467 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1468 1469Installation directories: 1470 --prefix=PREFIX install architecture-independent files in PREFIX 1471 [$ac_default_prefix] 1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1473 [PREFIX] 1474 1475By default, \`make install' will install all the files in 1476\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1477an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1478for instance \`--prefix=\$HOME'. 1479 1480For better control, use the options below. 1481 1482Fine tuning of the installation directories: 1483 --bindir=DIR user executables [EPREFIX/bin] 1484 --sbindir=DIR system admin executables [EPREFIX/sbin] 1485 --libexecdir=DIR program executables [EPREFIX/libexec] 1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1489 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/gerbv] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of gerbv 2.7.0:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --enable-silent-rules less verbose build output (undo: "make V=1") 1529 --disable-silent-rules verbose build output (undo: "make V=0") 1530 --enable-dependency-tracking 1531 do not reject slow dependency extractors 1532 --disable-dependency-tracking 1533 speeds up one-time build 1534 --enable-maintainer-mode 1535 enable make rules and dependencies not useful (and 1536 sometimes confusing) to the casual installer 1537 --disable-nls do not use Native Language Support 1538 --enable-threads={posix|solaris|pth|windows} 1539 specify multithreading API 1540 --disable-threads build without multithread safety 1541 --disable-rpath do not hardcode runtime library paths 1542 --enable-debug Enable fairly verbose debug output 1543 --enable-unit-mm Set default unit for coordinates in status bar to mm 1544 --enable-shared[=PKGS] build shared libraries [default=yes] 1545 --enable-static[=PKGS] build static libraries [default=yes] 1546 --enable-fast-install[=PKGS] 1547 optimize for fast installation [default=yes] 1548 --disable-libtool-lock avoid locking (might break parallel builds) 1549 --disable-schemas-compile 1550 Disable regeneration of gschemas.compiled on install 1551 --enable-dxf Enable DXF via dxflib [default=no] 1552 --enable-efence Link with ElectricFence for malloc debugging default=no 1553 --disable-update-desktop-database 1554 do not update desktop database after installation 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1560 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1561 --without-libpth-prefix don't search for libpth in includedir and libdir 1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1564 --with-included-gettext use the GNU gettext library included here 1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1566 --without-libintl-prefix don't search for libintl in includedir and libdir 1567 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1568 both] 1569 --with-aix-soname=aix|svr4|both 1570 shared library versioning (aka "SONAME") variant to 1571 provide on AIX, [default=aix]. 1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1573 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1574 compiler's sysroot if not specified). 1575 --with-xdgdatadir=path Change where the theme icons 1576and mime registrations are installed [DATADIR] 1577 1578Some influential environment variables: 1579 CC C compiler command 1580 CFLAGS C compiler flags 1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1582 nonstandard directory <lib dir> 1583 LIBS libraries to pass to the linker, e.g. -l<library> 1584 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1585 you have headers in a nonstandard directory <include dir> 1586 CPP C preprocessor 1587 CXX C++ compiler command 1588 CXXFLAGS C++ compiler flags 1589 LT_SYS_LIBRARY_PATH 1590 User-defined run-time library search path. 1591 CXXCPP C++ preprocessor 1592 PKG_CONFIG path to pkg-config utility 1593 PKG_CONFIG_PATH 1594 directories to add to pkg-config's search path 1595 PKG_CONFIG_LIBDIR 1596 path overriding pkg-config's built-in search path 1597 CAIRO_CFLAGS 1598 C compiler flags for CAIRO, overriding pkg-config 1599 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config 1600 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1601 GTK_LIBS linker flags for GTK, overriding pkg-config 1602 1603Use these variables to override the choices made by `configure' or to help 1604it to find libraries and programs with nonstandard names/locations. 1605 1606Report bugs to the package provider. 1607_ACEOF 1608ac_status=$? 1609fi 1610 1611if test "$ac_init_help" = "recursive"; then 1612 # If there are subdirs, report their specific --help. 1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1614 test -d "$ac_dir" || 1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1616 continue 1617 ac_builddir=. 1618 1619case "$ac_dir" in 1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621*) 1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1623 # A ".." for each directory in $ac_dir_suffix. 1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1625 case $ac_top_builddir_sub in 1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1628 esac ;; 1629esac 1630ac_abs_top_builddir=$ac_pwd 1631ac_abs_builddir=$ac_pwd$ac_dir_suffix 1632# for backward compatibility: 1633ac_top_builddir=$ac_top_build_prefix 1634 1635case $srcdir in 1636 .) # We are building in place. 1637 ac_srcdir=. 1638 ac_top_srcdir=$ac_top_builddir_sub 1639 ac_abs_top_srcdir=$ac_pwd ;; 1640 [\\/]* | ?:[\\/]* ) # Absolute name. 1641 ac_srcdir=$srcdir$ac_dir_suffix; 1642 ac_top_srcdir=$srcdir 1643 ac_abs_top_srcdir=$srcdir ;; 1644 *) # Relative name. 1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1646 ac_top_srcdir=$ac_top_build_prefix$srcdir 1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1648esac 1649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1650 1651 cd "$ac_dir" || { ac_status=$?; continue; } 1652 # Check for guested configure. 1653 if test -f "$ac_srcdir/configure.gnu"; then 1654 echo && 1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1656 elif test -f "$ac_srcdir/configure"; then 1657 echo && 1658 $SHELL "$ac_srcdir/configure" --help=recursive 1659 else 1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1661 fi || ac_status=$? 1662 cd "$ac_pwd" || { ac_status=$?; break; } 1663 done 1664fi 1665 1666test -n "$ac_init_help" && exit $ac_status 1667if $ac_init_version; then 1668 cat <<\_ACEOF 1669gerbv configure 2.7.0 1670generated by GNU Autoconf 2.69 1671 1672Copyright (C) 2012 Free Software Foundation, Inc. 1673This configure script is free software; the Free Software Foundation 1674gives unlimited permission to copy, distribute and modify it. 1675_ACEOF 1676 exit 1677fi 1678 1679## ------------------------ ## 1680## Autoconf initialization. ## 1681## ------------------------ ## 1682 1683# ac_fn_c_try_compile LINENO 1684# -------------------------- 1685# Try to compile conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_compile () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 rm -f conftest.$ac_objext 1690 if { { ac_try="$ac_compile" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_compile") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { 1706 test -z "$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 } && test -s conftest.$ac_objext; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_compile 1720 1721# ac_fn_c_try_cpp LINENO 1722# ---------------------- 1723# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1724ac_fn_c_try_cpp () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_cpp conftest.$ac_ext" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1735 ac_status=$? 1736 if test -s conftest.err; then 1737 grep -v '^ *+' conftest.err >conftest.er1 1738 cat conftest.er1 >&5 1739 mv -f conftest.er1 conftest.err 1740 fi 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; } > conftest.i && { 1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1744 test ! -s conftest.err 1745 }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_cpp 1757 1758# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1759# ------------------------------------------------------- 1760# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1761# the include files in INCLUDES and setting the cache variable VAR 1762# accordingly. 1763ac_fn_c_check_header_mongrel () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if eval \${$3+:} false; then : 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768$as_echo_n "checking for $2... " >&6; } 1769if eval \${$3+:} false; then : 1770 $as_echo_n "(cached) " >&6 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775else 1776 # Is the header compilable? 1777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1778$as_echo_n "checking $2 usability... " >&6; } 1779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780/* end confdefs.h. */ 1781$4 1782#include <$2> 1783_ACEOF 1784if ac_fn_c_try_compile "$LINENO"; then : 1785 ac_header_compiler=yes 1786else 1787 ac_header_compiler=no 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1791$as_echo "$ac_header_compiler" >&6; } 1792 1793# Is the header present? 1794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1795$as_echo_n "checking $2 presence... " >&6; } 1796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798#include <$2> 1799_ACEOF 1800if ac_fn_c_try_cpp "$LINENO"; then : 1801 ac_header_preproc=yes 1802else 1803 ac_header_preproc=no 1804fi 1805rm -f conftest.err conftest.i conftest.$ac_ext 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1807$as_echo "$ac_header_preproc" >&6; } 1808 1809# So? What about this header? 1810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1811 yes:no: ) 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1813$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1815$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1816 ;; 1817 no:yes:* ) 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1819$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1821$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1823$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1825$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1828 ;; 1829esac 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 eval "$3=\$ac_header_compiler" 1836fi 1837eval ac_res=\$$3 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839$as_echo "$ac_res" >&6; } 1840fi 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_c_check_header_mongrel 1844 1845# ac_fn_c_try_run LINENO 1846# ---------------------- 1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1848# that executables *can* be run. 1849ac_fn_c_try_run () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 if { { ac_try="$ac_link" 1853case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856esac 1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858$as_echo "$ac_try_echo"; } >&5 1859 (eval "$ac_link") 2>&5 1860 ac_status=$? 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1863 { { case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_try") 2>&5 1870 ac_status=$? 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; }; }; then : 1873 ac_retval=0 1874else 1875 $as_echo "$as_me: program exited with status $ac_status" >&5 1876 $as_echo "$as_me: failed program was:" >&5 1877sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=$ac_status 1880fi 1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 as_fn_set_status $ac_retval 1884 1885} # ac_fn_c_try_run 1886 1887# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1888# ------------------------------------------------------- 1889# Tests whether HEADER exists and can be compiled using the include files in 1890# INCLUDES, setting the cache variable VAR accordingly. 1891ac_fn_c_check_header_compile () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901$4 1902#include <$2> 1903_ACEOF 1904if ac_fn_c_try_compile "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1910fi 1911eval ac_res=\$$3 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1913$as_echo "$ac_res" >&6; } 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 1916} # ac_fn_c_check_header_compile 1917 1918# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1919# ------------------------------------------- 1920# Tests whether TYPE exists after having included INCLUDES, setting cache 1921# variable VAR accordingly. 1922ac_fn_c_check_type () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929else 1930 eval "$3=no" 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934int 1935main () 1936{ 1937if (sizeof ($2)) 1938 return 0; 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947int 1948main () 1949{ 1950if (sizeof (($2))) 1951 return 0; 1952 ; 1953 return 0; 1954} 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 1958else 1959 eval "$3=yes" 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962fi 1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964fi 1965eval ac_res=\$$3 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967$as_echo "$ac_res" >&6; } 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970} # ac_fn_c_check_type 1971 1972# ac_fn_c_try_link LINENO 1973# ----------------------- 1974# Try to link conftest.$ac_ext, and return whether this succeeded. 1975ac_fn_c_try_link () 1976{ 1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1978 rm -f conftest.$ac_objext conftest$ac_exeext 1979 if { { ac_try="$ac_link" 1980case "(($ac_try" in 1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1982 *) ac_try_echo=$ac_try;; 1983esac 1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1985$as_echo "$ac_try_echo"; } >&5 1986 (eval "$ac_link") 2>conftest.err 1987 ac_status=$? 1988 if test -s conftest.err; then 1989 grep -v '^ *+' conftest.err >conftest.er1 1990 cat conftest.er1 >&5 1991 mv -f conftest.er1 conftest.err 1992 fi 1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1994 test $ac_status = 0; } && { 1995 test -z "$ac_c_werror_flag" || 1996 test ! -s conftest.err 1997 } && test -s conftest$ac_exeext && { 1998 test "$cross_compiling" = yes || 1999 test -x conftest$ac_exeext 2000 }; then : 2001 ac_retval=0 2002else 2003 $as_echo "$as_me: failed program was:" >&5 2004sed 's/^/| /' conftest.$ac_ext >&5 2005 2006 ac_retval=1 2007fi 2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2010 # interfere with the next link command; also delete a directory that is 2011 # left behind by Apple's compiler. We do this before executing the actions. 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_link 2017 2018# ac_fn_c_check_func LINENO FUNC VAR 2019# ---------------------------------- 2020# Tests whether FUNC exists, setting the cache variable VAR accordingly 2021ac_fn_c_check_func () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028else 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030/* end confdefs.h. */ 2031/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2032 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2033#define $2 innocuous_$2 2034 2035/* System header to define __stub macros and hopefully few prototypes, 2036 which can conflict with char $2 (); below. 2037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2038 <limits.h> exists even on freestanding compilers. */ 2039 2040#ifdef __STDC__ 2041# include <limits.h> 2042#else 2043# include <assert.h> 2044#endif 2045 2046#undef $2 2047 2048/* Override any GCC internal prototype to avoid an error. 2049 Use char because int might match the return type of a GCC 2050 builtin and then its argument prototype would still apply. */ 2051#ifdef __cplusplus 2052extern "C" 2053#endif 2054char $2 (); 2055/* The GNU C library defines this for functions which it implements 2056 to always fail with ENOSYS. Some functions are actually named 2057 something starting with __ and the normal name is an alias. */ 2058#if defined __stub_$2 || defined __stub___$2 2059choke me 2060#endif 2061 2062int 2063main () 2064{ 2065return $2 (); 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_link "$LINENO"; then : 2071 eval "$3=yes" 2072else 2073 eval "$3=no" 2074fi 2075rm -f core conftest.err conftest.$ac_objext \ 2076 conftest$ac_exeext conftest.$ac_ext 2077fi 2078eval ac_res=\$$3 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2080$as_echo "$ac_res" >&6; } 2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2082 2083} # ac_fn_c_check_func 2084 2085# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2086# --------------------------------------------- 2087# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2088# accordingly. 2089ac_fn_c_check_decl () 2090{ 2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2092 as_decl_name=`echo $2|sed 's/ *(.*//'` 2093 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2095$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2096if eval \${$3+:} false; then : 2097 $as_echo_n "(cached) " >&6 2098else 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$4 2102int 2103main () 2104{ 2105#ifndef $as_decl_name 2106#ifdef __cplusplus 2107 (void) $as_decl_use; 2108#else 2109 (void) $as_decl_name; 2110#endif 2111#endif 2112 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_compile "$LINENO"; then : 2118 eval "$3=yes" 2119else 2120 eval "$3=no" 2121fi 2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2123fi 2124eval ac_res=\$$3 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2126$as_echo "$ac_res" >&6; } 2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2128 2129} # ac_fn_c_check_decl 2130 2131# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2132# -------------------------------------------- 2133# Tries to find the compile-time value of EXPR in a program that includes 2134# INCLUDES, setting VAR accordingly. Returns whether the value could be 2135# computed 2136ac_fn_c_compute_int () 2137{ 2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2139 if test "$cross_compiling" = yes; then 2140 # Depending upon the size, compute the lo and hi bounds. 2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142/* end confdefs.h. */ 2143$4 2144int 2145main () 2146{ 2147static int test_array [1 - 2 * !(($2) >= 0)]; 2148test_array [0] = 0; 2149return test_array [0]; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_compile "$LINENO"; then : 2156 ac_lo=0 ac_mid=0 2157 while :; do 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161int 2162main () 2163{ 2164static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2165test_array [0] = 0; 2166return test_array [0]; 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_hi=$ac_mid; break 2174else 2175 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2176 if test $ac_lo -le $ac_mid; then 2177 ac_lo= ac_hi= 2178 break 2179 fi 2180 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183 done 2184else 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main () 2190{ 2191static int test_array [1 - 2 * !(($2) < 0)]; 2192test_array [0] = 0; 2193return test_array [0]; 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO"; then : 2200 ac_hi=-1 ac_mid=-1 2201 while :; do 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_lo=$ac_mid; break 2218else 2219 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2220 if test $ac_mid -le $ac_hi; then 2221 ac_lo= ac_hi= 2222 break 2223 fi 2224 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2225fi 2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2227 done 2228else 2229 ac_lo= ac_hi= 2230fi 2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2232fi 2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2234# Binary search between lo and hi bounds. 2235while test "x$ac_lo" != "x$ac_hi"; do 2236 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$4 2240int 2241main () 2242{ 2243static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2244test_array [0] = 0; 2245return test_array [0]; 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 ac_hi=$ac_mid 2253else 2254 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2255fi 2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257done 2258case $ac_lo in #(( 2259?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2260'') ac_retval=1 ;; 2261esac 2262 else 2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2264/* end confdefs.h. */ 2265$4 2266static long int longval () { return $2; } 2267static unsigned long int ulongval () { return $2; } 2268#include <stdio.h> 2269#include <stdlib.h> 2270int 2271main () 2272{ 2273 2274 FILE *f = fopen ("conftest.val", "w"); 2275 if (! f) 2276 return 1; 2277 if (($2) < 0) 2278 { 2279 long int i = longval (); 2280 if (i != ($2)) 2281 return 1; 2282 fprintf (f, "%ld", i); 2283 } 2284 else 2285 { 2286 unsigned long int i = ulongval (); 2287 if (i != ($2)) 2288 return 1; 2289 fprintf (f, "%lu", i); 2290 } 2291 /* Do not output a trailing newline, as this causes \r\n confusion 2292 on some platforms. */ 2293 return ferror (f) || fclose (f) != 0; 2294 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299if ac_fn_c_try_run "$LINENO"; then : 2300 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2301else 2302 ac_retval=1 2303fi 2304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2305 conftest.$ac_objext conftest.beam conftest.$ac_ext 2306rm -f conftest.val 2307 2308 fi 2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2310 as_fn_set_status $ac_retval 2311 2312} # ac_fn_c_compute_int 2313 2314# ac_fn_cxx_try_compile LINENO 2315# ---------------------------- 2316# Try to compile conftest.$ac_ext, and return whether this succeeded. 2317ac_fn_cxx_try_compile () 2318{ 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 rm -f conftest.$ac_objext 2321 if { { ac_try="$ac_compile" 2322case "(($ac_try" in 2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2324 *) ac_try_echo=$ac_try;; 2325esac 2326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2327$as_echo "$ac_try_echo"; } >&5 2328 (eval "$ac_compile") 2>conftest.err 2329 ac_status=$? 2330 if test -s conftest.err; then 2331 grep -v '^ *+' conftest.err >conftest.er1 2332 cat conftest.er1 >&5 2333 mv -f conftest.er1 conftest.err 2334 fi 2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2336 test $ac_status = 0; } && { 2337 test -z "$ac_cxx_werror_flag" || 2338 test ! -s conftest.err 2339 } && test -s conftest.$ac_objext; then : 2340 ac_retval=0 2341else 2342 $as_echo "$as_me: failed program was:" >&5 2343sed 's/^/| /' conftest.$ac_ext >&5 2344 2345 ac_retval=1 2346fi 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 as_fn_set_status $ac_retval 2349 2350} # ac_fn_cxx_try_compile 2351 2352# ac_fn_cxx_try_cpp LINENO 2353# ------------------------ 2354# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2355ac_fn_cxx_try_cpp () 2356{ 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 if { { ac_try="$ac_cpp conftest.$ac_ext" 2359case "(($ac_try" in 2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2361 *) ac_try_echo=$ac_try;; 2362esac 2363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2364$as_echo "$ac_try_echo"; } >&5 2365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2366 ac_status=$? 2367 if test -s conftest.err; then 2368 grep -v '^ *+' conftest.err >conftest.er1 2369 cat conftest.er1 >&5 2370 mv -f conftest.er1 conftest.err 2371 fi 2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2373 test $ac_status = 0; } > conftest.i && { 2374 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2375 test ! -s conftest.err 2376 }; then : 2377 ac_retval=0 2378else 2379 $as_echo "$as_me: failed program was:" >&5 2380sed 's/^/| /' conftest.$ac_ext >&5 2381 2382 ac_retval=1 2383fi 2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2385 as_fn_set_status $ac_retval 2386 2387} # ac_fn_cxx_try_cpp 2388 2389# ac_fn_cxx_try_link LINENO 2390# ------------------------- 2391# Try to link conftest.$ac_ext, and return whether this succeeded. 2392ac_fn_cxx_try_link () 2393{ 2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2395 rm -f conftest.$ac_objext conftest$ac_exeext 2396 if { { ac_try="$ac_link" 2397case "(($ac_try" in 2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2399 *) ac_try_echo=$ac_try;; 2400esac 2401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2402$as_echo "$ac_try_echo"; } >&5 2403 (eval "$ac_link") 2>conftest.err 2404 ac_status=$? 2405 if test -s conftest.err; then 2406 grep -v '^ *+' conftest.err >conftest.er1 2407 cat conftest.er1 >&5 2408 mv -f conftest.er1 conftest.err 2409 fi 2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2411 test $ac_status = 0; } && { 2412 test -z "$ac_cxx_werror_flag" || 2413 test ! -s conftest.err 2414 } && test -s conftest$ac_exeext && { 2415 test "$cross_compiling" = yes || 2416 test -x conftest$ac_exeext 2417 }; then : 2418 ac_retval=0 2419else 2420 $as_echo "$as_me: failed program was:" >&5 2421sed 's/^/| /' conftest.$ac_ext >&5 2422 2423 ac_retval=1 2424fi 2425 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2426 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2427 # interfere with the next link command; also delete a directory that is 2428 # left behind by Apple's compiler. We do this before executing the actions. 2429 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2431 as_fn_set_status $ac_retval 2432 2433} # ac_fn_cxx_try_link 2434 2435# ac_fn_cxx_try_run LINENO 2436# ------------------------ 2437# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2438# that executables *can* be run. 2439ac_fn_cxx_try_run () 2440{ 2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2442 if { { ac_try="$ac_link" 2443case "(($ac_try" in 2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2445 *) ac_try_echo=$ac_try;; 2446esac 2447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2448$as_echo "$ac_try_echo"; } >&5 2449 (eval "$ac_link") 2>&5 2450 ac_status=$? 2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2452 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2453 { { case "(($ac_try" in 2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 *) ac_try_echo=$ac_try;; 2456esac 2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2458$as_echo "$ac_try_echo"; } >&5 2459 (eval "$ac_try") 2>&5 2460 ac_status=$? 2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2462 test $ac_status = 0; }; }; then : 2463 ac_retval=0 2464else 2465 $as_echo "$as_me: program exited with status $ac_status" >&5 2466 $as_echo "$as_me: failed program was:" >&5 2467sed 's/^/| /' conftest.$ac_ext >&5 2468 2469 ac_retval=$ac_status 2470fi 2471 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2473 as_fn_set_status $ac_retval 2474 2475} # ac_fn_cxx_try_run 2476 2477# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2478# --------------------------------------------------------- 2479# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2480# the include files in INCLUDES and setting the cache variable VAR 2481# accordingly. 2482ac_fn_cxx_check_header_mongrel () 2483{ 2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2485 if eval \${$3+:} false; then : 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2487$as_echo_n "checking for $2... " >&6; } 2488if eval \${$3+:} false; then : 2489 $as_echo_n "(cached) " >&6 2490fi 2491eval ac_res=\$$3 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2493$as_echo "$ac_res" >&6; } 2494else 2495 # Is the header compilable? 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2497$as_echo_n "checking $2 usability... " >&6; } 2498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499/* end confdefs.h. */ 2500$4 2501#include <$2> 2502_ACEOF 2503if ac_fn_cxx_try_compile "$LINENO"; then : 2504 ac_header_compiler=yes 2505else 2506 ac_header_compiler=no 2507fi 2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2510$as_echo "$ac_header_compiler" >&6; } 2511 2512# Is the header present? 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2514$as_echo_n "checking $2 presence... " >&6; } 2515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2516/* end confdefs.h. */ 2517#include <$2> 2518_ACEOF 2519if ac_fn_cxx_try_cpp "$LINENO"; then : 2520 ac_header_preproc=yes 2521else 2522 ac_header_preproc=no 2523fi 2524rm -f conftest.err conftest.i conftest.$ac_ext 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2526$as_echo "$ac_header_preproc" >&6; } 2527 2528# So? What about this header? 2529case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2530 yes:no: ) 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2532$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2534$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2535 ;; 2536 no:yes:* ) 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2538$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2540$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2542$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2544$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2546$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2547 ;; 2548esac 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2550$as_echo_n "checking for $2... " >&6; } 2551if eval \${$3+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 eval "$3=\$ac_header_compiler" 2555fi 2556eval ac_res=\$$3 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2558$as_echo "$ac_res" >&6; } 2559fi 2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2561 2562} # ac_fn_cxx_check_header_mongrel 2563 2564# ac_fn_cxx_check_func LINENO FUNC VAR 2565# ------------------------------------ 2566# Tests whether FUNC exists, setting the cache variable VAR accordingly 2567ac_fn_cxx_check_func () 2568{ 2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2571$as_echo_n "checking for $2... " >&6; } 2572if eval \${$3+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2576/* end confdefs.h. */ 2577/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2579#define $2 innocuous_$2 2580 2581/* System header to define __stub macros and hopefully few prototypes, 2582 which can conflict with char $2 (); below. 2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2584 <limits.h> exists even on freestanding compilers. */ 2585 2586#ifdef __STDC__ 2587# include <limits.h> 2588#else 2589# include <assert.h> 2590#endif 2591 2592#undef $2 2593 2594/* Override any GCC internal prototype to avoid an error. 2595 Use char because int might match the return type of a GCC 2596 builtin and then its argument prototype would still apply. */ 2597#ifdef __cplusplus 2598extern "C" 2599#endif 2600char $2 (); 2601/* The GNU C library defines this for functions which it implements 2602 to always fail with ENOSYS. Some functions are actually named 2603 something starting with __ and the normal name is an alias. */ 2604#if defined __stub_$2 || defined __stub___$2 2605choke me 2606#endif 2607 2608int 2609main () 2610{ 2611return $2 (); 2612 ; 2613 return 0; 2614} 2615_ACEOF 2616if ac_fn_cxx_try_link "$LINENO"; then : 2617 eval "$3=yes" 2618else 2619 eval "$3=no" 2620fi 2621rm -f core conftest.err conftest.$ac_objext \ 2622 conftest$ac_exeext conftest.$ac_ext 2623fi 2624eval ac_res=\$$3 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2626$as_echo "$ac_res" >&6; } 2627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2628 2629} # ac_fn_cxx_check_func 2630cat >config.log <<_ACEOF 2631This file contains any messages produced by compilers while 2632running configure, to aid debugging if configure makes a mistake. 2633 2634It was created by gerbv $as_me 2.7.0, which was 2635generated by GNU Autoconf 2.69. Invocation command line was 2636 2637 $ $0 $@ 2638 2639_ACEOF 2640exec 5>>config.log 2641{ 2642cat <<_ASUNAME 2643## --------- ## 2644## Platform. ## 2645## --------- ## 2646 2647hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2648uname -m = `(uname -m) 2>/dev/null || echo unknown` 2649uname -r = `(uname -r) 2>/dev/null || echo unknown` 2650uname -s = `(uname -s) 2>/dev/null || echo unknown` 2651uname -v = `(uname -v) 2>/dev/null || echo unknown` 2652 2653/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2654/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2655 2656/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2657/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2658/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2659/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2660/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2661/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2662/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2663 2664_ASUNAME 2665 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 $as_echo "PATH: $as_dir" 2672 done 2673IFS=$as_save_IFS 2674 2675} >&5 2676 2677cat >&5 <<_ACEOF 2678 2679 2680## ----------- ## 2681## Core tests. ## 2682## ----------- ## 2683 2684_ACEOF 2685 2686 2687# Keep a trace of the command line. 2688# Strip out --no-create and --no-recursion so they do not pile up. 2689# Strip out --silent because we don't want to record it for future runs. 2690# Also quote any args containing shell meta-characters. 2691# Make two passes to allow for proper duplicate-argument suppression. 2692ac_configure_args= 2693ac_configure_args0= 2694ac_configure_args1= 2695ac_must_keep_next=false 2696for ac_pass in 1 2 2697do 2698 for ac_arg 2699 do 2700 case $ac_arg in 2701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2703 | -silent | --silent | --silen | --sile | --sil) 2704 continue ;; 2705 *\'*) 2706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2707 esac 2708 case $ac_pass in 2709 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2710 2) 2711 as_fn_append ac_configure_args1 " '$ac_arg'" 2712 if test $ac_must_keep_next = true; then 2713 ac_must_keep_next=false # Got value, back to normal. 2714 else 2715 case $ac_arg in 2716 *=* | --config-cache | -C | -disable-* | --disable-* \ 2717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2719 | -with-* | --with-* | -without-* | --without-* | --x) 2720 case "$ac_configure_args0 " in 2721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2722 esac 2723 ;; 2724 -* ) ac_must_keep_next=true ;; 2725 esac 2726 fi 2727 as_fn_append ac_configure_args " '$ac_arg'" 2728 ;; 2729 esac 2730 done 2731done 2732{ ac_configure_args0=; unset ac_configure_args0;} 2733{ ac_configure_args1=; unset ac_configure_args1;} 2734 2735# When interrupted or exit'd, cleanup temporary files, and complete 2736# config.log. We remove comments because anyway the quotes in there 2737# would cause problems or look ugly. 2738# WARNING: Use '\'' to represent an apostrophe within the trap. 2739# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2740trap 'exit_status=$? 2741 # Save into config.log some information that might help in debugging. 2742 { 2743 echo 2744 2745 $as_echo "## ---------------- ## 2746## Cache variables. ## 2747## ---------------- ##" 2748 echo 2749 # The following way of writing the cache mishandles newlines in values, 2750( 2751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2752 eval ac_val=\$$ac_var 2753 case $ac_val in #( 2754 *${as_nl}*) 2755 case $ac_var in #( 2756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2758 esac 2759 case $ac_var in #( 2760 _ | IFS | as_nl) ;; #( 2761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2762 *) { eval $ac_var=; unset $ac_var;} ;; 2763 esac ;; 2764 esac 2765 done 2766 (set) 2>&1 | 2767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2768 *${as_nl}ac_space=\ *) 2769 sed -n \ 2770 "s/'\''/'\''\\\\'\'''\''/g; 2771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2772 ;; #( 2773 *) 2774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2775 ;; 2776 esac | 2777 sort 2778) 2779 echo 2780 2781 $as_echo "## ----------------- ## 2782## Output variables. ## 2783## ----------------- ##" 2784 echo 2785 for ac_var in $ac_subst_vars 2786 do 2787 eval ac_val=\$$ac_var 2788 case $ac_val in 2789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2790 esac 2791 $as_echo "$ac_var='\''$ac_val'\''" 2792 done | sort 2793 echo 2794 2795 if test -n "$ac_subst_files"; then 2796 $as_echo "## ------------------- ## 2797## File substitutions. ## 2798## ------------------- ##" 2799 echo 2800 for ac_var in $ac_subst_files 2801 do 2802 eval ac_val=\$$ac_var 2803 case $ac_val in 2804 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2805 esac 2806 $as_echo "$ac_var='\''$ac_val'\''" 2807 done | sort 2808 echo 2809 fi 2810 2811 if test -s confdefs.h; then 2812 $as_echo "## ----------- ## 2813## confdefs.h. ## 2814## ----------- ##" 2815 echo 2816 cat confdefs.h 2817 echo 2818 fi 2819 test "$ac_signal" != 0 && 2820 $as_echo "$as_me: caught signal $ac_signal" 2821 $as_echo "$as_me: exit $exit_status" 2822 } >&5 2823 rm -f core *.core core.conftest.* && 2824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2825 exit $exit_status 2826' 0 2827for ac_signal in 1 2 13 15; do 2828 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2829done 2830ac_signal=0 2831 2832# confdefs.h avoids OS command line length limits that DEFS can exceed. 2833rm -f -r conftest* confdefs.h 2834 2835$as_echo "/* confdefs.h */" > confdefs.h 2836 2837# Predefined preprocessor variables. 2838 2839cat >>confdefs.h <<_ACEOF 2840#define PACKAGE_NAME "$PACKAGE_NAME" 2841_ACEOF 2842 2843cat >>confdefs.h <<_ACEOF 2844#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2845_ACEOF 2846 2847cat >>confdefs.h <<_ACEOF 2848#define PACKAGE_VERSION "$PACKAGE_VERSION" 2849_ACEOF 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE_STRING "$PACKAGE_STRING" 2853_ACEOF 2854 2855cat >>confdefs.h <<_ACEOF 2856#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2857_ACEOF 2858 2859cat >>confdefs.h <<_ACEOF 2860#define PACKAGE_URL "$PACKAGE_URL" 2861_ACEOF 2862 2863 2864# Let the site file select an alternate cache file if it wants to. 2865# Prefer an explicitly selected file to automatically selected ones. 2866ac_site_file1=NONE 2867ac_site_file2=NONE 2868if test -n "$CONFIG_SITE"; then 2869 # We do not want a PATH search for config.site. 2870 case $CONFIG_SITE in #(( 2871 -*) ac_site_file1=./$CONFIG_SITE;; 2872 */*) ac_site_file1=$CONFIG_SITE;; 2873 *) ac_site_file1=./$CONFIG_SITE;; 2874 esac 2875elif test "x$prefix" != xNONE; then 2876 ac_site_file1=$prefix/share/config.site 2877 ac_site_file2=$prefix/etc/config.site 2878else 2879 ac_site_file1=$ac_default_prefix/share/config.site 2880 ac_site_file2=$ac_default_prefix/etc/config.site 2881fi 2882for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2883do 2884 test "x$ac_site_file" = xNONE && continue 2885 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2887$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2888 sed 's/^/| /' "$ac_site_file" >&5 2889 . "$ac_site_file" \ 2890 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error $? "failed to load site script $ac_site_file 2893See \`config.log' for more details" "$LINENO" 5; } 2894 fi 2895done 2896 2897if test -r "$cache_file"; then 2898 # Some versions of bash will fail to source /dev/null (special files 2899 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2900 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2902$as_echo "$as_me: loading cache $cache_file" >&6;} 2903 case $cache_file in 2904 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2905 *) . "./$cache_file";; 2906 esac 2907 fi 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2910$as_echo "$as_me: creating cache $cache_file" >&6;} 2911 >$cache_file 2912fi 2913 2914gt_needs="$gt_needs " 2915as_fn_append ac_header_list " stdlib.h" 2916as_fn_append ac_header_list " unistd.h" 2917as_fn_append ac_header_list " sys/param.h" 2918as_fn_append ac_func_list " symlink" 2919# Check that the precious variables saved in the cache have kept the same 2920# value. 2921ac_cache_corrupted=false 2922for ac_var in $ac_precious_vars; do 2923 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2924 eval ac_new_set=\$ac_env_${ac_var}_set 2925 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2926 eval ac_new_val=\$ac_env_${ac_var}_value 2927 case $ac_old_set,$ac_new_set in 2928 set,) 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2930$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2931 ac_cache_corrupted=: ;; 2932 ,set) 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2934$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2935 ac_cache_corrupted=: ;; 2936 ,);; 2937 *) 2938 if test "x$ac_old_val" != "x$ac_new_val"; then 2939 # differences in whitespace do not lead to failure. 2940 ac_old_val_w=`echo x $ac_old_val` 2941 ac_new_val_w=`echo x $ac_new_val` 2942 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2944$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2945 ac_cache_corrupted=: 2946 else 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2948$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2949 eval $ac_var=\$ac_old_val 2950 fi 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2952$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2954$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2955 fi;; 2956 esac 2957 # Pass precious variables to config.status. 2958 if test "$ac_new_set" = set; then 2959 case $ac_new_val in 2960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2961 *) ac_arg=$ac_var=$ac_new_val ;; 2962 esac 2963 case " $ac_configure_args " in 2964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2965 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2966 esac 2967 fi 2968done 2969if $ac_cache_corrupted; then 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2973$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2974 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2975fi 2976## -------------------- ## 2977## Main body of script. ## 2978## -------------------- ## 2979 2980ac_ext=c 2981ac_cpp='$CPP $CPPFLAGS' 2982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2984ac_compiler_gnu=$ac_cv_c_compiler_gnu 2985 2986 2987 2988 2989am__api_version='1.15' 2990 2991ac_aux_dir= 2992for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2993 if test -f "$ac_dir/install-sh"; then 2994 ac_aux_dir=$ac_dir 2995 ac_install_sh="$ac_aux_dir/install-sh -c" 2996 break 2997 elif test -f "$ac_dir/install.sh"; then 2998 ac_aux_dir=$ac_dir 2999 ac_install_sh="$ac_aux_dir/install.sh -c" 3000 break 3001 elif test -f "$ac_dir/shtool"; then 3002 ac_aux_dir=$ac_dir 3003 ac_install_sh="$ac_aux_dir/shtool install -c" 3004 break 3005 fi 3006done 3007if test -z "$ac_aux_dir"; then 3008 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3009fi 3010 3011# These three variables are undocumented and unsupported, 3012# and are intended to be withdrawn in a future Autoconf release. 3013# They can cause serious problems if a builder's source tree is in a directory 3014# whose full name contains unusual characters. 3015ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3016ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3017ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3018 3019 3020# Find a good install program. We prefer a C program (faster), 3021# so one script is as good as another. But avoid the broken or 3022# incompatible versions: 3023# SysV /etc/install, /usr/sbin/install 3024# SunOS /usr/etc/install 3025# IRIX /sbin/install 3026# AIX /bin/install 3027# AmigaOS /C/install, which installs bootblocks on floppy discs 3028# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3029# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3030# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3031# OS/2's system install, which has a completely different semantic 3032# ./install, which can be erroneously created by make from ./install.sh. 3033# Reject install programs that cannot install multiple files. 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3035$as_echo_n "checking for a BSD-compatible install... " >&6; } 3036if test -z "$INSTALL"; then 3037if ${ac_cv_path_install+:} false; then : 3038 $as_echo_n "(cached) " >&6 3039else 3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 # Account for people who put trailing slashes in PATH elements. 3046case $as_dir/ in #(( 3047 ./ | .// | /[cC]/* | \ 3048 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3049 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3050 /usr/ucb/* ) ;; 3051 *) 3052 # OSF1 and SCO ODT 3.0 have their own names for install. 3053 # Don't use installbsd from OSF since it installs stuff as root 3054 # by default. 3055 for ac_prog in ginstall scoinst install; do 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3058 if test $ac_prog = install && 3059 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3060 # AIX install. It has an incompatible calling convention. 3061 : 3062 elif test $ac_prog = install && 3063 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3064 # program-specific install script used by HP pwplus--don't use. 3065 : 3066 else 3067 rm -rf conftest.one conftest.two conftest.dir 3068 echo one > conftest.one 3069 echo two > conftest.two 3070 mkdir conftest.dir 3071 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3072 test -s conftest.one && test -s conftest.two && 3073 test -s conftest.dir/conftest.one && 3074 test -s conftest.dir/conftest.two 3075 then 3076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3077 break 3 3078 fi 3079 fi 3080 fi 3081 done 3082 done 3083 ;; 3084esac 3085 3086 done 3087IFS=$as_save_IFS 3088 3089rm -rf conftest.one conftest.two conftest.dir 3090 3091fi 3092 if test "${ac_cv_path_install+set}" = set; then 3093 INSTALL=$ac_cv_path_install 3094 else 3095 # As a last resort, use the slow shell script. Don't cache a 3096 # value for INSTALL within a source directory, because that will 3097 # break other packages using the cache if that directory is 3098 # removed, or if the value is a relative name. 3099 INSTALL=$ac_install_sh 3100 fi 3101fi 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3103$as_echo "$INSTALL" >&6; } 3104 3105# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3106# It thinks the first close brace ends the variable substitution. 3107test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3108 3109test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3110 3111test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3112 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3114$as_echo_n "checking whether build environment is sane... " >&6; } 3115# Reject unsafe characters in $srcdir or the absolute working directory 3116# name. Accept space and tab only in the latter. 3117am_lf=' 3118' 3119case `pwd` in 3120 *[\\\"\#\$\&\'\`$am_lf]*) 3121 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3122esac 3123case $srcdir in 3124 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3125 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3126esac 3127 3128# Do 'set' in a subshell so we don't clobber the current shell's 3129# arguments. Must try -L first in case configure is actually a 3130# symlink; some systems play weird games with the mod time of symlinks 3131# (eg FreeBSD returns the mod time of the symlink's containing 3132# directory). 3133if ( 3134 am_has_slept=no 3135 for am_try in 1 2; do 3136 echo "timestamp, slept: $am_has_slept" > conftest.file 3137 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3138 if test "$*" = "X"; then 3139 # -L didn't work. 3140 set X `ls -t "$srcdir/configure" conftest.file` 3141 fi 3142 if test "$*" != "X $srcdir/configure conftest.file" \ 3143 && test "$*" != "X conftest.file $srcdir/configure"; then 3144 3145 # If neither matched, then we have a broken ls. This can happen 3146 # if, for instance, CONFIG_SHELL is bash and it inherits a 3147 # broken ls alias from the environment. This has actually 3148 # happened. Such a system could not be considered "sane". 3149 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3150 alias in your environment" "$LINENO" 5 3151 fi 3152 if test "$2" = conftest.file || test $am_try -eq 2; then 3153 break 3154 fi 3155 # Just in case. 3156 sleep 1 3157 am_has_slept=yes 3158 done 3159 test "$2" = conftest.file 3160 ) 3161then 3162 # Ok. 3163 : 3164else 3165 as_fn_error $? "newly created file is older than distributed files! 3166Check your system clock" "$LINENO" 5 3167fi 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3169$as_echo "yes" >&6; } 3170# If we didn't sleep, we still need to ensure time stamps of config.status and 3171# generated files are strictly newer. 3172am_sleep_pid= 3173if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3174 ( sleep 1 ) & 3175 am_sleep_pid=$! 3176fi 3177 3178rm -f conftest.file 3179 3180test "$program_prefix" != NONE && 3181 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3182# Use a double $ so make ignores it. 3183test "$program_suffix" != NONE && 3184 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3185# Double any \ or $. 3186# By default was `s,x,x', remove it if useless. 3187ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3188program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3189 3190# Expand $ac_aux_dir to an absolute path. 3191am_aux_dir=`cd "$ac_aux_dir" && pwd` 3192 3193if test x"${MISSING+set}" != xset; then 3194 case $am_aux_dir in 3195 *\ * | *\ *) 3196 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3197 *) 3198 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3199 esac 3200fi 3201# Use eval to expand $SHELL 3202if eval "$MISSING --is-lightweight"; then 3203 am_missing_run="$MISSING " 3204else 3205 am_missing_run= 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3207$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3208fi 3209 3210if test x"${install_sh+set}" != xset; then 3211 case $am_aux_dir in 3212 *\ * | *\ *) 3213 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3214 *) 3215 install_sh="\${SHELL} $am_aux_dir/install-sh" 3216 esac 3217fi 3218 3219# Installed binaries are usually stripped using 'strip' when the user 3220# run "make install-strip". However 'strip' might not be the right 3221# tool to use in cross-compilation environments, therefore Automake 3222# will honor the 'STRIP' environment variable to overrule this program. 3223if test "$cross_compiling" != no; then 3224 if test -n "$ac_tool_prefix"; then 3225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3226set dummy ${ac_tool_prefix}strip; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_STRIP+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$STRIP"; then 3233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252STRIP=$ac_cv_prog_STRIP 3253if test -n "$STRIP"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3255$as_echo "$STRIP" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262fi 3263if test -z "$ac_cv_prog_STRIP"; then 3264 ac_ct_STRIP=$STRIP 3265 # Extract the first word of "strip", so it can be a program name with args. 3266set dummy strip; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$ac_ct_STRIP"; then 3273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_ac_ct_STRIP="strip" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3293if test -n "$ac_ct_STRIP"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3295$as_echo "$ac_ct_STRIP" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 if test "x$ac_ct_STRIP" = x; then 3302 STRIP=":" 3303 else 3304 case $cross_compiling:$ac_tool_warned in 3305yes:) 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3308ac_tool_warned=yes ;; 3309esac 3310 STRIP=$ac_ct_STRIP 3311 fi 3312else 3313 STRIP="$ac_cv_prog_STRIP" 3314fi 3315 3316fi 3317INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3318 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3320$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3321if test -z "$MKDIR_P"; then 3322 if ${ac_cv_path_mkdir+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3326for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3327do 3328 IFS=$as_save_IFS 3329 test -z "$as_dir" && as_dir=. 3330 for ac_prog in mkdir gmkdir; do 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3333 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3334 'mkdir (GNU coreutils) '* | \ 3335 'mkdir (coreutils) '* | \ 3336 'mkdir (fileutils) '4.1*) 3337 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3338 break 3;; 3339 esac 3340 done 3341 done 3342 done 3343IFS=$as_save_IFS 3344 3345fi 3346 3347 test -d ./--version && rmdir ./--version 3348 if test "${ac_cv_path_mkdir+set}" = set; then 3349 MKDIR_P="$ac_cv_path_mkdir -p" 3350 else 3351 # As a last resort, use the slow shell script. Don't cache a 3352 # value for MKDIR_P within a source directory, because that will 3353 # break other packages using the cache if that directory is 3354 # removed, or if the value is a relative name. 3355 MKDIR_P="$ac_install_sh -d" 3356 fi 3357fi 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3359$as_echo "$MKDIR_P" >&6; } 3360 3361for ac_prog in gawk mawk nawk awk 3362do 3363 # Extract the first word of "$ac_prog", so it can be a program name with args. 3364set dummy $ac_prog; ac_word=$2 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3366$as_echo_n "checking for $ac_word... " >&6; } 3367if ${ac_cv_prog_AWK+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 if test -n "$AWK"; then 3371 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3372else 3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3374for as_dir in $PATH 3375do 3376 IFS=$as_save_IFS 3377 test -z "$as_dir" && as_dir=. 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3380 ac_cv_prog_AWK="$ac_prog" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388fi 3389fi 3390AWK=$ac_cv_prog_AWK 3391if test -n "$AWK"; then 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3393$as_echo "$AWK" >&6; } 3394else 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396$as_echo "no" >&6; } 3397fi 3398 3399 3400 test -n "$AWK" && break 3401done 3402 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3404$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3405set x ${MAKE-make} 3406ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3407if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 cat >conftest.make <<\_ACEOF 3411SHELL = /bin/sh 3412all: 3413 @echo '@@@%%%=$(MAKE)=@@@%%%' 3414_ACEOF 3415# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3416case `${MAKE-make} -f conftest.make 2>/dev/null` in 3417 *@@@%%%=?*=@@@%%%*) 3418 eval ac_cv_prog_make_${ac_make}_set=yes;; 3419 *) 3420 eval ac_cv_prog_make_${ac_make}_set=no;; 3421esac 3422rm -f conftest.make 3423fi 3424if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3426$as_echo "yes" >&6; } 3427 SET_MAKE= 3428else 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3430$as_echo "no" >&6; } 3431 SET_MAKE="MAKE=${MAKE-make}" 3432fi 3433 3434rm -rf .tst 2>/dev/null 3435mkdir .tst 2>/dev/null 3436if test -d .tst; then 3437 am__leading_dot=. 3438else 3439 am__leading_dot=_ 3440fi 3441rmdir .tst 2>/dev/null 3442 3443# Check whether --enable-silent-rules was given. 3444if test "${enable_silent_rules+set}" = set; then : 3445 enableval=$enable_silent_rules; 3446fi 3447 3448case $enable_silent_rules in # ((( 3449 yes) AM_DEFAULT_VERBOSITY=0;; 3450 no) AM_DEFAULT_VERBOSITY=1;; 3451 *) AM_DEFAULT_VERBOSITY=1;; 3452esac 3453am_make=${MAKE-make} 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3455$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3456if ${am_cv_make_support_nested_variables+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if $as_echo 'TRUE=$(BAR$(V)) 3460BAR0=false 3461BAR1=true 3462V=1 3463am__doit: 3464 @$(TRUE) 3465.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3466 am_cv_make_support_nested_variables=yes 3467else 3468 am_cv_make_support_nested_variables=no 3469fi 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3472$as_echo "$am_cv_make_support_nested_variables" >&6; } 3473if test $am_cv_make_support_nested_variables = yes; then 3474 AM_V='$(V)' 3475 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3476else 3477 AM_V=$AM_DEFAULT_VERBOSITY 3478 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3479fi 3480AM_BACKSLASH='\' 3481 3482if test "`cd $srcdir && pwd`" != "`pwd`"; then 3483 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3484 # is not polluted with repeated "-I." 3485 am__isrc=' -I$(srcdir)' 3486 # test to see if srcdir already configured 3487 if test -f $srcdir/config.status; then 3488 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3489 fi 3490fi 3491 3492# test whether we have cygpath 3493if test -z "$CYGPATH_W"; then 3494 if (cygpath --version) >/dev/null 2>/dev/null; then 3495 CYGPATH_W='cygpath -w' 3496 else 3497 CYGPATH_W=echo 3498 fi 3499fi 3500 3501 3502# Define the identity of the package. 3503 PACKAGE='gerbv' 3504 VERSION='2.7.0' 3505 3506 3507cat >>confdefs.h <<_ACEOF 3508#define PACKAGE "$PACKAGE" 3509_ACEOF 3510 3511 3512cat >>confdefs.h <<_ACEOF 3513#define VERSION "$VERSION" 3514_ACEOF 3515 3516# Some tools Automake needs. 3517 3518ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3519 3520 3521AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3522 3523 3524AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3525 3526 3527AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3528 3529 3530MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3531 3532# For better backward compatibility. To be removed once Automake 1.9.x 3533# dies out for good. For more background, see: 3534# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3535# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3536mkdir_p='$(MKDIR_P)' 3537 3538# We need awk for the "check" target (and possibly the TAP driver). The 3539# system "awk" is bad on some platforms. 3540# Always define AMTAR for backward compatibility. Yes, it's still used 3541# in the wild :-( We should find a proper way to deprecate it ... 3542AMTAR='$${TAR-tar}' 3543 3544 3545# We'll loop over all known methods to create a tar archive until one works. 3546_am_tools='gnutar pax cpio none' 3547 3548am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3549 3550 3551 3552 3553 3554 3555# POSIX will say in a future version that running "rm -f" with no argument 3556# is OK; and we want to be able to make that assumption in our Makefile 3557# recipes. So use an aggressive probe to check that the usage we want is 3558# actually supported "in the wild" to an acceptable degree. 3559# See automake bug#10828. 3560# To make any issue more visible, cause the running configure to be aborted 3561# by default if the 'rm' program in use doesn't match our expectations; the 3562# user can still override this though. 3563if rm -f && rm -fr && rm -rf; then : OK; else 3564 cat >&2 <<'END' 3565Oops! 3566 3567Your 'rm' program seems unable to run without file operands specified 3568on the command line, even when the '-f' option is present. This is contrary 3569to the behaviour of most rm programs out there, and not conforming with 3570the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3571 3572Please tell bug-automake@gnu.org about your system, including the value 3573of your $PATH and any error possibly output before this message. This 3574can help us improve future automake versions. 3575 3576END 3577 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3578 echo 'Configuration will proceed anyway, since you have set the' >&2 3579 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3580 echo >&2 3581 else 3582 cat >&2 <<'END' 3583Aborting the configuration process, to ensure you take notice of the issue. 3584 3585You can download and install GNU coreutils to get an 'rm' implementation 3586that behaves properly: <http://www.gnu.org/software/coreutils/>. 3587 3588If you want to complete the configuration process using your problematic 3589'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3590to "yes", and re-run configure. 3591 3592END 3593 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3594 fi 3595fi 3596 3597DEPDIR="${am__leading_dot}deps" 3598 3599ac_config_commands="$ac_config_commands depfiles" 3600 3601 3602am_make=${MAKE-make} 3603cat > confinc << 'END' 3604am__doit: 3605 @echo this is the am__doit target 3606.PHONY: am__doit 3607END 3608# If we don't find an include directive, just comment out the code. 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3610$as_echo_n "checking for style of include used by $am_make... " >&6; } 3611am__include="#" 3612am__quote= 3613_am_result=none 3614# First try GNU make style include. 3615echo "include confinc" > confmf 3616# Ignore all kinds of additional output from 'make'. 3617case `$am_make -s -f confmf 2> /dev/null` in #( 3618*the\ am__doit\ target*) 3619 am__include=include 3620 am__quote= 3621 _am_result=GNU 3622 ;; 3623esac 3624# Now try BSD make style include. 3625if test "$am__include" = "#"; then 3626 echo '.include "confinc"' > confmf 3627 case `$am_make -s -f confmf 2> /dev/null` in #( 3628 *the\ am__doit\ target*) 3629 am__include=.include 3630 am__quote="\"" 3631 _am_result=BSD 3632 ;; 3633 esac 3634fi 3635 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3638$as_echo "$_am_result" >&6; } 3639rm -f confinc confmf 3640 3641# Check whether --enable-dependency-tracking was given. 3642if test "${enable_dependency_tracking+set}" = set; then : 3643 enableval=$enable_dependency_tracking; 3644fi 3645 3646if test "x$enable_dependency_tracking" != xno; then 3647 am_depcomp="$ac_aux_dir/depcomp" 3648 AMDEPBACKSLASH='\' 3649 am__nodep='_no' 3650fi 3651 if test "x$enable_dependency_tracking" != xno; then 3652 AMDEP_TRUE= 3653 AMDEP_FALSE='#' 3654else 3655 AMDEP_TRUE='#' 3656 AMDEP_FALSE= 3657fi 3658 3659 3660ac_ext=c 3661ac_cpp='$CPP $CPPFLAGS' 3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3664ac_compiler_gnu=$ac_cv_c_compiler_gnu 3665if test -n "$ac_tool_prefix"; then 3666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3667set dummy ${ac_tool_prefix}gcc; ac_word=$2 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3669$as_echo_n "checking for $ac_word... " >&6; } 3670if ${ac_cv_prog_CC+:} false; then : 3671 $as_echo_n "(cached) " >&6 3672else 3673 if test -n "$CC"; then 3674 ac_cv_prog_CC="$CC" # Let the user override the test. 3675else 3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3677for as_dir in $PATH 3678do 3679 IFS=$as_save_IFS 3680 test -z "$as_dir" && as_dir=. 3681 for ac_exec_ext in '' $ac_executable_extensions; do 3682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3683 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3685 break 2 3686 fi 3687done 3688 done 3689IFS=$as_save_IFS 3690 3691fi 3692fi 3693CC=$ac_cv_prog_CC 3694if test -n "$CC"; then 3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3696$as_echo "$CC" >&6; } 3697else 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699$as_echo "no" >&6; } 3700fi 3701 3702 3703fi 3704if test -z "$ac_cv_prog_CC"; then 3705 ac_ct_CC=$CC 3706 # Extract the first word of "gcc", so it can be a program name with args. 3707set dummy gcc; ac_word=$2 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3709$as_echo_n "checking for $ac_word... " >&6; } 3710if ${ac_cv_prog_ac_ct_CC+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 if test -n "$ac_ct_CC"; then 3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3715else 3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717for as_dir in $PATH 3718do 3719 IFS=$as_save_IFS 3720 test -z "$as_dir" && as_dir=. 3721 for ac_exec_ext in '' $ac_executable_extensions; do 3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3723 ac_cv_prog_ac_ct_CC="gcc" 3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3725 break 2 3726 fi 3727done 3728 done 3729IFS=$as_save_IFS 3730 3731fi 3732fi 3733ac_ct_CC=$ac_cv_prog_ac_ct_CC 3734if test -n "$ac_ct_CC"; then 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3736$as_echo "$ac_ct_CC" >&6; } 3737else 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3739$as_echo "no" >&6; } 3740fi 3741 3742 if test "x$ac_ct_CC" = x; then 3743 CC="" 3744 else 3745 case $cross_compiling:$ac_tool_warned in 3746yes:) 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3749ac_tool_warned=yes ;; 3750esac 3751 CC=$ac_ct_CC 3752 fi 3753else 3754 CC="$ac_cv_prog_CC" 3755fi 3756 3757if test -z "$CC"; then 3758 if test -n "$ac_tool_prefix"; then 3759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3760set dummy ${ac_tool_prefix}cc; ac_word=$2 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762$as_echo_n "checking for $ac_word... " >&6; } 3763if ${ac_cv_prog_CC+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 if test -n "$CC"; then 3767 ac_cv_prog_CC="$CC" # Let the user override the test. 3768else 3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770for as_dir in $PATH 3771do 3772 IFS=$as_save_IFS 3773 test -z "$as_dir" && as_dir=. 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3776 ac_cv_prog_CC="${ac_tool_prefix}cc" 3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3778 break 2 3779 fi 3780done 3781 done 3782IFS=$as_save_IFS 3783 3784fi 3785fi 3786CC=$ac_cv_prog_CC 3787if test -n "$CC"; then 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3789$as_echo "$CC" >&6; } 3790else 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3792$as_echo "no" >&6; } 3793fi 3794 3795 3796 fi 3797fi 3798if test -z "$CC"; then 3799 # Extract the first word of "cc", so it can be a program name with args. 3800set dummy cc; ac_word=$2 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3802$as_echo_n "checking for $ac_word... " >&6; } 3803if ${ac_cv_prog_CC+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 if test -n "$CC"; then 3807 ac_cv_prog_CC="$CC" # Let the user override the test. 3808else 3809 ac_prog_rejected=no 3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811for as_dir in $PATH 3812do 3813 IFS=$as_save_IFS 3814 test -z "$as_dir" && as_dir=. 3815 for ac_exec_ext in '' $ac_executable_extensions; do 3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3818 ac_prog_rejected=yes 3819 continue 3820 fi 3821 ac_cv_prog_CC="cc" 3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825done 3826 done 3827IFS=$as_save_IFS 3828 3829if test $ac_prog_rejected = yes; then 3830 # We found a bogon in the path, so make sure we never use it. 3831 set dummy $ac_cv_prog_CC 3832 shift 3833 if test $# != 0; then 3834 # We chose a different compiler from the bogus one. 3835 # However, it has the same basename, so the bogon will be chosen 3836 # first if we set CC to just the basename; use the full file name. 3837 shift 3838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3839 fi 3840fi 3841fi 3842fi 3843CC=$ac_cv_prog_CC 3844if test -n "$CC"; then 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3846$as_echo "$CC" >&6; } 3847else 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3849$as_echo "no" >&6; } 3850fi 3851 3852 3853fi 3854if test -z "$CC"; then 3855 if test -n "$ac_tool_prefix"; then 3856 for ac_prog in cl.exe 3857 do 3858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3859set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_CC+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$CC"; then 3866 ac_cv_prog_CC="$CC" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885CC=$ac_cv_prog_CC 3886if test -n "$CC"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3888$as_echo "$CC" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895 test -n "$CC" && break 3896 done 3897fi 3898if test -z "$CC"; then 3899 ac_ct_CC=$CC 3900 for ac_prog in cl.exe 3901do 3902 # Extract the first word of "$ac_prog", so it can be a program name with args. 3903set dummy $ac_prog; ac_word=$2 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3905$as_echo_n "checking for $ac_word... " >&6; } 3906if ${ac_cv_prog_ac_ct_CC+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 if test -n "$ac_ct_CC"; then 3910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3911else 3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_exec_ext in '' $ac_executable_extensions; do 3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3919 ac_cv_prog_ac_ct_CC="$ac_prog" 3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3921 break 2 3922 fi 3923done 3924 done 3925IFS=$as_save_IFS 3926 3927fi 3928fi 3929ac_ct_CC=$ac_cv_prog_ac_ct_CC 3930if test -n "$ac_ct_CC"; then 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3932$as_echo "$ac_ct_CC" >&6; } 3933else 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935$as_echo "no" >&6; } 3936fi 3937 3938 3939 test -n "$ac_ct_CC" && break 3940done 3941 3942 if test "x$ac_ct_CC" = x; then 3943 CC="" 3944 else 3945 case $cross_compiling:$ac_tool_warned in 3946yes:) 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3949ac_tool_warned=yes ;; 3950esac 3951 CC=$ac_ct_CC 3952 fi 3953fi 3954 3955fi 3956 3957 3958test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3960as_fn_error $? "no acceptable C compiler found in \$PATH 3961See \`config.log' for more details" "$LINENO" 5; } 3962 3963# Provide some information about the compiler. 3964$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3965set X $ac_compile 3966ac_compiler=$2 3967for ac_option in --version -v -V -qversion; do 3968 { { ac_try="$ac_compiler $ac_option >&5" 3969case "(($ac_try" in 3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3971 *) ac_try_echo=$ac_try;; 3972esac 3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3974$as_echo "$ac_try_echo"; } >&5 3975 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3976 ac_status=$? 3977 if test -s conftest.err; then 3978 sed '10a\ 3979... rest of stderr output deleted ... 3980 10q' conftest.err >conftest.er1 3981 cat conftest.er1 >&5 3982 fi 3983 rm -f conftest.er1 conftest.err 3984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3985 test $ac_status = 0; } 3986done 3987 3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990 3991int 3992main () 3993{ 3994 3995 ; 3996 return 0; 3997} 3998_ACEOF 3999ac_clean_files_save=$ac_clean_files 4000ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4001# Try to create an executable without -o first, disregard a.out. 4002# It will help us diagnose broken compilers, and finding out an intuition 4003# of exeext. 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4005$as_echo_n "checking whether the C compiler works... " >&6; } 4006ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4007 4008# The possible output files: 4009ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4010 4011ac_rmfiles= 4012for ac_file in $ac_files 4013do 4014 case $ac_file in 4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4016 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4017 esac 4018done 4019rm -f $ac_rmfiles 4020 4021if { { ac_try="$ac_link_default" 4022case "(($ac_try" in 4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4024 *) ac_try_echo=$ac_try;; 4025esac 4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4027$as_echo "$ac_try_echo"; } >&5 4028 (eval "$ac_link_default") 2>&5 4029 ac_status=$? 4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4031 test $ac_status = 0; }; then : 4032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4033# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4034# in a Makefile. We should not override ac_cv_exeext if it was cached, 4035# so that the user can short-circuit this test for compilers unknown to 4036# Autoconf. 4037for ac_file in $ac_files '' 4038do 4039 test -f "$ac_file" || continue 4040 case $ac_file in 4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4042 ;; 4043 [ab].out ) 4044 # We found the default executable, but exeext='' is most 4045 # certainly right. 4046 break;; 4047 *.* ) 4048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4049 then :; else 4050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4051 fi 4052 # We set ac_cv_exeext here because the later test for it is not 4053 # safe: cross compilers may not add the suffix if given an `-o' 4054 # argument, so we may need to know it at that point already. 4055 # Even if this section looks crufty: it has the advantage of 4056 # actually working. 4057 break;; 4058 * ) 4059 break;; 4060 esac 4061done 4062test "$ac_cv_exeext" = no && ac_cv_exeext= 4063 4064else 4065 ac_file='' 4066fi 4067if test -z "$ac_file"; then : 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069$as_echo "no" >&6; } 4070$as_echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4075as_fn_error 77 "C compiler cannot create executables 4076See \`config.log' for more details" "$LINENO" 5; } 4077else 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4079$as_echo "yes" >&6; } 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4082$as_echo_n "checking for C compiler default output file name... " >&6; } 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4084$as_echo "$ac_file" >&6; } 4085ac_exeext=$ac_cv_exeext 4086 4087rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4088ac_clean_files=$ac_clean_files_save 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4090$as_echo_n "checking for suffix of executables... " >&6; } 4091if { { ac_try="$ac_link" 4092case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4097$as_echo "$ac_try_echo"; } >&5 4098 (eval "$ac_link") 2>&5 4099 ac_status=$? 4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; }; then : 4102 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4103# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4104# work properly (i.e., refer to `conftest.exe'), while it won't with 4105# `rm'. 4106for ac_file in conftest.exe conftest conftest.*; do 4107 test -f "$ac_file" || continue 4108 case $ac_file in 4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4110 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4111 break;; 4112 * ) break;; 4113 esac 4114done 4115else 4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4118as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4119See \`config.log' for more details" "$LINENO" 5; } 4120fi 4121rm -f conftest conftest$ac_cv_exeext 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4123$as_echo "$ac_cv_exeext" >&6; } 4124 4125rm -f conftest.$ac_ext 4126EXEEXT=$ac_cv_exeext 4127ac_exeext=$EXEEXT 4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130#include <stdio.h> 4131int 4132main () 4133{ 4134FILE *f = fopen ("conftest.out", "w"); 4135 return ferror (f) || fclose (f) != 0; 4136 4137 ; 4138 return 0; 4139} 4140_ACEOF 4141ac_clean_files="$ac_clean_files conftest.out" 4142# Check that the compiler produces executables we can run. If not, either 4143# the compiler is broken, or we cross compile. 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4145$as_echo_n "checking whether we are cross compiling... " >&6; } 4146if test "$cross_compiling" != yes; then 4147 { { ac_try="$ac_link" 4148case "(($ac_try" in 4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4150 *) ac_try_echo=$ac_try;; 4151esac 4152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4153$as_echo "$ac_try_echo"; } >&5 4154 (eval "$ac_link") 2>&5 4155 ac_status=$? 4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4157 test $ac_status = 0; } 4158 if { ac_try='./conftest$ac_cv_exeext' 4159 { { case "(($ac_try" in 4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4161 *) ac_try_echo=$ac_try;; 4162esac 4163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4164$as_echo "$ac_try_echo"; } >&5 4165 (eval "$ac_try") 2>&5 4166 ac_status=$? 4167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4168 test $ac_status = 0; }; }; then 4169 cross_compiling=no 4170 else 4171 if test "$cross_compiling" = maybe; then 4172 cross_compiling=yes 4173 else 4174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4176as_fn_error $? "cannot run C compiled programs. 4177If you meant to cross compile, use \`--host'. 4178See \`config.log' for more details" "$LINENO" 5; } 4179 fi 4180 fi 4181fi 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4183$as_echo "$cross_compiling" >&6; } 4184 4185rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4186ac_clean_files=$ac_clean_files_save 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4188$as_echo_n "checking for suffix of object files... " >&6; } 4189if ${ac_cv_objext+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194 4195int 4196main () 4197{ 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f conftest.o conftest.obj 4204if { { ac_try="$ac_compile" 4205case "(($ac_try" in 4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4207 *) ac_try_echo=$ac_try;; 4208esac 4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4210$as_echo "$ac_try_echo"; } >&5 4211 (eval "$ac_compile") 2>&5 4212 ac_status=$? 4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4214 test $ac_status = 0; }; then : 4215 for ac_file in conftest.o conftest.obj conftest.*; do 4216 test -f "$ac_file" || continue; 4217 case $ac_file in 4218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4219 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4220 break;; 4221 esac 4222done 4223else 4224 $as_echo "$as_me: failed program was:" >&5 4225sed 's/^/| /' conftest.$ac_ext >&5 4226 4227{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4229as_fn_error $? "cannot compute suffix of object files: cannot compile 4230See \`config.log' for more details" "$LINENO" 5; } 4231fi 4232rm -f conftest.$ac_cv_objext conftest.$ac_ext 4233fi 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4235$as_echo "$ac_cv_objext" >&6; } 4236OBJEXT=$ac_cv_objext 4237ac_objext=$OBJEXT 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4239$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4240if ${ac_cv_c_compiler_gnu+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245 4246int 4247main () 4248{ 4249#ifndef __GNUC__ 4250 choke me 4251#endif 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257if ac_fn_c_try_compile "$LINENO"; then : 4258 ac_compiler_gnu=yes 4259else 4260 ac_compiler_gnu=no 4261fi 4262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4263ac_cv_c_compiler_gnu=$ac_compiler_gnu 4264 4265fi 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4267$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4268if test $ac_compiler_gnu = yes; then 4269 GCC=yes 4270else 4271 GCC= 4272fi 4273ac_test_CFLAGS=${CFLAGS+set} 4274ac_save_CFLAGS=$CFLAGS 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4276$as_echo_n "checking whether $CC accepts -g... " >&6; } 4277if ${ac_cv_prog_cc_g+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 ac_save_c_werror_flag=$ac_c_werror_flag 4281 ac_c_werror_flag=yes 4282 ac_cv_prog_cc_g=no 4283 CFLAGS="-g" 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286 4287int 4288main () 4289{ 4290 4291 ; 4292 return 0; 4293} 4294_ACEOF 4295if ac_fn_c_try_compile "$LINENO"; then : 4296 ac_cv_prog_cc_g=yes 4297else 4298 CFLAGS="" 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301 4302int 4303main () 4304{ 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_compile "$LINENO"; then : 4311 4312else 4313 ac_c_werror_flag=$ac_save_c_werror_flag 4314 CFLAGS="-g" 4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4316/* end confdefs.h. */ 4317 4318int 4319main () 4320{ 4321 4322 ; 4323 return 0; 4324} 4325_ACEOF 4326if ac_fn_c_try_compile "$LINENO"; then : 4327 ac_cv_prog_cc_g=yes 4328fi 4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4330fi 4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4332fi 4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4334 ac_c_werror_flag=$ac_save_c_werror_flag 4335fi 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4337$as_echo "$ac_cv_prog_cc_g" >&6; } 4338if test "$ac_test_CFLAGS" = set; then 4339 CFLAGS=$ac_save_CFLAGS 4340elif test $ac_cv_prog_cc_g = yes; then 4341 if test "$GCC" = yes; then 4342 CFLAGS="-g -O2" 4343 else 4344 CFLAGS="-g" 4345 fi 4346else 4347 if test "$GCC" = yes; then 4348 CFLAGS="-O2" 4349 else 4350 CFLAGS= 4351 fi 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4354$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4355if ${ac_cv_prog_cc_c89+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 ac_cv_prog_cc_c89=no 4359ac_save_CC=$CC 4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <stdarg.h> 4363#include <stdio.h> 4364struct stat; 4365/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4366struct buf { int x; }; 4367FILE * (*rcsopen) (struct buf *, struct stat *, int); 4368static char *e (p, i) 4369 char **p; 4370 int i; 4371{ 4372 return p[i]; 4373} 4374static char *f (char * (*g) (char **, int), char **p, ...) 4375{ 4376 char *s; 4377 va_list v; 4378 va_start (v,p); 4379 s = g (p, va_arg (v,int)); 4380 va_end (v); 4381 return s; 4382} 4383 4384/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4385 function prototypes and stuff, but not '\xHH' hex character constants. 4386 These don't provoke an error unfortunately, instead are silently treated 4387 as 'x'. The following induces an error, until -std is added to get 4388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4389 array size at least. It's necessary to write '\x00'==0 to get something 4390 that's true only with -std. */ 4391int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4392 4393/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4394 inside strings and character constants. */ 4395#define FOO(x) 'x' 4396int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4397 4398int test (int i, double x); 4399struct s1 {int (*f) (int a);}; 4400struct s2 {int (*f) (double a);}; 4401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4402int argc; 4403char **argv; 4404int 4405main () 4406{ 4407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4414do 4415 CC="$ac_save_CC $ac_arg" 4416 if ac_fn_c_try_compile "$LINENO"; then : 4417 ac_cv_prog_cc_c89=$ac_arg 4418fi 4419rm -f core conftest.err conftest.$ac_objext 4420 test "x$ac_cv_prog_cc_c89" != "xno" && break 4421done 4422rm -f conftest.$ac_ext 4423CC=$ac_save_CC 4424 4425fi 4426# AC_CACHE_VAL 4427case "x$ac_cv_prog_cc_c89" in 4428 x) 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4430$as_echo "none needed" >&6; } ;; 4431 xno) 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4433$as_echo "unsupported" >&6; } ;; 4434 *) 4435 CC="$CC $ac_cv_prog_cc_c89" 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4437$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4438esac 4439if test "x$ac_cv_prog_cc_c89" != xno; then : 4440 4441fi 4442 4443ac_ext=c 4444ac_cpp='$CPP $CPPFLAGS' 4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4447ac_compiler_gnu=$ac_cv_c_compiler_gnu 4448 4449ac_ext=c 4450ac_cpp='$CPP $CPPFLAGS' 4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4453ac_compiler_gnu=$ac_cv_c_compiler_gnu 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4455$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4456if ${am_cv_prog_cc_c_o+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int 4463main () 4464{ 4465 4466 ; 4467 return 0; 4468} 4469_ACEOF 4470 # Make sure it works both with $CC and with simple cc. 4471 # Following AC_PROG_CC_C_O, we do the test twice because some 4472 # compilers refuse to overwrite an existing .o file with -o, 4473 # though they will create one. 4474 am_cv_prog_cc_c_o=yes 4475 for am_i in 1 2; do 4476 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4477 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4478 ac_status=$? 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); } \ 4481 && test -f conftest2.$ac_objext; then 4482 : OK 4483 else 4484 am_cv_prog_cc_c_o=no 4485 break 4486 fi 4487 done 4488 rm -f core conftest* 4489 unset am_i 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4492$as_echo "$am_cv_prog_cc_c_o" >&6; } 4493if test "$am_cv_prog_cc_c_o" != yes; then 4494 # Losing compiler, so override with the script. 4495 # FIXME: It is wrong to rewrite CC. 4496 # But if we don't then we get into trouble of one sort or another. 4497 # A longer-term fix would be to have automake use am__CC in this case, 4498 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4499 CC="$am_aux_dir/compile $CC" 4500fi 4501ac_ext=c 4502ac_cpp='$CPP $CPPFLAGS' 4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4505ac_compiler_gnu=$ac_cv_c_compiler_gnu 4506 4507 4508depcc="$CC" am_compiler_list= 4509 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4511$as_echo_n "checking dependency style of $depcc... " >&6; } 4512if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4516 # We make a subdir and do the tests there. Otherwise we can end up 4517 # making bogus files that we don't know about and never remove. For 4518 # instance it was reported that on HP-UX the gcc test will end up 4519 # making a dummy file named 'D' -- because '-MD' means "put the output 4520 # in D". 4521 rm -rf conftest.dir 4522 mkdir conftest.dir 4523 # Copy depcomp to subdir because otherwise we won't find it if we're 4524 # using a relative directory. 4525 cp "$am_depcomp" conftest.dir 4526 cd conftest.dir 4527 # We will build objects and dependencies in a subdirectory because 4528 # it helps to detect inapplicable dependency modes. For instance 4529 # both Tru64's cc and ICC support -MD to output dependencies as a 4530 # side effect of compilation, but ICC will put the dependencies in 4531 # the current directory while Tru64 will put them in the object 4532 # directory. 4533 mkdir sub 4534 4535 am_cv_CC_dependencies_compiler_type=none 4536 if test "$am_compiler_list" = ""; then 4537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4538 fi 4539 am__universal=false 4540 case " $depcc " in #( 4541 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4542 esac 4543 4544 for depmode in $am_compiler_list; do 4545 # Setup a source with many dependencies, because some compilers 4546 # like to wrap large dependency lists on column 80 (with \), and 4547 # we should not choose a depcomp mode which is confused by this. 4548 # 4549 # We need to recreate these files for each test, as the compiler may 4550 # overwrite some of them when testing with obscure command lines. 4551 # This happens at least with the AIX C compiler. 4552 : > sub/conftest.c 4553 for i in 1 2 3 4 5 6; do 4554 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4555 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4556 # Solaris 10 /bin/sh. 4557 echo '/* dummy */' > sub/conftst$i.h 4558 done 4559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4560 4561 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4562 # mode. It turns out that the SunPro C++ compiler does not properly 4563 # handle '-M -o', and we need to detect this. Also, some Intel 4564 # versions had trouble with output in subdirs. 4565 am__obj=sub/conftest.${OBJEXT-o} 4566 am__minus_obj="-o $am__obj" 4567 case $depmode in 4568 gcc) 4569 # This depmode causes a compiler race in universal mode. 4570 test "$am__universal" = false || continue 4571 ;; 4572 nosideeffect) 4573 # After this tag, mechanisms are not by side-effect, so they'll 4574 # only be used when explicitly requested. 4575 if test "x$enable_dependency_tracking" = xyes; then 4576 continue 4577 else 4578 break 4579 fi 4580 ;; 4581 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4582 # This compiler won't grok '-c -o', but also, the minuso test has 4583 # not run yet. These depmodes are late enough in the game, and 4584 # so weak that their functioning should not be impacted. 4585 am__obj=conftest.${OBJEXT-o} 4586 am__minus_obj= 4587 ;; 4588 none) break ;; 4589 esac 4590 if depmode=$depmode \ 4591 source=sub/conftest.c object=$am__obj \ 4592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4593 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4594 >/dev/null 2>conftest.err && 4595 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4597 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4599 # icc doesn't choke on unknown options, it will just issue warnings 4600 # or remarks (even with -Werror). So we grep stderr for any message 4601 # that says an option was ignored or not supported. 4602 # When given -MP, icc 7.0 and 7.1 complain thusly: 4603 # icc: Command line warning: ignoring option '-M'; no argument required 4604 # The diagnosis changed in icc 8.0: 4605 # icc: Command line remark: option '-MP' not supported 4606 if (grep 'ignoring option' conftest.err || 4607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4608 am_cv_CC_dependencies_compiler_type=$depmode 4609 break 4610 fi 4611 fi 4612 done 4613 4614 cd .. 4615 rm -rf conftest.dir 4616else 4617 am_cv_CC_dependencies_compiler_type=none 4618fi 4619 4620fi 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4622$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4623CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4624 4625 if 4626 test "x$enable_dependency_tracking" != xno \ 4627 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4628 am__fastdepCC_TRUE= 4629 am__fastdepCC_FALSE='#' 4630else 4631 am__fastdepCC_TRUE='#' 4632 am__fastdepCC_FALSE= 4633fi 4634 4635 4636 4637ac_ext=c 4638ac_cpp='$CPP $CPPFLAGS' 4639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4641ac_compiler_gnu=$ac_cv_c_compiler_gnu 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4643$as_echo_n "checking how to run the C preprocessor... " >&6; } 4644# On Suns, sometimes $CPP names a directory. 4645if test -n "$CPP" && test -d "$CPP"; then 4646 CPP= 4647fi 4648if test -z "$CPP"; then 4649 if ${ac_cv_prog_CPP+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 # Double quotes because CPP needs to be expanded 4653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4654 do 4655 ac_preproc_ok=false 4656for ac_c_preproc_warn_flag in '' yes 4657do 4658 # Use a header file that comes with gcc, so configuring glibc 4659 # with a fresh cross-compiler works. 4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4661 # <limits.h> exists even on freestanding compilers. 4662 # On the NeXT, cc -E runs the code through the compiler's parser, 4663 # not just through cpp. "Syntax error" is here to catch this case. 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666#ifdef __STDC__ 4667# include <limits.h> 4668#else 4669# include <assert.h> 4670#endif 4671 Syntax error 4672_ACEOF 4673if ac_fn_c_try_cpp "$LINENO"; then : 4674 4675else 4676 # Broken: fails on valid input. 4677continue 4678fi 4679rm -f conftest.err conftest.i conftest.$ac_ext 4680 4681 # OK, works on sane cases. Now check whether nonexistent headers 4682 # can be detected and how. 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685#include <ac_nonexistent.h> 4686_ACEOF 4687if ac_fn_c_try_cpp "$LINENO"; then : 4688 # Broken: success on invalid input. 4689continue 4690else 4691 # Passes both tests. 4692ac_preproc_ok=: 4693break 4694fi 4695rm -f conftest.err conftest.i conftest.$ac_ext 4696 4697done 4698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4699rm -f conftest.i conftest.err conftest.$ac_ext 4700if $ac_preproc_ok; then : 4701 break 4702fi 4703 4704 done 4705 ac_cv_prog_CPP=$CPP 4706 4707fi 4708 CPP=$ac_cv_prog_CPP 4709else 4710 ac_cv_prog_CPP=$CPP 4711fi 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4713$as_echo "$CPP" >&6; } 4714ac_preproc_ok=false 4715for ac_c_preproc_warn_flag in '' yes 4716do 4717 # Use a header file that comes with gcc, so configuring glibc 4718 # with a fresh cross-compiler works. 4719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4720 # <limits.h> exists even on freestanding compilers. 4721 # On the NeXT, cc -E runs the code through the compiler's parser, 4722 # not just through cpp. "Syntax error" is here to catch this case. 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725#ifdef __STDC__ 4726# include <limits.h> 4727#else 4728# include <assert.h> 4729#endif 4730 Syntax error 4731_ACEOF 4732if ac_fn_c_try_cpp "$LINENO"; then : 4733 4734else 4735 # Broken: fails on valid input. 4736continue 4737fi 4738rm -f conftest.err conftest.i conftest.$ac_ext 4739 4740 # OK, works on sane cases. Now check whether nonexistent headers 4741 # can be detected and how. 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4743/* end confdefs.h. */ 4744#include <ac_nonexistent.h> 4745_ACEOF 4746if ac_fn_c_try_cpp "$LINENO"; then : 4747 # Broken: success on invalid input. 4748continue 4749else 4750 # Passes both tests. 4751ac_preproc_ok=: 4752break 4753fi 4754rm -f conftest.err conftest.i conftest.$ac_ext 4755 4756done 4757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4758rm -f conftest.i conftest.err conftest.$ac_ext 4759if $ac_preproc_ok; then : 4760 4761else 4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4764as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4765See \`config.log' for more details" "$LINENO" 5; } 4766fi 4767 4768ac_ext=c 4769ac_cpp='$CPP $CPPFLAGS' 4770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4772ac_compiler_gnu=$ac_cv_c_compiler_gnu 4773 4774 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4776$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4777if ${ac_cv_path_GREP+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 if test -z "$GREP"; then 4781 ac_path_GREP_found=false 4782 # Loop through the user's path and test for each of PROGNAME-LIST 4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4785do 4786 IFS=$as_save_IFS 4787 test -z "$as_dir" && as_dir=. 4788 for ac_prog in grep ggrep; do 4789 for ac_exec_ext in '' $ac_executable_extensions; do 4790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4791 as_fn_executable_p "$ac_path_GREP" || continue 4792# Check for GNU ac_path_GREP and select it if it is found. 4793 # Check for GNU $ac_path_GREP 4794case `"$ac_path_GREP" --version 2>&1` in 4795*GNU*) 4796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4797*) 4798 ac_count=0 4799 $as_echo_n 0123456789 >"conftest.in" 4800 while : 4801 do 4802 cat "conftest.in" "conftest.in" >"conftest.tmp" 4803 mv "conftest.tmp" "conftest.in" 4804 cp "conftest.in" "conftest.nl" 4805 $as_echo 'GREP' >> "conftest.nl" 4806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4808 as_fn_arith $ac_count + 1 && ac_count=$as_val 4809 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4810 # Best one so far, save it but keep looking for a better one 4811 ac_cv_path_GREP="$ac_path_GREP" 4812 ac_path_GREP_max=$ac_count 4813 fi 4814 # 10*(2^10) chars as input seems more than enough 4815 test $ac_count -gt 10 && break 4816 done 4817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4818esac 4819 4820 $ac_path_GREP_found && break 3 4821 done 4822 done 4823 done 4824IFS=$as_save_IFS 4825 if test -z "$ac_cv_path_GREP"; then 4826 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4827 fi 4828else 4829 ac_cv_path_GREP=$GREP 4830fi 4831 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4834$as_echo "$ac_cv_path_GREP" >&6; } 4835 GREP="$ac_cv_path_GREP" 4836 4837 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4839$as_echo_n "checking for egrep... " >&6; } 4840if ${ac_cv_path_EGREP+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4844 then ac_cv_path_EGREP="$GREP -E" 4845 else 4846 if test -z "$EGREP"; then 4847 ac_path_EGREP_found=false 4848 # Loop through the user's path and test for each of PROGNAME-LIST 4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4851do 4852 IFS=$as_save_IFS 4853 test -z "$as_dir" && as_dir=. 4854 for ac_prog in egrep; do 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4857 as_fn_executable_p "$ac_path_EGREP" || continue 4858# Check for GNU ac_path_EGREP and select it if it is found. 4859 # Check for GNU $ac_path_EGREP 4860case `"$ac_path_EGREP" --version 2>&1` in 4861*GNU*) 4862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4863*) 4864 ac_count=0 4865 $as_echo_n 0123456789 >"conftest.in" 4866 while : 4867 do 4868 cat "conftest.in" "conftest.in" >"conftest.tmp" 4869 mv "conftest.tmp" "conftest.in" 4870 cp "conftest.in" "conftest.nl" 4871 $as_echo 'EGREP' >> "conftest.nl" 4872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4874 as_fn_arith $ac_count + 1 && ac_count=$as_val 4875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4876 # Best one so far, save it but keep looking for a better one 4877 ac_cv_path_EGREP="$ac_path_EGREP" 4878 ac_path_EGREP_max=$ac_count 4879 fi 4880 # 10*(2^10) chars as input seems more than enough 4881 test $ac_count -gt 10 && break 4882 done 4883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4884esac 4885 4886 $ac_path_EGREP_found && break 3 4887 done 4888 done 4889 done 4890IFS=$as_save_IFS 4891 if test -z "$ac_cv_path_EGREP"; then 4892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4893 fi 4894else 4895 ac_cv_path_EGREP=$EGREP 4896fi 4897 4898 fi 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4901$as_echo "$ac_cv_path_EGREP" >&6; } 4902 EGREP="$ac_cv_path_EGREP" 4903 4904 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4906$as_echo_n "checking for ANSI C header files... " >&6; } 4907if ${ac_cv_header_stdc+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911/* end confdefs.h. */ 4912#include <stdlib.h> 4913#include <stdarg.h> 4914#include <string.h> 4915#include <float.h> 4916 4917int 4918main () 4919{ 4920 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 ac_cv_header_stdc=yes 4927else 4928 ac_cv_header_stdc=no 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4931 4932if test $ac_cv_header_stdc = yes; then 4933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4935/* end confdefs.h. */ 4936#include <string.h> 4937 4938_ACEOF 4939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4940 $EGREP "memchr" >/dev/null 2>&1; then : 4941 4942else 4943 ac_cv_header_stdc=no 4944fi 4945rm -f conftest* 4946 4947fi 4948 4949if test $ac_cv_header_stdc = yes; then 4950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953#include <stdlib.h> 4954 4955_ACEOF 4956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4957 $EGREP "free" >/dev/null 2>&1; then : 4958 4959else 4960 ac_cv_header_stdc=no 4961fi 4962rm -f conftest* 4963 4964fi 4965 4966if test $ac_cv_header_stdc = yes; then 4967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4968 if test "$cross_compiling" = yes; then : 4969 : 4970else 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973#include <ctype.h> 4974#include <stdlib.h> 4975#if ((' ' & 0x0FF) == 0x020) 4976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4978#else 4979# define ISLOWER(c) \ 4980 (('a' <= (c) && (c) <= 'i') \ 4981 || ('j' <= (c) && (c) <= 'r') \ 4982 || ('s' <= (c) && (c) <= 'z')) 4983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4984#endif 4985 4986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4987int 4988main () 4989{ 4990 int i; 4991 for (i = 0; i < 256; i++) 4992 if (XOR (islower (i), ISLOWER (i)) 4993 || toupper (i) != TOUPPER (i)) 4994 return 2; 4995 return 0; 4996} 4997_ACEOF 4998if ac_fn_c_try_run "$LINENO"; then : 4999 5000else 5001 ac_cv_header_stdc=no 5002fi 5003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5004 conftest.$ac_objext conftest.beam conftest.$ac_ext 5005fi 5006 5007fi 5008fi 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5010$as_echo "$ac_cv_header_stdc" >&6; } 5011if test $ac_cv_header_stdc = yes; then 5012 5013$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5014 5015fi 5016 5017# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5018for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5019 inttypes.h stdint.h unistd.h 5020do : 5021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5022ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5023" 5024if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5025 cat >>confdefs.h <<_ACEOF 5026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5027_ACEOF 5028 5029fi 5030 5031done 5032 5033 5034 5035 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5036if test "x$ac_cv_header_minix_config_h" = xyes; then : 5037 MINIX=yes 5038else 5039 MINIX= 5040fi 5041 5042 5043 if test "$MINIX" = yes; then 5044 5045$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5046 5047 5048$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5049 5050 5051$as_echo "#define _MINIX 1" >>confdefs.h 5052 5053 fi 5054 5055 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5057$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5058if ${ac_cv_safe_to_define___extensions__+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063 5064# define __EXTENSIONS__ 1 5065 $ac_includes_default 5066int 5067main () 5068{ 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_c_try_compile "$LINENO"; then : 5075 ac_cv_safe_to_define___extensions__=yes 5076else 5077 ac_cv_safe_to_define___extensions__=no 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080fi 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5082$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5083 test $ac_cv_safe_to_define___extensions__ = yes && 5084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5085 5086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5087 5088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5089 5090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5091 5092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5093 5094 5095 5096 5097 5098ac_config_headers="$ac_config_headers config.h" 5099 5100 5101 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5103$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5104 # Check whether --enable-maintainer-mode was given. 5105if test "${enable_maintainer_mode+set}" = set; then : 5106 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5107else 5108 USE_MAINTAINER_MODE=no 5109fi 5110 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5112$as_echo "$USE_MAINTAINER_MODE" >&6; } 5113 if test $USE_MAINTAINER_MODE = yes; then 5114 MAINTAINER_MODE_TRUE= 5115 MAINTAINER_MODE_FALSE='#' 5116else 5117 MAINTAINER_MODE_TRUE='#' 5118 MAINTAINER_MODE_FALSE= 5119fi 5120 5121 MAINT=$MAINTAINER_MODE_TRUE 5122 5123 5124 5125 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5127$as_echo_n "checking whether NLS is requested... " >&6; } 5128 # Check whether --enable-nls was given. 5129if test "${enable_nls+set}" = set; then : 5130 enableval=$enable_nls; USE_NLS=$enableval 5131else 5132 USE_NLS=yes 5133fi 5134 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5136$as_echo "$USE_NLS" >&6; } 5137 5138 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5140$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5141if ${ac_cv_path_SED+:} false; then : 5142 $as_echo_n "(cached) " >&6 5143else 5144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5145 for ac_i in 1 2 3 4 5 6 7; do 5146 ac_script="$ac_script$as_nl$ac_script" 5147 done 5148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5149 { ac_script=; unset ac_script;} 5150 if test -z "$SED"; then 5151 ac_path_SED_found=false 5152 # Loop through the user's path and test for each of PROGNAME-LIST 5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_prog in sed gsed; do 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5161 as_fn_executable_p "$ac_path_SED" || continue 5162# Check for GNU ac_path_SED and select it if it is found. 5163 # Check for GNU $ac_path_SED 5164case `"$ac_path_SED" --version 2>&1` in 5165*GNU*) 5166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5167*) 5168 ac_count=0 5169 $as_echo_n 0123456789 >"conftest.in" 5170 while : 5171 do 5172 cat "conftest.in" "conftest.in" >"conftest.tmp" 5173 mv "conftest.tmp" "conftest.in" 5174 cp "conftest.in" "conftest.nl" 5175 $as_echo '' >> "conftest.nl" 5176 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5178 as_fn_arith $ac_count + 1 && ac_count=$as_val 5179 if test $ac_count -gt ${ac_path_SED_max-0}; then 5180 # Best one so far, save it but keep looking for a better one 5181 ac_cv_path_SED="$ac_path_SED" 5182 ac_path_SED_max=$ac_count 5183 fi 5184 # 10*(2^10) chars as input seems more than enough 5185 test $ac_count -gt 10 && break 5186 done 5187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5188esac 5189 5190 $ac_path_SED_found && break 3 5191 done 5192 done 5193 done 5194IFS=$as_save_IFS 5195 if test -z "$ac_cv_path_SED"; then 5196 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5197 fi 5198else 5199 ac_cv_path_SED=$SED 5200fi 5201 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5204$as_echo "$ac_cv_path_SED" >&6; } 5205 SED="$ac_cv_path_SED" 5206 rm -f conftest.sed 5207 5208 5209 5210 GETTEXT_MACRO_VERSION=0.19 5211 5212 5213 5214 5215# Prepare PATH_SEPARATOR. 5216# The user is always right. 5217if test "${PATH_SEPARATOR+set}" != set; then 5218 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 5219 # contains only /bin. Note that ksh looks also at the FPATH variable, 5220 # so we have to set that as well for the test. 5221 PATH_SEPARATOR=: 5222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5223 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5224 || PATH_SEPARATOR=';' 5225 } 5226fi 5227 5228# Find out how to test for executable files. Don't use a zero-byte file, 5229# as systems may use methods other than mode bits to determine executability. 5230cat >conf$$.file <<_ASEOF 5231#! /bin/sh 5232exit 0 5233_ASEOF 5234chmod +x conf$$.file 5235if test -x conf$$.file >/dev/null 2>&1; then 5236 ac_executable_p="test -x" 5237else 5238 ac_executable_p="test -f" 5239fi 5240rm -f conf$$.file 5241 5242# Extract the first word of "msgfmt", so it can be a program name with args. 5243set dummy msgfmt; ac_word=$2 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245$as_echo_n "checking for $ac_word... " >&6; } 5246if ${ac_cv_path_MSGFMT+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 case "$MSGFMT" in 5250 [\\/]* | ?:[\\/]*) 5251 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5252 ;; 5253 *) 5254 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5255 for ac_dir in $PATH; do 5256 IFS="$ac_save_IFS" 5257 test -z "$ac_dir" && ac_dir=. 5258 for ac_exec_ext in '' $ac_executable_extensions; do 5259 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5260 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5261 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 5262 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5263 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5264 break 2 5265 fi 5266 fi 5267 done 5268 done 5269 IFS="$ac_save_IFS" 5270 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5271 ;; 5272esac 5273fi 5274MSGFMT="$ac_cv_path_MSGFMT" 5275if test "$MSGFMT" != ":"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5277$as_echo "$MSGFMT" >&6; } 5278else 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5284set dummy gmsgfmt; ac_word=$2 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5286$as_echo_n "checking for $ac_word... " >&6; } 5287if ${ac_cv_path_GMSGFMT+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 case $GMSGFMT in 5291 [\\/]* | ?:[\\/]*) 5292 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5293 ;; 5294 *) 5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5296for as_dir in $PATH 5297do 5298 IFS=$as_save_IFS 5299 test -z "$as_dir" && as_dir=. 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5302 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5304 break 2 5305 fi 5306done 5307 done 5308IFS=$as_save_IFS 5309 5310 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5311 ;; 5312esac 5313fi 5314GMSGFMT=$ac_cv_path_GMSGFMT 5315if test -n "$GMSGFMT"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5317$as_echo "$GMSGFMT" >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 5324 5325 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5326 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 5327 *) MSGFMT_015=$MSGFMT ;; 5328 esac 5329 5330 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5331 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 5332 *) GMSGFMT_015=$GMSGFMT ;; 5333 esac 5334 5335 5336 5337# Prepare PATH_SEPARATOR. 5338# The user is always right. 5339if test "${PATH_SEPARATOR+set}" != set; then 5340 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 5341 # contains only /bin. Note that ksh looks also at the FPATH variable, 5342 # so we have to set that as well for the test. 5343 PATH_SEPARATOR=: 5344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5345 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5346 || PATH_SEPARATOR=';' 5347 } 5348fi 5349 5350# Find out how to test for executable files. Don't use a zero-byte file, 5351# as systems may use methods other than mode bits to determine executability. 5352cat >conf$$.file <<_ASEOF 5353#! /bin/sh 5354exit 0 5355_ASEOF 5356chmod +x conf$$.file 5357if test -x conf$$.file >/dev/null 2>&1; then 5358 ac_executable_p="test -x" 5359else 5360 ac_executable_p="test -f" 5361fi 5362rm -f conf$$.file 5363 5364# Extract the first word of "xgettext", so it can be a program name with args. 5365set dummy xgettext; ac_word=$2 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5367$as_echo_n "checking for $ac_word... " >&6; } 5368if ${ac_cv_path_XGETTEXT+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 case "$XGETTEXT" in 5372 [\\/]* | ?:[\\/]*) 5373 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5374 ;; 5375 *) 5376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5377 for ac_dir in $PATH; do 5378 IFS="$ac_save_IFS" 5379 test -z "$ac_dir" && ac_dir=. 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5382 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5383 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 5384 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5385 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5386 break 2 5387 fi 5388 fi 5389 done 5390 done 5391 IFS="$ac_save_IFS" 5392 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5393 ;; 5394esac 5395fi 5396XGETTEXT="$ac_cv_path_XGETTEXT" 5397if test "$XGETTEXT" != ":"; then 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5399$as_echo "$XGETTEXT" >&6; } 5400else 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5402$as_echo "no" >&6; } 5403fi 5404 5405 rm -f messages.po 5406 5407 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5408 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 5409 *) XGETTEXT_015=$XGETTEXT ;; 5410 esac 5411 5412 5413 5414# Prepare PATH_SEPARATOR. 5415# The user is always right. 5416if test "${PATH_SEPARATOR+set}" != set; then 5417 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 5418 # contains only /bin. Note that ksh looks also at the FPATH variable, 5419 # so we have to set that as well for the test. 5420 PATH_SEPARATOR=: 5421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5422 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5423 || PATH_SEPARATOR=';' 5424 } 5425fi 5426 5427# Find out how to test for executable files. Don't use a zero-byte file, 5428# as systems may use methods other than mode bits to determine executability. 5429cat >conf$$.file <<_ASEOF 5430#! /bin/sh 5431exit 0 5432_ASEOF 5433chmod +x conf$$.file 5434if test -x conf$$.file >/dev/null 2>&1; then 5435 ac_executable_p="test -x" 5436else 5437 ac_executable_p="test -f" 5438fi 5439rm -f conf$$.file 5440 5441# Extract the first word of "msgmerge", so it can be a program name with args. 5442set dummy msgmerge; ac_word=$2 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5444$as_echo_n "checking for $ac_word... " >&6; } 5445if ${ac_cv_path_MSGMERGE+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 case "$MSGMERGE" in 5449 [\\/]* | ?:[\\/]*) 5450 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5451 ;; 5452 *) 5453 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5454 for ac_dir in $PATH; do 5455 IFS="$ac_save_IFS" 5456 test -z "$ac_dir" && ac_dir=. 5457 for ac_exec_ext in '' $ac_executable_extensions; do 5458 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5459 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5460 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 5461 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5462 break 2 5463 fi 5464 fi 5465 done 5466 done 5467 IFS="$ac_save_IFS" 5468 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5469 ;; 5470esac 5471fi 5472MSGMERGE="$ac_cv_path_MSGMERGE" 5473if test "$MSGMERGE" != ":"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5475$as_echo "$MSGMERGE" >&6; } 5476else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478$as_echo "no" >&6; } 5479fi 5480 5481 5482 test -n "$localedir" || localedir='${datadir}/locale' 5483 5484 5485 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 5486 5487 5488 ac_config_commands="$ac_config_commands po-directories" 5489 5490 5491# Make sure we can run config.sub. 5492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5494 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5496$as_echo_n "checking build system type... " >&6; } 5497if ${ac_cv_build+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 ac_build_alias=$build_alias 5501test "x$ac_build_alias" = x && 5502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5503test "x$ac_build_alias" = x && 5504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5507 5508fi 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5510$as_echo "$ac_cv_build" >&6; } 5511case $ac_cv_build in 5512*-*-*) ;; 5513*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5514esac 5515build=$ac_cv_build 5516ac_save_IFS=$IFS; IFS='-' 5517set x $ac_cv_build 5518shift 5519build_cpu=$1 5520build_vendor=$2 5521shift; shift 5522# Remember, the first character of IFS is used to create $*, 5523# except with old shells: 5524build_os=$* 5525IFS=$ac_save_IFS 5526case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5530$as_echo_n "checking host system type... " >&6; } 5531if ${ac_cv_host+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 if test "x$host_alias" = x; then 5535 ac_cv_host=$ac_cv_build 5536else 5537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5539fi 5540 5541fi 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5543$as_echo "$ac_cv_host" >&6; } 5544case $ac_cv_host in 5545*-*-*) ;; 5546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5547esac 5548host=$ac_cv_host 5549ac_save_IFS=$IFS; IFS='-' 5550set x $ac_cv_host 5551shift 5552host_cpu=$1 5553host_vendor=$2 5554shift; shift 5555# Remember, the first character of IFS is used to create $*, 5556# except with old shells: 5557host_os=$* 5558IFS=$ac_save_IFS 5559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5560 5561 5562 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 5564$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 5565if ${ac_cv_gnu_library_2+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570 5571#include <features.h> 5572#ifdef __GNU_LIBRARY__ 5573 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 5574 Lucky GNU user 5575 #endif 5576#endif 5577 5578_ACEOF 5579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5580 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 5581 ac_cv_gnu_library_2=yes 5582else 5583 ac_cv_gnu_library_2=no 5584fi 5585rm -f conftest* 5586 5587 5588 5589fi 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 5591$as_echo "$ac_cv_gnu_library_2" >&6; } 5592 5593 GLIBC2="$ac_cv_gnu_library_2" 5594 5595 5596if test -n "$ac_tool_prefix"; then 5597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5598set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600$as_echo_n "checking for $ac_word... " >&6; } 5601if ${ac_cv_prog_RANLIB+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 if test -n "$RANLIB"; then 5605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5606else 5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5608for as_dir in $PATH 5609do 5610 IFS=$as_save_IFS 5611 test -z "$as_dir" && as_dir=. 5612 for ac_exec_ext in '' $ac_executable_extensions; do 5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5616 break 2 5617 fi 5618done 5619 done 5620IFS=$as_save_IFS 5621 5622fi 5623fi 5624RANLIB=$ac_cv_prog_RANLIB 5625if test -n "$RANLIB"; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5627$as_echo "$RANLIB" >&6; } 5628else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5630$as_echo "no" >&6; } 5631fi 5632 5633 5634fi 5635if test -z "$ac_cv_prog_RANLIB"; then 5636 ac_ct_RANLIB=$RANLIB 5637 # Extract the first word of "ranlib", so it can be a program name with args. 5638set dummy ranlib; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$ac_ct_RANLIB"; then 5645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_ac_ct_RANLIB="ranlib" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5665if test -n "$ac_ct_RANLIB"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5667$as_echo "$ac_ct_RANLIB" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 if test "x$ac_ct_RANLIB" = x; then 5674 RANLIB=":" 5675 else 5676 case $cross_compiling:$ac_tool_warned in 5677yes:) 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5680ac_tool_warned=yes ;; 5681esac 5682 RANLIB=$ac_ct_RANLIB 5683 fi 5684else 5685 RANLIB="$ac_cv_prog_RANLIB" 5686fi 5687 5688 5689 5690 CFLAG_VISIBILITY= 5691 HAVE_VISIBILITY=0 5692 if test -n "$GCC"; then 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 5694$as_echo_n "checking whether the -Werror option is usable... " >&6; } 5695 if ${gl_cv_cc_vis_werror+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 5699 gl_save_CFLAGS="$CFLAGS" 5700 CFLAGS="$CFLAGS -Werror" 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703 5704int 5705main () 5706{ 5707 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712if ac_fn_c_try_compile "$LINENO"; then : 5713 gl_cv_cc_vis_werror=yes 5714else 5715 gl_cv_cc_vis_werror=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718 CFLAGS="$gl_save_CFLAGS" 5719fi 5720 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 5722$as_echo "$gl_cv_cc_vis_werror" >&6; } 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 5724$as_echo_n "checking for simple visibility declarations... " >&6; } 5725 if ${gl_cv_cc_visibility+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 5729 gl_save_CFLAGS="$CFLAGS" 5730 CFLAGS="$CFLAGS -fvisibility=hidden" 5731 if test $gl_cv_cc_vis_werror = yes; then 5732 CFLAGS="$CFLAGS -Werror" 5733 fi 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736extern __attribute__((__visibility__("hidden"))) int hiddenvar; 5737 extern __attribute__((__visibility__("default"))) int exportedvar; 5738 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 5739 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 5740 void dummyfunc (void) {} 5741 5742int 5743main () 5744{ 5745 5746 ; 5747 return 0; 5748} 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO"; then : 5751 gl_cv_cc_visibility=yes 5752else 5753 gl_cv_cc_visibility=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5756 CFLAGS="$gl_save_CFLAGS" 5757fi 5758 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 5760$as_echo "$gl_cv_cc_visibility" >&6; } 5761 if test $gl_cv_cc_visibility = yes; then 5762 CFLAG_VISIBILITY="-fvisibility=hidden" 5763 HAVE_VISIBILITY=1 5764 fi 5765 fi 5766 5767 5768 5769cat >>confdefs.h <<_ACEOF 5770#define HAVE_VISIBILITY $HAVE_VISIBILITY 5771_ACEOF 5772 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5775$as_echo_n "checking for inline... " >&6; } 5776if ${ac_cv_c_inline+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 ac_cv_c_inline=no 5780for ac_kw in inline __inline__ __inline; do 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5782/* end confdefs.h. */ 5783#ifndef __cplusplus 5784typedef int foo_t; 5785static $ac_kw foo_t static_foo () {return 0; } 5786$ac_kw foo_t foo () {return 0; } 5787#endif 5788 5789_ACEOF 5790if ac_fn_c_try_compile "$LINENO"; then : 5791 ac_cv_c_inline=$ac_kw 5792fi 5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5794 test "$ac_cv_c_inline" != no && break 5795done 5796 5797fi 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5799$as_echo "$ac_cv_c_inline" >&6; } 5800 5801case $ac_cv_c_inline in 5802 inline | yes) ;; 5803 *) 5804 case $ac_cv_c_inline in 5805 no) ac_val=;; 5806 *) ac_val=$ac_cv_c_inline;; 5807 esac 5808 cat >>confdefs.h <<_ACEOF 5809#ifndef __cplusplus 5810#define inline $ac_val 5811#endif 5812_ACEOF 5813 ;; 5814esac 5815 5816ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5817if test "x$ac_cv_type_size_t" = xyes; then : 5818 5819else 5820 5821cat >>confdefs.h <<_ACEOF 5822#define size_t unsigned int 5823_ACEOF 5824 5825fi 5826 5827 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 5829$as_echo_n "checking for stdint.h... " >&6; } 5830if ${gl_cv_header_stdint_h+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5834/* end confdefs.h. */ 5835#include <sys/types.h> 5836 #include <stdint.h> 5837int 5838main () 5839{ 5840uintmax_t i = (uintmax_t) -1; return !i; 5841 ; 5842 return 0; 5843} 5844_ACEOF 5845if ac_fn_c_try_compile "$LINENO"; then : 5846 gl_cv_header_stdint_h=yes 5847else 5848 gl_cv_header_stdint_h=no 5849fi 5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 5853$as_echo "$gl_cv_header_stdint_h" >&6; } 5854 if test $gl_cv_header_stdint_h = yes; then 5855 5856cat >>confdefs.h <<_ACEOF 5857#define HAVE_STDINT_H_WITH_UINTMAX 1 5858_ACEOF 5859 5860 fi 5861 5862# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5863# for constant arguments. Useless! 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 5865$as_echo_n "checking for working alloca.h... " >&6; } 5866if ${ac_cv_working_alloca_h+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871#include <alloca.h> 5872int 5873main () 5874{ 5875char *p = (char *) alloca (2 * sizeof (int)); 5876 if (p) return 0; 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_link "$LINENO"; then : 5882 ac_cv_working_alloca_h=yes 5883else 5884 ac_cv_working_alloca_h=no 5885fi 5886rm -f core conftest.err conftest.$ac_objext \ 5887 conftest$ac_exeext conftest.$ac_ext 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 5890$as_echo "$ac_cv_working_alloca_h" >&6; } 5891if test $ac_cv_working_alloca_h = yes; then 5892 5893$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 5894 5895fi 5896 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 5898$as_echo_n "checking for alloca... " >&6; } 5899if ${ac_cv_func_alloca_works+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904#ifdef __GNUC__ 5905# define alloca __builtin_alloca 5906#else 5907# ifdef _MSC_VER 5908# include <malloc.h> 5909# define alloca _alloca 5910# else 5911# ifdef HAVE_ALLOCA_H 5912# include <alloca.h> 5913# else 5914# ifdef _AIX 5915 #pragma alloca 5916# else 5917# ifndef alloca /* predefined by HP cc +Olibcalls */ 5918void *alloca (size_t); 5919# endif 5920# endif 5921# endif 5922# endif 5923#endif 5924 5925int 5926main () 5927{ 5928char *p = (char *) alloca (1); 5929 if (p) return 0; 5930 ; 5931 return 0; 5932} 5933_ACEOF 5934if ac_fn_c_try_link "$LINENO"; then : 5935 ac_cv_func_alloca_works=yes 5936else 5937 ac_cv_func_alloca_works=no 5938fi 5939rm -f core conftest.err conftest.$ac_objext \ 5940 conftest$ac_exeext conftest.$ac_ext 5941fi 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 5943$as_echo "$ac_cv_func_alloca_works" >&6; } 5944 5945if test $ac_cv_func_alloca_works = yes; then 5946 5947$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 5948 5949else 5950 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5951# that cause trouble. Some versions do not even contain alloca or 5952# contain a buggy version. If you still want to use their alloca, 5953# use ar to extract alloca.o from them instead of compiling alloca.c. 5954 5955ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5956 5957$as_echo "#define C_ALLOCA 1" >>confdefs.h 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 5961$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5962if ${ac_cv_os_cray+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967#if defined CRAY && ! defined CRAY2 5968webecray 5969#else 5970wenotbecray 5971#endif 5972 5973_ACEOF 5974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5975 $EGREP "webecray" >/dev/null 2>&1; then : 5976 ac_cv_os_cray=yes 5977else 5978 ac_cv_os_cray=no 5979fi 5980rm -f conftest* 5981 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 5984$as_echo "$ac_cv_os_cray" >&6; } 5985if test $ac_cv_os_cray = yes; then 5986 for ac_func in _getb67 GETB67 getb67; do 5987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5989if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5990 5991cat >>confdefs.h <<_ACEOF 5992#define CRAY_STACKSEG_END $ac_func 5993_ACEOF 5994 5995 break 5996fi 5997 5998 done 5999fi 6000 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6002$as_echo_n "checking stack direction for C alloca... " >&6; } 6003if ${ac_cv_c_stack_direction+:} false; then : 6004 $as_echo_n "(cached) " >&6 6005else 6006 if test "$cross_compiling" = yes; then : 6007 ac_cv_c_stack_direction=0 6008else 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011$ac_includes_default 6012int 6013find_stack_direction (int *addr, int depth) 6014{ 6015 int dir, dummy = 0; 6016 if (! addr) 6017 addr = &dummy; 6018 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 6019 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 6020 return dir + dummy; 6021} 6022 6023int 6024main (int argc, char **argv) 6025{ 6026 return find_stack_direction (0, argc + !argv + 20) < 0; 6027} 6028_ACEOF 6029if ac_fn_c_try_run "$LINENO"; then : 6030 ac_cv_c_stack_direction=1 6031else 6032 ac_cv_c_stack_direction=-1 6033fi 6034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6035 conftest.$ac_objext conftest.beam conftest.$ac_ext 6036fi 6037 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 6040$as_echo "$ac_cv_c_stack_direction" >&6; } 6041cat >>confdefs.h <<_ACEOF 6042#define STACK_DIRECTION $ac_cv_c_stack_direction 6043_ACEOF 6044 6045 6046fi 6047 6048 6049 6050 6051 for ac_header in $ac_header_list 6052do : 6053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6054ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6055" 6056if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6057 cat >>confdefs.h <<_ACEOF 6058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6059_ACEOF 6060 6061fi 6062 6063done 6064 6065 6066 6067 6068 6069 6070 6071 6072for ac_func in getpagesize 6073do : 6074 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 6075if test "x$ac_cv_func_getpagesize" = xyes; then : 6076 cat >>confdefs.h <<_ACEOF 6077#define HAVE_GETPAGESIZE 1 6078_ACEOF 6079 6080fi 6081done 6082 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 6084$as_echo_n "checking for working mmap... " >&6; } 6085if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 if test "$cross_compiling" = yes; then : 6089 ac_cv_func_mmap_fixed_mapped=no 6090else 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093$ac_includes_default 6094/* malloc might have been renamed as rpl_malloc. */ 6095#undef malloc 6096 6097/* Thanks to Mike Haertel and Jim Avera for this test. 6098 Here is a matrix of mmap possibilities: 6099 mmap private not fixed 6100 mmap private fixed at somewhere currently unmapped 6101 mmap private fixed at somewhere already mapped 6102 mmap shared not fixed 6103 mmap shared fixed at somewhere currently unmapped 6104 mmap shared fixed at somewhere already mapped 6105 For private mappings, we should verify that changes cannot be read() 6106 back from the file, nor mmap's back from the file at a different 6107 address. (There have been systems where private was not correctly 6108 implemented like the infamous i386 svr4.0, and systems where the 6109 VM page cache was not coherent with the file system buffer cache 6110 like early versions of FreeBSD and possibly contemporary NetBSD.) 6111 For shared mappings, we should conversely verify that changes get 6112 propagated back to all the places they're supposed to be. 6113 6114 Grep wants private fixed already mapped. 6115 The main things grep needs to know about mmap are: 6116 * does it exist and is it safe to write into the mmap'd area 6117 * how to use it (BSD variants) */ 6118 6119#include <fcntl.h> 6120#include <sys/mman.h> 6121 6122#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6123char *malloc (); 6124#endif 6125 6126/* This mess was copied from the GNU getpagesize.h. */ 6127#ifndef HAVE_GETPAGESIZE 6128# ifdef _SC_PAGESIZE 6129# define getpagesize() sysconf(_SC_PAGESIZE) 6130# else /* no _SC_PAGESIZE */ 6131# ifdef HAVE_SYS_PARAM_H 6132# include <sys/param.h> 6133# ifdef EXEC_PAGESIZE 6134# define getpagesize() EXEC_PAGESIZE 6135# else /* no EXEC_PAGESIZE */ 6136# ifdef NBPG 6137# define getpagesize() NBPG * CLSIZE 6138# ifndef CLSIZE 6139# define CLSIZE 1 6140# endif /* no CLSIZE */ 6141# else /* no NBPG */ 6142# ifdef NBPC 6143# define getpagesize() NBPC 6144# else /* no NBPC */ 6145# ifdef PAGESIZE 6146# define getpagesize() PAGESIZE 6147# endif /* PAGESIZE */ 6148# endif /* no NBPC */ 6149# endif /* no NBPG */ 6150# endif /* no EXEC_PAGESIZE */ 6151# else /* no HAVE_SYS_PARAM_H */ 6152# define getpagesize() 8192 /* punt totally */ 6153# endif /* no HAVE_SYS_PARAM_H */ 6154# endif /* no _SC_PAGESIZE */ 6155 6156#endif /* no HAVE_GETPAGESIZE */ 6157 6158int 6159main () 6160{ 6161 char *data, *data2, *data3; 6162 const char *cdata2; 6163 int i, pagesize; 6164 int fd, fd2; 6165 6166 pagesize = getpagesize (); 6167 6168 /* First, make a file with some known garbage in it. */ 6169 data = (char *) malloc (pagesize); 6170 if (!data) 6171 return 1; 6172 for (i = 0; i < pagesize; ++i) 6173 *(data + i) = rand (); 6174 umask (0); 6175 fd = creat ("conftest.mmap", 0600); 6176 if (fd < 0) 6177 return 2; 6178 if (write (fd, data, pagesize) != pagesize) 6179 return 3; 6180 close (fd); 6181 6182 /* Next, check that the tail of a page is zero-filled. File must have 6183 non-zero length, otherwise we risk SIGBUS for entire page. */ 6184 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 6185 if (fd2 < 0) 6186 return 4; 6187 cdata2 = ""; 6188 if (write (fd2, cdata2, 1) != 1) 6189 return 5; 6190 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 6191 if (data2 == MAP_FAILED) 6192 return 6; 6193 for (i = 0; i < pagesize; ++i) 6194 if (*(data2 + i)) 6195 return 7; 6196 close (fd2); 6197 if (munmap (data2, pagesize)) 6198 return 8; 6199 6200 /* Next, try to mmap the file at a fixed address which already has 6201 something else allocated at it. If we can, also make sure that 6202 we see the same garbage. */ 6203 fd = open ("conftest.mmap", O_RDWR); 6204 if (fd < 0) 6205 return 9; 6206 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6207 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6208 return 10; 6209 for (i = 0; i < pagesize; ++i) 6210 if (*(data + i) != *(data2 + i)) 6211 return 11; 6212 6213 /* Finally, make sure that changes to the mapped area do not 6214 percolate back to the file as seen by read(). (This is a bug on 6215 some variants of i386 svr4.0.) */ 6216 for (i = 0; i < pagesize; ++i) 6217 *(data2 + i) = *(data2 + i) + 1; 6218 data3 = (char *) malloc (pagesize); 6219 if (!data3) 6220 return 12; 6221 if (read (fd, data3, pagesize) != pagesize) 6222 return 13; 6223 for (i = 0; i < pagesize; ++i) 6224 if (*(data + i) != *(data3 + i)) 6225 return 14; 6226 close (fd); 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_c_try_run "$LINENO"; then : 6231 ac_cv_func_mmap_fixed_mapped=yes 6232else 6233 ac_cv_func_mmap_fixed_mapped=no 6234fi 6235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6236 conftest.$ac_objext conftest.beam conftest.$ac_ext 6237fi 6238 6239fi 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 6241$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 6242if test $ac_cv_func_mmap_fixed_mapped = yes; then 6243 6244$as_echo "#define HAVE_MMAP 1" >>confdefs.h 6245 6246fi 6247rm -f conftest.mmap conftest.txt 6248 6249 6250 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 6252$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 6253if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 6257 gt_cv_int_divbyzero_sigfpe= 6258 case "$host_os" in 6259 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 6260 # On Mac OS X 10.2 or newer, just assume the same as when cross- 6261 # compiling. If we were to perform the real test, 1 Crash Report 6262 # dialog window would pop up. 6263 case "$host_cpu" in 6264 i[34567]86 | x86_64) 6265 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 6266 esac 6267 ;; 6268 esac 6269 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 6270 if test "$cross_compiling" = yes; then : 6271 6272 # Guess based on the CPU. 6273 case "$host_cpu" in 6274 alpha* | i[34567]86 | x86_64 | m68k | s390*) 6275 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6276 *) 6277 gt_cv_int_divbyzero_sigfpe="guessing no";; 6278 esac 6279 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283 6284#include <stdlib.h> 6285#include <signal.h> 6286 6287static void 6288sigfpe_handler (int sig) 6289{ 6290 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6291 exit (sig != SIGFPE); 6292} 6293 6294int x = 1; 6295int y = 0; 6296int z; 6297int nan; 6298 6299int main () 6300{ 6301 signal (SIGFPE, sigfpe_handler); 6302/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6303#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6304 signal (SIGTRAP, sigfpe_handler); 6305#endif 6306/* Linux/SPARC yields signal SIGILL. */ 6307#if defined (__sparc__) && defined (__linux__) 6308 signal (SIGILL, sigfpe_handler); 6309#endif 6310 6311 z = x / y; 6312 nan = y / y; 6313 exit (2); 6314} 6315 6316_ACEOF 6317if ac_fn_c_try_run "$LINENO"; then : 6318 gt_cv_int_divbyzero_sigfpe=yes 6319else 6320 gt_cv_int_divbyzero_sigfpe=no 6321fi 6322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6323 conftest.$ac_objext conftest.beam conftest.$ac_ext 6324fi 6325 6326 fi 6327 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 6330$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 6331 case "$gt_cv_int_divbyzero_sigfpe" in 6332 *yes) value=1;; 6333 *) value=0;; 6334 esac 6335 6336cat >>confdefs.h <<_ACEOF 6337#define INTDIV0_RAISES_SIGFPE $value 6338_ACEOF 6339 6340 6341 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 6343$as_echo_n "checking for inttypes.h... " >&6; } 6344if ${gl_cv_header_inttypes_h+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349 6350#include <sys/types.h> 6351#include <inttypes.h> 6352 6353int 6354main () 6355{ 6356uintmax_t i = (uintmax_t) -1; return !i; 6357 ; 6358 return 0; 6359} 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO"; then : 6362 gl_cv_header_inttypes_h=yes 6363else 6364 gl_cv_header_inttypes_h=no 6365fi 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367fi 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 6369$as_echo "$gl_cv_header_inttypes_h" >&6; } 6370 if test $gl_cv_header_inttypes_h = yes; then 6371 6372cat >>confdefs.h <<_ACEOF 6373#define HAVE_INTTYPES_H_WITH_UINTMAX 1 6374_ACEOF 6375 6376 fi 6377 6378 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6380$as_echo_n "checking for unsigned long long int... " >&6; } 6381if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 ac_cv_type_unsigned_long_long_int=yes 6385 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6387/* end confdefs.h. */ 6388 6389 /* For now, do not test the preprocessor; as of 2007 there are too many 6390 implementations with broken preprocessors. Perhaps this can 6391 be revisited in 2012. In the meantime, code should not expect 6392 #if to work with literals wider than 32 bits. */ 6393 /* Test literals. */ 6394 long long int ll = 9223372036854775807ll; 6395 long long int nll = -9223372036854775807LL; 6396 unsigned long long int ull = 18446744073709551615ULL; 6397 /* Test constant expressions. */ 6398 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6399 ? 1 : -1)]; 6400 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6401 ? 1 : -1)]; 6402 int i = 63; 6403int 6404main () 6405{ 6406/* Test availability of runtime routines for shift and division. */ 6407 long long int llmax = 9223372036854775807ll; 6408 unsigned long long int ullmax = 18446744073709551615ull; 6409 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6410 | (llmax / ll) | (llmax % ll) 6411 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6412 | (ullmax / ull) | (ullmax % ull)); 6413 ; 6414 return 0; 6415} 6416 6417_ACEOF 6418if ac_fn_c_try_link "$LINENO"; then : 6419 6420else 6421 ac_cv_type_unsigned_long_long_int=no 6422fi 6423rm -f core conftest.err conftest.$ac_objext \ 6424 conftest$ac_exeext conftest.$ac_ext 6425 fi 6426fi 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6428$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6429 if test $ac_cv_type_unsigned_long_long_int = yes; then 6430 6431$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6432 6433 fi 6434 6435 6436 6437 6438 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 6439 6440 test $ac_cv_type_unsigned_long_long_int = yes \ 6441 && ac_type='unsigned long long' \ 6442 || ac_type='unsigned long' 6443 6444cat >>confdefs.h <<_ACEOF 6445#define uintmax_t $ac_type 6446_ACEOF 6447 6448 else 6449 6450$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6451 6452 fi 6453 6454 6455 for ac_header in inttypes.h 6456do : 6457 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 6458if test "x$ac_cv_header_inttypes_h" = xyes; then : 6459 cat >>confdefs.h <<_ACEOF 6460#define HAVE_INTTYPES_H 1 6461_ACEOF 6462 6463fi 6464 6465done 6466 6467 if test $ac_cv_header_inttypes_h = yes; then 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 6469$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 6470if ${gt_cv_inttypes_pri_broken+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476 6477#include <inttypes.h> 6478#ifdef PRId32 6479char *p = PRId32; 6480#endif 6481 6482int 6483main () 6484{ 6485 6486 ; 6487 return 0; 6488} 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO"; then : 6491 gt_cv_inttypes_pri_broken=no 6492else 6493 gt_cv_inttypes_pri_broken=yes 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6496 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 6499$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 6500 fi 6501 if test "$gt_cv_inttypes_pri_broken" = yes; then 6502 6503cat >>confdefs.h <<_ACEOF 6504#define PRI_MACROS_BROKEN 1 6505_ACEOF 6506 6507 PRI_MACROS_BROKEN=1 6508 else 6509 PRI_MACROS_BROKEN=0 6510 fi 6511 6512 6513 6514 6515 6516 6517 6518 # Check whether --enable-threads was given. 6519if test "${enable_threads+set}" = set; then : 6520 enableval=$enable_threads; gl_use_threads=$enableval 6521else 6522 if test -n "$gl_use_threads_default"; then 6523 gl_use_threads="$gl_use_threads_default" 6524 else 6525 case "$host_os" in 6526 osf*) gl_use_threads=no ;; 6527 cygwin*) 6528 case `uname -r` in 6529 1.[0-5].*) gl_use_threads=no ;; 6530 *) gl_use_threads=yes ;; 6531 esac 6532 ;; 6533 *) gl_use_threads=yes ;; 6534 esac 6535 fi 6536 6537fi 6538 6539 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 6540 # For using <pthread.h>: 6541 case "$host_os" in 6542 osf*) 6543 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 6544 # groks <pthread.h>. cc also understands the flag -pthread, but 6545 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 6546 # 2. putting a flag into CPPFLAGS that has an effect on the linker 6547 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 6548 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 6549 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 6550 ;; 6551 esac 6552 # Some systems optimize for single-threaded programs by default, and 6553 # need special flags to disable these optimizations. For example, the 6554 # definition of 'errno' in <errno.h>. 6555 case "$host_os" in 6556 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 6557 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 6558 esac 6559 fi 6560 6561 6562 6563 6564 6565 if test "X$prefix" = "XNONE"; then 6566 acl_final_prefix="$ac_default_prefix" 6567 else 6568 acl_final_prefix="$prefix" 6569 fi 6570 if test "X$exec_prefix" = "XNONE"; then 6571 acl_final_exec_prefix='${prefix}' 6572 else 6573 acl_final_exec_prefix="$exec_prefix" 6574 fi 6575 acl_save_prefix="$prefix" 6576 prefix="$acl_final_prefix" 6577 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6578 prefix="$acl_save_prefix" 6579 6580 6581 6582# Check whether --with-gnu-ld was given. 6583if test "${with_gnu_ld+set}" = set; then : 6584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6585else 6586 with_gnu_ld=no 6587fi 6588 6589# Prepare PATH_SEPARATOR. 6590# The user is always right. 6591if test "${PATH_SEPARATOR+set}" != set; then 6592 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 6593 # contains only /bin. Note that ksh looks also at the FPATH variable, 6594 # so we have to set that as well for the test. 6595 PATH_SEPARATOR=: 6596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6597 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6598 || PATH_SEPARATOR=';' 6599 } 6600fi 6601 6602ac_prog=ld 6603if test "$GCC" = yes; then 6604 # Check if gcc -print-prog-name=ld gives a path. 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6606$as_echo_n "checking for ld used by $CC... " >&6; } 6607 case $host in 6608 *-*-mingw*) 6609 # gcc leaves a trailing carriage return which upsets mingw 6610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6611 *) 6612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6613 esac 6614 case $ac_prog in 6615 # Accept absolute paths. 6616 [\\/]* | ?:[\\/]*) 6617 re_direlt='/[^/][^/]*/\.\./' 6618 # Canonicalize the pathname of ld 6619 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 6620 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 6621 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6622 done 6623 test -z "$LD" && LD="$ac_prog" 6624 ;; 6625 "") 6626 # If it fails, then pretend we aren't using GCC. 6627 ac_prog=ld 6628 ;; 6629 *) 6630 # If it is relative, then search for the first ld in PATH. 6631 with_gnu_ld=unknown 6632 ;; 6633 esac 6634elif test "$with_gnu_ld" = yes; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6636$as_echo_n "checking for GNU ld... " >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6639$as_echo_n "checking for non-GNU ld... " >&6; } 6640fi 6641if ${acl_cv_path_LD+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 if test -z "$LD"; then 6645 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6646 for ac_dir in $PATH; do 6647 IFS="$acl_save_ifs" 6648 test -z "$ac_dir" && ac_dir=. 6649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6650 acl_cv_path_LD="$ac_dir/$ac_prog" 6651 # Check to see if the program is GNU ld. I'd rather use --version, 6652 # but apparently some variants of GNU ld only accept -v. 6653 # Break only if it was the GNU/non-GNU ld that we prefer. 6654 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 6655 *GNU* | *'with BFD'*) 6656 test "$with_gnu_ld" != no && break 6657 ;; 6658 *) 6659 test "$with_gnu_ld" != yes && break 6660 ;; 6661 esac 6662 fi 6663 done 6664 IFS="$acl_save_ifs" 6665else 6666 acl_cv_path_LD="$LD" # Let the user override the test with a path. 6667fi 6668fi 6669 6670LD="$acl_cv_path_LD" 6671if test -n "$LD"; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6673$as_echo "$LD" >&6; } 6674else 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6680$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6681if ${acl_cv_prog_gnu_ld+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6685case `$LD -v 2>&1 </dev/null` in 6686*GNU* | *'with BFD'*) 6687 acl_cv_prog_gnu_ld=yes 6688 ;; 6689*) 6690 acl_cv_prog_gnu_ld=no 6691 ;; 6692esac 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 6695$as_echo "$acl_cv_prog_gnu_ld" >&6; } 6696with_gnu_ld=$acl_cv_prog_gnu_ld 6697 6698 6699 6700 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 6702$as_echo_n "checking for shared library run path origin... " >&6; } 6703if ${acl_cv_rpath+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 6707 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 6708 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 6709 . ./conftest.sh 6710 rm -f ./conftest.sh 6711 acl_cv_rpath=done 6712 6713fi 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 6715$as_echo "$acl_cv_rpath" >&6; } 6716 wl="$acl_cv_wl" 6717 acl_libext="$acl_cv_libext" 6718 acl_shlibext="$acl_cv_shlibext" 6719 acl_libname_spec="$acl_cv_libname_spec" 6720 acl_library_names_spec="$acl_cv_library_names_spec" 6721 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 6722 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 6723 acl_hardcode_direct="$acl_cv_hardcode_direct" 6724 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 6725 # Check whether --enable-rpath was given. 6726if test "${enable_rpath+set}" = set; then : 6727 enableval=$enable_rpath; : 6728else 6729 enable_rpath=yes 6730fi 6731 6732 6733 6734 6735 acl_libdirstem=lib 6736 acl_libdirstem2= 6737 case "$host_os" in 6738 solaris*) 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 6740$as_echo_n "checking for 64-bit host... " >&6; } 6741if ${gl_cv_solaris_64bit+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746 6747#ifdef _LP64 6748sixtyfour bits 6749#endif 6750 6751_ACEOF 6752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6753 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 6754 gl_cv_solaris_64bit=yes 6755else 6756 gl_cv_solaris_64bit=no 6757fi 6758rm -f conftest* 6759 6760 6761fi 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 6763$as_echo "$gl_cv_solaris_64bit" >&6; } 6764 if test $gl_cv_solaris_64bit = yes; then 6765 acl_libdirstem=lib/64 6766 case "$host_cpu" in 6767 sparc*) acl_libdirstem2=lib/sparcv9 ;; 6768 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 6769 esac 6770 fi 6771 ;; 6772 *) 6773 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 6774 if test -n "$searchpath"; then 6775 acl_save_IFS="${IFS= }"; IFS=":" 6776 for searchdir in $searchpath; do 6777 if test -d "$searchdir"; then 6778 case "$searchdir" in 6779 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 6780 */../ | */.. ) 6781 # Better ignore directories of this form. They are misleading. 6782 ;; 6783 *) searchdir=`cd "$searchdir" && pwd` 6784 case "$searchdir" in 6785 */lib64 ) acl_libdirstem=lib64 ;; 6786 esac ;; 6787 esac 6788 fi 6789 done 6790 IFS="$acl_save_IFS" 6791 fi 6792 ;; 6793 esac 6794 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 6795 6796 6797 6798 gl_threads_api=none 6799 LIBTHREAD= 6800 LTLIBTHREAD= 6801 LIBMULTITHREAD= 6802 LTLIBMULTITHREAD= 6803 if test "$gl_use_threads" != no; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 6805$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 6806if ${gl_cv_have_weak+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 gl_cv_have_weak=no 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812extern void xyzzy (); 6813#pragma weak xyzzy 6814int 6815main () 6816{ 6817xyzzy(); 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_link "$LINENO"; then : 6823 gl_cv_have_weak=maybe 6824fi 6825rm -f core conftest.err conftest.$ac_objext \ 6826 conftest$ac_exeext conftest.$ac_ext 6827 if test $gl_cv_have_weak = maybe; then 6828 if test "$cross_compiling" = yes; then : 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831#ifdef __ELF__ 6832 Extensible Linking Format 6833 #endif 6834 6835_ACEOF 6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6837 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 6838 gl_cv_have_weak="guessing yes" 6839else 6840 gl_cv_have_weak="guessing no" 6841fi 6842rm -f conftest* 6843 6844 6845else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848 6849#include <stdio.h> 6850#pragma weak fputs 6851int main () 6852{ 6853 return (fputs == NULL); 6854} 6855_ACEOF 6856if ac_fn_c_try_run "$LINENO"; then : 6857 gl_cv_have_weak=yes 6858else 6859 gl_cv_have_weak=no 6860fi 6861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6862 conftest.$ac_objext conftest.beam conftest.$ac_ext 6863fi 6864 6865 fi 6866 6867fi 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 6869$as_echo "$gl_cv_have_weak" >&6; } 6870 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 6871 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 6872 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 6873 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6874if test "x$ac_cv_header_pthread_h" = xyes; then : 6875 gl_have_pthread_h=yes 6876else 6877 gl_have_pthread_h=no 6878fi 6879 6880 6881 if test "$gl_have_pthread_h" = yes; then 6882 # Other possible tests: 6883 # -lpthreads (FSU threads, PCthreads) 6884 # -lgthreads 6885 gl_have_pthread= 6886 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 6887 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 6888 # the second one only in libpthread, and lock.c needs it. 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891#include <pthread.h> 6892int 6893main () 6894{ 6895pthread_mutex_lock((pthread_mutex_t*)0); 6896 pthread_mutexattr_init((pthread_mutexattr_t*)0); 6897 ; 6898 return 0; 6899} 6900_ACEOF 6901if ac_fn_c_try_link "$LINENO"; then : 6902 gl_have_pthread=yes 6903fi 6904rm -f core conftest.err conftest.$ac_objext \ 6905 conftest$ac_exeext conftest.$ac_ext 6906 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 6907 # since it is defined as a macro on OSF/1.) 6908 if test -n "$gl_have_pthread"; then 6909 # The program links fine without libpthread. But it may actually 6910 # need to link with libpthread in order to create multiple threads. 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 6912$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 6913if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 ac_check_lib_save_LIBS=$LIBS 6917LIBS="-lpthread $LIBS" 6918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919/* end confdefs.h. */ 6920 6921/* Override any GCC internal prototype to avoid an error. 6922 Use char because int might match the return type of a GCC 6923 builtin and then its argument prototype would still apply. */ 6924#ifdef __cplusplus 6925extern "C" 6926#endif 6927char pthread_kill (); 6928int 6929main () 6930{ 6931return pthread_kill (); 6932 ; 6933 return 0; 6934} 6935_ACEOF 6936if ac_fn_c_try_link "$LINENO"; then : 6937 ac_cv_lib_pthread_pthread_kill=yes 6938else 6939 ac_cv_lib_pthread_pthread_kill=no 6940fi 6941rm -f core conftest.err conftest.$ac_objext \ 6942 conftest$ac_exeext conftest.$ac_ext 6943LIBS=$ac_check_lib_save_LIBS 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 6946$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 6947if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 6948 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 6949 # On Solaris and HP-UX, most pthread functions exist also in libc. 6950 # Therefore pthread_in_use() needs to actually try to create a 6951 # thread: pthread_create from libc will fail, whereas 6952 # pthread_create will actually create a thread. 6953 case "$host_os" in 6954 solaris* | hpux*) 6955 6956$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 6957 6958 esac 6959 6960fi 6961 6962 else 6963 # Some library is needed. Try libpthread and libc_r. 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 6965$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 6966if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 ac_check_lib_save_LIBS=$LIBS 6970LIBS="-lpthread $LIBS" 6971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973 6974/* Override any GCC internal prototype to avoid an error. 6975 Use char because int might match the return type of a GCC 6976 builtin and then its argument prototype would still apply. */ 6977#ifdef __cplusplus 6978extern "C" 6979#endif 6980char pthread_kill (); 6981int 6982main () 6983{ 6984return pthread_kill (); 6985 ; 6986 return 0; 6987} 6988_ACEOF 6989if ac_fn_c_try_link "$LINENO"; then : 6990 ac_cv_lib_pthread_pthread_kill=yes 6991else 6992 ac_cv_lib_pthread_pthread_kill=no 6993fi 6994rm -f core conftest.err conftest.$ac_objext \ 6995 conftest$ac_exeext conftest.$ac_ext 6996LIBS=$ac_check_lib_save_LIBS 6997fi 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 6999$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 7000if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 7001 gl_have_pthread=yes 7002 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 7003 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 7004fi 7005 7006 if test -z "$gl_have_pthread"; then 7007 # For FreeBSD 4. 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 7009$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 7010if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 ac_check_lib_save_LIBS=$LIBS 7014LIBS="-lc_r $LIBS" 7015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017 7018/* Override any GCC internal prototype to avoid an error. 7019 Use char because int might match the return type of a GCC 7020 builtin and then its argument prototype would still apply. */ 7021#ifdef __cplusplus 7022extern "C" 7023#endif 7024char pthread_kill (); 7025int 7026main () 7027{ 7028return pthread_kill (); 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_link "$LINENO"; then : 7034 ac_cv_lib_c_r_pthread_kill=yes 7035else 7036 ac_cv_lib_c_r_pthread_kill=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext \ 7039 conftest$ac_exeext conftest.$ac_ext 7040LIBS=$ac_check_lib_save_LIBS 7041fi 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 7043$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 7044if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 7045 gl_have_pthread=yes 7046 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 7047 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 7048fi 7049 7050 fi 7051 fi 7052 if test -n "$gl_have_pthread"; then 7053 gl_threads_api=posix 7054 7055$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 7056 7057 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 7058 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 7059 7060$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 7061 7062 LIBTHREAD= 7063 LTLIBTHREAD= 7064 fi 7065 fi 7066 fi 7067 fi 7068 fi 7069 if test -z "$gl_have_pthread"; then 7070 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 7071 gl_have_solaristhread= 7072 gl_save_LIBS="$LIBS" 7073 LIBS="$LIBS -lthread" 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076 7077#include <thread.h> 7078#include <synch.h> 7079 7080int 7081main () 7082{ 7083thr_self(); 7084 ; 7085 return 0; 7086} 7087_ACEOF 7088if ac_fn_c_try_link "$LINENO"; then : 7089 gl_have_solaristhread=yes 7090fi 7091rm -f core conftest.err conftest.$ac_objext \ 7092 conftest$ac_exeext conftest.$ac_ext 7093 LIBS="$gl_save_LIBS" 7094 if test -n "$gl_have_solaristhread"; then 7095 gl_threads_api=solaris 7096 LIBTHREAD=-lthread 7097 LTLIBTHREAD=-lthread 7098 LIBMULTITHREAD="$LIBTHREAD" 7099 LTLIBMULTITHREAD="$LTLIBTHREAD" 7100 7101$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 7102 7103 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 7104 7105$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 7106 7107 LIBTHREAD= 7108 LTLIBTHREAD= 7109 fi 7110 fi 7111 fi 7112 fi 7113 if test "$gl_use_threads" = pth; then 7114 gl_save_CPPFLAGS="$CPPFLAGS" 7115 7116 7117 7118 7119 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 7121$as_echo_n "checking how to link with libpth... " >&6; } 7122if ${ac_cv_libpth_libs+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 7126 7127 7128 7129 7130 7131 7132 7133 use_additional=yes 7134 7135 acl_save_prefix="$prefix" 7136 prefix="$acl_final_prefix" 7137 acl_save_exec_prefix="$exec_prefix" 7138 exec_prefix="$acl_final_exec_prefix" 7139 7140 eval additional_includedir=\"$includedir\" 7141 eval additional_libdir=\"$libdir\" 7142 7143 exec_prefix="$acl_save_exec_prefix" 7144 prefix="$acl_save_prefix" 7145 7146 7147# Check whether --with-libpth-prefix was given. 7148if test "${with_libpth_prefix+set}" = set; then : 7149 withval=$with_libpth_prefix; 7150 if test "X$withval" = "Xno"; then 7151 use_additional=no 7152 else 7153 if test "X$withval" = "X"; then 7154 7155 acl_save_prefix="$prefix" 7156 prefix="$acl_final_prefix" 7157 acl_save_exec_prefix="$exec_prefix" 7158 exec_prefix="$acl_final_exec_prefix" 7159 7160 eval additional_includedir=\"$includedir\" 7161 eval additional_libdir=\"$libdir\" 7162 7163 exec_prefix="$acl_save_exec_prefix" 7164 prefix="$acl_save_prefix" 7165 7166 else 7167 additional_includedir="$withval/include" 7168 additional_libdir="$withval/$acl_libdirstem" 7169 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 7170 && ! test -d "$withval/$acl_libdirstem"; then 7171 additional_libdir="$withval/$acl_libdirstem2" 7172 fi 7173 fi 7174 fi 7175 7176fi 7177 7178 LIBPTH= 7179 LTLIBPTH= 7180 INCPTH= 7181 LIBPTH_PREFIX= 7182 HAVE_LIBPTH= 7183 rpathdirs= 7184 ltrpathdirs= 7185 names_already_handled= 7186 names_next_round='pth ' 7187 while test -n "$names_next_round"; do 7188 names_this_round="$names_next_round" 7189 names_next_round= 7190 for name in $names_this_round; do 7191 already_handled= 7192 for n in $names_already_handled; do 7193 if test "$n" = "$name"; then 7194 already_handled=yes 7195 break 7196 fi 7197 done 7198 if test -z "$already_handled"; then 7199 names_already_handled="$names_already_handled $name" 7200 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 7201 eval value=\"\$HAVE_LIB$uppername\" 7202 if test -n "$value"; then 7203 if test "$value" = yes; then 7204 eval value=\"\$LIB$uppername\" 7205 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 7206 eval value=\"\$LTLIB$uppername\" 7207 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 7208 else 7209 : 7210 fi 7211 else 7212 found_dir= 7213 found_la= 7214 found_so= 7215 found_a= 7216 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 7217 if test -n "$acl_shlibext"; then 7218 shrext=".$acl_shlibext" # typically: shrext=.so 7219 else 7220 shrext= 7221 fi 7222 if test $use_additional = yes; then 7223 dir="$additional_libdir" 7224 if test -n "$acl_shlibext"; then 7225 if test -f "$dir/$libname$shrext"; then 7226 found_dir="$dir" 7227 found_so="$dir/$libname$shrext" 7228 else 7229 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7230 ver=`(cd "$dir" && \ 7231 for f in "$libname$shrext".*; do echo "$f"; done \ 7232 | sed -e "s,^$libname$shrext\\\\.,," \ 7233 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7234 | sed 1q ) 2>/dev/null` 7235 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7236 found_dir="$dir" 7237 found_so="$dir/$libname$shrext.$ver" 7238 fi 7239 else 7240 eval library_names=\"$acl_library_names_spec\" 7241 for f in $library_names; do 7242 if test -f "$dir/$f"; then 7243 found_dir="$dir" 7244 found_so="$dir/$f" 7245 break 7246 fi 7247 done 7248 fi 7249 fi 7250 fi 7251 if test "X$found_dir" = "X"; then 7252 if test -f "$dir/$libname.$acl_libext"; then 7253 found_dir="$dir" 7254 found_a="$dir/$libname.$acl_libext" 7255 fi 7256 fi 7257 if test "X$found_dir" != "X"; then 7258 if test -f "$dir/$libname.la"; then 7259 found_la="$dir/$libname.la" 7260 fi 7261 fi 7262 fi 7263 if test "X$found_dir" = "X"; then 7264 for x in $LDFLAGS $LTLIBPTH; do 7265 7266 acl_save_prefix="$prefix" 7267 prefix="$acl_final_prefix" 7268 acl_save_exec_prefix="$exec_prefix" 7269 exec_prefix="$acl_final_exec_prefix" 7270 eval x=\"$x\" 7271 exec_prefix="$acl_save_exec_prefix" 7272 prefix="$acl_save_prefix" 7273 7274 case "$x" in 7275 -L*) 7276 dir=`echo "X$x" | sed -e 's/^X-L//'` 7277 if test -n "$acl_shlibext"; then 7278 if test -f "$dir/$libname$shrext"; then 7279 found_dir="$dir" 7280 found_so="$dir/$libname$shrext" 7281 else 7282 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7283 ver=`(cd "$dir" && \ 7284 for f in "$libname$shrext".*; do echo "$f"; done \ 7285 | sed -e "s,^$libname$shrext\\\\.,," \ 7286 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7287 | sed 1q ) 2>/dev/null` 7288 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7289 found_dir="$dir" 7290 found_so="$dir/$libname$shrext.$ver" 7291 fi 7292 else 7293 eval library_names=\"$acl_library_names_spec\" 7294 for f in $library_names; do 7295 if test -f "$dir/$f"; then 7296 found_dir="$dir" 7297 found_so="$dir/$f" 7298 break 7299 fi 7300 done 7301 fi 7302 fi 7303 fi 7304 if test "X$found_dir" = "X"; then 7305 if test -f "$dir/$libname.$acl_libext"; then 7306 found_dir="$dir" 7307 found_a="$dir/$libname.$acl_libext" 7308 fi 7309 fi 7310 if test "X$found_dir" != "X"; then 7311 if test -f "$dir/$libname.la"; then 7312 found_la="$dir/$libname.la" 7313 fi 7314 fi 7315 ;; 7316 esac 7317 if test "X$found_dir" != "X"; then 7318 break 7319 fi 7320 done 7321 fi 7322 if test "X$found_dir" != "X"; then 7323 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 7324 if test "X$found_so" != "X"; then 7325 if test "$enable_rpath" = no \ 7326 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 7327 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 7328 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 7329 else 7330 haveit= 7331 for x in $ltrpathdirs; do 7332 if test "X$x" = "X$found_dir"; then 7333 haveit=yes 7334 break 7335 fi 7336 done 7337 if test -z "$haveit"; then 7338 ltrpathdirs="$ltrpathdirs $found_dir" 7339 fi 7340 if test "$acl_hardcode_direct" = yes; then 7341 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 7342 else 7343 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7344 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 7345 haveit= 7346 for x in $rpathdirs; do 7347 if test "X$x" = "X$found_dir"; then 7348 haveit=yes 7349 break 7350 fi 7351 done 7352 if test -z "$haveit"; then 7353 rpathdirs="$rpathdirs $found_dir" 7354 fi 7355 else 7356 haveit= 7357 for x in $LDFLAGS $LIBPTH; do 7358 7359 acl_save_prefix="$prefix" 7360 prefix="$acl_final_prefix" 7361 acl_save_exec_prefix="$exec_prefix" 7362 exec_prefix="$acl_final_exec_prefix" 7363 eval x=\"$x\" 7364 exec_prefix="$acl_save_exec_prefix" 7365 prefix="$acl_save_prefix" 7366 7367 if test "X$x" = "X-L$found_dir"; then 7368 haveit=yes 7369 break 7370 fi 7371 done 7372 if test -z "$haveit"; then 7373 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 7374 fi 7375 if test "$acl_hardcode_minus_L" != no; then 7376 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 7377 else 7378 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 7379 fi 7380 fi 7381 fi 7382 fi 7383 else 7384 if test "X$found_a" != "X"; then 7385 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 7386 else 7387 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 7388 fi 7389 fi 7390 additional_includedir= 7391 case "$found_dir" in 7392 */$acl_libdirstem | */$acl_libdirstem/) 7393 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7394 if test "$name" = 'pth'; then 7395 LIBPTH_PREFIX="$basedir" 7396 fi 7397 additional_includedir="$basedir/include" 7398 ;; 7399 */$acl_libdirstem2 | */$acl_libdirstem2/) 7400 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 7401 if test "$name" = 'pth'; then 7402 LIBPTH_PREFIX="$basedir" 7403 fi 7404 additional_includedir="$basedir/include" 7405 ;; 7406 esac 7407 if test "X$additional_includedir" != "X"; then 7408 if test "X$additional_includedir" != "X/usr/include"; then 7409 haveit= 7410 if test "X$additional_includedir" = "X/usr/local/include"; then 7411 if test -n "$GCC"; then 7412 case $host_os in 7413 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7414 esac 7415 fi 7416 fi 7417 if test -z "$haveit"; then 7418 for x in $CPPFLAGS $INCPTH; do 7419 7420 acl_save_prefix="$prefix" 7421 prefix="$acl_final_prefix" 7422 acl_save_exec_prefix="$exec_prefix" 7423 exec_prefix="$acl_final_exec_prefix" 7424 eval x=\"$x\" 7425 exec_prefix="$acl_save_exec_prefix" 7426 prefix="$acl_save_prefix" 7427 7428 if test "X$x" = "X-I$additional_includedir"; then 7429 haveit=yes 7430 break 7431 fi 7432 done 7433 if test -z "$haveit"; then 7434 if test -d "$additional_includedir"; then 7435 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 7436 fi 7437 fi 7438 fi 7439 fi 7440 fi 7441 if test -n "$found_la"; then 7442 save_libdir="$libdir" 7443 case "$found_la" in 7444 */* | *\\*) . "$found_la" ;; 7445 *) . "./$found_la" ;; 7446 esac 7447 libdir="$save_libdir" 7448 for dep in $dependency_libs; do 7449 case "$dep" in 7450 -L*) 7451 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7452 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 7453 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 7454 haveit= 7455 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 7456 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 7457 if test -n "$GCC"; then 7458 case $host_os in 7459 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7460 esac 7461 fi 7462 fi 7463 if test -z "$haveit"; then 7464 haveit= 7465 for x in $LDFLAGS $LIBPTH; do 7466 7467 acl_save_prefix="$prefix" 7468 prefix="$acl_final_prefix" 7469 acl_save_exec_prefix="$exec_prefix" 7470 exec_prefix="$acl_final_exec_prefix" 7471 eval x=\"$x\" 7472 exec_prefix="$acl_save_exec_prefix" 7473 prefix="$acl_save_prefix" 7474 7475 if test "X$x" = "X-L$additional_libdir"; then 7476 haveit=yes 7477 break 7478 fi 7479 done 7480 if test -z "$haveit"; then 7481 if test -d "$additional_libdir"; then 7482 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 7483 fi 7484 fi 7485 haveit= 7486 for x in $LDFLAGS $LTLIBPTH; do 7487 7488 acl_save_prefix="$prefix" 7489 prefix="$acl_final_prefix" 7490 acl_save_exec_prefix="$exec_prefix" 7491 exec_prefix="$acl_final_exec_prefix" 7492 eval x=\"$x\" 7493 exec_prefix="$acl_save_exec_prefix" 7494 prefix="$acl_save_prefix" 7495 7496 if test "X$x" = "X-L$additional_libdir"; then 7497 haveit=yes 7498 break 7499 fi 7500 done 7501 if test -z "$haveit"; then 7502 if test -d "$additional_libdir"; then 7503 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 7504 fi 7505 fi 7506 fi 7507 fi 7508 ;; 7509 -R*) 7510 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7511 if test "$enable_rpath" != no; then 7512 haveit= 7513 for x in $rpathdirs; do 7514 if test "X$x" = "X$dir"; then 7515 haveit=yes 7516 break 7517 fi 7518 done 7519 if test -z "$haveit"; then 7520 rpathdirs="$rpathdirs $dir" 7521 fi 7522 haveit= 7523 for x in $ltrpathdirs; do 7524 if test "X$x" = "X$dir"; then 7525 haveit=yes 7526 break 7527 fi 7528 done 7529 if test -z "$haveit"; then 7530 ltrpathdirs="$ltrpathdirs $dir" 7531 fi 7532 fi 7533 ;; 7534 -l*) 7535 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7536 ;; 7537 *.la) 7538 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7539 ;; 7540 *) 7541 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 7542 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 7543 ;; 7544 esac 7545 done 7546 fi 7547 else 7548 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 7549 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 7550 fi 7551 fi 7552 fi 7553 done 7554 done 7555 if test "X$rpathdirs" != "X"; then 7556 if test -n "$acl_hardcode_libdir_separator"; then 7557 alldirs= 7558 for found_dir in $rpathdirs; do 7559 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 7560 done 7561 acl_save_libdir="$libdir" 7562 libdir="$alldirs" 7563 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7564 libdir="$acl_save_libdir" 7565 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 7566 else 7567 for found_dir in $rpathdirs; do 7568 acl_save_libdir="$libdir" 7569 libdir="$found_dir" 7570 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7571 libdir="$acl_save_libdir" 7572 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 7573 done 7574 fi 7575 fi 7576 if test "X$ltrpathdirs" != "X"; then 7577 for found_dir in $ltrpathdirs; do 7578 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 7579 done 7580 fi 7581 7582 7583 7584 7585 7586 7587 ac_cv_libpth_libs="$LIBPTH" 7588 ac_cv_libpth_ltlibs="$LTLIBPTH" 7589 ac_cv_libpth_cppflags="$INCPTH" 7590 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 7591 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 7594$as_echo "$ac_cv_libpth_libs" >&6; } 7595 LIBPTH="$ac_cv_libpth_libs" 7596 LTLIBPTH="$ac_cv_libpth_ltlibs" 7597 INCPTH="$ac_cv_libpth_cppflags" 7598 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 7599 7600 for element in $INCPTH; do 7601 haveit= 7602 for x in $CPPFLAGS; do 7603 7604 acl_save_prefix="$prefix" 7605 prefix="$acl_final_prefix" 7606 acl_save_exec_prefix="$exec_prefix" 7607 exec_prefix="$acl_final_exec_prefix" 7608 eval x=\"$x\" 7609 exec_prefix="$acl_save_exec_prefix" 7610 prefix="$acl_save_prefix" 7611 7612 if test "X$x" = "X$element"; then 7613 haveit=yes 7614 break 7615 fi 7616 done 7617 if test -z "$haveit"; then 7618 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7619 fi 7620 done 7621 7622 7623 7624 7625 HAVE_LIBPTH=yes 7626 7627 7628 7629 gl_have_pth= 7630 gl_save_LIBS="$LIBS" 7631 LIBS="$LIBS $LIBPTH" 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634#include <pth.h> 7635int 7636main () 7637{ 7638pth_self(); 7639 ; 7640 return 0; 7641} 7642_ACEOF 7643if ac_fn_c_try_link "$LINENO"; then : 7644 gl_have_pth=yes 7645fi 7646rm -f core conftest.err conftest.$ac_objext \ 7647 conftest$ac_exeext conftest.$ac_ext 7648 LIBS="$gl_save_LIBS" 7649 if test -n "$gl_have_pth"; then 7650 gl_threads_api=pth 7651 LIBTHREAD="$LIBPTH" 7652 LTLIBTHREAD="$LTLIBPTH" 7653 LIBMULTITHREAD="$LIBTHREAD" 7654 LTLIBMULTITHREAD="$LTLIBTHREAD" 7655 7656$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 7657 7658 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 7659 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 7660 7661$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 7662 7663 LIBTHREAD= 7664 LTLIBTHREAD= 7665 fi 7666 fi 7667 else 7668 CPPFLAGS="$gl_save_CPPFLAGS" 7669 fi 7670 fi 7671 if test -z "$gl_have_pthread"; then 7672 case "$gl_use_threads" in 7673 yes | windows | win32) # The 'win32' is for backward compatibility. 7674 if { case "$host_os" in 7675 mingw*) true;; 7676 *) false;; 7677 esac 7678 }; then 7679 gl_threads_api=windows 7680 7681$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h 7682 7683 fi 7684 ;; 7685 esac 7686 fi 7687 fi 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 7689$as_echo_n "checking for multithread API to use... " >&6; } 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 7691$as_echo "$gl_threads_api" >&6; } 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 if test "$gl_threads_api" = posix; then 7704 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 7705 # pthread_rwlock_* functions. 7706 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 7707" 7708if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 7709 7710$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 7711 7712fi 7713 7714 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717 7718 #include <pthread.h> 7719int 7720main () 7721{ 7722 7723#if __FreeBSD__ == 4 7724error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 7725#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 7726 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 7727error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 7728#else 7729int x = (int)PTHREAD_MUTEX_RECURSIVE; 7730return !x; 7731#endif 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO"; then : 7738 7739$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 7740 7741fi 7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7743 fi 7744 : 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 use_additional=yes 7758 7759 acl_save_prefix="$prefix" 7760 prefix="$acl_final_prefix" 7761 acl_save_exec_prefix="$exec_prefix" 7762 exec_prefix="$acl_final_exec_prefix" 7763 7764 eval additional_includedir=\"$includedir\" 7765 eval additional_libdir=\"$libdir\" 7766 7767 exec_prefix="$acl_save_exec_prefix" 7768 prefix="$acl_save_prefix" 7769 7770 7771# Check whether --with-libiconv-prefix was given. 7772if test "${with_libiconv_prefix+set}" = set; then : 7773 withval=$with_libiconv_prefix; 7774 if test "X$withval" = "Xno"; then 7775 use_additional=no 7776 else 7777 if test "X$withval" = "X"; then 7778 7779 acl_save_prefix="$prefix" 7780 prefix="$acl_final_prefix" 7781 acl_save_exec_prefix="$exec_prefix" 7782 exec_prefix="$acl_final_exec_prefix" 7783 7784 eval additional_includedir=\"$includedir\" 7785 eval additional_libdir=\"$libdir\" 7786 7787 exec_prefix="$acl_save_exec_prefix" 7788 prefix="$acl_save_prefix" 7789 7790 else 7791 additional_includedir="$withval/include" 7792 additional_libdir="$withval/$acl_libdirstem" 7793 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 7794 && ! test -d "$withval/$acl_libdirstem"; then 7795 additional_libdir="$withval/$acl_libdirstem2" 7796 fi 7797 fi 7798 fi 7799 7800fi 7801 7802 LIBICONV= 7803 LTLIBICONV= 7804 INCICONV= 7805 LIBICONV_PREFIX= 7806 HAVE_LIBICONV= 7807 rpathdirs= 7808 ltrpathdirs= 7809 names_already_handled= 7810 names_next_round='iconv ' 7811 while test -n "$names_next_round"; do 7812 names_this_round="$names_next_round" 7813 names_next_round= 7814 for name in $names_this_round; do 7815 already_handled= 7816 for n in $names_already_handled; do 7817 if test "$n" = "$name"; then 7818 already_handled=yes 7819 break 7820 fi 7821 done 7822 if test -z "$already_handled"; then 7823 names_already_handled="$names_already_handled $name" 7824 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 7825 eval value=\"\$HAVE_LIB$uppername\" 7826 if test -n "$value"; then 7827 if test "$value" = yes; then 7828 eval value=\"\$LIB$uppername\" 7829 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7830 eval value=\"\$LTLIB$uppername\" 7831 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7832 else 7833 : 7834 fi 7835 else 7836 found_dir= 7837 found_la= 7838 found_so= 7839 found_a= 7840 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 7841 if test -n "$acl_shlibext"; then 7842 shrext=".$acl_shlibext" # typically: shrext=.so 7843 else 7844 shrext= 7845 fi 7846 if test $use_additional = yes; then 7847 dir="$additional_libdir" 7848 if test -n "$acl_shlibext"; then 7849 if test -f "$dir/$libname$shrext"; then 7850 found_dir="$dir" 7851 found_so="$dir/$libname$shrext" 7852 else 7853 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7854 ver=`(cd "$dir" && \ 7855 for f in "$libname$shrext".*; do echo "$f"; done \ 7856 | sed -e "s,^$libname$shrext\\\\.,," \ 7857 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7858 | sed 1q ) 2>/dev/null` 7859 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7860 found_dir="$dir" 7861 found_so="$dir/$libname$shrext.$ver" 7862 fi 7863 else 7864 eval library_names=\"$acl_library_names_spec\" 7865 for f in $library_names; do 7866 if test -f "$dir/$f"; then 7867 found_dir="$dir" 7868 found_so="$dir/$f" 7869 break 7870 fi 7871 done 7872 fi 7873 fi 7874 fi 7875 if test "X$found_dir" = "X"; then 7876 if test -f "$dir/$libname.$acl_libext"; then 7877 found_dir="$dir" 7878 found_a="$dir/$libname.$acl_libext" 7879 fi 7880 fi 7881 if test "X$found_dir" != "X"; then 7882 if test -f "$dir/$libname.la"; then 7883 found_la="$dir/$libname.la" 7884 fi 7885 fi 7886 fi 7887 if test "X$found_dir" = "X"; then 7888 for x in $LDFLAGS $LTLIBICONV; do 7889 7890 acl_save_prefix="$prefix" 7891 prefix="$acl_final_prefix" 7892 acl_save_exec_prefix="$exec_prefix" 7893 exec_prefix="$acl_final_exec_prefix" 7894 eval x=\"$x\" 7895 exec_prefix="$acl_save_exec_prefix" 7896 prefix="$acl_save_prefix" 7897 7898 case "$x" in 7899 -L*) 7900 dir=`echo "X$x" | sed -e 's/^X-L//'` 7901 if test -n "$acl_shlibext"; then 7902 if test -f "$dir/$libname$shrext"; then 7903 found_dir="$dir" 7904 found_so="$dir/$libname$shrext" 7905 else 7906 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7907 ver=`(cd "$dir" && \ 7908 for f in "$libname$shrext".*; do echo "$f"; done \ 7909 | sed -e "s,^$libname$shrext\\\\.,," \ 7910 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7911 | sed 1q ) 2>/dev/null` 7912 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7913 found_dir="$dir" 7914 found_so="$dir/$libname$shrext.$ver" 7915 fi 7916 else 7917 eval library_names=\"$acl_library_names_spec\" 7918 for f in $library_names; do 7919 if test -f "$dir/$f"; then 7920 found_dir="$dir" 7921 found_so="$dir/$f" 7922 break 7923 fi 7924 done 7925 fi 7926 fi 7927 fi 7928 if test "X$found_dir" = "X"; then 7929 if test -f "$dir/$libname.$acl_libext"; then 7930 found_dir="$dir" 7931 found_a="$dir/$libname.$acl_libext" 7932 fi 7933 fi 7934 if test "X$found_dir" != "X"; then 7935 if test -f "$dir/$libname.la"; then 7936 found_la="$dir/$libname.la" 7937 fi 7938 fi 7939 ;; 7940 esac 7941 if test "X$found_dir" != "X"; then 7942 break 7943 fi 7944 done 7945 fi 7946 if test "X$found_dir" != "X"; then 7947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7948 if test "X$found_so" != "X"; then 7949 if test "$enable_rpath" = no \ 7950 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 7951 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 7952 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7953 else 7954 haveit= 7955 for x in $ltrpathdirs; do 7956 if test "X$x" = "X$found_dir"; then 7957 haveit=yes 7958 break 7959 fi 7960 done 7961 if test -z "$haveit"; then 7962 ltrpathdirs="$ltrpathdirs $found_dir" 7963 fi 7964 if test "$acl_hardcode_direct" = yes; then 7965 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7966 else 7967 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7968 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7969 haveit= 7970 for x in $rpathdirs; do 7971 if test "X$x" = "X$found_dir"; then 7972 haveit=yes 7973 break 7974 fi 7975 done 7976 if test -z "$haveit"; then 7977 rpathdirs="$rpathdirs $found_dir" 7978 fi 7979 else 7980 haveit= 7981 for x in $LDFLAGS $LIBICONV; do 7982 7983 acl_save_prefix="$prefix" 7984 prefix="$acl_final_prefix" 7985 acl_save_exec_prefix="$exec_prefix" 7986 exec_prefix="$acl_final_exec_prefix" 7987 eval x=\"$x\" 7988 exec_prefix="$acl_save_exec_prefix" 7989 prefix="$acl_save_prefix" 7990 7991 if test "X$x" = "X-L$found_dir"; then 7992 haveit=yes 7993 break 7994 fi 7995 done 7996 if test -z "$haveit"; then 7997 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7998 fi 7999 if test "$acl_hardcode_minus_L" != no; then 8000 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8001 else 8002 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8003 fi 8004 fi 8005 fi 8006 fi 8007 else 8008 if test "X$found_a" != "X"; then 8009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 8010 else 8011 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 8012 fi 8013 fi 8014 additional_includedir= 8015 case "$found_dir" in 8016 */$acl_libdirstem | */$acl_libdirstem/) 8017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 8018 if test "$name" = 'iconv'; then 8019 LIBICONV_PREFIX="$basedir" 8020 fi 8021 additional_includedir="$basedir/include" 8022 ;; 8023 */$acl_libdirstem2 | */$acl_libdirstem2/) 8024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 8025 if test "$name" = 'iconv'; then 8026 LIBICONV_PREFIX="$basedir" 8027 fi 8028 additional_includedir="$basedir/include" 8029 ;; 8030 esac 8031 if test "X$additional_includedir" != "X"; then 8032 if test "X$additional_includedir" != "X/usr/include"; then 8033 haveit= 8034 if test "X$additional_includedir" = "X/usr/local/include"; then 8035 if test -n "$GCC"; then 8036 case $host_os in 8037 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8038 esac 8039 fi 8040 fi 8041 if test -z "$haveit"; then 8042 for x in $CPPFLAGS $INCICONV; do 8043 8044 acl_save_prefix="$prefix" 8045 prefix="$acl_final_prefix" 8046 acl_save_exec_prefix="$exec_prefix" 8047 exec_prefix="$acl_final_exec_prefix" 8048 eval x=\"$x\" 8049 exec_prefix="$acl_save_exec_prefix" 8050 prefix="$acl_save_prefix" 8051 8052 if test "X$x" = "X-I$additional_includedir"; then 8053 haveit=yes 8054 break 8055 fi 8056 done 8057 if test -z "$haveit"; then 8058 if test -d "$additional_includedir"; then 8059 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8060 fi 8061 fi 8062 fi 8063 fi 8064 fi 8065 if test -n "$found_la"; then 8066 save_libdir="$libdir" 8067 case "$found_la" in 8068 */* | *\\*) . "$found_la" ;; 8069 *) . "./$found_la" ;; 8070 esac 8071 libdir="$save_libdir" 8072 for dep in $dependency_libs; do 8073 case "$dep" in 8074 -L*) 8075 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8076 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 8077 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 8078 haveit= 8079 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 8080 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 8081 if test -n "$GCC"; then 8082 case $host_os in 8083 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8084 esac 8085 fi 8086 fi 8087 if test -z "$haveit"; then 8088 haveit= 8089 for x in $LDFLAGS $LIBICONV; do 8090 8091 acl_save_prefix="$prefix" 8092 prefix="$acl_final_prefix" 8093 acl_save_exec_prefix="$exec_prefix" 8094 exec_prefix="$acl_final_exec_prefix" 8095 eval x=\"$x\" 8096 exec_prefix="$acl_save_exec_prefix" 8097 prefix="$acl_save_prefix" 8098 8099 if test "X$x" = "X-L$additional_libdir"; then 8100 haveit=yes 8101 break 8102 fi 8103 done 8104 if test -z "$haveit"; then 8105 if test -d "$additional_libdir"; then 8106 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8107 fi 8108 fi 8109 haveit= 8110 for x in $LDFLAGS $LTLIBICONV; do 8111 8112 acl_save_prefix="$prefix" 8113 prefix="$acl_final_prefix" 8114 acl_save_exec_prefix="$exec_prefix" 8115 exec_prefix="$acl_final_exec_prefix" 8116 eval x=\"$x\" 8117 exec_prefix="$acl_save_exec_prefix" 8118 prefix="$acl_save_prefix" 8119 8120 if test "X$x" = "X-L$additional_libdir"; then 8121 haveit=yes 8122 break 8123 fi 8124 done 8125 if test -z "$haveit"; then 8126 if test -d "$additional_libdir"; then 8127 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8128 fi 8129 fi 8130 fi 8131 fi 8132 ;; 8133 -R*) 8134 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8135 if test "$enable_rpath" != no; then 8136 haveit= 8137 for x in $rpathdirs; do 8138 if test "X$x" = "X$dir"; then 8139 haveit=yes 8140 break 8141 fi 8142 done 8143 if test -z "$haveit"; then 8144 rpathdirs="$rpathdirs $dir" 8145 fi 8146 haveit= 8147 for x in $ltrpathdirs; do 8148 if test "X$x" = "X$dir"; then 8149 haveit=yes 8150 break 8151 fi 8152 done 8153 if test -z "$haveit"; then 8154 ltrpathdirs="$ltrpathdirs $dir" 8155 fi 8156 fi 8157 ;; 8158 -l*) 8159 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8160 ;; 8161 *.la) 8162 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8163 ;; 8164 *) 8165 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8167 ;; 8168 esac 8169 done 8170 fi 8171 else 8172 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8174 fi 8175 fi 8176 fi 8177 done 8178 done 8179 if test "X$rpathdirs" != "X"; then 8180 if test -n "$acl_hardcode_libdir_separator"; then 8181 alldirs= 8182 for found_dir in $rpathdirs; do 8183 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8184 done 8185 acl_save_libdir="$libdir" 8186 libdir="$alldirs" 8187 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8188 libdir="$acl_save_libdir" 8189 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8190 else 8191 for found_dir in $rpathdirs; do 8192 acl_save_libdir="$libdir" 8193 libdir="$found_dir" 8194 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8195 libdir="$acl_save_libdir" 8196 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8197 done 8198 fi 8199 fi 8200 if test "X$ltrpathdirs" != "X"; then 8201 for found_dir in $ltrpathdirs; do 8202 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8203 done 8204 fi 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 am_save_CPPFLAGS="$CPPFLAGS" 8218 8219 for element in $INCICONV; do 8220 haveit= 8221 for x in $CPPFLAGS; do 8222 8223 acl_save_prefix="$prefix" 8224 prefix="$acl_final_prefix" 8225 acl_save_exec_prefix="$exec_prefix" 8226 exec_prefix="$acl_final_exec_prefix" 8227 eval x=\"$x\" 8228 exec_prefix="$acl_save_exec_prefix" 8229 prefix="$acl_save_prefix" 8230 8231 if test "X$x" = "X$element"; then 8232 haveit=yes 8233 break 8234 fi 8235 done 8236 if test -z "$haveit"; then 8237 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8238 fi 8239 done 8240 8241 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 8243$as_echo_n "checking for iconv... " >&6; } 8244if ${am_cv_func_iconv+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 8248 am_cv_func_iconv="no, consider installing GNU libiconv" 8249 am_cv_lib_iconv=no 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252 8253#include <stdlib.h> 8254#include <iconv.h> 8255 8256int 8257main () 8258{ 8259iconv_t cd = iconv_open("",""); 8260 iconv(cd,NULL,NULL,NULL,NULL); 8261 iconv_close(cd); 8262 ; 8263 return 0; 8264} 8265_ACEOF 8266if ac_fn_c_try_link "$LINENO"; then : 8267 am_cv_func_iconv=yes 8268fi 8269rm -f core conftest.err conftest.$ac_objext \ 8270 conftest$ac_exeext conftest.$ac_ext 8271 if test "$am_cv_func_iconv" != yes; then 8272 am_save_LIBS="$LIBS" 8273 LIBS="$LIBS $LIBICONV" 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276 8277#include <stdlib.h> 8278#include <iconv.h> 8279 8280int 8281main () 8282{ 8283iconv_t cd = iconv_open("",""); 8284 iconv(cd,NULL,NULL,NULL,NULL); 8285 iconv_close(cd); 8286 ; 8287 return 0; 8288} 8289_ACEOF 8290if ac_fn_c_try_link "$LINENO"; then : 8291 am_cv_lib_iconv=yes 8292 am_cv_func_iconv=yes 8293fi 8294rm -f core conftest.err conftest.$ac_objext \ 8295 conftest$ac_exeext conftest.$ac_ext 8296 LIBS="$am_save_LIBS" 8297 fi 8298 8299fi 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 8301$as_echo "$am_cv_func_iconv" >&6; } 8302 if test "$am_cv_func_iconv" = yes; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 8304$as_echo_n "checking for working iconv... " >&6; } 8305if ${am_cv_func_iconv_works+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 8309 am_save_LIBS="$LIBS" 8310 if test $am_cv_lib_iconv = yes; then 8311 LIBS="$LIBS $LIBICONV" 8312 fi 8313 if test "$cross_compiling" = yes; then : 8314 8315 case "$host_os" in 8316 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 8317 *) am_cv_func_iconv_works="guessing yes" ;; 8318 esac 8319 8320else 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8322/* end confdefs.h. */ 8323 8324#include <iconv.h> 8325#include <string.h> 8326int main () 8327{ 8328 int result = 0; 8329 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 8330 returns. */ 8331 { 8332 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 8333 if (cd_utf8_to_88591 != (iconv_t)(-1)) 8334 { 8335 static const char input[] = "\342\202\254"; /* EURO SIGN */ 8336 char buf[10]; 8337 const char *inptr = input; 8338 size_t inbytesleft = strlen (input); 8339 char *outptr = buf; 8340 size_t outbytesleft = sizeof (buf); 8341 size_t res = iconv (cd_utf8_to_88591, 8342 (char **) &inptr, &inbytesleft, 8343 &outptr, &outbytesleft); 8344 if (res == 0) 8345 result |= 1; 8346 iconv_close (cd_utf8_to_88591); 8347 } 8348 } 8349 /* Test against Solaris 10 bug: Failures are not distinguishable from 8350 successful returns. */ 8351 { 8352 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 8353 if (cd_ascii_to_88591 != (iconv_t)(-1)) 8354 { 8355 static const char input[] = "\263"; 8356 char buf[10]; 8357 const char *inptr = input; 8358 size_t inbytesleft = strlen (input); 8359 char *outptr = buf; 8360 size_t outbytesleft = sizeof (buf); 8361 size_t res = iconv (cd_ascii_to_88591, 8362 (char **) &inptr, &inbytesleft, 8363 &outptr, &outbytesleft); 8364 if (res == 0) 8365 result |= 2; 8366 iconv_close (cd_ascii_to_88591); 8367 } 8368 } 8369 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 8370 { 8371 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 8372 if (cd_88591_to_utf8 != (iconv_t)(-1)) 8373 { 8374 static const char input[] = "\304"; 8375 static char buf[2] = { (char)0xDE, (char)0xAD }; 8376 const char *inptr = input; 8377 size_t inbytesleft = 1; 8378 char *outptr = buf; 8379 size_t outbytesleft = 1; 8380 size_t res = iconv (cd_88591_to_utf8, 8381 (char **) &inptr, &inbytesleft, 8382 &outptr, &outbytesleft); 8383 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 8384 result |= 4; 8385 iconv_close (cd_88591_to_utf8); 8386 } 8387 } 8388#if 0 /* This bug could be worked around by the caller. */ 8389 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 8390 { 8391 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 8392 if (cd_88591_to_utf8 != (iconv_t)(-1)) 8393 { 8394 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 8395 char buf[50]; 8396 const char *inptr = input; 8397 size_t inbytesleft = strlen (input); 8398 char *outptr = buf; 8399 size_t outbytesleft = sizeof (buf); 8400 size_t res = iconv (cd_88591_to_utf8, 8401 (char **) &inptr, &inbytesleft, 8402 &outptr, &outbytesleft); 8403 if ((int)res > 0) 8404 result |= 8; 8405 iconv_close (cd_88591_to_utf8); 8406 } 8407 } 8408#endif 8409 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 8410 provided. */ 8411 if (/* Try standardized names. */ 8412 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 8413 /* Try IRIX, OSF/1 names. */ 8414 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 8415 /* Try AIX names. */ 8416 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 8417 /* Try HP-UX names. */ 8418 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 8419 result |= 16; 8420 return result; 8421} 8422_ACEOF 8423if ac_fn_c_try_run "$LINENO"; then : 8424 am_cv_func_iconv_works=yes 8425else 8426 am_cv_func_iconv_works=no 8427fi 8428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8429 conftest.$ac_objext conftest.beam conftest.$ac_ext 8430fi 8431 8432 LIBS="$am_save_LIBS" 8433 8434fi 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 8436$as_echo "$am_cv_func_iconv_works" >&6; } 8437 case "$am_cv_func_iconv_works" in 8438 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 8439 *) am_func_iconv=yes ;; 8440 esac 8441 else 8442 am_func_iconv=no am_cv_lib_iconv=no 8443 fi 8444 if test "$am_func_iconv" = yes; then 8445 8446$as_echo "#define HAVE_ICONV 1" >>confdefs.h 8447 8448 fi 8449 if test "$am_cv_lib_iconv" = yes; then 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 8451$as_echo_n "checking how to link with libiconv... " >&6; } 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 8453$as_echo "$LIBICONV" >&6; } 8454 else 8455 CPPFLAGS="$am_save_CPPFLAGS" 8456 LIBICONV= 8457 LTLIBICONV= 8458 fi 8459 8460 8461 8462 if test "$am_cv_func_iconv" = yes; then 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 8464$as_echo_n "checking for iconv declaration... " >&6; } 8465 if ${am_cv_proto_iconv+:} false; then : 8466 $as_echo_n "(cached) " >&6 8467else 8468 8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470/* end confdefs.h. */ 8471 8472#include <stdlib.h> 8473#include <iconv.h> 8474extern 8475#ifdef __cplusplus 8476"C" 8477#endif 8478#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 8479size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 8480#else 8481size_t iconv(); 8482#endif 8483 8484int 8485main () 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492if ac_fn_c_try_compile "$LINENO"; then : 8493 am_cv_proto_iconv_arg1="" 8494else 8495 am_cv_proto_iconv_arg1="const" 8496fi 8497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8498 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 8499fi 8500 8501 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8503 $am_cv_proto_iconv" >&5 8504$as_echo " 8505 $am_cv_proto_iconv" >&6; } 8506 8507cat >>confdefs.h <<_ACEOF 8508#define ICONV_CONST $am_cv_proto_iconv_arg1 8509_ACEOF 8510 8511 8512 fi 8513 8514 8515 8516 8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8518/* end confdefs.h. */ 8519int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 8520int 8521main () 8522{ 8523 8524 ; 8525 return 0; 8526} 8527_ACEOF 8528if ac_fn_c_try_link "$LINENO"; then : 8529 8530$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 8531 8532fi 8533rm -f core conftest.err conftest.$ac_objext \ 8534 conftest$ac_exeext conftest.$ac_ext 8535 8536 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 8537do : 8538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8539ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8540if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8541 cat >>confdefs.h <<_ACEOF 8542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8543_ACEOF 8544 8545fi 8546 8547done 8548 8549 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 8550 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ 8551 argz_stringify argz_next __fsetlocking 8552do : 8553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8554ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8555if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8556 cat >>confdefs.h <<_ACEOF 8557#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8558_ACEOF 8559 8560fi 8561done 8562 8563 8564 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> 8565" 8566if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 8567 ac_have_decl=1 8568else 8569 ac_have_decl=0 8570fi 8571 8572cat >>confdefs.h <<_ACEOF 8573#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 8574_ACEOF 8575ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> 8576" 8577if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 8578 ac_have_decl=1 8579else 8580 ac_have_decl=0 8581fi 8582 8583cat >>confdefs.h <<_ACEOF 8584#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 8585_ACEOF 8586 8587 8588 8589 8590 for ac_prog in bison 8591do 8592 # Extract the first word of "$ac_prog", so it can be a program name with args. 8593set dummy $ac_prog; ac_word=$2 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8595$as_echo_n "checking for $ac_word... " >&6; } 8596if ${ac_cv_prog_INTLBISON+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 if test -n "$INTLBISON"; then 8600 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 8601else 8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8603for as_dir in $PATH 8604do 8605 IFS=$as_save_IFS 8606 test -z "$as_dir" && as_dir=. 8607 for ac_exec_ext in '' $ac_executable_extensions; do 8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8609 ac_cv_prog_INTLBISON="$ac_prog" 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8611 break 2 8612 fi 8613done 8614 done 8615IFS=$as_save_IFS 8616 8617fi 8618fi 8619INTLBISON=$ac_cv_prog_INTLBISON 8620if test -n "$INTLBISON"; then 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 8622$as_echo "$INTLBISON" >&6; } 8623else 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8625$as_echo "no" >&6; } 8626fi 8627 8628 8629 test -n "$INTLBISON" && break 8630done 8631 8632 if test -z "$INTLBISON"; then 8633 ac_verc_fail=yes 8634 else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 8636$as_echo_n "checking version of bison... " >&6; } 8637 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 8638 case $ac_prog_version in 8639 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 8640 2.[7-9]* | [3-9].*) 8641 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 8642 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 8643 esac 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 8645$as_echo "$ac_prog_version" >&6; } 8646 fi 8647 if test $ac_verc_fail = yes; then 8648 INTLBISON=: 8649 fi 8650 8651 8652 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 8654$as_echo_n "checking for long long int... " >&6; } 8655if ${ac_cv_type_long_long_int+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 ac_cv_type_long_long_int=yes 8659 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 8660 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 8661 if test $ac_cv_type_long_long_int = yes; then 8662 if test "$cross_compiling" = yes; then : 8663 : 8664else 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667#include <limits.h> 8668 #ifndef LLONG_MAX 8669 # define HALF \ 8670 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 8671 # define LLONG_MAX (HALF - 1 + HALF) 8672 #endif 8673int 8674main () 8675{ 8676long long int n = 1; 8677 int i; 8678 for (i = 0; ; i++) 8679 { 8680 long long int m = n << i; 8681 if (m >> i != n) 8682 return 1; 8683 if (LLONG_MAX / 2 < m) 8684 break; 8685 } 8686 return 0; 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691if ac_fn_c_try_run "$LINENO"; then : 8692 8693else 8694 ac_cv_type_long_long_int=no 8695fi 8696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8697 conftest.$ac_objext conftest.beam conftest.$ac_ext 8698fi 8699 8700 fi 8701 fi 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 8704$as_echo "$ac_cv_type_long_long_int" >&6; } 8705 if test $ac_cv_type_long_long_int = yes; then 8706 8707$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 8708 8709 fi 8710 8711 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 8713$as_echo_n "checking for wchar_t... " >&6; } 8714if ${gt_cv_c_wchar_t+:} false; then : 8715 $as_echo_n "(cached) " >&6 8716else 8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8718/* end confdefs.h. */ 8719#include <stddef.h> 8720 wchar_t foo = (wchar_t)'\0'; 8721int 8722main () 8723{ 8724 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729if ac_fn_c_try_compile "$LINENO"; then : 8730 gt_cv_c_wchar_t=yes 8731else 8732 gt_cv_c_wchar_t=no 8733fi 8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8735fi 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 8737$as_echo "$gt_cv_c_wchar_t" >&6; } 8738 if test $gt_cv_c_wchar_t = yes; then 8739 8740$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 8741 8742 fi 8743 8744 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 8746$as_echo_n "checking for wint_t... " >&6; } 8747if ${gt_cv_c_wint_t+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752 8753/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 8754 <wchar.h>. 8755 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 8756 before <wchar.h>. */ 8757#include <stddef.h> 8758#include <stdio.h> 8759#include <time.h> 8760#include <wchar.h> 8761 wint_t foo = (wchar_t)'\0'; 8762int 8763main () 8764{ 8765 8766 ; 8767 return 0; 8768} 8769_ACEOF 8770if ac_fn_c_try_compile "$LINENO"; then : 8771 gt_cv_c_wint_t=yes 8772else 8773 gt_cv_c_wint_t=no 8774fi 8775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 8778$as_echo "$gt_cv_c_wint_t" >&6; } 8779 if test $gt_cv_c_wint_t = yes; then 8780 8781$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 8782 8783 fi 8784 8785 8786 8787 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 8789$as_echo_n "checking for intmax_t... " >&6; } 8790if ${gt_cv_c_intmax_t+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794/* end confdefs.h. */ 8795 8796#include <stddef.h> 8797#include <stdlib.h> 8798#if HAVE_STDINT_H_WITH_UINTMAX 8799#include <stdint.h> 8800#endif 8801#if HAVE_INTTYPES_H_WITH_UINTMAX 8802#include <inttypes.h> 8803#endif 8804 8805int 8806main () 8807{ 8808intmax_t x = -1; 8809 return !x; 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814if ac_fn_c_try_compile "$LINENO"; then : 8815 gt_cv_c_intmax_t=yes 8816else 8817 gt_cv_c_intmax_t=no 8818fi 8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 8822$as_echo "$gt_cv_c_intmax_t" >&6; } 8823 if test $gt_cv_c_intmax_t = yes; then 8824 8825$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 8826 8827 fi 8828 8829 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 8832$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 8833if ${gt_cv_func_printf_posix+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 8837 if test "$cross_compiling" = yes; then : 8838 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841 8842#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 8843 notposix 8844#endif 8845 8846_ACEOF 8847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8848 $EGREP "notposix" >/dev/null 2>&1; then : 8849 gt_cv_func_printf_posix="guessing no" 8850else 8851 gt_cv_func_printf_posix="guessing yes" 8852fi 8853rm -f conftest* 8854 8855 8856else 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859 8860#include <stdio.h> 8861#include <string.h> 8862/* The string "%2$d %1$d", with dollar characters protected from the shell's 8863 dollar expansion (possibly an autoconf bug). */ 8864static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 8865static char buf[100]; 8866int main () 8867{ 8868 sprintf (buf, format, 33, 55); 8869 return (strcmp (buf, "55 33") != 0); 8870} 8871_ACEOF 8872if ac_fn_c_try_run "$LINENO"; then : 8873 gt_cv_func_printf_posix=yes 8874else 8875 gt_cv_func_printf_posix=no 8876fi 8877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8878 conftest.$ac_objext conftest.beam conftest.$ac_ext 8879fi 8880 8881 8882fi 8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 8884$as_echo "$gt_cv_func_printf_posix" >&6; } 8885 case $gt_cv_func_printf_posix in 8886 *yes) 8887 8888$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 8889 8890 ;; 8891 esac 8892 8893 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 8895$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 8896if ${ac_cv_gnu_library_2_1+:} false; then : 8897 $as_echo_n "(cached) " >&6 8898else 8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8900/* end confdefs.h. */ 8901 8902#include <features.h> 8903#ifdef __GNU_LIBRARY__ 8904 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 8905 Lucky GNU user 8906 #endif 8907#endif 8908#ifdef __UCLIBC__ 8909 Lucky user 8910#endif 8911 8912_ACEOF 8913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8914 $EGREP "Lucky" >/dev/null 2>&1; then : 8915 ac_cv_gnu_library_2_1=yes 8916else 8917 ac_cv_gnu_library_2_1=no 8918fi 8919rm -f conftest* 8920 8921 8922 8923fi 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 8925$as_echo "$ac_cv_gnu_library_2_1" >&6; } 8926 8927 GLIBC21="$ac_cv_gnu_library_2_1" 8928 8929 8930 8931 for ac_header in stdint.h 8932do : 8933 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 8934if test "x$ac_cv_header_stdint_h" = xyes; then : 8935 cat >>confdefs.h <<_ACEOF 8936#define HAVE_STDINT_H 1 8937_ACEOF 8938 8939fi 8940 8941done 8942 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 8944$as_echo_n "checking for SIZE_MAX... " >&6; } 8945if ${gl_cv_size_max+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 8949 gl_cv_size_max= 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951/* end confdefs.h. */ 8952 8953#include <limits.h> 8954#if HAVE_STDINT_H 8955#include <stdint.h> 8956#endif 8957#ifdef SIZE_MAX 8958Found it 8959#endif 8960 8961_ACEOF 8962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8963 $EGREP "Found it" >/dev/null 2>&1; then : 8964 gl_cv_size_max=yes 8965fi 8966rm -f conftest* 8967 8968 if test -z "$gl_cv_size_max"; then 8969 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 8970#include <limits.h>"; then : 8971 8972else 8973 size_t_bits_minus_1= 8974fi 8975 8976 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 8977 8978else 8979 fits_in_uint= 8980fi 8981 8982 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 8983 if test $fits_in_uint = 1; then 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986#include <stddef.h> 8987 extern size_t foo; 8988 extern unsigned long foo; 8989 8990int 8991main () 8992{ 8993 8994 ; 8995 return 0; 8996} 8997_ACEOF 8998if ac_fn_c_try_compile "$LINENO"; then : 8999 fits_in_uint=0 9000fi 9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9002 fi 9003 if test $fits_in_uint = 1; then 9004 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 9005 else 9006 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 9007 fi 9008 else 9009 gl_cv_size_max='((size_t)~(size_t)0)' 9010 fi 9011 fi 9012 9013fi 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 9015$as_echo "$gl_cv_size_max" >&6; } 9016 if test "$gl_cv_size_max" != yes; then 9017 9018cat >>confdefs.h <<_ACEOF 9019#define SIZE_MAX $gl_cv_size_max 9020_ACEOF 9021 9022 fi 9023 9024 9025 9026 9027 for ac_header in stdint.h 9028do : 9029 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 9030if test "x$ac_cv_header_stdint_h" = xyes; then : 9031 cat >>confdefs.h <<_ACEOF 9032#define HAVE_STDINT_H 1 9033_ACEOF 9034 9035fi 9036 9037done 9038 9039 9040 9041 9042 9043 for ac_func in $ac_func_list 9044do : 9045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9047if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9048 cat >>confdefs.h <<_ACEOF 9049#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9050_ACEOF 9051 9052fi 9053done 9054 9055 9056 9057 9058 9059 9060 9061 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 9063$as_echo_n "checking for working fcntl.h... " >&6; } 9064if ${gl_cv_header_working_fcntl_h+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 if test "$cross_compiling" = yes; then : 9068 gl_cv_header_working_fcntl_h=cross-compiling 9069else 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072#include <sys/types.h> 9073 #include <sys/stat.h> 9074 #if HAVE_UNISTD_H 9075 # include <unistd.h> 9076 #else /* on Windows with MSVC */ 9077 # include <io.h> 9078 # include <stdlib.h> 9079 # defined sleep(n) _sleep ((n) * 1000) 9080 #endif 9081 #include <fcntl.h> 9082 #ifndef O_NOATIME 9083 #define O_NOATIME 0 9084 #endif 9085 #ifndef O_NOFOLLOW 9086 #define O_NOFOLLOW 0 9087 #endif 9088 static int const constants[] = 9089 { 9090 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 9091 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 9092 }; 9093 9094int 9095main () 9096{ 9097 9098 int result = !constants; 9099 #if HAVE_SYMLINK 9100 { 9101 static char const sym[] = "conftest.sym"; 9102 if (symlink ("/dev/null", sym) != 0) 9103 result |= 2; 9104 else 9105 { 9106 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 9107 if (fd >= 0) 9108 { 9109 close (fd); 9110 result |= 4; 9111 } 9112 } 9113 if (unlink (sym) != 0 || symlink (".", sym) != 0) 9114 result |= 2; 9115 else 9116 { 9117 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 9118 if (fd >= 0) 9119 { 9120 close (fd); 9121 result |= 4; 9122 } 9123 } 9124 unlink (sym); 9125 } 9126 #endif 9127 { 9128 static char const file[] = "confdefs.h"; 9129 int fd = open (file, O_RDONLY | O_NOATIME); 9130 if (fd < 0) 9131 result |= 8; 9132 else 9133 { 9134 struct stat st0; 9135 if (fstat (fd, &st0) != 0) 9136 result |= 16; 9137 else 9138 { 9139 char c; 9140 sleep (1); 9141 if (read (fd, &c, 1) != 1) 9142 result |= 24; 9143 else 9144 { 9145 if (close (fd) != 0) 9146 result |= 32; 9147 else 9148 { 9149 struct stat st1; 9150 if (stat (file, &st1) != 0) 9151 result |= 40; 9152 else 9153 if (st0.st_atime != st1.st_atime) 9154 result |= 64; 9155 } 9156 } 9157 } 9158 } 9159 } 9160 return result; 9161 ; 9162 return 0; 9163} 9164_ACEOF 9165if ac_fn_c_try_run "$LINENO"; then : 9166 gl_cv_header_working_fcntl_h=yes 9167else 9168 case $? in #( 9169 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 9170 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 9171 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 9172 *) gl_cv_header_working_fcntl_h='no';; 9173 esac 9174fi 9175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9176 conftest.$ac_objext conftest.beam conftest.$ac_ext 9177fi 9178 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 9181$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 9182 9183 case $gl_cv_header_working_fcntl_h in #( 9184 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 9185 *) ac_val=1;; 9186 esac 9187 9188cat >>confdefs.h <<_ACEOF 9189#define HAVE_WORKING_O_NOATIME $ac_val 9190_ACEOF 9191 9192 9193 case $gl_cv_header_working_fcntl_h in #( 9194 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 9195 *) ac_val=1;; 9196 esac 9197 9198cat >>confdefs.h <<_ACEOF 9199#define HAVE_WORKING_O_NOFOLLOW $ac_val 9200_ACEOF 9201 9202 9203 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 9205$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 9206if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 gt_save_LIBS="$LIBS" 9210 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213#include <CoreFoundation/CFPreferences.h> 9214int 9215main () 9216{ 9217CFPreferencesCopyAppValue(NULL, NULL) 9218 ; 9219 return 0; 9220} 9221_ACEOF 9222if ac_fn_c_try_link "$LINENO"; then : 9223 gt_cv_func_CFPreferencesCopyAppValue=yes 9224else 9225 gt_cv_func_CFPreferencesCopyAppValue=no 9226fi 9227rm -f core conftest.err conftest.$ac_objext \ 9228 conftest$ac_exeext conftest.$ac_ext 9229 LIBS="$gt_save_LIBS" 9230fi 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 9232$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 9233 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 9234 9235$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 9236 9237 fi 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 9239$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 9240if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 gt_save_LIBS="$LIBS" 9244 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247#include <CoreFoundation/CFLocale.h> 9248int 9249main () 9250{ 9251CFLocaleCopyCurrent(); 9252 ; 9253 return 0; 9254} 9255_ACEOF 9256if ac_fn_c_try_link "$LINENO"; then : 9257 gt_cv_func_CFLocaleCopyCurrent=yes 9258else 9259 gt_cv_func_CFLocaleCopyCurrent=no 9260fi 9261rm -f core conftest.err conftest.$ac_objext \ 9262 conftest$ac_exeext conftest.$ac_ext 9263 LIBS="$gt_save_LIBS" 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 9266$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 9267 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 9268 9269$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 9270 9271 fi 9272 INTL_MACOSX_LIBS= 9273 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 9274 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 9275 fi 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 case "$enable_silent_rules" in 9287 yes) INTL_DEFAULT_VERBOSITY=0;; 9288 no) INTL_DEFAULT_VERBOSITY=1;; 9289 *) INTL_DEFAULT_VERBOSITY=1;; 9290 esac 9291 9292 9293 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 9294if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 9295 9296else 9297 9298$as_echo "#define ptrdiff_t long" >>confdefs.h 9299 9300 9301fi 9302 9303 for ac_header in features.h stddef.h stdlib.h string.h 9304do : 9305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9306ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9307if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9308 cat >>confdefs.h <<_ACEOF 9309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9310_ACEOF 9311 9312fi 9313 9314done 9315 9316 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ 9317 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 9318do : 9319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9321if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9322 cat >>confdefs.h <<_ACEOF 9323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9324_ACEOF 9325 9326fi 9327done 9328 9329 9330 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 9331" 9332if test "x$ac_cv_have_decl__snprintf" = xyes; then : 9333 ac_have_decl=1 9334else 9335 ac_have_decl=0 9336fi 9337 9338cat >>confdefs.h <<_ACEOF 9339#define HAVE_DECL__SNPRINTF $ac_have_decl 9340_ACEOF 9341ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> 9342" 9343if test "x$ac_cv_have_decl__snwprintf" = xyes; then : 9344 ac_have_decl=1 9345else 9346 ac_have_decl=0 9347fi 9348 9349cat >>confdefs.h <<_ACEOF 9350#define HAVE_DECL__SNWPRINTF $ac_have_decl 9351_ACEOF 9352 9353 9354 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> 9355" 9356if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 9357 ac_have_decl=1 9358else 9359 ac_have_decl=0 9360fi 9361 9362cat >>confdefs.h <<_ACEOF 9363#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 9364_ACEOF 9365 9366 9367 case $gt_cv_func_printf_posix in 9368 *yes) HAVE_POSIX_PRINTF=1 ;; 9369 *) HAVE_POSIX_PRINTF=0 ;; 9370 esac 9371 9372 if test "$ac_cv_func_asprintf" = yes; then 9373 HAVE_ASPRINTF=1 9374 else 9375 HAVE_ASPRINTF=0 9376 fi 9377 9378 if test "$ac_cv_func_snprintf" = yes; then 9379 HAVE_SNPRINTF=1 9380 else 9381 HAVE_SNPRINTF=0 9382 fi 9383 9384 if test "$ac_cv_func_newlocale" = yes; then 9385 HAVE_NEWLOCALE=1 9386 else 9387 HAVE_NEWLOCALE=0 9388 fi 9389 9390 if test "$ac_cv_func_wprintf" = yes; then 9391 HAVE_WPRINTF=1 9392 else 9393 HAVE_WPRINTF=0 9394 fi 9395 9396 9397 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 9399$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 9400if ${am_cv_langinfo_codeset+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405#include <langinfo.h> 9406int 9407main () 9408{ 9409char* cs = nl_langinfo(CODESET); return !cs; 9410 ; 9411 return 0; 9412} 9413_ACEOF 9414if ac_fn_c_try_link "$LINENO"; then : 9415 am_cv_langinfo_codeset=yes 9416else 9417 am_cv_langinfo_codeset=no 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421 9422fi 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 9424$as_echo "$am_cv_langinfo_codeset" >&6; } 9425 if test $am_cv_langinfo_codeset = yes; then 9426 9427$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 9428 9429 fi 9430 9431 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 9433$as_echo_n "checking for LC_MESSAGES... " >&6; } 9434if ${gt_cv_val_LC_MESSAGES+:} false; then : 9435 $as_echo_n "(cached) " >&6 9436else 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439#include <locale.h> 9440int 9441main () 9442{ 9443return LC_MESSAGES 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448if ac_fn_c_try_link "$LINENO"; then : 9449 gt_cv_val_LC_MESSAGES=yes 9450else 9451 gt_cv_val_LC_MESSAGES=no 9452fi 9453rm -f core conftest.err conftest.$ac_objext \ 9454 conftest$ac_exeext conftest.$ac_ext 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 9457$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 9458 if test $gt_cv_val_LC_MESSAGES = yes; then 9459 9460$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 9461 9462 fi 9463 9464 9465 if test "$enable_shared" = yes; then 9466 case "$host_os" in 9467 mingw* | cygwin*) is_woe32dll=yes ;; 9468 *) is_woe32dll=no ;; 9469 esac 9470 else 9471 is_woe32dll=no 9472 fi 9473 WOE32DLL=$is_woe32dll 9474 9475 9476 case "$host_os" in 9477 mingw* | cygwin*) is_woe32=yes ;; 9478 *) is_woe32=no ;; 9479 esac 9480 WOE32=$is_woe32 9481 9482 if test $WOE32 = yes; then 9483 if test -n "$ac_tool_prefix"; then 9484 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 9485set dummy ${ac_tool_prefix}windres; ac_word=$2 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9487$as_echo_n "checking for $ac_word... " >&6; } 9488if ${ac_cv_prog_WINDRES+:} false; then : 9489 $as_echo_n "(cached) " >&6 9490else 9491 if test -n "$WINDRES"; then 9492 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9493else 9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9495for as_dir in $PATH 9496do 9497 IFS=$as_save_IFS 9498 test -z "$as_dir" && as_dir=. 9499 for ac_exec_ext in '' $ac_executable_extensions; do 9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9501 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9503 break 2 9504 fi 9505done 9506 done 9507IFS=$as_save_IFS 9508 9509fi 9510fi 9511WINDRES=$ac_cv_prog_WINDRES 9512if test -n "$WINDRES"; then 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9514$as_echo "$WINDRES" >&6; } 9515else 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9517$as_echo "no" >&6; } 9518fi 9519 9520 9521fi 9522if test -z "$ac_cv_prog_WINDRES"; then 9523 ac_ct_WINDRES=$WINDRES 9524 # Extract the first word of "windres", so it can be a program name with args. 9525set dummy windres; ac_word=$2 9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9527$as_echo_n "checking for $ac_word... " >&6; } 9528if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 9529 $as_echo_n "(cached) " >&6 9530else 9531 if test -n "$ac_ct_WINDRES"; then 9532 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 9533else 9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9535for as_dir in $PATH 9536do 9537 IFS=$as_save_IFS 9538 test -z "$as_dir" && as_dir=. 9539 for ac_exec_ext in '' $ac_executable_extensions; do 9540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9541 ac_cv_prog_ac_ct_WINDRES="windres" 9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9543 break 2 9544 fi 9545done 9546 done 9547IFS=$as_save_IFS 9548 9549fi 9550fi 9551ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 9552if test -n "$ac_ct_WINDRES"; then 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 9554$as_echo "$ac_ct_WINDRES" >&6; } 9555else 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9557$as_echo "no" >&6; } 9558fi 9559 9560 if test "x$ac_ct_WINDRES" = x; then 9561 WINDRES="" 9562 else 9563 case $cross_compiling:$ac_tool_warned in 9564yes:) 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9567ac_tool_warned=yes ;; 9568esac 9569 WINDRES=$ac_ct_WINDRES 9570 fi 9571else 9572 WINDRES="$ac_cv_prog_WINDRES" 9573fi 9574 9575 fi 9576 9577 case "$host_os" in 9578 hpux*) LTLIBC="" ;; 9579 *) LTLIBC="-lc" ;; 9580 esac 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 9609$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 9610if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 gt_save_LIBS="$LIBS" 9614 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617#include <CoreFoundation/CFPreferences.h> 9618int 9619main () 9620{ 9621CFPreferencesCopyAppValue(NULL, NULL) 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626if ac_fn_c_try_link "$LINENO"; then : 9627 gt_cv_func_CFPreferencesCopyAppValue=yes 9628else 9629 gt_cv_func_CFPreferencesCopyAppValue=no 9630fi 9631rm -f core conftest.err conftest.$ac_objext \ 9632 conftest$ac_exeext conftest.$ac_ext 9633 LIBS="$gt_save_LIBS" 9634fi 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 9636$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 9637 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 9638 9639$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 9640 9641 fi 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 9643$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 9644if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 gt_save_LIBS="$LIBS" 9648 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9650/* end confdefs.h. */ 9651#include <CoreFoundation/CFLocale.h> 9652int 9653main () 9654{ 9655CFLocaleCopyCurrent(); 9656 ; 9657 return 0; 9658} 9659_ACEOF 9660if ac_fn_c_try_link "$LINENO"; then : 9661 gt_cv_func_CFLocaleCopyCurrent=yes 9662else 9663 gt_cv_func_CFLocaleCopyCurrent=no 9664fi 9665rm -f core conftest.err conftest.$ac_objext \ 9666 conftest$ac_exeext conftest.$ac_ext 9667 LIBS="$gt_save_LIBS" 9668fi 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 9670$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 9671 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 9672 9673$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 9674 9675 fi 9676 INTL_MACOSX_LIBS= 9677 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 9678 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 9679 fi 9680 9681 9682 9683 9684 9685 9686 BUILD_INCLUDED_LIBINTL=no 9687 USE_INCLUDED_LIBINTL=no 9688 9689 LIBINTL= 9690 LTLIBINTL= 9691 POSUB= 9692 9693 case " $gt_needs " in 9694 *" need-formatstring-macros "*) gt_api_version=3 ;; 9695 *" need-ngettext "*) gt_api_version=2 ;; 9696 *) gt_api_version=1 ;; 9697 esac 9698 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 9699 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 9700 9701 if test "$USE_NLS" = "yes"; then 9702 gt_use_preinstalled_gnugettext=no 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 9705$as_echo_n "checking whether included gettext is requested... " >&6; } 9706 9707# Check whether --with-included-gettext was given. 9708if test "${with_included_gettext+set}" = set; then : 9709 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 9710else 9711 nls_cv_force_use_gnu_gettext=no 9712fi 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 9715$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 9716 9717 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 9718 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 9719 9720 9721 if test $gt_api_version -ge 3; then 9722 gt_revision_test_code=' 9723#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 9724#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 9725#endif 9726typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 9727' 9728 else 9729 gt_revision_test_code= 9730 fi 9731 if test $gt_api_version -ge 2; then 9732 gt_expression_test_code=' + * ngettext ("", "", 0)' 9733 else 9734 gt_expression_test_code= 9735 fi 9736 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 9738$as_echo_n "checking for GNU gettext in libc... " >&6; } 9739if eval \${$gt_func_gnugettext_libc+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744 9745#include <libintl.h> 9746$gt_revision_test_code 9747extern int _nl_msg_cat_cntr; 9748extern int *_nl_domain_bindings; 9749 9750int 9751main () 9752{ 9753 9754bindtextdomain ("", ""); 9755return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 9756 9757 ; 9758 return 0; 9759} 9760_ACEOF 9761if ac_fn_c_try_link "$LINENO"; then : 9762 eval "$gt_func_gnugettext_libc=yes" 9763else 9764 eval "$gt_func_gnugettext_libc=no" 9765fi 9766rm -f core conftest.err conftest.$ac_objext \ 9767 conftest$ac_exeext conftest.$ac_ext 9768fi 9769eval ac_res=\$$gt_func_gnugettext_libc 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9771$as_echo "$ac_res" >&6; } 9772 9773 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 9774 9775 9776 9777 9778 9779 9780 9781 9782 use_additional=yes 9783 9784 acl_save_prefix="$prefix" 9785 prefix="$acl_final_prefix" 9786 acl_save_exec_prefix="$exec_prefix" 9787 exec_prefix="$acl_final_exec_prefix" 9788 9789 eval additional_includedir=\"$includedir\" 9790 eval additional_libdir=\"$libdir\" 9791 9792 exec_prefix="$acl_save_exec_prefix" 9793 prefix="$acl_save_prefix" 9794 9795 9796# Check whether --with-libintl-prefix was given. 9797if test "${with_libintl_prefix+set}" = set; then : 9798 withval=$with_libintl_prefix; 9799 if test "X$withval" = "Xno"; then 9800 use_additional=no 9801 else 9802 if test "X$withval" = "X"; then 9803 9804 acl_save_prefix="$prefix" 9805 prefix="$acl_final_prefix" 9806 acl_save_exec_prefix="$exec_prefix" 9807 exec_prefix="$acl_final_exec_prefix" 9808 9809 eval additional_includedir=\"$includedir\" 9810 eval additional_libdir=\"$libdir\" 9811 9812 exec_prefix="$acl_save_exec_prefix" 9813 prefix="$acl_save_prefix" 9814 9815 else 9816 additional_includedir="$withval/include" 9817 additional_libdir="$withval/$acl_libdirstem" 9818 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 9819 && ! test -d "$withval/$acl_libdirstem"; then 9820 additional_libdir="$withval/$acl_libdirstem2" 9821 fi 9822 fi 9823 fi 9824 9825fi 9826 9827 LIBINTL= 9828 LTLIBINTL= 9829 INCINTL= 9830 LIBINTL_PREFIX= 9831 HAVE_LIBINTL= 9832 rpathdirs= 9833 ltrpathdirs= 9834 names_already_handled= 9835 names_next_round='intl ' 9836 while test -n "$names_next_round"; do 9837 names_this_round="$names_next_round" 9838 names_next_round= 9839 for name in $names_this_round; do 9840 already_handled= 9841 for n in $names_already_handled; do 9842 if test "$n" = "$name"; then 9843 already_handled=yes 9844 break 9845 fi 9846 done 9847 if test -z "$already_handled"; then 9848 names_already_handled="$names_already_handled $name" 9849 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 9850 eval value=\"\$HAVE_LIB$uppername\" 9851 if test -n "$value"; then 9852 if test "$value" = yes; then 9853 eval value=\"\$LIB$uppername\" 9854 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 9855 eval value=\"\$LTLIB$uppername\" 9856 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 9857 else 9858 : 9859 fi 9860 else 9861 found_dir= 9862 found_la= 9863 found_so= 9864 found_a= 9865 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 9866 if test -n "$acl_shlibext"; then 9867 shrext=".$acl_shlibext" # typically: shrext=.so 9868 else 9869 shrext= 9870 fi 9871 if test $use_additional = yes; then 9872 dir="$additional_libdir" 9873 if test -n "$acl_shlibext"; then 9874 if test -f "$dir/$libname$shrext"; then 9875 found_dir="$dir" 9876 found_so="$dir/$libname$shrext" 9877 else 9878 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9879 ver=`(cd "$dir" && \ 9880 for f in "$libname$shrext".*; do echo "$f"; done \ 9881 | sed -e "s,^$libname$shrext\\\\.,," \ 9882 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9883 | sed 1q ) 2>/dev/null` 9884 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9885 found_dir="$dir" 9886 found_so="$dir/$libname$shrext.$ver" 9887 fi 9888 else 9889 eval library_names=\"$acl_library_names_spec\" 9890 for f in $library_names; do 9891 if test -f "$dir/$f"; then 9892 found_dir="$dir" 9893 found_so="$dir/$f" 9894 break 9895 fi 9896 done 9897 fi 9898 fi 9899 fi 9900 if test "X$found_dir" = "X"; then 9901 if test -f "$dir/$libname.$acl_libext"; then 9902 found_dir="$dir" 9903 found_a="$dir/$libname.$acl_libext" 9904 fi 9905 fi 9906 if test "X$found_dir" != "X"; then 9907 if test -f "$dir/$libname.la"; then 9908 found_la="$dir/$libname.la" 9909 fi 9910 fi 9911 fi 9912 if test "X$found_dir" = "X"; then 9913 for x in $LDFLAGS $LTLIBINTL; do 9914 9915 acl_save_prefix="$prefix" 9916 prefix="$acl_final_prefix" 9917 acl_save_exec_prefix="$exec_prefix" 9918 exec_prefix="$acl_final_exec_prefix" 9919 eval x=\"$x\" 9920 exec_prefix="$acl_save_exec_prefix" 9921 prefix="$acl_save_prefix" 9922 9923 case "$x" in 9924 -L*) 9925 dir=`echo "X$x" | sed -e 's/^X-L//'` 9926 if test -n "$acl_shlibext"; then 9927 if test -f "$dir/$libname$shrext"; then 9928 found_dir="$dir" 9929 found_so="$dir/$libname$shrext" 9930 else 9931 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9932 ver=`(cd "$dir" && \ 9933 for f in "$libname$shrext".*; do echo "$f"; done \ 9934 | sed -e "s,^$libname$shrext\\\\.,," \ 9935 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9936 | sed 1q ) 2>/dev/null` 9937 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9938 found_dir="$dir" 9939 found_so="$dir/$libname$shrext.$ver" 9940 fi 9941 else 9942 eval library_names=\"$acl_library_names_spec\" 9943 for f in $library_names; do 9944 if test -f "$dir/$f"; then 9945 found_dir="$dir" 9946 found_so="$dir/$f" 9947 break 9948 fi 9949 done 9950 fi 9951 fi 9952 fi 9953 if test "X$found_dir" = "X"; then 9954 if test -f "$dir/$libname.$acl_libext"; then 9955 found_dir="$dir" 9956 found_a="$dir/$libname.$acl_libext" 9957 fi 9958 fi 9959 if test "X$found_dir" != "X"; then 9960 if test -f "$dir/$libname.la"; then 9961 found_la="$dir/$libname.la" 9962 fi 9963 fi 9964 ;; 9965 esac 9966 if test "X$found_dir" != "X"; then 9967 break 9968 fi 9969 done 9970 fi 9971 if test "X$found_dir" != "X"; then 9972 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 9973 if test "X$found_so" != "X"; then 9974 if test "$enable_rpath" = no \ 9975 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 9976 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 9977 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9978 else 9979 haveit= 9980 for x in $ltrpathdirs; do 9981 if test "X$x" = "X$found_dir"; then 9982 haveit=yes 9983 break 9984 fi 9985 done 9986 if test -z "$haveit"; then 9987 ltrpathdirs="$ltrpathdirs $found_dir" 9988 fi 9989 if test "$acl_hardcode_direct" = yes; then 9990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9991 else 9992 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9993 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9994 haveit= 9995 for x in $rpathdirs; do 9996 if test "X$x" = "X$found_dir"; then 9997 haveit=yes 9998 break 9999 fi 10000 done 10001 if test -z "$haveit"; then 10002 rpathdirs="$rpathdirs $found_dir" 10003 fi 10004 else 10005 haveit= 10006 for x in $LDFLAGS $LIBINTL; do 10007 10008 acl_save_prefix="$prefix" 10009 prefix="$acl_final_prefix" 10010 acl_save_exec_prefix="$exec_prefix" 10011 exec_prefix="$acl_final_exec_prefix" 10012 eval x=\"$x\" 10013 exec_prefix="$acl_save_exec_prefix" 10014 prefix="$acl_save_prefix" 10015 10016 if test "X$x" = "X-L$found_dir"; then 10017 haveit=yes 10018 break 10019 fi 10020 done 10021 if test -z "$haveit"; then 10022 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10023 fi 10024 if test "$acl_hardcode_minus_L" != no; then 10025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10026 else 10027 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10028 fi 10029 fi 10030 fi 10031 fi 10032 else 10033 if test "X$found_a" != "X"; then 10034 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10035 else 10036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10037 fi 10038 fi 10039 additional_includedir= 10040 case "$found_dir" in 10041 */$acl_libdirstem | */$acl_libdirstem/) 10042 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 10043 if test "$name" = 'intl'; then 10044 LIBINTL_PREFIX="$basedir" 10045 fi 10046 additional_includedir="$basedir/include" 10047 ;; 10048 */$acl_libdirstem2 | */$acl_libdirstem2/) 10049 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 10050 if test "$name" = 'intl'; then 10051 LIBINTL_PREFIX="$basedir" 10052 fi 10053 additional_includedir="$basedir/include" 10054 ;; 10055 esac 10056 if test "X$additional_includedir" != "X"; then 10057 if test "X$additional_includedir" != "X/usr/include"; then 10058 haveit= 10059 if test "X$additional_includedir" = "X/usr/local/include"; then 10060 if test -n "$GCC"; then 10061 case $host_os in 10062 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10063 esac 10064 fi 10065 fi 10066 if test -z "$haveit"; then 10067 for x in $CPPFLAGS $INCINTL; do 10068 10069 acl_save_prefix="$prefix" 10070 prefix="$acl_final_prefix" 10071 acl_save_exec_prefix="$exec_prefix" 10072 exec_prefix="$acl_final_exec_prefix" 10073 eval x=\"$x\" 10074 exec_prefix="$acl_save_exec_prefix" 10075 prefix="$acl_save_prefix" 10076 10077 if test "X$x" = "X-I$additional_includedir"; then 10078 haveit=yes 10079 break 10080 fi 10081 done 10082 if test -z "$haveit"; then 10083 if test -d "$additional_includedir"; then 10084 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10085 fi 10086 fi 10087 fi 10088 fi 10089 fi 10090 if test -n "$found_la"; then 10091 save_libdir="$libdir" 10092 case "$found_la" in 10093 */* | *\\*) . "$found_la" ;; 10094 *) . "./$found_la" ;; 10095 esac 10096 libdir="$save_libdir" 10097 for dep in $dependency_libs; do 10098 case "$dep" in 10099 -L*) 10100 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10101 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 10102 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 10103 haveit= 10104 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 10105 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 10106 if test -n "$GCC"; then 10107 case $host_os in 10108 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10109 esac 10110 fi 10111 fi 10112 if test -z "$haveit"; then 10113 haveit= 10114 for x in $LDFLAGS $LIBINTL; do 10115 10116 acl_save_prefix="$prefix" 10117 prefix="$acl_final_prefix" 10118 acl_save_exec_prefix="$exec_prefix" 10119 exec_prefix="$acl_final_exec_prefix" 10120 eval x=\"$x\" 10121 exec_prefix="$acl_save_exec_prefix" 10122 prefix="$acl_save_prefix" 10123 10124 if test "X$x" = "X-L$additional_libdir"; then 10125 haveit=yes 10126 break 10127 fi 10128 done 10129 if test -z "$haveit"; then 10130 if test -d "$additional_libdir"; then 10131 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 10132 fi 10133 fi 10134 haveit= 10135 for x in $LDFLAGS $LTLIBINTL; do 10136 10137 acl_save_prefix="$prefix" 10138 prefix="$acl_final_prefix" 10139 acl_save_exec_prefix="$exec_prefix" 10140 exec_prefix="$acl_final_exec_prefix" 10141 eval x=\"$x\" 10142 exec_prefix="$acl_save_exec_prefix" 10143 prefix="$acl_save_prefix" 10144 10145 if test "X$x" = "X-L$additional_libdir"; then 10146 haveit=yes 10147 break 10148 fi 10149 done 10150 if test -z "$haveit"; then 10151 if test -d "$additional_libdir"; then 10152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 10153 fi 10154 fi 10155 fi 10156 fi 10157 ;; 10158 -R*) 10159 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10160 if test "$enable_rpath" != no; then 10161 haveit= 10162 for x in $rpathdirs; do 10163 if test "X$x" = "X$dir"; then 10164 haveit=yes 10165 break 10166 fi 10167 done 10168 if test -z "$haveit"; then 10169 rpathdirs="$rpathdirs $dir" 10170 fi 10171 haveit= 10172 for x in $ltrpathdirs; do 10173 if test "X$x" = "X$dir"; then 10174 haveit=yes 10175 break 10176 fi 10177 done 10178 if test -z "$haveit"; then 10179 ltrpathdirs="$ltrpathdirs $dir" 10180 fi 10181 fi 10182 ;; 10183 -l*) 10184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10185 ;; 10186 *.la) 10187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10188 ;; 10189 *) 10190 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10192 ;; 10193 esac 10194 done 10195 fi 10196 else 10197 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10198 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10199 fi 10200 fi 10201 fi 10202 done 10203 done 10204 if test "X$rpathdirs" != "X"; then 10205 if test -n "$acl_hardcode_libdir_separator"; then 10206 alldirs= 10207 for found_dir in $rpathdirs; do 10208 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 10209 done 10210 acl_save_libdir="$libdir" 10211 libdir="$alldirs" 10212 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10213 libdir="$acl_save_libdir" 10214 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10215 else 10216 for found_dir in $rpathdirs; do 10217 acl_save_libdir="$libdir" 10218 libdir="$found_dir" 10219 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10220 libdir="$acl_save_libdir" 10221 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10222 done 10223 fi 10224 fi 10225 if test "X$ltrpathdirs" != "X"; then 10226 for found_dir in $ltrpathdirs; do 10227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10228 done 10229 fi 10230 10231 10232 10233 10234 10235 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 10237$as_echo_n "checking for GNU gettext in libintl... " >&6; } 10238if eval \${$gt_func_gnugettext_libintl+:} false; then : 10239 $as_echo_n "(cached) " >&6 10240else 10241 gt_save_CPPFLAGS="$CPPFLAGS" 10242 CPPFLAGS="$CPPFLAGS $INCINTL" 10243 gt_save_LIBS="$LIBS" 10244 LIBS="$LIBS $LIBINTL" 10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10246/* end confdefs.h. */ 10247 10248#include <libintl.h> 10249$gt_revision_test_code 10250extern int _nl_msg_cat_cntr; 10251extern 10252#ifdef __cplusplus 10253"C" 10254#endif 10255const char *_nl_expand_alias (const char *); 10256 10257int 10258main () 10259{ 10260 10261bindtextdomain ("", ""); 10262return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 10263 10264 ; 10265 return 0; 10266} 10267_ACEOF 10268if ac_fn_c_try_link "$LINENO"; then : 10269 eval "$gt_func_gnugettext_libintl=yes" 10270else 10271 eval "$gt_func_gnugettext_libintl=no" 10272fi 10273rm -f core conftest.err conftest.$ac_objext \ 10274 conftest$ac_exeext conftest.$ac_ext 10275 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 10276 LIBS="$LIBS $LIBICONV" 10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10278/* end confdefs.h. */ 10279 10280#include <libintl.h> 10281$gt_revision_test_code 10282extern int _nl_msg_cat_cntr; 10283extern 10284#ifdef __cplusplus 10285"C" 10286#endif 10287const char *_nl_expand_alias (const char *); 10288 10289int 10290main () 10291{ 10292 10293bindtextdomain ("", ""); 10294return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 10295 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300if ac_fn_c_try_link "$LINENO"; then : 10301 LIBINTL="$LIBINTL $LIBICONV" 10302 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10303 eval "$gt_func_gnugettext_libintl=yes" 10304 10305fi 10306rm -f core conftest.err conftest.$ac_objext \ 10307 conftest$ac_exeext conftest.$ac_ext 10308 fi 10309 CPPFLAGS="$gt_save_CPPFLAGS" 10310 LIBS="$gt_save_LIBS" 10311fi 10312eval ac_res=\$$gt_func_gnugettext_libintl 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10314$as_echo "$ac_res" >&6; } 10315 fi 10316 10317 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 10318 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 10319 && test "$PACKAGE" != gettext-runtime \ 10320 && test "$PACKAGE" != gettext-tools; }; then 10321 gt_use_preinstalled_gnugettext=yes 10322 else 10323 LIBINTL= 10324 LTLIBINTL= 10325 INCINTL= 10326 fi 10327 10328 10329 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 10330 nls_cv_use_gnu_gettext=yes 10331 fi 10332 fi 10333 10334 if test "$nls_cv_use_gnu_gettext" = "yes"; then 10335 BUILD_INCLUDED_LIBINTL=yes 10336 USE_INCLUDED_LIBINTL=yes 10337 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 10338 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 10339 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 10340 fi 10341 10342 CATOBJEXT= 10343 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10344 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10345 CATOBJEXT=.gmo 10346 fi 10347 10348 10349 if test -n "$INTL_MACOSX_LIBS"; then 10350 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10351 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10352 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 10353 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 10354 fi 10355 fi 10356 10357 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10358 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10359 10360$as_echo "#define ENABLE_NLS 1" >>confdefs.h 10361 10362 else 10363 USE_NLS=no 10364 fi 10365 fi 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 10368$as_echo_n "checking whether to use NLS... " >&6; } 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 10370$as_echo "$USE_NLS" >&6; } 10371 if test "$USE_NLS" = "yes"; then 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 10373$as_echo_n "checking where the gettext function comes from... " >&6; } 10374 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10375 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 10376 gt_source="external libintl" 10377 else 10378 gt_source="libc" 10379 fi 10380 else 10381 gt_source="included intl directory" 10382 fi 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 10384$as_echo "$gt_source" >&6; } 10385 fi 10386 10387 if test "$USE_NLS" = "yes"; then 10388 10389 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10390 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 10392$as_echo_n "checking how to link with libintl... " >&6; } 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 10394$as_echo "$LIBINTL" >&6; } 10395 10396 for element in $INCINTL; do 10397 haveit= 10398 for x in $CPPFLAGS; do 10399 10400 acl_save_prefix="$prefix" 10401 prefix="$acl_final_prefix" 10402 acl_save_exec_prefix="$exec_prefix" 10403 exec_prefix="$acl_final_exec_prefix" 10404 eval x=\"$x\" 10405 exec_prefix="$acl_save_exec_prefix" 10406 prefix="$acl_save_prefix" 10407 10408 if test "X$x" = "X$element"; then 10409 haveit=yes 10410 break 10411 fi 10412 done 10413 if test -z "$haveit"; then 10414 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10415 fi 10416 done 10417 10418 fi 10419 10420 10421$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 10422 10423 10424$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 10425 10426 fi 10427 10428 POSUB=po 10429 fi 10430 10431 10432 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 10433 BUILD_INCLUDED_LIBINTL=yes 10434 fi 10435 10436 10437 10438 10439 10440 nls_cv_header_intl= 10441 nls_cv_header_libgt= 10442 10443 DATADIRNAME=share 10444 10445 10446 INSTOBJEXT=.mo 10447 10448 10449 GENCAT=gencat 10450 10451 10452 INTLOBJS= 10453 if test "$USE_INCLUDED_LIBINTL" = yes; then 10454 INTLOBJS="\$(GETTOBJS)" 10455 fi 10456 10457 10458 INTL_LIBTOOL_SUFFIX_PREFIX= 10459 10460 10461 10462 INTLLIBS="$LIBINTL" 10463 10464 10465 10466 10467 10468 10469 10470#AX_DESKTOP_I18N 10471 10472# Extract the first word of "po4a-gettextize", so it can be a program name with args. 10473set dummy po4a-gettextize; ac_word=$2 10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10475$as_echo_n "checking for $ac_word... " >&6; } 10476if ${ac_cv_path_po4a_gettextize+:} false; then : 10477 $as_echo_n "(cached) " >&6 10478else 10479 case $po4a_gettextize in 10480 [\\/]* | ?:[\\/]*) 10481 ac_cv_path_po4a_gettextize="$po4a_gettextize" # Let the user override the test with a path. 10482 ;; 10483 *) 10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10485for as_dir in $PATH 10486do 10487 IFS=$as_save_IFS 10488 test -z "$as_dir" && as_dir=. 10489 for ac_exec_ext in '' $ac_executable_extensions; do 10490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10491 ac_cv_path_po4a_gettextize="$as_dir/$ac_word$ac_exec_ext" 10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10493 break 2 10494 fi 10495done 10496 done 10497IFS=$as_save_IFS 10498 10499 ;; 10500esac 10501fi 10502po4a_gettextize=$ac_cv_path_po4a_gettextize 10503if test -n "$po4a_gettextize"; then 10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $po4a_gettextize" >&5 10505$as_echo "$po4a_gettextize" >&6; } 10506else 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10508$as_echo "no" >&6; } 10509fi 10510 10511 10512# Extract the first word of "po4a-translate", so it can be a program name with args. 10513set dummy po4a-translate; ac_word=$2 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10515$as_echo_n "checking for $ac_word... " >&6; } 10516if ${ac_cv_path_po4a_translate+:} false; then : 10517 $as_echo_n "(cached) " >&6 10518else 10519 case $po4a_translate in 10520 [\\/]* | ?:[\\/]*) 10521 ac_cv_path_po4a_translate="$po4a_translate" # Let the user override the test with a path. 10522 ;; 10523 *) 10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10525for as_dir in $PATH 10526do 10527 IFS=$as_save_IFS 10528 test -z "$as_dir" && as_dir=. 10529 for ac_exec_ext in '' $ac_executable_extensions; do 10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10531 ac_cv_path_po4a_translate="$as_dir/$ac_word$ac_exec_ext" 10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10533 break 2 10534 fi 10535done 10536 done 10537IFS=$as_save_IFS 10538 10539 ;; 10540esac 10541fi 10542po4a_translate=$ac_cv_path_po4a_translate 10543if test -n "$po4a_translate"; then 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $po4a_translate" >&5 10545$as_echo "$po4a_translate" >&6; } 10546else 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10548$as_echo "no" >&6; } 10549fi 10550 10551 10552if test -z "$po4a_gettextize" -o -z "$po4a_translate" ; then 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: po4a was not found. If you want to change and compile \ 10554internationalized documentation, please install po4a" >&5 10555$as_echo "$as_me: WARNING: po4a was not found. If you want to change and compile \ 10556internationalized documentation, please install po4a" >&2;} 10557else 10558 have_po4a=yes 10559fi 10560 10561# Extract the first word of "onsgmls", so it can be a program name with args. 10562set dummy onsgmls; ac_word=$2 10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10564$as_echo_n "checking for $ac_word... " >&6; } 10565if ${ac_cv_path_onsgmls+:} false; then : 10566 $as_echo_n "(cached) " >&6 10567else 10568 case $onsgmls in 10569 [\\/]* | ?:[\\/]*) 10570 ac_cv_path_onsgmls="$onsgmls" # Let the user override the test with a path. 10571 ;; 10572 *) 10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10574for as_dir in $PATH 10575do 10576 IFS=$as_save_IFS 10577 test -z "$as_dir" && as_dir=. 10578 for ac_exec_ext in '' $ac_executable_extensions; do 10579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10580 ac_cv_path_onsgmls="$as_dir/$ac_word$ac_exec_ext" 10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10582 break 2 10583 fi 10584done 10585 done 10586IFS=$as_save_IFS 10587 10588 ;; 10589esac 10590fi 10591onsgmls=$ac_cv_path_onsgmls 10592if test -n "$onsgmls"; then 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $onsgmls" >&5 10594$as_echo "$onsgmls" >&6; } 10595else 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10597$as_echo "no" >&6; } 10598fi 10599 10600 10601if test -n "$onsgmls" ; then 10602 have_onsgmls=yes 10603fi 10604 10605# Extract the first word of "nsgmls", so it can be a program name with args. 10606set dummy nsgmls; ac_word=$2 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10608$as_echo_n "checking for $ac_word... " >&6; } 10609if ${ac_cv_path_nsgmls+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611else 10612 case $nsgmls in 10613 [\\/]* | ?:[\\/]*) 10614 ac_cv_path_nsgmls="$nsgmls" # Let the user override the test with a path. 10615 ;; 10616 *) 10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618for as_dir in $PATH 10619do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_path_nsgmls="$as_dir/$ac_word$ac_exec_ext" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628done 10629 done 10630IFS=$as_save_IFS 10631 10632 ;; 10633esac 10634fi 10635nsgmls=$ac_cv_path_nsgmls 10636if test -n "$nsgmls"; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nsgmls" >&5 10638$as_echo "$nsgmls" >&6; } 10639else 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10641$as_echo "no" >&6; } 10642fi 10643 10644 10645if test -n "$nsgmls" ; then 10646 have_nsgmls=yes 10647fi 10648 10649if test "x$have_nsgmls" = "x" -a "x$have_onsgmls" = "x"; then 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no onsgmls nor nsgmls was found. If you want to change \ 10651and compile internationalized documentation, please install opensp or sp" >&5 10652$as_echo "$as_me: WARNING: no onsgmls nor nsgmls was found. If you want to change \ 10653and compile internationalized documentation, please install opensp or sp" >&2;} 10654fi 10655 10656 if test "x$have_po4a" = "xyes" -a "x$have_onsgmls" = "xyes" -o \ 10657 "x$have_po4a" = "xyes" -a "x$have_nsgmls" = "xyes"; then 10658 HAVE_PO4A_TRUE= 10659 HAVE_PO4A_FALSE='#' 10660else 10661 HAVE_PO4A_TRUE='#' 10662 HAVE_PO4A_FALSE= 10663fi 10664 10665 10666############################################################ 10667# 10668# Checks for cygwin/mingw32 10669# 10670 10671 10672 10673 10674# if you want -mno-cygwin, then add it to MINGW_CFLAGS or CYGWIN_CFLAGS 10675# in your configure environment. After all you may or may not 10676# want to always force -mno-cygwin on all users. 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5 10678$as_echo_n "checking for windows... " >&6; } 10679WIN32=${WIN32:-no} 10680case $host_os in 10681 *cygwin* ) 10682 CFLAGS="$CFLAGS ${CYGWIN_CFLAGS}" 10683 CPPFLAGS="$CPPFLAGS ${CYGWIN_CPPFLAGS}" 10684 ;; 10685 10686 *mingw32* ) 10687 WIN32=yes 10688 CFLAGS="$CFLAGS ${MINGW_CFLAGS:--mms-bitfields -mwindows}" 10689 CPPFLAGS="$CPPFLAGS ${MINGW_CPPFLAGS:--mms-bitfields -mwindows}" 10690 ;; 10691esac 10692 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN32" >&5 10694$as_echo "$WIN32" >&6; } 10695 10696 if test x$WIN32 = xyes; then 10697 WIN32_TRUE= 10698 WIN32_FALSE='#' 10699else 10700 WIN32_TRUE='#' 10701 WIN32_FALSE= 10702fi 10703 10704 10705GERBV_PATH_DELIMETER=":" 10706GERBV_DIR_SEPARATOR_S="/" 10707GERBV_DIR_SEPARATOR_C='/' 10708if test "x$WIN32" = "xyes" ; then 10709 GERBV_PATH_DELIMETER=";" 10710 GERBV_DIR_SEPARATOR_S="\\\\" 10711 GERBV_DIR_SEPARATOR_C='\\' 10712fi 10713 10714 10715cat >>confdefs.h <<_ACEOF 10716#define GERBV_DIR_SEPARATOR_C '$GERBV_DIR_SEPARATOR_C' 10717_ACEOF 10718 10719 10720cat >>confdefs.h <<_ACEOF 10721#define GERBV_DIR_SEPARATOR_S "$GERBV_DIR_SEPARATOR_S" 10722_ACEOF 10723 10724 10725cat >>confdefs.h <<_ACEOF 10726#define GERBV_PATH_DELIMETER "$_PATH_DELIMETER" 10727_ACEOF 10728 10729 10730 10731# 10732# 10733############################################################ 10734 10735############################################################ 10736# 10737# Checks for our configure args 10738# 10739 10740debug=0 10741# Check whether --enable-debug was given. 10742if test "${enable_debug+set}" = set; then : 10743 enableval=$enable_debug; 10744 if test $enableval = "yes"; then 10745 debug=1 10746 fi 10747 10748else 10749 10750 debug=0 10751 10752fi 10753 10754 10755cat >>confdefs.h <<_ACEOF 10756#define DEBUG $debug 10757_ACEOF 10758 10759 10760cat >>confdefs.h <<_ACEOF 10761#define GERBV_DEFAULT_BORDER_COEFF 0.05 10762_ACEOF 10763 10764 10765# Check whether --enable-unit-mm was given. 10766if test "${enable_unit_mm+set}" = set; then : 10767 enableval=$enable_unit_mm; 10768 if test "$enableval" = "yes"; then 10769 default_unit="mm" 10770 fi 10771 10772fi 10773 10774if test "$default_unit" = "mm"; then 10775 10776$as_echo "#define GERBV_DEFAULT_UNIT GERBV_MMS" >>confdefs.h 10777 10778else 10779 10780$as_echo "#define GERBV_DEFAULT_UNIT GERBV_MILS" >>confdefs.h 10781 10782fi 10783 10784# 10785# 10786############################################################ 10787 10788 10789############################################################ 10790# 10791# Preliminary checks 10792# 10793 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10795$as_echo_n "checking whether build environment is sane... " >&6; } 10796# Reject unsafe characters in $srcdir or the absolute working directory 10797# name. Accept space and tab only in the latter. 10798am_lf=' 10799' 10800case `pwd` in 10801 *[\\\"\#\$\&\'\`$am_lf]*) 10802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10803esac 10804case $srcdir in 10805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10807esac 10808 10809# Do 'set' in a subshell so we don't clobber the current shell's 10810# arguments. Must try -L first in case configure is actually a 10811# symlink; some systems play weird games with the mod time of symlinks 10812# (eg FreeBSD returns the mod time of the symlink's containing 10813# directory). 10814if ( 10815 am_has_slept=no 10816 for am_try in 1 2; do 10817 echo "timestamp, slept: $am_has_slept" > conftest.file 10818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10819 if test "$*" = "X"; then 10820 # -L didn't work. 10821 set X `ls -t "$srcdir/configure" conftest.file` 10822 fi 10823 if test "$*" != "X $srcdir/configure conftest.file" \ 10824 && test "$*" != "X conftest.file $srcdir/configure"; then 10825 10826 # If neither matched, then we have a broken ls. This can happen 10827 # if, for instance, CONFIG_SHELL is bash and it inherits a 10828 # broken ls alias from the environment. This has actually 10829 # happened. Such a system could not be considered "sane". 10830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10831 alias in your environment" "$LINENO" 5 10832 fi 10833 if test "$2" = conftest.file || test $am_try -eq 2; then 10834 break 10835 fi 10836 # Just in case. 10837 sleep 1 10838 am_has_slept=yes 10839 done 10840 test "$2" = conftest.file 10841 ) 10842then 10843 # Ok. 10844 : 10845else 10846 as_fn_error $? "newly created file is older than distributed files! 10847Check your system clock" "$LINENO" 5 10848fi 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10850$as_echo "yes" >&6; } 10851# If we didn't sleep, we still need to ensure time stamps of config.status and 10852# generated files are strictly newer. 10853am_sleep_pid= 10854if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10855 ( sleep 1 ) & 10856 am_sleep_pid=$! 10857fi 10858 10859rm -f conftest.file 10860 10861 10862ac_ext=c 10863ac_cpp='$CPP $CPPFLAGS' 10864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10866ac_compiler_gnu=$ac_cv_c_compiler_gnu 10867if test -n "$ac_tool_prefix"; then 10868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10869set dummy ${ac_tool_prefix}gcc; ac_word=$2 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10871$as_echo_n "checking for $ac_word... " >&6; } 10872if ${ac_cv_prog_CC+:} false; then : 10873 $as_echo_n "(cached) " >&6 10874else 10875 if test -n "$CC"; then 10876 ac_cv_prog_CC="$CC" # Let the user override the test. 10877else 10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10879for as_dir in $PATH 10880do 10881 IFS=$as_save_IFS 10882 test -z "$as_dir" && as_dir=. 10883 for ac_exec_ext in '' $ac_executable_extensions; do 10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10885 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10887 break 2 10888 fi 10889done 10890 done 10891IFS=$as_save_IFS 10892 10893fi 10894fi 10895CC=$ac_cv_prog_CC 10896if test -n "$CC"; then 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10898$as_echo "$CC" >&6; } 10899else 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10901$as_echo "no" >&6; } 10902fi 10903 10904 10905fi 10906if test -z "$ac_cv_prog_CC"; then 10907 ac_ct_CC=$CC 10908 # Extract the first word of "gcc", so it can be a program name with args. 10909set dummy gcc; ac_word=$2 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10911$as_echo_n "checking for $ac_word... " >&6; } 10912if ${ac_cv_prog_ac_ct_CC+:} false; then : 10913 $as_echo_n "(cached) " >&6 10914else 10915 if test -n "$ac_ct_CC"; then 10916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10917else 10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10919for as_dir in $PATH 10920do 10921 IFS=$as_save_IFS 10922 test -z "$as_dir" && as_dir=. 10923 for ac_exec_ext in '' $ac_executable_extensions; do 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10925 ac_cv_prog_ac_ct_CC="gcc" 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10927 break 2 10928 fi 10929done 10930 done 10931IFS=$as_save_IFS 10932 10933fi 10934fi 10935ac_ct_CC=$ac_cv_prog_ac_ct_CC 10936if test -n "$ac_ct_CC"; then 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10938$as_echo "$ac_ct_CC" >&6; } 10939else 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10941$as_echo "no" >&6; } 10942fi 10943 10944 if test "x$ac_ct_CC" = x; then 10945 CC="" 10946 else 10947 case $cross_compiling:$ac_tool_warned in 10948yes:) 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10951ac_tool_warned=yes ;; 10952esac 10953 CC=$ac_ct_CC 10954 fi 10955else 10956 CC="$ac_cv_prog_CC" 10957fi 10958 10959if test -z "$CC"; then 10960 if test -n "$ac_tool_prefix"; then 10961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 10962set dummy ${ac_tool_prefix}cc; ac_word=$2 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10964$as_echo_n "checking for $ac_word... " >&6; } 10965if ${ac_cv_prog_CC+:} false; then : 10966 $as_echo_n "(cached) " >&6 10967else 10968 if test -n "$CC"; then 10969 ac_cv_prog_CC="$CC" # Let the user override the test. 10970else 10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10972for as_dir in $PATH 10973do 10974 IFS=$as_save_IFS 10975 test -z "$as_dir" && as_dir=. 10976 for ac_exec_ext in '' $ac_executable_extensions; do 10977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10978 ac_cv_prog_CC="${ac_tool_prefix}cc" 10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10980 break 2 10981 fi 10982done 10983 done 10984IFS=$as_save_IFS 10985 10986fi 10987fi 10988CC=$ac_cv_prog_CC 10989if test -n "$CC"; then 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10991$as_echo "$CC" >&6; } 10992else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10994$as_echo "no" >&6; } 10995fi 10996 10997 10998 fi 10999fi 11000if test -z "$CC"; then 11001 # Extract the first word of "cc", so it can be a program name with args. 11002set dummy cc; ac_word=$2 11003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11004$as_echo_n "checking for $ac_word... " >&6; } 11005if ${ac_cv_prog_CC+:} false; then : 11006 $as_echo_n "(cached) " >&6 11007else 11008 if test -n "$CC"; then 11009 ac_cv_prog_CC="$CC" # Let the user override the test. 11010else 11011 ac_prog_rejected=no 11012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11013for as_dir in $PATH 11014do 11015 IFS=$as_save_IFS 11016 test -z "$as_dir" && as_dir=. 11017 for ac_exec_ext in '' $ac_executable_extensions; do 11018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11020 ac_prog_rejected=yes 11021 continue 11022 fi 11023 ac_cv_prog_CC="cc" 11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11025 break 2 11026 fi 11027done 11028 done 11029IFS=$as_save_IFS 11030 11031if test $ac_prog_rejected = yes; then 11032 # We found a bogon in the path, so make sure we never use it. 11033 set dummy $ac_cv_prog_CC 11034 shift 11035 if test $# != 0; then 11036 # We chose a different compiler from the bogus one. 11037 # However, it has the same basename, so the bogon will be chosen 11038 # first if we set CC to just the basename; use the full file name. 11039 shift 11040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11041 fi 11042fi 11043fi 11044fi 11045CC=$ac_cv_prog_CC 11046if test -n "$CC"; then 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11048$as_echo "$CC" >&6; } 11049else 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11051$as_echo "no" >&6; } 11052fi 11053 11054 11055fi 11056if test -z "$CC"; then 11057 if test -n "$ac_tool_prefix"; then 11058 for ac_prog in cl.exe 11059 do 11060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11061set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11063$as_echo_n "checking for $ac_word... " >&6; } 11064if ${ac_cv_prog_CC+:} false; then : 11065 $as_echo_n "(cached) " >&6 11066else 11067 if test -n "$CC"; then 11068 ac_cv_prog_CC="$CC" # Let the user override the test. 11069else 11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11071for as_dir in $PATH 11072do 11073 IFS=$as_save_IFS 11074 test -z "$as_dir" && as_dir=. 11075 for ac_exec_ext in '' $ac_executable_extensions; do 11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11079 break 2 11080 fi 11081done 11082 done 11083IFS=$as_save_IFS 11084 11085fi 11086fi 11087CC=$ac_cv_prog_CC 11088if test -n "$CC"; then 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11090$as_echo "$CC" >&6; } 11091else 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11093$as_echo "no" >&6; } 11094fi 11095 11096 11097 test -n "$CC" && break 11098 done 11099fi 11100if test -z "$CC"; then 11101 ac_ct_CC=$CC 11102 for ac_prog in cl.exe 11103do 11104 # Extract the first word of "$ac_prog", so it can be a program name with args. 11105set dummy $ac_prog; ac_word=$2 11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11107$as_echo_n "checking for $ac_word... " >&6; } 11108if ${ac_cv_prog_ac_ct_CC+:} false; then : 11109 $as_echo_n "(cached) " >&6 11110else 11111 if test -n "$ac_ct_CC"; then 11112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11113else 11114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11115for as_dir in $PATH 11116do 11117 IFS=$as_save_IFS 11118 test -z "$as_dir" && as_dir=. 11119 for ac_exec_ext in '' $ac_executable_extensions; do 11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11121 ac_cv_prog_ac_ct_CC="$ac_prog" 11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11123 break 2 11124 fi 11125done 11126 done 11127IFS=$as_save_IFS 11128 11129fi 11130fi 11131ac_ct_CC=$ac_cv_prog_ac_ct_CC 11132if test -n "$ac_ct_CC"; then 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11134$as_echo "$ac_ct_CC" >&6; } 11135else 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11137$as_echo "no" >&6; } 11138fi 11139 11140 11141 test -n "$ac_ct_CC" && break 11142done 11143 11144 if test "x$ac_ct_CC" = x; then 11145 CC="" 11146 else 11147 case $cross_compiling:$ac_tool_warned in 11148yes:) 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11151ac_tool_warned=yes ;; 11152esac 11153 CC=$ac_ct_CC 11154 fi 11155fi 11156 11157fi 11158 11159 11160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11162as_fn_error $? "no acceptable C compiler found in \$PATH 11163See \`config.log' for more details" "$LINENO" 5; } 11164 11165# Provide some information about the compiler. 11166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11167set X $ac_compile 11168ac_compiler=$2 11169for ac_option in --version -v -V -qversion; do 11170 { { ac_try="$ac_compiler $ac_option >&5" 11171case "(($ac_try" in 11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11173 *) ac_try_echo=$ac_try;; 11174esac 11175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11176$as_echo "$ac_try_echo"; } >&5 11177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11178 ac_status=$? 11179 if test -s conftest.err; then 11180 sed '10a\ 11181... rest of stderr output deleted ... 11182 10q' conftest.err >conftest.er1 11183 cat conftest.er1 >&5 11184 fi 11185 rm -f conftest.er1 conftest.err 11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11187 test $ac_status = 0; } 11188done 11189 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11191$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11192if ${ac_cv_c_compiler_gnu+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194else 11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11196/* end confdefs.h. */ 11197 11198int 11199main () 11200{ 11201#ifndef __GNUC__ 11202 choke me 11203#endif 11204 11205 ; 11206 return 0; 11207} 11208_ACEOF 11209if ac_fn_c_try_compile "$LINENO"; then : 11210 ac_compiler_gnu=yes 11211else 11212 ac_compiler_gnu=no 11213fi 11214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11215ac_cv_c_compiler_gnu=$ac_compiler_gnu 11216 11217fi 11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11219$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11220if test $ac_compiler_gnu = yes; then 11221 GCC=yes 11222else 11223 GCC= 11224fi 11225ac_test_CFLAGS=${CFLAGS+set} 11226ac_save_CFLAGS=$CFLAGS 11227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11228$as_echo_n "checking whether $CC accepts -g... " >&6; } 11229if ${ac_cv_prog_cc_g+:} false; then : 11230 $as_echo_n "(cached) " >&6 11231else 11232 ac_save_c_werror_flag=$ac_c_werror_flag 11233 ac_c_werror_flag=yes 11234 ac_cv_prog_cc_g=no 11235 CFLAGS="-g" 11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11237/* end confdefs.h. */ 11238 11239int 11240main () 11241{ 11242 11243 ; 11244 return 0; 11245} 11246_ACEOF 11247if ac_fn_c_try_compile "$LINENO"; then : 11248 ac_cv_prog_cc_g=yes 11249else 11250 CFLAGS="" 11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11252/* end confdefs.h. */ 11253 11254int 11255main () 11256{ 11257 11258 ; 11259 return 0; 11260} 11261_ACEOF 11262if ac_fn_c_try_compile "$LINENO"; then : 11263 11264else 11265 ac_c_werror_flag=$ac_save_c_werror_flag 11266 CFLAGS="-g" 11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11268/* end confdefs.h. */ 11269 11270int 11271main () 11272{ 11273 11274 ; 11275 return 0; 11276} 11277_ACEOF 11278if ac_fn_c_try_compile "$LINENO"; then : 11279 ac_cv_prog_cc_g=yes 11280fi 11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11282fi 11283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11284fi 11285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11286 ac_c_werror_flag=$ac_save_c_werror_flag 11287fi 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11289$as_echo "$ac_cv_prog_cc_g" >&6; } 11290if test "$ac_test_CFLAGS" = set; then 11291 CFLAGS=$ac_save_CFLAGS 11292elif test $ac_cv_prog_cc_g = yes; then 11293 if test "$GCC" = yes; then 11294 CFLAGS="-g -O2" 11295 else 11296 CFLAGS="-g" 11297 fi 11298else 11299 if test "$GCC" = yes; then 11300 CFLAGS="-O2" 11301 else 11302 CFLAGS= 11303 fi 11304fi 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11306$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11307if ${ac_cv_prog_cc_c89+:} false; then : 11308 $as_echo_n "(cached) " >&6 11309else 11310 ac_cv_prog_cc_c89=no 11311ac_save_CC=$CC 11312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314#include <stdarg.h> 11315#include <stdio.h> 11316struct stat; 11317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11318struct buf { int x; }; 11319FILE * (*rcsopen) (struct buf *, struct stat *, int); 11320static char *e (p, i) 11321 char **p; 11322 int i; 11323{ 11324 return p[i]; 11325} 11326static char *f (char * (*g) (char **, int), char **p, ...) 11327{ 11328 char *s; 11329 va_list v; 11330 va_start (v,p); 11331 s = g (p, va_arg (v,int)); 11332 va_end (v); 11333 return s; 11334} 11335 11336/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11337 function prototypes and stuff, but not '\xHH' hex character constants. 11338 These don't provoke an error unfortunately, instead are silently treated 11339 as 'x'. The following induces an error, until -std is added to get 11340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11341 array size at least. It's necessary to write '\x00'==0 to get something 11342 that's true only with -std. */ 11343int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11344 11345/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11346 inside strings and character constants. */ 11347#define FOO(x) 'x' 11348int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11349 11350int test (int i, double x); 11351struct s1 {int (*f) (int a);}; 11352struct s2 {int (*f) (double a);}; 11353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11354int argc; 11355char **argv; 11356int 11357main () 11358{ 11359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11366do 11367 CC="$ac_save_CC $ac_arg" 11368 if ac_fn_c_try_compile "$LINENO"; then : 11369 ac_cv_prog_cc_c89=$ac_arg 11370fi 11371rm -f core conftest.err conftest.$ac_objext 11372 test "x$ac_cv_prog_cc_c89" != "xno" && break 11373done 11374rm -f conftest.$ac_ext 11375CC=$ac_save_CC 11376 11377fi 11378# AC_CACHE_VAL 11379case "x$ac_cv_prog_cc_c89" in 11380 x) 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11382$as_echo "none needed" >&6; } ;; 11383 xno) 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11385$as_echo "unsupported" >&6; } ;; 11386 *) 11387 CC="$CC $ac_cv_prog_cc_c89" 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11389$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11390esac 11391if test "x$ac_cv_prog_cc_c89" != xno; then : 11392 11393fi 11394 11395ac_ext=c 11396ac_cpp='$CPP $CPPFLAGS' 11397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11399ac_compiler_gnu=$ac_cv_c_compiler_gnu 11400 11401ac_ext=c 11402ac_cpp='$CPP $CPPFLAGS' 11403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11405ac_compiler_gnu=$ac_cv_c_compiler_gnu 11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 11407$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 11408if ${am_cv_prog_cc_c_o+:} false; then : 11409 $as_echo_n "(cached) " >&6 11410else 11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11412/* end confdefs.h. */ 11413 11414int 11415main () 11416{ 11417 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422 # Make sure it works both with $CC and with simple cc. 11423 # Following AC_PROG_CC_C_O, we do the test twice because some 11424 # compilers refuse to overwrite an existing .o file with -o, 11425 # though they will create one. 11426 am_cv_prog_cc_c_o=yes 11427 for am_i in 1 2; do 11428 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 11429 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 11430 ac_status=$? 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 (exit $ac_status); } \ 11433 && test -f conftest2.$ac_objext; then 11434 : OK 11435 else 11436 am_cv_prog_cc_c_o=no 11437 break 11438 fi 11439 done 11440 rm -f core conftest* 11441 unset am_i 11442fi 11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 11444$as_echo "$am_cv_prog_cc_c_o" >&6; } 11445if test "$am_cv_prog_cc_c_o" != yes; then 11446 # Losing compiler, so override with the script. 11447 # FIXME: It is wrong to rewrite CC. 11448 # But if we don't then we get into trouble of one sort or another. 11449 # A longer-term fix would be to have automake use am__CC in this case, 11450 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11451 CC="$am_aux_dir/compile $CC" 11452fi 11453ac_ext=c 11454ac_cpp='$CPP $CPPFLAGS' 11455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11457ac_compiler_gnu=$ac_cv_c_compiler_gnu 11458 11459 11460depcc="$CC" am_compiler_list= 11461 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11463$as_echo_n "checking dependency style of $depcc... " >&6; } 11464if ${am_cv_CC_dependencies_compiler_type+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11468 # We make a subdir and do the tests there. Otherwise we can end up 11469 # making bogus files that we don't know about and never remove. For 11470 # instance it was reported that on HP-UX the gcc test will end up 11471 # making a dummy file named 'D' -- because '-MD' means "put the output 11472 # in D". 11473 rm -rf conftest.dir 11474 mkdir conftest.dir 11475 # Copy depcomp to subdir because otherwise we won't find it if we're 11476 # using a relative directory. 11477 cp "$am_depcomp" conftest.dir 11478 cd conftest.dir 11479 # We will build objects and dependencies in a subdirectory because 11480 # it helps to detect inapplicable dependency modes. For instance 11481 # both Tru64's cc and ICC support -MD to output dependencies as a 11482 # side effect of compilation, but ICC will put the dependencies in 11483 # the current directory while Tru64 will put them in the object 11484 # directory. 11485 mkdir sub 11486 11487 am_cv_CC_dependencies_compiler_type=none 11488 if test "$am_compiler_list" = ""; then 11489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11490 fi 11491 am__universal=false 11492 case " $depcc " in #( 11493 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11494 esac 11495 11496 for depmode in $am_compiler_list; do 11497 # Setup a source with many dependencies, because some compilers 11498 # like to wrap large dependency lists on column 80 (with \), and 11499 # we should not choose a depcomp mode which is confused by this. 11500 # 11501 # We need to recreate these files for each test, as the compiler may 11502 # overwrite some of them when testing with obscure command lines. 11503 # This happens at least with the AIX C compiler. 11504 : > sub/conftest.c 11505 for i in 1 2 3 4 5 6; do 11506 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11508 # Solaris 10 /bin/sh. 11509 echo '/* dummy */' > sub/conftst$i.h 11510 done 11511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11512 11513 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11514 # mode. It turns out that the SunPro C++ compiler does not properly 11515 # handle '-M -o', and we need to detect this. Also, some Intel 11516 # versions had trouble with output in subdirs. 11517 am__obj=sub/conftest.${OBJEXT-o} 11518 am__minus_obj="-o $am__obj" 11519 case $depmode in 11520 gcc) 11521 # This depmode causes a compiler race in universal mode. 11522 test "$am__universal" = false || continue 11523 ;; 11524 nosideeffect) 11525 # After this tag, mechanisms are not by side-effect, so they'll 11526 # only be used when explicitly requested. 11527 if test "x$enable_dependency_tracking" = xyes; then 11528 continue 11529 else 11530 break 11531 fi 11532 ;; 11533 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11534 # This compiler won't grok '-c -o', but also, the minuso test has 11535 # not run yet. These depmodes are late enough in the game, and 11536 # so weak that their functioning should not be impacted. 11537 am__obj=conftest.${OBJEXT-o} 11538 am__minus_obj= 11539 ;; 11540 none) break ;; 11541 esac 11542 if depmode=$depmode \ 11543 source=sub/conftest.c object=$am__obj \ 11544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11546 >/dev/null 2>conftest.err && 11547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11551 # icc doesn't choke on unknown options, it will just issue warnings 11552 # or remarks (even with -Werror). So we grep stderr for any message 11553 # that says an option was ignored or not supported. 11554 # When given -MP, icc 7.0 and 7.1 complain thusly: 11555 # icc: Command line warning: ignoring option '-M'; no argument required 11556 # The diagnosis changed in icc 8.0: 11557 # icc: Command line remark: option '-MP' not supported 11558 if (grep 'ignoring option' conftest.err || 11559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11560 am_cv_CC_dependencies_compiler_type=$depmode 11561 break 11562 fi 11563 fi 11564 done 11565 11566 cd .. 11567 rm -rf conftest.dir 11568else 11569 am_cv_CC_dependencies_compiler_type=none 11570fi 11571 11572fi 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11574$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11575CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11576 11577 if 11578 test "x$enable_dependency_tracking" != xno \ 11579 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11580 am__fastdepCC_TRUE= 11581 am__fastdepCC_FALSE='#' 11582else 11583 am__fastdepCC_TRUE='#' 11584 am__fastdepCC_FALSE= 11585fi 11586 11587 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11589$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11590if ${ac_cv_prog_cc_c99+:} false; then : 11591 $as_echo_n "(cached) " >&6 11592else 11593 ac_cv_prog_cc_c99=no 11594ac_save_CC=$CC 11595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11596/* end confdefs.h. */ 11597#include <stdarg.h> 11598#include <stdbool.h> 11599#include <stdlib.h> 11600#include <wchar.h> 11601#include <stdio.h> 11602 11603// Check varargs macros. These examples are taken from C99 6.10.3.5. 11604#define debug(...) fprintf (stderr, __VA_ARGS__) 11605#define showlist(...) puts (#__VA_ARGS__) 11606#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11607static void 11608test_varargs_macros (void) 11609{ 11610 int x = 1234; 11611 int y = 5678; 11612 debug ("Flag"); 11613 debug ("X = %d\n", x); 11614 showlist (The first, second, and third items.); 11615 report (x>y, "x is %d but y is %d", x, y); 11616} 11617 11618// Check long long types. 11619#define BIG64 18446744073709551615ull 11620#define BIG32 4294967295ul 11621#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11622#if !BIG_OK 11623 your preprocessor is broken; 11624#endif 11625#if BIG_OK 11626#else 11627 your preprocessor is broken; 11628#endif 11629static long long int bignum = -9223372036854775807LL; 11630static unsigned long long int ubignum = BIG64; 11631 11632struct incomplete_array 11633{ 11634 int datasize; 11635 double data[]; 11636}; 11637 11638struct named_init { 11639 int number; 11640 const wchar_t *name; 11641 double average; 11642}; 11643 11644typedef const char *ccp; 11645 11646static inline int 11647test_restrict (ccp restrict text) 11648{ 11649 // See if C++-style comments work. 11650 // Iterate through items via the restricted pointer. 11651 // Also check for declarations in for loops. 11652 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11653 continue; 11654 return 0; 11655} 11656 11657// Check varargs and va_copy. 11658static void 11659test_varargs (const char *format, ...) 11660{ 11661 va_list args; 11662 va_start (args, format); 11663 va_list args_copy; 11664 va_copy (args_copy, args); 11665 11666 const char *str; 11667 int number; 11668 float fnumber; 11669 11670 while (*format) 11671 { 11672 switch (*format++) 11673 { 11674 case 's': // string 11675 str = va_arg (args_copy, const char *); 11676 break; 11677 case 'd': // int 11678 number = va_arg (args_copy, int); 11679 break; 11680 case 'f': // float 11681 fnumber = va_arg (args_copy, double); 11682 break; 11683 default: 11684 break; 11685 } 11686 } 11687 va_end (args_copy); 11688 va_end (args); 11689} 11690 11691int 11692main () 11693{ 11694 11695 // Check bool. 11696 _Bool success = false; 11697 11698 // Check restrict. 11699 if (test_restrict ("String literal") == 0) 11700 success = true; 11701 char *restrict newvar = "Another string"; 11702 11703 // Check varargs. 11704 test_varargs ("s, d' f .", "string", 65, 34.234); 11705 test_varargs_macros (); 11706 11707 // Check flexible array members. 11708 struct incomplete_array *ia = 11709 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11710 ia->datasize = 10; 11711 for (int i = 0; i < ia->datasize; ++i) 11712 ia->data[i] = i * 1.234; 11713 11714 // Check named initializers. 11715 struct named_init ni = { 11716 .number = 34, 11717 .name = L"Test wide string", 11718 .average = 543.34343, 11719 }; 11720 11721 ni.number = 58; 11722 11723 int dynamic_array[ni.number]; 11724 dynamic_array[ni.number - 1] = 543; 11725 11726 // work around unused variable warnings 11727 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11728 || dynamic_array[ni.number - 1] != 543); 11729 11730 ; 11731 return 0; 11732} 11733_ACEOF 11734for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11735do 11736 CC="$ac_save_CC $ac_arg" 11737 if ac_fn_c_try_compile "$LINENO"; then : 11738 ac_cv_prog_cc_c99=$ac_arg 11739fi 11740rm -f core conftest.err conftest.$ac_objext 11741 test "x$ac_cv_prog_cc_c99" != "xno" && break 11742done 11743rm -f conftest.$ac_ext 11744CC=$ac_save_CC 11745 11746fi 11747# AC_CACHE_VAL 11748case "x$ac_cv_prog_cc_c99" in 11749 x) 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11751$as_echo "none needed" >&6; } ;; 11752 xno) 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11754$as_echo "unsupported" >&6; } ;; 11755 *) 11756 CC="$CC $ac_cv_prog_cc_c99" 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11758$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11759esac 11760if test "x$ac_cv_prog_cc_c99" != xno; then : 11761 11762fi 11763 11764 11765if test "x$enable_dxf " != "xno" ; then 11766ac_ext=cpp 11767ac_cpp='$CXXCPP $CPPFLAGS' 11768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11771if test -z "$CXX"; then 11772 if test -n "$CCC"; then 11773 CXX=$CCC 11774 else 11775 if test -n "$ac_tool_prefix"; then 11776 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11777 do 11778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11779set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11781$as_echo_n "checking for $ac_word... " >&6; } 11782if ${ac_cv_prog_CXX+:} false; then : 11783 $as_echo_n "(cached) " >&6 11784else 11785 if test -n "$CXX"; then 11786 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11787else 11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11789for as_dir in $PATH 11790do 11791 IFS=$as_save_IFS 11792 test -z "$as_dir" && as_dir=. 11793 for ac_exec_ext in '' $ac_executable_extensions; do 11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11797 break 2 11798 fi 11799done 11800 done 11801IFS=$as_save_IFS 11802 11803fi 11804fi 11805CXX=$ac_cv_prog_CXX 11806if test -n "$CXX"; then 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11808$as_echo "$CXX" >&6; } 11809else 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11811$as_echo "no" >&6; } 11812fi 11813 11814 11815 test -n "$CXX" && break 11816 done 11817fi 11818if test -z "$CXX"; then 11819 ac_ct_CXX=$CXX 11820 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11821do 11822 # Extract the first word of "$ac_prog", so it can be a program name with args. 11823set dummy $ac_prog; ac_word=$2 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11825$as_echo_n "checking for $ac_word... " >&6; } 11826if ${ac_cv_prog_ac_ct_CXX+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 if test -n "$ac_ct_CXX"; then 11830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11831else 11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11833for as_dir in $PATH 11834do 11835 IFS=$as_save_IFS 11836 test -z "$as_dir" && as_dir=. 11837 for ac_exec_ext in '' $ac_executable_extensions; do 11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11839 ac_cv_prog_ac_ct_CXX="$ac_prog" 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11841 break 2 11842 fi 11843done 11844 done 11845IFS=$as_save_IFS 11846 11847fi 11848fi 11849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11850if test -n "$ac_ct_CXX"; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11852$as_echo "$ac_ct_CXX" >&6; } 11853else 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11855$as_echo "no" >&6; } 11856fi 11857 11858 11859 test -n "$ac_ct_CXX" && break 11860done 11861 11862 if test "x$ac_ct_CXX" = x; then 11863 CXX="g++" 11864 else 11865 case $cross_compiling:$ac_tool_warned in 11866yes:) 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11869ac_tool_warned=yes ;; 11870esac 11871 CXX=$ac_ct_CXX 11872 fi 11873fi 11874 11875 fi 11876fi 11877# Provide some information about the compiler. 11878$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11879set X $ac_compile 11880ac_compiler=$2 11881for ac_option in --version -v -V -qversion; do 11882 { { ac_try="$ac_compiler $ac_option >&5" 11883case "(($ac_try" in 11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11885 *) ac_try_echo=$ac_try;; 11886esac 11887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11888$as_echo "$ac_try_echo"; } >&5 11889 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11890 ac_status=$? 11891 if test -s conftest.err; then 11892 sed '10a\ 11893... rest of stderr output deleted ... 11894 10q' conftest.err >conftest.er1 11895 cat conftest.er1 >&5 11896 fi 11897 rm -f conftest.er1 conftest.err 11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11899 test $ac_status = 0; } 11900done 11901 11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11903$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11904if ${ac_cv_cxx_compiler_gnu+:} false; then : 11905 $as_echo_n "(cached) " >&6 11906else 11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11908/* end confdefs.h. */ 11909 11910int 11911main () 11912{ 11913#ifndef __GNUC__ 11914 choke me 11915#endif 11916 11917 ; 11918 return 0; 11919} 11920_ACEOF 11921if ac_fn_cxx_try_compile "$LINENO"; then : 11922 ac_compiler_gnu=yes 11923else 11924 ac_compiler_gnu=no 11925fi 11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11927ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11928 11929fi 11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11931$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11932if test $ac_compiler_gnu = yes; then 11933 GXX=yes 11934else 11935 GXX= 11936fi 11937ac_test_CXXFLAGS=${CXXFLAGS+set} 11938ac_save_CXXFLAGS=$CXXFLAGS 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11940$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11941if ${ac_cv_prog_cxx_g+:} false; then : 11942 $as_echo_n "(cached) " >&6 11943else 11944 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11945 ac_cxx_werror_flag=yes 11946 ac_cv_prog_cxx_g=no 11947 CXXFLAGS="-g" 11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11949/* end confdefs.h. */ 11950 11951int 11952main () 11953{ 11954 11955 ; 11956 return 0; 11957} 11958_ACEOF 11959if ac_fn_cxx_try_compile "$LINENO"; then : 11960 ac_cv_prog_cxx_g=yes 11961else 11962 CXXFLAGS="" 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965 11966int 11967main () 11968{ 11969 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974if ac_fn_cxx_try_compile "$LINENO"; then : 11975 11976else 11977 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11978 CXXFLAGS="-g" 11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981 11982int 11983main () 11984{ 11985 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_cxx_try_compile "$LINENO"; then : 11991 ac_cv_prog_cxx_g=yes 11992fi 11993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11994fi 11995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11996fi 11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11998 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11999fi 12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12001$as_echo "$ac_cv_prog_cxx_g" >&6; } 12002if test "$ac_test_CXXFLAGS" = set; then 12003 CXXFLAGS=$ac_save_CXXFLAGS 12004elif test $ac_cv_prog_cxx_g = yes; then 12005 if test "$GXX" = yes; then 12006 CXXFLAGS="-g -O2" 12007 else 12008 CXXFLAGS="-g" 12009 fi 12010else 12011 if test "$GXX" = yes; then 12012 CXXFLAGS="-O2" 12013 else 12014 CXXFLAGS= 12015 fi 12016fi 12017ac_ext=c 12018ac_cpp='$CPP $CPPFLAGS' 12019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12021ac_compiler_gnu=$ac_cv_c_compiler_gnu 12022 12023depcc="$CXX" am_compiler_list= 12024 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12026$as_echo_n "checking dependency style of $depcc... " >&6; } 12027if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12028 $as_echo_n "(cached) " >&6 12029else 12030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12031 # We make a subdir and do the tests there. Otherwise we can end up 12032 # making bogus files that we don't know about and never remove. For 12033 # instance it was reported that on HP-UX the gcc test will end up 12034 # making a dummy file named 'D' -- because '-MD' means "put the output 12035 # in D". 12036 rm -rf conftest.dir 12037 mkdir conftest.dir 12038 # Copy depcomp to subdir because otherwise we won't find it if we're 12039 # using a relative directory. 12040 cp "$am_depcomp" conftest.dir 12041 cd conftest.dir 12042 # We will build objects and dependencies in a subdirectory because 12043 # it helps to detect inapplicable dependency modes. For instance 12044 # both Tru64's cc and ICC support -MD to output dependencies as a 12045 # side effect of compilation, but ICC will put the dependencies in 12046 # the current directory while Tru64 will put them in the object 12047 # directory. 12048 mkdir sub 12049 12050 am_cv_CXX_dependencies_compiler_type=none 12051 if test "$am_compiler_list" = ""; then 12052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12053 fi 12054 am__universal=false 12055 case " $depcc " in #( 12056 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12057 esac 12058 12059 for depmode in $am_compiler_list; do 12060 # Setup a source with many dependencies, because some compilers 12061 # like to wrap large dependency lists on column 80 (with \), and 12062 # we should not choose a depcomp mode which is confused by this. 12063 # 12064 # We need to recreate these files for each test, as the compiler may 12065 # overwrite some of them when testing with obscure command lines. 12066 # This happens at least with the AIX C compiler. 12067 : > sub/conftest.c 12068 for i in 1 2 3 4 5 6; do 12069 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12070 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12071 # Solaris 10 /bin/sh. 12072 echo '/* dummy */' > sub/conftst$i.h 12073 done 12074 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12075 12076 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12077 # mode. It turns out that the SunPro C++ compiler does not properly 12078 # handle '-M -o', and we need to detect this. Also, some Intel 12079 # versions had trouble with output in subdirs. 12080 am__obj=sub/conftest.${OBJEXT-o} 12081 am__minus_obj="-o $am__obj" 12082 case $depmode in 12083 gcc) 12084 # This depmode causes a compiler race in universal mode. 12085 test "$am__universal" = false || continue 12086 ;; 12087 nosideeffect) 12088 # After this tag, mechanisms are not by side-effect, so they'll 12089 # only be used when explicitly requested. 12090 if test "x$enable_dependency_tracking" = xyes; then 12091 continue 12092 else 12093 break 12094 fi 12095 ;; 12096 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12097 # This compiler won't grok '-c -o', but also, the minuso test has 12098 # not run yet. These depmodes are late enough in the game, and 12099 # so weak that their functioning should not be impacted. 12100 am__obj=conftest.${OBJEXT-o} 12101 am__minus_obj= 12102 ;; 12103 none) break ;; 12104 esac 12105 if depmode=$depmode \ 12106 source=sub/conftest.c object=$am__obj \ 12107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12108 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12109 >/dev/null 2>conftest.err && 12110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12112 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12114 # icc doesn't choke on unknown options, it will just issue warnings 12115 # or remarks (even with -Werror). So we grep stderr for any message 12116 # that says an option was ignored or not supported. 12117 # When given -MP, icc 7.0 and 7.1 complain thusly: 12118 # icc: Command line warning: ignoring option '-M'; no argument required 12119 # The diagnosis changed in icc 8.0: 12120 # icc: Command line remark: option '-MP' not supported 12121 if (grep 'ignoring option' conftest.err || 12122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12123 am_cv_CXX_dependencies_compiler_type=$depmode 12124 break 12125 fi 12126 fi 12127 done 12128 12129 cd .. 12130 rm -rf conftest.dir 12131else 12132 am_cv_CXX_dependencies_compiler_type=none 12133fi 12134 12135fi 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12137$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12138CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12139 12140 if 12141 test "x$enable_dependency_tracking" != xno \ 12142 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12143 am__fastdepCXX_TRUE= 12144 am__fastdepCXX_FALSE='#' 12145else 12146 am__fastdepCXX_TRUE='#' 12147 am__fastdepCXX_FALSE= 12148fi 12149 12150 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12153$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12154set x ${MAKE-make} 12155ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12156if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 cat >conftest.make <<\_ACEOF 12160SHELL = /bin/sh 12161all: 12162 @echo '@@@%%%=$(MAKE)=@@@%%%' 12163_ACEOF 12164# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12165case `${MAKE-make} -f conftest.make 2>/dev/null` in 12166 *@@@%%%=?*=@@@%%%*) 12167 eval ac_cv_prog_make_${ac_make}_set=yes;; 12168 *) 12169 eval ac_cv_prog_make_${ac_make}_set=no;; 12170esac 12171rm -f conftest.make 12172fi 12173if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12175$as_echo "yes" >&6; } 12176 SET_MAKE= 12177else 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12179$as_echo "no" >&6; } 12180 SET_MAKE="MAKE=${MAKE-make}" 12181fi 12182 12183 12184case `pwd` in 12185 *\ * | *\ *) 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12187$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12188esac 12189 12190 12191 12192macro_version='2.4.6' 12193macro_revision='2.4.6' 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207ltmain=$ac_aux_dir/ltmain.sh 12208 12209# Backslashify metacharacters that are still active within 12210# double-quoted strings. 12211sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12212 12213# Same as above, but do not quote variable references. 12214double_quote_subst='s/\(["`\\]\)/\\\1/g' 12215 12216# Sed substitution to delay expansion of an escaped shell variable in a 12217# double_quote_subst'ed string. 12218delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12219 12220# Sed substitution to delay expansion of an escaped single quote. 12221delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12222 12223# Sed substitution to avoid accidental globbing in evaled expressions 12224no_glob_subst='s/\*/\\\*/g' 12225 12226ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12227ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12228ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12229 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 12231$as_echo_n "checking how to print strings... " >&6; } 12232# Test print first, because it will be a builtin if present. 12233if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 12234 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 12235 ECHO='print -r --' 12236elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 12237 ECHO='printf %s\n' 12238else 12239 # Use this function as a fallback that always works. 12240 func_fallback_echo () 12241 { 12242 eval 'cat <<_LTECHO_EOF 12243$1 12244_LTECHO_EOF' 12245 } 12246 ECHO='func_fallback_echo' 12247fi 12248 12249# func_echo_all arg... 12250# Invoke $ECHO with all args, space-separated. 12251func_echo_all () 12252{ 12253 $ECHO "" 12254} 12255 12256case $ECHO in 12257 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 12258$as_echo "printf" >&6; } ;; 12259 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 12260$as_echo "print -r" >&6; } ;; 12261 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 12262$as_echo "cat" >&6; } ;; 12263esac 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12279$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12280if ${ac_cv_path_SED+:} false; then : 12281 $as_echo_n "(cached) " >&6 12282else 12283 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12284 for ac_i in 1 2 3 4 5 6 7; do 12285 ac_script="$ac_script$as_nl$ac_script" 12286 done 12287 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12288 { ac_script=; unset ac_script;} 12289 if test -z "$SED"; then 12290 ac_path_SED_found=false 12291 # Loop through the user's path and test for each of PROGNAME-LIST 12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12293for as_dir in $PATH 12294do 12295 IFS=$as_save_IFS 12296 test -z "$as_dir" && as_dir=. 12297 for ac_prog in sed gsed; do 12298 for ac_exec_ext in '' $ac_executable_extensions; do 12299 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12300 as_fn_executable_p "$ac_path_SED" || continue 12301# Check for GNU ac_path_SED and select it if it is found. 12302 # Check for GNU $ac_path_SED 12303case `"$ac_path_SED" --version 2>&1` in 12304*GNU*) 12305 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12306*) 12307 ac_count=0 12308 $as_echo_n 0123456789 >"conftest.in" 12309 while : 12310 do 12311 cat "conftest.in" "conftest.in" >"conftest.tmp" 12312 mv "conftest.tmp" "conftest.in" 12313 cp "conftest.in" "conftest.nl" 12314 $as_echo '' >> "conftest.nl" 12315 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12317 as_fn_arith $ac_count + 1 && ac_count=$as_val 12318 if test $ac_count -gt ${ac_path_SED_max-0}; then 12319 # Best one so far, save it but keep looking for a better one 12320 ac_cv_path_SED="$ac_path_SED" 12321 ac_path_SED_max=$ac_count 12322 fi 12323 # 10*(2^10) chars as input seems more than enough 12324 test $ac_count -gt 10 && break 12325 done 12326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12327esac 12328 12329 $ac_path_SED_found && break 3 12330 done 12331 done 12332 done 12333IFS=$as_save_IFS 12334 if test -z "$ac_cv_path_SED"; then 12335 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12336 fi 12337else 12338 ac_cv_path_SED=$SED 12339fi 12340 12341fi 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12343$as_echo "$ac_cv_path_SED" >&6; } 12344 SED="$ac_cv_path_SED" 12345 rm -f conftest.sed 12346 12347test -z "$SED" && SED=sed 12348Xsed="$SED -e 1s/^X//" 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12361$as_echo_n "checking for fgrep... " >&6; } 12362if ${ac_cv_path_FGREP+:} false; then : 12363 $as_echo_n "(cached) " >&6 12364else 12365 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12366 then ac_cv_path_FGREP="$GREP -F" 12367 else 12368 if test -z "$FGREP"; then 12369 ac_path_FGREP_found=false 12370 # Loop through the user's path and test for each of PROGNAME-LIST 12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12372for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12373do 12374 IFS=$as_save_IFS 12375 test -z "$as_dir" && as_dir=. 12376 for ac_prog in fgrep; do 12377 for ac_exec_ext in '' $ac_executable_extensions; do 12378 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12379 as_fn_executable_p "$ac_path_FGREP" || continue 12380# Check for GNU ac_path_FGREP and select it if it is found. 12381 # Check for GNU $ac_path_FGREP 12382case `"$ac_path_FGREP" --version 2>&1` in 12383*GNU*) 12384 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12385*) 12386 ac_count=0 12387 $as_echo_n 0123456789 >"conftest.in" 12388 while : 12389 do 12390 cat "conftest.in" "conftest.in" >"conftest.tmp" 12391 mv "conftest.tmp" "conftest.in" 12392 cp "conftest.in" "conftest.nl" 12393 $as_echo 'FGREP' >> "conftest.nl" 12394 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12396 as_fn_arith $ac_count + 1 && ac_count=$as_val 12397 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12398 # Best one so far, save it but keep looking for a better one 12399 ac_cv_path_FGREP="$ac_path_FGREP" 12400 ac_path_FGREP_max=$ac_count 12401 fi 12402 # 10*(2^10) chars as input seems more than enough 12403 test $ac_count -gt 10 && break 12404 done 12405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12406esac 12407 12408 $ac_path_FGREP_found && break 3 12409 done 12410 done 12411 done 12412IFS=$as_save_IFS 12413 if test -z "$ac_cv_path_FGREP"; then 12414 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12415 fi 12416else 12417 ac_cv_path_FGREP=$FGREP 12418fi 12419 12420 fi 12421fi 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12423$as_echo "$ac_cv_path_FGREP" >&6; } 12424 FGREP="$ac_cv_path_FGREP" 12425 12426 12427test -z "$GREP" && GREP=grep 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447# Check whether --with-gnu-ld was given. 12448if test "${with_gnu_ld+set}" = set; then : 12449 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12450else 12451 with_gnu_ld=no 12452fi 12453 12454ac_prog=ld 12455if test yes = "$GCC"; then 12456 # Check if gcc -print-prog-name=ld gives a path. 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12458$as_echo_n "checking for ld used by $CC... " >&6; } 12459 case $host in 12460 *-*-mingw*) 12461 # gcc leaves a trailing carriage return, which upsets mingw 12462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12463 *) 12464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12465 esac 12466 case $ac_prog in 12467 # Accept absolute paths. 12468 [\\/]* | ?:[\\/]*) 12469 re_direlt='/[^/][^/]*/\.\./' 12470 # Canonicalize the pathname of ld 12471 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12472 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12473 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12474 done 12475 test -z "$LD" && LD=$ac_prog 12476 ;; 12477 "") 12478 # If it fails, then pretend we aren't using GCC. 12479 ac_prog=ld 12480 ;; 12481 *) 12482 # If it is relative, then search for the first ld in PATH. 12483 with_gnu_ld=unknown 12484 ;; 12485 esac 12486elif test yes = "$with_gnu_ld"; then 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12488$as_echo_n "checking for GNU ld... " >&6; } 12489else 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12491$as_echo_n "checking for non-GNU ld... " >&6; } 12492fi 12493if ${lt_cv_path_LD+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 if test -z "$LD"; then 12497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12498 for ac_dir in $PATH; do 12499 IFS=$lt_save_ifs 12500 test -z "$ac_dir" && ac_dir=. 12501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12502 lt_cv_path_LD=$ac_dir/$ac_prog 12503 # Check to see if the program is GNU ld. I'd rather use --version, 12504 # but apparently some variants of GNU ld only accept -v. 12505 # Break only if it was the GNU/non-GNU ld that we prefer. 12506 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12507 *GNU* | *'with BFD'*) 12508 test no != "$with_gnu_ld" && break 12509 ;; 12510 *) 12511 test yes != "$with_gnu_ld" && break 12512 ;; 12513 esac 12514 fi 12515 done 12516 IFS=$lt_save_ifs 12517else 12518 lt_cv_path_LD=$LD # Let the user override the test with a path. 12519fi 12520fi 12521 12522LD=$lt_cv_path_LD 12523if test -n "$LD"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12525$as_echo "$LD" >&6; } 12526else 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12528$as_echo "no" >&6; } 12529fi 12530test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12532$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12533if ${lt_cv_prog_gnu_ld+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12537case `$LD -v 2>&1 </dev/null` in 12538*GNU* | *'with BFD'*) 12539 lt_cv_prog_gnu_ld=yes 12540 ;; 12541*) 12542 lt_cv_prog_gnu_ld=no 12543 ;; 12544esac 12545fi 12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12547$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12548with_gnu_ld=$lt_cv_prog_gnu_ld 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12559$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12560if ${lt_cv_path_NM+:} false; then : 12561 $as_echo_n "(cached) " >&6 12562else 12563 if test -n "$NM"; then 12564 # Let the user override the test. 12565 lt_cv_path_NM=$NM 12566else 12567 lt_nm_to_check=${ac_tool_prefix}nm 12568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12569 lt_nm_to_check="$lt_nm_to_check nm" 12570 fi 12571 for lt_tmp_nm in $lt_nm_to_check; do 12572 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12574 IFS=$lt_save_ifs 12575 test -z "$ac_dir" && ac_dir=. 12576 tmp_nm=$ac_dir/$lt_tmp_nm 12577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12578 # Check to see if the nm accepts a BSD-compat flag. 12579 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12580 # nm: unknown option "B" ignored 12581 # Tru64's nm complains that /dev/null is an invalid object file 12582 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12583 case $build_os in 12584 mingw*) lt_bad_file=conftest.nm/nofile ;; 12585 *) lt_bad_file=/dev/null ;; 12586 esac 12587 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 12588 *$lt_bad_file* | *'Invalid file or object type'*) 12589 lt_cv_path_NM="$tmp_nm -B" 12590 break 2 12591 ;; 12592 *) 12593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12594 */dev/null*) 12595 lt_cv_path_NM="$tmp_nm -p" 12596 break 2 12597 ;; 12598 *) 12599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12600 continue # so that we can try to find one that supports BSD flags 12601 ;; 12602 esac 12603 ;; 12604 esac 12605 fi 12606 done 12607 IFS=$lt_save_ifs 12608 done 12609 : ${lt_cv_path_NM=no} 12610fi 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12613$as_echo "$lt_cv_path_NM" >&6; } 12614if test no != "$lt_cv_path_NM"; then 12615 NM=$lt_cv_path_NM 12616else 12617 # Didn't find any BSD compatible name lister, look for dumpbin. 12618 if test -n "$DUMPBIN"; then : 12619 # Let the user override the test. 12620 else 12621 if test -n "$ac_tool_prefix"; then 12622 for ac_prog in dumpbin "link -dump" 12623 do 12624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12625set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12627$as_echo_n "checking for $ac_word... " >&6; } 12628if ${ac_cv_prog_DUMPBIN+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 if test -n "$DUMPBIN"; then 12632 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12633else 12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12635for as_dir in $PATH 12636do 12637 IFS=$as_save_IFS 12638 test -z "$as_dir" && as_dir=. 12639 for ac_exec_ext in '' $ac_executable_extensions; do 12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12641 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12643 break 2 12644 fi 12645done 12646 done 12647IFS=$as_save_IFS 12648 12649fi 12650fi 12651DUMPBIN=$ac_cv_prog_DUMPBIN 12652if test -n "$DUMPBIN"; then 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12654$as_echo "$DUMPBIN" >&6; } 12655else 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12657$as_echo "no" >&6; } 12658fi 12659 12660 12661 test -n "$DUMPBIN" && break 12662 done 12663fi 12664if test -z "$DUMPBIN"; then 12665 ac_ct_DUMPBIN=$DUMPBIN 12666 for ac_prog in dumpbin "link -dump" 12667do 12668 # Extract the first word of "$ac_prog", so it can be a program name with args. 12669set dummy $ac_prog; ac_word=$2 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12671$as_echo_n "checking for $ac_word... " >&6; } 12672if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 12673 $as_echo_n "(cached) " >&6 12674else 12675 if test -n "$ac_ct_DUMPBIN"; then 12676 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12677else 12678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12679for as_dir in $PATH 12680do 12681 IFS=$as_save_IFS 12682 test -z "$as_dir" && as_dir=. 12683 for ac_exec_ext in '' $ac_executable_extensions; do 12684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12685 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12687 break 2 12688 fi 12689done 12690 done 12691IFS=$as_save_IFS 12692 12693fi 12694fi 12695ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12696if test -n "$ac_ct_DUMPBIN"; then 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12698$as_echo "$ac_ct_DUMPBIN" >&6; } 12699else 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701$as_echo "no" >&6; } 12702fi 12703 12704 12705 test -n "$ac_ct_DUMPBIN" && break 12706done 12707 12708 if test "x$ac_ct_DUMPBIN" = x; then 12709 DUMPBIN=":" 12710 else 12711 case $cross_compiling:$ac_tool_warned in 12712yes:) 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12715ac_tool_warned=yes ;; 12716esac 12717 DUMPBIN=$ac_ct_DUMPBIN 12718 fi 12719fi 12720 12721 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 12722 *COFF*) 12723 DUMPBIN="$DUMPBIN -symbols -headers" 12724 ;; 12725 *) 12726 DUMPBIN=: 12727 ;; 12728 esac 12729 fi 12730 12731 if test : != "$DUMPBIN"; then 12732 NM=$DUMPBIN 12733 fi 12734fi 12735test -z "$NM" && NM=nm 12736 12737 12738 12739 12740 12741 12742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12743$as_echo_n "checking the name lister ($NM) interface... " >&6; } 12744if ${lt_cv_nm_interface+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 lt_cv_nm_interface="BSD nm" 12748 echo "int some_variable = 0;" > conftest.$ac_ext 12749 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12750 (eval "$ac_compile" 2>conftest.err) 12751 cat conftest.err >&5 12752 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12753 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12754 cat conftest.err >&5 12755 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12756 cat conftest.out >&5 12757 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12758 lt_cv_nm_interface="MS dumpbin" 12759 fi 12760 rm -f conftest* 12761fi 12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12763$as_echo "$lt_cv_nm_interface" >&6; } 12764 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12766$as_echo_n "checking whether ln -s works... " >&6; } 12767LN_S=$as_ln_s 12768if test "$LN_S" = "ln -s"; then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12770$as_echo "yes" >&6; } 12771else 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12773$as_echo "no, using $LN_S" >&6; } 12774fi 12775 12776# find the maximum length of command line arguments 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12778$as_echo_n "checking the maximum length of command line arguments... " >&6; } 12779if ${lt_cv_sys_max_cmd_len+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781else 12782 i=0 12783 teststring=ABCD 12784 12785 case $build_os in 12786 msdosdjgpp*) 12787 # On DJGPP, this test can blow up pretty badly due to problems in libc 12788 # (any single argument exceeding 2000 bytes causes a buffer overrun 12789 # during glob expansion). Even if it were fixed, the result of this 12790 # check would be larger than it should be. 12791 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12792 ;; 12793 12794 gnu*) 12795 # Under GNU Hurd, this test is not required because there is 12796 # no limit to the length of command line arguments. 12797 # Libtool will interpret -1 as no limit whatsoever 12798 lt_cv_sys_max_cmd_len=-1; 12799 ;; 12800 12801 cygwin* | mingw* | cegcc*) 12802 # On Win9x/ME, this test blows up -- it succeeds, but takes 12803 # about 5 minutes as the teststring grows exponentially. 12804 # Worse, since 9x/ME are not pre-emptively multitasking, 12805 # you end up with a "frozen" computer, even though with patience 12806 # the test eventually succeeds (with a max line length of 256k). 12807 # Instead, let's just punt: use the minimum linelength reported by 12808 # all of the supported platforms: 8192 (on NT/2K/XP). 12809 lt_cv_sys_max_cmd_len=8192; 12810 ;; 12811 12812 mint*) 12813 # On MiNT this can take a long time and run out of memory. 12814 lt_cv_sys_max_cmd_len=8192; 12815 ;; 12816 12817 amigaos*) 12818 # On AmigaOS with pdksh, this test takes hours, literally. 12819 # So we just punt and use a minimum line length of 8192. 12820 lt_cv_sys_max_cmd_len=8192; 12821 ;; 12822 12823 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 12824 # This has been around since 386BSD, at least. Likely further. 12825 if test -x /sbin/sysctl; then 12826 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12827 elif test -x /usr/sbin/sysctl; then 12828 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12829 else 12830 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12831 fi 12832 # And add a safety zone 12833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12835 ;; 12836 12837 interix*) 12838 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12839 lt_cv_sys_max_cmd_len=196608 12840 ;; 12841 12842 os2*) 12843 # The test takes a long time on OS/2. 12844 lt_cv_sys_max_cmd_len=8192 12845 ;; 12846 12847 osf*) 12848 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12849 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12850 # nice to cause kernel panics so lets avoid the loop below. 12851 # First set a reasonable default. 12852 lt_cv_sys_max_cmd_len=16384 12853 # 12854 if test -x /sbin/sysconfig; then 12855 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12856 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12857 esac 12858 fi 12859 ;; 12860 sco3.2v5*) 12861 lt_cv_sys_max_cmd_len=102400 12862 ;; 12863 sysv5* | sco5v6* | sysv4.2uw2*) 12864 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12865 if test -n "$kargmax"; then 12866 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12867 else 12868 lt_cv_sys_max_cmd_len=32768 12869 fi 12870 ;; 12871 *) 12872 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12873 if test -n "$lt_cv_sys_max_cmd_len" && \ 12874 test undefined != "$lt_cv_sys_max_cmd_len"; then 12875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12877 else 12878 # Make teststring a little bigger before we do anything with it. 12879 # a 1K string should be a reasonable start. 12880 for i in 1 2 3 4 5 6 7 8; do 12881 teststring=$teststring$teststring 12882 done 12883 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12884 # If test is not a shell built-in, we'll probably end up computing a 12885 # maximum length that is only half of the actual maximum length, but 12886 # we can't tell. 12887 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12888 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12889 test 17 != "$i" # 1/2 MB should be enough 12890 do 12891 i=`expr $i + 1` 12892 teststring=$teststring$teststring 12893 done 12894 # Only check the string length outside the loop. 12895 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12896 teststring= 12897 # Add a significant safety factor because C++ compilers can tack on 12898 # massive amounts of additional arguments before passing them to the 12899 # linker. It appears as though 1/2 is a usable value. 12900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12901 fi 12902 ;; 12903 esac 12904 12905fi 12906 12907if test -n "$lt_cv_sys_max_cmd_len"; then 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12909$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12910else 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12912$as_echo "none" >&6; } 12913fi 12914max_cmd_len=$lt_cv_sys_max_cmd_len 12915 12916 12917 12918 12919 12920 12921: ${CP="cp -f"} 12922: ${MV="mv -f"} 12923: ${RM="rm -f"} 12924 12925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12926 lt_unset=unset 12927else 12928 lt_unset=false 12929fi 12930 12931 12932 12933 12934 12935# test EBCDIC or ASCII 12936case `echo X|tr X '\101'` in 12937 A) # ASCII based system 12938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12939 lt_SP2NL='tr \040 \012' 12940 lt_NL2SP='tr \015\012 \040\040' 12941 ;; 12942 *) # EBCDIC based system 12943 lt_SP2NL='tr \100 \n' 12944 lt_NL2SP='tr \r\n \100\100' 12945 ;; 12946esac 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12957$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12958if ${lt_cv_to_host_file_cmd+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960else 12961 case $host in 12962 *-*-mingw* ) 12963 case $build in 12964 *-*-mingw* ) # actually msys 12965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12966 ;; 12967 *-*-cygwin* ) 12968 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12969 ;; 12970 * ) # otherwise, assume *nix 12971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12972 ;; 12973 esac 12974 ;; 12975 *-*-cygwin* ) 12976 case $build in 12977 *-*-mingw* ) # actually msys 12978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12979 ;; 12980 *-*-cygwin* ) 12981 lt_cv_to_host_file_cmd=func_convert_file_noop 12982 ;; 12983 * ) # otherwise, assume *nix 12984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12985 ;; 12986 esac 12987 ;; 12988 * ) # unhandled hosts (and "normal" native builds) 12989 lt_cv_to_host_file_cmd=func_convert_file_noop 12990 ;; 12991esac 12992 12993fi 12994 12995to_host_file_cmd=$lt_cv_to_host_file_cmd 12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12997$as_echo "$lt_cv_to_host_file_cmd" >&6; } 12998 12999 13000 13001 13002 13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 13004$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 13005if ${lt_cv_to_tool_file_cmd+:} false; then : 13006 $as_echo_n "(cached) " >&6 13007else 13008 #assume ordinary cross tools, or native build. 13009lt_cv_to_tool_file_cmd=func_convert_file_noop 13010case $host in 13011 *-*-mingw* ) 13012 case $build in 13013 *-*-mingw* ) # actually msys 13014 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 13015 ;; 13016 esac 13017 ;; 13018esac 13019 13020fi 13021 13022to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 13024$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 13025 13026 13027 13028 13029 13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 13031$as_echo_n "checking for $LD option to reload object files... " >&6; } 13032if ${lt_cv_ld_reload_flag+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 lt_cv_ld_reload_flag='-r' 13036fi 13037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 13038$as_echo "$lt_cv_ld_reload_flag" >&6; } 13039reload_flag=$lt_cv_ld_reload_flag 13040case $reload_flag in 13041"" | " "*) ;; 13042*) reload_flag=" $reload_flag" ;; 13043esac 13044reload_cmds='$LD$reload_flag -o $output$reload_objs' 13045case $host_os in 13046 cygwin* | mingw* | pw32* | cegcc*) 13047 if test yes != "$GCC"; then 13048 reload_cmds=false 13049 fi 13050 ;; 13051 darwin*) 13052 if test yes = "$GCC"; then 13053 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 13054 else 13055 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13056 fi 13057 ;; 13058esac 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068if test -n "$ac_tool_prefix"; then 13069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13070set dummy ${ac_tool_prefix}objdump; ac_word=$2 13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13072$as_echo_n "checking for $ac_word... " >&6; } 13073if ${ac_cv_prog_OBJDUMP+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075else 13076 if test -n "$OBJDUMP"; then 13077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13078else 13079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13080for as_dir in $PATH 13081do 13082 IFS=$as_save_IFS 13083 test -z "$as_dir" && as_dir=. 13084 for ac_exec_ext in '' $ac_executable_extensions; do 13085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13088 break 2 13089 fi 13090done 13091 done 13092IFS=$as_save_IFS 13093 13094fi 13095fi 13096OBJDUMP=$ac_cv_prog_OBJDUMP 13097if test -n "$OBJDUMP"; then 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13099$as_echo "$OBJDUMP" >&6; } 13100else 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102$as_echo "no" >&6; } 13103fi 13104 13105 13106fi 13107if test -z "$ac_cv_prog_OBJDUMP"; then 13108 ac_ct_OBJDUMP=$OBJDUMP 13109 # Extract the first word of "objdump", so it can be a program name with args. 13110set dummy objdump; ac_word=$2 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13112$as_echo_n "checking for $ac_word... " >&6; } 13113if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13114 $as_echo_n "(cached) " >&6 13115else 13116 if test -n "$ac_ct_OBJDUMP"; then 13117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13118else 13119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13120for as_dir in $PATH 13121do 13122 IFS=$as_save_IFS 13123 test -z "$as_dir" && as_dir=. 13124 for ac_exec_ext in '' $ac_executable_extensions; do 13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13126 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13128 break 2 13129 fi 13130done 13131 done 13132IFS=$as_save_IFS 13133 13134fi 13135fi 13136ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13137if test -n "$ac_ct_OBJDUMP"; then 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13139$as_echo "$ac_ct_OBJDUMP" >&6; } 13140else 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13142$as_echo "no" >&6; } 13143fi 13144 13145 if test "x$ac_ct_OBJDUMP" = x; then 13146 OBJDUMP="false" 13147 else 13148 case $cross_compiling:$ac_tool_warned in 13149yes:) 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13152ac_tool_warned=yes ;; 13153esac 13154 OBJDUMP=$ac_ct_OBJDUMP 13155 fi 13156else 13157 OBJDUMP="$ac_cv_prog_OBJDUMP" 13158fi 13159 13160test -z "$OBJDUMP" && OBJDUMP=objdump 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13171$as_echo_n "checking how to recognize dependent libraries... " >&6; } 13172if ${lt_cv_deplibs_check_method+:} false; then : 13173 $as_echo_n "(cached) " >&6 13174else 13175 lt_cv_file_magic_cmd='$MAGIC_CMD' 13176lt_cv_file_magic_test_file= 13177lt_cv_deplibs_check_method='unknown' 13178# Need to set the preceding variable on all platforms that support 13179# interlibrary dependencies. 13180# 'none' -- dependencies not supported. 13181# 'unknown' -- same as none, but documents that we really don't know. 13182# 'pass_all' -- all dependencies passed with no checks. 13183# 'test_compile' -- check by making test program. 13184# 'file_magic [[regex]]' -- check by looking for files in library path 13185# that responds to the $file_magic_cmd with a given extended regex. 13186# If you have 'file' or equivalent on your system and you're not sure 13187# whether 'pass_all' will *always* work, you probably want this one. 13188 13189case $host_os in 13190aix[4-9]*) 13191 lt_cv_deplibs_check_method=pass_all 13192 ;; 13193 13194beos*) 13195 lt_cv_deplibs_check_method=pass_all 13196 ;; 13197 13198bsdi[45]*) 13199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13200 lt_cv_file_magic_cmd='/usr/bin/file -L' 13201 lt_cv_file_magic_test_file=/shlib/libc.so 13202 ;; 13203 13204cygwin*) 13205 # func_win32_libid is a shell function defined in ltmain.sh 13206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13207 lt_cv_file_magic_cmd='func_win32_libid' 13208 ;; 13209 13210mingw* | pw32*) 13211 # Base MSYS/MinGW do not provide the 'file' command needed by 13212 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13213 # unless we find 'file', for example because we are cross-compiling. 13214 if ( file / ) >/dev/null 2>&1; then 13215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13216 lt_cv_file_magic_cmd='func_win32_libid' 13217 else 13218 # Keep this pattern in sync with the one in func_win32_libid. 13219 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13220 lt_cv_file_magic_cmd='$OBJDUMP -f' 13221 fi 13222 ;; 13223 13224cegcc*) 13225 # use the weaker test based on 'objdump'. See mingw*. 13226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13227 lt_cv_file_magic_cmd='$OBJDUMP -f' 13228 ;; 13229 13230darwin* | rhapsody*) 13231 lt_cv_deplibs_check_method=pass_all 13232 ;; 13233 13234freebsd* | dragonfly*) 13235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13236 case $host_cpu in 13237 i*86 ) 13238 # Not sure whether the presence of OpenBSD here was a mistake. 13239 # Let's accept both of them until this is cleared up. 13240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13241 lt_cv_file_magic_cmd=/usr/bin/file 13242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13243 ;; 13244 esac 13245 else 13246 lt_cv_deplibs_check_method=pass_all 13247 fi 13248 ;; 13249 13250haiku*) 13251 lt_cv_deplibs_check_method=pass_all 13252 ;; 13253 13254hpux10.20* | hpux11*) 13255 lt_cv_file_magic_cmd=/usr/bin/file 13256 case $host_cpu in 13257 ia64*) 13258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13259 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13260 ;; 13261 hppa*64*) 13262 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]' 13263 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13264 ;; 13265 *) 13266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13267 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13268 ;; 13269 esac 13270 ;; 13271 13272interix[3-9]*) 13273 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13275 ;; 13276 13277irix5* | irix6* | nonstopux*) 13278 case $LD in 13279 *-32|*"-32 ") libmagic=32-bit;; 13280 *-n32|*"-n32 ") libmagic=N32;; 13281 *-64|*"-64 ") libmagic=64-bit;; 13282 *) libmagic=never-match;; 13283 esac 13284 lt_cv_deplibs_check_method=pass_all 13285 ;; 13286 13287# This must be glibc/ELF. 13288linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13289 lt_cv_deplibs_check_method=pass_all 13290 ;; 13291 13292netbsd* | netbsdelf*-gnu) 13293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13295 else 13296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13297 fi 13298 ;; 13299 13300newos6*) 13301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13302 lt_cv_file_magic_cmd=/usr/bin/file 13303 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13304 ;; 13305 13306*nto* | *qnx*) 13307 lt_cv_deplibs_check_method=pass_all 13308 ;; 13309 13310openbsd* | bitrig*) 13311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13313 else 13314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13315 fi 13316 ;; 13317 13318osf3* | osf4* | osf5*) 13319 lt_cv_deplibs_check_method=pass_all 13320 ;; 13321 13322rdos*) 13323 lt_cv_deplibs_check_method=pass_all 13324 ;; 13325 13326solaris*) 13327 lt_cv_deplibs_check_method=pass_all 13328 ;; 13329 13330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13331 lt_cv_deplibs_check_method=pass_all 13332 ;; 13333 13334sysv4 | sysv4.3*) 13335 case $host_vendor in 13336 motorola) 13337 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]' 13338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13339 ;; 13340 ncr) 13341 lt_cv_deplibs_check_method=pass_all 13342 ;; 13343 sequent) 13344 lt_cv_file_magic_cmd='/bin/file' 13345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13346 ;; 13347 sni) 13348 lt_cv_file_magic_cmd='/bin/file' 13349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13350 lt_cv_file_magic_test_file=/lib/libc.so 13351 ;; 13352 siemens) 13353 lt_cv_deplibs_check_method=pass_all 13354 ;; 13355 pc) 13356 lt_cv_deplibs_check_method=pass_all 13357 ;; 13358 esac 13359 ;; 13360 13361tpf*) 13362 lt_cv_deplibs_check_method=pass_all 13363 ;; 13364os2*) 13365 lt_cv_deplibs_check_method=pass_all 13366 ;; 13367esac 13368 13369fi 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13371$as_echo "$lt_cv_deplibs_check_method" >&6; } 13372 13373file_magic_glob= 13374want_nocaseglob=no 13375if test "$build" = "$host"; then 13376 case $host_os in 13377 mingw* | pw32*) 13378 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13379 want_nocaseglob=yes 13380 else 13381 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13382 fi 13383 ;; 13384 esac 13385fi 13386 13387file_magic_cmd=$lt_cv_file_magic_cmd 13388deplibs_check_method=$lt_cv_deplibs_check_method 13389test -z "$deplibs_check_method" && deplibs_check_method=unknown 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412if test -n "$ac_tool_prefix"; then 13413 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13414set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13416$as_echo_n "checking for $ac_word... " >&6; } 13417if ${ac_cv_prog_DLLTOOL+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 if test -n "$DLLTOOL"; then 13421 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13422else 13423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13424for as_dir in $PATH 13425do 13426 IFS=$as_save_IFS 13427 test -z "$as_dir" && as_dir=. 13428 for ac_exec_ext in '' $ac_executable_extensions; do 13429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13430 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13432 break 2 13433 fi 13434done 13435 done 13436IFS=$as_save_IFS 13437 13438fi 13439fi 13440DLLTOOL=$ac_cv_prog_DLLTOOL 13441if test -n "$DLLTOOL"; then 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13443$as_echo "$DLLTOOL" >&6; } 13444else 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13446$as_echo "no" >&6; } 13447fi 13448 13449 13450fi 13451if test -z "$ac_cv_prog_DLLTOOL"; then 13452 ac_ct_DLLTOOL=$DLLTOOL 13453 # Extract the first word of "dlltool", so it can be a program name with args. 13454set dummy dlltool; ac_word=$2 13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13456$as_echo_n "checking for $ac_word... " >&6; } 13457if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13458 $as_echo_n "(cached) " >&6 13459else 13460 if test -n "$ac_ct_DLLTOOL"; then 13461 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13462else 13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13464for as_dir in $PATH 13465do 13466 IFS=$as_save_IFS 13467 test -z "$as_dir" && as_dir=. 13468 for ac_exec_ext in '' $ac_executable_extensions; do 13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13470 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13472 break 2 13473 fi 13474done 13475 done 13476IFS=$as_save_IFS 13477 13478fi 13479fi 13480ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13481if test -n "$ac_ct_DLLTOOL"; then 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13483$as_echo "$ac_ct_DLLTOOL" >&6; } 13484else 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13486$as_echo "no" >&6; } 13487fi 13488 13489 if test "x$ac_ct_DLLTOOL" = x; then 13490 DLLTOOL="false" 13491 else 13492 case $cross_compiling:$ac_tool_warned in 13493yes:) 13494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13496ac_tool_warned=yes ;; 13497esac 13498 DLLTOOL=$ac_ct_DLLTOOL 13499 fi 13500else 13501 DLLTOOL="$ac_cv_prog_DLLTOOL" 13502fi 13503 13504test -z "$DLLTOOL" && DLLTOOL=dlltool 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13516$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 13517if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 13518 $as_echo_n "(cached) " >&6 13519else 13520 lt_cv_sharedlib_from_linklib_cmd='unknown' 13521 13522case $host_os in 13523cygwin* | mingw* | pw32* | cegcc*) 13524 # two different shell functions defined in ltmain.sh; 13525 # decide which one to use based on capabilities of $DLLTOOL 13526 case `$DLLTOOL --help 2>&1` in 13527 *--identify-strict*) 13528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13529 ;; 13530 *) 13531 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13532 ;; 13533 esac 13534 ;; 13535*) 13536 # fallback: assume linklib IS sharedlib 13537 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13538 ;; 13539esac 13540 13541fi 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13543$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13544sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13545test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13546 13547 13548 13549 13550 13551 13552 13553if test -n "$ac_tool_prefix"; then 13554 for ac_prog in ar 13555 do 13556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13557set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13559$as_echo_n "checking for $ac_word... " >&6; } 13560if ${ac_cv_prog_AR+:} false; then : 13561 $as_echo_n "(cached) " >&6 13562else 13563 if test -n "$AR"; then 13564 ac_cv_prog_AR="$AR" # Let the user override the test. 13565else 13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13567for as_dir in $PATH 13568do 13569 IFS=$as_save_IFS 13570 test -z "$as_dir" && as_dir=. 13571 for ac_exec_ext in '' $ac_executable_extensions; do 13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13573 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13575 break 2 13576 fi 13577done 13578 done 13579IFS=$as_save_IFS 13580 13581fi 13582fi 13583AR=$ac_cv_prog_AR 13584if test -n "$AR"; then 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13586$as_echo "$AR" >&6; } 13587else 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13589$as_echo "no" >&6; } 13590fi 13591 13592 13593 test -n "$AR" && break 13594 done 13595fi 13596if test -z "$AR"; then 13597 ac_ct_AR=$AR 13598 for ac_prog in ar 13599do 13600 # Extract the first word of "$ac_prog", so it can be a program name with args. 13601set dummy $ac_prog; ac_word=$2 13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13603$as_echo_n "checking for $ac_word... " >&6; } 13604if ${ac_cv_prog_ac_ct_AR+:} false; then : 13605 $as_echo_n "(cached) " >&6 13606else 13607 if test -n "$ac_ct_AR"; then 13608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13609else 13610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13611for as_dir in $PATH 13612do 13613 IFS=$as_save_IFS 13614 test -z "$as_dir" && as_dir=. 13615 for ac_exec_ext in '' $ac_executable_extensions; do 13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13617 ac_cv_prog_ac_ct_AR="$ac_prog" 13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13619 break 2 13620 fi 13621done 13622 done 13623IFS=$as_save_IFS 13624 13625fi 13626fi 13627ac_ct_AR=$ac_cv_prog_ac_ct_AR 13628if test -n "$ac_ct_AR"; then 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13630$as_echo "$ac_ct_AR" >&6; } 13631else 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13633$as_echo "no" >&6; } 13634fi 13635 13636 13637 test -n "$ac_ct_AR" && break 13638done 13639 13640 if test "x$ac_ct_AR" = x; then 13641 AR="false" 13642 else 13643 case $cross_compiling:$ac_tool_warned in 13644yes:) 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13647ac_tool_warned=yes ;; 13648esac 13649 AR=$ac_ct_AR 13650 fi 13651fi 13652 13653: ${AR=ar} 13654: ${AR_FLAGS=cru} 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13667$as_echo_n "checking for archiver @FILE support... " >&6; } 13668if ${lt_cv_ar_at_file+:} false; then : 13669 $as_echo_n "(cached) " >&6 13670else 13671 lt_cv_ar_at_file=no 13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13673/* end confdefs.h. */ 13674 13675int 13676main () 13677{ 13678 13679 ; 13680 return 0; 13681} 13682_ACEOF 13683if ac_fn_c_try_compile "$LINENO"; then : 13684 echo conftest.$ac_objext > conftest.lst 13685 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13687 (eval $lt_ar_try) 2>&5 13688 ac_status=$? 13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13690 test $ac_status = 0; } 13691 if test 0 -eq "$ac_status"; then 13692 # Ensure the archiver fails upon bogus file names. 13693 rm -f conftest.$ac_objext libconftest.a 13694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13695 (eval $lt_ar_try) 2>&5 13696 ac_status=$? 13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13698 test $ac_status = 0; } 13699 if test 0 -ne "$ac_status"; then 13700 lt_cv_ar_at_file=@ 13701 fi 13702 fi 13703 rm -f conftest.* libconftest.a 13704 13705fi 13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13707 13708fi 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13710$as_echo "$lt_cv_ar_at_file" >&6; } 13711 13712if test no = "$lt_cv_ar_at_file"; then 13713 archiver_list_spec= 13714else 13715 archiver_list_spec=$lt_cv_ar_at_file 13716fi 13717 13718 13719 13720 13721 13722 13723 13724if test -n "$ac_tool_prefix"; then 13725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13726set dummy ${ac_tool_prefix}strip; ac_word=$2 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13728$as_echo_n "checking for $ac_word... " >&6; } 13729if ${ac_cv_prog_STRIP+:} false; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 if test -n "$STRIP"; then 13733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13734else 13735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13736for as_dir in $PATH 13737do 13738 IFS=$as_save_IFS 13739 test -z "$as_dir" && as_dir=. 13740 for ac_exec_ext in '' $ac_executable_extensions; do 13741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13742 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13744 break 2 13745 fi 13746done 13747 done 13748IFS=$as_save_IFS 13749 13750fi 13751fi 13752STRIP=$ac_cv_prog_STRIP 13753if test -n "$STRIP"; then 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13755$as_echo "$STRIP" >&6; } 13756else 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13758$as_echo "no" >&6; } 13759fi 13760 13761 13762fi 13763if test -z "$ac_cv_prog_STRIP"; then 13764 ac_ct_STRIP=$STRIP 13765 # Extract the first word of "strip", so it can be a program name with args. 13766set dummy strip; ac_word=$2 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13768$as_echo_n "checking for $ac_word... " >&6; } 13769if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 13770 $as_echo_n "(cached) " >&6 13771else 13772 if test -n "$ac_ct_STRIP"; then 13773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13774else 13775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13776for as_dir in $PATH 13777do 13778 IFS=$as_save_IFS 13779 test -z "$as_dir" && as_dir=. 13780 for ac_exec_ext in '' $ac_executable_extensions; do 13781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13782 ac_cv_prog_ac_ct_STRIP="strip" 13783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13784 break 2 13785 fi 13786done 13787 done 13788IFS=$as_save_IFS 13789 13790fi 13791fi 13792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13793if test -n "$ac_ct_STRIP"; then 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13795$as_echo "$ac_ct_STRIP" >&6; } 13796else 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13798$as_echo "no" >&6; } 13799fi 13800 13801 if test "x$ac_ct_STRIP" = x; then 13802 STRIP=":" 13803 else 13804 case $cross_compiling:$ac_tool_warned in 13805yes:) 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13808ac_tool_warned=yes ;; 13809esac 13810 STRIP=$ac_ct_STRIP 13811 fi 13812else 13813 STRIP="$ac_cv_prog_STRIP" 13814fi 13815 13816test -z "$STRIP" && STRIP=: 13817 13818 13819 13820 13821 13822 13823if test -n "$ac_tool_prefix"; then 13824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13825set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13827$as_echo_n "checking for $ac_word... " >&6; } 13828if ${ac_cv_prog_RANLIB+:} false; then : 13829 $as_echo_n "(cached) " >&6 13830else 13831 if test -n "$RANLIB"; then 13832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13833else 13834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13835for as_dir in $PATH 13836do 13837 IFS=$as_save_IFS 13838 test -z "$as_dir" && as_dir=. 13839 for ac_exec_ext in '' $ac_executable_extensions; do 13840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13843 break 2 13844 fi 13845done 13846 done 13847IFS=$as_save_IFS 13848 13849fi 13850fi 13851RANLIB=$ac_cv_prog_RANLIB 13852if test -n "$RANLIB"; then 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13854$as_echo "$RANLIB" >&6; } 13855else 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13857$as_echo "no" >&6; } 13858fi 13859 13860 13861fi 13862if test -z "$ac_cv_prog_RANLIB"; then 13863 ac_ct_RANLIB=$RANLIB 13864 # Extract the first word of "ranlib", so it can be a program name with args. 13865set dummy ranlib; ac_word=$2 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13867$as_echo_n "checking for $ac_word... " >&6; } 13868if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13869 $as_echo_n "(cached) " >&6 13870else 13871 if test -n "$ac_ct_RANLIB"; then 13872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13873else 13874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13875for as_dir in $PATH 13876do 13877 IFS=$as_save_IFS 13878 test -z "$as_dir" && as_dir=. 13879 for ac_exec_ext in '' $ac_executable_extensions; do 13880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13881 ac_cv_prog_ac_ct_RANLIB="ranlib" 13882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13883 break 2 13884 fi 13885done 13886 done 13887IFS=$as_save_IFS 13888 13889fi 13890fi 13891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13892if test -n "$ac_ct_RANLIB"; then 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13894$as_echo "$ac_ct_RANLIB" >&6; } 13895else 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13897$as_echo "no" >&6; } 13898fi 13899 13900 if test "x$ac_ct_RANLIB" = x; then 13901 RANLIB=":" 13902 else 13903 case $cross_compiling:$ac_tool_warned in 13904yes:) 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13907ac_tool_warned=yes ;; 13908esac 13909 RANLIB=$ac_ct_RANLIB 13910 fi 13911else 13912 RANLIB="$ac_cv_prog_RANLIB" 13913fi 13914 13915test -z "$RANLIB" && RANLIB=: 13916 13917 13918 13919 13920 13921 13922# Determine commands to create old-style static archives. 13923old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13924old_postinstall_cmds='chmod 644 $oldlib' 13925old_postuninstall_cmds= 13926 13927if test -n "$RANLIB"; then 13928 case $host_os in 13929 bitrig* | openbsd*) 13930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13931 ;; 13932 *) 13933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13934 ;; 13935 esac 13936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13937fi 13938 13939case $host_os in 13940 darwin*) 13941 lock_old_archive_extraction=yes ;; 13942 *) 13943 lock_old_archive_extraction=no ;; 13944esac 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984# If no C compiler was specified, use CC. 13985LTCC=${LTCC-"$CC"} 13986 13987# If no C compiler flags were specified, use CFLAGS. 13988LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13989 13990# Allow CC to be a program name with arguments. 13991compiler=$CC 13992 13993 13994# Check for command to grab the raw symbol name followed by C symbol from nm. 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13996$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13997if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 14001# These are sane defaults that work on at least a few old systems. 14002# [They come from Ultrix. What could be older than Ultrix?!! ;)] 14003 14004# Character class describing NM global symbol codes. 14005symcode='[BCDEGRST]' 14006 14007# Regexp to match symbols that can be accessed directly from C. 14008sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 14009 14010# Define system-specific variables. 14011case $host_os in 14012aix*) 14013 symcode='[BCDT]' 14014 ;; 14015cygwin* | mingw* | pw32* | cegcc*) 14016 symcode='[ABCDGISTW]' 14017 ;; 14018hpux*) 14019 if test ia64 = "$host_cpu"; then 14020 symcode='[ABCDEGRST]' 14021 fi 14022 ;; 14023irix* | nonstopux*) 14024 symcode='[BCDEGRST]' 14025 ;; 14026osf*) 14027 symcode='[BCDEGQRST]' 14028 ;; 14029solaris*) 14030 symcode='[BDRT]' 14031 ;; 14032sco3.2v5*) 14033 symcode='[DT]' 14034 ;; 14035sysv4.2uw2*) 14036 symcode='[DT]' 14037 ;; 14038sysv5* | sco5v6* | unixware* | OpenUNIX*) 14039 symcode='[ABDT]' 14040 ;; 14041sysv4) 14042 symcode='[DFNSTU]' 14043 ;; 14044esac 14045 14046# If we're using GNU nm, then use its standard symbol codes. 14047case `$NM -V 2>&1` in 14048*GNU* | *'with BFD'*) 14049 symcode='[ABCDGIRSTW]' ;; 14050esac 14051 14052if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14053 # Gets list of data symbols to import. 14054 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 14055 # Adjust the below global symbol transforms to fixup imported variables. 14056 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 14057 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 14058 lt_c_name_lib_hook="\ 14059 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 14060 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 14061else 14062 # Disable hooks by default. 14063 lt_cv_sys_global_symbol_to_import= 14064 lt_cdecl_hook= 14065 lt_c_name_hook= 14066 lt_c_name_lib_hook= 14067fi 14068 14069# Transform an extracted symbol line into a proper C declaration. 14070# Some systems (esp. on ia64) link data and code symbols differently, 14071# so use this general approach. 14072lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 14073$lt_cdecl_hook\ 14074" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 14075" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 14076 14077# Transform an extracted symbol line into symbol name and symbol address 14078lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 14079$lt_c_name_hook\ 14080" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14081" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 14082 14083# Transform an extracted symbol line into symbol name with lib prefix and 14084# symbol address. 14085lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 14086$lt_c_name_lib_hook\ 14087" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14088" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 14089" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 14090 14091# Handle CRLF in mingw tool chain 14092opt_cr= 14093case $build_os in 14094mingw*) 14095 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 14096 ;; 14097esac 14098 14099# Try without a prefix underscore, then with it. 14100for ac_symprfx in "" "_"; do 14101 14102 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 14103 symxfrm="\\1 $ac_symprfx\\2 \\2" 14104 14105 # Write the raw and C identifiers. 14106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14107 # Fake it for dumpbin and say T for any non-static function, 14108 # D for any global variable and I for any imported variable. 14109 # Also find C++ and __fastcall symbols from MSVC++, 14110 # which start with @ or ?. 14111 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14112" {last_section=section; section=\$ 3};"\ 14113" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 14114" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14115" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 14116" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 14117" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 14118" \$ 0!~/External *\|/{next};"\ 14119" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14120" {if(hide[section]) next};"\ 14121" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 14122" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 14123" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 14124" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 14125" ' prfx=^$ac_symprfx" 14126 else 14127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14128 fi 14129 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 14130 14131 # Check to see that the pipe works correctly. 14132 pipe_works=no 14133 14134 rm -f conftest* 14135 cat > conftest.$ac_ext <<_LT_EOF 14136#ifdef __cplusplus 14137extern "C" { 14138#endif 14139char nm_test_var; 14140void nm_test_func(void); 14141void nm_test_func(void){} 14142#ifdef __cplusplus 14143} 14144#endif 14145int main(){nm_test_var='a';nm_test_func();return(0);} 14146_LT_EOF 14147 14148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14149 (eval $ac_compile) 2>&5 14150 ac_status=$? 14151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14152 test $ac_status = 0; }; then 14153 # Now try to grab the symbols. 14154 nlist=conftest.nm 14155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14156 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14157 ac_status=$? 14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14159 test $ac_status = 0; } && test -s "$nlist"; then 14160 # Try sorting and uniquifying the output. 14161 if sort "$nlist" | uniq > "$nlist"T; then 14162 mv -f "$nlist"T "$nlist" 14163 else 14164 rm -f "$nlist"T 14165 fi 14166 14167 # Make sure that we snagged all the symbols we need. 14168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14170 cat <<_LT_EOF > conftest.$ac_ext 14171/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14172#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 14173/* DATA imports from DLLs on WIN32 can't be const, because runtime 14174 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14175# define LT_DLSYM_CONST 14176#elif defined __osf__ 14177/* This system does not cope well with relocations in const data. */ 14178# define LT_DLSYM_CONST 14179#else 14180# define LT_DLSYM_CONST const 14181#endif 14182 14183#ifdef __cplusplus 14184extern "C" { 14185#endif 14186 14187_LT_EOF 14188 # Now generate the symbol file. 14189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14190 14191 cat <<_LT_EOF >> conftest.$ac_ext 14192 14193/* The mapping between symbol names and symbols. */ 14194LT_DLSYM_CONST struct { 14195 const char *name; 14196 void *address; 14197} 14198lt__PROGRAM__LTX_preloaded_symbols[] = 14199{ 14200 { "@PROGRAM@", (void *) 0 }, 14201_LT_EOF 14202 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14203 cat <<\_LT_EOF >> conftest.$ac_ext 14204 {0, (void *) 0} 14205}; 14206 14207/* This works around a problem in FreeBSD linker */ 14208#ifdef FREEBSD_WORKAROUND 14209static const void *lt_preloaded_setup() { 14210 return lt__PROGRAM__LTX_preloaded_symbols; 14211} 14212#endif 14213 14214#ifdef __cplusplus 14215} 14216#endif 14217_LT_EOF 14218 # Now try linking the two files. 14219 mv conftest.$ac_objext conftstm.$ac_objext 14220 lt_globsym_save_LIBS=$LIBS 14221 lt_globsym_save_CFLAGS=$CFLAGS 14222 LIBS=conftstm.$ac_objext 14223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14225 (eval $ac_link) 2>&5 14226 ac_status=$? 14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14228 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14229 pipe_works=yes 14230 fi 14231 LIBS=$lt_globsym_save_LIBS 14232 CFLAGS=$lt_globsym_save_CFLAGS 14233 else 14234 echo "cannot find nm_test_func in $nlist" >&5 14235 fi 14236 else 14237 echo "cannot find nm_test_var in $nlist" >&5 14238 fi 14239 else 14240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14241 fi 14242 else 14243 echo "$progname: failed program was:" >&5 14244 cat conftest.$ac_ext >&5 14245 fi 14246 rm -rf conftest* conftst* 14247 14248 # Do not use the global_symbol_pipe unless it works. 14249 if test yes = "$pipe_works"; then 14250 break 14251 else 14252 lt_cv_sys_global_symbol_pipe= 14253 fi 14254done 14255 14256fi 14257 14258if test -z "$lt_cv_sys_global_symbol_pipe"; then 14259 lt_cv_sys_global_symbol_to_cdecl= 14260fi 14261if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14263$as_echo "failed" >&6; } 14264else 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14266$as_echo "ok" >&6; } 14267fi 14268 14269# Response file support. 14270if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14271 nm_file_list_spec='@' 14272elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14273 nm_file_list_spec='@' 14274fi 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14313$as_echo_n "checking for sysroot... " >&6; } 14314 14315# Check whether --with-sysroot was given. 14316if test "${with_sysroot+set}" = set; then : 14317 withval=$with_sysroot; 14318else 14319 with_sysroot=no 14320fi 14321 14322 14323lt_sysroot= 14324case $with_sysroot in #( 14325 yes) 14326 if test yes = "$GCC"; then 14327 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14328 fi 14329 ;; #( 14330 /*) 14331 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14332 ;; #( 14333 no|'') 14334 ;; #( 14335 *) 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14337$as_echo "$with_sysroot" >&6; } 14338 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14339 ;; 14340esac 14341 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14343$as_echo "${lt_sysroot:-no}" >&6; } 14344 14345 14346 14347 14348 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14350$as_echo_n "checking for a working dd... " >&6; } 14351if ${ac_cv_path_lt_DD+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 printf 0123456789abcdef0123456789abcdef >conftest.i 14355cat conftest.i conftest.i >conftest2.i 14356: ${lt_DD:=$DD} 14357if test -z "$lt_DD"; then 14358 ac_path_lt_DD_found=false 14359 # Loop through the user's path and test for each of PROGNAME-LIST 14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14361for as_dir in $PATH 14362do 14363 IFS=$as_save_IFS 14364 test -z "$as_dir" && as_dir=. 14365 for ac_prog in dd; do 14366 for ac_exec_ext in '' $ac_executable_extensions; do 14367 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 14368 as_fn_executable_p "$ac_path_lt_DD" || continue 14369if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14370 cmp -s conftest.i conftest.out \ 14371 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14372fi 14373 $ac_path_lt_DD_found && break 3 14374 done 14375 done 14376 done 14377IFS=$as_save_IFS 14378 if test -z "$ac_cv_path_lt_DD"; then 14379 : 14380 fi 14381else 14382 ac_cv_path_lt_DD=$lt_DD 14383fi 14384 14385rm -f conftest.i conftest2.i conftest.out 14386fi 14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14388$as_echo "$ac_cv_path_lt_DD" >&6; } 14389 14390 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14392$as_echo_n "checking how to truncate binary pipes... " >&6; } 14393if ${lt_cv_truncate_bin+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 printf 0123456789abcdef0123456789abcdef >conftest.i 14397cat conftest.i conftest.i >conftest2.i 14398lt_cv_truncate_bin= 14399if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14400 cmp -s conftest.i conftest.out \ 14401 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14402fi 14403rm -f conftest.i conftest2.i conftest.out 14404test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14407$as_echo "$lt_cv_truncate_bin" >&6; } 14408 14409 14410 14411 14412 14413 14414 14415# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14416func_cc_basename () 14417{ 14418 for cc_temp in $*""; do 14419 case $cc_temp in 14420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14422 \-*) ;; 14423 *) break;; 14424 esac 14425 done 14426 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14427} 14428 14429# Check whether --enable-libtool-lock was given. 14430if test "${enable_libtool_lock+set}" = set; then : 14431 enableval=$enable_libtool_lock; 14432fi 14433 14434test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14435 14436# Some flags need to be propagated to the compiler or linker for good 14437# libtool support. 14438case $host in 14439ia64-*-hpux*) 14440 # Find out what ABI is being produced by ac_compile, and set mode 14441 # options accordingly. 14442 echo 'int i;' > conftest.$ac_ext 14443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14444 (eval $ac_compile) 2>&5 14445 ac_status=$? 14446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14447 test $ac_status = 0; }; then 14448 case `/usr/bin/file conftest.$ac_objext` in 14449 *ELF-32*) 14450 HPUX_IA64_MODE=32 14451 ;; 14452 *ELF-64*) 14453 HPUX_IA64_MODE=64 14454 ;; 14455 esac 14456 fi 14457 rm -rf conftest* 14458 ;; 14459*-*-irix6*) 14460 # Find out what ABI is being produced by ac_compile, and set linker 14461 # options accordingly. 14462 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14464 (eval $ac_compile) 2>&5 14465 ac_status=$? 14466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14467 test $ac_status = 0; }; then 14468 if test yes = "$lt_cv_prog_gnu_ld"; then 14469 case `/usr/bin/file conftest.$ac_objext` in 14470 *32-bit*) 14471 LD="${LD-ld} -melf32bsmip" 14472 ;; 14473 *N32*) 14474 LD="${LD-ld} -melf32bmipn32" 14475 ;; 14476 *64-bit*) 14477 LD="${LD-ld} -melf64bmip" 14478 ;; 14479 esac 14480 else 14481 case `/usr/bin/file conftest.$ac_objext` in 14482 *32-bit*) 14483 LD="${LD-ld} -32" 14484 ;; 14485 *N32*) 14486 LD="${LD-ld} -n32" 14487 ;; 14488 *64-bit*) 14489 LD="${LD-ld} -64" 14490 ;; 14491 esac 14492 fi 14493 fi 14494 rm -rf conftest* 14495 ;; 14496 14497mips64*-*linux*) 14498 # Find out what ABI is being produced by ac_compile, and set linker 14499 # options accordingly. 14500 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14502 (eval $ac_compile) 2>&5 14503 ac_status=$? 14504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14505 test $ac_status = 0; }; then 14506 emul=elf 14507 case `/usr/bin/file conftest.$ac_objext` in 14508 *32-bit*) 14509 emul="${emul}32" 14510 ;; 14511 *64-bit*) 14512 emul="${emul}64" 14513 ;; 14514 esac 14515 case `/usr/bin/file conftest.$ac_objext` in 14516 *MSB*) 14517 emul="${emul}btsmip" 14518 ;; 14519 *LSB*) 14520 emul="${emul}ltsmip" 14521 ;; 14522 esac 14523 case `/usr/bin/file conftest.$ac_objext` in 14524 *N32*) 14525 emul="${emul}n32" 14526 ;; 14527 esac 14528 LD="${LD-ld} -m $emul" 14529 fi 14530 rm -rf conftest* 14531 ;; 14532 14533x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14534s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14535 # Find out what ABI is being produced by ac_compile, and set linker 14536 # options accordingly. Note that the listed cases only cover the 14537 # situations where additional linker options are needed (such as when 14538 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14539 # vice versa); the common cases where no linker options are needed do 14540 # not appear in the list. 14541 echo 'int i;' > conftest.$ac_ext 14542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14543 (eval $ac_compile) 2>&5 14544 ac_status=$? 14545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14546 test $ac_status = 0; }; then 14547 case `/usr/bin/file conftest.o` in 14548 *32-bit*) 14549 case $host in 14550 x86_64-*kfreebsd*-gnu) 14551 LD="${LD-ld} -m elf_i386_fbsd" 14552 ;; 14553 x86_64-*linux*) 14554 case `/usr/bin/file conftest.o` in 14555 *x86-64*) 14556 LD="${LD-ld} -m elf32_x86_64" 14557 ;; 14558 *) 14559 LD="${LD-ld} -m elf_i386" 14560 ;; 14561 esac 14562 ;; 14563 powerpc64le-*linux*) 14564 LD="${LD-ld} -m elf32lppclinux" 14565 ;; 14566 powerpc64-*linux*) 14567 LD="${LD-ld} -m elf32ppclinux" 14568 ;; 14569 s390x-*linux*) 14570 LD="${LD-ld} -m elf_s390" 14571 ;; 14572 sparc64-*linux*) 14573 LD="${LD-ld} -m elf32_sparc" 14574 ;; 14575 esac 14576 ;; 14577 *64-bit*) 14578 case $host in 14579 x86_64-*kfreebsd*-gnu) 14580 LD="${LD-ld} -m elf_x86_64_fbsd" 14581 ;; 14582 x86_64-*linux*) 14583 LD="${LD-ld} -m elf_x86_64" 14584 ;; 14585 powerpcle-*linux*) 14586 LD="${LD-ld} -m elf64lppc" 14587 ;; 14588 powerpc-*linux*) 14589 LD="${LD-ld} -m elf64ppc" 14590 ;; 14591 s390*-*linux*|s390*-*tpf*) 14592 LD="${LD-ld} -m elf64_s390" 14593 ;; 14594 sparc*-*linux*) 14595 LD="${LD-ld} -m elf64_sparc" 14596 ;; 14597 esac 14598 ;; 14599 esac 14600 fi 14601 rm -rf conftest* 14602 ;; 14603 14604*-*-sco3.2v5*) 14605 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14606 SAVE_CFLAGS=$CFLAGS 14607 CFLAGS="$CFLAGS -belf" 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14609$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14610if ${lt_cv_cc_needs_belf+:} false; then : 14611 $as_echo_n "(cached) " >&6 14612else 14613 ac_ext=c 14614ac_cpp='$CPP $CPPFLAGS' 14615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14617ac_compiler_gnu=$ac_cv_c_compiler_gnu 14618 14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621 14622int 14623main () 14624{ 14625 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630if ac_fn_c_try_link "$LINENO"; then : 14631 lt_cv_cc_needs_belf=yes 14632else 14633 lt_cv_cc_needs_belf=no 14634fi 14635rm -f core conftest.err conftest.$ac_objext \ 14636 conftest$ac_exeext conftest.$ac_ext 14637 ac_ext=c 14638ac_cpp='$CPP $CPPFLAGS' 14639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14641ac_compiler_gnu=$ac_cv_c_compiler_gnu 14642 14643fi 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14645$as_echo "$lt_cv_cc_needs_belf" >&6; } 14646 if test yes != "$lt_cv_cc_needs_belf"; then 14647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14648 CFLAGS=$SAVE_CFLAGS 14649 fi 14650 ;; 14651*-*solaris*) 14652 # Find out what ABI is being produced by ac_compile, and set linker 14653 # options accordingly. 14654 echo 'int i;' > conftest.$ac_ext 14655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14656 (eval $ac_compile) 2>&5 14657 ac_status=$? 14658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14659 test $ac_status = 0; }; then 14660 case `/usr/bin/file conftest.o` in 14661 *64-bit*) 14662 case $lt_cv_prog_gnu_ld in 14663 yes*) 14664 case $host in 14665 i?86-*-solaris*|x86_64-*-solaris*) 14666 LD="${LD-ld} -m elf_x86_64" 14667 ;; 14668 sparc*-*-solaris*) 14669 LD="${LD-ld} -m elf64_sparc" 14670 ;; 14671 esac 14672 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14673 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14674 LD=${LD-ld}_sol2 14675 fi 14676 ;; 14677 *) 14678 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14679 LD="${LD-ld} -64" 14680 fi 14681 ;; 14682 esac 14683 ;; 14684 esac 14685 fi 14686 rm -rf conftest* 14687 ;; 14688esac 14689 14690need_locks=$enable_libtool_lock 14691 14692if test -n "$ac_tool_prefix"; then 14693 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14694set dummy ${ac_tool_prefix}mt; ac_word=$2 14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14696$as_echo_n "checking for $ac_word... " >&6; } 14697if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 if test -n "$MANIFEST_TOOL"; then 14701 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14702else 14703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704for as_dir in $PATH 14705do 14706 IFS=$as_save_IFS 14707 test -z "$as_dir" && as_dir=. 14708 for ac_exec_ext in '' $ac_executable_extensions; do 14709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14710 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14712 break 2 14713 fi 14714done 14715 done 14716IFS=$as_save_IFS 14717 14718fi 14719fi 14720MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14721if test -n "$MANIFEST_TOOL"; then 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14723$as_echo "$MANIFEST_TOOL" >&6; } 14724else 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14726$as_echo "no" >&6; } 14727fi 14728 14729 14730fi 14731if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14732 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14733 # Extract the first word of "mt", so it can be a program name with args. 14734set dummy mt; ac_word=$2 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14736$as_echo_n "checking for $ac_word... " >&6; } 14737if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 if test -n "$ac_ct_MANIFEST_TOOL"; then 14741 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14742else 14743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14744for as_dir in $PATH 14745do 14746 IFS=$as_save_IFS 14747 test -z "$as_dir" && as_dir=. 14748 for ac_exec_ext in '' $ac_executable_extensions; do 14749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14750 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14752 break 2 14753 fi 14754done 14755 done 14756IFS=$as_save_IFS 14757 14758fi 14759fi 14760ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14761if test -n "$ac_ct_MANIFEST_TOOL"; then 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14763$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 14764else 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14766$as_echo "no" >&6; } 14767fi 14768 14769 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14770 MANIFEST_TOOL=":" 14771 else 14772 case $cross_compiling:$ac_tool_warned in 14773yes:) 14774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14776ac_tool_warned=yes ;; 14777esac 14778 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14779 fi 14780else 14781 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14782fi 14783 14784test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14786$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14787if ${lt_cv_path_mainfest_tool+:} false; then : 14788 $as_echo_n "(cached) " >&6 14789else 14790 lt_cv_path_mainfest_tool=no 14791 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14792 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14793 cat conftest.err >&5 14794 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14795 lt_cv_path_mainfest_tool=yes 14796 fi 14797 rm -f conftest* 14798fi 14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14800$as_echo "$lt_cv_path_mainfest_tool" >&6; } 14801if test yes != "$lt_cv_path_mainfest_tool"; then 14802 MANIFEST_TOOL=: 14803fi 14804 14805 14806 14807 14808 14809 14810 case $host_os in 14811 rhapsody* | darwin*) 14812 if test -n "$ac_tool_prefix"; then 14813 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14814set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14816$as_echo_n "checking for $ac_word... " >&6; } 14817if ${ac_cv_prog_DSYMUTIL+:} false; then : 14818 $as_echo_n "(cached) " >&6 14819else 14820 if test -n "$DSYMUTIL"; then 14821 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14822else 14823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14824for as_dir in $PATH 14825do 14826 IFS=$as_save_IFS 14827 test -z "$as_dir" && as_dir=. 14828 for ac_exec_ext in '' $ac_executable_extensions; do 14829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14830 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14832 break 2 14833 fi 14834done 14835 done 14836IFS=$as_save_IFS 14837 14838fi 14839fi 14840DSYMUTIL=$ac_cv_prog_DSYMUTIL 14841if test -n "$DSYMUTIL"; then 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14843$as_echo "$DSYMUTIL" >&6; } 14844else 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14846$as_echo "no" >&6; } 14847fi 14848 14849 14850fi 14851if test -z "$ac_cv_prog_DSYMUTIL"; then 14852 ac_ct_DSYMUTIL=$DSYMUTIL 14853 # Extract the first word of "dsymutil", so it can be a program name with args. 14854set dummy dsymutil; ac_word=$2 14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14856$as_echo_n "checking for $ac_word... " >&6; } 14857if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14858 $as_echo_n "(cached) " >&6 14859else 14860 if test -n "$ac_ct_DSYMUTIL"; then 14861 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14862else 14863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14864for as_dir in $PATH 14865do 14866 IFS=$as_save_IFS 14867 test -z "$as_dir" && as_dir=. 14868 for ac_exec_ext in '' $ac_executable_extensions; do 14869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14870 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14872 break 2 14873 fi 14874done 14875 done 14876IFS=$as_save_IFS 14877 14878fi 14879fi 14880ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14881if test -n "$ac_ct_DSYMUTIL"; then 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14883$as_echo "$ac_ct_DSYMUTIL" >&6; } 14884else 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886$as_echo "no" >&6; } 14887fi 14888 14889 if test "x$ac_ct_DSYMUTIL" = x; then 14890 DSYMUTIL=":" 14891 else 14892 case $cross_compiling:$ac_tool_warned in 14893yes:) 14894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14896ac_tool_warned=yes ;; 14897esac 14898 DSYMUTIL=$ac_ct_DSYMUTIL 14899 fi 14900else 14901 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14902fi 14903 14904 if test -n "$ac_tool_prefix"; then 14905 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14906set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14908$as_echo_n "checking for $ac_word... " >&6; } 14909if ${ac_cv_prog_NMEDIT+:} false; then : 14910 $as_echo_n "(cached) " >&6 14911else 14912 if test -n "$NMEDIT"; then 14913 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14914else 14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14916for as_dir in $PATH 14917do 14918 IFS=$as_save_IFS 14919 test -z "$as_dir" && as_dir=. 14920 for ac_exec_ext in '' $ac_executable_extensions; do 14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14922 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14924 break 2 14925 fi 14926done 14927 done 14928IFS=$as_save_IFS 14929 14930fi 14931fi 14932NMEDIT=$ac_cv_prog_NMEDIT 14933if test -n "$NMEDIT"; then 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14935$as_echo "$NMEDIT" >&6; } 14936else 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14938$as_echo "no" >&6; } 14939fi 14940 14941 14942fi 14943if test -z "$ac_cv_prog_NMEDIT"; then 14944 ac_ct_NMEDIT=$NMEDIT 14945 # Extract the first word of "nmedit", so it can be a program name with args. 14946set dummy nmedit; ac_word=$2 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14948$as_echo_n "checking for $ac_word... " >&6; } 14949if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 if test -n "$ac_ct_NMEDIT"; then 14953 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14954else 14955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14956for as_dir in $PATH 14957do 14958 IFS=$as_save_IFS 14959 test -z "$as_dir" && as_dir=. 14960 for ac_exec_ext in '' $ac_executable_extensions; do 14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14962 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14964 break 2 14965 fi 14966done 14967 done 14968IFS=$as_save_IFS 14969 14970fi 14971fi 14972ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14973if test -n "$ac_ct_NMEDIT"; then 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14975$as_echo "$ac_ct_NMEDIT" >&6; } 14976else 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14978$as_echo "no" >&6; } 14979fi 14980 14981 if test "x$ac_ct_NMEDIT" = x; then 14982 NMEDIT=":" 14983 else 14984 case $cross_compiling:$ac_tool_warned in 14985yes:) 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14988ac_tool_warned=yes ;; 14989esac 14990 NMEDIT=$ac_ct_NMEDIT 14991 fi 14992else 14993 NMEDIT="$ac_cv_prog_NMEDIT" 14994fi 14995 14996 if test -n "$ac_tool_prefix"; then 14997 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14998set dummy ${ac_tool_prefix}lipo; ac_word=$2 14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15000$as_echo_n "checking for $ac_word... " >&6; } 15001if ${ac_cv_prog_LIPO+:} false; then : 15002 $as_echo_n "(cached) " >&6 15003else 15004 if test -n "$LIPO"; then 15005 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15006else 15007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15008for as_dir in $PATH 15009do 15010 IFS=$as_save_IFS 15011 test -z "$as_dir" && as_dir=. 15012 for ac_exec_ext in '' $ac_executable_extensions; do 15013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15014 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15016 break 2 15017 fi 15018done 15019 done 15020IFS=$as_save_IFS 15021 15022fi 15023fi 15024LIPO=$ac_cv_prog_LIPO 15025if test -n "$LIPO"; then 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15027$as_echo "$LIPO" >&6; } 15028else 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15030$as_echo "no" >&6; } 15031fi 15032 15033 15034fi 15035if test -z "$ac_cv_prog_LIPO"; then 15036 ac_ct_LIPO=$LIPO 15037 # Extract the first word of "lipo", so it can be a program name with args. 15038set dummy lipo; ac_word=$2 15039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15040$as_echo_n "checking for $ac_word... " >&6; } 15041if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15042 $as_echo_n "(cached) " >&6 15043else 15044 if test -n "$ac_ct_LIPO"; then 15045 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15046else 15047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15048for as_dir in $PATH 15049do 15050 IFS=$as_save_IFS 15051 test -z "$as_dir" && as_dir=. 15052 for ac_exec_ext in '' $ac_executable_extensions; do 15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15054 ac_cv_prog_ac_ct_LIPO="lipo" 15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15056 break 2 15057 fi 15058done 15059 done 15060IFS=$as_save_IFS 15061 15062fi 15063fi 15064ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15065if test -n "$ac_ct_LIPO"; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15067$as_echo "$ac_ct_LIPO" >&6; } 15068else 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15070$as_echo "no" >&6; } 15071fi 15072 15073 if test "x$ac_ct_LIPO" = x; then 15074 LIPO=":" 15075 else 15076 case $cross_compiling:$ac_tool_warned in 15077yes:) 15078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15080ac_tool_warned=yes ;; 15081esac 15082 LIPO=$ac_ct_LIPO 15083 fi 15084else 15085 LIPO="$ac_cv_prog_LIPO" 15086fi 15087 15088 if test -n "$ac_tool_prefix"; then 15089 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15090set dummy ${ac_tool_prefix}otool; ac_word=$2 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15092$as_echo_n "checking for $ac_word... " >&6; } 15093if ${ac_cv_prog_OTOOL+:} false; then : 15094 $as_echo_n "(cached) " >&6 15095else 15096 if test -n "$OTOOL"; then 15097 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15098else 15099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15100for as_dir in $PATH 15101do 15102 IFS=$as_save_IFS 15103 test -z "$as_dir" && as_dir=. 15104 for ac_exec_ext in '' $ac_executable_extensions; do 15105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15106 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15108 break 2 15109 fi 15110done 15111 done 15112IFS=$as_save_IFS 15113 15114fi 15115fi 15116OTOOL=$ac_cv_prog_OTOOL 15117if test -n "$OTOOL"; then 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15119$as_echo "$OTOOL" >&6; } 15120else 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15122$as_echo "no" >&6; } 15123fi 15124 15125 15126fi 15127if test -z "$ac_cv_prog_OTOOL"; then 15128 ac_ct_OTOOL=$OTOOL 15129 # Extract the first word of "otool", so it can be a program name with args. 15130set dummy otool; ac_word=$2 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15132$as_echo_n "checking for $ac_word... " >&6; } 15133if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 if test -n "$ac_ct_OTOOL"; then 15137 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15138else 15139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15140for as_dir in $PATH 15141do 15142 IFS=$as_save_IFS 15143 test -z "$as_dir" && as_dir=. 15144 for ac_exec_ext in '' $ac_executable_extensions; do 15145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15146 ac_cv_prog_ac_ct_OTOOL="otool" 15147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15148 break 2 15149 fi 15150done 15151 done 15152IFS=$as_save_IFS 15153 15154fi 15155fi 15156ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15157if test -n "$ac_ct_OTOOL"; then 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15159$as_echo "$ac_ct_OTOOL" >&6; } 15160else 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15162$as_echo "no" >&6; } 15163fi 15164 15165 if test "x$ac_ct_OTOOL" = x; then 15166 OTOOL=":" 15167 else 15168 case $cross_compiling:$ac_tool_warned in 15169yes:) 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15172ac_tool_warned=yes ;; 15173esac 15174 OTOOL=$ac_ct_OTOOL 15175 fi 15176else 15177 OTOOL="$ac_cv_prog_OTOOL" 15178fi 15179 15180 if test -n "$ac_tool_prefix"; then 15181 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15182set dummy ${ac_tool_prefix}otool64; ac_word=$2 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15184$as_echo_n "checking for $ac_word... " >&6; } 15185if ${ac_cv_prog_OTOOL64+:} false; then : 15186 $as_echo_n "(cached) " >&6 15187else 15188 if test -n "$OTOOL64"; then 15189 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15190else 15191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15192for as_dir in $PATH 15193do 15194 IFS=$as_save_IFS 15195 test -z "$as_dir" && as_dir=. 15196 for ac_exec_ext in '' $ac_executable_extensions; do 15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15198 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15200 break 2 15201 fi 15202done 15203 done 15204IFS=$as_save_IFS 15205 15206fi 15207fi 15208OTOOL64=$ac_cv_prog_OTOOL64 15209if test -n "$OTOOL64"; then 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15211$as_echo "$OTOOL64" >&6; } 15212else 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15214$as_echo "no" >&6; } 15215fi 15216 15217 15218fi 15219if test -z "$ac_cv_prog_OTOOL64"; then 15220 ac_ct_OTOOL64=$OTOOL64 15221 # Extract the first word of "otool64", so it can be a program name with args. 15222set dummy otool64; ac_word=$2 15223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15224$as_echo_n "checking for $ac_word... " >&6; } 15225if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 if test -n "$ac_ct_OTOOL64"; then 15229 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15230else 15231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15232for as_dir in $PATH 15233do 15234 IFS=$as_save_IFS 15235 test -z "$as_dir" && as_dir=. 15236 for ac_exec_ext in '' $ac_executable_extensions; do 15237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15238 ac_cv_prog_ac_ct_OTOOL64="otool64" 15239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15240 break 2 15241 fi 15242done 15243 done 15244IFS=$as_save_IFS 15245 15246fi 15247fi 15248ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15249if test -n "$ac_ct_OTOOL64"; then 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15251$as_echo "$ac_ct_OTOOL64" >&6; } 15252else 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15254$as_echo "no" >&6; } 15255fi 15256 15257 if test "x$ac_ct_OTOOL64" = x; then 15258 OTOOL64=":" 15259 else 15260 case $cross_compiling:$ac_tool_warned in 15261yes:) 15262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15264ac_tool_warned=yes ;; 15265esac 15266 OTOOL64=$ac_ct_OTOOL64 15267 fi 15268else 15269 OTOOL64="$ac_cv_prog_OTOOL64" 15270fi 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15299$as_echo_n "checking for -single_module linker flag... " >&6; } 15300if ${lt_cv_apple_cc_single_mod+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 lt_cv_apple_cc_single_mod=no 15304 if test -z "$LT_MULTI_MODULE"; then 15305 # By default we will add the -single_module flag. You can override 15306 # by either setting the environment variable LT_MULTI_MODULE 15307 # non-empty at configure time, or by adding -multi_module to the 15308 # link flags. 15309 rm -rf libconftest.dylib* 15310 echo "int foo(void){return 1;}" > conftest.c 15311 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15312-dynamiclib -Wl,-single_module conftest.c" >&5 15313 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15314 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15315 _lt_result=$? 15316 # If there is a non-empty error log, and "single_module" 15317 # appears in it, assume the flag caused a linker warning 15318 if test -s conftest.err && $GREP single_module conftest.err; then 15319 cat conftest.err >&5 15320 # Otherwise, if the output was created with a 0 exit code from 15321 # the compiler, it worked. 15322 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15323 lt_cv_apple_cc_single_mod=yes 15324 else 15325 cat conftest.err >&5 15326 fi 15327 rm -rf libconftest.dylib* 15328 rm -f conftest.* 15329 fi 15330fi 15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15332$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15333 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15335$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15336if ${lt_cv_ld_exported_symbols_list+:} false; then : 15337 $as_echo_n "(cached) " >&6 15338else 15339 lt_cv_ld_exported_symbols_list=no 15340 save_LDFLAGS=$LDFLAGS 15341 echo "_main" > conftest.sym 15342 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344/* end confdefs.h. */ 15345 15346int 15347main () 15348{ 15349 15350 ; 15351 return 0; 15352} 15353_ACEOF 15354if ac_fn_c_try_link "$LINENO"; then : 15355 lt_cv_ld_exported_symbols_list=yes 15356else 15357 lt_cv_ld_exported_symbols_list=no 15358fi 15359rm -f core conftest.err conftest.$ac_objext \ 15360 conftest$ac_exeext conftest.$ac_ext 15361 LDFLAGS=$save_LDFLAGS 15362 15363fi 15364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15365$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15366 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15368$as_echo_n "checking for -force_load linker flag... " >&6; } 15369if ${lt_cv_ld_force_load+:} false; then : 15370 $as_echo_n "(cached) " >&6 15371else 15372 lt_cv_ld_force_load=no 15373 cat > conftest.c << _LT_EOF 15374int forced_loaded() { return 2;} 15375_LT_EOF 15376 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15377 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15378 echo "$AR cru libconftest.a conftest.o" >&5 15379 $AR cru libconftest.a conftest.o 2>&5 15380 echo "$RANLIB libconftest.a" >&5 15381 $RANLIB libconftest.a 2>&5 15382 cat > conftest.c << _LT_EOF 15383int main() { return 0;} 15384_LT_EOF 15385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15387 _lt_result=$? 15388 if test -s conftest.err && $GREP force_load conftest.err; then 15389 cat conftest.err >&5 15390 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15391 lt_cv_ld_force_load=yes 15392 else 15393 cat conftest.err >&5 15394 fi 15395 rm -f conftest.err libconftest.a conftest conftest.c 15396 rm -rf conftest.dSYM 15397 15398fi 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15400$as_echo "$lt_cv_ld_force_load" >&6; } 15401 case $host_os in 15402 rhapsody* | darwin1.[012]) 15403 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15404 darwin1.*) 15405 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15406 darwin*) # darwin 5.x on 15407 # if running on 10.5 or later, the deployment target defaults 15408 # to the OS version, if on x86, and 10.4, the deployment 15409 # target defaults to 10.4. Don't you love it? 15410 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15411 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15412 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15413 10.[012][,.]*) 15414 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15415 10.*) 15416 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15417 esac 15418 ;; 15419 esac 15420 if test yes = "$lt_cv_apple_cc_single_mod"; then 15421 _lt_dar_single_mod='$single_module' 15422 fi 15423 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15424 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15425 else 15426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15427 fi 15428 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15429 _lt_dsymutil='~$DSYMUTIL $lib || :' 15430 else 15431 _lt_dsymutil= 15432 fi 15433 ;; 15434 esac 15435 15436# func_munge_path_list VARIABLE PATH 15437# ----------------------------------- 15438# VARIABLE is name of variable containing _space_ separated list of 15439# directories to be munged by the contents of PATH, which is string 15440# having a format: 15441# "DIR[:DIR]:" 15442# string "DIR[ DIR]" will be prepended to VARIABLE 15443# ":DIR[:DIR]" 15444# string "DIR[ DIR]" will be appended to VARIABLE 15445# "DIRP[:DIRP]::[DIRA:]DIRA" 15446# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15447# "DIRA[ DIRA]" will be appended to VARIABLE 15448# "DIR[:DIR]" 15449# VARIABLE will be replaced by "DIR[ DIR]" 15450func_munge_path_list () 15451{ 15452 case x$2 in 15453 x) 15454 ;; 15455 *:) 15456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15457 ;; 15458 x:*) 15459 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15460 ;; 15461 *::*) 15462 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15463 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15464 ;; 15465 *) 15466 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15467 ;; 15468 esac 15469} 15470 15471for ac_header in dlfcn.h 15472do : 15473 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15474" 15475if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15476 cat >>confdefs.h <<_ACEOF 15477#define HAVE_DLFCN_H 1 15478_ACEOF 15479 15480fi 15481 15482done 15483 15484 15485 15486 15487func_stripname_cnf () 15488{ 15489 case $2 in 15490 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15491 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15492 esac 15493} # func_stripname_cnf 15494 15495 15496 15497 15498 15499# Set options 15500 15501 15502 15503 enable_dlopen=no 15504 15505 15506 enable_win32_dll=no 15507 15508 15509 # Check whether --enable-shared was given. 15510if test "${enable_shared+set}" = set; then : 15511 enableval=$enable_shared; p=${PACKAGE-default} 15512 case $enableval in 15513 yes) enable_shared=yes ;; 15514 no) enable_shared=no ;; 15515 *) 15516 enable_shared=no 15517 # Look at the argument we got. We use all the common list separators. 15518 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15519 for pkg in $enableval; do 15520 IFS=$lt_save_ifs 15521 if test "X$pkg" = "X$p"; then 15522 enable_shared=yes 15523 fi 15524 done 15525 IFS=$lt_save_ifs 15526 ;; 15527 esac 15528else 15529 enable_shared=yes 15530fi 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 # Check whether --enable-static was given. 15541if test "${enable_static+set}" = set; then : 15542 enableval=$enable_static; p=${PACKAGE-default} 15543 case $enableval in 15544 yes) enable_static=yes ;; 15545 no) enable_static=no ;; 15546 *) 15547 enable_static=no 15548 # Look at the argument we got. We use all the common list separators. 15549 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15550 for pkg in $enableval; do 15551 IFS=$lt_save_ifs 15552 if test "X$pkg" = "X$p"; then 15553 enable_static=yes 15554 fi 15555 done 15556 IFS=$lt_save_ifs 15557 ;; 15558 esac 15559else 15560 enable_static=yes 15561fi 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572# Check whether --with-pic was given. 15573if test "${with_pic+set}" = set; then : 15574 withval=$with_pic; lt_p=${PACKAGE-default} 15575 case $withval in 15576 yes|no) pic_mode=$withval ;; 15577 *) 15578 pic_mode=default 15579 # Look at the argument we got. We use all the common list separators. 15580 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15581 for lt_pkg in $withval; do 15582 IFS=$lt_save_ifs 15583 if test "X$lt_pkg" = "X$lt_p"; then 15584 pic_mode=yes 15585 fi 15586 done 15587 IFS=$lt_save_ifs 15588 ;; 15589 esac 15590else 15591 pic_mode=default 15592fi 15593 15594 15595 15596 15597 15598 15599 15600 15601 # Check whether --enable-fast-install was given. 15602if test "${enable_fast_install+set}" = set; then : 15603 enableval=$enable_fast_install; p=${PACKAGE-default} 15604 case $enableval in 15605 yes) enable_fast_install=yes ;; 15606 no) enable_fast_install=no ;; 15607 *) 15608 enable_fast_install=no 15609 # Look at the argument we got. We use all the common list separators. 15610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15611 for pkg in $enableval; do 15612 IFS=$lt_save_ifs 15613 if test "X$pkg" = "X$p"; then 15614 enable_fast_install=yes 15615 fi 15616 done 15617 IFS=$lt_save_ifs 15618 ;; 15619 esac 15620else 15621 enable_fast_install=yes 15622fi 15623 15624 15625 15626 15627 15628 15629 15630 15631 shared_archive_member_spec= 15632case $host,$enable_shared in 15633power*-*-aix[5-9]*,yes) 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15635$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 15636 15637# Check whether --with-aix-soname was given. 15638if test "${with_aix_soname+set}" = set; then : 15639 withval=$with_aix_soname; case $withval in 15640 aix|svr4|both) 15641 ;; 15642 *) 15643 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15644 ;; 15645 esac 15646 lt_cv_with_aix_soname=$with_aix_soname 15647else 15648 if ${lt_cv_with_aix_soname+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 lt_cv_with_aix_soname=aix 15652fi 15653 15654 with_aix_soname=$lt_cv_with_aix_soname 15655fi 15656 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15658$as_echo "$with_aix_soname" >&6; } 15659 if test aix != "$with_aix_soname"; then 15660 # For the AIX way of multilib, we name the shared archive member 15661 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15662 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15663 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15664 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15665 if test 64 = "${OBJECT_MODE-32}"; then 15666 shared_archive_member_spec=shr_64 15667 else 15668 shared_archive_member_spec=shr 15669 fi 15670 fi 15671 ;; 15672*) 15673 with_aix_soname=aix 15674 ;; 15675esac 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686# This can be used to rebuild libtool when needed 15687LIBTOOL_DEPS=$ltmain 15688 15689# Always use our own libtool. 15690LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721test -z "$LN_S" && LN_S="ln -s" 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736if test -n "${ZSH_VERSION+set}"; then 15737 setopt NO_GLOB_SUBST 15738fi 15739 15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15741$as_echo_n "checking for objdir... " >&6; } 15742if ${lt_cv_objdir+:} false; then : 15743 $as_echo_n "(cached) " >&6 15744else 15745 rm -f .libs 2>/dev/null 15746mkdir .libs 2>/dev/null 15747if test -d .libs; then 15748 lt_cv_objdir=.libs 15749else 15750 # MS-DOS does not allow filenames that begin with a dot. 15751 lt_cv_objdir=_libs 15752fi 15753rmdir .libs 2>/dev/null 15754fi 15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15756$as_echo "$lt_cv_objdir" >&6; } 15757objdir=$lt_cv_objdir 15758 15759 15760 15761 15762 15763cat >>confdefs.h <<_ACEOF 15764#define LT_OBJDIR "$lt_cv_objdir/" 15765_ACEOF 15766 15767 15768 15769 15770case $host_os in 15771aix3*) 15772 # AIX sometimes has problems with the GCC collect2 program. For some 15773 # reason, if we set the COLLECT_NAMES environment variable, the problems 15774 # vanish in a puff of smoke. 15775 if test set != "${COLLECT_NAMES+set}"; then 15776 COLLECT_NAMES= 15777 export COLLECT_NAMES 15778 fi 15779 ;; 15780esac 15781 15782# Global variables: 15783ofile=libtool 15784can_build_shared=yes 15785 15786# All known linkers require a '.a' archive for static linking (except MSVC, 15787# which needs '.lib'). 15788libext=a 15789 15790with_gnu_ld=$lt_cv_prog_gnu_ld 15791 15792old_CC=$CC 15793old_CFLAGS=$CFLAGS 15794 15795# Set sane defaults for various variables 15796test -z "$CC" && CC=cc 15797test -z "$LTCC" && LTCC=$CC 15798test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15799test -z "$LD" && LD=ld 15800test -z "$ac_objext" && ac_objext=o 15801 15802func_cc_basename $compiler 15803cc_basename=$func_cc_basename_result 15804 15805 15806# Only perform the check for file, if the check method requires it 15807test -z "$MAGIC_CMD" && MAGIC_CMD=file 15808case $deplibs_check_method in 15809file_magic*) 15810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15812$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15813if ${lt_cv_path_MAGIC_CMD+:} false; then : 15814 $as_echo_n "(cached) " >&6 15815else 15816 case $MAGIC_CMD in 15817[\\/*] | ?:[\\/]*) 15818 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15819 ;; 15820*) 15821 lt_save_MAGIC_CMD=$MAGIC_CMD 15822 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15824 for ac_dir in $ac_dummy; do 15825 IFS=$lt_save_ifs 15826 test -z "$ac_dir" && ac_dir=. 15827 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15828 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15829 if test -n "$file_magic_test_file"; then 15830 case $deplibs_check_method in 15831 "file_magic "*) 15832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15833 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15835 $EGREP "$file_magic_regex" > /dev/null; then 15836 : 15837 else 15838 cat <<_LT_EOF 1>&2 15839 15840*** Warning: the command libtool uses to detect shared libraries, 15841*** $file_magic_cmd, produces output that libtool cannot recognize. 15842*** The result is that libtool may fail to recognize shared libraries 15843*** as such. This will affect the creation of libtool libraries that 15844*** depend on shared libraries, but programs linked with such libtool 15845*** libraries will work regardless of this problem. Nevertheless, you 15846*** may want to report the problem to your system manager and/or to 15847*** bug-libtool@gnu.org 15848 15849_LT_EOF 15850 fi ;; 15851 esac 15852 fi 15853 break 15854 fi 15855 done 15856 IFS=$lt_save_ifs 15857 MAGIC_CMD=$lt_save_MAGIC_CMD 15858 ;; 15859esac 15860fi 15861 15862MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15863if test -n "$MAGIC_CMD"; then 15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15865$as_echo "$MAGIC_CMD" >&6; } 15866else 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15868$as_echo "no" >&6; } 15869fi 15870 15871 15872 15873 15874 15875if test -z "$lt_cv_path_MAGIC_CMD"; then 15876 if test -n "$ac_tool_prefix"; then 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15878$as_echo_n "checking for file... " >&6; } 15879if ${lt_cv_path_MAGIC_CMD+:} false; then : 15880 $as_echo_n "(cached) " >&6 15881else 15882 case $MAGIC_CMD in 15883[\\/*] | ?:[\\/]*) 15884 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15885 ;; 15886*) 15887 lt_save_MAGIC_CMD=$MAGIC_CMD 15888 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15890 for ac_dir in $ac_dummy; do 15891 IFS=$lt_save_ifs 15892 test -z "$ac_dir" && ac_dir=. 15893 if test -f "$ac_dir/file"; then 15894 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15895 if test -n "$file_magic_test_file"; then 15896 case $deplibs_check_method in 15897 "file_magic "*) 15898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15899 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15901 $EGREP "$file_magic_regex" > /dev/null; then 15902 : 15903 else 15904 cat <<_LT_EOF 1>&2 15905 15906*** Warning: the command libtool uses to detect shared libraries, 15907*** $file_magic_cmd, produces output that libtool cannot recognize. 15908*** The result is that libtool may fail to recognize shared libraries 15909*** as such. This will affect the creation of libtool libraries that 15910*** depend on shared libraries, but programs linked with such libtool 15911*** libraries will work regardless of this problem. Nevertheless, you 15912*** may want to report the problem to your system manager and/or to 15913*** bug-libtool@gnu.org 15914 15915_LT_EOF 15916 fi ;; 15917 esac 15918 fi 15919 break 15920 fi 15921 done 15922 IFS=$lt_save_ifs 15923 MAGIC_CMD=$lt_save_MAGIC_CMD 15924 ;; 15925esac 15926fi 15927 15928MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15929if test -n "$MAGIC_CMD"; then 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15931$as_echo "$MAGIC_CMD" >&6; } 15932else 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15934$as_echo "no" >&6; } 15935fi 15936 15937 15938 else 15939 MAGIC_CMD=: 15940 fi 15941fi 15942 15943 fi 15944 ;; 15945esac 15946 15947# Use C for the default configuration in the libtool script 15948 15949lt_save_CC=$CC 15950ac_ext=c 15951ac_cpp='$CPP $CPPFLAGS' 15952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15954ac_compiler_gnu=$ac_cv_c_compiler_gnu 15955 15956 15957# Source file extension for C test sources. 15958ac_ext=c 15959 15960# Object file extension for compiled C test sources. 15961objext=o 15962objext=$objext 15963 15964# Code to be used in simple compile tests 15965lt_simple_compile_test_code="int some_variable = 0;" 15966 15967# Code to be used in simple link tests 15968lt_simple_link_test_code='int main(){return(0);}' 15969 15970 15971 15972 15973 15974 15975 15976# If no C compiler was specified, use CC. 15977LTCC=${LTCC-"$CC"} 15978 15979# If no C compiler flags were specified, use CFLAGS. 15980LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15981 15982# Allow CC to be a program name with arguments. 15983compiler=$CC 15984 15985# Save the default compiler, since it gets overwritten when the other 15986# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15987compiler_DEFAULT=$CC 15988 15989# save warnings/boilerplate of simple test code 15990ac_outfile=conftest.$ac_objext 15991echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15992eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15993_lt_compiler_boilerplate=`cat conftest.err` 15994$RM conftest* 15995 15996ac_outfile=conftest.$ac_objext 15997echo "$lt_simple_link_test_code" >conftest.$ac_ext 15998eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15999_lt_linker_boilerplate=`cat conftest.err` 16000$RM -r conftest* 16001 16002 16003## CAVEAT EMPTOR: 16004## There is no encapsulation within the following macros, do not change 16005## the running order or otherwise move them around unless you know exactly 16006## what you are doing... 16007if test -n "$compiler"; then 16008 16009lt_prog_compiler_no_builtin_flag= 16010 16011if test yes = "$GCC"; then 16012 case $cc_basename in 16013 nvcc*) 16014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16015 *) 16016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16017 esac 16018 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16020$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16021if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16022 $as_echo_n "(cached) " >&6 16023else 16024 lt_cv_prog_compiler_rtti_exceptions=no 16025 ac_outfile=conftest.$ac_objext 16026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16027 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 16028 # Insert the option either (1) after the last *FLAGS variable, or 16029 # (2) before a word containing "conftest.", or (3) at the end. 16030 # Note that $ac_compile itself does not contain backslashes and begins 16031 # with a dollar sign (not a hyphen), so the echo should work correctly. 16032 # The option is referenced via a variable to avoid confusing sed. 16033 lt_compile=`echo "$ac_compile" | $SED \ 16034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16036 -e 's:$: $lt_compiler_flag:'` 16037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16038 (eval "$lt_compile" 2>conftest.err) 16039 ac_status=$? 16040 cat conftest.err >&5 16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16042 if (exit $ac_status) && test -s "$ac_outfile"; then 16043 # The compiler can only warn and ignore the option if not recognized 16044 # So say no if there are warnings other than the usual output. 16045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16048 lt_cv_prog_compiler_rtti_exceptions=yes 16049 fi 16050 fi 16051 $RM conftest* 16052 16053fi 16054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16055$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16056 16057if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 16058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16059else 16060 : 16061fi 16062 16063fi 16064 16065 16066 16067 16068 16069 16070 lt_prog_compiler_wl= 16071lt_prog_compiler_pic= 16072lt_prog_compiler_static= 16073 16074 16075 if test yes = "$GCC"; then 16076 lt_prog_compiler_wl='-Wl,' 16077 lt_prog_compiler_static='-static' 16078 16079 case $host_os in 16080 aix*) 16081 # All AIX code is PIC. 16082 if test ia64 = "$host_cpu"; then 16083 # AIX 5 now supports IA64 processor 16084 lt_prog_compiler_static='-Bstatic' 16085 fi 16086 lt_prog_compiler_pic='-fPIC' 16087 ;; 16088 16089 amigaos*) 16090 case $host_cpu in 16091 powerpc) 16092 # see comment about AmigaOS4 .so support 16093 lt_prog_compiler_pic='-fPIC' 16094 ;; 16095 m68k) 16096 # FIXME: we need at least 68020 code to build shared libraries, but 16097 # adding the '-m68020' flag to GCC prevents building anything better, 16098 # like '-m68040'. 16099 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16100 ;; 16101 esac 16102 ;; 16103 16104 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16105 # PIC is the default for these OSes. 16106 ;; 16107 16108 mingw* | cygwin* | pw32* | os2* | cegcc*) 16109 # This hack is so that the source file can tell whether it is being 16110 # built for inclusion in a dll (and should export symbols for example). 16111 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16112 # (--disable-auto-import) libraries 16113 lt_prog_compiler_pic='-DDLL_EXPORT' 16114 case $host_os in 16115 os2*) 16116 lt_prog_compiler_static='$wl-static' 16117 ;; 16118 esac 16119 ;; 16120 16121 darwin* | rhapsody*) 16122 # PIC is the default on this platform 16123 # Common symbols not allowed in MH_DYLIB files 16124 lt_prog_compiler_pic='-fno-common' 16125 ;; 16126 16127 haiku*) 16128 # PIC is the default for Haiku. 16129 # The "-static" flag exists, but is broken. 16130 lt_prog_compiler_static= 16131 ;; 16132 16133 hpux*) 16134 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16135 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16136 # sets the default TLS model and affects inlining. 16137 case $host_cpu in 16138 hppa*64*) 16139 # +Z the default 16140 ;; 16141 *) 16142 lt_prog_compiler_pic='-fPIC' 16143 ;; 16144 esac 16145 ;; 16146 16147 interix[3-9]*) 16148 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16149 # Instead, we relocate shared libraries at runtime. 16150 ;; 16151 16152 msdosdjgpp*) 16153 # Just because we use GCC doesn't mean we suddenly get shared libraries 16154 # on systems that don't support them. 16155 lt_prog_compiler_can_build_shared=no 16156 enable_shared=no 16157 ;; 16158 16159 *nto* | *qnx*) 16160 # QNX uses GNU C++, but need to define -shared option too, otherwise 16161 # it will coredump. 16162 lt_prog_compiler_pic='-fPIC -shared' 16163 ;; 16164 16165 sysv4*MP*) 16166 if test -d /usr/nec; then 16167 lt_prog_compiler_pic=-Kconform_pic 16168 fi 16169 ;; 16170 16171 *) 16172 lt_prog_compiler_pic='-fPIC' 16173 ;; 16174 esac 16175 16176 case $cc_basename in 16177 nvcc*) # Cuda Compiler Driver 2.2 16178 lt_prog_compiler_wl='-Xlinker ' 16179 if test -n "$lt_prog_compiler_pic"; then 16180 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16181 fi 16182 ;; 16183 esac 16184 else 16185 # PORTME Check for flag to pass linker flags through the system compiler. 16186 case $host_os in 16187 aix*) 16188 lt_prog_compiler_wl='-Wl,' 16189 if test ia64 = "$host_cpu"; then 16190 # AIX 5 now supports IA64 processor 16191 lt_prog_compiler_static='-Bstatic' 16192 else 16193 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16194 fi 16195 ;; 16196 16197 darwin* | rhapsody*) 16198 # PIC is the default on this platform 16199 # Common symbols not allowed in MH_DYLIB files 16200 lt_prog_compiler_pic='-fno-common' 16201 case $cc_basename in 16202 nagfor*) 16203 # NAG Fortran compiler 16204 lt_prog_compiler_wl='-Wl,-Wl,,' 16205 lt_prog_compiler_pic='-PIC' 16206 lt_prog_compiler_static='-Bstatic' 16207 ;; 16208 esac 16209 ;; 16210 16211 mingw* | cygwin* | pw32* | os2* | cegcc*) 16212 # This hack is so that the source file can tell whether it is being 16213 # built for inclusion in a dll (and should export symbols for example). 16214 lt_prog_compiler_pic='-DDLL_EXPORT' 16215 case $host_os in 16216 os2*) 16217 lt_prog_compiler_static='$wl-static' 16218 ;; 16219 esac 16220 ;; 16221 16222 hpux9* | hpux10* | hpux11*) 16223 lt_prog_compiler_wl='-Wl,' 16224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16225 # not for PA HP-UX. 16226 case $host_cpu in 16227 hppa*64*|ia64*) 16228 # +Z the default 16229 ;; 16230 *) 16231 lt_prog_compiler_pic='+Z' 16232 ;; 16233 esac 16234 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16235 lt_prog_compiler_static='$wl-a ${wl}archive' 16236 ;; 16237 16238 irix5* | irix6* | nonstopux*) 16239 lt_prog_compiler_wl='-Wl,' 16240 # PIC (with -KPIC) is the default. 16241 lt_prog_compiler_static='-non_shared' 16242 ;; 16243 16244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16245 case $cc_basename in 16246 # old Intel for x86_64, which still supported -KPIC. 16247 ecc*) 16248 lt_prog_compiler_wl='-Wl,' 16249 lt_prog_compiler_pic='-KPIC' 16250 lt_prog_compiler_static='-static' 16251 ;; 16252 # icc used to be incompatible with GCC. 16253 # ICC 10 doesn't accept -KPIC any more. 16254 icc* | ifort*) 16255 lt_prog_compiler_wl='-Wl,' 16256 lt_prog_compiler_pic='-fPIC' 16257 lt_prog_compiler_static='-static' 16258 ;; 16259 # Lahey Fortran 8.1. 16260 lf95*) 16261 lt_prog_compiler_wl='-Wl,' 16262 lt_prog_compiler_pic='--shared' 16263 lt_prog_compiler_static='--static' 16264 ;; 16265 nagfor*) 16266 # NAG Fortran compiler 16267 lt_prog_compiler_wl='-Wl,-Wl,,' 16268 lt_prog_compiler_pic='-PIC' 16269 lt_prog_compiler_static='-Bstatic' 16270 ;; 16271 tcc*) 16272 # Fabrice Bellard et al's Tiny C Compiler 16273 lt_prog_compiler_wl='-Wl,' 16274 lt_prog_compiler_pic='-fPIC' 16275 lt_prog_compiler_static='-static' 16276 ;; 16277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16278 # Portland Group compilers (*not* the Pentium gcc compiler, 16279 # which looks to be a dead project) 16280 lt_prog_compiler_wl='-Wl,' 16281 lt_prog_compiler_pic='-fpic' 16282 lt_prog_compiler_static='-Bstatic' 16283 ;; 16284 ccc*) 16285 lt_prog_compiler_wl='-Wl,' 16286 # All Alpha code is PIC. 16287 lt_prog_compiler_static='-non_shared' 16288 ;; 16289 xl* | bgxl* | bgf* | mpixl*) 16290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16291 lt_prog_compiler_wl='-Wl,' 16292 lt_prog_compiler_pic='-qpic' 16293 lt_prog_compiler_static='-qstaticlink' 16294 ;; 16295 *) 16296 case `$CC -V 2>&1 | sed 5q` in 16297 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16298 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16299 lt_prog_compiler_pic='-KPIC' 16300 lt_prog_compiler_static='-Bstatic' 16301 lt_prog_compiler_wl='' 16302 ;; 16303 *Sun\ F* | *Sun*Fortran*) 16304 lt_prog_compiler_pic='-KPIC' 16305 lt_prog_compiler_static='-Bstatic' 16306 lt_prog_compiler_wl='-Qoption ld ' 16307 ;; 16308 *Sun\ C*) 16309 # Sun C 5.9 16310 lt_prog_compiler_pic='-KPIC' 16311 lt_prog_compiler_static='-Bstatic' 16312 lt_prog_compiler_wl='-Wl,' 16313 ;; 16314 *Intel*\ [CF]*Compiler*) 16315 lt_prog_compiler_wl='-Wl,' 16316 lt_prog_compiler_pic='-fPIC' 16317 lt_prog_compiler_static='-static' 16318 ;; 16319 *Portland\ Group*) 16320 lt_prog_compiler_wl='-Wl,' 16321 lt_prog_compiler_pic='-fpic' 16322 lt_prog_compiler_static='-Bstatic' 16323 ;; 16324 esac 16325 ;; 16326 esac 16327 ;; 16328 16329 newsos6) 16330 lt_prog_compiler_pic='-KPIC' 16331 lt_prog_compiler_static='-Bstatic' 16332 ;; 16333 16334 *nto* | *qnx*) 16335 # QNX uses GNU C++, but need to define -shared option too, otherwise 16336 # it will coredump. 16337 lt_prog_compiler_pic='-fPIC -shared' 16338 ;; 16339 16340 osf3* | osf4* | osf5*) 16341 lt_prog_compiler_wl='-Wl,' 16342 # All OSF/1 code is PIC. 16343 lt_prog_compiler_static='-non_shared' 16344 ;; 16345 16346 rdos*) 16347 lt_prog_compiler_static='-non_shared' 16348 ;; 16349 16350 solaris*) 16351 lt_prog_compiler_pic='-KPIC' 16352 lt_prog_compiler_static='-Bstatic' 16353 case $cc_basename in 16354 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16355 lt_prog_compiler_wl='-Qoption ld ';; 16356 *) 16357 lt_prog_compiler_wl='-Wl,';; 16358 esac 16359 ;; 16360 16361 sunos4*) 16362 lt_prog_compiler_wl='-Qoption ld ' 16363 lt_prog_compiler_pic='-PIC' 16364 lt_prog_compiler_static='-Bstatic' 16365 ;; 16366 16367 sysv4 | sysv4.2uw2* | sysv4.3*) 16368 lt_prog_compiler_wl='-Wl,' 16369 lt_prog_compiler_pic='-KPIC' 16370 lt_prog_compiler_static='-Bstatic' 16371 ;; 16372 16373 sysv4*MP*) 16374 if test -d /usr/nec; then 16375 lt_prog_compiler_pic='-Kconform_pic' 16376 lt_prog_compiler_static='-Bstatic' 16377 fi 16378 ;; 16379 16380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16381 lt_prog_compiler_wl='-Wl,' 16382 lt_prog_compiler_pic='-KPIC' 16383 lt_prog_compiler_static='-Bstatic' 16384 ;; 16385 16386 unicos*) 16387 lt_prog_compiler_wl='-Wl,' 16388 lt_prog_compiler_can_build_shared=no 16389 ;; 16390 16391 uts4*) 16392 lt_prog_compiler_pic='-pic' 16393 lt_prog_compiler_static='-Bstatic' 16394 ;; 16395 16396 *) 16397 lt_prog_compiler_can_build_shared=no 16398 ;; 16399 esac 16400 fi 16401 16402case $host_os in 16403 # For platforms that do not support PIC, -DPIC is meaningless: 16404 *djgpp*) 16405 lt_prog_compiler_pic= 16406 ;; 16407 *) 16408 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16409 ;; 16410esac 16411 16412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16413$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16414if ${lt_cv_prog_compiler_pic+:} false; then : 16415 $as_echo_n "(cached) " >&6 16416else 16417 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16418fi 16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16420$as_echo "$lt_cv_prog_compiler_pic" >&6; } 16421lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16422 16423# 16424# Check to make sure the PIC flag actually works. 16425# 16426if test -n "$lt_prog_compiler_pic"; then 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16429if ${lt_cv_prog_compiler_pic_works+:} false; then : 16430 $as_echo_n "(cached) " >&6 16431else 16432 lt_cv_prog_compiler_pic_works=no 16433 ac_outfile=conftest.$ac_objext 16434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16436 # Insert the option either (1) after the last *FLAGS variable, or 16437 # (2) before a word containing "conftest.", or (3) at the end. 16438 # Note that $ac_compile itself does not contain backslashes and begins 16439 # with a dollar sign (not a hyphen), so the echo should work correctly. 16440 # The option is referenced via a variable to avoid confusing sed. 16441 lt_compile=`echo "$ac_compile" | $SED \ 16442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16444 -e 's:$: $lt_compiler_flag:'` 16445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16446 (eval "$lt_compile" 2>conftest.err) 16447 ac_status=$? 16448 cat conftest.err >&5 16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16450 if (exit $ac_status) && test -s "$ac_outfile"; then 16451 # The compiler can only warn and ignore the option if not recognized 16452 # So say no if there are warnings other than the usual output. 16453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16456 lt_cv_prog_compiler_pic_works=yes 16457 fi 16458 fi 16459 $RM conftest* 16460 16461fi 16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16463$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 16464 16465if test yes = "$lt_cv_prog_compiler_pic_works"; then 16466 case $lt_prog_compiler_pic in 16467 "" | " "*) ;; 16468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16469 esac 16470else 16471 lt_prog_compiler_pic= 16472 lt_prog_compiler_can_build_shared=no 16473fi 16474 16475fi 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487# 16488# Check to make sure the static flag actually works. 16489# 16490wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16492$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16493if ${lt_cv_prog_compiler_static_works+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 lt_cv_prog_compiler_static_works=no 16497 save_LDFLAGS=$LDFLAGS 16498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16499 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16501 # The linker can only warn and ignore the option if not recognized 16502 # So say no if there are warnings 16503 if test -s conftest.err; then 16504 # Append any errors to the config.log. 16505 cat conftest.err 1>&5 16506 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16508 if diff conftest.exp conftest.er2 >/dev/null; then 16509 lt_cv_prog_compiler_static_works=yes 16510 fi 16511 else 16512 lt_cv_prog_compiler_static_works=yes 16513 fi 16514 fi 16515 $RM -r conftest* 16516 LDFLAGS=$save_LDFLAGS 16517 16518fi 16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16520$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 16521 16522if test yes = "$lt_cv_prog_compiler_static_works"; then 16523 : 16524else 16525 lt_prog_compiler_static= 16526fi 16527 16528 16529 16530 16531 16532 16533 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16535$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16536if ${lt_cv_prog_compiler_c_o+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 lt_cv_prog_compiler_c_o=no 16540 $RM -r conftest 2>/dev/null 16541 mkdir conftest 16542 cd conftest 16543 mkdir out 16544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16545 16546 lt_compiler_flag="-o out/conftest2.$ac_objext" 16547 # Insert the option either (1) after the last *FLAGS variable, or 16548 # (2) before a word containing "conftest.", or (3) at the end. 16549 # Note that $ac_compile itself does not contain backslashes and begins 16550 # with a dollar sign (not a hyphen), so the echo should work correctly. 16551 lt_compile=`echo "$ac_compile" | $SED \ 16552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16554 -e 's:$: $lt_compiler_flag:'` 16555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16556 (eval "$lt_compile" 2>out/conftest.err) 16557 ac_status=$? 16558 cat out/conftest.err >&5 16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16560 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16561 then 16562 # The compiler can only warn and ignore the option if not recognized 16563 # So say no if there are warnings 16564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16567 lt_cv_prog_compiler_c_o=yes 16568 fi 16569 fi 16570 chmod u+w . 2>&5 16571 $RM conftest* 16572 # SGI C++ compiler will create directory out/ii_files/ for 16573 # template instantiation 16574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16575 $RM out/* && rmdir out 16576 cd .. 16577 $RM -r conftest 16578 $RM conftest* 16579 16580fi 16581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16582$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16583 16584 16585 16586 16587 16588 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16590$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16591if ${lt_cv_prog_compiler_c_o+:} false; then : 16592 $as_echo_n "(cached) " >&6 16593else 16594 lt_cv_prog_compiler_c_o=no 16595 $RM -r conftest 2>/dev/null 16596 mkdir conftest 16597 cd conftest 16598 mkdir out 16599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16600 16601 lt_compiler_flag="-o out/conftest2.$ac_objext" 16602 # Insert the option either (1) after the last *FLAGS variable, or 16603 # (2) before a word containing "conftest.", or (3) at the end. 16604 # Note that $ac_compile itself does not contain backslashes and begins 16605 # with a dollar sign (not a hyphen), so the echo should work correctly. 16606 lt_compile=`echo "$ac_compile" | $SED \ 16607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16609 -e 's:$: $lt_compiler_flag:'` 16610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16611 (eval "$lt_compile" 2>out/conftest.err) 16612 ac_status=$? 16613 cat out/conftest.err >&5 16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16615 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16616 then 16617 # The compiler can only warn and ignore the option if not recognized 16618 # So say no if there are warnings 16619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16622 lt_cv_prog_compiler_c_o=yes 16623 fi 16624 fi 16625 chmod u+w . 2>&5 16626 $RM conftest* 16627 # SGI C++ compiler will create directory out/ii_files/ for 16628 # template instantiation 16629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16630 $RM out/* && rmdir out 16631 cd .. 16632 $RM -r conftest 16633 $RM conftest* 16634 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16637$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16638 16639 16640 16641 16642hard_links=nottested 16643if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16644 # do not overwrite the value of need_locks provided by the user 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16646$as_echo_n "checking if we can lock with hard links... " >&6; } 16647 hard_links=yes 16648 $RM conftest* 16649 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16650 touch conftest.a 16651 ln conftest.a conftest.b 2>&5 || hard_links=no 16652 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16654$as_echo "$hard_links" >&6; } 16655 if test no = "$hard_links"; then 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16657$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16658 need_locks=warn 16659 fi 16660else 16661 need_locks=no 16662fi 16663 16664 16665 16666 16667 16668 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16670$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16671 16672 runpath_var= 16673 allow_undefined_flag= 16674 always_export_symbols=no 16675 archive_cmds= 16676 archive_expsym_cmds= 16677 compiler_needs_object=no 16678 enable_shared_with_static_runtimes=no 16679 export_dynamic_flag_spec= 16680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16681 hardcode_automatic=no 16682 hardcode_direct=no 16683 hardcode_direct_absolute=no 16684 hardcode_libdir_flag_spec= 16685 hardcode_libdir_separator= 16686 hardcode_minus_L=no 16687 hardcode_shlibpath_var=unsupported 16688 inherit_rpath=no 16689 link_all_deplibs=unknown 16690 module_cmds= 16691 module_expsym_cmds= 16692 old_archive_from_new_cmds= 16693 old_archive_from_expsyms_cmds= 16694 thread_safe_flag_spec= 16695 whole_archive_flag_spec= 16696 # include_expsyms should be a list of space-separated symbols to be *always* 16697 # included in the symbol list 16698 include_expsyms= 16699 # exclude_expsyms can be an extended regexp of symbols to exclude 16700 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16701 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16702 # as well as any symbol that contains 'd'. 16703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16705 # platforms (ab)use it in PIC code, but their linkers get confused if 16706 # the symbol is explicitly referenced. Since portable code cannot 16707 # rely on this symbol name, it's probably fine to never include it in 16708 # preloaded symbol tables. 16709 # Exclude shared library initialization/finalization symbols. 16710 extract_expsyms_cmds= 16711 16712 case $host_os in 16713 cygwin* | mingw* | pw32* | cegcc*) 16714 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16715 # When not using gcc, we currently assume that we are using 16716 # Microsoft Visual C++. 16717 if test yes != "$GCC"; then 16718 with_gnu_ld=no 16719 fi 16720 ;; 16721 interix*) 16722 # we just hope/assume this is gcc and not c89 (= MSVC++) 16723 with_gnu_ld=yes 16724 ;; 16725 openbsd* | bitrig*) 16726 with_gnu_ld=no 16727 ;; 16728 linux* | k*bsd*-gnu | gnu*) 16729 link_all_deplibs=no 16730 ;; 16731 esac 16732 16733 ld_shlibs=yes 16734 16735 # On some targets, GNU ld is compatible enough with the native linker 16736 # that we're better off using the native interface for both. 16737 lt_use_gnu_ld_interface=no 16738 if test yes = "$with_gnu_ld"; then 16739 case $host_os in 16740 aix*) 16741 # The AIX port of GNU ld has always aspired to compatibility 16742 # with the native linker. However, as the warning in the GNU ld 16743 # block says, versions before 2.19.5* couldn't really create working 16744 # shared libraries, regardless of the interface used. 16745 case `$LD -v 2>&1` in 16746 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16747 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16748 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16749 *) 16750 lt_use_gnu_ld_interface=yes 16751 ;; 16752 esac 16753 ;; 16754 *) 16755 lt_use_gnu_ld_interface=yes 16756 ;; 16757 esac 16758 fi 16759 16760 if test yes = "$lt_use_gnu_ld_interface"; then 16761 # If archive_cmds runs LD, not CC, wlarc should be empty 16762 wlarc='$wl' 16763 16764 # Set some defaults for GNU ld with shared library support. These 16765 # are reset later if shared libraries are not supported. Putting them 16766 # here allows them to be overridden if necessary. 16767 runpath_var=LD_RUN_PATH 16768 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16769 export_dynamic_flag_spec='$wl--export-dynamic' 16770 # ancient GNU ld didn't support --whole-archive et. al. 16771 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16772 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16773 else 16774 whole_archive_flag_spec= 16775 fi 16776 supports_anon_versioning=no 16777 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16778 *GNU\ gold*) supports_anon_versioning=yes ;; 16779 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16782 *\ 2.11.*) ;; # other 2.11 versions 16783 *) supports_anon_versioning=yes ;; 16784 esac 16785 16786 # See if GNU ld supports shared libraries. 16787 case $host_os in 16788 aix[3-9]*) 16789 # On AIX/PPC, the GNU linker is very broken 16790 if test ia64 != "$host_cpu"; then 16791 ld_shlibs=no 16792 cat <<_LT_EOF 1>&2 16793 16794*** Warning: the GNU linker, at least up to release 2.19, is reported 16795*** to be unable to reliably create shared libraries on AIX. 16796*** Therefore, libtool is disabling shared libraries support. If you 16797*** really care for shared libraries, you may want to install binutils 16798*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16799*** You will then need to restart the configuration process. 16800 16801_LT_EOF 16802 fi 16803 ;; 16804 16805 amigaos*) 16806 case $host_cpu in 16807 powerpc) 16808 # see comment about AmigaOS4 .so support 16809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16810 archive_expsym_cmds='' 16811 ;; 16812 m68k) 16813 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)' 16814 hardcode_libdir_flag_spec='-L$libdir' 16815 hardcode_minus_L=yes 16816 ;; 16817 esac 16818 ;; 16819 16820 beos*) 16821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16822 allow_undefined_flag=unsupported 16823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16824 # support --undefined. This deserves some investigation. FIXME 16825 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16826 else 16827 ld_shlibs=no 16828 fi 16829 ;; 16830 16831 cygwin* | mingw* | pw32* | cegcc*) 16832 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16833 # as there is no search path for DLLs. 16834 hardcode_libdir_flag_spec='-L$libdir' 16835 export_dynamic_flag_spec='$wl--export-all-symbols' 16836 allow_undefined_flag=unsupported 16837 always_export_symbols=no 16838 enable_shared_with_static_runtimes=yes 16839 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' 16840 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16841 16842 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16844 # If the export-symbols file already is a .def file, use it as 16845 # is; otherwise, prepend EXPORTS... 16846 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16847 cp $export_symbols $output_objdir/$soname.def; 16848 else 16849 echo EXPORTS > $output_objdir/$soname.def; 16850 cat $export_symbols >> $output_objdir/$soname.def; 16851 fi~ 16852 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16853 else 16854 ld_shlibs=no 16855 fi 16856 ;; 16857 16858 haiku*) 16859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16860 link_all_deplibs=yes 16861 ;; 16862 16863 os2*) 16864 hardcode_libdir_flag_spec='-L$libdir' 16865 hardcode_minus_L=yes 16866 allow_undefined_flag=unsupported 16867 shrext_cmds=.dll 16868 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16871 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16872 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16873 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16874 emximp -o $lib $output_objdir/$libname.def' 16875 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16878 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16879 prefix_cmds="$SED"~ 16880 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16881 prefix_cmds="$prefix_cmds -e 1d"; 16882 fi~ 16883 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16884 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16886 emximp -o $lib $output_objdir/$libname.def' 16887 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16888 enable_shared_with_static_runtimes=yes 16889 ;; 16890 16891 interix[3-9]*) 16892 hardcode_direct=no 16893 hardcode_shlibpath_var=no 16894 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16895 export_dynamic_flag_spec='$wl-E' 16896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16897 # Instead, shared libraries are loaded at an image base (0x10000000 by 16898 # default) and relocated if they conflict, which is a slow very memory 16899 # consuming and fragmenting process. To avoid this, we pick a random, 16900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16901 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16903 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' 16904 ;; 16905 16906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16907 tmp_diet=no 16908 if test linux-dietlibc = "$host_os"; then 16909 case $cc_basename in 16910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16911 esac 16912 fi 16913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16914 && test no = "$tmp_diet" 16915 then 16916 tmp_addflag=' $pic_flag' 16917 tmp_sharedflag='-shared' 16918 case $cc_basename,$host_cpu in 16919 pgcc*) # Portland Group C compiler 16920 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' 16921 tmp_addflag=' $pic_flag' 16922 ;; 16923 pgf77* | pgf90* | pgf95* | pgfortran*) 16924 # Portland Group f77 and f90 compilers 16925 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' 16926 tmp_addflag=' $pic_flag -Mnomain' ;; 16927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16928 tmp_addflag=' -i_dynamic' ;; 16929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16930 tmp_addflag=' -i_dynamic -nofor_main' ;; 16931 ifc* | ifort*) # Intel Fortran compiler 16932 tmp_addflag=' -nofor_main' ;; 16933 lf95*) # Lahey Fortran 8.1 16934 whole_archive_flag_spec= 16935 tmp_sharedflag='--shared' ;; 16936 nagfor*) # NAGFOR 5.3 16937 tmp_sharedflag='-Wl,-shared' ;; 16938 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16939 tmp_sharedflag='-qmkshrobj' 16940 tmp_addflag= ;; 16941 nvcc*) # Cuda Compiler Driver 2.2 16942 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' 16943 compiler_needs_object=yes 16944 ;; 16945 esac 16946 case `$CC -V 2>&1 | sed 5q` in 16947 *Sun\ C*) # Sun C 5.9 16948 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' 16949 compiler_needs_object=yes 16950 tmp_sharedflag='-G' ;; 16951 *Sun\ F*) # Sun Fortran 8.3 16952 tmp_sharedflag='-G' ;; 16953 esac 16954 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16955 16956 if test yes = "$supports_anon_versioning"; then 16957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16959 echo "local: *; };" >> $output_objdir/$libname.ver~ 16960 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16961 fi 16962 16963 case $cc_basename in 16964 tcc*) 16965 export_dynamic_flag_spec='-rdynamic' 16966 ;; 16967 xlf* | bgf* | bgxlf* | mpixlf*) 16968 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16969 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16970 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16971 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16972 if test yes = "$supports_anon_versioning"; then 16973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16975 echo "local: *; };" >> $output_objdir/$libname.ver~ 16976 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16977 fi 16978 ;; 16979 esac 16980 else 16981 ld_shlibs=no 16982 fi 16983 ;; 16984 16985 netbsd* | netbsdelf*-gnu) 16986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16988 wlarc= 16989 else 16990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16992 fi 16993 ;; 16994 16995 solaris*) 16996 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16997 ld_shlibs=no 16998 cat <<_LT_EOF 1>&2 16999 17000*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17001*** create shared libraries on Solaris systems. Therefore, libtool 17002*** is disabling shared libraries support. We urge you to upgrade GNU 17003*** binutils to release 2.9.1 or newer. Another option is to modify 17004*** your PATH or compiler configuration so that the native linker is 17005*** used, and then restart. 17006 17007_LT_EOF 17008 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17011 else 17012 ld_shlibs=no 17013 fi 17014 ;; 17015 17016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17017 case `$LD -v 2>&1` in 17018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17019 ld_shlibs=no 17020 cat <<_LT_EOF 1>&2 17021 17022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 17023*** reliably create shared libraries on SCO systems. Therefore, libtool 17024*** is disabling shared libraries support. We urge you to upgrade GNU 17025*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17026*** your PATH or compiler configuration so that the native linker is 17027*** used, and then restart. 17028 17029_LT_EOF 17030 ;; 17031 *) 17032 # For security reasons, it is highly recommended that you always 17033 # use absolute paths for naming shared libraries, and exclude the 17034 # DT_RUNPATH tag from executables and libraries. But doing so 17035 # requires that you compile everything twice, which is a pain. 17036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17037 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17040 else 17041 ld_shlibs=no 17042 fi 17043 ;; 17044 esac 17045 ;; 17046 17047 sunos4*) 17048 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17049 wlarc= 17050 hardcode_direct=yes 17051 hardcode_shlibpath_var=no 17052 ;; 17053 17054 *) 17055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17057 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17058 else 17059 ld_shlibs=no 17060 fi 17061 ;; 17062 esac 17063 17064 if test no = "$ld_shlibs"; then 17065 runpath_var= 17066 hardcode_libdir_flag_spec= 17067 export_dynamic_flag_spec= 17068 whole_archive_flag_spec= 17069 fi 17070 else 17071 # PORTME fill in a description of your system's linker (not GNU ld) 17072 case $host_os in 17073 aix3*) 17074 allow_undefined_flag=unsupported 17075 always_export_symbols=yes 17076 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' 17077 # Note: this linker hardcodes the directories in LIBPATH if there 17078 # are no directories specified by -L. 17079 hardcode_minus_L=yes 17080 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17081 # Neither direct hardcoding nor static linking is supported with a 17082 # broken collect2. 17083 hardcode_direct=unsupported 17084 fi 17085 ;; 17086 17087 aix[4-9]*) 17088 if test ia64 = "$host_cpu"; then 17089 # On IA64, the linker does run time linking by default, so we don't 17090 # have to do anything special. 17091 aix_use_runtimelinking=no 17092 exp_sym_flag='-Bexport' 17093 no_entry_flag= 17094 else 17095 # If we're using GNU nm, then we don't want the "-C" option. 17096 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17097 # Without the "-l" option, or with the "-B" option, AIX nm treats 17098 # weak defined symbols like other global defined symbols, whereas 17099 # GNU nm marks them as "W". 17100 # While the 'weak' keyword is ignored in the Export File, we need 17101 # it in the Import File for the 'aix-soname' feature, so we have 17102 # to replace the "-B" option with "-P" for AIX nm. 17103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17104 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17105 else 17106 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17107 fi 17108 aix_use_runtimelinking=no 17109 17110 # Test if we are trying to use run time linking or normal 17111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17112 # have runtime linking enabled, and use it for executables. 17113 # For shared libraries, we enable/disable runtime linking 17114 # depending on the kind of the shared library created - 17115 # when "with_aix_soname,aix_use_runtimelinking" is: 17116 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17117 # "aix,yes" lib.so shared, rtl:yes, for executables 17118 # lib.a static archive 17119 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17120 # lib.a(lib.so.V) shared, rtl:no, for executables 17121 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17122 # lib.a(lib.so.V) shared, rtl:no 17123 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17124 # lib.a static archive 17125 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17126 for ld_flag in $LDFLAGS; do 17127 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17128 aix_use_runtimelinking=yes 17129 break 17130 fi 17131 done 17132 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17133 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17134 # so we don't have lib.a shared libs to link our executables. 17135 # We have to force runtime linking in this case. 17136 aix_use_runtimelinking=yes 17137 LDFLAGS="$LDFLAGS -Wl,-brtl" 17138 fi 17139 ;; 17140 esac 17141 17142 exp_sym_flag='-bexport' 17143 no_entry_flag='-bnoentry' 17144 fi 17145 17146 # When large executables or shared objects are built, AIX ld can 17147 # have problems creating the table of contents. If linking a library 17148 # or program results in "error TOC overflow" add -mminimal-toc to 17149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17151 17152 archive_cmds='' 17153 hardcode_direct=yes 17154 hardcode_direct_absolute=yes 17155 hardcode_libdir_separator=':' 17156 link_all_deplibs=yes 17157 file_list_spec='$wl-f,' 17158 case $with_aix_soname,$aix_use_runtimelinking in 17159 aix,*) ;; # traditional, no import file 17160 svr4,* | *,yes) # use import file 17161 # The Import File defines what to hardcode. 17162 hardcode_direct=no 17163 hardcode_direct_absolute=no 17164 ;; 17165 esac 17166 17167 if test yes = "$GCC"; then 17168 case $host_os in aix4.[012]|aix4.[012].*) 17169 # We only want to do this on AIX 4.2 and lower, the check 17170 # below for broken collect2 doesn't work under 4.3+ 17171 collect2name=`$CC -print-prog-name=collect2` 17172 if test -f "$collect2name" && 17173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17174 then 17175 # We have reworked collect2 17176 : 17177 else 17178 # We have old collect2 17179 hardcode_direct=unsupported 17180 # It fails to find uninstalled libraries when the uninstalled 17181 # path is not listed in the libpath. Setting hardcode_minus_L 17182 # to unsupported forces relinking 17183 hardcode_minus_L=yes 17184 hardcode_libdir_flag_spec='-L$libdir' 17185 hardcode_libdir_separator= 17186 fi 17187 ;; 17188 esac 17189 shared_flag='-shared' 17190 if test yes = "$aix_use_runtimelinking"; then 17191 shared_flag="$shared_flag "'$wl-G' 17192 fi 17193 # Need to ensure runtime linking is disabled for the traditional 17194 # shared library, or the linker may eventually find shared libraries 17195 # /with/ Import File - we do not want to mix them. 17196 shared_flag_aix='-shared' 17197 shared_flag_svr4='-shared $wl-G' 17198 else 17199 # not using gcc 17200 if test ia64 = "$host_cpu"; then 17201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17202 # chokes on -Wl,-G. The following line is correct: 17203 shared_flag='-G' 17204 else 17205 if test yes = "$aix_use_runtimelinking"; then 17206 shared_flag='$wl-G' 17207 else 17208 shared_flag='$wl-bM:SRE' 17209 fi 17210 shared_flag_aix='$wl-bM:SRE' 17211 shared_flag_svr4='$wl-G' 17212 fi 17213 fi 17214 17215 export_dynamic_flag_spec='$wl-bexpall' 17216 # It seems that -bexpall does not export symbols beginning with 17217 # underscore (_), so it is better to generate a list of symbols to export. 17218 always_export_symbols=yes 17219 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17220 # Warning - without using the other runtime loading flags (-brtl), 17221 # -berok will link without error, but may produce a broken library. 17222 allow_undefined_flag='-berok' 17223 # Determine the default libpath from the value encoded in an 17224 # empty executable. 17225 if test set = "${lt_cv_aix_libpath+set}"; then 17226 aix_libpath=$lt_cv_aix_libpath 17227else 17228 if ${lt_cv_aix_libpath_+:} false; then : 17229 $as_echo_n "(cached) " >&6 17230else 17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233 17234int 17235main () 17236{ 17237 17238 ; 17239 return 0; 17240} 17241_ACEOF 17242if ac_fn_c_try_link "$LINENO"; then : 17243 17244 lt_aix_libpath_sed=' 17245 /Import File Strings/,/^$/ { 17246 /^0/ { 17247 s/^0 *\([^ ]*\) *$/\1/ 17248 p 17249 } 17250 }' 17251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17252 # Check for a 64-bit object if we didn't find anything. 17253 if test -z "$lt_cv_aix_libpath_"; then 17254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17255 fi 17256fi 17257rm -f core conftest.err conftest.$ac_objext \ 17258 conftest$ac_exeext conftest.$ac_ext 17259 if test -z "$lt_cv_aix_libpath_"; then 17260 lt_cv_aix_libpath_=/usr/lib:/lib 17261 fi 17262 17263fi 17264 17265 aix_libpath=$lt_cv_aix_libpath_ 17266fi 17267 17268 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17269 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17270 else 17271 if test ia64 = "$host_cpu"; then 17272 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17273 allow_undefined_flag="-z nodefs" 17274 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" 17275 else 17276 # Determine the default libpath from the value encoded in an 17277 # empty executable. 17278 if test set = "${lt_cv_aix_libpath+set}"; then 17279 aix_libpath=$lt_cv_aix_libpath 17280else 17281 if ${lt_cv_aix_libpath_+:} false; then : 17282 $as_echo_n "(cached) " >&6 17283else 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286 17287int 17288main () 17289{ 17290 17291 ; 17292 return 0; 17293} 17294_ACEOF 17295if ac_fn_c_try_link "$LINENO"; then : 17296 17297 lt_aix_libpath_sed=' 17298 /Import File Strings/,/^$/ { 17299 /^0/ { 17300 s/^0 *\([^ ]*\) *$/\1/ 17301 p 17302 } 17303 }' 17304 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17305 # Check for a 64-bit object if we didn't find anything. 17306 if test -z "$lt_cv_aix_libpath_"; then 17307 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17308 fi 17309fi 17310rm -f core conftest.err conftest.$ac_objext \ 17311 conftest$ac_exeext conftest.$ac_ext 17312 if test -z "$lt_cv_aix_libpath_"; then 17313 lt_cv_aix_libpath_=/usr/lib:/lib 17314 fi 17315 17316fi 17317 17318 aix_libpath=$lt_cv_aix_libpath_ 17319fi 17320 17321 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17322 # Warning - without using the other run time loading flags, 17323 # -berok will link without error, but may produce a broken library. 17324 no_undefined_flag=' $wl-bernotok' 17325 allow_undefined_flag=' $wl-berok' 17326 if test yes = "$with_gnu_ld"; then 17327 # We only use this code for GNU lds that support --whole-archive. 17328 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17329 else 17330 # Exported symbols can be pulled into shared objects from archives 17331 whole_archive_flag_spec='$convenience' 17332 fi 17333 archive_cmds_need_lc=yes 17334 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17335 # -brtl affects multiple linker settings, -berok does not and is overridden later 17336 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17337 if test svr4 != "$with_aix_soname"; then 17338 # This is similar to how AIX traditionally builds its shared libraries. 17339 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17340 fi 17341 if test aix != "$with_aix_soname"; then 17342 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17343 else 17344 # used by -dlpreopen to get the symbols 17345 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17346 fi 17347 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17348 fi 17349 fi 17350 ;; 17351 17352 amigaos*) 17353 case $host_cpu in 17354 powerpc) 17355 # see comment about AmigaOS4 .so support 17356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17357 archive_expsym_cmds='' 17358 ;; 17359 m68k) 17360 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)' 17361 hardcode_libdir_flag_spec='-L$libdir' 17362 hardcode_minus_L=yes 17363 ;; 17364 esac 17365 ;; 17366 17367 bsdi[45]*) 17368 export_dynamic_flag_spec=-rdynamic 17369 ;; 17370 17371 cygwin* | mingw* | pw32* | cegcc*) 17372 # When not using gcc, we currently assume that we are using 17373 # Microsoft Visual C++. 17374 # hardcode_libdir_flag_spec is actually meaningless, as there is 17375 # no search path for DLLs. 17376 case $cc_basename in 17377 cl*) 17378 # Native MSVC 17379 hardcode_libdir_flag_spec=' ' 17380 allow_undefined_flag=unsupported 17381 always_export_symbols=yes 17382 file_list_spec='@' 17383 # Tell ltmain to make .lib files, not .a files. 17384 libext=lib 17385 # Tell ltmain to make .dll files, not .so files. 17386 shrext_cmds=.dll 17387 # FIXME: Setting linknames here is a bad hack. 17388 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17389 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17390 cp "$export_symbols" "$output_objdir/$soname.def"; 17391 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17392 else 17393 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17394 fi~ 17395 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17396 linknames=' 17397 # The linker will not automatically build a static lib if we build a DLL. 17398 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17399 enable_shared_with_static_runtimes=yes 17400 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17402 # Don't use ranlib 17403 old_postinstall_cmds='chmod 644 $oldlib' 17404 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17405 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17406 case $lt_outputfile in 17407 *.exe|*.EXE) ;; 17408 *) 17409 lt_outputfile=$lt_outputfile.exe 17410 lt_tool_outputfile=$lt_tool_outputfile.exe 17411 ;; 17412 esac~ 17413 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17415 $RM "$lt_outputfile.manifest"; 17416 fi' 17417 ;; 17418 *) 17419 # Assume MSVC wrapper 17420 hardcode_libdir_flag_spec=' ' 17421 allow_undefined_flag=unsupported 17422 # Tell ltmain to make .lib files, not .a files. 17423 libext=lib 17424 # Tell ltmain to make .dll files, not .so files. 17425 shrext_cmds=.dll 17426 # FIXME: Setting linknames here is a bad hack. 17427 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17428 # The linker will automatically build a .lib file if we build a DLL. 17429 old_archive_from_new_cmds='true' 17430 # FIXME: Should let the user specify the lib program. 17431 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17432 enable_shared_with_static_runtimes=yes 17433 ;; 17434 esac 17435 ;; 17436 17437 darwin* | rhapsody*) 17438 17439 17440 archive_cmds_need_lc=no 17441 hardcode_direct=no 17442 hardcode_automatic=yes 17443 hardcode_shlibpath_var=unsupported 17444 if test yes = "$lt_cv_ld_force_load"; then 17445 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\"`' 17446 17447 else 17448 whole_archive_flag_spec='' 17449 fi 17450 link_all_deplibs=yes 17451 allow_undefined_flag=$_lt_dar_allow_undefined 17452 case $cc_basename in 17453 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17454 *) _lt_dar_can_shared=$GCC ;; 17455 esac 17456 if test yes = "$_lt_dar_can_shared"; then 17457 output_verbose_link_cmd=func_echo_all 17458 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17459 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17460 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" 17461 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" 17462 17463 else 17464 ld_shlibs=no 17465 fi 17466 17467 ;; 17468 17469 dgux*) 17470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17471 hardcode_libdir_flag_spec='-L$libdir' 17472 hardcode_shlibpath_var=no 17473 ;; 17474 17475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17476 # support. Future versions do this automatically, but an explicit c++rt0.o 17477 # does not break anything, and helps significantly (at the cost of a little 17478 # extra space). 17479 freebsd2.2*) 17480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17481 hardcode_libdir_flag_spec='-R$libdir' 17482 hardcode_direct=yes 17483 hardcode_shlibpath_var=no 17484 ;; 17485 17486 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17487 freebsd2.*) 17488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17489 hardcode_direct=yes 17490 hardcode_minus_L=yes 17491 hardcode_shlibpath_var=no 17492 ;; 17493 17494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17495 freebsd* | dragonfly*) 17496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17497 hardcode_libdir_flag_spec='-R$libdir' 17498 hardcode_direct=yes 17499 hardcode_shlibpath_var=no 17500 ;; 17501 17502 hpux9*) 17503 if test yes = "$GCC"; then 17504 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17505 else 17506 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17507 fi 17508 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17509 hardcode_libdir_separator=: 17510 hardcode_direct=yes 17511 17512 # hardcode_minus_L: Not really in the search PATH, 17513 # but as the default location of the library. 17514 hardcode_minus_L=yes 17515 export_dynamic_flag_spec='$wl-E' 17516 ;; 17517 17518 hpux10*) 17519 if test yes,no = "$GCC,$with_gnu_ld"; then 17520 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17521 else 17522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17523 fi 17524 if test no = "$with_gnu_ld"; then 17525 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17526 hardcode_libdir_separator=: 17527 hardcode_direct=yes 17528 hardcode_direct_absolute=yes 17529 export_dynamic_flag_spec='$wl-E' 17530 # hardcode_minus_L: Not really in the search PATH, 17531 # but as the default location of the library. 17532 hardcode_minus_L=yes 17533 fi 17534 ;; 17535 17536 hpux11*) 17537 if test yes,no = "$GCC,$with_gnu_ld"; then 17538 case $host_cpu in 17539 hppa*64*) 17540 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17541 ;; 17542 ia64*) 17543 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17544 ;; 17545 *) 17546 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17547 ;; 17548 esac 17549 else 17550 case $host_cpu in 17551 hppa*64*) 17552 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17553 ;; 17554 ia64*) 17555 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17556 ;; 17557 *) 17558 17559 # Older versions of the 11.00 compiler do not understand -b yet 17560 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17562$as_echo_n "checking if $CC understands -b... " >&6; } 17563if ${lt_cv_prog_compiler__b+:} false; then : 17564 $as_echo_n "(cached) " >&6 17565else 17566 lt_cv_prog_compiler__b=no 17567 save_LDFLAGS=$LDFLAGS 17568 LDFLAGS="$LDFLAGS -b" 17569 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17571 # The linker can only warn and ignore the option if not recognized 17572 # So say no if there are warnings 17573 if test -s conftest.err; then 17574 # Append any errors to the config.log. 17575 cat conftest.err 1>&5 17576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17578 if diff conftest.exp conftest.er2 >/dev/null; then 17579 lt_cv_prog_compiler__b=yes 17580 fi 17581 else 17582 lt_cv_prog_compiler__b=yes 17583 fi 17584 fi 17585 $RM -r conftest* 17586 LDFLAGS=$save_LDFLAGS 17587 17588fi 17589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17590$as_echo "$lt_cv_prog_compiler__b" >&6; } 17591 17592if test yes = "$lt_cv_prog_compiler__b"; then 17593 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17594else 17595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17596fi 17597 17598 ;; 17599 esac 17600 fi 17601 if test no = "$with_gnu_ld"; then 17602 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17603 hardcode_libdir_separator=: 17604 17605 case $host_cpu in 17606 hppa*64*|ia64*) 17607 hardcode_direct=no 17608 hardcode_shlibpath_var=no 17609 ;; 17610 *) 17611 hardcode_direct=yes 17612 hardcode_direct_absolute=yes 17613 export_dynamic_flag_spec='$wl-E' 17614 17615 # hardcode_minus_L: Not really in the search PATH, 17616 # but as the default location of the library. 17617 hardcode_minus_L=yes 17618 ;; 17619 esac 17620 fi 17621 ;; 17622 17623 irix5* | irix6* | nonstopux*) 17624 if test yes = "$GCC"; then 17625 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' 17626 # Try to use the -exported_symbol ld option, if it does not 17627 # work, assume that -exports_file does not work either and 17628 # implicitly export all symbols. 17629 # This should be the same for all languages, so no per-tag cache variable. 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17631$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17632if ${lt_cv_irix_exported_symbol+:} false; then : 17633 $as_echo_n "(cached) " >&6 17634else 17635 save_LDFLAGS=$LDFLAGS 17636 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17638/* end confdefs.h. */ 17639int foo (void) { return 0; } 17640_ACEOF 17641if ac_fn_c_try_link "$LINENO"; then : 17642 lt_cv_irix_exported_symbol=yes 17643else 17644 lt_cv_irix_exported_symbol=no 17645fi 17646rm -f core conftest.err conftest.$ac_objext \ 17647 conftest$ac_exeext conftest.$ac_ext 17648 LDFLAGS=$save_LDFLAGS 17649fi 17650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17651$as_echo "$lt_cv_irix_exported_symbol" >&6; } 17652 if test yes = "$lt_cv_irix_exported_symbol"; then 17653 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' 17654 fi 17655 link_all_deplibs=no 17656 else 17657 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' 17658 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' 17659 fi 17660 archive_cmds_need_lc='no' 17661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17662 hardcode_libdir_separator=: 17663 inherit_rpath=yes 17664 link_all_deplibs=yes 17665 ;; 17666 17667 linux*) 17668 case $cc_basename in 17669 tcc*) 17670 # Fabrice Bellard et al's Tiny C Compiler 17671 ld_shlibs=yes 17672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17673 ;; 17674 esac 17675 ;; 17676 17677 netbsd* | netbsdelf*-gnu) 17678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17680 else 17681 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17682 fi 17683 hardcode_libdir_flag_spec='-R$libdir' 17684 hardcode_direct=yes 17685 hardcode_shlibpath_var=no 17686 ;; 17687 17688 newsos6) 17689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17690 hardcode_direct=yes 17691 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17692 hardcode_libdir_separator=: 17693 hardcode_shlibpath_var=no 17694 ;; 17695 17696 *nto* | *qnx*) 17697 ;; 17698 17699 openbsd* | bitrig*) 17700 if test -f /usr/libexec/ld.so; then 17701 hardcode_direct=yes 17702 hardcode_shlibpath_var=no 17703 hardcode_direct_absolute=yes 17704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17706 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17707 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17708 export_dynamic_flag_spec='$wl-E' 17709 else 17710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17711 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17712 fi 17713 else 17714 ld_shlibs=no 17715 fi 17716 ;; 17717 17718 os2*) 17719 hardcode_libdir_flag_spec='-L$libdir' 17720 hardcode_minus_L=yes 17721 allow_undefined_flag=unsupported 17722 shrext_cmds=.dll 17723 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17724 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17725 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17726 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17727 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17729 emximp -o $lib $output_objdir/$libname.def' 17730 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17733 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17734 prefix_cmds="$SED"~ 17735 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17736 prefix_cmds="$prefix_cmds -e 1d"; 17737 fi~ 17738 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17739 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17740 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17741 emximp -o $lib $output_objdir/$libname.def' 17742 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17743 enable_shared_with_static_runtimes=yes 17744 ;; 17745 17746 osf3*) 17747 if test yes = "$GCC"; then 17748 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17749 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' 17750 else 17751 allow_undefined_flag=' -expect_unresolved \*' 17752 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' 17753 fi 17754 archive_cmds_need_lc='no' 17755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17756 hardcode_libdir_separator=: 17757 ;; 17758 17759 osf4* | osf5*) # as osf3* with the addition of -msym flag 17760 if test yes = "$GCC"; then 17761 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17762 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' 17763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17764 else 17765 allow_undefined_flag=' -expect_unresolved \*' 17766 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' 17767 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~ 17768 $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' 17769 17770 # Both c and cxx compiler support -rpath directly 17771 hardcode_libdir_flag_spec='-rpath $libdir' 17772 fi 17773 archive_cmds_need_lc='no' 17774 hardcode_libdir_separator=: 17775 ;; 17776 17777 solaris*) 17778 no_undefined_flag=' -z defs' 17779 if test yes = "$GCC"; then 17780 wlarc='$wl' 17781 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17782 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17783 $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' 17784 else 17785 case `$CC -V 2>&1` in 17786 *"Compilers 5.0"*) 17787 wlarc='' 17788 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17790 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17791 ;; 17792 *) 17793 wlarc='$wl' 17794 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17796 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17797 ;; 17798 esac 17799 fi 17800 hardcode_libdir_flag_spec='-R$libdir' 17801 hardcode_shlibpath_var=no 17802 case $host_os in 17803 solaris2.[0-5] | solaris2.[0-5].*) ;; 17804 *) 17805 # The compiler driver will combine and reorder linker options, 17806 # but understands '-z linker_flag'. GCC discards it without '$wl', 17807 # but is careful enough not to reorder. 17808 # Supported since Solaris 2.6 (maybe 2.5.1?) 17809 if test yes = "$GCC"; then 17810 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17811 else 17812 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17813 fi 17814 ;; 17815 esac 17816 link_all_deplibs=yes 17817 ;; 17818 17819 sunos4*) 17820 if test sequent = "$host_vendor"; then 17821 # Use $CC to link under sequent, because it throws in some extra .o 17822 # files that make .init and .fini sections work. 17823 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17824 else 17825 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17826 fi 17827 hardcode_libdir_flag_spec='-L$libdir' 17828 hardcode_direct=yes 17829 hardcode_minus_L=yes 17830 hardcode_shlibpath_var=no 17831 ;; 17832 17833 sysv4) 17834 case $host_vendor in 17835 sni) 17836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17837 hardcode_direct=yes # is this really true??? 17838 ;; 17839 siemens) 17840 ## LD is ld it makes a PLAMLIB 17841 ## CC just makes a GrossModule. 17842 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17843 reload_cmds='$CC -r -o $output$reload_objs' 17844 hardcode_direct=no 17845 ;; 17846 motorola) 17847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17848 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17849 ;; 17850 esac 17851 runpath_var='LD_RUN_PATH' 17852 hardcode_shlibpath_var=no 17853 ;; 17854 17855 sysv4.3*) 17856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17857 hardcode_shlibpath_var=no 17858 export_dynamic_flag_spec='-Bexport' 17859 ;; 17860 17861 sysv4*MP*) 17862 if test -d /usr/nec; then 17863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17864 hardcode_shlibpath_var=no 17865 runpath_var=LD_RUN_PATH 17866 hardcode_runpath_var=yes 17867 ld_shlibs=yes 17868 fi 17869 ;; 17870 17871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17872 no_undefined_flag='$wl-z,text' 17873 archive_cmds_need_lc=no 17874 hardcode_shlibpath_var=no 17875 runpath_var='LD_RUN_PATH' 17876 17877 if test yes = "$GCC"; then 17878 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17879 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17880 else 17881 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17882 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17883 fi 17884 ;; 17885 17886 sysv5* | sco3.2v5* | sco5v6*) 17887 # Note: We CANNOT use -z defs as we might desire, because we do not 17888 # link with -lc, and that would cause any symbols used from libc to 17889 # always be unresolved, which means just about no library would 17890 # ever link correctly. If we're not using GNU ld we use -z text 17891 # though, which does catch some bad symbols but isn't as heavy-handed 17892 # as -z defs. 17893 no_undefined_flag='$wl-z,text' 17894 allow_undefined_flag='$wl-z,nodefs' 17895 archive_cmds_need_lc=no 17896 hardcode_shlibpath_var=no 17897 hardcode_libdir_flag_spec='$wl-R,$libdir' 17898 hardcode_libdir_separator=':' 17899 link_all_deplibs=yes 17900 export_dynamic_flag_spec='$wl-Bexport' 17901 runpath_var='LD_RUN_PATH' 17902 17903 if test yes = "$GCC"; then 17904 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17905 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17906 else 17907 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17908 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17909 fi 17910 ;; 17911 17912 uts4*) 17913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17914 hardcode_libdir_flag_spec='-L$libdir' 17915 hardcode_shlibpath_var=no 17916 ;; 17917 17918 *) 17919 ld_shlibs=no 17920 ;; 17921 esac 17922 17923 if test sni = "$host_vendor"; then 17924 case $host in 17925 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17926 export_dynamic_flag_spec='$wl-Blargedynsym' 17927 ;; 17928 esac 17929 fi 17930 fi 17931 17932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17933$as_echo "$ld_shlibs" >&6; } 17934test no = "$ld_shlibs" && can_build_shared=no 17935 17936with_gnu_ld=$with_gnu_ld 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952# 17953# Do we need to explicitly link libc? 17954# 17955case "x$archive_cmds_need_lc" in 17956x|xyes) 17957 # Assume -lc should be added 17958 archive_cmds_need_lc=yes 17959 17960 if test yes,yes = "$GCC,$enable_shared"; then 17961 case $archive_cmds in 17962 *'~'*) 17963 # FIXME: we may have to deal with multi-command sequences. 17964 ;; 17965 '$CC '*) 17966 # Test whether the compiler implicitly links with -lc since on some 17967 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17968 # to ld, don't add -lc before -lgcc. 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17971if ${lt_cv_archive_cmds_need_lc+:} false; then : 17972 $as_echo_n "(cached) " >&6 17973else 17974 $RM conftest* 17975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17976 17977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17978 (eval $ac_compile) 2>&5 17979 ac_status=$? 17980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17981 test $ac_status = 0; } 2>conftest.err; then 17982 soname=conftest 17983 lib=conftest 17984 libobjs=conftest.$ac_objext 17985 deplibs= 17986 wl=$lt_prog_compiler_wl 17987 pic_flag=$lt_prog_compiler_pic 17988 compiler_flags=-v 17989 linker_flags=-v 17990 verstring= 17991 output_objdir=. 17992 libname=conftest 17993 lt_save_allow_undefined_flag=$allow_undefined_flag 17994 allow_undefined_flag= 17995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17996 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17997 ac_status=$? 17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17999 test $ac_status = 0; } 18000 then 18001 lt_cv_archive_cmds_need_lc=no 18002 else 18003 lt_cv_archive_cmds_need_lc=yes 18004 fi 18005 allow_undefined_flag=$lt_save_allow_undefined_flag 18006 else 18007 cat conftest.err 1>&5 18008 fi 18009 $RM conftest* 18010 18011fi 18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18013$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 18014 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18015 ;; 18016 esac 18017 fi 18018 ;; 18019esac 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18173$as_echo_n "checking dynamic linker characteristics... " >&6; } 18174 18175if test yes = "$GCC"; then 18176 case $host_os in 18177 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18178 *) lt_awk_arg='/^libraries:/' ;; 18179 esac 18180 case $host_os in 18181 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18182 *) lt_sed_strip_eq='s|=/|/|g' ;; 18183 esac 18184 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18185 case $lt_search_path_spec in 18186 *\;*) 18187 # if the path contains ";" then we assume it to be the separator 18188 # otherwise default to the standard path separator (i.e. ":") - it is 18189 # assumed that no part of a normal pathname contains ";" but that should 18190 # okay in the real world where ";" in dirpaths is itself problematic. 18191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18192 ;; 18193 *) 18194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18195 ;; 18196 esac 18197 # Ok, now we have the path, separated by spaces, we can step through it 18198 # and add multilib dir if necessary... 18199 lt_tmp_lt_search_path_spec= 18200 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18201 # ...but if some path component already ends with the multilib dir we assume 18202 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18203 case "$lt_multi_os_dir; $lt_search_path_spec " in 18204 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18205 lt_multi_os_dir= 18206 ;; 18207 esac 18208 for lt_sys_path in $lt_search_path_spec; do 18209 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18211 elif test -n "$lt_multi_os_dir"; then 18212 test -d "$lt_sys_path" && \ 18213 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18214 fi 18215 done 18216 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18217BEGIN {RS = " "; FS = "/|\n";} { 18218 lt_foo = ""; 18219 lt_count = 0; 18220 for (lt_i = NF; lt_i > 0; lt_i--) { 18221 if ($lt_i != "" && $lt_i != ".") { 18222 if ($lt_i == "..") { 18223 lt_count++; 18224 } else { 18225 if (lt_count == 0) { 18226 lt_foo = "/" $lt_i lt_foo; 18227 } else { 18228 lt_count--; 18229 } 18230 } 18231 } 18232 } 18233 if (lt_foo != "") { lt_freq[lt_foo]++; } 18234 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18235}'` 18236 # AWK program above erroneously prepends '/' to C:/dos/paths 18237 # for these hosts. 18238 case $host_os in 18239 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18240 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18241 esac 18242 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18243else 18244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18245fi 18246library_names_spec= 18247libname_spec='lib$name' 18248soname_spec= 18249shrext_cmds=.so 18250postinstall_cmds= 18251postuninstall_cmds= 18252finish_cmds= 18253finish_eval= 18254shlibpath_var= 18255shlibpath_overrides_runpath=unknown 18256version_type=none 18257dynamic_linker="$host_os ld.so" 18258sys_lib_dlsearch_path_spec="/lib /usr/lib" 18259need_lib_prefix=unknown 18260hardcode_into_libs=no 18261 18262# when you set need_version to no, make sure it does not cause -set_version 18263# flags to be left without arguments 18264need_version=unknown 18265 18266 18267 18268case $host_os in 18269aix3*) 18270 version_type=linux # correct to gnu/linux during the next big refactor 18271 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18272 shlibpath_var=LIBPATH 18273 18274 # AIX 3 has no versioning support, so we append a major version to the name. 18275 soname_spec='$libname$release$shared_ext$major' 18276 ;; 18277 18278aix[4-9]*) 18279 version_type=linux # correct to gnu/linux during the next big refactor 18280 need_lib_prefix=no 18281 need_version=no 18282 hardcode_into_libs=yes 18283 if test ia64 = "$host_cpu"; then 18284 # AIX 5 supports IA64 18285 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18286 shlibpath_var=LD_LIBRARY_PATH 18287 else 18288 # With GCC up to 2.95.x, collect2 would create an import file 18289 # for dependence libraries. The import file would start with 18290 # the line '#! .'. This would cause the generated library to 18291 # depend on '.', always an invalid library. This was fixed in 18292 # development snapshots of GCC prior to 3.0. 18293 case $host_os in 18294 aix4 | aix4.[01] | aix4.[01].*) 18295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18296 echo ' yes ' 18297 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18298 : 18299 else 18300 can_build_shared=no 18301 fi 18302 ;; 18303 esac 18304 # Using Import Files as archive members, it is possible to support 18305 # filename-based versioning of shared library archives on AIX. While 18306 # this would work for both with and without runtime linking, it will 18307 # prevent static linking of such archives. So we do filename-based 18308 # shared library versioning with .so extension only, which is used 18309 # when both runtime linking and shared linking is enabled. 18310 # Unfortunately, runtime linking may impact performance, so we do 18311 # not want this to be the default eventually. Also, we use the 18312 # versioned .so libs for executables only if there is the -brtl 18313 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18314 # To allow for filename-based versioning support, we need to create 18315 # libNAME.so.V as an archive file, containing: 18316 # *) an Import File, referring to the versioned filename of the 18317 # archive as well as the shared archive member, telling the 18318 # bitwidth (32 or 64) of that shared object, and providing the 18319 # list of exported symbols of that shared object, eventually 18320 # decorated with the 'weak' keyword 18321 # *) the shared object with the F_LOADONLY flag set, to really avoid 18322 # it being seen by the linker. 18323 # At run time we better use the real file rather than another symlink, 18324 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18325 18326 case $with_aix_soname,$aix_use_runtimelinking in 18327 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18328 # soname into executable. Probably we can add versioning support to 18329 # collect2, so additional links can be useful in future. 18330 aix,yes) # traditional libtool 18331 dynamic_linker='AIX unversionable lib.so' 18332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18333 # instead of lib<name>.a to let people know that these are not 18334 # typical AIX shared libraries. 18335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18336 ;; 18337 aix,no) # traditional AIX only 18338 dynamic_linker='AIX lib.a(lib.so.V)' 18339 # We preserve .a as extension for shared libraries through AIX4.2 18340 # and later when we are not doing run time linking. 18341 library_names_spec='$libname$release.a $libname.a' 18342 soname_spec='$libname$release$shared_ext$major' 18343 ;; 18344 svr4,*) # full svr4 only 18345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18347 # We do not specify a path in Import Files, so LIBPATH fires. 18348 shlibpath_overrides_runpath=yes 18349 ;; 18350 *,yes) # both, prefer svr4 18351 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18352 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18353 # unpreferred sharedlib libNAME.a needs extra handling 18354 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18355 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18356 # We do not specify a path in Import Files, so LIBPATH fires. 18357 shlibpath_overrides_runpath=yes 18358 ;; 18359 *,no) # both, prefer aix 18360 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18361 library_names_spec='$libname$release.a $libname.a' 18362 soname_spec='$libname$release$shared_ext$major' 18363 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18364 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18365 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18366 ;; 18367 esac 18368 shlibpath_var=LIBPATH 18369 fi 18370 ;; 18371 18372amigaos*) 18373 case $host_cpu in 18374 powerpc) 18375 # Since July 2007 AmigaOS4 officially supports .so libraries. 18376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18378 ;; 18379 m68k) 18380 library_names_spec='$libname.ixlibrary $libname.a' 18381 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18382 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18383 ;; 18384 esac 18385 ;; 18386 18387beos*) 18388 library_names_spec='$libname$shared_ext' 18389 dynamic_linker="$host_os ld.so" 18390 shlibpath_var=LIBRARY_PATH 18391 ;; 18392 18393bsdi[45]*) 18394 version_type=linux # correct to gnu/linux during the next big refactor 18395 need_version=no 18396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18397 soname_spec='$libname$release$shared_ext$major' 18398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18399 shlibpath_var=LD_LIBRARY_PATH 18400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18402 # the default ld.so.conf also contains /usr/contrib/lib and 18403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18404 # libtool to hard-code these into programs 18405 ;; 18406 18407cygwin* | mingw* | pw32* | cegcc*) 18408 version_type=windows 18409 shrext_cmds=.dll 18410 need_version=no 18411 need_lib_prefix=no 18412 18413 case $GCC,$cc_basename in 18414 yes,*) 18415 # gcc 18416 library_names_spec='$libname.dll.a' 18417 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18418 postinstall_cmds='base_file=`basename \$file`~ 18419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18420 dldir=$destdir/`dirname \$dlpath`~ 18421 test -d \$dldir || mkdir -p \$dldir~ 18422 $install_prog $dir/$dlname \$dldir/$dlname~ 18423 chmod a+x \$dldir/$dlname~ 18424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18426 fi' 18427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18428 dlpath=$dir/\$dldll~ 18429 $RM \$dlpath' 18430 shlibpath_overrides_runpath=yes 18431 18432 case $host_os in 18433 cygwin*) 18434 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18435 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18436 18437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18438 ;; 18439 mingw* | cegcc*) 18440 # MinGW DLLs use traditional 'lib' prefix 18441 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18442 ;; 18443 pw32*) 18444 # pw32 DLLs use 'pw' prefix rather than 'lib' 18445 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18446 ;; 18447 esac 18448 dynamic_linker='Win32 ld.exe' 18449 ;; 18450 18451 *,cl*) 18452 # Native MSVC 18453 libname_spec='$name' 18454 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18455 library_names_spec='$libname.dll.lib' 18456 18457 case $build_os in 18458 mingw*) 18459 sys_lib_search_path_spec= 18460 lt_save_ifs=$IFS 18461 IFS=';' 18462 for lt_path in $LIB 18463 do 18464 IFS=$lt_save_ifs 18465 # Let DOS variable expansion print the short 8.3 style file name. 18466 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18467 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18468 done 18469 IFS=$lt_save_ifs 18470 # Convert to MSYS style. 18471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18472 ;; 18473 cygwin*) 18474 # Convert to unix form, then to dos form, then back to unix form 18475 # but this time dos style (no spaces!) so that the unix form looks 18476 # like /cygdrive/c/PROGRA~1:/cygdr... 18477 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18478 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18479 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18480 ;; 18481 *) 18482 sys_lib_search_path_spec=$LIB 18483 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18484 # It is most probably a Windows format PATH. 18485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18486 else 18487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18488 fi 18489 # FIXME: find the short name or the path components, as spaces are 18490 # common. (e.g. "Program Files" -> "PROGRA~1") 18491 ;; 18492 esac 18493 18494 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18495 postinstall_cmds='base_file=`basename \$file`~ 18496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18497 dldir=$destdir/`dirname \$dlpath`~ 18498 test -d \$dldir || mkdir -p \$dldir~ 18499 $install_prog $dir/$dlname \$dldir/$dlname' 18500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18501 dlpath=$dir/\$dldll~ 18502 $RM \$dlpath' 18503 shlibpath_overrides_runpath=yes 18504 dynamic_linker='Win32 link.exe' 18505 ;; 18506 18507 *) 18508 # Assume MSVC wrapper 18509 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18510 dynamic_linker='Win32 ld.exe' 18511 ;; 18512 esac 18513 # FIXME: first we should search . and the directory the executable is in 18514 shlibpath_var=PATH 18515 ;; 18516 18517darwin* | rhapsody*) 18518 dynamic_linker="$host_os dyld" 18519 version_type=darwin 18520 need_lib_prefix=no 18521 need_version=no 18522 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18523 soname_spec='$libname$release$major$shared_ext' 18524 shlibpath_overrides_runpath=yes 18525 shlibpath_var=DYLD_LIBRARY_PATH 18526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18527 18528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18530 ;; 18531 18532dgux*) 18533 version_type=linux # correct to gnu/linux during the next big refactor 18534 need_lib_prefix=no 18535 need_version=no 18536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18537 soname_spec='$libname$release$shared_ext$major' 18538 shlibpath_var=LD_LIBRARY_PATH 18539 ;; 18540 18541freebsd* | dragonfly*) 18542 # DragonFly does not have aout. When/if they implement a new 18543 # versioning mechanism, adjust this. 18544 if test -x /usr/bin/objformat; then 18545 objformat=`/usr/bin/objformat` 18546 else 18547 case $host_os in 18548 freebsd[23].*) objformat=aout ;; 18549 *) objformat=elf ;; 18550 esac 18551 fi 18552 version_type=freebsd-$objformat 18553 case $version_type in 18554 freebsd-elf*) 18555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18556 soname_spec='$libname$release$shared_ext$major' 18557 need_version=no 18558 need_lib_prefix=no 18559 ;; 18560 freebsd-*) 18561 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18562 need_version=yes 18563 ;; 18564 esac 18565 shlibpath_var=LD_LIBRARY_PATH 18566 case $host_os in 18567 freebsd2.*) 18568 shlibpath_overrides_runpath=yes 18569 ;; 18570 freebsd3.[01]* | freebsdelf3.[01]*) 18571 shlibpath_overrides_runpath=yes 18572 hardcode_into_libs=yes 18573 ;; 18574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18576 shlibpath_overrides_runpath=no 18577 hardcode_into_libs=yes 18578 ;; 18579 *) # from 4.6 on, and DragonFly 18580 shlibpath_overrides_runpath=yes 18581 hardcode_into_libs=yes 18582 ;; 18583 esac 18584 ;; 18585 18586haiku*) 18587 version_type=linux # correct to gnu/linux during the next big refactor 18588 need_lib_prefix=no 18589 need_version=no 18590 dynamic_linker="$host_os runtime_loader" 18591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18592 soname_spec='$libname$release$shared_ext$major' 18593 shlibpath_var=LIBRARY_PATH 18594 shlibpath_overrides_runpath=no 18595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18596 hardcode_into_libs=yes 18597 ;; 18598 18599hpux9* | hpux10* | hpux11*) 18600 # Give a soname corresponding to the major version so that dld.sl refuses to 18601 # link against other versions. 18602 version_type=sunos 18603 need_lib_prefix=no 18604 need_version=no 18605 case $host_cpu in 18606 ia64*) 18607 shrext_cmds='.so' 18608 hardcode_into_libs=yes 18609 dynamic_linker="$host_os dld.so" 18610 shlibpath_var=LD_LIBRARY_PATH 18611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18613 soname_spec='$libname$release$shared_ext$major' 18614 if test 32 = "$HPUX_IA64_MODE"; then 18615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18616 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18617 else 18618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18619 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18620 fi 18621 ;; 18622 hppa*64*) 18623 shrext_cmds='.sl' 18624 hardcode_into_libs=yes 18625 dynamic_linker="$host_os dld.sl" 18626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18629 soname_spec='$libname$release$shared_ext$major' 18630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18632 ;; 18633 *) 18634 shrext_cmds='.sl' 18635 dynamic_linker="$host_os dld.sl" 18636 shlibpath_var=SHLIB_PATH 18637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18639 soname_spec='$libname$release$shared_ext$major' 18640 ;; 18641 esac 18642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18643 postinstall_cmds='chmod 555 $lib' 18644 # or fails outright, so override atomically: 18645 install_override_mode=555 18646 ;; 18647 18648interix[3-9]*) 18649 version_type=linux # correct to gnu/linux during the next big refactor 18650 need_lib_prefix=no 18651 need_version=no 18652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18653 soname_spec='$libname$release$shared_ext$major' 18654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 shlibpath_overrides_runpath=no 18657 hardcode_into_libs=yes 18658 ;; 18659 18660irix5* | irix6* | nonstopux*) 18661 case $host_os in 18662 nonstopux*) version_type=nonstopux ;; 18663 *) 18664 if test yes = "$lt_cv_prog_gnu_ld"; then 18665 version_type=linux # correct to gnu/linux during the next big refactor 18666 else 18667 version_type=irix 18668 fi ;; 18669 esac 18670 need_lib_prefix=no 18671 need_version=no 18672 soname_spec='$libname$release$shared_ext$major' 18673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18674 case $host_os in 18675 irix5* | nonstopux*) 18676 libsuff= shlibsuff= 18677 ;; 18678 *) 18679 case $LD in # libtool.m4 will add one of these switches to LD 18680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18681 libsuff= shlibsuff= libmagic=32-bit;; 18682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18683 libsuff=32 shlibsuff=N32 libmagic=N32;; 18684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18685 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18686 *) libsuff= shlibsuff= libmagic=never-match;; 18687 esac 18688 ;; 18689 esac 18690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18691 shlibpath_overrides_runpath=no 18692 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18693 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18694 hardcode_into_libs=yes 18695 ;; 18696 18697# No shared lib support for Linux oldld, aout, or coff. 18698linux*oldld* | linux*aout* | linux*coff*) 18699 dynamic_linker=no 18700 ;; 18701 18702linux*android*) 18703 version_type=none # Android doesn't support versioned libraries. 18704 need_lib_prefix=no 18705 need_version=no 18706 library_names_spec='$libname$release$shared_ext' 18707 soname_spec='$libname$release$shared_ext' 18708 finish_cmds= 18709 shlibpath_var=LD_LIBRARY_PATH 18710 shlibpath_overrides_runpath=yes 18711 18712 # This implies no fast_install, which is unacceptable. 18713 # Some rework will be needed to allow for fast_install 18714 # before this can be enabled. 18715 hardcode_into_libs=yes 18716 18717 dynamic_linker='Android linker' 18718 # Don't embed -rpath directories since the linker doesn't support them. 18719 hardcode_libdir_flag_spec='-L$libdir' 18720 ;; 18721 18722# This must be glibc/ELF. 18723linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18724 version_type=linux # correct to gnu/linux during the next big refactor 18725 need_lib_prefix=no 18726 need_version=no 18727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18728 soname_spec='$libname$release$shared_ext$major' 18729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18730 shlibpath_var=LD_LIBRARY_PATH 18731 shlibpath_overrides_runpath=no 18732 18733 # Some binutils ld are patched to set DT_RUNPATH 18734 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18735 $as_echo_n "(cached) " >&6 18736else 18737 lt_cv_shlibpath_overrides_runpath=no 18738 save_LDFLAGS=$LDFLAGS 18739 save_libdir=$libdir 18740 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18741 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18743/* end confdefs.h. */ 18744 18745int 18746main () 18747{ 18748 18749 ; 18750 return 0; 18751} 18752_ACEOF 18753if ac_fn_c_try_link "$LINENO"; then : 18754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18755 lt_cv_shlibpath_overrides_runpath=yes 18756fi 18757fi 18758rm -f core conftest.err conftest.$ac_objext \ 18759 conftest$ac_exeext conftest.$ac_ext 18760 LDFLAGS=$save_LDFLAGS 18761 libdir=$save_libdir 18762 18763fi 18764 18765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18766 18767 # This implies no fast_install, which is unacceptable. 18768 # Some rework will be needed to allow for fast_install 18769 # before this can be enabled. 18770 hardcode_into_libs=yes 18771 18772 # Ideally, we could use ldconfig to report *all* directores which are 18773 # searched for libraries, however this is still not possible. Aside from not 18774 # being certain /sbin/ldconfig is available, command 18775 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18776 # even though it is searched at run-time. Try to do the best guess by 18777 # appending ld.so.conf contents (and includes) to the search path. 18778 if test -f /etc/ld.so.conf; then 18779 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' ' '` 18780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18781 fi 18782 18783 # We used to test for /lib/ld.so.1 and disable shared libraries on 18784 # powerpc, because MkLinux only supported shared libraries with the 18785 # GNU dynamic linker. Since this was broken with cross compilers, 18786 # most powerpc-linux boxes support dynamic linking these days and 18787 # people can always --disable-shared, the test was removed, and we 18788 # assume the GNU/Linux dynamic linker is in use. 18789 dynamic_linker='GNU/Linux ld.so' 18790 ;; 18791 18792netbsdelf*-gnu) 18793 version_type=linux 18794 need_lib_prefix=no 18795 need_version=no 18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18797 soname_spec='${libname}${release}${shared_ext}$major' 18798 shlibpath_var=LD_LIBRARY_PATH 18799 shlibpath_overrides_runpath=no 18800 hardcode_into_libs=yes 18801 dynamic_linker='NetBSD ld.elf_so' 18802 ;; 18803 18804netbsd*) 18805 version_type=sunos 18806 need_lib_prefix=no 18807 need_version=no 18808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18811 dynamic_linker='NetBSD (a.out) ld.so' 18812 else 18813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18814 soname_spec='$libname$release$shared_ext$major' 18815 dynamic_linker='NetBSD ld.elf_so' 18816 fi 18817 shlibpath_var=LD_LIBRARY_PATH 18818 shlibpath_overrides_runpath=yes 18819 hardcode_into_libs=yes 18820 ;; 18821 18822newsos6) 18823 version_type=linux # correct to gnu/linux during the next big refactor 18824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18825 shlibpath_var=LD_LIBRARY_PATH 18826 shlibpath_overrides_runpath=yes 18827 ;; 18828 18829*nto* | *qnx*) 18830 version_type=qnx 18831 need_lib_prefix=no 18832 need_version=no 18833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18834 soname_spec='$libname$release$shared_ext$major' 18835 shlibpath_var=LD_LIBRARY_PATH 18836 shlibpath_overrides_runpath=no 18837 hardcode_into_libs=yes 18838 dynamic_linker='ldqnx.so' 18839 ;; 18840 18841openbsd* | bitrig*) 18842 version_type=sunos 18843 sys_lib_dlsearch_path_spec=/usr/lib 18844 need_lib_prefix=no 18845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18846 need_version=no 18847 else 18848 need_version=yes 18849 fi 18850 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18852 shlibpath_var=LD_LIBRARY_PATH 18853 shlibpath_overrides_runpath=yes 18854 ;; 18855 18856os2*) 18857 libname_spec='$name' 18858 version_type=windows 18859 shrext_cmds=.dll 18860 need_version=no 18861 need_lib_prefix=no 18862 # OS/2 can only load a DLL with a base name of 8 characters or less. 18863 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18864 v=$($ECHO $release$versuffix | tr -d .-); 18865 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18866 $ECHO $n$v`$shared_ext' 18867 library_names_spec='${libname}_dll.$libext' 18868 dynamic_linker='OS/2 ld.exe' 18869 shlibpath_var=BEGINLIBPATH 18870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18872 postinstall_cmds='base_file=`basename \$file`~ 18873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18874 dldir=$destdir/`dirname \$dlpath`~ 18875 test -d \$dldir || mkdir -p \$dldir~ 18876 $install_prog $dir/$dlname \$dldir/$dlname~ 18877 chmod a+x \$dldir/$dlname~ 18878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18880 fi' 18881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18882 dlpath=$dir/\$dldll~ 18883 $RM \$dlpath' 18884 ;; 18885 18886osf3* | osf4* | osf5*) 18887 version_type=osf 18888 need_lib_prefix=no 18889 need_version=no 18890 soname_spec='$libname$release$shared_ext$major' 18891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18892 shlibpath_var=LD_LIBRARY_PATH 18893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18895 ;; 18896 18897rdos*) 18898 dynamic_linker=no 18899 ;; 18900 18901solaris*) 18902 version_type=linux # correct to gnu/linux during the next big refactor 18903 need_lib_prefix=no 18904 need_version=no 18905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18906 soname_spec='$libname$release$shared_ext$major' 18907 shlibpath_var=LD_LIBRARY_PATH 18908 shlibpath_overrides_runpath=yes 18909 hardcode_into_libs=yes 18910 # ldd complains unless libraries are executable 18911 postinstall_cmds='chmod +x $lib' 18912 ;; 18913 18914sunos4*) 18915 version_type=sunos 18916 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18918 shlibpath_var=LD_LIBRARY_PATH 18919 shlibpath_overrides_runpath=yes 18920 if test yes = "$with_gnu_ld"; then 18921 need_lib_prefix=no 18922 fi 18923 need_version=yes 18924 ;; 18925 18926sysv4 | sysv4.3*) 18927 version_type=linux # correct to gnu/linux during the next big refactor 18928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18929 soname_spec='$libname$release$shared_ext$major' 18930 shlibpath_var=LD_LIBRARY_PATH 18931 case $host_vendor in 18932 sni) 18933 shlibpath_overrides_runpath=no 18934 need_lib_prefix=no 18935 runpath_var=LD_RUN_PATH 18936 ;; 18937 siemens) 18938 need_lib_prefix=no 18939 ;; 18940 motorola) 18941 need_lib_prefix=no 18942 need_version=no 18943 shlibpath_overrides_runpath=no 18944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18945 ;; 18946 esac 18947 ;; 18948 18949sysv4*MP*) 18950 if test -d /usr/nec; then 18951 version_type=linux # correct to gnu/linux during the next big refactor 18952 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18953 soname_spec='$libname$shared_ext.$major' 18954 shlibpath_var=LD_LIBRARY_PATH 18955 fi 18956 ;; 18957 18958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18959 version_type=sco 18960 need_lib_prefix=no 18961 need_version=no 18962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18963 soname_spec='$libname$release$shared_ext$major' 18964 shlibpath_var=LD_LIBRARY_PATH 18965 shlibpath_overrides_runpath=yes 18966 hardcode_into_libs=yes 18967 if test yes = "$with_gnu_ld"; then 18968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18969 else 18970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18971 case $host_os in 18972 sco3.2v5*) 18973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18974 ;; 18975 esac 18976 fi 18977 sys_lib_dlsearch_path_spec='/usr/lib' 18978 ;; 18979 18980tpf*) 18981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18982 version_type=linux # correct to gnu/linux during the next big refactor 18983 need_lib_prefix=no 18984 need_version=no 18985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18986 shlibpath_var=LD_LIBRARY_PATH 18987 shlibpath_overrides_runpath=no 18988 hardcode_into_libs=yes 18989 ;; 18990 18991uts4*) 18992 version_type=linux # correct to gnu/linux during the next big refactor 18993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18994 soname_spec='$libname$release$shared_ext$major' 18995 shlibpath_var=LD_LIBRARY_PATH 18996 ;; 18997 18998*) 18999 dynamic_linker=no 19000 ;; 19001esac 19002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19003$as_echo "$dynamic_linker" >&6; } 19004test no = "$dynamic_linker" && can_build_shared=no 19005 19006variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19007if test yes = "$GCC"; then 19008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19009fi 19010 19011if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19012 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19013fi 19014 19015if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19016 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19017fi 19018 19019# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19020configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19021 19022# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19023func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19024 19025# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19026configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19125$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19126hardcode_action= 19127if test -n "$hardcode_libdir_flag_spec" || 19128 test -n "$runpath_var" || 19129 test yes = "$hardcode_automatic"; then 19130 19131 # We can hardcode non-existent directories. 19132 if test no != "$hardcode_direct" && 19133 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19134 # have to relink, otherwise we might link with an installed library 19135 # when we should be linking with a yet-to-be-installed one 19136 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19137 test no != "$hardcode_minus_L"; then 19138 # Linking always hardcodes the temporary library directory. 19139 hardcode_action=relink 19140 else 19141 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19142 hardcode_action=immediate 19143 fi 19144else 19145 # We cannot hardcode anything, or else we can only hardcode existing 19146 # directories. 19147 hardcode_action=unsupported 19148fi 19149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19150$as_echo "$hardcode_action" >&6; } 19151 19152if test relink = "$hardcode_action" || 19153 test yes = "$inherit_rpath"; then 19154 # Fast installation is not supported 19155 enable_fast_install=no 19156elif test yes = "$shlibpath_overrides_runpath" || 19157 test no = "$enable_shared"; then 19158 # Fast installation is not necessary 19159 enable_fast_install=needless 19160fi 19161 19162 19163 19164 19165 19166 19167 if test yes != "$enable_dlopen"; then 19168 enable_dlopen=unknown 19169 enable_dlopen_self=unknown 19170 enable_dlopen_self_static=unknown 19171else 19172 lt_cv_dlopen=no 19173 lt_cv_dlopen_libs= 19174 19175 case $host_os in 19176 beos*) 19177 lt_cv_dlopen=load_add_on 19178 lt_cv_dlopen_libs= 19179 lt_cv_dlopen_self=yes 19180 ;; 19181 19182 mingw* | pw32* | cegcc*) 19183 lt_cv_dlopen=LoadLibrary 19184 lt_cv_dlopen_libs= 19185 ;; 19186 19187 cygwin*) 19188 lt_cv_dlopen=dlopen 19189 lt_cv_dlopen_libs= 19190 ;; 19191 19192 darwin*) 19193 # if libdl is installed we need to link against it 19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19195$as_echo_n "checking for dlopen in -ldl... " >&6; } 19196if ${ac_cv_lib_dl_dlopen+:} false; then : 19197 $as_echo_n "(cached) " >&6 19198else 19199 ac_check_lib_save_LIBS=$LIBS 19200LIBS="-ldl $LIBS" 19201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19202/* end confdefs.h. */ 19203 19204/* Override any GCC internal prototype to avoid an error. 19205 Use char because int might match the return type of a GCC 19206 builtin and then its argument prototype would still apply. */ 19207#ifdef __cplusplus 19208extern "C" 19209#endif 19210char dlopen (); 19211int 19212main () 19213{ 19214return dlopen (); 19215 ; 19216 return 0; 19217} 19218_ACEOF 19219if ac_fn_c_try_link "$LINENO"; then : 19220 ac_cv_lib_dl_dlopen=yes 19221else 19222 ac_cv_lib_dl_dlopen=no 19223fi 19224rm -f core conftest.err conftest.$ac_objext \ 19225 conftest$ac_exeext conftest.$ac_ext 19226LIBS=$ac_check_lib_save_LIBS 19227fi 19228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19229$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19230if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19231 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19232else 19233 19234 lt_cv_dlopen=dyld 19235 lt_cv_dlopen_libs= 19236 lt_cv_dlopen_self=yes 19237 19238fi 19239 19240 ;; 19241 19242 tpf*) 19243 # Don't try to run any link tests for TPF. We know it's impossible 19244 # because TPF is a cross-compiler, and we know how we open DSOs. 19245 lt_cv_dlopen=dlopen 19246 lt_cv_dlopen_libs= 19247 lt_cv_dlopen_self=no 19248 ;; 19249 19250 *) 19251 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19252if test "x$ac_cv_func_shl_load" = xyes; then : 19253 lt_cv_dlopen=shl_load 19254else 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19256$as_echo_n "checking for shl_load in -ldld... " >&6; } 19257if ${ac_cv_lib_dld_shl_load+:} false; then : 19258 $as_echo_n "(cached) " >&6 19259else 19260 ac_check_lib_save_LIBS=$LIBS 19261LIBS="-ldld $LIBS" 19262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19263/* end confdefs.h. */ 19264 19265/* Override any GCC internal prototype to avoid an error. 19266 Use char because int might match the return type of a GCC 19267 builtin and then its argument prototype would still apply. */ 19268#ifdef __cplusplus 19269extern "C" 19270#endif 19271char shl_load (); 19272int 19273main () 19274{ 19275return shl_load (); 19276 ; 19277 return 0; 19278} 19279_ACEOF 19280if ac_fn_c_try_link "$LINENO"; then : 19281 ac_cv_lib_dld_shl_load=yes 19282else 19283 ac_cv_lib_dld_shl_load=no 19284fi 19285rm -f core conftest.err conftest.$ac_objext \ 19286 conftest$ac_exeext conftest.$ac_ext 19287LIBS=$ac_check_lib_save_LIBS 19288fi 19289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19290$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19291if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19292 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19293else 19294 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19295if test "x$ac_cv_func_dlopen" = xyes; then : 19296 lt_cv_dlopen=dlopen 19297else 19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19299$as_echo_n "checking for dlopen in -ldl... " >&6; } 19300if ${ac_cv_lib_dl_dlopen+:} false; then : 19301 $as_echo_n "(cached) " >&6 19302else 19303 ac_check_lib_save_LIBS=$LIBS 19304LIBS="-ldl $LIBS" 19305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19306/* end confdefs.h. */ 19307 19308/* Override any GCC internal prototype to avoid an error. 19309 Use char because int might match the return type of a GCC 19310 builtin and then its argument prototype would still apply. */ 19311#ifdef __cplusplus 19312extern "C" 19313#endif 19314char dlopen (); 19315int 19316main () 19317{ 19318return dlopen (); 19319 ; 19320 return 0; 19321} 19322_ACEOF 19323if ac_fn_c_try_link "$LINENO"; then : 19324 ac_cv_lib_dl_dlopen=yes 19325else 19326 ac_cv_lib_dl_dlopen=no 19327fi 19328rm -f core conftest.err conftest.$ac_objext \ 19329 conftest$ac_exeext conftest.$ac_ext 19330LIBS=$ac_check_lib_save_LIBS 19331fi 19332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19333$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19334if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19336else 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19338$as_echo_n "checking for dlopen in -lsvld... " >&6; } 19339if ${ac_cv_lib_svld_dlopen+:} false; then : 19340 $as_echo_n "(cached) " >&6 19341else 19342 ac_check_lib_save_LIBS=$LIBS 19343LIBS="-lsvld $LIBS" 19344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19345/* end confdefs.h. */ 19346 19347/* Override any GCC internal prototype to avoid an error. 19348 Use char because int might match the return type of a GCC 19349 builtin and then its argument prototype would still apply. */ 19350#ifdef __cplusplus 19351extern "C" 19352#endif 19353char dlopen (); 19354int 19355main () 19356{ 19357return dlopen (); 19358 ; 19359 return 0; 19360} 19361_ACEOF 19362if ac_fn_c_try_link "$LINENO"; then : 19363 ac_cv_lib_svld_dlopen=yes 19364else 19365 ac_cv_lib_svld_dlopen=no 19366fi 19367rm -f core conftest.err conftest.$ac_objext \ 19368 conftest$ac_exeext conftest.$ac_ext 19369LIBS=$ac_check_lib_save_LIBS 19370fi 19371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19372$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19373if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19375else 19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19377$as_echo_n "checking for dld_link in -ldld... " >&6; } 19378if ${ac_cv_lib_dld_dld_link+:} false; then : 19379 $as_echo_n "(cached) " >&6 19380else 19381 ac_check_lib_save_LIBS=$LIBS 19382LIBS="-ldld $LIBS" 19383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19384/* end confdefs.h. */ 19385 19386/* Override any GCC internal prototype to avoid an error. 19387 Use char because int might match the return type of a GCC 19388 builtin and then its argument prototype would still apply. */ 19389#ifdef __cplusplus 19390extern "C" 19391#endif 19392char dld_link (); 19393int 19394main () 19395{ 19396return dld_link (); 19397 ; 19398 return 0; 19399} 19400_ACEOF 19401if ac_fn_c_try_link "$LINENO"; then : 19402 ac_cv_lib_dld_dld_link=yes 19403else 19404 ac_cv_lib_dld_dld_link=no 19405fi 19406rm -f core conftest.err conftest.$ac_objext \ 19407 conftest$ac_exeext conftest.$ac_ext 19408LIBS=$ac_check_lib_save_LIBS 19409fi 19410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19411$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19412if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19413 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19414fi 19415 19416 19417fi 19418 19419 19420fi 19421 19422 19423fi 19424 19425 19426fi 19427 19428 19429fi 19430 19431 ;; 19432 esac 19433 19434 if test no = "$lt_cv_dlopen"; then 19435 enable_dlopen=no 19436 else 19437 enable_dlopen=yes 19438 fi 19439 19440 case $lt_cv_dlopen in 19441 dlopen) 19442 save_CPPFLAGS=$CPPFLAGS 19443 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19444 19445 save_LDFLAGS=$LDFLAGS 19446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19447 19448 save_LIBS=$LIBS 19449 LIBS="$lt_cv_dlopen_libs $LIBS" 19450 19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19452$as_echo_n "checking whether a program can dlopen itself... " >&6; } 19453if ${lt_cv_dlopen_self+:} false; then : 19454 $as_echo_n "(cached) " >&6 19455else 19456 if test yes = "$cross_compiling"; then : 19457 lt_cv_dlopen_self=cross 19458else 19459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19460 lt_status=$lt_dlunknown 19461 cat > conftest.$ac_ext <<_LT_EOF 19462#line $LINENO "configure" 19463#include "confdefs.h" 19464 19465#if HAVE_DLFCN_H 19466#include <dlfcn.h> 19467#endif 19468 19469#include <stdio.h> 19470 19471#ifdef RTLD_GLOBAL 19472# define LT_DLGLOBAL RTLD_GLOBAL 19473#else 19474# ifdef DL_GLOBAL 19475# define LT_DLGLOBAL DL_GLOBAL 19476# else 19477# define LT_DLGLOBAL 0 19478# endif 19479#endif 19480 19481/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19482 find out it does not work in some platform. */ 19483#ifndef LT_DLLAZY_OR_NOW 19484# ifdef RTLD_LAZY 19485# define LT_DLLAZY_OR_NOW RTLD_LAZY 19486# else 19487# ifdef DL_LAZY 19488# define LT_DLLAZY_OR_NOW DL_LAZY 19489# else 19490# ifdef RTLD_NOW 19491# define LT_DLLAZY_OR_NOW RTLD_NOW 19492# else 19493# ifdef DL_NOW 19494# define LT_DLLAZY_OR_NOW DL_NOW 19495# else 19496# define LT_DLLAZY_OR_NOW 0 19497# endif 19498# endif 19499# endif 19500# endif 19501#endif 19502 19503/* When -fvisibility=hidden is used, assume the code has been annotated 19504 correspondingly for the symbols needed. */ 19505#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19506int fnord () __attribute__((visibility("default"))); 19507#endif 19508 19509int fnord () { return 42; } 19510int main () 19511{ 19512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19513 int status = $lt_dlunknown; 19514 19515 if (self) 19516 { 19517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19518 else 19519 { 19520 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19521 else puts (dlerror ()); 19522 } 19523 /* dlclose (self); */ 19524 } 19525 else 19526 puts (dlerror ()); 19527 19528 return status; 19529} 19530_LT_EOF 19531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19532 (eval $ac_link) 2>&5 19533 ac_status=$? 19534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19535 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19536 (./conftest; exit; ) >&5 2>/dev/null 19537 lt_status=$? 19538 case x$lt_status in 19539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19542 esac 19543 else : 19544 # compilation failed 19545 lt_cv_dlopen_self=no 19546 fi 19547fi 19548rm -fr conftest* 19549 19550 19551fi 19552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19553$as_echo "$lt_cv_dlopen_self" >&6; } 19554 19555 if test yes = "$lt_cv_dlopen_self"; then 19556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19558$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 19559if ${lt_cv_dlopen_self_static+:} false; then : 19560 $as_echo_n "(cached) " >&6 19561else 19562 if test yes = "$cross_compiling"; then : 19563 lt_cv_dlopen_self_static=cross 19564else 19565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19566 lt_status=$lt_dlunknown 19567 cat > conftest.$ac_ext <<_LT_EOF 19568#line $LINENO "configure" 19569#include "confdefs.h" 19570 19571#if HAVE_DLFCN_H 19572#include <dlfcn.h> 19573#endif 19574 19575#include <stdio.h> 19576 19577#ifdef RTLD_GLOBAL 19578# define LT_DLGLOBAL RTLD_GLOBAL 19579#else 19580# ifdef DL_GLOBAL 19581# define LT_DLGLOBAL DL_GLOBAL 19582# else 19583# define LT_DLGLOBAL 0 19584# endif 19585#endif 19586 19587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19588 find out it does not work in some platform. */ 19589#ifndef LT_DLLAZY_OR_NOW 19590# ifdef RTLD_LAZY 19591# define LT_DLLAZY_OR_NOW RTLD_LAZY 19592# else 19593# ifdef DL_LAZY 19594# define LT_DLLAZY_OR_NOW DL_LAZY 19595# else 19596# ifdef RTLD_NOW 19597# define LT_DLLAZY_OR_NOW RTLD_NOW 19598# else 19599# ifdef DL_NOW 19600# define LT_DLLAZY_OR_NOW DL_NOW 19601# else 19602# define LT_DLLAZY_OR_NOW 0 19603# endif 19604# endif 19605# endif 19606# endif 19607#endif 19608 19609/* When -fvisibility=hidden is used, assume the code has been annotated 19610 correspondingly for the symbols needed. */ 19611#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19612int fnord () __attribute__((visibility("default"))); 19613#endif 19614 19615int fnord () { return 42; } 19616int main () 19617{ 19618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19619 int status = $lt_dlunknown; 19620 19621 if (self) 19622 { 19623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19624 else 19625 { 19626 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19627 else puts (dlerror ()); 19628 } 19629 /* dlclose (self); */ 19630 } 19631 else 19632 puts (dlerror ()); 19633 19634 return status; 19635} 19636_LT_EOF 19637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19638 (eval $ac_link) 2>&5 19639 ac_status=$? 19640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19641 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19642 (./conftest; exit; ) >&5 2>/dev/null 19643 lt_status=$? 19644 case x$lt_status in 19645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19647 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19648 esac 19649 else : 19650 # compilation failed 19651 lt_cv_dlopen_self_static=no 19652 fi 19653fi 19654rm -fr conftest* 19655 19656 19657fi 19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19659$as_echo "$lt_cv_dlopen_self_static" >&6; } 19660 fi 19661 19662 CPPFLAGS=$save_CPPFLAGS 19663 LDFLAGS=$save_LDFLAGS 19664 LIBS=$save_LIBS 19665 ;; 19666 esac 19667 19668 case $lt_cv_dlopen_self in 19669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19670 *) enable_dlopen_self=unknown ;; 19671 esac 19672 19673 case $lt_cv_dlopen_self_static in 19674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19675 *) enable_dlopen_self_static=unknown ;; 19676 esac 19677fi 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695striplib= 19696old_striplib= 19697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19698$as_echo_n "checking whether stripping libraries is possible... " >&6; } 19699if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19700 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19701 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19703$as_echo "yes" >&6; } 19704else 19705# FIXME - insert some real tests, host_os isn't really good enough 19706 case $host_os in 19707 darwin*) 19708 if test -n "$STRIP"; then 19709 striplib="$STRIP -x" 19710 old_striplib="$STRIP -S" 19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19712$as_echo "yes" >&6; } 19713 else 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19715$as_echo "no" >&6; } 19716 fi 19717 ;; 19718 *) 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19720$as_echo "no" >&6; } 19721 ;; 19722 esac 19723fi 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 # Report what library types will actually be built 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19738$as_echo_n "checking if libtool supports shared libraries... " >&6; } 19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19740$as_echo "$can_build_shared" >&6; } 19741 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19743$as_echo_n "checking whether to build shared libraries... " >&6; } 19744 test no = "$can_build_shared" && enable_shared=no 19745 19746 # On AIX, shared libraries and static libraries use the same namespace, and 19747 # are all built from PIC. 19748 case $host_os in 19749 aix3*) 19750 test yes = "$enable_shared" && enable_static=no 19751 if test -n "$RANLIB"; then 19752 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19753 postinstall_cmds='$RANLIB $lib' 19754 fi 19755 ;; 19756 19757 aix[4-9]*) 19758 if test ia64 != "$host_cpu"; then 19759 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19760 yes,aix,yes) ;; # shared object as lib.so file only 19761 yes,svr4,*) ;; # shared object as lib.so archive member only 19762 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19763 esac 19764 fi 19765 ;; 19766 esac 19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19768$as_echo "$enable_shared" >&6; } 19769 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19771$as_echo_n "checking whether to build static libraries... " >&6; } 19772 # Make sure either enable_shared or enable_static is yes. 19773 test yes = "$enable_shared" || enable_static=yes 19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19775$as_echo "$enable_static" >&6; } 19776 19777 19778 19779 19780fi 19781ac_ext=c 19782ac_cpp='$CPP $CPPFLAGS' 19783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19785ac_compiler_gnu=$ac_cv_c_compiler_gnu 19786 19787CC=$lt_save_CC 19788 19789 if test -n "$CXX" && ( test no != "$CXX" && 19790 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 19791 (test g++ != "$CXX"))); then 19792 ac_ext=cpp 19793ac_cpp='$CXXCPP $CPPFLAGS' 19794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19798$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 19799if test -z "$CXXCPP"; then 19800 if ${ac_cv_prog_CXXCPP+:} false; then : 19801 $as_echo_n "(cached) " >&6 19802else 19803 # Double quotes because CXXCPP needs to be expanded 19804 for CXXCPP in "$CXX -E" "/lib/cpp" 19805 do 19806 ac_preproc_ok=false 19807for ac_cxx_preproc_warn_flag in '' yes 19808do 19809 # Use a header file that comes with gcc, so configuring glibc 19810 # with a fresh cross-compiler works. 19811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19812 # <limits.h> exists even on freestanding compilers. 19813 # On the NeXT, cc -E runs the code through the compiler's parser, 19814 # not just through cpp. "Syntax error" is here to catch this case. 19815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19816/* end confdefs.h. */ 19817#ifdef __STDC__ 19818# include <limits.h> 19819#else 19820# include <assert.h> 19821#endif 19822 Syntax error 19823_ACEOF 19824if ac_fn_cxx_try_cpp "$LINENO"; then : 19825 19826else 19827 # Broken: fails on valid input. 19828continue 19829fi 19830rm -f conftest.err conftest.i conftest.$ac_ext 19831 19832 # OK, works on sane cases. Now check whether nonexistent headers 19833 # can be detected and how. 19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19835/* end confdefs.h. */ 19836#include <ac_nonexistent.h> 19837_ACEOF 19838if ac_fn_cxx_try_cpp "$LINENO"; then : 19839 # Broken: success on invalid input. 19840continue 19841else 19842 # Passes both tests. 19843ac_preproc_ok=: 19844break 19845fi 19846rm -f conftest.err conftest.i conftest.$ac_ext 19847 19848done 19849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19850rm -f conftest.i conftest.err conftest.$ac_ext 19851if $ac_preproc_ok; then : 19852 break 19853fi 19854 19855 done 19856 ac_cv_prog_CXXCPP=$CXXCPP 19857 19858fi 19859 CXXCPP=$ac_cv_prog_CXXCPP 19860else 19861 ac_cv_prog_CXXCPP=$CXXCPP 19862fi 19863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19864$as_echo "$CXXCPP" >&6; } 19865ac_preproc_ok=false 19866for ac_cxx_preproc_warn_flag in '' yes 19867do 19868 # Use a header file that comes with gcc, so configuring glibc 19869 # with a fresh cross-compiler works. 19870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19871 # <limits.h> exists even on freestanding compilers. 19872 # On the NeXT, cc -E runs the code through the compiler's parser, 19873 # not just through cpp. "Syntax error" is here to catch this case. 19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19875/* end confdefs.h. */ 19876#ifdef __STDC__ 19877# include <limits.h> 19878#else 19879# include <assert.h> 19880#endif 19881 Syntax error 19882_ACEOF 19883if ac_fn_cxx_try_cpp "$LINENO"; then : 19884 19885else 19886 # Broken: fails on valid input. 19887continue 19888fi 19889rm -f conftest.err conftest.i conftest.$ac_ext 19890 19891 # OK, works on sane cases. Now check whether nonexistent headers 19892 # can be detected and how. 19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19894/* end confdefs.h. */ 19895#include <ac_nonexistent.h> 19896_ACEOF 19897if ac_fn_cxx_try_cpp "$LINENO"; then : 19898 # Broken: success on invalid input. 19899continue 19900else 19901 # Passes both tests. 19902ac_preproc_ok=: 19903break 19904fi 19905rm -f conftest.err conftest.i conftest.$ac_ext 19906 19907done 19908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19909rm -f conftest.i conftest.err conftest.$ac_ext 19910if $ac_preproc_ok; then : 19911 19912else 19913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19915as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19916See \`config.log' for more details" "$LINENO" 5; } 19917fi 19918 19919ac_ext=c 19920ac_cpp='$CPP $CPPFLAGS' 19921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19923ac_compiler_gnu=$ac_cv_c_compiler_gnu 19924 19925else 19926 _lt_caught_CXX_error=yes 19927fi 19928 19929ac_ext=cpp 19930ac_cpp='$CXXCPP $CPPFLAGS' 19931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19934 19935archive_cmds_need_lc_CXX=no 19936allow_undefined_flag_CXX= 19937always_export_symbols_CXX=no 19938archive_expsym_cmds_CXX= 19939compiler_needs_object_CXX=no 19940export_dynamic_flag_spec_CXX= 19941hardcode_direct_CXX=no 19942hardcode_direct_absolute_CXX=no 19943hardcode_libdir_flag_spec_CXX= 19944hardcode_libdir_separator_CXX= 19945hardcode_minus_L_CXX=no 19946hardcode_shlibpath_var_CXX=unsupported 19947hardcode_automatic_CXX=no 19948inherit_rpath_CXX=no 19949module_cmds_CXX= 19950module_expsym_cmds_CXX= 19951link_all_deplibs_CXX=unknown 19952old_archive_cmds_CXX=$old_archive_cmds 19953reload_flag_CXX=$reload_flag 19954reload_cmds_CXX=$reload_cmds 19955no_undefined_flag_CXX= 19956whole_archive_flag_spec_CXX= 19957enable_shared_with_static_runtimes_CXX=no 19958 19959# Source file extension for C++ test sources. 19960ac_ext=cpp 19961 19962# Object file extension for compiled C++ test sources. 19963objext=o 19964objext_CXX=$objext 19965 19966# No sense in running all these tests if we already determined that 19967# the CXX compiler isn't working. Some variables (like enable_shared) 19968# are currently assumed to apply to all compilers on this platform, 19969# and will be corrupted by setting them based on a non-working compiler. 19970if test yes != "$_lt_caught_CXX_error"; then 19971 # Code to be used in simple compile tests 19972 lt_simple_compile_test_code="int some_variable = 0;" 19973 19974 # Code to be used in simple link tests 19975 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19976 19977 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19978 19979 19980 19981 19982 19983 19984# If no C compiler was specified, use CC. 19985LTCC=${LTCC-"$CC"} 19986 19987# If no C compiler flags were specified, use CFLAGS. 19988LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19989 19990# Allow CC to be a program name with arguments. 19991compiler=$CC 19992 19993 19994 # save warnings/boilerplate of simple test code 19995 ac_outfile=conftest.$ac_objext 19996echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19997eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19998_lt_compiler_boilerplate=`cat conftest.err` 19999$RM conftest* 20000 20001 ac_outfile=conftest.$ac_objext 20002echo "$lt_simple_link_test_code" >conftest.$ac_ext 20003eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20004_lt_linker_boilerplate=`cat conftest.err` 20005$RM -r conftest* 20006 20007 20008 # Allow CC to be a program name with arguments. 20009 lt_save_CC=$CC 20010 lt_save_CFLAGS=$CFLAGS 20011 lt_save_LD=$LD 20012 lt_save_GCC=$GCC 20013 GCC=$GXX 20014 lt_save_with_gnu_ld=$with_gnu_ld 20015 lt_save_path_LD=$lt_cv_path_LD 20016 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20017 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20018 else 20019 $as_unset lt_cv_prog_gnu_ld 20020 fi 20021 if test -n "${lt_cv_path_LDCXX+set}"; then 20022 lt_cv_path_LD=$lt_cv_path_LDCXX 20023 else 20024 $as_unset lt_cv_path_LD 20025 fi 20026 test -z "${LDCXX+set}" || LD=$LDCXX 20027 CC=${CXX-"c++"} 20028 CFLAGS=$CXXFLAGS 20029 compiler=$CC 20030 compiler_CXX=$CC 20031 func_cc_basename $compiler 20032cc_basename=$func_cc_basename_result 20033 20034 20035 if test -n "$compiler"; then 20036 # We don't want -fno-exception when compiling C++ code, so set the 20037 # no_builtin_flag separately 20038 if test yes = "$GXX"; then 20039 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20040 else 20041 lt_prog_compiler_no_builtin_flag_CXX= 20042 fi 20043 20044 if test yes = "$GXX"; then 20045 # Set up default GNU C++ configuration 20046 20047 20048 20049# Check whether --with-gnu-ld was given. 20050if test "${with_gnu_ld+set}" = set; then : 20051 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 20052else 20053 with_gnu_ld=no 20054fi 20055 20056ac_prog=ld 20057if test yes = "$GCC"; then 20058 # Check if gcc -print-prog-name=ld gives a path. 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20060$as_echo_n "checking for ld used by $CC... " >&6; } 20061 case $host in 20062 *-*-mingw*) 20063 # gcc leaves a trailing carriage return, which upsets mingw 20064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20065 *) 20066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20067 esac 20068 case $ac_prog in 20069 # Accept absolute paths. 20070 [\\/]* | ?:[\\/]*) 20071 re_direlt='/[^/][^/]*/\.\./' 20072 # Canonicalize the pathname of ld 20073 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20074 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20075 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20076 done 20077 test -z "$LD" && LD=$ac_prog 20078 ;; 20079 "") 20080 # If it fails, then pretend we aren't using GCC. 20081 ac_prog=ld 20082 ;; 20083 *) 20084 # If it is relative, then search for the first ld in PATH. 20085 with_gnu_ld=unknown 20086 ;; 20087 esac 20088elif test yes = "$with_gnu_ld"; then 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20090$as_echo_n "checking for GNU ld... " >&6; } 20091else 20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20093$as_echo_n "checking for non-GNU ld... " >&6; } 20094fi 20095if ${lt_cv_path_LD+:} false; then : 20096 $as_echo_n "(cached) " >&6 20097else 20098 if test -z "$LD"; then 20099 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 20100 for ac_dir in $PATH; do 20101 IFS=$lt_save_ifs 20102 test -z "$ac_dir" && ac_dir=. 20103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20104 lt_cv_path_LD=$ac_dir/$ac_prog 20105 # Check to see if the program is GNU ld. I'd rather use --version, 20106 # but apparently some variants of GNU ld only accept -v. 20107 # Break only if it was the GNU/non-GNU ld that we prefer. 20108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20109 *GNU* | *'with BFD'*) 20110 test no != "$with_gnu_ld" && break 20111 ;; 20112 *) 20113 test yes != "$with_gnu_ld" && break 20114 ;; 20115 esac 20116 fi 20117 done 20118 IFS=$lt_save_ifs 20119else 20120 lt_cv_path_LD=$LD # Let the user override the test with a path. 20121fi 20122fi 20123 20124LD=$lt_cv_path_LD 20125if test -n "$LD"; then 20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20127$as_echo "$LD" >&6; } 20128else 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20130$as_echo "no" >&6; } 20131fi 20132test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20134$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20135if ${lt_cv_prog_gnu_ld+:} false; then : 20136 $as_echo_n "(cached) " >&6 20137else 20138 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20139case `$LD -v 2>&1 </dev/null` in 20140*GNU* | *'with BFD'*) 20141 lt_cv_prog_gnu_ld=yes 20142 ;; 20143*) 20144 lt_cv_prog_gnu_ld=no 20145 ;; 20146esac 20147fi 20148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20149$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20150with_gnu_ld=$lt_cv_prog_gnu_ld 20151 20152 20153 20154 20155 20156 20157 20158 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20159 # archiving commands below assume that GNU ld is being used. 20160 if test yes = "$with_gnu_ld"; then 20161 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20162 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' 20163 20164 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20165 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20166 20167 # If archive_cmds runs LD, not CC, wlarc should be empty 20168 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20169 # investigate it a little bit more. (MM) 20170 wlarc='$wl' 20171 20172 # ancient GNU ld didn't support --whole-archive et. al. 20173 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20174 $GREP 'no-whole-archive' > /dev/null; then 20175 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20176 else 20177 whole_archive_flag_spec_CXX= 20178 fi 20179 else 20180 with_gnu_ld=no 20181 wlarc= 20182 20183 # A generic and very simple default shared library creation 20184 # command for GNU C++ for the case where it uses the native 20185 # linker, instead of GNU ld. If possible, this setting should 20186 # overridden to take advantage of the native linker features on 20187 # the platform it is being used on. 20188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20189 fi 20190 20191 # Commands to make compiler produce verbose output that lists 20192 # what "hidden" libraries, object files and flags are used when 20193 # linking a shared library. 20194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20195 20196 else 20197 GXX=no 20198 with_gnu_ld=no 20199 wlarc= 20200 fi 20201 20202 # PORTME: fill in a description of your system's C++ link characteristics 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20204$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20205 ld_shlibs_CXX=yes 20206 case $host_os in 20207 aix3*) 20208 # FIXME: insert proper C++ library support 20209 ld_shlibs_CXX=no 20210 ;; 20211 aix[4-9]*) 20212 if test ia64 = "$host_cpu"; then 20213 # On IA64, the linker does run time linking by default, so we don't 20214 # have to do anything special. 20215 aix_use_runtimelinking=no 20216 exp_sym_flag='-Bexport' 20217 no_entry_flag= 20218 else 20219 aix_use_runtimelinking=no 20220 20221 # Test if we are trying to use run time linking or normal 20222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20223 # have runtime linking enabled, and use it for executables. 20224 # For shared libraries, we enable/disable runtime linking 20225 # depending on the kind of the shared library created - 20226 # when "with_aix_soname,aix_use_runtimelinking" is: 20227 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20228 # "aix,yes" lib.so shared, rtl:yes, for executables 20229 # lib.a static archive 20230 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20231 # lib.a(lib.so.V) shared, rtl:no, for executables 20232 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20233 # lib.a(lib.so.V) shared, rtl:no 20234 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20235 # lib.a static archive 20236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20237 for ld_flag in $LDFLAGS; do 20238 case $ld_flag in 20239 *-brtl*) 20240 aix_use_runtimelinking=yes 20241 break 20242 ;; 20243 esac 20244 done 20245 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20246 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20247 # so we don't have lib.a shared libs to link our executables. 20248 # We have to force runtime linking in this case. 20249 aix_use_runtimelinking=yes 20250 LDFLAGS="$LDFLAGS -Wl,-brtl" 20251 fi 20252 ;; 20253 esac 20254 20255 exp_sym_flag='-bexport' 20256 no_entry_flag='-bnoentry' 20257 fi 20258 20259 # When large executables or shared objects are built, AIX ld can 20260 # have problems creating the table of contents. If linking a library 20261 # or program results in "error TOC overflow" add -mminimal-toc to 20262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20264 20265 archive_cmds_CXX='' 20266 hardcode_direct_CXX=yes 20267 hardcode_direct_absolute_CXX=yes 20268 hardcode_libdir_separator_CXX=':' 20269 link_all_deplibs_CXX=yes 20270 file_list_spec_CXX='$wl-f,' 20271 case $with_aix_soname,$aix_use_runtimelinking in 20272 aix,*) ;; # no import file 20273 svr4,* | *,yes) # use import file 20274 # The Import File defines what to hardcode. 20275 hardcode_direct_CXX=no 20276 hardcode_direct_absolute_CXX=no 20277 ;; 20278 esac 20279 20280 if test yes = "$GXX"; then 20281 case $host_os in aix4.[012]|aix4.[012].*) 20282 # We only want to do this on AIX 4.2 and lower, the check 20283 # below for broken collect2 doesn't work under 4.3+ 20284 collect2name=`$CC -print-prog-name=collect2` 20285 if test -f "$collect2name" && 20286 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20287 then 20288 # We have reworked collect2 20289 : 20290 else 20291 # We have old collect2 20292 hardcode_direct_CXX=unsupported 20293 # It fails to find uninstalled libraries when the uninstalled 20294 # path is not listed in the libpath. Setting hardcode_minus_L 20295 # to unsupported forces relinking 20296 hardcode_minus_L_CXX=yes 20297 hardcode_libdir_flag_spec_CXX='-L$libdir' 20298 hardcode_libdir_separator_CXX= 20299 fi 20300 esac 20301 shared_flag='-shared' 20302 if test yes = "$aix_use_runtimelinking"; then 20303 shared_flag=$shared_flag' $wl-G' 20304 fi 20305 # Need to ensure runtime linking is disabled for the traditional 20306 # shared library, or the linker may eventually find shared libraries 20307 # /with/ Import File - we do not want to mix them. 20308 shared_flag_aix='-shared' 20309 shared_flag_svr4='-shared $wl-G' 20310 else 20311 # not using gcc 20312 if test ia64 = "$host_cpu"; then 20313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20314 # chokes on -Wl,-G. The following line is correct: 20315 shared_flag='-G' 20316 else 20317 if test yes = "$aix_use_runtimelinking"; then 20318 shared_flag='$wl-G' 20319 else 20320 shared_flag='$wl-bM:SRE' 20321 fi 20322 shared_flag_aix='$wl-bM:SRE' 20323 shared_flag_svr4='$wl-G' 20324 fi 20325 fi 20326 20327 export_dynamic_flag_spec_CXX='$wl-bexpall' 20328 # It seems that -bexpall does not export symbols beginning with 20329 # underscore (_), so it is better to generate a list of symbols to 20330 # export. 20331 always_export_symbols_CXX=yes 20332 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20333 # Warning - without using the other runtime loading flags (-brtl), 20334 # -berok will link without error, but may produce a broken library. 20335 # The "-G" linker flag allows undefined symbols. 20336 no_undefined_flag_CXX='-bernotok' 20337 # Determine the default libpath from the value encoded in an empty 20338 # executable. 20339 if test set = "${lt_cv_aix_libpath+set}"; then 20340 aix_libpath=$lt_cv_aix_libpath 20341else 20342 if ${lt_cv_aix_libpath__CXX+:} false; then : 20343 $as_echo_n "(cached) " >&6 20344else 20345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20346/* end confdefs.h. */ 20347 20348int 20349main () 20350{ 20351 20352 ; 20353 return 0; 20354} 20355_ACEOF 20356if ac_fn_cxx_try_link "$LINENO"; then : 20357 20358 lt_aix_libpath_sed=' 20359 /Import File Strings/,/^$/ { 20360 /^0/ { 20361 s/^0 *\([^ ]*\) *$/\1/ 20362 p 20363 } 20364 }' 20365 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20366 # Check for a 64-bit object if we didn't find anything. 20367 if test -z "$lt_cv_aix_libpath__CXX"; then 20368 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20369 fi 20370fi 20371rm -f core conftest.err conftest.$ac_objext \ 20372 conftest$ac_exeext conftest.$ac_ext 20373 if test -z "$lt_cv_aix_libpath__CXX"; then 20374 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20375 fi 20376 20377fi 20378 20379 aix_libpath=$lt_cv_aix_libpath__CXX 20380fi 20381 20382 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20383 20384 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20385 else 20386 if test ia64 = "$host_cpu"; then 20387 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 20388 allow_undefined_flag_CXX="-z nodefs" 20389 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" 20390 else 20391 # Determine the default libpath from the value encoded in an 20392 # empty executable. 20393 if test set = "${lt_cv_aix_libpath+set}"; then 20394 aix_libpath=$lt_cv_aix_libpath 20395else 20396 if ${lt_cv_aix_libpath__CXX+:} false; then : 20397 $as_echo_n "(cached) " >&6 20398else 20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20400/* end confdefs.h. */ 20401 20402int 20403main () 20404{ 20405 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410if ac_fn_cxx_try_link "$LINENO"; then : 20411 20412 lt_aix_libpath_sed=' 20413 /Import File Strings/,/^$/ { 20414 /^0/ { 20415 s/^0 *\([^ ]*\) *$/\1/ 20416 p 20417 } 20418 }' 20419 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20420 # Check for a 64-bit object if we didn't find anything. 20421 if test -z "$lt_cv_aix_libpath__CXX"; then 20422 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20423 fi 20424fi 20425rm -f core conftest.err conftest.$ac_objext \ 20426 conftest$ac_exeext conftest.$ac_ext 20427 if test -z "$lt_cv_aix_libpath__CXX"; then 20428 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20429 fi 20430 20431fi 20432 20433 aix_libpath=$lt_cv_aix_libpath__CXX 20434fi 20435 20436 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20437 # Warning - without using the other run time loading flags, 20438 # -berok will link without error, but may produce a broken library. 20439 no_undefined_flag_CXX=' $wl-bernotok' 20440 allow_undefined_flag_CXX=' $wl-berok' 20441 if test yes = "$with_gnu_ld"; then 20442 # We only use this code for GNU lds that support --whole-archive. 20443 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20444 else 20445 # Exported symbols can be pulled into shared objects from archives 20446 whole_archive_flag_spec_CXX='$convenience' 20447 fi 20448 archive_cmds_need_lc_CXX=yes 20449 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20450 # -brtl affects multiple linker settings, -berok does not and is overridden later 20451 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20452 if test svr4 != "$with_aix_soname"; then 20453 # This is similar to how AIX traditionally builds its shared 20454 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 20455 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 20456 fi 20457 if test aix != "$with_aix_soname"; then 20458 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 20459 else 20460 # used by -dlpreopen to get the symbols 20461 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20462 fi 20463 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 20464 fi 20465 fi 20466 ;; 20467 20468 beos*) 20469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20470 allow_undefined_flag_CXX=unsupported 20471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20472 # support --undefined. This deserves some investigation. FIXME 20473 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20474 else 20475 ld_shlibs_CXX=no 20476 fi 20477 ;; 20478 20479 chorus*) 20480 case $cc_basename in 20481 *) 20482 # FIXME: insert proper C++ library support 20483 ld_shlibs_CXX=no 20484 ;; 20485 esac 20486 ;; 20487 20488 cygwin* | mingw* | pw32* | cegcc*) 20489 case $GXX,$cc_basename in 20490 ,cl* | no,cl*) 20491 # Native MSVC 20492 # hardcode_libdir_flag_spec is actually meaningless, as there is 20493 # no search path for DLLs. 20494 hardcode_libdir_flag_spec_CXX=' ' 20495 allow_undefined_flag_CXX=unsupported 20496 always_export_symbols_CXX=yes 20497 file_list_spec_CXX='@' 20498 # Tell ltmain to make .lib files, not .a files. 20499 libext=lib 20500 # Tell ltmain to make .dll files, not .so files. 20501 shrext_cmds=.dll 20502 # FIXME: Setting linknames here is a bad hack. 20503 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20504 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20505 cp "$export_symbols" "$output_objdir/$soname.def"; 20506 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20507 else 20508 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20509 fi~ 20510 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20511 linknames=' 20512 # The linker will not automatically build a static lib if we build a DLL. 20513 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 20514 enable_shared_with_static_runtimes_CXX=yes 20515 # Don't use ranlib 20516 old_postinstall_cmds_CXX='chmod 644 $oldlib' 20517 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 20518 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20519 case $lt_outputfile in 20520 *.exe|*.EXE) ;; 20521 *) 20522 lt_outputfile=$lt_outputfile.exe 20523 lt_tool_outputfile=$lt_tool_outputfile.exe 20524 ;; 20525 esac~ 20526 func_to_tool_file "$lt_outputfile"~ 20527 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20528 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20529 $RM "$lt_outputfile.manifest"; 20530 fi' 20531 ;; 20532 *) 20533 # g++ 20534 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20535 # as there is no search path for DLLs. 20536 hardcode_libdir_flag_spec_CXX='-L$libdir' 20537 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 20538 allow_undefined_flag_CXX=unsupported 20539 always_export_symbols_CXX=no 20540 enable_shared_with_static_runtimes_CXX=yes 20541 20542 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20543 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' 20544 # If the export-symbols file already is a .def file, use it as 20545 # is; otherwise, prepend EXPORTS... 20546 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20547 cp $export_symbols $output_objdir/$soname.def; 20548 else 20549 echo EXPORTS > $output_objdir/$soname.def; 20550 cat $export_symbols >> $output_objdir/$soname.def; 20551 fi~ 20552 $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' 20553 else 20554 ld_shlibs_CXX=no 20555 fi 20556 ;; 20557 esac 20558 ;; 20559 darwin* | rhapsody*) 20560 20561 20562 archive_cmds_need_lc_CXX=no 20563 hardcode_direct_CXX=no 20564 hardcode_automatic_CXX=yes 20565 hardcode_shlibpath_var_CXX=unsupported 20566 if test yes = "$lt_cv_ld_force_load"; then 20567 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\"`' 20568 20569 else 20570 whole_archive_flag_spec_CXX='' 20571 fi 20572 link_all_deplibs_CXX=yes 20573 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 20574 case $cc_basename in 20575 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20576 *) _lt_dar_can_shared=$GCC ;; 20577 esac 20578 if test yes = "$_lt_dar_can_shared"; then 20579 output_verbose_link_cmd=func_echo_all 20580 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" 20581 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20582 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" 20583 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" 20584 if test yes != "$lt_cv_apple_cc_single_mod"; then 20585 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" 20586 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" 20587 fi 20588 20589 else 20590 ld_shlibs_CXX=no 20591 fi 20592 20593 ;; 20594 20595 os2*) 20596 hardcode_libdir_flag_spec_CXX='-L$libdir' 20597 hardcode_minus_L_CXX=yes 20598 allow_undefined_flag_CXX=unsupported 20599 shrext_cmds=.dll 20600 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20601 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20602 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20603 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20604 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20606 emximp -o $lib $output_objdir/$libname.def' 20607 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20610 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20611 prefix_cmds="$SED"~ 20612 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20613 prefix_cmds="$prefix_cmds -e 1d"; 20614 fi~ 20615 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20616 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20617 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20618 emximp -o $lib $output_objdir/$libname.def' 20619 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20620 enable_shared_with_static_runtimes_CXX=yes 20621 ;; 20622 20623 dgux*) 20624 case $cc_basename in 20625 ec++*) 20626 # FIXME: insert proper C++ library support 20627 ld_shlibs_CXX=no 20628 ;; 20629 ghcx*) 20630 # Green Hills C++ Compiler 20631 # FIXME: insert proper C++ library support 20632 ld_shlibs_CXX=no 20633 ;; 20634 *) 20635 # FIXME: insert proper C++ library support 20636 ld_shlibs_CXX=no 20637 ;; 20638 esac 20639 ;; 20640 20641 freebsd2.*) 20642 # C++ shared libraries reported to be fairly broken before 20643 # switch to ELF 20644 ld_shlibs_CXX=no 20645 ;; 20646 20647 freebsd-elf*) 20648 archive_cmds_need_lc_CXX=no 20649 ;; 20650 20651 freebsd* | dragonfly*) 20652 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20653 # conventions 20654 ld_shlibs_CXX=yes 20655 ;; 20656 20657 haiku*) 20658 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20659 link_all_deplibs_CXX=yes 20660 ;; 20661 20662 hpux9*) 20663 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20664 hardcode_libdir_separator_CXX=: 20665 export_dynamic_flag_spec_CXX='$wl-E' 20666 hardcode_direct_CXX=yes 20667 hardcode_minus_L_CXX=yes # Not in the search PATH, 20668 # but as the default 20669 # location of the library. 20670 20671 case $cc_basename in 20672 CC*) 20673 # FIXME: insert proper C++ library support 20674 ld_shlibs_CXX=no 20675 ;; 20676 aCC*) 20677 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20678 # Commands to make compiler produce verbose output that lists 20679 # what "hidden" libraries, object files and flags are used when 20680 # linking a shared library. 20681 # 20682 # There doesn't appear to be a way to prevent this compiler from 20683 # explicitly linking system object files so we need to strip them 20684 # from the output so that they don't get included in the library 20685 # dependencies. 20686 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"' 20687 ;; 20688 *) 20689 if test yes = "$GXX"; then 20690 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20691 else 20692 # FIXME: insert proper C++ library support 20693 ld_shlibs_CXX=no 20694 fi 20695 ;; 20696 esac 20697 ;; 20698 20699 hpux10*|hpux11*) 20700 if test no = "$with_gnu_ld"; then 20701 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20702 hardcode_libdir_separator_CXX=: 20703 20704 case $host_cpu in 20705 hppa*64*|ia64*) 20706 ;; 20707 *) 20708 export_dynamic_flag_spec_CXX='$wl-E' 20709 ;; 20710 esac 20711 fi 20712 case $host_cpu in 20713 hppa*64*|ia64*) 20714 hardcode_direct_CXX=no 20715 hardcode_shlibpath_var_CXX=no 20716 ;; 20717 *) 20718 hardcode_direct_CXX=yes 20719 hardcode_direct_absolute_CXX=yes 20720 hardcode_minus_L_CXX=yes # Not in the search PATH, 20721 # but as the default 20722 # location of the library. 20723 ;; 20724 esac 20725 20726 case $cc_basename in 20727 CC*) 20728 # FIXME: insert proper C++ library support 20729 ld_shlibs_CXX=no 20730 ;; 20731 aCC*) 20732 case $host_cpu in 20733 hppa*64*) 20734 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20735 ;; 20736 ia64*) 20737 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20738 ;; 20739 *) 20740 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20741 ;; 20742 esac 20743 # Commands to make compiler produce verbose output that lists 20744 # what "hidden" libraries, object files and flags are used when 20745 # linking a shared library. 20746 # 20747 # There doesn't appear to be a way to prevent this compiler from 20748 # explicitly linking system object files so we need to strip them 20749 # from the output so that they don't get included in the library 20750 # dependencies. 20751 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"' 20752 ;; 20753 *) 20754 if test yes = "$GXX"; then 20755 if test no = "$with_gnu_ld"; then 20756 case $host_cpu in 20757 hppa*64*) 20758 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20759 ;; 20760 ia64*) 20761 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20762 ;; 20763 *) 20764 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' 20765 ;; 20766 esac 20767 fi 20768 else 20769 # FIXME: insert proper C++ library support 20770 ld_shlibs_CXX=no 20771 fi 20772 ;; 20773 esac 20774 ;; 20775 20776 interix[3-9]*) 20777 hardcode_direct_CXX=no 20778 hardcode_shlibpath_var_CXX=no 20779 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20780 export_dynamic_flag_spec_CXX='$wl-E' 20781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20782 # Instead, shared libraries are loaded at an image base (0x10000000 by 20783 # default) and relocated if they conflict, which is a slow very memory 20784 # consuming and fragmenting process. To avoid this, we pick a random, 20785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20786 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20787 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' 20788 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' 20789 ;; 20790 irix5* | irix6*) 20791 case $cc_basename in 20792 CC*) 20793 # SGI C++ 20794 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' 20795 20796 # Archives containing C++ object files must be created using 20797 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20798 # necessary to make sure instantiated templates are included 20799 # in the archive. 20800 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20801 ;; 20802 *) 20803 if test yes = "$GXX"; then 20804 if test no = "$with_gnu_ld"; then 20805 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' 20806 else 20807 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' 20808 fi 20809 fi 20810 link_all_deplibs_CXX=yes 20811 ;; 20812 esac 20813 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20814 hardcode_libdir_separator_CXX=: 20815 inherit_rpath_CXX=yes 20816 ;; 20817 20818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20819 case $cc_basename in 20820 KCC*) 20821 # Kuck and Associates, Inc. (KAI) C++ Compiler 20822 20823 # KCC will only create a shared library if the output file 20824 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20825 # to its proper name (with version) after linking. 20826 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' 20827 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' 20828 # Commands to make compiler produce verbose output that lists 20829 # what "hidden" libraries, object files and flags are used when 20830 # linking a shared library. 20831 # 20832 # There doesn't appear to be a way to prevent this compiler from 20833 # explicitly linking system object files so we need to strip them 20834 # from the output so that they don't get included in the library 20835 # dependencies. 20836 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"' 20837 20838 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20839 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20840 20841 # Archives containing C++ object files must be created using 20842 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20843 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20844 ;; 20845 icpc* | ecpc* ) 20846 # Intel C++ 20847 with_gnu_ld=yes 20848 # version 8.0 and above of icpc choke on multiply defined symbols 20849 # if we add $predep_objects and $postdep_objects, however 7.1 and 20850 # earlier do not add the objects themselves. 20851 case `$CC -V 2>&1` in 20852 *"Version 7."*) 20853 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20854 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' 20855 ;; 20856 *) # Version 8.0 or newer 20857 tmp_idyn= 20858 case $host_cpu in 20859 ia64*) tmp_idyn=' -i_dynamic';; 20860 esac 20861 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20862 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' 20863 ;; 20864 esac 20865 archive_cmds_need_lc_CXX=no 20866 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20867 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20868 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20869 ;; 20870 pgCC* | pgcpp*) 20871 # Portland Group C++ compiler 20872 case `$CC -V` in 20873 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20874 prelink_cmds_CXX='tpldir=Template.dir~ 20875 rm -rf $tpldir~ 20876 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20877 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20878 old_archive_cmds_CXX='tpldir=Template.dir~ 20879 rm -rf $tpldir~ 20880 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20881 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20882 $RANLIB $oldlib' 20883 archive_cmds_CXX='tpldir=Template.dir~ 20884 rm -rf $tpldir~ 20885 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20886 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20887 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20888 rm -rf $tpldir~ 20889 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20890 $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' 20891 ;; 20892 *) # Version 6 and above use weak symbols 20893 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20894 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' 20895 ;; 20896 esac 20897 20898 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 20899 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20900 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' 20901 ;; 20902 cxx*) 20903 # Compaq C++ 20904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20905 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' 20906 20907 runpath_var=LD_RUN_PATH 20908 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20909 hardcode_libdir_separator_CXX=: 20910 20911 # Commands to make compiler produce verbose output that lists 20912 # what "hidden" libraries, object files and flags are used when 20913 # linking a shared library. 20914 # 20915 # There doesn't appear to be a way to prevent this compiler from 20916 # explicitly linking system object files so we need to strip them 20917 # from the output so that they don't get included in the library 20918 # dependencies. 20919 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' 20920 ;; 20921 xl* | mpixl* | bgxl*) 20922 # IBM XL 8.0 on PPC, with GNU ld 20923 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20924 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20925 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20926 if test yes = "$supports_anon_versioning"; then 20927 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20929 echo "local: *; };" >> $output_objdir/$libname.ver~ 20930 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 20931 fi 20932 ;; 20933 *) 20934 case `$CC -V 2>&1 | sed 5q` in 20935 *Sun\ C*) 20936 # Sun C++ 5.9 20937 no_undefined_flag_CXX=' -zdefs' 20938 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20939 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' 20940 hardcode_libdir_flag_spec_CXX='-R$libdir' 20941 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' 20942 compiler_needs_object_CXX=yes 20943 20944 # Not sure whether something based on 20945 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20946 # would be better. 20947 output_verbose_link_cmd='func_echo_all' 20948 20949 # Archives containing C++ object files must be created using 20950 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20951 # necessary to make sure instantiated templates are included 20952 # in the archive. 20953 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20954 ;; 20955 esac 20956 ;; 20957 esac 20958 ;; 20959 20960 lynxos*) 20961 # FIXME: insert proper C++ library support 20962 ld_shlibs_CXX=no 20963 ;; 20964 20965 m88k*) 20966 # FIXME: insert proper C++ library support 20967 ld_shlibs_CXX=no 20968 ;; 20969 20970 mvs*) 20971 case $cc_basename in 20972 cxx*) 20973 # FIXME: insert proper C++ library support 20974 ld_shlibs_CXX=no 20975 ;; 20976 *) 20977 # FIXME: insert proper C++ library support 20978 ld_shlibs_CXX=no 20979 ;; 20980 esac 20981 ;; 20982 20983 netbsd*) 20984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20985 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20986 wlarc= 20987 hardcode_libdir_flag_spec_CXX='-R$libdir' 20988 hardcode_direct_CXX=yes 20989 hardcode_shlibpath_var_CXX=no 20990 fi 20991 # Workaround some broken pre-1.5 toolchains 20992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20993 ;; 20994 20995 *nto* | *qnx*) 20996 ld_shlibs_CXX=yes 20997 ;; 20998 20999 openbsd* | bitrig*) 21000 if test -f /usr/libexec/ld.so; then 21001 hardcode_direct_CXX=yes 21002 hardcode_shlibpath_var_CXX=no 21003 hardcode_direct_absolute_CXX=yes 21004 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21005 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 21007 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 21008 export_dynamic_flag_spec_CXX='$wl-E' 21009 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 21010 fi 21011 output_verbose_link_cmd=func_echo_all 21012 else 21013 ld_shlibs_CXX=no 21014 fi 21015 ;; 21016 21017 osf3* | osf4* | osf5*) 21018 case $cc_basename in 21019 KCC*) 21020 # Kuck and Associates, Inc. (KAI) C++ Compiler 21021 21022 # KCC will only create a shared library if the output file 21023 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21024 # to its proper name (with version) after linking. 21025 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' 21026 21027 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21028 hardcode_libdir_separator_CXX=: 21029 21030 # Archives containing C++ object files must be created using 21031 # the KAI C++ compiler. 21032 case $host in 21033 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 21034 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 21035 esac 21036 ;; 21037 RCC*) 21038 # Rational C++ 2.4.1 21039 # FIXME: insert proper C++ library support 21040 ld_shlibs_CXX=no 21041 ;; 21042 cxx*) 21043 case $host in 21044 osf3*) 21045 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21046 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' 21047 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21048 ;; 21049 *) 21050 allow_undefined_flag_CXX=' -expect_unresolved \*' 21051 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' 21052 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21053 echo "-hidden">> $lib.exp~ 21054 $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~ 21055 $RM $lib.exp' 21056 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21057 ;; 21058 esac 21059 21060 hardcode_libdir_separator_CXX=: 21061 21062 # Commands to make compiler produce verbose output that lists 21063 # what "hidden" libraries, object files and flags are used when 21064 # linking a shared library. 21065 # 21066 # There doesn't appear to be a way to prevent this compiler from 21067 # explicitly linking system object files so we need to strip them 21068 # from the output so that they don't get included in the library 21069 # dependencies. 21070 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"' 21071 ;; 21072 *) 21073 if test yes,no = "$GXX,$with_gnu_ld"; then 21074 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21075 case $host in 21076 osf3*) 21077 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' 21078 ;; 21079 *) 21080 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' 21081 ;; 21082 esac 21083 21084 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21085 hardcode_libdir_separator_CXX=: 21086 21087 # Commands to make compiler produce verbose output that lists 21088 # what "hidden" libraries, object files and flags are used when 21089 # linking a shared library. 21090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21091 21092 else 21093 # FIXME: insert proper C++ library support 21094 ld_shlibs_CXX=no 21095 fi 21096 ;; 21097 esac 21098 ;; 21099 21100 psos*) 21101 # FIXME: insert proper C++ library support 21102 ld_shlibs_CXX=no 21103 ;; 21104 21105 sunos4*) 21106 case $cc_basename in 21107 CC*) 21108 # Sun C++ 4.x 21109 # FIXME: insert proper C++ library support 21110 ld_shlibs_CXX=no 21111 ;; 21112 lcc*) 21113 # Lucid 21114 # FIXME: insert proper C++ library support 21115 ld_shlibs_CXX=no 21116 ;; 21117 *) 21118 # FIXME: insert proper C++ library support 21119 ld_shlibs_CXX=no 21120 ;; 21121 esac 21122 ;; 21123 21124 solaris*) 21125 case $cc_basename in 21126 CC* | sunCC*) 21127 # Sun C++ 4.2, 5.x and Centerline C++ 21128 archive_cmds_need_lc_CXX=yes 21129 no_undefined_flag_CXX=' -zdefs' 21130 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21131 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21132 $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' 21133 21134 hardcode_libdir_flag_spec_CXX='-R$libdir' 21135 hardcode_shlibpath_var_CXX=no 21136 case $host_os in 21137 solaris2.[0-5] | solaris2.[0-5].*) ;; 21138 *) 21139 # The compiler driver will combine and reorder linker options, 21140 # but understands '-z linker_flag'. 21141 # Supported since Solaris 2.6 (maybe 2.5.1?) 21142 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21143 ;; 21144 esac 21145 link_all_deplibs_CXX=yes 21146 21147 output_verbose_link_cmd='func_echo_all' 21148 21149 # Archives containing C++ object files must be created using 21150 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21151 # necessary to make sure instantiated templates are included 21152 # in the archive. 21153 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21154 ;; 21155 gcx*) 21156 # Green Hills C++ Compiler 21157 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21158 21159 # The C++ compiler must be used to create the archive. 21160 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21161 ;; 21162 *) 21163 # GNU C++ compiler with Solaris linker 21164 if test yes,no = "$GXX,$with_gnu_ld"; then 21165 no_undefined_flag_CXX=' $wl-z ${wl}defs' 21166 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21167 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21168 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21169 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21170 21171 # Commands to make compiler produce verbose output that lists 21172 # what "hidden" libraries, object files and flags are used when 21173 # linking a shared library. 21174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21175 else 21176 # g++ 2.7 appears to require '-G' NOT '-shared' on this 21177 # platform. 21178 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21179 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21180 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21181 21182 # Commands to make compiler produce verbose output that lists 21183 # what "hidden" libraries, object files and flags are used when 21184 # linking a shared library. 21185 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21186 fi 21187 21188 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 21189 case $host_os in 21190 solaris2.[0-5] | solaris2.[0-5].*) ;; 21191 *) 21192 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21193 ;; 21194 esac 21195 fi 21196 ;; 21197 esac 21198 ;; 21199 21200 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21201 no_undefined_flag_CXX='$wl-z,text' 21202 archive_cmds_need_lc_CXX=no 21203 hardcode_shlibpath_var_CXX=no 21204 runpath_var='LD_RUN_PATH' 21205 21206 case $cc_basename in 21207 CC*) 21208 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21209 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21210 ;; 21211 *) 21212 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21213 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21214 ;; 21215 esac 21216 ;; 21217 21218 sysv5* | sco3.2v5* | sco5v6*) 21219 # Note: We CANNOT use -z defs as we might desire, because we do not 21220 # link with -lc, and that would cause any symbols used from libc to 21221 # always be unresolved, which means just about no library would 21222 # ever link correctly. If we're not using GNU ld we use -z text 21223 # though, which does catch some bad symbols but isn't as heavy-handed 21224 # as -z defs. 21225 no_undefined_flag_CXX='$wl-z,text' 21226 allow_undefined_flag_CXX='$wl-z,nodefs' 21227 archive_cmds_need_lc_CXX=no 21228 hardcode_shlibpath_var_CXX=no 21229 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 21230 hardcode_libdir_separator_CXX=':' 21231 link_all_deplibs_CXX=yes 21232 export_dynamic_flag_spec_CXX='$wl-Bexport' 21233 runpath_var='LD_RUN_PATH' 21234 21235 case $cc_basename in 21236 CC*) 21237 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21238 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21239 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21240 '"$old_archive_cmds_CXX" 21241 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21242 '"$reload_cmds_CXX" 21243 ;; 21244 *) 21245 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21246 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21247 ;; 21248 esac 21249 ;; 21250 21251 tandem*) 21252 case $cc_basename in 21253 NCC*) 21254 # NonStop-UX NCC 3.20 21255 # FIXME: insert proper C++ library support 21256 ld_shlibs_CXX=no 21257 ;; 21258 *) 21259 # FIXME: insert proper C++ library support 21260 ld_shlibs_CXX=no 21261 ;; 21262 esac 21263 ;; 21264 21265 vxworks*) 21266 # FIXME: insert proper C++ library support 21267 ld_shlibs_CXX=no 21268 ;; 21269 21270 *) 21271 # FIXME: insert proper C++ library support 21272 ld_shlibs_CXX=no 21273 ;; 21274 esac 21275 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21277$as_echo "$ld_shlibs_CXX" >&6; } 21278 test no = "$ld_shlibs_CXX" && can_build_shared=no 21279 21280 GCC_CXX=$GXX 21281 LD_CXX=$LD 21282 21283 ## CAVEAT EMPTOR: 21284 ## There is no encapsulation within the following macros, do not change 21285 ## the running order or otherwise move them around unless you know exactly 21286 ## what you are doing... 21287 # Dependencies to place before and after the object being linked: 21288predep_objects_CXX= 21289postdep_objects_CXX= 21290predeps_CXX= 21291postdeps_CXX= 21292compiler_lib_search_path_CXX= 21293 21294cat > conftest.$ac_ext <<_LT_EOF 21295class Foo 21296{ 21297public: 21298 Foo (void) { a = 0; } 21299private: 21300 int a; 21301}; 21302_LT_EOF 21303 21304 21305_lt_libdeps_save_CFLAGS=$CFLAGS 21306case "$CC $CFLAGS " in #( 21307*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21308*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21309*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21310esac 21311 21312if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21313 (eval $ac_compile) 2>&5 21314 ac_status=$? 21315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21316 test $ac_status = 0; }; then 21317 # Parse the compiler output and extract the necessary 21318 # objects, libraries and library flags. 21319 21320 # Sentinel used to keep track of whether or not we are before 21321 # the conftest object file. 21322 pre_test_object_deps_done=no 21323 21324 for p in `eval "$output_verbose_link_cmd"`; do 21325 case $prev$p in 21326 21327 -L* | -R* | -l*) 21328 # Some compilers place space between "-{L,R}" and the path. 21329 # Remove the space. 21330 if test x-L = "$p" || 21331 test x-R = "$p"; then 21332 prev=$p 21333 continue 21334 fi 21335 21336 # Expand the sysroot to ease extracting the directories later. 21337 if test -z "$prev"; then 21338 case $p in 21339 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 21340 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 21341 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 21342 esac 21343 fi 21344 case $p in 21345 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 21346 esac 21347 if test no = "$pre_test_object_deps_done"; then 21348 case $prev in 21349 -L | -R) 21350 # Internal compiler library paths should come after those 21351 # provided the user. The postdeps already come after the 21352 # user supplied libs so there is no need to process them. 21353 if test -z "$compiler_lib_search_path_CXX"; then 21354 compiler_lib_search_path_CXX=$prev$p 21355 else 21356 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 21357 fi 21358 ;; 21359 # The "-l" case would never come before the object being 21360 # linked, so don't bother handling this case. 21361 esac 21362 else 21363 if test -z "$postdeps_CXX"; then 21364 postdeps_CXX=$prev$p 21365 else 21366 postdeps_CXX="${postdeps_CXX} $prev$p" 21367 fi 21368 fi 21369 prev= 21370 ;; 21371 21372 *.lto.$objext) ;; # Ignore GCC LTO objects 21373 *.$objext) 21374 # This assumes that the test object file only shows up 21375 # once in the compiler output. 21376 if test "$p" = "conftest.$objext"; then 21377 pre_test_object_deps_done=yes 21378 continue 21379 fi 21380 21381 if test no = "$pre_test_object_deps_done"; then 21382 if test -z "$predep_objects_CXX"; then 21383 predep_objects_CXX=$p 21384 else 21385 predep_objects_CXX="$predep_objects_CXX $p" 21386 fi 21387 else 21388 if test -z "$postdep_objects_CXX"; then 21389 postdep_objects_CXX=$p 21390 else 21391 postdep_objects_CXX="$postdep_objects_CXX $p" 21392 fi 21393 fi 21394 ;; 21395 21396 *) ;; # Ignore the rest. 21397 21398 esac 21399 done 21400 21401 # Clean up. 21402 rm -f a.out a.exe 21403else 21404 echo "libtool.m4: error: problem compiling CXX test program" 21405fi 21406 21407$RM -f confest.$objext 21408CFLAGS=$_lt_libdeps_save_CFLAGS 21409 21410# PORTME: override above test on systems where it is broken 21411case $host_os in 21412interix[3-9]*) 21413 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21414 # hack all around it, let's just trust "g++" to DTRT. 21415 predep_objects_CXX= 21416 postdep_objects_CXX= 21417 postdeps_CXX= 21418 ;; 21419esac 21420 21421 21422case " $postdeps_CXX " in 21423*" -lc "*) archive_cmds_need_lc_CXX=no ;; 21424esac 21425 compiler_lib_search_dirs_CXX= 21426if test -n "${compiler_lib_search_path_CXX}"; then 21427 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 21428fi 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 lt_prog_compiler_wl_CXX= 21461lt_prog_compiler_pic_CXX= 21462lt_prog_compiler_static_CXX= 21463 21464 21465 # C++ specific cases for pic, static, wl, etc. 21466 if test yes = "$GXX"; then 21467 lt_prog_compiler_wl_CXX='-Wl,' 21468 lt_prog_compiler_static_CXX='-static' 21469 21470 case $host_os in 21471 aix*) 21472 # All AIX code is PIC. 21473 if test ia64 = "$host_cpu"; then 21474 # AIX 5 now supports IA64 processor 21475 lt_prog_compiler_static_CXX='-Bstatic' 21476 fi 21477 lt_prog_compiler_pic_CXX='-fPIC' 21478 ;; 21479 21480 amigaos*) 21481 case $host_cpu in 21482 powerpc) 21483 # see comment about AmigaOS4 .so support 21484 lt_prog_compiler_pic_CXX='-fPIC' 21485 ;; 21486 m68k) 21487 # FIXME: we need at least 68020 code to build shared libraries, but 21488 # adding the '-m68020' flag to GCC prevents building anything better, 21489 # like '-m68040'. 21490 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 21491 ;; 21492 esac 21493 ;; 21494 21495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21496 # PIC is the default for these OSes. 21497 ;; 21498 mingw* | cygwin* | os2* | pw32* | cegcc*) 21499 # This hack is so that the source file can tell whether it is being 21500 # built for inclusion in a dll (and should export symbols for example). 21501 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21502 # (--disable-auto-import) libraries 21503 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21504 case $host_os in 21505 os2*) 21506 lt_prog_compiler_static_CXX='$wl-static' 21507 ;; 21508 esac 21509 ;; 21510 darwin* | rhapsody*) 21511 # PIC is the default on this platform 21512 # Common symbols not allowed in MH_DYLIB files 21513 lt_prog_compiler_pic_CXX='-fno-common' 21514 ;; 21515 *djgpp*) 21516 # DJGPP does not support shared libraries at all 21517 lt_prog_compiler_pic_CXX= 21518 ;; 21519 haiku*) 21520 # PIC is the default for Haiku. 21521 # The "-static" flag exists, but is broken. 21522 lt_prog_compiler_static_CXX= 21523 ;; 21524 interix[3-9]*) 21525 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21526 # Instead, we relocate shared libraries at runtime. 21527 ;; 21528 sysv4*MP*) 21529 if test -d /usr/nec; then 21530 lt_prog_compiler_pic_CXX=-Kconform_pic 21531 fi 21532 ;; 21533 hpux*) 21534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21536 # sets the default TLS model and affects inlining. 21537 case $host_cpu in 21538 hppa*64*) 21539 ;; 21540 *) 21541 lt_prog_compiler_pic_CXX='-fPIC' 21542 ;; 21543 esac 21544 ;; 21545 *qnx* | *nto*) 21546 # QNX uses GNU C++, but need to define -shared option too, otherwise 21547 # it will coredump. 21548 lt_prog_compiler_pic_CXX='-fPIC -shared' 21549 ;; 21550 *) 21551 lt_prog_compiler_pic_CXX='-fPIC' 21552 ;; 21553 esac 21554 else 21555 case $host_os in 21556 aix[4-9]*) 21557 # All AIX code is PIC. 21558 if test ia64 = "$host_cpu"; then 21559 # AIX 5 now supports IA64 processor 21560 lt_prog_compiler_static_CXX='-Bstatic' 21561 else 21562 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21563 fi 21564 ;; 21565 chorus*) 21566 case $cc_basename in 21567 cxch68*) 21568 # Green Hills C++ Compiler 21569 # _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" 21570 ;; 21571 esac 21572 ;; 21573 mingw* | cygwin* | os2* | pw32* | cegcc*) 21574 # This hack is so that the source file can tell whether it is being 21575 # built for inclusion in a dll (and should export symbols for example). 21576 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21577 ;; 21578 dgux*) 21579 case $cc_basename in 21580 ec++*) 21581 lt_prog_compiler_pic_CXX='-KPIC' 21582 ;; 21583 ghcx*) 21584 # Green Hills C++ Compiler 21585 lt_prog_compiler_pic_CXX='-pic' 21586 ;; 21587 *) 21588 ;; 21589 esac 21590 ;; 21591 freebsd* | dragonfly*) 21592 # FreeBSD uses GNU C++ 21593 ;; 21594 hpux9* | hpux10* | hpux11*) 21595 case $cc_basename in 21596 CC*) 21597 lt_prog_compiler_wl_CXX='-Wl,' 21598 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21599 if test ia64 != "$host_cpu"; then 21600 lt_prog_compiler_pic_CXX='+Z' 21601 fi 21602 ;; 21603 aCC*) 21604 lt_prog_compiler_wl_CXX='-Wl,' 21605 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21606 case $host_cpu in 21607 hppa*64*|ia64*) 21608 # +Z the default 21609 ;; 21610 *) 21611 lt_prog_compiler_pic_CXX='+Z' 21612 ;; 21613 esac 21614 ;; 21615 *) 21616 ;; 21617 esac 21618 ;; 21619 interix*) 21620 # This is c89, which is MS Visual C++ (no shared libs) 21621 # Anyone wants to do a port? 21622 ;; 21623 irix5* | irix6* | nonstopux*) 21624 case $cc_basename in 21625 CC*) 21626 lt_prog_compiler_wl_CXX='-Wl,' 21627 lt_prog_compiler_static_CXX='-non_shared' 21628 # CC pic flag -KPIC is the default. 21629 ;; 21630 *) 21631 ;; 21632 esac 21633 ;; 21634 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21635 case $cc_basename in 21636 KCC*) 21637 # KAI C++ Compiler 21638 lt_prog_compiler_wl_CXX='--backend -Wl,' 21639 lt_prog_compiler_pic_CXX='-fPIC' 21640 ;; 21641 ecpc* ) 21642 # old Intel C++ for x86_64, which still supported -KPIC. 21643 lt_prog_compiler_wl_CXX='-Wl,' 21644 lt_prog_compiler_pic_CXX='-KPIC' 21645 lt_prog_compiler_static_CXX='-static' 21646 ;; 21647 icpc* ) 21648 # Intel C++, used to be incompatible with GCC. 21649 # ICC 10 doesn't accept -KPIC any more. 21650 lt_prog_compiler_wl_CXX='-Wl,' 21651 lt_prog_compiler_pic_CXX='-fPIC' 21652 lt_prog_compiler_static_CXX='-static' 21653 ;; 21654 pgCC* | pgcpp*) 21655 # Portland Group C++ compiler 21656 lt_prog_compiler_wl_CXX='-Wl,' 21657 lt_prog_compiler_pic_CXX='-fpic' 21658 lt_prog_compiler_static_CXX='-Bstatic' 21659 ;; 21660 cxx*) 21661 # Compaq C++ 21662 # Make sure the PIC flag is empty. It appears that all Alpha 21663 # Linux and Compaq Tru64 Unix objects are PIC. 21664 lt_prog_compiler_pic_CXX= 21665 lt_prog_compiler_static_CXX='-non_shared' 21666 ;; 21667 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21668 # IBM XL 8.0, 9.0 on PPC and BlueGene 21669 lt_prog_compiler_wl_CXX='-Wl,' 21670 lt_prog_compiler_pic_CXX='-qpic' 21671 lt_prog_compiler_static_CXX='-qstaticlink' 21672 ;; 21673 *) 21674 case `$CC -V 2>&1 | sed 5q` in 21675 *Sun\ C*) 21676 # Sun C++ 5.9 21677 lt_prog_compiler_pic_CXX='-KPIC' 21678 lt_prog_compiler_static_CXX='-Bstatic' 21679 lt_prog_compiler_wl_CXX='-Qoption ld ' 21680 ;; 21681 esac 21682 ;; 21683 esac 21684 ;; 21685 lynxos*) 21686 ;; 21687 m88k*) 21688 ;; 21689 mvs*) 21690 case $cc_basename in 21691 cxx*) 21692 lt_prog_compiler_pic_CXX='-W c,exportall' 21693 ;; 21694 *) 21695 ;; 21696 esac 21697 ;; 21698 netbsd* | netbsdelf*-gnu) 21699 ;; 21700 *qnx* | *nto*) 21701 # QNX uses GNU C++, but need to define -shared option too, otherwise 21702 # it will coredump. 21703 lt_prog_compiler_pic_CXX='-fPIC -shared' 21704 ;; 21705 osf3* | osf4* | osf5*) 21706 case $cc_basename in 21707 KCC*) 21708 lt_prog_compiler_wl_CXX='--backend -Wl,' 21709 ;; 21710 RCC*) 21711 # Rational C++ 2.4.1 21712 lt_prog_compiler_pic_CXX='-pic' 21713 ;; 21714 cxx*) 21715 # Digital/Compaq C++ 21716 lt_prog_compiler_wl_CXX='-Wl,' 21717 # Make sure the PIC flag is empty. It appears that all Alpha 21718 # Linux and Compaq Tru64 Unix objects are PIC. 21719 lt_prog_compiler_pic_CXX= 21720 lt_prog_compiler_static_CXX='-non_shared' 21721 ;; 21722 *) 21723 ;; 21724 esac 21725 ;; 21726 psos*) 21727 ;; 21728 solaris*) 21729 case $cc_basename in 21730 CC* | sunCC*) 21731 # Sun C++ 4.2, 5.x and Centerline C++ 21732 lt_prog_compiler_pic_CXX='-KPIC' 21733 lt_prog_compiler_static_CXX='-Bstatic' 21734 lt_prog_compiler_wl_CXX='-Qoption ld ' 21735 ;; 21736 gcx*) 21737 # Green Hills C++ Compiler 21738 lt_prog_compiler_pic_CXX='-PIC' 21739 ;; 21740 *) 21741 ;; 21742 esac 21743 ;; 21744 sunos4*) 21745 case $cc_basename in 21746 CC*) 21747 # Sun C++ 4.x 21748 lt_prog_compiler_pic_CXX='-pic' 21749 lt_prog_compiler_static_CXX='-Bstatic' 21750 ;; 21751 lcc*) 21752 # Lucid 21753 lt_prog_compiler_pic_CXX='-pic' 21754 ;; 21755 *) 21756 ;; 21757 esac 21758 ;; 21759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21760 case $cc_basename in 21761 CC*) 21762 lt_prog_compiler_wl_CXX='-Wl,' 21763 lt_prog_compiler_pic_CXX='-KPIC' 21764 lt_prog_compiler_static_CXX='-Bstatic' 21765 ;; 21766 esac 21767 ;; 21768 tandem*) 21769 case $cc_basename in 21770 NCC*) 21771 # NonStop-UX NCC 3.20 21772 lt_prog_compiler_pic_CXX='-KPIC' 21773 ;; 21774 *) 21775 ;; 21776 esac 21777 ;; 21778 vxworks*) 21779 ;; 21780 *) 21781 lt_prog_compiler_can_build_shared_CXX=no 21782 ;; 21783 esac 21784 fi 21785 21786case $host_os in 21787 # For platforms that do not support PIC, -DPIC is meaningless: 21788 *djgpp*) 21789 lt_prog_compiler_pic_CXX= 21790 ;; 21791 *) 21792 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21793 ;; 21794esac 21795 21796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21797$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 21798if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 21799 $as_echo_n "(cached) " >&6 21800else 21801 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 21802fi 21803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 21804$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 21805lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 21806 21807# 21808# Check to make sure the PIC flag actually works. 21809# 21810if test -n "$lt_prog_compiler_pic_CXX"; then 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21812$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21813if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21814 $as_echo_n "(cached) " >&6 21815else 21816 lt_cv_prog_compiler_pic_works_CXX=no 21817 ac_outfile=conftest.$ac_objext 21818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21819 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 21820 # Insert the option either (1) after the last *FLAGS variable, or 21821 # (2) before a word containing "conftest.", or (3) at the end. 21822 # Note that $ac_compile itself does not contain backslashes and begins 21823 # with a dollar sign (not a hyphen), so the echo should work correctly. 21824 # The option is referenced via a variable to avoid confusing sed. 21825 lt_compile=`echo "$ac_compile" | $SED \ 21826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21828 -e 's:$: $lt_compiler_flag:'` 21829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21830 (eval "$lt_compile" 2>conftest.err) 21831 ac_status=$? 21832 cat conftest.err >&5 21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21834 if (exit $ac_status) && test -s "$ac_outfile"; then 21835 # The compiler can only warn and ignore the option if not recognized 21836 # So say no if there are warnings other than the usual output. 21837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21840 lt_cv_prog_compiler_pic_works_CXX=yes 21841 fi 21842 fi 21843 $RM conftest* 21844 21845fi 21846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21847$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21848 21849if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 21850 case $lt_prog_compiler_pic_CXX in 21851 "" | " "*) ;; 21852 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21853 esac 21854else 21855 lt_prog_compiler_pic_CXX= 21856 lt_prog_compiler_can_build_shared_CXX=no 21857fi 21858 21859fi 21860 21861 21862 21863 21864 21865# 21866# Check to make sure the static flag actually works. 21867# 21868wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21870$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21871if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21872 $as_echo_n "(cached) " >&6 21873else 21874 lt_cv_prog_compiler_static_works_CXX=no 21875 save_LDFLAGS=$LDFLAGS 21876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21877 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21879 # The linker can only warn and ignore the option if not recognized 21880 # So say no if there are warnings 21881 if test -s conftest.err; then 21882 # Append any errors to the config.log. 21883 cat conftest.err 1>&5 21884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21886 if diff conftest.exp conftest.er2 >/dev/null; then 21887 lt_cv_prog_compiler_static_works_CXX=yes 21888 fi 21889 else 21890 lt_cv_prog_compiler_static_works_CXX=yes 21891 fi 21892 fi 21893 $RM -r conftest* 21894 LDFLAGS=$save_LDFLAGS 21895 21896fi 21897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21898$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21899 21900if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 21901 : 21902else 21903 lt_prog_compiler_static_CXX= 21904fi 21905 21906 21907 21908 21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21911if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21912 $as_echo_n "(cached) " >&6 21913else 21914 lt_cv_prog_compiler_c_o_CXX=no 21915 $RM -r conftest 2>/dev/null 21916 mkdir conftest 21917 cd conftest 21918 mkdir out 21919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21920 21921 lt_compiler_flag="-o out/conftest2.$ac_objext" 21922 # Insert the option either (1) after the last *FLAGS variable, or 21923 # (2) before a word containing "conftest.", or (3) at the end. 21924 # Note that $ac_compile itself does not contain backslashes and begins 21925 # with a dollar sign (not a hyphen), so the echo should work correctly. 21926 lt_compile=`echo "$ac_compile" | $SED \ 21927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21929 -e 's:$: $lt_compiler_flag:'` 21930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21931 (eval "$lt_compile" 2>out/conftest.err) 21932 ac_status=$? 21933 cat out/conftest.err >&5 21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21935 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21936 then 21937 # The compiler can only warn and ignore the option if not recognized 21938 # So say no if there are warnings 21939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21942 lt_cv_prog_compiler_c_o_CXX=yes 21943 fi 21944 fi 21945 chmod u+w . 2>&5 21946 $RM conftest* 21947 # SGI C++ compiler will create directory out/ii_files/ for 21948 # template instantiation 21949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21950 $RM out/* && rmdir out 21951 cd .. 21952 $RM -r conftest 21953 $RM conftest* 21954 21955fi 21956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21957$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21958 21959 21960 21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21963if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21964 $as_echo_n "(cached) " >&6 21965else 21966 lt_cv_prog_compiler_c_o_CXX=no 21967 $RM -r conftest 2>/dev/null 21968 mkdir conftest 21969 cd conftest 21970 mkdir out 21971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21972 21973 lt_compiler_flag="-o out/conftest2.$ac_objext" 21974 # Insert the option either (1) after the last *FLAGS variable, or 21975 # (2) before a word containing "conftest.", or (3) at the end. 21976 # Note that $ac_compile itself does not contain backslashes and begins 21977 # with a dollar sign (not a hyphen), so the echo should work correctly. 21978 lt_compile=`echo "$ac_compile" | $SED \ 21979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21981 -e 's:$: $lt_compiler_flag:'` 21982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21983 (eval "$lt_compile" 2>out/conftest.err) 21984 ac_status=$? 21985 cat out/conftest.err >&5 21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21987 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21988 then 21989 # The compiler can only warn and ignore the option if not recognized 21990 # So say no if there are warnings 21991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21994 lt_cv_prog_compiler_c_o_CXX=yes 21995 fi 21996 fi 21997 chmod u+w . 2>&5 21998 $RM conftest* 21999 # SGI C++ compiler will create directory out/ii_files/ for 22000 # template instantiation 22001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22002 $RM out/* && rmdir out 22003 cd .. 22004 $RM -r conftest 22005 $RM conftest* 22006 22007fi 22008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22009$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22010 22011 22012 22013 22014hard_links=nottested 22015if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 22016 # do not overwrite the value of need_locks provided by the user 22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22018$as_echo_n "checking if we can lock with hard links... " >&6; } 22019 hard_links=yes 22020 $RM conftest* 22021 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22022 touch conftest.a 22023 ln conftest.a conftest.b 2>&5 || hard_links=no 22024 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22026$as_echo "$hard_links" >&6; } 22027 if test no = "$hard_links"; then 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 22029$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 22030 need_locks=warn 22031 fi 22032else 22033 need_locks=no 22034fi 22035 22036 22037 22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22039$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22040 22041 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22042 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22043 case $host_os in 22044 aix[4-9]*) 22045 # If we're using GNU nm, then we don't want the "-C" option. 22046 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 22047 # Without the "-l" option, or with the "-B" option, AIX nm treats 22048 # weak defined symbols like other global defined symbols, whereas 22049 # GNU nm marks them as "W". 22050 # While the 'weak' keyword is ignored in the Export File, we need 22051 # it in the Import File for the 'aix-soname' feature, so we have 22052 # to replace the "-B" option with "-P" for AIX nm. 22053 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22054 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 22055 else 22056 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 22057 fi 22058 ;; 22059 pw32*) 22060 export_symbols_cmds_CXX=$ltdll_cmds 22061 ;; 22062 cygwin* | mingw* | cegcc*) 22063 case $cc_basename in 22064 cl*) 22065 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 22066 ;; 22067 *) 22068 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' 22069 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 22070 ;; 22071 esac 22072 ;; 22073 linux* | k*bsd*-gnu | gnu*) 22074 link_all_deplibs_CXX=no 22075 ;; 22076 *) 22077 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22078 ;; 22079 esac 22080 22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22082$as_echo "$ld_shlibs_CXX" >&6; } 22083test no = "$ld_shlibs_CXX" && can_build_shared=no 22084 22085with_gnu_ld_CXX=$with_gnu_ld 22086 22087 22088 22089 22090 22091 22092# 22093# Do we need to explicitly link libc? 22094# 22095case "x$archive_cmds_need_lc_CXX" in 22096x|xyes) 22097 # Assume -lc should be added 22098 archive_cmds_need_lc_CXX=yes 22099 22100 if test yes,yes = "$GCC,$enable_shared"; then 22101 case $archive_cmds_CXX in 22102 *'~'*) 22103 # FIXME: we may have to deal with multi-command sequences. 22104 ;; 22105 '$CC '*) 22106 # Test whether the compiler implicitly links with -lc since on some 22107 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22108 # to ld, don't add -lc before -lgcc. 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22110$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22111if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22112 $as_echo_n "(cached) " >&6 22113else 22114 $RM conftest* 22115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22116 22117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22118 (eval $ac_compile) 2>&5 22119 ac_status=$? 22120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22121 test $ac_status = 0; } 2>conftest.err; then 22122 soname=conftest 22123 lib=conftest 22124 libobjs=conftest.$ac_objext 22125 deplibs= 22126 wl=$lt_prog_compiler_wl_CXX 22127 pic_flag=$lt_prog_compiler_pic_CXX 22128 compiler_flags=-v 22129 linker_flags=-v 22130 verstring= 22131 output_objdir=. 22132 libname=conftest 22133 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22134 allow_undefined_flag_CXX= 22135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22136 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22137 ac_status=$? 22138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22139 test $ac_status = 0; } 22140 then 22141 lt_cv_archive_cmds_need_lc_CXX=no 22142 else 22143 lt_cv_archive_cmds_need_lc_CXX=yes 22144 fi 22145 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22146 else 22147 cat conftest.err 1>&5 22148 fi 22149 $RM conftest* 22150 22151fi 22152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22153$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22154 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22155 ;; 22156 esac 22157 fi 22158 ;; 22159esac 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22223$as_echo_n "checking dynamic linker characteristics... " >&6; } 22224 22225library_names_spec= 22226libname_spec='lib$name' 22227soname_spec= 22228shrext_cmds=.so 22229postinstall_cmds= 22230postuninstall_cmds= 22231finish_cmds= 22232finish_eval= 22233shlibpath_var= 22234shlibpath_overrides_runpath=unknown 22235version_type=none 22236dynamic_linker="$host_os ld.so" 22237sys_lib_dlsearch_path_spec="/lib /usr/lib" 22238need_lib_prefix=unknown 22239hardcode_into_libs=no 22240 22241# when you set need_version to no, make sure it does not cause -set_version 22242# flags to be left without arguments 22243need_version=unknown 22244 22245 22246 22247case $host_os in 22248aix3*) 22249 version_type=linux # correct to gnu/linux during the next big refactor 22250 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22251 shlibpath_var=LIBPATH 22252 22253 # AIX 3 has no versioning support, so we append a major version to the name. 22254 soname_spec='$libname$release$shared_ext$major' 22255 ;; 22256 22257aix[4-9]*) 22258 version_type=linux # correct to gnu/linux during the next big refactor 22259 need_lib_prefix=no 22260 need_version=no 22261 hardcode_into_libs=yes 22262 if test ia64 = "$host_cpu"; then 22263 # AIX 5 supports IA64 22264 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22265 shlibpath_var=LD_LIBRARY_PATH 22266 else 22267 # With GCC up to 2.95.x, collect2 would create an import file 22268 # for dependence libraries. The import file would start with 22269 # the line '#! .'. This would cause the generated library to 22270 # depend on '.', always an invalid library. This was fixed in 22271 # development snapshots of GCC prior to 3.0. 22272 case $host_os in 22273 aix4 | aix4.[01] | aix4.[01].*) 22274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22275 echo ' yes ' 22276 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22277 : 22278 else 22279 can_build_shared=no 22280 fi 22281 ;; 22282 esac 22283 # Using Import Files as archive members, it is possible to support 22284 # filename-based versioning of shared library archives on AIX. While 22285 # this would work for both with and without runtime linking, it will 22286 # prevent static linking of such archives. So we do filename-based 22287 # shared library versioning with .so extension only, which is used 22288 # when both runtime linking and shared linking is enabled. 22289 # Unfortunately, runtime linking may impact performance, so we do 22290 # not want this to be the default eventually. Also, we use the 22291 # versioned .so libs for executables only if there is the -brtl 22292 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22293 # To allow for filename-based versioning support, we need to create 22294 # libNAME.so.V as an archive file, containing: 22295 # *) an Import File, referring to the versioned filename of the 22296 # archive as well as the shared archive member, telling the 22297 # bitwidth (32 or 64) of that shared object, and providing the 22298 # list of exported symbols of that shared object, eventually 22299 # decorated with the 'weak' keyword 22300 # *) the shared object with the F_LOADONLY flag set, to really avoid 22301 # it being seen by the linker. 22302 # At run time we better use the real file rather than another symlink, 22303 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22304 22305 case $with_aix_soname,$aix_use_runtimelinking in 22306 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22307 # soname into executable. Probably we can add versioning support to 22308 # collect2, so additional links can be useful in future. 22309 aix,yes) # traditional libtool 22310 dynamic_linker='AIX unversionable lib.so' 22311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22312 # instead of lib<name>.a to let people know that these are not 22313 # typical AIX shared libraries. 22314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22315 ;; 22316 aix,no) # traditional AIX only 22317 dynamic_linker='AIX lib.a(lib.so.V)' 22318 # We preserve .a as extension for shared libraries through AIX4.2 22319 # and later when we are not doing run time linking. 22320 library_names_spec='$libname$release.a $libname.a' 22321 soname_spec='$libname$release$shared_ext$major' 22322 ;; 22323 svr4,*) # full svr4 only 22324 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22325 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22326 # We do not specify a path in Import Files, so LIBPATH fires. 22327 shlibpath_overrides_runpath=yes 22328 ;; 22329 *,yes) # both, prefer svr4 22330 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22331 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22332 # unpreferred sharedlib libNAME.a needs extra handling 22333 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 22334 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 22335 # We do not specify a path in Import Files, so LIBPATH fires. 22336 shlibpath_overrides_runpath=yes 22337 ;; 22338 *,no) # both, prefer aix 22339 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22340 library_names_spec='$libname$release.a $libname.a' 22341 soname_spec='$libname$release$shared_ext$major' 22342 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22343 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 22344 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 22345 ;; 22346 esac 22347 shlibpath_var=LIBPATH 22348 fi 22349 ;; 22350 22351amigaos*) 22352 case $host_cpu in 22353 powerpc) 22354 # Since July 2007 AmigaOS4 officially supports .so libraries. 22355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22357 ;; 22358 m68k) 22359 library_names_spec='$libname.ixlibrary $libname.a' 22360 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22361 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 22362 ;; 22363 esac 22364 ;; 22365 22366beos*) 22367 library_names_spec='$libname$shared_ext' 22368 dynamic_linker="$host_os ld.so" 22369 shlibpath_var=LIBRARY_PATH 22370 ;; 22371 22372bsdi[45]*) 22373 version_type=linux # correct to gnu/linux during the next big refactor 22374 need_version=no 22375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22376 soname_spec='$libname$release$shared_ext$major' 22377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22378 shlibpath_var=LD_LIBRARY_PATH 22379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22381 # the default ld.so.conf also contains /usr/contrib/lib and 22382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22383 # libtool to hard-code these into programs 22384 ;; 22385 22386cygwin* | mingw* | pw32* | cegcc*) 22387 version_type=windows 22388 shrext_cmds=.dll 22389 need_version=no 22390 need_lib_prefix=no 22391 22392 case $GCC,$cc_basename in 22393 yes,*) 22394 # gcc 22395 library_names_spec='$libname.dll.a' 22396 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22397 postinstall_cmds='base_file=`basename \$file`~ 22398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22399 dldir=$destdir/`dirname \$dlpath`~ 22400 test -d \$dldir || mkdir -p \$dldir~ 22401 $install_prog $dir/$dlname \$dldir/$dlname~ 22402 chmod a+x \$dldir/$dlname~ 22403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22405 fi' 22406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22407 dlpath=$dir/\$dldll~ 22408 $RM \$dlpath' 22409 shlibpath_overrides_runpath=yes 22410 22411 case $host_os in 22412 cygwin*) 22413 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22414 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22415 22416 ;; 22417 mingw* | cegcc*) 22418 # MinGW DLLs use traditional 'lib' prefix 22419 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22420 ;; 22421 pw32*) 22422 # pw32 DLLs use 'pw' prefix rather than 'lib' 22423 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22424 ;; 22425 esac 22426 dynamic_linker='Win32 ld.exe' 22427 ;; 22428 22429 *,cl*) 22430 # Native MSVC 22431 libname_spec='$name' 22432 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22433 library_names_spec='$libname.dll.lib' 22434 22435 case $build_os in 22436 mingw*) 22437 sys_lib_search_path_spec= 22438 lt_save_ifs=$IFS 22439 IFS=';' 22440 for lt_path in $LIB 22441 do 22442 IFS=$lt_save_ifs 22443 # Let DOS variable expansion print the short 8.3 style file name. 22444 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22445 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22446 done 22447 IFS=$lt_save_ifs 22448 # Convert to MSYS style. 22449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22450 ;; 22451 cygwin*) 22452 # Convert to unix form, then to dos form, then back to unix form 22453 # but this time dos style (no spaces!) so that the unix form looks 22454 # like /cygdrive/c/PROGRA~1:/cygdr... 22455 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 22456 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 22457 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22458 ;; 22459 *) 22460 sys_lib_search_path_spec=$LIB 22461 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 22462 # It is most probably a Windows format PATH. 22463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22464 else 22465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22466 fi 22467 # FIXME: find the short name or the path components, as spaces are 22468 # common. (e.g. "Program Files" -> "PROGRA~1") 22469 ;; 22470 esac 22471 22472 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22473 postinstall_cmds='base_file=`basename \$file`~ 22474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22475 dldir=$destdir/`dirname \$dlpath`~ 22476 test -d \$dldir || mkdir -p \$dldir~ 22477 $install_prog $dir/$dlname \$dldir/$dlname' 22478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22479 dlpath=$dir/\$dldll~ 22480 $RM \$dlpath' 22481 shlibpath_overrides_runpath=yes 22482 dynamic_linker='Win32 link.exe' 22483 ;; 22484 22485 *) 22486 # Assume MSVC wrapper 22487 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 22488 dynamic_linker='Win32 ld.exe' 22489 ;; 22490 esac 22491 # FIXME: first we should search . and the directory the executable is in 22492 shlibpath_var=PATH 22493 ;; 22494 22495darwin* | rhapsody*) 22496 dynamic_linker="$host_os dyld" 22497 version_type=darwin 22498 need_lib_prefix=no 22499 need_version=no 22500 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 22501 soname_spec='$libname$release$major$shared_ext' 22502 shlibpath_overrides_runpath=yes 22503 shlibpath_var=DYLD_LIBRARY_PATH 22504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22505 22506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22507 ;; 22508 22509dgux*) 22510 version_type=linux # correct to gnu/linux during the next big refactor 22511 need_lib_prefix=no 22512 need_version=no 22513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22514 soname_spec='$libname$release$shared_ext$major' 22515 shlibpath_var=LD_LIBRARY_PATH 22516 ;; 22517 22518freebsd* | dragonfly*) 22519 # DragonFly does not have aout. When/if they implement a new 22520 # versioning mechanism, adjust this. 22521 if test -x /usr/bin/objformat; then 22522 objformat=`/usr/bin/objformat` 22523 else 22524 case $host_os in 22525 freebsd[23].*) objformat=aout ;; 22526 *) objformat=elf ;; 22527 esac 22528 fi 22529 version_type=freebsd-$objformat 22530 case $version_type in 22531 freebsd-elf*) 22532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22533 soname_spec='$libname$release$shared_ext$major' 22534 need_version=no 22535 need_lib_prefix=no 22536 ;; 22537 freebsd-*) 22538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22539 need_version=yes 22540 ;; 22541 esac 22542 shlibpath_var=LD_LIBRARY_PATH 22543 case $host_os in 22544 freebsd2.*) 22545 shlibpath_overrides_runpath=yes 22546 ;; 22547 freebsd3.[01]* | freebsdelf3.[01]*) 22548 shlibpath_overrides_runpath=yes 22549 hardcode_into_libs=yes 22550 ;; 22551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22553 shlibpath_overrides_runpath=no 22554 hardcode_into_libs=yes 22555 ;; 22556 *) # from 4.6 on, and DragonFly 22557 shlibpath_overrides_runpath=yes 22558 hardcode_into_libs=yes 22559 ;; 22560 esac 22561 ;; 22562 22563haiku*) 22564 version_type=linux # correct to gnu/linux during the next big refactor 22565 need_lib_prefix=no 22566 need_version=no 22567 dynamic_linker="$host_os runtime_loader" 22568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22569 soname_spec='$libname$release$shared_ext$major' 22570 shlibpath_var=LIBRARY_PATH 22571 shlibpath_overrides_runpath=no 22572 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 22573 hardcode_into_libs=yes 22574 ;; 22575 22576hpux9* | hpux10* | hpux11*) 22577 # Give a soname corresponding to the major version so that dld.sl refuses to 22578 # link against other versions. 22579 version_type=sunos 22580 need_lib_prefix=no 22581 need_version=no 22582 case $host_cpu in 22583 ia64*) 22584 shrext_cmds='.so' 22585 hardcode_into_libs=yes 22586 dynamic_linker="$host_os dld.so" 22587 shlibpath_var=LD_LIBRARY_PATH 22588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22590 soname_spec='$libname$release$shared_ext$major' 22591 if test 32 = "$HPUX_IA64_MODE"; then 22592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22593 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 22594 else 22595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22596 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 22597 fi 22598 ;; 22599 hppa*64*) 22600 shrext_cmds='.sl' 22601 hardcode_into_libs=yes 22602 dynamic_linker="$host_os dld.sl" 22603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22606 soname_spec='$libname$release$shared_ext$major' 22607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22609 ;; 22610 *) 22611 shrext_cmds='.sl' 22612 dynamic_linker="$host_os dld.sl" 22613 shlibpath_var=SHLIB_PATH 22614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22616 soname_spec='$libname$release$shared_ext$major' 22617 ;; 22618 esac 22619 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22620 postinstall_cmds='chmod 555 $lib' 22621 # or fails outright, so override atomically: 22622 install_override_mode=555 22623 ;; 22624 22625interix[3-9]*) 22626 version_type=linux # correct to gnu/linux during the next big refactor 22627 need_lib_prefix=no 22628 need_version=no 22629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22630 soname_spec='$libname$release$shared_ext$major' 22631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22632 shlibpath_var=LD_LIBRARY_PATH 22633 shlibpath_overrides_runpath=no 22634 hardcode_into_libs=yes 22635 ;; 22636 22637irix5* | irix6* | nonstopux*) 22638 case $host_os in 22639 nonstopux*) version_type=nonstopux ;; 22640 *) 22641 if test yes = "$lt_cv_prog_gnu_ld"; then 22642 version_type=linux # correct to gnu/linux during the next big refactor 22643 else 22644 version_type=irix 22645 fi ;; 22646 esac 22647 need_lib_prefix=no 22648 need_version=no 22649 soname_spec='$libname$release$shared_ext$major' 22650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 22651 case $host_os in 22652 irix5* | nonstopux*) 22653 libsuff= shlibsuff= 22654 ;; 22655 *) 22656 case $LD in # libtool.m4 will add one of these switches to LD 22657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22658 libsuff= shlibsuff= libmagic=32-bit;; 22659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22660 libsuff=32 shlibsuff=N32 libmagic=N32;; 22661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22662 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22663 *) libsuff= shlibsuff= libmagic=never-match;; 22664 esac 22665 ;; 22666 esac 22667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22668 shlibpath_overrides_runpath=no 22669 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 22670 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 22671 hardcode_into_libs=yes 22672 ;; 22673 22674# No shared lib support for Linux oldld, aout, or coff. 22675linux*oldld* | linux*aout* | linux*coff*) 22676 dynamic_linker=no 22677 ;; 22678 22679linux*android*) 22680 version_type=none # Android doesn't support versioned libraries. 22681 need_lib_prefix=no 22682 need_version=no 22683 library_names_spec='$libname$release$shared_ext' 22684 soname_spec='$libname$release$shared_ext' 22685 finish_cmds= 22686 shlibpath_var=LD_LIBRARY_PATH 22687 shlibpath_overrides_runpath=yes 22688 22689 # This implies no fast_install, which is unacceptable. 22690 # Some rework will be needed to allow for fast_install 22691 # before this can be enabled. 22692 hardcode_into_libs=yes 22693 22694 dynamic_linker='Android linker' 22695 # Don't embed -rpath directories since the linker doesn't support them. 22696 hardcode_libdir_flag_spec_CXX='-L$libdir' 22697 ;; 22698 22699# This must be glibc/ELF. 22700linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22701 version_type=linux # correct to gnu/linux during the next big refactor 22702 need_lib_prefix=no 22703 need_version=no 22704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22705 soname_spec='$libname$release$shared_ext$major' 22706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22707 shlibpath_var=LD_LIBRARY_PATH 22708 shlibpath_overrides_runpath=no 22709 22710 # Some binutils ld are patched to set DT_RUNPATH 22711 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22712 $as_echo_n "(cached) " >&6 22713else 22714 lt_cv_shlibpath_overrides_runpath=no 22715 save_LDFLAGS=$LDFLAGS 22716 save_libdir=$libdir 22717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22720/* end confdefs.h. */ 22721 22722int 22723main () 22724{ 22725 22726 ; 22727 return 0; 22728} 22729_ACEOF 22730if ac_fn_cxx_try_link "$LINENO"; then : 22731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22732 lt_cv_shlibpath_overrides_runpath=yes 22733fi 22734fi 22735rm -f core conftest.err conftest.$ac_objext \ 22736 conftest$ac_exeext conftest.$ac_ext 22737 LDFLAGS=$save_LDFLAGS 22738 libdir=$save_libdir 22739 22740fi 22741 22742 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22743 22744 # This implies no fast_install, which is unacceptable. 22745 # Some rework will be needed to allow for fast_install 22746 # before this can be enabled. 22747 hardcode_into_libs=yes 22748 22749 # Ideally, we could use ldconfig to report *all* directores which are 22750 # searched for libraries, however this is still not possible. Aside from not 22751 # being certain /sbin/ldconfig is available, command 22752 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 22753 # even though it is searched at run-time. Try to do the best guess by 22754 # appending ld.so.conf contents (and includes) to the search path. 22755 if test -f /etc/ld.so.conf; then 22756 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' ' '` 22757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22758 fi 22759 22760 # We used to test for /lib/ld.so.1 and disable shared libraries on 22761 # powerpc, because MkLinux only supported shared libraries with the 22762 # GNU dynamic linker. Since this was broken with cross compilers, 22763 # most powerpc-linux boxes support dynamic linking these days and 22764 # people can always --disable-shared, the test was removed, and we 22765 # assume the GNU/Linux dynamic linker is in use. 22766 dynamic_linker='GNU/Linux ld.so' 22767 ;; 22768 22769netbsdelf*-gnu) 22770 version_type=linux 22771 need_lib_prefix=no 22772 need_version=no 22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22774 soname_spec='${libname}${release}${shared_ext}$major' 22775 shlibpath_var=LD_LIBRARY_PATH 22776 shlibpath_overrides_runpath=no 22777 hardcode_into_libs=yes 22778 dynamic_linker='NetBSD ld.elf_so' 22779 ;; 22780 22781netbsd*) 22782 version_type=sunos 22783 need_lib_prefix=no 22784 need_version=no 22785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22788 dynamic_linker='NetBSD (a.out) ld.so' 22789 else 22790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22791 soname_spec='$libname$release$shared_ext$major' 22792 dynamic_linker='NetBSD ld.elf_so' 22793 fi 22794 shlibpath_var=LD_LIBRARY_PATH 22795 shlibpath_overrides_runpath=yes 22796 hardcode_into_libs=yes 22797 ;; 22798 22799newsos6) 22800 version_type=linux # correct to gnu/linux during the next big refactor 22801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22802 shlibpath_var=LD_LIBRARY_PATH 22803 shlibpath_overrides_runpath=yes 22804 ;; 22805 22806*nto* | *qnx*) 22807 version_type=qnx 22808 need_lib_prefix=no 22809 need_version=no 22810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22811 soname_spec='$libname$release$shared_ext$major' 22812 shlibpath_var=LD_LIBRARY_PATH 22813 shlibpath_overrides_runpath=no 22814 hardcode_into_libs=yes 22815 dynamic_linker='ldqnx.so' 22816 ;; 22817 22818openbsd* | bitrig*) 22819 version_type=sunos 22820 sys_lib_dlsearch_path_spec=/usr/lib 22821 need_lib_prefix=no 22822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 22823 need_version=no 22824 else 22825 need_version=yes 22826 fi 22827 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22829 shlibpath_var=LD_LIBRARY_PATH 22830 shlibpath_overrides_runpath=yes 22831 ;; 22832 22833os2*) 22834 libname_spec='$name' 22835 version_type=windows 22836 shrext_cmds=.dll 22837 need_version=no 22838 need_lib_prefix=no 22839 # OS/2 can only load a DLL with a base name of 8 characters or less. 22840 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 22841 v=$($ECHO $release$versuffix | tr -d .-); 22842 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 22843 $ECHO $n$v`$shared_ext' 22844 library_names_spec='${libname}_dll.$libext' 22845 dynamic_linker='OS/2 ld.exe' 22846 shlibpath_var=BEGINLIBPATH 22847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22849 postinstall_cmds='base_file=`basename \$file`~ 22850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 22851 dldir=$destdir/`dirname \$dlpath`~ 22852 test -d \$dldir || mkdir -p \$dldir~ 22853 $install_prog $dir/$dlname \$dldir/$dlname~ 22854 chmod a+x \$dldir/$dlname~ 22855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22857 fi' 22858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 22859 dlpath=$dir/\$dldll~ 22860 $RM \$dlpath' 22861 ;; 22862 22863osf3* | osf4* | osf5*) 22864 version_type=osf 22865 need_lib_prefix=no 22866 need_version=no 22867 soname_spec='$libname$release$shared_ext$major' 22868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22869 shlibpath_var=LD_LIBRARY_PATH 22870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22872 ;; 22873 22874rdos*) 22875 dynamic_linker=no 22876 ;; 22877 22878solaris*) 22879 version_type=linux # correct to gnu/linux during the next big refactor 22880 need_lib_prefix=no 22881 need_version=no 22882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22883 soname_spec='$libname$release$shared_ext$major' 22884 shlibpath_var=LD_LIBRARY_PATH 22885 shlibpath_overrides_runpath=yes 22886 hardcode_into_libs=yes 22887 # ldd complains unless libraries are executable 22888 postinstall_cmds='chmod +x $lib' 22889 ;; 22890 22891sunos4*) 22892 version_type=sunos 22893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22894 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22895 shlibpath_var=LD_LIBRARY_PATH 22896 shlibpath_overrides_runpath=yes 22897 if test yes = "$with_gnu_ld"; then 22898 need_lib_prefix=no 22899 fi 22900 need_version=yes 22901 ;; 22902 22903sysv4 | sysv4.3*) 22904 version_type=linux # correct to gnu/linux during the next big refactor 22905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22906 soname_spec='$libname$release$shared_ext$major' 22907 shlibpath_var=LD_LIBRARY_PATH 22908 case $host_vendor in 22909 sni) 22910 shlibpath_overrides_runpath=no 22911 need_lib_prefix=no 22912 runpath_var=LD_RUN_PATH 22913 ;; 22914 siemens) 22915 need_lib_prefix=no 22916 ;; 22917 motorola) 22918 need_lib_prefix=no 22919 need_version=no 22920 shlibpath_overrides_runpath=no 22921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22922 ;; 22923 esac 22924 ;; 22925 22926sysv4*MP*) 22927 if test -d /usr/nec; then 22928 version_type=linux # correct to gnu/linux during the next big refactor 22929 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22930 soname_spec='$libname$shared_ext.$major' 22931 shlibpath_var=LD_LIBRARY_PATH 22932 fi 22933 ;; 22934 22935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22936 version_type=sco 22937 need_lib_prefix=no 22938 need_version=no 22939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22940 soname_spec='$libname$release$shared_ext$major' 22941 shlibpath_var=LD_LIBRARY_PATH 22942 shlibpath_overrides_runpath=yes 22943 hardcode_into_libs=yes 22944 if test yes = "$with_gnu_ld"; then 22945 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22946 else 22947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22948 case $host_os in 22949 sco3.2v5*) 22950 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22951 ;; 22952 esac 22953 fi 22954 sys_lib_dlsearch_path_spec='/usr/lib' 22955 ;; 22956 22957tpf*) 22958 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22959 version_type=linux # correct to gnu/linux during the next big refactor 22960 need_lib_prefix=no 22961 need_version=no 22962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22963 shlibpath_var=LD_LIBRARY_PATH 22964 shlibpath_overrides_runpath=no 22965 hardcode_into_libs=yes 22966 ;; 22967 22968uts4*) 22969 version_type=linux # correct to gnu/linux during the next big refactor 22970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22971 soname_spec='$libname$release$shared_ext$major' 22972 shlibpath_var=LD_LIBRARY_PATH 22973 ;; 22974 22975*) 22976 dynamic_linker=no 22977 ;; 22978esac 22979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22980$as_echo "$dynamic_linker" >&6; } 22981test no = "$dynamic_linker" && can_build_shared=no 22982 22983variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22984if test yes = "$GCC"; then 22985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22986fi 22987 22988if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22989 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22990fi 22991 22992if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22993 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22994fi 22995 22996# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22997configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22998 22999# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 23000func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 23001 23002# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 23003configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 23045$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 23046hardcode_action_CXX= 23047if test -n "$hardcode_libdir_flag_spec_CXX" || 23048 test -n "$runpath_var_CXX" || 23049 test yes = "$hardcode_automatic_CXX"; then 23050 23051 # We can hardcode non-existent directories. 23052 if test no != "$hardcode_direct_CXX" && 23053 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23054 # have to relink, otherwise we might link with an installed library 23055 # when we should be linking with a yet-to-be-installed one 23056 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 23057 test no != "$hardcode_minus_L_CXX"; then 23058 # Linking always hardcodes the temporary library directory. 23059 hardcode_action_CXX=relink 23060 else 23061 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23062 hardcode_action_CXX=immediate 23063 fi 23064else 23065 # We cannot hardcode anything, or else we can only hardcode existing 23066 # directories. 23067 hardcode_action_CXX=unsupported 23068fi 23069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 23070$as_echo "$hardcode_action_CXX" >&6; } 23071 23072if test relink = "$hardcode_action_CXX" || 23073 test yes = "$inherit_rpath_CXX"; then 23074 # Fast installation is not supported 23075 enable_fast_install=no 23076elif test yes = "$shlibpath_overrides_runpath" || 23077 test no = "$enable_shared"; then 23078 # Fast installation is not necessary 23079 enable_fast_install=needless 23080fi 23081 23082 23083 23084 23085 23086 23087 23088 fi # test -n "$compiler" 23089 23090 CC=$lt_save_CC 23091 CFLAGS=$lt_save_CFLAGS 23092 LDCXX=$LD 23093 LD=$lt_save_LD 23094 GCC=$lt_save_GCC 23095 with_gnu_ld=$lt_save_with_gnu_ld 23096 lt_cv_path_LDCXX=$lt_cv_path_LD 23097 lt_cv_path_LD=$lt_save_path_LD 23098 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 23099 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 23100fi # test yes != "$_lt_caught_CXX_error" 23101 23102ac_ext=c 23103ac_cpp='$CPP $CPPFLAGS' 23104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23106ac_compiler_gnu=$ac_cv_c_compiler_gnu 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 ac_config_commands="$ac_config_commands libtool" 23123 23124 23125 23126 23127# Only expand once: 23128 23129 23130 23131if test "x$WIN32" = "xyes" ; then 23132 if test -n "$ac_tool_prefix"; then 23133 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 23134set dummy ${ac_tool_prefix}windres; ac_word=$2 23135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23136$as_echo_n "checking for $ac_word... " >&6; } 23137if ${ac_cv_prog_WINDRES+:} false; then : 23138 $as_echo_n "(cached) " >&6 23139else 23140 if test -n "$WINDRES"; then 23141 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 23142else 23143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23144for as_dir in $PATH 23145do 23146 IFS=$as_save_IFS 23147 test -z "$as_dir" && as_dir=. 23148 for ac_exec_ext in '' $ac_executable_extensions; do 23149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23150 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 23151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23152 break 2 23153 fi 23154done 23155 done 23156IFS=$as_save_IFS 23157 23158fi 23159fi 23160WINDRES=$ac_cv_prog_WINDRES 23161if test -n "$WINDRES"; then 23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 23163$as_echo "$WINDRES" >&6; } 23164else 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23166$as_echo "no" >&6; } 23167fi 23168 23169 23170fi 23171if test -z "$ac_cv_prog_WINDRES"; then 23172 ac_ct_WINDRES=$WINDRES 23173 # Extract the first word of "windres", so it can be a program name with args. 23174set dummy windres; ac_word=$2 23175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23176$as_echo_n "checking for $ac_word... " >&6; } 23177if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 23178 $as_echo_n "(cached) " >&6 23179else 23180 if test -n "$ac_ct_WINDRES"; then 23181 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 23182else 23183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23184for as_dir in $PATH 23185do 23186 IFS=$as_save_IFS 23187 test -z "$as_dir" && as_dir=. 23188 for ac_exec_ext in '' $ac_executable_extensions; do 23189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23190 ac_cv_prog_ac_ct_WINDRES="windres" 23191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23192 break 2 23193 fi 23194done 23195 done 23196IFS=$as_save_IFS 23197 23198fi 23199fi 23200ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 23201if test -n "$ac_ct_WINDRES"; then 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 23203$as_echo "$ac_ct_WINDRES" >&6; } 23204else 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23206$as_echo "no" >&6; } 23207fi 23208 23209 if test "x$ac_ct_WINDRES" = x; then 23210 WINDRES="no" 23211 else 23212 case $cross_compiling:$ac_tool_warned in 23213yes:) 23214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23216ac_tool_warned=yes ;; 23217esac 23218 WINDRES=$ac_ct_WINDRES 23219 fi 23220else 23221 WINDRES="$ac_cv_prog_WINDRES" 23222fi 23223 23224 if test "$WINDRES" = "no"; then 23225 as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5 23226 fi 23227fi 23228 23229# if we have gcc then add -Wall 23230if test "x$GCC" = "xyes"; then 23231 if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then 23232 CFLAGS="$CFLAGS -Wall" 23233 fi 23234fi 23235 23236# Check for ImageMagick tools used by the testsuite 23237# Extract the first word of "animate", so it can be a program name with args. 23238set dummy animate; ac_word=$2 23239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23240$as_echo_n "checking for $ac_word... " >&6; } 23241if ${ac_cv_path_IM_ANIMATE+:} false; then : 23242 $as_echo_n "(cached) " >&6 23243else 23244 case $IM_ANIMATE in 23245 [\\/]* | ?:[\\/]*) 23246 ac_cv_path_IM_ANIMATE="$IM_ANIMATE" # Let the user override the test with a path. 23247 ;; 23248 *) 23249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23250for as_dir in $PATH 23251do 23252 IFS=$as_save_IFS 23253 test -z "$as_dir" && as_dir=. 23254 for ac_exec_ext in '' $ac_executable_extensions; do 23255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23256 ac_cv_path_IM_ANIMATE="$as_dir/$ac_word$ac_exec_ext" 23257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23258 break 2 23259 fi 23260done 23261 done 23262IFS=$as_save_IFS 23263 23264 test -z "$ac_cv_path_IM_ANIMATE" && ac_cv_path_IM_ANIMATE="notfound" 23265 ;; 23266esac 23267fi 23268IM_ANIMATE=$ac_cv_path_IM_ANIMATE 23269if test -n "$IM_ANIMATE"; then 23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_ANIMATE" >&5 23271$as_echo "$IM_ANIMATE" >&6; } 23272else 23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23274$as_echo "no" >&6; } 23275fi 23276 23277 23278# Extract the first word of "compare", so it can be a program name with args. 23279set dummy compare; ac_word=$2 23280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23281$as_echo_n "checking for $ac_word... " >&6; } 23282if ${ac_cv_path_IM_COMPARE+:} false; then : 23283 $as_echo_n "(cached) " >&6 23284else 23285 case $IM_COMPARE in 23286 [\\/]* | ?:[\\/]*) 23287 ac_cv_path_IM_COMPARE="$IM_COMPARE" # Let the user override the test with a path. 23288 ;; 23289 *) 23290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23291for as_dir in $PATH 23292do 23293 IFS=$as_save_IFS 23294 test -z "$as_dir" && as_dir=. 23295 for ac_exec_ext in '' $ac_executable_extensions; do 23296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23297 ac_cv_path_IM_COMPARE="$as_dir/$ac_word$ac_exec_ext" 23298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23299 break 2 23300 fi 23301done 23302 done 23303IFS=$as_save_IFS 23304 23305 test -z "$ac_cv_path_IM_COMPARE" && ac_cv_path_IM_COMPARE="notfound" 23306 ;; 23307esac 23308fi 23309IM_COMPARE=$ac_cv_path_IM_COMPARE 23310if test -n "$IM_COMPARE"; then 23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_COMPARE" >&5 23312$as_echo "$IM_COMPARE" >&6; } 23313else 23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23315$as_echo "no" >&6; } 23316fi 23317 23318 23319# Extract the first word of "composite", so it can be a program name with args. 23320set dummy composite; ac_word=$2 23321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23322$as_echo_n "checking for $ac_word... " >&6; } 23323if ${ac_cv_path_IM_COMPOSITE+:} false; then : 23324 $as_echo_n "(cached) " >&6 23325else 23326 case $IM_COMPOSITE in 23327 [\\/]* | ?:[\\/]*) 23328 ac_cv_path_IM_COMPOSITE="$IM_COMPOSITE" # Let the user override the test with a path. 23329 ;; 23330 *) 23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23332for as_dir in $PATH 23333do 23334 IFS=$as_save_IFS 23335 test -z "$as_dir" && as_dir=. 23336 for ac_exec_ext in '' $ac_executable_extensions; do 23337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23338 ac_cv_path_IM_COMPOSITE="$as_dir/$ac_word$ac_exec_ext" 23339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23340 break 2 23341 fi 23342done 23343 done 23344IFS=$as_save_IFS 23345 23346 test -z "$ac_cv_path_IM_COMPOSITE" && ac_cv_path_IM_COMPOSITE="notfound" 23347 ;; 23348esac 23349fi 23350IM_COMPOSITE=$ac_cv_path_IM_COMPOSITE 23351if test -n "$IM_COMPOSITE"; then 23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_COMPOSITE" >&5 23353$as_echo "$IM_COMPOSITE" >&6; } 23354else 23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23356$as_echo "no" >&6; } 23357fi 23358 23359 23360# Extract the first word of "convert", so it can be a program name with args. 23361set dummy convert; ac_word=$2 23362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23363$as_echo_n "checking for $ac_word... " >&6; } 23364if ${ac_cv_path_IM_CONVERT+:} false; then : 23365 $as_echo_n "(cached) " >&6 23366else 23367 case $IM_CONVERT in 23368 [\\/]* | ?:[\\/]*) 23369 ac_cv_path_IM_CONVERT="$IM_CONVERT" # Let the user override the test with a path. 23370 ;; 23371 *) 23372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23373for as_dir in $PATH 23374do 23375 IFS=$as_save_IFS 23376 test -z "$as_dir" && as_dir=. 23377 for ac_exec_ext in '' $ac_executable_extensions; do 23378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23379 ac_cv_path_IM_CONVERT="$as_dir/$ac_word$ac_exec_ext" 23380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23381 break 2 23382 fi 23383done 23384 done 23385IFS=$as_save_IFS 23386 23387 test -z "$ac_cv_path_IM_CONVERT" && ac_cv_path_IM_CONVERT="notfound" 23388 ;; 23389esac 23390fi 23391IM_CONVERT=$ac_cv_path_IM_CONVERT 23392if test -n "$IM_CONVERT"; then 23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_CONVERT" >&5 23394$as_echo "$IM_CONVERT" >&6; } 23395else 23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23397$as_echo "no" >&6; } 23398fi 23399 23400 23401# Extract the first word of "display", so it can be a program name with args. 23402set dummy display; ac_word=$2 23403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23404$as_echo_n "checking for $ac_word... " >&6; } 23405if ${ac_cv_path_IM_DISPLAY+:} false; then : 23406 $as_echo_n "(cached) " >&6 23407else 23408 case $IM_DISPLAY in 23409 [\\/]* | ?:[\\/]*) 23410 ac_cv_path_IM_DISPLAY="$IM_DISPLAY" # Let the user override the test with a path. 23411 ;; 23412 *) 23413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23414for as_dir in $PATH 23415do 23416 IFS=$as_save_IFS 23417 test -z "$as_dir" && as_dir=. 23418 for ac_exec_ext in '' $ac_executable_extensions; do 23419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23420 ac_cv_path_IM_DISPLAY="$as_dir/$ac_word$ac_exec_ext" 23421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23422 break 2 23423 fi 23424done 23425 done 23426IFS=$as_save_IFS 23427 23428 test -z "$ac_cv_path_IM_DISPLAY" && ac_cv_path_IM_DISPLAY="notfound" 23429 ;; 23430esac 23431fi 23432IM_DISPLAY=$ac_cv_path_IM_DISPLAY 23433if test -n "$IM_DISPLAY"; then 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_DISPLAY" >&5 23435$as_echo "$IM_DISPLAY" >&6; } 23436else 23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23438$as_echo "no" >&6; } 23439fi 23440 23441 23442# Extract the first word of "montage", so it can be a program name with args. 23443set dummy montage; ac_word=$2 23444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23445$as_echo_n "checking for $ac_word... " >&6; } 23446if ${ac_cv_path_IM_MONTAGE+:} false; then : 23447 $as_echo_n "(cached) " >&6 23448else 23449 case $IM_MONTAGE in 23450 [\\/]* | ?:[\\/]*) 23451 ac_cv_path_IM_MONTAGE="$IM_MONTAGE" # Let the user override the test with a path. 23452 ;; 23453 *) 23454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23455for as_dir in $PATH 23456do 23457 IFS=$as_save_IFS 23458 test -z "$as_dir" && as_dir=. 23459 for ac_exec_ext in '' $ac_executable_extensions; do 23460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23461 ac_cv_path_IM_MONTAGE="$as_dir/$ac_word$ac_exec_ext" 23462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23463 break 2 23464 fi 23465done 23466 done 23467IFS=$as_save_IFS 23468 23469 test -z "$ac_cv_path_IM_MONTAGE" && ac_cv_path_IM_MONTAGE="notfound" 23470 ;; 23471esac 23472fi 23473IM_MONTAGE=$ac_cv_path_IM_MONTAGE 23474if test -n "$IM_MONTAGE"; then 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_MONTAGE" >&5 23476$as_echo "$IM_MONTAGE" >&6; } 23477else 23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23479$as_echo "no" >&6; } 23480fi 23481 23482 23483missing_magick="" 23484test "${IM_ANIMATE}" != "notfound" || missing_magick="${missing_magick} animate" 23485test "${IM_COMPARE}" != "notfound" || missing_magick="${missing_magick} compare" 23486test "${IM_COMPOSITE}" != "notfound" || missing_magick="${missing_magick} composite" 23487test "${IM_CONVERT}" != "notfound" || missing_magick="${missing_magick} convert" 23488test "${IM_DISPLAY}" != "notfound" || missing_magick="${missing_magick} display" 23489test "${IM_MONTAGE}" != "notfound" || missing_magick="${missing_magick} montage" 23490 23491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all ImageMagick tools needed for the testsuite were found" >&5 23492$as_echo_n "checking if all ImageMagick tools needed for the testsuite were found... " >&6; } 23493if test "X${missing_magick}" != "X" ; then 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. The testsuite will be disabled because the following 23495tools from the ImageMagick suite were not found: 23496${missing_magick} 23497No loss in gerbv functionality should be experienced, you just will not 23498be able to run the regression testsuite. 23499" >&5 23500$as_echo "no. The testsuite will be disabled because the following 23501tools from the ImageMagick suite were not found: 23502${missing_magick} 23503No loss in gerbv functionality should be experienced, you just will not 23504be able to run the regression testsuite. 23505" >&6; } 23506 have_magick=no 23507else 23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23509$as_echo "yes" >&6; } 23510 have_magick=yes 23511fi 23512 if test x$have_magick = xyes; then 23513 HAVE_MAGICK_TRUE= 23514 HAVE_MAGICK_FALSE='#' 23515else 23516 HAVE_MAGICK_TRUE='#' 23517 HAVE_MAGICK_FALSE= 23518fi 23519 23520 23521# Check for pkg-config 23522# Extract the first word of "pkg-config", so it can be a program name with args. 23523set dummy pkg-config; ac_word=$2 23524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23525$as_echo_n "checking for $ac_word... " >&6; } 23526if ${ac_cv_path_PKG_CONFIG+:} false; then : 23527 $as_echo_n "(cached) " >&6 23528else 23529 case $PKG_CONFIG in 23530 [\\/]* | ?:[\\/]*) 23531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23532 ;; 23533 *) 23534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23535for as_dir in $PATH 23536do 23537 IFS=$as_save_IFS 23538 test -z "$as_dir" && as_dir=. 23539 for ac_exec_ext in '' $ac_executable_extensions; do 23540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23543 break 2 23544 fi 23545done 23546 done 23547IFS=$as_save_IFS 23548 23549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 23550 ;; 23551esac 23552fi 23553PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23554if test -n "$PKG_CONFIG"; then 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23556$as_echo "$PKG_CONFIG" >&6; } 23557else 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23559$as_echo "no" >&6; } 23560fi 23561 23562 23563if test "$PKG_CONFIG" = "no"; then 23564 as_fn_error $? "Cannot find pkg-config, make sure it is installed and in your PATH" "$LINENO" 5 23565fi 23566 23567# Check GSettings support 23568 23569 23570 # Check whether --enable-schemas-compile was given. 23571if test "${enable_schemas_compile+set}" = set; then : 23572 enableval=$enable_schemas_compile; case ${enableval} in 23573 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; 23574 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; 23575 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; 23576 esac 23577fi 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23588 if test -n "$ac_tool_prefix"; then 23589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23590set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23592$as_echo_n "checking for $ac_word... " >&6; } 23593if ${ac_cv_path_PKG_CONFIG+:} false; then : 23594 $as_echo_n "(cached) " >&6 23595else 23596 case $PKG_CONFIG in 23597 [\\/]* | ?:[\\/]*) 23598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23599 ;; 23600 *) 23601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23602for as_dir in $PATH 23603do 23604 IFS=$as_save_IFS 23605 test -z "$as_dir" && as_dir=. 23606 for ac_exec_ext in '' $ac_executable_extensions; do 23607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23610 break 2 23611 fi 23612done 23613 done 23614IFS=$as_save_IFS 23615 23616 ;; 23617esac 23618fi 23619PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23620if test -n "$PKG_CONFIG"; then 23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23622$as_echo "$PKG_CONFIG" >&6; } 23623else 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23625$as_echo "no" >&6; } 23626fi 23627 23628 23629fi 23630if test -z "$ac_cv_path_PKG_CONFIG"; then 23631 ac_pt_PKG_CONFIG=$PKG_CONFIG 23632 # Extract the first word of "pkg-config", so it can be a program name with args. 23633set dummy pkg-config; ac_word=$2 23634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23635$as_echo_n "checking for $ac_word... " >&6; } 23636if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 23637 $as_echo_n "(cached) " >&6 23638else 23639 case $ac_pt_PKG_CONFIG in 23640 [\\/]* | ?:[\\/]*) 23641 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23642 ;; 23643 *) 23644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23645for as_dir in $PATH 23646do 23647 IFS=$as_save_IFS 23648 test -z "$as_dir" && as_dir=. 23649 for ac_exec_ext in '' $ac_executable_extensions; do 23650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23651 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23653 break 2 23654 fi 23655done 23656 done 23657IFS=$as_save_IFS 23658 23659 ;; 23660esac 23661fi 23662ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23663if test -n "$ac_pt_PKG_CONFIG"; then 23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 23665$as_echo "$ac_pt_PKG_CONFIG" >&6; } 23666else 23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23668$as_echo "no" >&6; } 23669fi 23670 23671 if test "x$ac_pt_PKG_CONFIG" = x; then 23672 PKG_CONFIG="" 23673 else 23674 case $cross_compiling:$ac_tool_warned in 23675yes:) 23676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23678ac_tool_warned=yes ;; 23679esac 23680 PKG_CONFIG=$ac_pt_PKG_CONFIG 23681 fi 23682else 23683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23684fi 23685 23686fi 23687if test -n "$PKG_CONFIG"; then 23688 _pkg_min_version=0.16 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 23690$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 23691 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23693$as_echo "yes" >&6; } 23694 else 23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23696$as_echo "no" >&6; } 23697 PKG_CONFIG="" 23698 fi 23699fi 23700 gsettingsschemadir=${datadir}/glib-2.0/schemas 23701 23702 if test x$cross_compiling != xyes; then 23703 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` 23704 else 23705 # Extract the first word of "glib-compile-schemas", so it can be a program name with args. 23706set dummy glib-compile-schemas; ac_word=$2 23707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23708$as_echo_n "checking for $ac_word... " >&6; } 23709if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then : 23710 $as_echo_n "(cached) " >&6 23711else 23712 case $GLIB_COMPILE_SCHEMAS in 23713 [\\/]* | ?:[\\/]*) 23714 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path. 23715 ;; 23716 *) 23717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23718for as_dir in $PATH 23719do 23720 IFS=$as_save_IFS 23721 test -z "$as_dir" && as_dir=. 23722 for ac_exec_ext in '' $ac_executable_extensions; do 23723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23724 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext" 23725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23726 break 2 23727 fi 23728done 23729 done 23730IFS=$as_save_IFS 23731 23732 ;; 23733esac 23734fi 23735GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS 23736if test -n "$GLIB_COMPILE_SCHEMAS"; then 23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5 23738$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; } 23739else 23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23741$as_echo "no" >&6; } 23742fi 23743 23744 23745 fi 23746 23747 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then 23748 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5 23749 else 23750 : 23751 fi 23752 23753 GSETTINGS_RULES=' 23754.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas 23755 23756mostlyclean-am: clean-gsettings-schemas 23757 23758gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) 23759 23760%.gschema.valid: %.gschema.xml $(gsettings__enum_file) 23761 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@ 23762 23763all-am: $(gsettings_SCHEMAS:.xml=.valid) 23764uninstall-am: uninstall-gsettings-schemas 23765install-data-am: install-gsettings-schemas 23766 23767.SECONDARY: $(gsettings_SCHEMAS) 23768 23769install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) 23770 @$(NORMAL_INSTALL) 23771 if test -n "$^"; then \ 23772 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ 23773 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ 23774 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ 23775 fi 23776 23777uninstall-gsettings-schemas: 23778 @$(NORMAL_UNINSTALL) 23779 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ 23780 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ 23781 test -n "$$files" || exit 0; \ 23782 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ 23783 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files 23784 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) 23785 23786clean-gsettings-schemas: 23787 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) 23788 23789ifdef gsettings_ENUM_NAMESPACE 23790$(gsettings__enum_file): $(gsettings_ENUM_FILES) 23791 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@ 23792endif 23793' 23794 23795 23796 23797 23798 23799 23800 23801# 23802# 23803# 23804############################################################ 23805 23806############################################################ 23807# 23808# Library checks 23809# 23810 23811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 23812$as_echo_n "checking for sin in -lm... " >&6; } 23813if ${ac_cv_lib_m_sin+:} false; then : 23814 $as_echo_n "(cached) " >&6 23815else 23816 ac_check_lib_save_LIBS=$LIBS 23817LIBS="-lm $LIBS" 23818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23819/* end confdefs.h. */ 23820 23821/* Override any GCC internal prototype to avoid an error. 23822 Use char because int might match the return type of a GCC 23823 builtin and then its argument prototype would still apply. */ 23824#ifdef __cplusplus 23825extern "C" 23826#endif 23827char sin (); 23828int 23829main () 23830{ 23831return sin (); 23832 ; 23833 return 0; 23834} 23835_ACEOF 23836if ac_fn_c_try_link "$LINENO"; then : 23837 ac_cv_lib_m_sin=yes 23838else 23839 ac_cv_lib_m_sin=no 23840fi 23841rm -f core conftest.err conftest.$ac_objext \ 23842 conftest$ac_exeext conftest.$ac_ext 23843LIBS=$ac_check_lib_save_LIBS 23844fi 23845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 23846$as_echo "$ac_cv_lib_m_sin" >&6; } 23847if test "x$ac_cv_lib_m_sin" = xyes; then : 23848 cat >>confdefs.h <<_ACEOF 23849#define HAVE_LIBM 1 23850_ACEOF 23851 23852 LIBS="-lm $LIBS" 23853 23854fi 23855 23856 23857# used by src/dynload.c (part of tinyscheme) 23858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23859$as_echo_n "checking for dlopen in -ldl... " >&6; } 23860if ${ac_cv_lib_dl_dlopen+:} false; then : 23861 $as_echo_n "(cached) " >&6 23862else 23863 ac_check_lib_save_LIBS=$LIBS 23864LIBS="-ldl $LIBS" 23865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23866/* end confdefs.h. */ 23867 23868/* Override any GCC internal prototype to avoid an error. 23869 Use char because int might match the return type of a GCC 23870 builtin and then its argument prototype would still apply. */ 23871#ifdef __cplusplus 23872extern "C" 23873#endif 23874char dlopen (); 23875int 23876main () 23877{ 23878return dlopen (); 23879 ; 23880 return 0; 23881} 23882_ACEOF 23883if ac_fn_c_try_link "$LINENO"; then : 23884 ac_cv_lib_dl_dlopen=yes 23885else 23886 ac_cv_lib_dl_dlopen=no 23887fi 23888rm -f core conftest.err conftest.$ac_objext \ 23889 conftest$ac_exeext conftest.$ac_ext 23890LIBS=$ac_check_lib_save_LIBS 23891fi 23892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23893$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23894if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23895 cat >>confdefs.h <<_ACEOF 23896#define HAVE_LIBDL 1 23897_ACEOF 23898 23899 LIBS="-ldl $LIBS" 23900 23901fi 23902 23903 23904# 23905# 23906############################################################ 23907 23908############################################################ 23909# 23910# GTK and cairo checks 23911# 23912 23913 23914 23915pkg_failed=no 23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 23917$as_echo_n "checking for CAIRO... " >&6; } 23918 23919if test -n "$CAIRO_CFLAGS"; then 23920 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 23921 elif test -n "$PKG_CONFIG"; then 23922 if test -n "$PKG_CONFIG" && \ 23923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.0\""; } >&5 23924 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.0") 2>&5 23925 ac_status=$? 23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23927 test $ac_status = 0; }; then 23928 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2.0" 2>/dev/null` 23929 test "x$?" != "x0" && pkg_failed=yes 23930else 23931 pkg_failed=yes 23932fi 23933 else 23934 pkg_failed=untried 23935fi 23936if test -n "$CAIRO_LIBS"; then 23937 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 23938 elif test -n "$PKG_CONFIG"; then 23939 if test -n "$PKG_CONFIG" && \ 23940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.0\""; } >&5 23941 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.0") 2>&5 23942 ac_status=$? 23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23944 test $ac_status = 0; }; then 23945 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2.0" 2>/dev/null` 23946 test "x$?" != "x0" && pkg_failed=yes 23947else 23948 pkg_failed=yes 23949fi 23950 else 23951 pkg_failed=untried 23952fi 23953 23954 23955 23956if test $pkg_failed = yes; then 23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23958$as_echo "no" >&6; } 23959 23960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23961 _pkg_short_errors_supported=yes 23962else 23963 _pkg_short_errors_supported=no 23964fi 23965 if test $_pkg_short_errors_supported = yes; then 23966 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2.0" 2>&1` 23967 else 23968 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2.0" 2>&1` 23969 fi 23970 # Put the nasty error message in config.log where it belongs 23971 echo "$CAIRO_PKG_ERRORS" >&5 23972 23973 as_fn_error $? " 23974*** Cairo > 1.2.0 required but not found. *** 23975Please review the following errors: 23976$CAIRO_PKG_ERRORS" "$LINENO" 5 23977 23978elif test $pkg_failed = untried; then 23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23980$as_echo "no" >&6; } 23981 as_fn_error $? " 23982*** Cairo > 1.2.0 required but not found. *** 23983Please review the following errors: 23984$CAIRO_PKG_ERRORS" "$LINENO" 5 23985 23986else 23987 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 23988 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23990$as_echo "yes" >&6; } 23991 23992fi 23993 23994CAIRO_VER=`$PKG_CONFIG cairo --modversion` 23995 23996 23997pkg_failed=no 23998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 23999$as_echo_n "checking for GTK... " >&6; } 24000 24001if test -n "$GTK_CFLAGS"; then 24002 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 24003 elif test -n "$PKG_CONFIG"; then 24004 if test -n "$PKG_CONFIG" && \ 24005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5 24006 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5 24007 ac_status=$? 24008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24009 test $ac_status = 0; }; then 24010 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18.0" 2>/dev/null` 24011 test "x$?" != "x0" && pkg_failed=yes 24012else 24013 pkg_failed=yes 24014fi 24015 else 24016 pkg_failed=untried 24017fi 24018if test -n "$GTK_LIBS"; then 24019 pkg_cv_GTK_LIBS="$GTK_LIBS" 24020 elif test -n "$PKG_CONFIG"; then 24021 if test -n "$PKG_CONFIG" && \ 24022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5 24023 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5 24024 ac_status=$? 24025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24026 test $ac_status = 0; }; then 24027 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18.0" 2>/dev/null` 24028 test "x$?" != "x0" && pkg_failed=yes 24029else 24030 pkg_failed=yes 24031fi 24032 else 24033 pkg_failed=untried 24034fi 24035 24036 24037 24038if test $pkg_failed = yes; then 24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24040$as_echo "no" >&6; } 24041 24042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24043 _pkg_short_errors_supported=yes 24044else 24045 _pkg_short_errors_supported=no 24046fi 24047 if test $_pkg_short_errors_supported = yes; then 24048 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18.0" 2>&1` 24049 else 24050 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18.0" 2>&1` 24051 fi 24052 # Put the nasty error message in config.log where it belongs 24053 echo "$GTK_PKG_ERRORS" >&5 24054 24055 as_fn_error $? " 24056*** GTK >= 2.18.0 is required but was not found. Please review 24057the following errors: 24058$GTK_PKG_ERRORS" "$LINENO" 5 24059 24060elif test $pkg_failed = untried; then 24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24062$as_echo "no" >&6; } 24063 as_fn_error $? " 24064*** GTK >= 2.18.0 is required but was not found. Please review 24065the following errors: 24066$GTK_PKG_ERRORS" "$LINENO" 5 24067 24068else 24069 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 24070 GTK_LIBS=$pkg_cv_GTK_LIBS 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24072$as_echo "yes" >&6; } 24073 24074fi 24075 24076GTK_VER=`$PKG_CONFIG gtk+-2.0 --modversion` 24077 24078# 24079# 24080############################################################ 24081 24082############################################################ 24083# 24084# dxflib 24085with_dxf=no 24086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dxf should be enabled" >&5 24087$as_echo_n "checking if dxf should be enabled... " >&6; } 24088# Check whether --enable-dxf was given. 24089if test "${enable_dxf+set}" = set; then : 24090 enableval=$enable_dxf; 24091if test "X$enable_dxf " != "Xno" ; then 24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24093$as_echo "yes" >&6; } 24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldxflib" >&5 24095$as_echo_n "checking for main in -ldxflib... " >&6; } 24096if ${ac_cv_lib_dxflib_main+:} false; then : 24097 $as_echo_n "(cached) " >&6 24098else 24099 ac_check_lib_save_LIBS=$LIBS 24100LIBS="-ldxflib $LIBS" 24101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24102/* end confdefs.h. */ 24103 24104 24105int 24106main () 24107{ 24108return main (); 24109 ; 24110 return 0; 24111} 24112_ACEOF 24113if ac_fn_c_try_link "$LINENO"; then : 24114 ac_cv_lib_dxflib_main=yes 24115else 24116 ac_cv_lib_dxflib_main=no 24117fi 24118rm -f core conftest.err conftest.$ac_objext \ 24119 conftest$ac_exeext conftest.$ac_ext 24120LIBS=$ac_check_lib_save_LIBS 24121fi 24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dxflib_main" >&5 24123$as_echo "$ac_cv_lib_dxflib_main" >&6; } 24124if test "x$ac_cv_lib_dxflib_main" = xyes; then : 24125 cat >>confdefs.h <<_ACEOF 24126#define HAVE_LIBDXFLIB 1 24127_ACEOF 24128 24129 LIBS="-ldxflib $LIBS" 24130 24131else 24132 as_fn_error $? "You have requested DXF support but -ldxflib could not be found" "$LINENO" 5 24133fi 24134 24135 with_dxf=yes 24136 24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dxflib version" >&5 24138$as_echo_n "checking dxflib version... " >&6; } 24139 ac_ext=cpp 24140ac_cpp='$CXXCPP $CPPFLAGS' 24141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24144 24145 if test "$cross_compiling" = yes; then : 24146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24148as_fn_error $? "cannot run test program while cross compiling 24149See \`config.log' for more details" "$LINENO" 5; } 24150else 24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24152/* end confdefs.h. */ 24153 24154#include <string.h> 24155#include <dxflib/dl_dxf.h> 24156#ifndef DL_VERSION 24157# define DL_VERSION "undefined" 24158#endif 24159 24160int 24161main () 24162{ 24163 24164if (!strncmp("2.2.", DL_VERSION, 4) 24165 || !strncmp("2.5.", DL_VERSION, 4) 24166 || !strncmp("3.12.", DL_VERSION, 5)) 24167 return 0; 24168 24169return 1; 24170 24171 ; 24172 return 0; 24173} 24174_ACEOF 24175if ac_fn_cxx_try_run "$LINENO"; then : 24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24177$as_echo "yes" >&6; } 24178else 24179 as_fn_error $? "untested dxflib version" "$LINENO" 5 24180fi 24181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24182 conftest.$ac_objext conftest.beam conftest.$ac_ext 24183fi 24184 24185else 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24187$as_echo "no" >&6; } 24188fi 24189 24190else 24191 24192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24193$as_echo "no" >&6; } 24194 24195fi 24196 24197 if test x$with_dxf = xyes; then 24198 DXF_TRUE= 24199 DXF_FALSE='#' 24200else 24201 DXF_TRUE='#' 24202 DXF_FALSE= 24203fi 24204 24205 24206# 24207# 24208############################################################ 24209 24210############################################################ 24211# 24212# ElectricFence 24213with_efence=no 24214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ElectricFence debugging should be enabled" >&5 24215$as_echo_n "checking if ElectricFence debugging should be enabled... " >&6; } 24216# Check whether --enable-efence was given. 24217if test "${enable_efence+set}" = set; then : 24218 enableval=$enable_efence; 24219if test "X$enable_efence" != "Xno" ; then 24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24221$as_echo "yes" >&6; } 24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5 24223$as_echo_n "checking for main in -lefence... " >&6; } 24224if ${ac_cv_lib_efence_main+:} false; then : 24225 $as_echo_n "(cached) " >&6 24226else 24227 ac_check_lib_save_LIBS=$LIBS 24228LIBS="-lefence $LIBS" 24229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24230/* end confdefs.h. */ 24231 24232 24233int 24234main () 24235{ 24236return main (); 24237 ; 24238 return 0; 24239} 24240_ACEOF 24241if ac_fn_cxx_try_link "$LINENO"; then : 24242 ac_cv_lib_efence_main=yes 24243else 24244 ac_cv_lib_efence_main=no 24245fi 24246rm -f core conftest.err conftest.$ac_objext \ 24247 conftest$ac_exeext conftest.$ac_ext 24248LIBS=$ac_check_lib_save_LIBS 24249fi 24250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5 24251$as_echo "$ac_cv_lib_efence_main" >&6; } 24252if test "x$ac_cv_lib_efence_main" = xyes; then : 24253 cat >>confdefs.h <<_ACEOF 24254#define HAVE_LIBEFENCE 1 24255_ACEOF 24256 24257 LIBS="-lefence $LIBS" 24258 24259else 24260 as_fn_error $? "You have requested ElectricFence debugging but -lefence could not be found" "$LINENO" 5 24261fi 24262 24263 with_efence=yes 24264else 24265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24266$as_echo "no" >&6; } 24267fi 24268 24269else 24270 24271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24272$as_echo "no" >&6; } 24273 24274fi 24275 24276 24277# 24278# 24279############################################################ 24280 24281###################################################################### 24282# 24283# desktop integration 24284# 24285 24286# Extract the first word of "env", so it can be a program name with args. 24287set dummy env; ac_word=$2 24288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24289$as_echo_n "checking for $ac_word... " >&6; } 24290if ${ac_cv_path_SETENV+:} false; then : 24291 $as_echo_n "(cached) " >&6 24292else 24293 case $SETENV in 24294 [\\/]* | ?:[\\/]*) 24295 ac_cv_path_SETENV="$SETENV" # Let the user override the test with a path. 24296 ;; 24297 *) 24298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24299for as_dir in $PATH 24300do 24301 IFS=$as_save_IFS 24302 test -z "$as_dir" && as_dir=. 24303 for ac_exec_ext in '' $ac_executable_extensions; do 24304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24305 ac_cv_path_SETENV="$as_dir/$ac_word$ac_exec_ext" 24306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24307 break 2 24308 fi 24309done 24310 done 24311IFS=$as_save_IFS 24312 24313 ;; 24314esac 24315fi 24316SETENV=$ac_cv_path_SETENV 24317if test -n "$SETENV"; then 24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETENV" >&5 24319$as_echo "$SETENV" >&6; } 24320else 24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24322$as_echo "no" >&6; } 24323fi 24324 24325 24326# Extract the first word of "gtk-update-icon-path", so it can be a program name with args. 24327set dummy gtk-update-icon-path; ac_word=$2 24328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24329$as_echo_n "checking for $ac_word... " >&6; } 24330if ${ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN+:} false; then : 24331 $as_echo_n "(cached) " >&6 24332else 24333 case $GTK_UPDATE_ICON_CACHE_BIN in 24334 [\\/]* | ?:[\\/]*) 24335 ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="$GTK_UPDATE_ICON_CACHE_BIN" # Let the user override the test with a path. 24336 ;; 24337 *) 24338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24339for as_dir in $PATH 24340do 24341 IFS=$as_save_IFS 24342 test -z "$as_dir" && as_dir=. 24343 for ac_exec_ext in '' $ac_executable_extensions; do 24344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24345 ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="$as_dir/$ac_word$ac_exec_ext" 24346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24347 break 2 24348 fi 24349done 24350 done 24351IFS=$as_save_IFS 24352 24353 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN" && ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="true" 24354 ;; 24355esac 24356fi 24357GTK_UPDATE_ICON_CACHE_BIN=$ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN 24358if test -n "$GTK_UPDATE_ICON_CACHE_BIN"; then 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE_BIN" >&5 24360$as_echo "$GTK_UPDATE_ICON_CACHE_BIN" >&6; } 24361else 24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24363$as_echo "no" >&6; } 24364fi 24365 24366 24367 24368# Change default location for XDG files (MIME and Icons) 24369 24370# Check whether --with-xdgdatadir was given. 24371if test "${with_xdgdatadir+set}" = set; then : 24372 withval=$with_xdgdatadir; opt_xdgdatadir=$withval 24373fi 24374 24375 24376if test x$opt_xdgdatadir = x; then 24377 # path was not specified with --with-xdgdatadir 24378 XDGDATADIR='${datadir}' 24379else 24380 # path WAS specified with --with-xdgdatadir 24381 XDGDATADIR="$opt_xdgdatadir" 24382fi 24383 24384 24385# Check whether --enable-update-desktop-database was given. 24386if test "${enable_update_desktop_database+set}" = set; then : 24387 enableval=$enable_update_desktop_database; 24388else 24389 enable_update_desktop_database=yes 24390fi 24391 24392 24393 if test x$enable_update_desktop_database = xyes; then 24394 ENABLE_UPDATE_DESKTOP_DATABASE_TRUE= 24395 ENABLE_UPDATE_DESKTOP_DATABASE_FALSE='#' 24396else 24397 ENABLE_UPDATE_DESKTOP_DATABASE_TRUE='#' 24398 ENABLE_UPDATE_DESKTOP_DATABASE_FALSE= 24399fi 24400 24401 24402if test x$enable_update_desktop_database = xyes ; then 24403 # Extract the first word of "update-desktop-database", so it can be a program name with args. 24404set dummy update-desktop-database; ac_word=$2 24405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24406$as_echo_n "checking for $ac_word... " >&6; } 24407if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 24408 $as_echo_n "(cached) " >&6 24409else 24410 case $UPDATE_DESKTOP_DATABASE in 24411 [\\/]* | ?:[\\/]*) 24412 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 24413 ;; 24414 *) 24415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24416for as_dir in $PATH 24417do 24418 IFS=$as_save_IFS 24419 test -z "$as_dir" && as_dir=. 24420 for ac_exec_ext in '' $ac_executable_extensions; do 24421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24422 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 24423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24424 break 2 24425 fi 24426done 24427 done 24428IFS=$as_save_IFS 24429 24430 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 24431 ;; 24432esac 24433fi 24434UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 24435if test -n "$UPDATE_DESKTOP_DATABASE"; then 24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 24437$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 24438else 24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24440$as_echo "no" >&6; } 24441fi 24442 24443 24444 if test $UPDATE_DESKTOP_DATABASE = no; then 24445 as_fn_error $? "Cannot find update-desktop-database, make sure it is installed and in your PATH, or configure with --disable-update-desktop-database" "$LINENO" 5 24446 fi 24447fi 24448 24449# 24450###################################################################### 24451 24452 24453for ac_header in unistd.h getopt.h string.h sys/mman.h sys/types.h sys/stat.h stdlib.h regex.h libgen.h time.h 24454do : 24455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24456ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24458 cat >>confdefs.h <<_ACEOF 24459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24460_ACEOF 24461 24462fi 24463 24464done 24465 24466 24467for ac_func in getopt_long 24468do : 24469 ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 24470if test "x$ac_cv_func_getopt_long" = xyes; then : 24471 cat >>confdefs.h <<_ACEOF 24472#define HAVE_GETOPT_LONG 1 24473_ACEOF 24474 24475fi 24476done 24477 24478for ac_func in strlwr 24479do : 24480 ac_fn_cxx_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" 24481if test "x$ac_cv_func_strlwr" = xyes; then : 24482 cat >>confdefs.h <<_ACEOF 24483#define HAVE_STRLWR 1 24484_ACEOF 24485 24486fi 24487done 24488 24489 24490# for lrealpath.c 24491for ac_func in realpath canonicalize_file_name 24492do : 24493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24494ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 24495if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24496 cat >>confdefs.h <<_ACEOF 24497#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24498_ACEOF 24499 24500fi 24501done 24502 24503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5 24504$as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; } 24505if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false; then : 24506 $as_echo_n "(cached) " >&6 24507else 24508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24509/* end confdefs.h. */ 24510 24511#include "confdefs.h" 24512#include <stdio.h> 24513#ifdef HAVE_STRING_H 24514#include <string.h> 24515#else 24516#ifdef HAVE_STRINGS_H 24517#include <strings.h> 24518#endif 24519#endif 24520#ifdef HAVE_STDLIB_H 24521#include <stdlib.h> 24522#endif 24523#ifdef HAVE_UNISTD_H 24524#include <unistd.h> 24525#endif 24526int 24527main () 24528{ 24529char *(*pfn) = (char *(*)) canonicalize_file_name 24530 ; 24531 return 0; 24532} 24533_ACEOF 24534if ac_fn_cxx_try_compile "$LINENO"; then : 24535 libiberty_cv_decl_needed_canonicalize_file_name=no 24536else 24537 libiberty_cv_decl_needed_canonicalize_file_name=yes 24538fi 24539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24540fi 24541 24542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5 24543$as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; } 24544if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 24545 24546$as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h 24547 24548fi 24549 24550 24551 24552CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS $GTK_CFLAGS $CAIRO_CFLAGS" 24553LIBS="$LIBS $GDK_PIXBUF_LIBS $GTK_LIBS $CAIRO_LIBS" 24554 24555CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" 24556 24557############################################################ 24558# 24559# scheme configure stuff 24560# 24561 24562 24563$as_echo "#define STANDALONE 0" >>confdefs.h 24564 24565 24566$as_echo "#define USE_DL 1" >>confdefs.h 24567 24568 24569$as_echo "#define SUN_DL 1" >>confdefs.h 24570 24571 24572$as_echo "#define USE_MATH 1" >>confdefs.h 24573 24574 24575$as_echo "#define USE_ASCII_NAMES 1" >>confdefs.h 24576 24577 24578$as_echo "#define USE_COLON_HOOKS 1" >>confdefs.h 24579 24580 24581$as_echo "#define USE_STRING_HOOKS 1" >>confdefs.h 24582 24583 24584$as_echo "#define USE_INTERFACE 1" >>confdefs.h 24585 24586 24587# 24588# 24589############################################################ 24590 24591############################################################ 24592# 24593# Figure out relative paths 24594# 24595 24596# standard autoconf variables 24597CPPFLAGS="$CPPFLAGS -DPREFIXDIR=\\\"\${prefix}\\\"" 24598CPPFLAGS="$CPPFLAGS -DBINDIR=\\\"\${bindir}\\\"" 24599 24600# these relative paths will be used to help locate init.scm 24601# in the event that the installation directory is relocated. 24602 24603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to datadir relative path" >&5 24604$as_echo_n "checking for the bindir to datadir relative path... " >&6; } 24605for _lcl_i in bindir:datadir:bindir_to_datadir; do 24606 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'` 24607 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'` 24608 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'` 24609 _lcl_receval="$_lcl_from" 24610_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24611 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24612 _lcl_receval_old='' 24613 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24614 _lcl_receval_old="$_lcl_receval" 24615 eval _lcl_receval="\"$_lcl_receval\"" 24616 done 24617 echo "$_lcl_receval")` 24618 _lcl_receval="$_lcl_to" 24619_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24620 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24621 _lcl_receval_old='' 24622 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24623 _lcl_receval_old="$_lcl_receval" 24624 eval _lcl_receval="\"$_lcl_receval\"" 24625 done 24626 echo "$_lcl_receval")` 24627 _lcl_notation="$_lcl_from$_lcl_to" 24628 case ":$_lcl_from:" in 24629# change empty paths to '.' 24630 ::) _lcl_from='.' ;; 24631# strip trailing slashes 24632 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;; 24633 :*:) ;; 24634esac 24635# squeze repeated slashes 24636case '/' in 24637# if the path contains any backslashes, turn slashes into backslashes 24638 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24639# if the path contains slashes, also turn backslashes into slashes 24640 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24641esac 24642 case ":$_lcl_to:" in 24643# change empty paths to '.' 24644 ::) _lcl_to='.' ;; 24645# strip trailing slashes 24646 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;; 24647 :*:) ;; 24648esac 24649# squeze repeated slashes 24650case '/' in 24651# if the path contains any backslashes, turn slashes into backslashes 24652 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24653# if the path contains slashes, also turn backslashes into slashes 24654 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24655esac 24656 _lcl_common_prefix='' 24657_lcl_second_prefix_match='' 24658while test "$_lcl_second_prefix_match" != 0; do 24659 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"` 24660 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"` 24661 if test "$_lcl_second_prefix_match" != 0; then 24662 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then 24663 _lcl_common_prefix="$_lcl_first_prefix" 24664 else 24665 _lcl_second_prefix_match=0 24666 fi 24667 fi 24668done 24669_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"` 24670_lcl_first_rel='' 24671_lcl_tmp='xxx' 24672while test "$_lcl_tmp" != ''; do 24673 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"` 24674 if test "$_lcl_first_suffix" != ''; then 24675 _lcl_first_suffix="$_lcl_tmp" 24676 _lcl_first_rel="../$_lcl_first_rel" 24677 fi 24678done 24679_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"` 24680_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix" 24681 case ":$_lcl_result_tmp:" in 24682# change empty paths to '.' 24683 ::) _lcl_result_tmp='.' ;; 24684# strip trailing slashes 24685 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;; 24686 :*:) ;; 24687esac 24688# squeze repeated slashes 24689case "$_lcl_notation" in 24690# if the path contains any backslashes, turn slashes into backslashes 24691 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24692# if the path contains slashes, also turn backslashes into slashes 24693 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24694esac 24695 eval $_lcl_result_var='$_lcl_result_tmp' 24696done 24697case ":$bindir_to_datadir:" in 24698# change empty paths to '.' 24699 ::) bindir_to_datadir='.' ;; 24700# strip trailing slashes 24701 :*[\\/]:) bindir_to_datadir=`echo "$bindir_to_datadir" | sed 's,[\\/]*$,,'` ;; 24702 :*:) ;; 24703esac 24704# squeze repeated slashes 24705case $GERBV_DIR_SEPARATOR_S in 24706# if the path contains any backslashes, turn slashes into backslashes 24707 *\\*) bindir_to_datadir=`echo "$bindir_to_datadir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24708# if the path contains slashes, also turn backslashes into slashes 24709 *) bindir_to_datadir=`echo "$bindir_to_datadir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24710esac 24711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_datadir" >&5 24712$as_echo "$bindir_to_datadir" >&6; } 24713 24714cat >>confdefs.h <<_ACEOF 24715#define BINDIR_TO_DATADIR "$bindir_to_datadir" 24716_ACEOF 24717 24718 24719PKGDATADIR=${datadir}/${PACKAGE} 24720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to pkgdatadir relative path" >&5 24721$as_echo_n "checking for the bindir to pkgdatadir relative path... " >&6; } 24722for _lcl_i in bindir:PKGDATADIR:bindir_to_pkgdatadir; do 24723 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'` 24724 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'` 24725 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'` 24726 _lcl_receval="$_lcl_from" 24727_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24728 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24729 _lcl_receval_old='' 24730 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24731 _lcl_receval_old="$_lcl_receval" 24732 eval _lcl_receval="\"$_lcl_receval\"" 24733 done 24734 echo "$_lcl_receval")` 24735 _lcl_receval="$_lcl_to" 24736_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24737 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24738 _lcl_receval_old='' 24739 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24740 _lcl_receval_old="$_lcl_receval" 24741 eval _lcl_receval="\"$_lcl_receval\"" 24742 done 24743 echo "$_lcl_receval")` 24744 _lcl_notation="$_lcl_from$_lcl_to" 24745 case ":$_lcl_from:" in 24746# change empty paths to '.' 24747 ::) _lcl_from='.' ;; 24748# strip trailing slashes 24749 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;; 24750 :*:) ;; 24751esac 24752# squeze repeated slashes 24753case '/' in 24754# if the path contains any backslashes, turn slashes into backslashes 24755 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24756# if the path contains slashes, also turn backslashes into slashes 24757 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24758esac 24759 case ":$_lcl_to:" in 24760# change empty paths to '.' 24761 ::) _lcl_to='.' ;; 24762# strip trailing slashes 24763 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;; 24764 :*:) ;; 24765esac 24766# squeze repeated slashes 24767case '/' in 24768# if the path contains any backslashes, turn slashes into backslashes 24769 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24770# if the path contains slashes, also turn backslashes into slashes 24771 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24772esac 24773 _lcl_common_prefix='' 24774_lcl_second_prefix_match='' 24775while test "$_lcl_second_prefix_match" != 0; do 24776 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"` 24777 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"` 24778 if test "$_lcl_second_prefix_match" != 0; then 24779 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then 24780 _lcl_common_prefix="$_lcl_first_prefix" 24781 else 24782 _lcl_second_prefix_match=0 24783 fi 24784 fi 24785done 24786_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"` 24787_lcl_first_rel='' 24788_lcl_tmp='xxx' 24789while test "$_lcl_tmp" != ''; do 24790 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"` 24791 if test "$_lcl_first_suffix" != ''; then 24792 _lcl_first_suffix="$_lcl_tmp" 24793 _lcl_first_rel="../$_lcl_first_rel" 24794 fi 24795done 24796_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"` 24797_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix" 24798 case ":$_lcl_result_tmp:" in 24799# change empty paths to '.' 24800 ::) _lcl_result_tmp='.' ;; 24801# strip trailing slashes 24802 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;; 24803 :*:) ;; 24804esac 24805# squeze repeated slashes 24806case "$_lcl_notation" in 24807# if the path contains any backslashes, turn slashes into backslashes 24808 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24809# if the path contains slashes, also turn backslashes into slashes 24810 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24811esac 24812 eval $_lcl_result_var='$_lcl_result_tmp' 24813done 24814case ":$bindir_to_pkgdatadir:" in 24815# change empty paths to '.' 24816 ::) bindir_to_pkgdatadir='.' ;; 24817# strip trailing slashes 24818 :*[\\/]:) bindir_to_pkgdatadir=`echo "$bindir_to_pkgdatadir" | sed 's,[\\/]*$,,'` ;; 24819 :*:) ;; 24820esac 24821# squeze repeated slashes 24822case $GERBV_DIR_SEPARATOR_S in 24823# if the path contains any backslashes, turn slashes into backslashes 24824 *\\*) bindir_to_pkgdatadir=`echo "$bindir_to_pkgdatadir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24825# if the path contains slashes, also turn backslashes into slashes 24826 *) bindir_to_pkgdatadir=`echo "$bindir_to_pkgdatadir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24827esac 24828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_pkgdatadir" >&5 24829$as_echo "$bindir_to_pkgdatadir" >&6; } 24830 24831cat >>confdefs.h <<_ACEOF 24832#define BINDIR_TO_PKGDATADIR "$bindir_to_pkgdatadir" 24833_ACEOF 24834 24835 24836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to exec_prefix relative path" >&5 24837$as_echo_n "checking for the bindir to exec_prefix relative path... " >&6; } 24838for _lcl_i in bindir:exec_prefix:bindir_to_execprefix; do 24839 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'` 24840 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'` 24841 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'` 24842 _lcl_receval="$_lcl_from" 24843_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24844 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24845 _lcl_receval_old='' 24846 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24847 _lcl_receval_old="$_lcl_receval" 24848 eval _lcl_receval="\"$_lcl_receval\"" 24849 done 24850 echo "$_lcl_receval")` 24851 _lcl_receval="$_lcl_to" 24852_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 24853 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 24854 _lcl_receval_old='' 24855 while test "$_lcl_receval_old" != "$_lcl_receval"; do 24856 _lcl_receval_old="$_lcl_receval" 24857 eval _lcl_receval="\"$_lcl_receval\"" 24858 done 24859 echo "$_lcl_receval")` 24860 _lcl_notation="$_lcl_from$_lcl_to" 24861 case ":$_lcl_from:" in 24862# change empty paths to '.' 24863 ::) _lcl_from='.' ;; 24864# strip trailing slashes 24865 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;; 24866 :*:) ;; 24867esac 24868# squeze repeated slashes 24869case '/' in 24870# if the path contains any backslashes, turn slashes into backslashes 24871 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24872# if the path contains slashes, also turn backslashes into slashes 24873 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24874esac 24875 case ":$_lcl_to:" in 24876# change empty paths to '.' 24877 ::) _lcl_to='.' ;; 24878# strip trailing slashes 24879 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;; 24880 :*:) ;; 24881esac 24882# squeze repeated slashes 24883case '/' in 24884# if the path contains any backslashes, turn slashes into backslashes 24885 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24886# if the path contains slashes, also turn backslashes into slashes 24887 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24888esac 24889 _lcl_common_prefix='' 24890_lcl_second_prefix_match='' 24891while test "$_lcl_second_prefix_match" != 0; do 24892 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"` 24893 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"` 24894 if test "$_lcl_second_prefix_match" != 0; then 24895 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then 24896 _lcl_common_prefix="$_lcl_first_prefix" 24897 else 24898 _lcl_second_prefix_match=0 24899 fi 24900 fi 24901done 24902_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"` 24903_lcl_first_rel='' 24904_lcl_tmp='xxx' 24905while test "$_lcl_tmp" != ''; do 24906 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"` 24907 if test "$_lcl_first_suffix" != ''; then 24908 _lcl_first_suffix="$_lcl_tmp" 24909 _lcl_first_rel="../$_lcl_first_rel" 24910 fi 24911done 24912_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"` 24913_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix" 24914 case ":$_lcl_result_tmp:" in 24915# change empty paths to '.' 24916 ::) _lcl_result_tmp='.' ;; 24917# strip trailing slashes 24918 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;; 24919 :*:) ;; 24920esac 24921# squeze repeated slashes 24922case "$_lcl_notation" in 24923# if the path contains any backslashes, turn slashes into backslashes 24924 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24925# if the path contains slashes, also turn backslashes into slashes 24926 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24927esac 24928 eval $_lcl_result_var='$_lcl_result_tmp' 24929done 24930case ":$bindir_to_execprefix:" in 24931# change empty paths to '.' 24932 ::) bindir_to_execprefix='.' ;; 24933# strip trailing slashes 24934 :*[\\/]:) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,[\\/]*$,,'` ;; 24935 :*:) ;; 24936esac 24937# squeze repeated slashes 24938case $GERBV_DIR_SEPARATOR_S in 24939# if the path contains any backslashes, turn slashes into backslashes 24940 *\\*) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;; 24941# if the path contains slashes, also turn backslashes into slashes 24942 *) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;; 24943esac 24944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_execprefix" >&5 24945$as_echo "$bindir_to_execprefix" >&6; } 24946 24947cat >>confdefs.h <<_ACEOF 24948#define BINDIR_TO_EXECPREFIX "$bindir_to_execprefix" 24949_ACEOF 24950 24951 24952 24953# 24954# 24955############################################################ 24956 24957ac_config_files="$ac_config_files Makefile src/Makefile src/libgerbv.pc scheme/Makefile share/glib-2.0/schemas/Makefile desktop/Makefile doc/PNG-print/Makefile doc/eagle/Makefile doc/html/Makefile doc/example-code/Makefile doc/Makefile man/Makefile intl/Makefile po/Makefile.in example/eaglecad1/Makefile example/nollezappare/Makefile example/numpres/Makefile example/jj/Makefile example/dan/Makefile example/ekf2/Makefile example/exposure/Makefile example/am-test/Makefile example/cslk/Makefile example/orcad/Makefile example/Mentor-BoardStation/Makefile example/pick-and-place/Makefile example/polarity/Makefile example/thermal/Makefile example/trailing/Makefile example/Makefile test/Makefile test/golden/Makefile test/inputs/Makefile win32/Makefile" 24958 24959cat >confcache <<\_ACEOF 24960# This file is a shell script that caches the results of configure 24961# tests run on this system so they can be shared between configure 24962# scripts and configure runs, see configure's option --config-cache. 24963# It is not useful on other systems. If it contains results you don't 24964# want to keep, you may remove or edit it. 24965# 24966# config.status only pays attention to the cache file if you give it 24967# the --recheck option to rerun configure. 24968# 24969# `ac_cv_env_foo' variables (set or unset) will be overridden when 24970# loading this file, other *unset* `ac_cv_foo' will be assigned the 24971# following values. 24972 24973_ACEOF 24974 24975# The following way of writing the cache mishandles newlines in values, 24976# but we know of no workaround that is simple, portable, and efficient. 24977# So, we kill variables containing newlines. 24978# Ultrix sh set writes to stderr and can't be redirected directly, 24979# and sets the high bit in the cache file unless we assign to the vars. 24980( 24981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24982 eval ac_val=\$$ac_var 24983 case $ac_val in #( 24984 *${as_nl}*) 24985 case $ac_var in #( 24986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24988 esac 24989 case $ac_var in #( 24990 _ | IFS | as_nl) ;; #( 24991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24992 *) { eval $ac_var=; unset $ac_var;} ;; 24993 esac ;; 24994 esac 24995 done 24996 24997 (set) 2>&1 | 24998 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24999 *${as_nl}ac_space=\ *) 25000 # `set' does not quote correctly, so add quotes: double-quote 25001 # substitution turns \\\\ into \\, and sed turns \\ into \. 25002 sed -n \ 25003 "s/'/'\\\\''/g; 25004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25005 ;; #( 25006 *) 25007 # `set' quotes correctly as required by POSIX, so do not add quotes. 25008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25009 ;; 25010 esac | 25011 sort 25012) | 25013 sed ' 25014 /^ac_cv_env_/b end 25015 t clear 25016 :clear 25017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25018 t end 25019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25020 :end' >>confcache 25021if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25022 if test -w "$cache_file"; then 25023 if test "x$cache_file" != "x/dev/null"; then 25024 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25025$as_echo "$as_me: updating cache $cache_file" >&6;} 25026 if test ! -f "$cache_file" || test -h "$cache_file"; then 25027 cat confcache >"$cache_file" 25028 else 25029 case $cache_file in #( 25030 */* | ?:*) 25031 mv -f confcache "$cache_file"$$ && 25032 mv -f "$cache_file"$$ "$cache_file" ;; #( 25033 *) 25034 mv -f confcache "$cache_file" ;; 25035 esac 25036 fi 25037 fi 25038 else 25039 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25040$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25041 fi 25042fi 25043rm -f confcache 25044 25045test "x$prefix" = xNONE && prefix=$ac_default_prefix 25046# Let make expand exec_prefix. 25047test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25048 25049DEFS=-DHAVE_CONFIG_H 25050 25051ac_libobjs= 25052ac_ltlibobjs= 25053for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25054 # 1. Remove the extension, and $U if already installed. 25055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25058 # will be set to the directory where LIBOBJS objects are built. 25059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25061done 25062LIBOBJS=$ac_libobjs 25063 25064LTLIBOBJS=$ac_ltlibobjs 25065 25066 25067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 25068$as_echo_n "checking that generated files are newer than configure... " >&6; } 25069 if test -n "$am_sleep_pid"; then 25070 # Hide warnings about reused PIDs. 25071 wait $am_sleep_pid 2>/dev/null 25072 fi 25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 25074$as_echo "done" >&6; } 25075 if test -n "$EXEEXT"; then 25076 am__EXEEXT_TRUE= 25077 am__EXEEXT_FALSE='#' 25078else 25079 am__EXEEXT_TRUE='#' 25080 am__EXEEXT_FALSE= 25081fi 25082 25083if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25084 as_fn_error $? "conditional \"AMDEP\" was never defined. 25085Usually this means the macro was only invoked conditionally." "$LINENO" 5 25086fi 25087if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25089Usually this means the macro was only invoked conditionally." "$LINENO" 5 25090fi 25091if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 25092 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 25093Usually this means the macro was only invoked conditionally." "$LINENO" 5 25094fi 25095if test -z "${HAVE_PO4A_TRUE}" && test -z "${HAVE_PO4A_FALSE}"; then 25096 as_fn_error $? "conditional \"HAVE_PO4A\" was never defined. 25097Usually this means the macro was only invoked conditionally." "$LINENO" 5 25098fi 25099if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 25100 as_fn_error $? "conditional \"WIN32\" was never defined. 25101Usually this means the macro was only invoked conditionally." "$LINENO" 5 25102fi 25103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 25104$as_echo_n "checking that generated files are newer than configure... " >&6; } 25105 if test -n "$am_sleep_pid"; then 25106 # Hide warnings about reused PIDs. 25107 wait $am_sleep_pid 2>/dev/null 25108 fi 25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 25110$as_echo "done" >&6; } 25111if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25112 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25113Usually this means the macro was only invoked conditionally." "$LINENO" 5 25114fi 25115if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 25116 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 25117Usually this means the macro was only invoked conditionally." "$LINENO" 5 25118fi 25119if test -z "${HAVE_MAGICK_TRUE}" && test -z "${HAVE_MAGICK_FALSE}"; then 25120 as_fn_error $? "conditional \"HAVE_MAGICK\" was never defined. 25121Usually this means the macro was only invoked conditionally." "$LINENO" 5 25122fi 25123if test -z "${DXF_TRUE}" && test -z "${DXF_FALSE}"; then 25124 as_fn_error $? "conditional \"DXF\" was never defined. 25125Usually this means the macro was only invoked conditionally." "$LINENO" 5 25126fi 25127if test -z "${ENABLE_UPDATE_DESKTOP_DATABASE_TRUE}" && test -z "${ENABLE_UPDATE_DESKTOP_DATABASE_FALSE}"; then 25128 as_fn_error $? "conditional \"ENABLE_UPDATE_DESKTOP_DATABASE\" was never defined. 25129Usually this means the macro was only invoked conditionally." "$LINENO" 5 25130fi 25131 25132: "${CONFIG_STATUS=./config.status}" 25133ac_write_fail=0 25134ac_clean_files_save=$ac_clean_files 25135ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25136{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25137$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25138as_write_fail=0 25139cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25140#! $SHELL 25141# Generated by $as_me. 25142# Run this file to recreate the current configuration. 25143# Compiler output produced by configure, useful for debugging 25144# configure, is in config.log if it exists. 25145 25146debug=false 25147ac_cs_recheck=false 25148ac_cs_silent=false 25149 25150SHELL=\${CONFIG_SHELL-$SHELL} 25151export SHELL 25152_ASEOF 25153cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25154## -------------------- ## 25155## M4sh Initialization. ## 25156## -------------------- ## 25157 25158# Be more Bourne compatible 25159DUALCASE=1; export DUALCASE # for MKS sh 25160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 25161 emulate sh 25162 NULLCMD=: 25163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25164 # is contrary to our usage. Disable this feature. 25165 alias -g '${1+"$@"}'='"$@"' 25166 setopt NO_GLOB_SUBST 25167else 25168 case `(set -o) 2>/dev/null` in #( 25169 *posix*) : 25170 set -o posix ;; #( 25171 *) : 25172 ;; 25173esac 25174fi 25175 25176 25177as_nl=' 25178' 25179export as_nl 25180# Printing a long string crashes Solaris 7 /usr/bin/printf. 25181as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25184# Prefer a ksh shell builtin over an external printf program on Solaris, 25185# but without wasting forks for bash or zsh. 25186if test -z "$BASH_VERSION$ZSH_VERSION" \ 25187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 25188 as_echo='print -r --' 25189 as_echo_n='print -rn --' 25190elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25191 as_echo='printf %s\n' 25192 as_echo_n='printf %s' 25193else 25194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25196 as_echo_n='/usr/ucb/echo -n' 25197 else 25198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25199 as_echo_n_body='eval 25200 arg=$1; 25201 case $arg in #( 25202 *"$as_nl"*) 25203 expr "X$arg" : "X\\(.*\\)$as_nl"; 25204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25205 esac; 25206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25207 ' 25208 export as_echo_n_body 25209 as_echo_n='sh -c $as_echo_n_body as_echo' 25210 fi 25211 export as_echo_body 25212 as_echo='sh -c $as_echo_body as_echo' 25213fi 25214 25215# The user is always right. 25216if test "${PATH_SEPARATOR+set}" != set; then 25217 PATH_SEPARATOR=: 25218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25220 PATH_SEPARATOR=';' 25221 } 25222fi 25223 25224 25225# IFS 25226# We need space, tab and new line, in precisely that order. Quoting is 25227# there to prevent editors from complaining about space-tab. 25228# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25229# splitting by setting IFS to empty value.) 25230IFS=" "" $as_nl" 25231 25232# Find who we are. Look in the path if we contain no directory separator. 25233as_myself= 25234case $0 in #(( 25235 *[\\/]* ) as_myself=$0 ;; 25236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25237for as_dir in $PATH 25238do 25239 IFS=$as_save_IFS 25240 test -z "$as_dir" && as_dir=. 25241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25242 done 25243IFS=$as_save_IFS 25244 25245 ;; 25246esac 25247# We did not find ourselves, most probably we were run as `sh COMMAND' 25248# in which case we are not to be found in the path. 25249if test "x$as_myself" = x; then 25250 as_myself=$0 25251fi 25252if test ! -f "$as_myself"; then 25253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25254 exit 1 25255fi 25256 25257# Unset variables that we do not need and which cause bugs (e.g. in 25258# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25259# suppresses any "Segmentation fault" message there. '((' could 25260# trigger a bug in pdksh 5.2.14. 25261for as_var in BASH_ENV ENV MAIL MAILPATH 25262do eval test x\${$as_var+set} = xset \ 25263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25264done 25265PS1='$ ' 25266PS2='> ' 25267PS4='+ ' 25268 25269# NLS nuisances. 25270LC_ALL=C 25271export LC_ALL 25272LANGUAGE=C 25273export LANGUAGE 25274 25275# CDPATH. 25276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25277 25278 25279# as_fn_error STATUS ERROR [LINENO LOG_FD] 25280# ---------------------------------------- 25281# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25282# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25283# script with STATUS, using 1 if that was 0. 25284as_fn_error () 25285{ 25286 as_status=$1; test $as_status -eq 0 && as_status=1 25287 if test "$4"; then 25288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25290 fi 25291 $as_echo "$as_me: error: $2" >&2 25292 as_fn_exit $as_status 25293} # as_fn_error 25294 25295 25296# as_fn_set_status STATUS 25297# ----------------------- 25298# Set $? to STATUS, without forking. 25299as_fn_set_status () 25300{ 25301 return $1 25302} # as_fn_set_status 25303 25304# as_fn_exit STATUS 25305# ----------------- 25306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25307as_fn_exit () 25308{ 25309 set +e 25310 as_fn_set_status $1 25311 exit $1 25312} # as_fn_exit 25313 25314# as_fn_unset VAR 25315# --------------- 25316# Portably unset VAR. 25317as_fn_unset () 25318{ 25319 { eval $1=; unset $1;} 25320} 25321as_unset=as_fn_unset 25322# as_fn_append VAR VALUE 25323# ---------------------- 25324# Append the text in VALUE to the end of the definition contained in VAR. Take 25325# advantage of any shell optimizations that allow amortized linear growth over 25326# repeated appends, instead of the typical quadratic growth present in naive 25327# implementations. 25328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25329 eval 'as_fn_append () 25330 { 25331 eval $1+=\$2 25332 }' 25333else 25334 as_fn_append () 25335 { 25336 eval $1=\$$1\$2 25337 } 25338fi # as_fn_append 25339 25340# as_fn_arith ARG... 25341# ------------------ 25342# Perform arithmetic evaluation on the ARGs, and store the result in the 25343# global $as_val. Take advantage of shells that can avoid forks. The arguments 25344# must be portable across $(()) and expr. 25345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25346 eval 'as_fn_arith () 25347 { 25348 as_val=$(( $* )) 25349 }' 25350else 25351 as_fn_arith () 25352 { 25353 as_val=`expr "$@" || test $? -eq 1` 25354 } 25355fi # as_fn_arith 25356 25357 25358if expr a : '\(a\)' >/dev/null 2>&1 && 25359 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25360 as_expr=expr 25361else 25362 as_expr=false 25363fi 25364 25365if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25366 as_basename=basename 25367else 25368 as_basename=false 25369fi 25370 25371if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25372 as_dirname=dirname 25373else 25374 as_dirname=false 25375fi 25376 25377as_me=`$as_basename -- "$0" || 25378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25379 X"$0" : 'X\(//\)$' \| \ 25380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25381$as_echo X/"$0" | 25382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25383 s//\1/ 25384 q 25385 } 25386 /^X\/\(\/\/\)$/{ 25387 s//\1/ 25388 q 25389 } 25390 /^X\/\(\/\).*/{ 25391 s//\1/ 25392 q 25393 } 25394 s/.*/./; q'` 25395 25396# Avoid depending upon Character Ranges. 25397as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25399as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25400as_cr_digits='0123456789' 25401as_cr_alnum=$as_cr_Letters$as_cr_digits 25402 25403ECHO_C= ECHO_N= ECHO_T= 25404case `echo -n x` in #((((( 25405-n*) 25406 case `echo 'xy\c'` in 25407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25408 xy) ECHO_C='\c';; 25409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25410 ECHO_T=' ';; 25411 esac;; 25412*) 25413 ECHO_N='-n';; 25414esac 25415 25416rm -f conf$$ conf$$.exe conf$$.file 25417if test -d conf$$.dir; then 25418 rm -f conf$$.dir/conf$$.file 25419else 25420 rm -f conf$$.dir 25421 mkdir conf$$.dir 2>/dev/null 25422fi 25423if (echo >conf$$.file) 2>/dev/null; then 25424 if ln -s conf$$.file conf$$ 2>/dev/null; then 25425 as_ln_s='ln -s' 25426 # ... but there are two gotchas: 25427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25429 # In both cases, we have to default to `cp -pR'. 25430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25431 as_ln_s='cp -pR' 25432 elif ln conf$$.file conf$$ 2>/dev/null; then 25433 as_ln_s=ln 25434 else 25435 as_ln_s='cp -pR' 25436 fi 25437else 25438 as_ln_s='cp -pR' 25439fi 25440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25441rmdir conf$$.dir 2>/dev/null 25442 25443 25444# as_fn_mkdir_p 25445# ------------- 25446# Create "$as_dir" as a directory, including parents if necessary. 25447as_fn_mkdir_p () 25448{ 25449 25450 case $as_dir in #( 25451 -*) as_dir=./$as_dir;; 25452 esac 25453 test -d "$as_dir" || eval $as_mkdir_p || { 25454 as_dirs= 25455 while :; do 25456 case $as_dir in #( 25457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25458 *) as_qdir=$as_dir;; 25459 esac 25460 as_dirs="'$as_qdir' $as_dirs" 25461 as_dir=`$as_dirname -- "$as_dir" || 25462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25463 X"$as_dir" : 'X\(//\)[^/]' \| \ 25464 X"$as_dir" : 'X\(//\)$' \| \ 25465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25466$as_echo X"$as_dir" | 25467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25468 s//\1/ 25469 q 25470 } 25471 /^X\(\/\/\)[^/].*/{ 25472 s//\1/ 25473 q 25474 } 25475 /^X\(\/\/\)$/{ 25476 s//\1/ 25477 q 25478 } 25479 /^X\(\/\).*/{ 25480 s//\1/ 25481 q 25482 } 25483 s/.*/./; q'` 25484 test -d "$as_dir" && break 25485 done 25486 test -z "$as_dirs" || eval "mkdir $as_dirs" 25487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25488 25489 25490} # as_fn_mkdir_p 25491if mkdir -p . 2>/dev/null; then 25492 as_mkdir_p='mkdir -p "$as_dir"' 25493else 25494 test -d ./-p && rmdir ./-p 25495 as_mkdir_p=false 25496fi 25497 25498 25499# as_fn_executable_p FILE 25500# ----------------------- 25501# Test if FILE is an executable regular file. 25502as_fn_executable_p () 25503{ 25504 test -f "$1" && test -x "$1" 25505} # as_fn_executable_p 25506as_test_x='test -x' 25507as_executable_p=as_fn_executable_p 25508 25509# Sed expression to map a string onto a valid CPP name. 25510as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25511 25512# Sed expression to map a string onto a valid variable name. 25513as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25514 25515 25516exec 6>&1 25517## ----------------------------------- ## 25518## Main body of $CONFIG_STATUS script. ## 25519## ----------------------------------- ## 25520_ASEOF 25521test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25522 25523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25524# Save the log message, to keep $0 and so on meaningful, and to 25525# report actual input values of CONFIG_FILES etc. instead of their 25526# values after options handling. 25527ac_log=" 25528This file was extended by gerbv $as_me 2.7.0, which was 25529generated by GNU Autoconf 2.69. Invocation command line was 25530 25531 CONFIG_FILES = $CONFIG_FILES 25532 CONFIG_HEADERS = $CONFIG_HEADERS 25533 CONFIG_LINKS = $CONFIG_LINKS 25534 CONFIG_COMMANDS = $CONFIG_COMMANDS 25535 $ $0 $@ 25536 25537on `(hostname || uname -n) 2>/dev/null | sed 1q` 25538" 25539 25540_ACEOF 25541 25542case $ac_config_files in *" 25543"*) set x $ac_config_files; shift; ac_config_files=$*;; 25544esac 25545 25546case $ac_config_headers in *" 25547"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25548esac 25549 25550 25551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25552# Files that config.status was made for. 25553config_files="$ac_config_files" 25554config_headers="$ac_config_headers" 25555config_commands="$ac_config_commands" 25556 25557_ACEOF 25558 25559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25560ac_cs_usage="\ 25561\`$as_me' instantiates files and other configuration actions 25562from templates according to the current configuration. Unless the files 25563and actions are specified as TAGs, all are instantiated by default. 25564 25565Usage: $0 [OPTION]... [TAG]... 25566 25567 -h, --help print this help, then exit 25568 -V, --version print version number and configuration settings, then exit 25569 --config print configuration, then exit 25570 -q, --quiet, --silent 25571 do not print progress messages 25572 -d, --debug don't remove temporary files 25573 --recheck update $as_me by reconfiguring in the same conditions 25574 --file=FILE[:TEMPLATE] 25575 instantiate the configuration file FILE 25576 --header=FILE[:TEMPLATE] 25577 instantiate the configuration header FILE 25578 25579Configuration files: 25580$config_files 25581 25582Configuration headers: 25583$config_headers 25584 25585Configuration commands: 25586$config_commands 25587 25588Report bugs to the package provider." 25589 25590_ACEOF 25591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25592ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25593ac_cs_version="\\ 25594gerbv config.status 2.7.0 25595configured by $0, generated by GNU Autoconf 2.69, 25596 with options \\"\$ac_cs_config\\" 25597 25598Copyright (C) 2012 Free Software Foundation, Inc. 25599This config.status script is free software; the Free Software Foundation 25600gives unlimited permission to copy, distribute and modify it." 25601 25602ac_pwd='$ac_pwd' 25603srcdir='$srcdir' 25604INSTALL='$INSTALL' 25605MKDIR_P='$MKDIR_P' 25606AWK='$AWK' 25607test -n "\$AWK" || AWK=awk 25608_ACEOF 25609 25610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25611# The default lists apply if the user does not specify any file. 25612ac_need_defaults=: 25613while test $# != 0 25614do 25615 case $1 in 25616 --*=?*) 25617 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25619 ac_shift=: 25620 ;; 25621 --*=) 25622 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25623 ac_optarg= 25624 ac_shift=: 25625 ;; 25626 *) 25627 ac_option=$1 25628 ac_optarg=$2 25629 ac_shift=shift 25630 ;; 25631 esac 25632 25633 case $ac_option in 25634 # Handling of the options. 25635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25636 ac_cs_recheck=: ;; 25637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25638 $as_echo "$ac_cs_version"; exit ;; 25639 --config | --confi | --conf | --con | --co | --c ) 25640 $as_echo "$ac_cs_config"; exit ;; 25641 --debug | --debu | --deb | --de | --d | -d ) 25642 debug=: ;; 25643 --file | --fil | --fi | --f ) 25644 $ac_shift 25645 case $ac_optarg in 25646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25647 '') as_fn_error $? "missing file argument" ;; 25648 esac 25649 as_fn_append CONFIG_FILES " '$ac_optarg'" 25650 ac_need_defaults=false;; 25651 --header | --heade | --head | --hea ) 25652 $ac_shift 25653 case $ac_optarg in 25654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25655 esac 25656 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25657 ac_need_defaults=false;; 25658 --he | --h) 25659 # Conflict between --help and --header 25660 as_fn_error $? "ambiguous option: \`$1' 25661Try \`$0 --help' for more information.";; 25662 --help | --hel | -h ) 25663 $as_echo "$ac_cs_usage"; exit ;; 25664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25665 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25666 ac_cs_silent=: ;; 25667 25668 # This is an error. 25669 -*) as_fn_error $? "unrecognized option: \`$1' 25670Try \`$0 --help' for more information." ;; 25671 25672 *) as_fn_append ac_config_targets " $1" 25673 ac_need_defaults=false ;; 25674 25675 esac 25676 shift 25677done 25678 25679ac_configure_extra_args= 25680 25681if $ac_cs_silent; then 25682 exec 6>/dev/null 25683 ac_configure_extra_args="$ac_configure_extra_args --silent" 25684fi 25685 25686_ACEOF 25687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25688if \$ac_cs_recheck; then 25689 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25690 shift 25691 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25692 CONFIG_SHELL='$SHELL' 25693 export CONFIG_SHELL 25694 exec "\$@" 25695fi 25696 25697_ACEOF 25698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25699exec 5>>config.log 25700{ 25701 echo 25702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25703## Running $as_me. ## 25704_ASBOX 25705 $as_echo "$ac_log" 25706} >&5 25707 25708_ACEOF 25709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25710# 25711# INIT-COMMANDS 25712# 25713AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25714# Capture the value of obsolete ALL_LINGUAS because we need it to compute 25715 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 25716 # from automake < 1.5. 25717 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 25718 # Capture the value of LINGUAS because we need it to compute CATALOGS. 25719 LINGUAS="${LINGUAS-%UNSET%}" 25720 25721 25722 25723# The HP-UX ksh and POSIX shell print the target directory to stdout 25724# if CDPATH is set. 25725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25726 25727sed_quote_subst='$sed_quote_subst' 25728double_quote_subst='$double_quote_subst' 25729delay_variable_subst='$delay_variable_subst' 25730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25732enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25733enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25734pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25735enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25736shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25737SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25738ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25739PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25740host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25741host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25742host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25743build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25744build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25745build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25746SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25747Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25748GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25749EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25750FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25751LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25752NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25753LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25754max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25755ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25756exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25757lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25758lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25759lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25760lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25761lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25762reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25763reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25764OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25765deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25766file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25767file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25768want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25769DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25770sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25771AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25772AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25773archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25774STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25775RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25776old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25777old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25778old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25779lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25780CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25781CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25782compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25783GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25784lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25785lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25786lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 25787lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25788lt_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"`' 25789lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 25790nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25791lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25792lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 25793objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25794MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25795lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25796lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25797lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25798lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25799lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25800need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25801MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25802DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25803NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25804LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25805OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25806OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25807libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25808shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25809extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25810archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25811enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25812export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25813whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25814compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25815old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25816old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25817archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25818archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25819module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25820module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25821with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25822allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25823no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25824hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25825hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25826hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25827hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25828hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25829hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25830hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25831inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25832link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25833always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25834export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25835exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25836include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25837prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25838postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25839file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25840variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25841need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25842need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25843version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25844runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25845shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25846shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25847libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25848library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25849soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25850install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25851postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25852postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25853finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25854finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25855hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25856sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25857configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25858configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25859hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25860enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25861enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25862enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25863old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25864striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25865compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25866predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25867postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25868predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25869postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25870compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25871LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25872reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25873reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25874old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25875compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25876GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25877lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25878lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25879lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25880lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25881lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25882archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25883enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25884export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25885whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25886compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25887old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25888old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25889archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25890archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25891module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25892module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25893with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25894allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25895no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25896hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25897hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25898hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25899hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25900hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25901hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25902hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25903inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25904link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25905always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25906export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25907exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25908include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25909prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25910postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25911file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25912hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25913compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25914predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25915postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25916predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25917postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25918compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 25919 25920LTCC='$LTCC' 25921LTCFLAGS='$LTCFLAGS' 25922compiler='$compiler_DEFAULT' 25923 25924# A function that is used when there is no print builtin or printf. 25925func_fallback_echo () 25926{ 25927 eval 'cat <<_LTECHO_EOF 25928\$1 25929_LTECHO_EOF' 25930} 25931 25932# Quote evaled strings. 25933for var in SHELL \ 25934ECHO \ 25935PATH_SEPARATOR \ 25936SED \ 25937GREP \ 25938EGREP \ 25939FGREP \ 25940LD \ 25941NM \ 25942LN_S \ 25943lt_SP2NL \ 25944lt_NL2SP \ 25945reload_flag \ 25946OBJDUMP \ 25947deplibs_check_method \ 25948file_magic_cmd \ 25949file_magic_glob \ 25950want_nocaseglob \ 25951DLLTOOL \ 25952sharedlib_from_linklib_cmd \ 25953AR \ 25954AR_FLAGS \ 25955archiver_list_spec \ 25956STRIP \ 25957RANLIB \ 25958CC \ 25959CFLAGS \ 25960compiler \ 25961lt_cv_sys_global_symbol_pipe \ 25962lt_cv_sys_global_symbol_to_cdecl \ 25963lt_cv_sys_global_symbol_to_import \ 25964lt_cv_sys_global_symbol_to_c_name_address \ 25965lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25966lt_cv_nm_interface \ 25967nm_file_list_spec \ 25968lt_cv_truncate_bin \ 25969lt_prog_compiler_no_builtin_flag \ 25970lt_prog_compiler_pic \ 25971lt_prog_compiler_wl \ 25972lt_prog_compiler_static \ 25973lt_cv_prog_compiler_c_o \ 25974need_locks \ 25975MANIFEST_TOOL \ 25976DSYMUTIL \ 25977NMEDIT \ 25978LIPO \ 25979OTOOL \ 25980OTOOL64 \ 25981shrext_cmds \ 25982export_dynamic_flag_spec \ 25983whole_archive_flag_spec \ 25984compiler_needs_object \ 25985with_gnu_ld \ 25986allow_undefined_flag \ 25987no_undefined_flag \ 25988hardcode_libdir_flag_spec \ 25989hardcode_libdir_separator \ 25990exclude_expsyms \ 25991include_expsyms \ 25992file_list_spec \ 25993variables_saved_for_relink \ 25994libname_spec \ 25995library_names_spec \ 25996soname_spec \ 25997install_override_mode \ 25998finish_eval \ 25999old_striplib \ 26000striplib \ 26001compiler_lib_search_dirs \ 26002predep_objects \ 26003postdep_objects \ 26004predeps \ 26005postdeps \ 26006compiler_lib_search_path \ 26007LD_CXX \ 26008reload_flag_CXX \ 26009compiler_CXX \ 26010lt_prog_compiler_no_builtin_flag_CXX \ 26011lt_prog_compiler_pic_CXX \ 26012lt_prog_compiler_wl_CXX \ 26013lt_prog_compiler_static_CXX \ 26014lt_cv_prog_compiler_c_o_CXX \ 26015export_dynamic_flag_spec_CXX \ 26016whole_archive_flag_spec_CXX \ 26017compiler_needs_object_CXX \ 26018with_gnu_ld_CXX \ 26019allow_undefined_flag_CXX \ 26020no_undefined_flag_CXX \ 26021hardcode_libdir_flag_spec_CXX \ 26022hardcode_libdir_separator_CXX \ 26023exclude_expsyms_CXX \ 26024include_expsyms_CXX \ 26025file_list_spec_CXX \ 26026compiler_lib_search_dirs_CXX \ 26027predep_objects_CXX \ 26028postdep_objects_CXX \ 26029predeps_CXX \ 26030postdeps_CXX \ 26031compiler_lib_search_path_CXX; do 26032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26033 *[\\\\\\\`\\"\\\$]*) 26034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26035 ;; 26036 *) 26037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26038 ;; 26039 esac 26040done 26041 26042# Double-quote double-evaled strings. 26043for var in reload_cmds \ 26044old_postinstall_cmds \ 26045old_postuninstall_cmds \ 26046old_archive_cmds \ 26047extract_expsyms_cmds \ 26048old_archive_from_new_cmds \ 26049old_archive_from_expsyms_cmds \ 26050archive_cmds \ 26051archive_expsym_cmds \ 26052module_cmds \ 26053module_expsym_cmds \ 26054export_symbols_cmds \ 26055prelink_cmds \ 26056postlink_cmds \ 26057postinstall_cmds \ 26058postuninstall_cmds \ 26059finish_cmds \ 26060sys_lib_search_path_spec \ 26061configure_time_dlsearch_path \ 26062configure_time_lt_sys_library_path \ 26063reload_cmds_CXX \ 26064old_archive_cmds_CXX \ 26065old_archive_from_new_cmds_CXX \ 26066old_archive_from_expsyms_cmds_CXX \ 26067archive_cmds_CXX \ 26068archive_expsym_cmds_CXX \ 26069module_cmds_CXX \ 26070module_expsym_cmds_CXX \ 26071export_symbols_cmds_CXX \ 26072prelink_cmds_CXX \ 26073postlink_cmds_CXX; do 26074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26075 *[\\\\\\\`\\"\\\$]*) 26076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26077 ;; 26078 *) 26079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26080 ;; 26081 esac 26082done 26083 26084ac_aux_dir='$ac_aux_dir' 26085 26086# See if we are running on zsh, and set the options that allow our 26087# commands through without removal of \ escapes INIT. 26088if test -n "\${ZSH_VERSION+set}"; then 26089 setopt NO_GLOB_SUBST 26090fi 26091 26092 26093 PACKAGE='$PACKAGE' 26094 VERSION='$VERSION' 26095 RM='$RM' 26096 ofile='$ofile' 26097 26098 26099 26100 26101 26102 26103_ACEOF 26104 26105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26106 26107# Handling of arguments. 26108for ac_config_target in $ac_config_targets 26109do 26110 case $ac_config_target in 26111 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26112 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 26113 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 26114 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26116 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 26117 "src/libgerbv.pc") CONFIG_FILES="$CONFIG_FILES src/libgerbv.pc" ;; 26118 "scheme/Makefile") CONFIG_FILES="$CONFIG_FILES scheme/Makefile" ;; 26119 "share/glib-2.0/schemas/Makefile") CONFIG_FILES="$CONFIG_FILES share/glib-2.0/schemas/Makefile" ;; 26120 "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;; 26121 "doc/PNG-print/Makefile") CONFIG_FILES="$CONFIG_FILES doc/PNG-print/Makefile" ;; 26122 "doc/eagle/Makefile") CONFIG_FILES="$CONFIG_FILES doc/eagle/Makefile" ;; 26123 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 26124 "doc/example-code/Makefile") CONFIG_FILES="$CONFIG_FILES doc/example-code/Makefile" ;; 26125 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 26126 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 26127 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 26128 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 26129 "example/eaglecad1/Makefile") CONFIG_FILES="$CONFIG_FILES example/eaglecad1/Makefile" ;; 26130 "example/nollezappare/Makefile") CONFIG_FILES="$CONFIG_FILES example/nollezappare/Makefile" ;; 26131 "example/numpres/Makefile") CONFIG_FILES="$CONFIG_FILES example/numpres/Makefile" ;; 26132 "example/jj/Makefile") CONFIG_FILES="$CONFIG_FILES example/jj/Makefile" ;; 26133 "example/dan/Makefile") CONFIG_FILES="$CONFIG_FILES example/dan/Makefile" ;; 26134 "example/ekf2/Makefile") CONFIG_FILES="$CONFIG_FILES example/ekf2/Makefile" ;; 26135 "example/exposure/Makefile") CONFIG_FILES="$CONFIG_FILES example/exposure/Makefile" ;; 26136 "example/am-test/Makefile") CONFIG_FILES="$CONFIG_FILES example/am-test/Makefile" ;; 26137 "example/cslk/Makefile") CONFIG_FILES="$CONFIG_FILES example/cslk/Makefile" ;; 26138 "example/orcad/Makefile") CONFIG_FILES="$CONFIG_FILES example/orcad/Makefile" ;; 26139 "example/Mentor-BoardStation/Makefile") CONFIG_FILES="$CONFIG_FILES example/Mentor-BoardStation/Makefile" ;; 26140 "example/pick-and-place/Makefile") CONFIG_FILES="$CONFIG_FILES example/pick-and-place/Makefile" ;; 26141 "example/polarity/Makefile") CONFIG_FILES="$CONFIG_FILES example/polarity/Makefile" ;; 26142 "example/thermal/Makefile") CONFIG_FILES="$CONFIG_FILES example/thermal/Makefile" ;; 26143 "example/trailing/Makefile") CONFIG_FILES="$CONFIG_FILES example/trailing/Makefile" ;; 26144 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;; 26145 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 26146 "test/golden/Makefile") CONFIG_FILES="$CONFIG_FILES test/golden/Makefile" ;; 26147 "test/inputs/Makefile") CONFIG_FILES="$CONFIG_FILES test/inputs/Makefile" ;; 26148 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; 26149 26150 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26151 esac 26152done 26153 26154 26155# If the user did not use the arguments to specify the items to instantiate, 26156# then the envvar interface is used. Set only those that are not. 26157# We use the long form for the default assignment because of an extremely 26158# bizarre bug on SunOS 4.1.3. 26159if $ac_need_defaults; then 26160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26163fi 26164 26165# Have a temporary directory for convenience. Make it in the build tree 26166# simply because there is no reason against having it here, and in addition, 26167# creating and moving files from /tmp can sometimes cause problems. 26168# Hook for its removal unless debugging. 26169# Note that there is a small window in which the directory will not be cleaned: 26170# after its creation but before its name has been assigned to `$tmp'. 26171$debug || 26172{ 26173 tmp= ac_tmp= 26174 trap 'exit_status=$? 26175 : "${ac_tmp:=$tmp}" 26176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26177' 0 26178 trap 'as_fn_exit 1' 1 2 13 15 26179} 26180# Create a (secure) tmp directory for tmp files. 26181 26182{ 26183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26184 test -d "$tmp" 26185} || 26186{ 26187 tmp=./conf$$-$RANDOM 26188 (umask 077 && mkdir "$tmp") 26189} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26190ac_tmp=$tmp 26191 26192# Set up the scripts for CONFIG_FILES section. 26193# No need to generate them if there are no CONFIG_FILES. 26194# This happens for instance with `./config.status config.h'. 26195if test -n "$CONFIG_FILES"; then 26196 26197 26198ac_cr=`echo X | tr X '\015'` 26199# On cygwin, bash can eat \r inside `` if the user requested igncr. 26200# But we know of no other shell where ac_cr would be empty at this 26201# point, so we can use a bashism as a fallback. 26202if test "x$ac_cr" = x; then 26203 eval ac_cr=\$\'\\r\' 26204fi 26205ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26206if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26207 ac_cs_awk_cr='\\r' 26208else 26209 ac_cs_awk_cr=$ac_cr 26210fi 26211 26212echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26213_ACEOF 26214 26215 26216{ 26217 echo "cat >conf$$subs.awk <<_ACEOF" && 26218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26219 echo "_ACEOF" 26220} >conf$$subs.sh || 26221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26222ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26223ac_delim='%!_!# ' 26224for ac_last_try in false false false false false :; do 26225 . ./conf$$subs.sh || 26226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26227 26228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26229 if test $ac_delim_n = $ac_delim_num; then 26230 break 26231 elif $ac_last_try; then 26232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26233 else 26234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26235 fi 26236done 26237rm -f conf$$subs.sh 26238 26239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26240cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26241_ACEOF 26242sed -n ' 26243h 26244s/^/S["/; s/!.*/"]=/ 26245p 26246g 26247s/^[^!]*!// 26248:repl 26249t repl 26250s/'"$ac_delim"'$// 26251t delim 26252:nl 26253h 26254s/\(.\{148\}\)..*/\1/ 26255t more1 26256s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26257p 26258n 26259b repl 26260:more1 26261s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26262p 26263g 26264s/.\{148\}// 26265t nl 26266:delim 26267h 26268s/\(.\{148\}\)..*/\1/ 26269t more2 26270s/["\\]/\\&/g; s/^/"/; s/$/"/ 26271p 26272b 26273:more2 26274s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26275p 26276g 26277s/.\{148\}// 26278t delim 26279' <conf$$subs.awk | sed ' 26280/^[^""]/{ 26281 N 26282 s/\n// 26283} 26284' >>$CONFIG_STATUS || ac_write_fail=1 26285rm -f conf$$subs.awk 26286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26287_ACAWK 26288cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26289 for (key in S) S_is_set[key] = 1 26290 FS = "" 26291 26292} 26293{ 26294 line = $ 0 26295 nfields = split(line, field, "@") 26296 substed = 0 26297 len = length(field[1]) 26298 for (i = 2; i < nfields; i++) { 26299 key = field[i] 26300 keylen = length(key) 26301 if (S_is_set[key]) { 26302 value = S[key] 26303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26304 len += length(value) + length(field[++i]) 26305 substed = 1 26306 } else 26307 len += 1 + keylen 26308 } 26309 26310 print line 26311} 26312 26313_ACAWK 26314_ACEOF 26315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26316if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26318else 26319 cat 26320fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26322_ACEOF 26323 26324# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26325# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26326# trailing colons and then remove the whole line if VPATH becomes empty 26327# (actually we leave an empty line to preserve line numbers). 26328if test "x$srcdir" = x.; then 26329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26330h 26331s/// 26332s/^/:/ 26333s/[ ]*$/:/ 26334s/:\$(srcdir):/:/g 26335s/:\${srcdir}:/:/g 26336s/:@srcdir@:/:/g 26337s/^:*// 26338s/:*$// 26339x 26340s/\(=[ ]*\).*/\1/ 26341G 26342s/\n// 26343s/^[^=]*=[ ]*$// 26344}' 26345fi 26346 26347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26348fi # test -n "$CONFIG_FILES" 26349 26350# Set up the scripts for CONFIG_HEADERS section. 26351# No need to generate them if there are no CONFIG_HEADERS. 26352# This happens for instance with `./config.status Makefile'. 26353if test -n "$CONFIG_HEADERS"; then 26354cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26355BEGIN { 26356_ACEOF 26357 26358# Transform confdefs.h into an awk script `defines.awk', embedded as 26359# here-document in config.status, that substitutes the proper values into 26360# config.h.in to produce config.h. 26361 26362# Create a delimiter string that does not exist in confdefs.h, to ease 26363# handling of long lines. 26364ac_delim='%!_!# ' 26365for ac_last_try in false false :; do 26366 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26367 if test -z "$ac_tt"; then 26368 break 26369 elif $ac_last_try; then 26370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26371 else 26372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26373 fi 26374done 26375 26376# For the awk script, D is an array of macro values keyed by name, 26377# likewise P contains macro parameters if any. Preserve backslash 26378# newline sequences. 26379 26380ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26381sed -n ' 26382s/.\{148\}/&'"$ac_delim"'/g 26383t rset 26384:rset 26385s/^[ ]*#[ ]*define[ ][ ]*/ / 26386t def 26387d 26388:def 26389s/\\$// 26390t bsnl 26391s/["\\]/\\&/g 26392s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26393D["\1"]=" \3"/p 26394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26395d 26396:bsnl 26397s/["\\]/\\&/g 26398s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26399D["\1"]=" \3\\\\\\n"\\/p 26400t cont 26401s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26402t cont 26403d 26404:cont 26405n 26406s/.\{148\}/&'"$ac_delim"'/g 26407t clear 26408:clear 26409s/\\$// 26410t bsnlc 26411s/["\\]/\\&/g; s/^/"/; s/$/"/p 26412d 26413:bsnlc 26414s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26415b cont 26416' <confdefs.h | sed ' 26417s/'"$ac_delim"'/"\\\ 26418"/g' >>$CONFIG_STATUS || ac_write_fail=1 26419 26420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26421 for (key in D) D_is_set[key] = 1 26422 FS = "" 26423} 26424/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26425 line = \$ 0 26426 split(line, arg, " ") 26427 if (arg[1] == "#") { 26428 defundef = arg[2] 26429 mac1 = arg[3] 26430 } else { 26431 defundef = substr(arg[1], 2) 26432 mac1 = arg[2] 26433 } 26434 split(mac1, mac2, "(") #) 26435 macro = mac2[1] 26436 prefix = substr(line, 1, index(line, defundef) - 1) 26437 if (D_is_set[macro]) { 26438 # Preserve the white space surrounding the "#". 26439 print prefix "define", macro P[macro] D[macro] 26440 next 26441 } else { 26442 # Replace #undef with comments. This is necessary, for example, 26443 # in the case of _POSIX_SOURCE, which is predefined and required 26444 # on some systems where configure will not decide to define it. 26445 if (defundef == "undef") { 26446 print "/*", prefix defundef, macro, "*/" 26447 next 26448 } 26449 } 26450} 26451{ print } 26452_ACAWK 26453_ACEOF 26454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26456fi # test -n "$CONFIG_HEADERS" 26457 26458 26459eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26460shift 26461for ac_tag 26462do 26463 case $ac_tag in 26464 :[FHLC]) ac_mode=$ac_tag; continue;; 26465 esac 26466 case $ac_mode$ac_tag in 26467 :[FHL]*:*);; 26468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26469 :[FH]-) ac_tag=-:-;; 26470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26471 esac 26472 ac_save_IFS=$IFS 26473 IFS=: 26474 set x $ac_tag 26475 IFS=$ac_save_IFS 26476 shift 26477 ac_file=$1 26478 shift 26479 26480 case $ac_mode in 26481 :L) ac_source=$1;; 26482 :[FH]) 26483 ac_file_inputs= 26484 for ac_f 26485 do 26486 case $ac_f in 26487 -) ac_f="$ac_tmp/stdin";; 26488 *) # Look for the file first in the build tree, then in the source tree 26489 # (if the path is not absolute). The absolute path cannot be DOS-style, 26490 # because $ac_f cannot contain `:'. 26491 test -f "$ac_f" || 26492 case $ac_f in 26493 [\\/$]*) false;; 26494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26495 esac || 26496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26497 esac 26498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26499 as_fn_append ac_file_inputs " '$ac_f'" 26500 done 26501 26502 # Let's still pretend it is `configure' which instantiates (i.e., don't 26503 # use $as_me), people would be surprised to read: 26504 # /* config.h. Generated by config.status. */ 26505 configure_input='Generated from '` 26506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26507 `' by configure.' 26508 if test x"$ac_file" != x-; then 26509 configure_input="$ac_file. $configure_input" 26510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26511$as_echo "$as_me: creating $ac_file" >&6;} 26512 fi 26513 # Neutralize special characters interpreted by sed in replacement strings. 26514 case $configure_input in #( 26515 *\&* | *\|* | *\\* ) 26516 ac_sed_conf_input=`$as_echo "$configure_input" | 26517 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26518 *) ac_sed_conf_input=$configure_input;; 26519 esac 26520 26521 case $ac_tag in 26522 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26524 esac 26525 ;; 26526 esac 26527 26528 ac_dir=`$as_dirname -- "$ac_file" || 26529$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26530 X"$ac_file" : 'X\(//\)[^/]' \| \ 26531 X"$ac_file" : 'X\(//\)$' \| \ 26532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26533$as_echo X"$ac_file" | 26534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26535 s//\1/ 26536 q 26537 } 26538 /^X\(\/\/\)[^/].*/{ 26539 s//\1/ 26540 q 26541 } 26542 /^X\(\/\/\)$/{ 26543 s//\1/ 26544 q 26545 } 26546 /^X\(\/\).*/{ 26547 s//\1/ 26548 q 26549 } 26550 s/.*/./; q'` 26551 as_dir="$ac_dir"; as_fn_mkdir_p 26552 ac_builddir=. 26553 26554case "$ac_dir" in 26555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26556*) 26557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26558 # A ".." for each directory in $ac_dir_suffix. 26559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26560 case $ac_top_builddir_sub in 26561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26563 esac ;; 26564esac 26565ac_abs_top_builddir=$ac_pwd 26566ac_abs_builddir=$ac_pwd$ac_dir_suffix 26567# for backward compatibility: 26568ac_top_builddir=$ac_top_build_prefix 26569 26570case $srcdir in 26571 .) # We are building in place. 26572 ac_srcdir=. 26573 ac_top_srcdir=$ac_top_builddir_sub 26574 ac_abs_top_srcdir=$ac_pwd ;; 26575 [\\/]* | ?:[\\/]* ) # Absolute name. 26576 ac_srcdir=$srcdir$ac_dir_suffix; 26577 ac_top_srcdir=$srcdir 26578 ac_abs_top_srcdir=$srcdir ;; 26579 *) # Relative name. 26580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26581 ac_top_srcdir=$ac_top_build_prefix$srcdir 26582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26583esac 26584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26585 26586 26587 case $ac_mode in 26588 :F) 26589 # 26590 # CONFIG_FILE 26591 # 26592 26593 case $INSTALL in 26594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26596 esac 26597 ac_MKDIR_P=$MKDIR_P 26598 case $MKDIR_P in 26599 [\\/$]* | ?:[\\/]* ) ;; 26600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26601 esac 26602_ACEOF 26603 26604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26605# If the template does not know about datarootdir, expand it. 26606# FIXME: This hack should be removed a few years after 2.60. 26607ac_datarootdir_hack=; ac_datarootdir_seen= 26608ac_sed_dataroot=' 26609/datarootdir/ { 26610 p 26611 q 26612} 26613/@datadir@/p 26614/@docdir@/p 26615/@infodir@/p 26616/@localedir@/p 26617/@mandir@/p' 26618case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26619*datarootdir*) ac_datarootdir_seen=yes;; 26620*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26622$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26623_ACEOF 26624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26625 ac_datarootdir_hack=' 26626 s&@datadir@&$datadir&g 26627 s&@docdir@&$docdir&g 26628 s&@infodir@&$infodir&g 26629 s&@localedir@&$localedir&g 26630 s&@mandir@&$mandir&g 26631 s&\\\${datarootdir}&$datarootdir&g' ;; 26632esac 26633_ACEOF 26634 26635# Neutralize VPATH when `$srcdir' = `.'. 26636# Shell code in configure.ac might set extrasub. 26637# FIXME: do we really want to maintain this feature? 26638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26639ac_sed_extra="$ac_vpsub 26640$extrasub 26641_ACEOF 26642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26643:t 26644/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26645s|@configure_input@|$ac_sed_conf_input|;t t 26646s&@top_builddir@&$ac_top_builddir_sub&;t t 26647s&@top_build_prefix@&$ac_top_build_prefix&;t t 26648s&@srcdir@&$ac_srcdir&;t t 26649s&@abs_srcdir@&$ac_abs_srcdir&;t t 26650s&@top_srcdir@&$ac_top_srcdir&;t t 26651s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26652s&@builddir@&$ac_builddir&;t t 26653s&@abs_builddir@&$ac_abs_builddir&;t t 26654s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26655s&@INSTALL@&$ac_INSTALL&;t t 26656s&@MKDIR_P@&$ac_MKDIR_P&;t t 26657$ac_datarootdir_hack 26658" 26659eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26660 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26661 26662test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26663 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26665 "$ac_tmp/out"`; test -z "$ac_out"; } && 26666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26667which seems to be undefined. Please make sure it is defined" >&5 26668$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26669which seems to be undefined. Please make sure it is defined" >&2;} 26670 26671 rm -f "$ac_tmp/stdin" 26672 case $ac_file in 26673 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26674 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26675 esac \ 26676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26677 ;; 26678 :H) 26679 # 26680 # CONFIG_HEADER 26681 # 26682 if test x"$ac_file" != x-; then 26683 { 26684 $as_echo "/* $configure_input */" \ 26685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26686 } >"$ac_tmp/config.h" \ 26687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26688 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26690$as_echo "$as_me: $ac_file is unchanged" >&6;} 26691 else 26692 rm -f "$ac_file" 26693 mv "$ac_tmp/config.h" "$ac_file" \ 26694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26695 fi 26696 else 26697 $as_echo "/* $configure_input */" \ 26698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26699 || as_fn_error $? "could not create -" "$LINENO" 5 26700 fi 26701# Compute "$ac_file"'s index in $config_headers. 26702_am_arg="$ac_file" 26703_am_stamp_count=1 26704for _am_header in $config_headers :; do 26705 case $_am_header in 26706 $_am_arg | $_am_arg:* ) 26707 break ;; 26708 * ) 26709 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26710 esac 26711done 26712echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26713$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26714 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26715 X"$_am_arg" : 'X\(//\)$' \| \ 26716 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26717$as_echo X"$_am_arg" | 26718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26719 s//\1/ 26720 q 26721 } 26722 /^X\(\/\/\)[^/].*/{ 26723 s//\1/ 26724 q 26725 } 26726 /^X\(\/\/\)$/{ 26727 s//\1/ 26728 q 26729 } 26730 /^X\(\/\).*/{ 26731 s//\1/ 26732 q 26733 } 26734 s/.*/./; q'`/stamp-h$_am_stamp_count 26735 ;; 26736 26737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26738$as_echo "$as_me: executing $ac_file commands" >&6;} 26739 ;; 26740 esac 26741 26742 26743 case $ac_file$ac_mode in 26744 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26745 # Older Autoconf quotes --file arguments for eval, but not when files 26746 # are listed without --file. Let's play safe and only enable the eval 26747 # if we detect the quoting. 26748 case $CONFIG_FILES in 26749 *\'*) eval set x "$CONFIG_FILES" ;; 26750 *) set x $CONFIG_FILES ;; 26751 esac 26752 shift 26753 for mf 26754 do 26755 # Strip MF so we end up with the name of the file. 26756 mf=`echo "$mf" | sed -e 's/:.*$//'` 26757 # Check whether this is an Automake generated Makefile or not. 26758 # We used to match only the files named 'Makefile.in', but 26759 # some people rename them; so instead we look at the file content. 26760 # Grep'ing the first line is not enough: some people post-process 26761 # each Makefile.in and add a new line on top of each file to say so. 26762 # Grep'ing the whole file is not good either: AIX grep has a line 26763 # limit of 2048, but all sed's we know have understand at least 4000. 26764 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26765 dirpart=`$as_dirname -- "$mf" || 26766$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26767 X"$mf" : 'X\(//\)[^/]' \| \ 26768 X"$mf" : 'X\(//\)$' \| \ 26769 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26770$as_echo X"$mf" | 26771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26772 s//\1/ 26773 q 26774 } 26775 /^X\(\/\/\)[^/].*/{ 26776 s//\1/ 26777 q 26778 } 26779 /^X\(\/\/\)$/{ 26780 s//\1/ 26781 q 26782 } 26783 /^X\(\/\).*/{ 26784 s//\1/ 26785 q 26786 } 26787 s/.*/./; q'` 26788 else 26789 continue 26790 fi 26791 # Extract the definition of DEPDIR, am__include, and am__quote 26792 # from the Makefile without running 'make'. 26793 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26794 test -z "$DEPDIR" && continue 26795 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26796 test -z "$am__include" && continue 26797 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26798 # Find all dependency output files, they are included files with 26799 # $(DEPDIR) in their names. We invoke sed twice because it is the 26800 # simplest approach to changing $(DEPDIR) to its actual value in the 26801 # expansion. 26802 for file in `sed -n " 26803 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26804 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 26805 # Make sure the directory exists. 26806 test -f "$dirpart/$file" && continue 26807 fdir=`$as_dirname -- "$file" || 26808$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26809 X"$file" : 'X\(//\)[^/]' \| \ 26810 X"$file" : 'X\(//\)$' \| \ 26811 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26812$as_echo X"$file" | 26813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26814 s//\1/ 26815 q 26816 } 26817 /^X\(\/\/\)[^/].*/{ 26818 s//\1/ 26819 q 26820 } 26821 /^X\(\/\/\)$/{ 26822 s//\1/ 26823 q 26824 } 26825 /^X\(\/\).*/{ 26826 s//\1/ 26827 q 26828 } 26829 s/.*/./; q'` 26830 as_dir=$dirpart/$fdir; as_fn_mkdir_p 26831 # echo "creating $dirpart/$file" 26832 echo '# dummy' > "$dirpart/$file" 26833 done 26834 done 26835} 26836 ;; 26837 "po-directories":C) 26838 for ac_file in $CONFIG_FILES; do 26839 # Support "outfile[:infile[:infile...]]" 26840 case "$ac_file" in 26841 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 26842 esac 26843 # PO directories have a Makefile.in generated from Makefile.in.in. 26844 case "$ac_file" in */Makefile.in) 26845 # Adjust a relative srcdir. 26846 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 26847 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 26848 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 26849 # In autoconf-2.13 it is called $ac_given_srcdir. 26850 # In autoconf-2.50 it is called $srcdir. 26851 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 26852 case "$ac_given_srcdir" in 26853 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 26854 /*) top_srcdir="$ac_given_srcdir" ;; 26855 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 26856 esac 26857 # Treat a directory as a PO directory if and only if it has a 26858 # POTFILES.in file. This allows packages to have multiple PO 26859 # directories under different names or in different locations. 26860 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 26861 rm -f "$ac_dir/POTFILES" 26862 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 26863 gt_tab=`printf '\t'` 26864 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 26865 POMAKEFILEDEPS="POTFILES.in" 26866 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 26867 # on $ac_dir but don't depend on user-specified configuration 26868 # parameters. 26869 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 26870 # The LINGUAS file contains the set of available languages. 26871 if test -n "$OBSOLETE_ALL_LINGUAS"; then 26872 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 26873 fi 26874 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 26875 # Hide the ALL_LINGUAS assignment from automake < 1.5. 26876 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 26877 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 26878 else 26879 # The set of available languages was given in configure.in. 26880 # Hide the ALL_LINGUAS assignment from automake < 1.5. 26881 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 26882 fi 26883 # Compute POFILES 26884 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 26885 # Compute UPDATEPOFILES 26886 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 26887 # Compute DUMMYPOFILES 26888 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 26889 # Compute GMOFILES 26890 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 26891 case "$ac_given_srcdir" in 26892 .) srcdirpre= ;; 26893 *) srcdirpre='$(srcdir)/' ;; 26894 esac 26895 POFILES= 26896 UPDATEPOFILES= 26897 DUMMYPOFILES= 26898 GMOFILES= 26899 for lang in $ALL_LINGUAS; do 26900 POFILES="$POFILES $srcdirpre$lang.po" 26901 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 26902 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 26903 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 26904 done 26905 # CATALOGS depends on both $ac_dir and the user's LINGUAS 26906 # environment variable. 26907 INST_LINGUAS= 26908 if test -n "$ALL_LINGUAS"; then 26909 for presentlang in $ALL_LINGUAS; do 26910 useit=no 26911 if test "%UNSET%" != "$LINGUAS"; then 26912 desiredlanguages="$LINGUAS" 26913 else 26914 desiredlanguages="$ALL_LINGUAS" 26915 fi 26916 for desiredlang in $desiredlanguages; do 26917 # Use the presentlang catalog if desiredlang is 26918 # a. equal to presentlang, or 26919 # b. a variant of presentlang (because in this case, 26920 # presentlang can be used as a fallback for messages 26921 # which are not translated in the desiredlang catalog). 26922 case "$desiredlang" in 26923 "$presentlang"*) useit=yes;; 26924 esac 26925 done 26926 if test $useit = yes; then 26927 INST_LINGUAS="$INST_LINGUAS $presentlang" 26928 fi 26929 done 26930 fi 26931 CATALOGS= 26932 if test -n "$INST_LINGUAS"; then 26933 for lang in $INST_LINGUAS; do 26934 CATALOGS="$CATALOGS $lang.gmo" 26935 done 26936 fi 26937 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 26938 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 26939 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 26940 if test -f "$f"; then 26941 case "$f" in 26942 *.orig | *.bak | *~) ;; 26943 *) cat "$f" >> "$ac_dir/Makefile" ;; 26944 esac 26945 fi 26946 done 26947 fi 26948 ;; 26949 esac 26950 done ;; 26951 "libtool":C) 26952 26953 # See if we are running on zsh, and set the options that allow our 26954 # commands through without removal of \ escapes. 26955 if test -n "${ZSH_VERSION+set}"; then 26956 setopt NO_GLOB_SUBST 26957 fi 26958 26959 cfgfile=${ofile}T 26960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26961 $RM "$cfgfile" 26962 26963 cat <<_LT_EOF >> "$cfgfile" 26964#! $SHELL 26965# Generated automatically by $as_me ($PACKAGE) $VERSION 26966# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26967 26968# Provide generalized library-building support services. 26969# Written by Gordon Matzigkeit, 1996 26970 26971# Copyright (C) 2014 Free Software Foundation, Inc. 26972# This is free software; see the source for copying conditions. There is NO 26973# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 26974 26975# GNU Libtool is free software; you can redistribute it and/or modify 26976# it under the terms of the GNU General Public License as published by 26977# the Free Software Foundation; either version 2 of of the License, or 26978# (at your option) any later version. 26979# 26980# As a special exception to the GNU General Public License, if you 26981# distribute this file as part of a program or library that is built 26982# using GNU Libtool, you may include this file under the same 26983# distribution terms that you use for the rest of that program. 26984# 26985# GNU Libtool is distributed in the hope that it will be useful, but 26986# WITHOUT ANY WARRANTY; without even the implied warranty of 26987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26988# GNU General Public License for more details. 26989# 26990# You should have received a copy of the GNU General Public License 26991# along with this program. If not, see <http://www.gnu.org/licenses/>. 26992 26993 26994# The names of the tagged configurations supported by this script. 26995available_tags='CXX ' 26996 26997# Configured defaults for sys_lib_dlsearch_path munging. 26998: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 26999 27000# ### BEGIN LIBTOOL CONFIG 27001 27002# Which release of libtool.m4 was used? 27003macro_version=$macro_version 27004macro_revision=$macro_revision 27005 27006# Whether or not to build shared libraries. 27007build_libtool_libs=$enable_shared 27008 27009# Whether or not to build static libraries. 27010build_old_libs=$enable_static 27011 27012# What type of objects to build. 27013pic_mode=$pic_mode 27014 27015# Whether or not to optimize for fast installation. 27016fast_install=$enable_fast_install 27017 27018# Shared archive member basename,for filename based shared library versioning on AIX. 27019shared_archive_member_spec=$shared_archive_member_spec 27020 27021# Shell to use when invoking shell scripts. 27022SHELL=$lt_SHELL 27023 27024# An echo program that protects backslashes. 27025ECHO=$lt_ECHO 27026 27027# The PATH separator for the build system. 27028PATH_SEPARATOR=$lt_PATH_SEPARATOR 27029 27030# The host system. 27031host_alias=$host_alias 27032host=$host 27033host_os=$host_os 27034 27035# The build system. 27036build_alias=$build_alias 27037build=$build 27038build_os=$build_os 27039 27040# A sed program that does not truncate output. 27041SED=$lt_SED 27042 27043# Sed that helps us avoid accidentally triggering echo(1) options like -n. 27044Xsed="\$SED -e 1s/^X//" 27045 27046# A grep program that handles long lines. 27047GREP=$lt_GREP 27048 27049# An ERE matcher. 27050EGREP=$lt_EGREP 27051 27052# A literal string matcher. 27053FGREP=$lt_FGREP 27054 27055# A BSD- or MS-compatible name lister. 27056NM=$lt_NM 27057 27058# Whether we need soft or hard links. 27059LN_S=$lt_LN_S 27060 27061# What is the maximum length of a command? 27062max_cmd_len=$max_cmd_len 27063 27064# Object file suffix (normally "o"). 27065objext=$ac_objext 27066 27067# Executable file suffix (normally ""). 27068exeext=$exeext 27069 27070# whether the shell understands "unset". 27071lt_unset=$lt_unset 27072 27073# turn spaces into newlines. 27074SP2NL=$lt_lt_SP2NL 27075 27076# turn newlines into spaces. 27077NL2SP=$lt_lt_NL2SP 27078 27079# convert \$build file names to \$host format. 27080to_host_file_cmd=$lt_cv_to_host_file_cmd 27081 27082# convert \$build files to toolchain format. 27083to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27084 27085# An object symbol dumper. 27086OBJDUMP=$lt_OBJDUMP 27087 27088# Method to check whether dependent libraries are shared objects. 27089deplibs_check_method=$lt_deplibs_check_method 27090 27091# Command to use when deplibs_check_method = "file_magic". 27092file_magic_cmd=$lt_file_magic_cmd 27093 27094# How to find potential files when deplibs_check_method = "file_magic". 27095file_magic_glob=$lt_file_magic_glob 27096 27097# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27098want_nocaseglob=$lt_want_nocaseglob 27099 27100# DLL creation program. 27101DLLTOOL=$lt_DLLTOOL 27102 27103# Command to associate shared and link libraries. 27104sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27105 27106# The archiver. 27107AR=$lt_AR 27108 27109# Flags to create an archive. 27110AR_FLAGS=$lt_AR_FLAGS 27111 27112# How to feed a file listing to the archiver. 27113archiver_list_spec=$lt_archiver_list_spec 27114 27115# A symbol stripping program. 27116STRIP=$lt_STRIP 27117 27118# Commands used to install an old-style archive. 27119RANLIB=$lt_RANLIB 27120old_postinstall_cmds=$lt_old_postinstall_cmds 27121old_postuninstall_cmds=$lt_old_postuninstall_cmds 27122 27123# Whether to use a lock for old archive extraction. 27124lock_old_archive_extraction=$lock_old_archive_extraction 27125 27126# A C compiler. 27127LTCC=$lt_CC 27128 27129# LTCC compiler flags. 27130LTCFLAGS=$lt_CFLAGS 27131 27132# Take the output of nm and produce a listing of raw symbols and C names. 27133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27134 27135# Transform the output of nm in a proper C declaration. 27136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27137 27138# Transform the output of nm into a list of symbols to manually relocate. 27139global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 27140 27141# Transform the output of nm in a C name address pair. 27142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27143 27144# Transform the output of nm in a C name address pair when lib prefix is needed. 27145global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27146 27147# The name lister interface. 27148nm_interface=$lt_lt_cv_nm_interface 27149 27150# Specify filename containing input files for \$NM. 27151nm_file_list_spec=$lt_nm_file_list_spec 27152 27153# The root where to search for dependent libraries,and where our libraries should be installed. 27154lt_sysroot=$lt_sysroot 27155 27156# Command to truncate a binary pipe. 27157lt_truncate_bin=$lt_lt_cv_truncate_bin 27158 27159# The name of the directory that contains temporary libtool files. 27160objdir=$objdir 27161 27162# Used to examine libraries when file_magic_cmd begins with "file". 27163MAGIC_CMD=$MAGIC_CMD 27164 27165# Must we lock files when doing compilation? 27166need_locks=$lt_need_locks 27167 27168# Manifest tool. 27169MANIFEST_TOOL=$lt_MANIFEST_TOOL 27170 27171# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27172DSYMUTIL=$lt_DSYMUTIL 27173 27174# Tool to change global to local symbols on Mac OS X. 27175NMEDIT=$lt_NMEDIT 27176 27177# Tool to manipulate fat objects and archives on Mac OS X. 27178LIPO=$lt_LIPO 27179 27180# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27181OTOOL=$lt_OTOOL 27182 27183# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27184OTOOL64=$lt_OTOOL64 27185 27186# Old archive suffix (normally "a"). 27187libext=$libext 27188 27189# Shared library suffix (normally ".so"). 27190shrext_cmds=$lt_shrext_cmds 27191 27192# The commands to extract the exported symbol list from a shared archive. 27193extract_expsyms_cmds=$lt_extract_expsyms_cmds 27194 27195# Variables whose values should be saved in libtool wrapper scripts and 27196# restored at link time. 27197variables_saved_for_relink=$lt_variables_saved_for_relink 27198 27199# Do we need the "lib" prefix for modules? 27200need_lib_prefix=$need_lib_prefix 27201 27202# Do we need a version for libraries? 27203need_version=$need_version 27204 27205# Library versioning type. 27206version_type=$version_type 27207 27208# Shared library runtime path variable. 27209runpath_var=$runpath_var 27210 27211# Shared library path variable. 27212shlibpath_var=$shlibpath_var 27213 27214# Is shlibpath searched before the hard-coded library search path? 27215shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27216 27217# Format of library name prefix. 27218libname_spec=$lt_libname_spec 27219 27220# List of archive names. First name is the real one, the rest are links. 27221# The last name is the one that the linker finds with -lNAME 27222library_names_spec=$lt_library_names_spec 27223 27224# The coded name of the library, if different from the real name. 27225soname_spec=$lt_soname_spec 27226 27227# Permission mode override for installation of shared libraries. 27228install_override_mode=$lt_install_override_mode 27229 27230# Command to use after installation of a shared archive. 27231postinstall_cmds=$lt_postinstall_cmds 27232 27233# Command to use after uninstallation of a shared archive. 27234postuninstall_cmds=$lt_postuninstall_cmds 27235 27236# Commands used to finish a libtool library installation in a directory. 27237finish_cmds=$lt_finish_cmds 27238 27239# As "finish_cmds", except a single script fragment to be evaled but 27240# not shown. 27241finish_eval=$lt_finish_eval 27242 27243# Whether we should hardcode library paths into libraries. 27244hardcode_into_libs=$hardcode_into_libs 27245 27246# Compile-time system search path for libraries. 27247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27248 27249# Detected run-time system search path for libraries. 27250sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27251 27252# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 27253configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27254 27255# Whether dlopen is supported. 27256dlopen_support=$enable_dlopen 27257 27258# Whether dlopen of programs is supported. 27259dlopen_self=$enable_dlopen_self 27260 27261# Whether dlopen of statically linked programs is supported. 27262dlopen_self_static=$enable_dlopen_self_static 27263 27264# Commands to strip libraries. 27265old_striplib=$lt_old_striplib 27266striplib=$lt_striplib 27267 27268 27269# The linker used to build libraries. 27270LD=$lt_LD 27271 27272# How to create reloadable object files. 27273reload_flag=$lt_reload_flag 27274reload_cmds=$lt_reload_cmds 27275 27276# Commands used to build an old-style archive. 27277old_archive_cmds=$lt_old_archive_cmds 27278 27279# A language specific compiler. 27280CC=$lt_compiler 27281 27282# Is the compiler the GNU compiler? 27283with_gcc=$GCC 27284 27285# Compiler flag to turn off builtin functions. 27286no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27287 27288# Additional compiler flags for building library objects. 27289pic_flag=$lt_lt_prog_compiler_pic 27290 27291# How to pass a linker flag through the compiler. 27292wl=$lt_lt_prog_compiler_wl 27293 27294# Compiler flag to prevent dynamic linking. 27295link_static_flag=$lt_lt_prog_compiler_static 27296 27297# Does compiler simultaneously support -c and -o options? 27298compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27299 27300# Whether or not to add -lc for building shared libraries. 27301build_libtool_need_lc=$archive_cmds_need_lc 27302 27303# Whether or not to disallow shared libs when runtime libs are static. 27304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27305 27306# Compiler flag to allow reflexive dlopens. 27307export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27308 27309# Compiler flag to generate shared objects directly from archives. 27310whole_archive_flag_spec=$lt_whole_archive_flag_spec 27311 27312# Whether the compiler copes with passing no objects directly. 27313compiler_needs_object=$lt_compiler_needs_object 27314 27315# Create an old-style archive from a shared archive. 27316old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27317 27318# Create a temporary old-style archive to link instead of a shared archive. 27319old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27320 27321# Commands used to build a shared archive. 27322archive_cmds=$lt_archive_cmds 27323archive_expsym_cmds=$lt_archive_expsym_cmds 27324 27325# Commands used to build a loadable module if different from building 27326# a shared archive. 27327module_cmds=$lt_module_cmds 27328module_expsym_cmds=$lt_module_expsym_cmds 27329 27330# Whether we are building with GNU ld or not. 27331with_gnu_ld=$lt_with_gnu_ld 27332 27333# Flag that allows shared libraries with undefined symbols to be built. 27334allow_undefined_flag=$lt_allow_undefined_flag 27335 27336# Flag that enforces no undefined symbols. 27337no_undefined_flag=$lt_no_undefined_flag 27338 27339# Flag to hardcode \$libdir into a binary during linking. 27340# This must work even if \$libdir does not exist 27341hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27342 27343# Whether we need a single "-rpath" flag with a separated argument. 27344hardcode_libdir_separator=$lt_hardcode_libdir_separator 27345 27346# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27347# DIR into the resulting binary. 27348hardcode_direct=$hardcode_direct 27349 27350# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27351# DIR into the resulting binary and the resulting library dependency is 27352# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27353# library is relocated. 27354hardcode_direct_absolute=$hardcode_direct_absolute 27355 27356# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27357# into the resulting binary. 27358hardcode_minus_L=$hardcode_minus_L 27359 27360# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27361# into the resulting binary. 27362hardcode_shlibpath_var=$hardcode_shlibpath_var 27363 27364# Set to "yes" if building a shared library automatically hardcodes DIR 27365# into the library and all subsequent libraries and executables linked 27366# against it. 27367hardcode_automatic=$hardcode_automatic 27368 27369# Set to yes if linker adds runtime paths of dependent libraries 27370# to runtime path list. 27371inherit_rpath=$inherit_rpath 27372 27373# Whether libtool must link a program against all its dependency libraries. 27374link_all_deplibs=$link_all_deplibs 27375 27376# Set to "yes" if exported symbols are required. 27377always_export_symbols=$always_export_symbols 27378 27379# The commands to list exported symbols. 27380export_symbols_cmds=$lt_export_symbols_cmds 27381 27382# Symbols that should not be listed in the preloaded symbols. 27383exclude_expsyms=$lt_exclude_expsyms 27384 27385# Symbols that must always be exported. 27386include_expsyms=$lt_include_expsyms 27387 27388# Commands necessary for linking programs (against libraries) with templates. 27389prelink_cmds=$lt_prelink_cmds 27390 27391# Commands necessary for finishing linking programs. 27392postlink_cmds=$lt_postlink_cmds 27393 27394# Specify filename containing input files. 27395file_list_spec=$lt_file_list_spec 27396 27397# How to hardcode a shared library path into an executable. 27398hardcode_action=$hardcode_action 27399 27400# The directories searched by this compiler when creating a shared library. 27401compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 27402 27403# Dependencies to place before and after the objects being linked to 27404# create a shared library. 27405predep_objects=$lt_predep_objects 27406postdep_objects=$lt_postdep_objects 27407predeps=$lt_predeps 27408postdeps=$lt_postdeps 27409 27410# The library search path used internally by the compiler when linking 27411# a shared library. 27412compiler_lib_search_path=$lt_compiler_lib_search_path 27413 27414# ### END LIBTOOL CONFIG 27415 27416_LT_EOF 27417 27418 cat <<'_LT_EOF' >> "$cfgfile" 27419 27420# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 27421 27422# func_munge_path_list VARIABLE PATH 27423# ----------------------------------- 27424# VARIABLE is name of variable containing _space_ separated list of 27425# directories to be munged by the contents of PATH, which is string 27426# having a format: 27427# "DIR[:DIR]:" 27428# string "DIR[ DIR]" will be prepended to VARIABLE 27429# ":DIR[:DIR]" 27430# string "DIR[ DIR]" will be appended to VARIABLE 27431# "DIRP[:DIRP]::[DIRA:]DIRA" 27432# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 27433# "DIRA[ DIRA]" will be appended to VARIABLE 27434# "DIR[:DIR]" 27435# VARIABLE will be replaced by "DIR[ DIR]" 27436func_munge_path_list () 27437{ 27438 case x$2 in 27439 x) 27440 ;; 27441 *:) 27442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 27443 ;; 27444 x:*) 27445 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 27446 ;; 27447 *::*) 27448 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 27449 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 27450 ;; 27451 *) 27452 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 27453 ;; 27454 esac 27455} 27456 27457 27458# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 27459func_cc_basename () 27460{ 27461 for cc_temp in $*""; do 27462 case $cc_temp in 27463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27465 \-*) ;; 27466 *) break;; 27467 esac 27468 done 27469 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 27470} 27471 27472 27473# ### END FUNCTIONS SHARED WITH CONFIGURE 27474 27475_LT_EOF 27476 27477 case $host_os in 27478 aix3*) 27479 cat <<\_LT_EOF >> "$cfgfile" 27480# AIX sometimes has problems with the GCC collect2 program. For some 27481# reason, if we set the COLLECT_NAMES environment variable, the problems 27482# vanish in a puff of smoke. 27483if test set != "${COLLECT_NAMES+set}"; then 27484 COLLECT_NAMES= 27485 export COLLECT_NAMES 27486fi 27487_LT_EOF 27488 ;; 27489 esac 27490 27491 27492ltmain=$ac_aux_dir/ltmain.sh 27493 27494 27495 # We use sed instead of cat because bash on DJGPP gets confused if 27496 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27497 # text mode, it properly converts lines to CR/LF. This bash problem 27498 # is reportedly fixed, but why not run on old versions too? 27499 sed '$q' "$ltmain" >> "$cfgfile" \ 27500 || (rm -f "$cfgfile"; exit 1) 27501 27502 mv -f "$cfgfile" "$ofile" || 27503 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27504 chmod +x "$ofile" 27505 27506 27507 cat <<_LT_EOF >> "$ofile" 27508 27509# ### BEGIN LIBTOOL TAG CONFIG: CXX 27510 27511# The linker used to build libraries. 27512LD=$lt_LD_CXX 27513 27514# How to create reloadable object files. 27515reload_flag=$lt_reload_flag_CXX 27516reload_cmds=$lt_reload_cmds_CXX 27517 27518# Commands used to build an old-style archive. 27519old_archive_cmds=$lt_old_archive_cmds_CXX 27520 27521# A language specific compiler. 27522CC=$lt_compiler_CXX 27523 27524# Is the compiler the GNU compiler? 27525with_gcc=$GCC_CXX 27526 27527# Compiler flag to turn off builtin functions. 27528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27529 27530# Additional compiler flags for building library objects. 27531pic_flag=$lt_lt_prog_compiler_pic_CXX 27532 27533# How to pass a linker flag through the compiler. 27534wl=$lt_lt_prog_compiler_wl_CXX 27535 27536# Compiler flag to prevent dynamic linking. 27537link_static_flag=$lt_lt_prog_compiler_static_CXX 27538 27539# Does compiler simultaneously support -c and -o options? 27540compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27541 27542# Whether or not to add -lc for building shared libraries. 27543build_libtool_need_lc=$archive_cmds_need_lc_CXX 27544 27545# Whether or not to disallow shared libs when runtime libs are static. 27546allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27547 27548# Compiler flag to allow reflexive dlopens. 27549export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27550 27551# Compiler flag to generate shared objects directly from archives. 27552whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27553 27554# Whether the compiler copes with passing no objects directly. 27555compiler_needs_object=$lt_compiler_needs_object_CXX 27556 27557# Create an old-style archive from a shared archive. 27558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27559 27560# Create a temporary old-style archive to link instead of a shared archive. 27561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27562 27563# Commands used to build a shared archive. 27564archive_cmds=$lt_archive_cmds_CXX 27565archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27566 27567# Commands used to build a loadable module if different from building 27568# a shared archive. 27569module_cmds=$lt_module_cmds_CXX 27570module_expsym_cmds=$lt_module_expsym_cmds_CXX 27571 27572# Whether we are building with GNU ld or not. 27573with_gnu_ld=$lt_with_gnu_ld_CXX 27574 27575# Flag that allows shared libraries with undefined symbols to be built. 27576allow_undefined_flag=$lt_allow_undefined_flag_CXX 27577 27578# Flag that enforces no undefined symbols. 27579no_undefined_flag=$lt_no_undefined_flag_CXX 27580 27581# Flag to hardcode \$libdir into a binary during linking. 27582# This must work even if \$libdir does not exist 27583hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27584 27585# Whether we need a single "-rpath" flag with a separated argument. 27586hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27587 27588# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27589# DIR into the resulting binary. 27590hardcode_direct=$hardcode_direct_CXX 27591 27592# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27593# DIR into the resulting binary and the resulting library dependency is 27594# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27595# library is relocated. 27596hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27597 27598# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27599# into the resulting binary. 27600hardcode_minus_L=$hardcode_minus_L_CXX 27601 27602# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27603# into the resulting binary. 27604hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27605 27606# Set to "yes" if building a shared library automatically hardcodes DIR 27607# into the library and all subsequent libraries and executables linked 27608# against it. 27609hardcode_automatic=$hardcode_automatic_CXX 27610 27611# Set to yes if linker adds runtime paths of dependent libraries 27612# to runtime path list. 27613inherit_rpath=$inherit_rpath_CXX 27614 27615# Whether libtool must link a program against all its dependency libraries. 27616link_all_deplibs=$link_all_deplibs_CXX 27617 27618# Set to "yes" if exported symbols are required. 27619always_export_symbols=$always_export_symbols_CXX 27620 27621# The commands to list exported symbols. 27622export_symbols_cmds=$lt_export_symbols_cmds_CXX 27623 27624# Symbols that should not be listed in the preloaded symbols. 27625exclude_expsyms=$lt_exclude_expsyms_CXX 27626 27627# Symbols that must always be exported. 27628include_expsyms=$lt_include_expsyms_CXX 27629 27630# Commands necessary for linking programs (against libraries) with templates. 27631prelink_cmds=$lt_prelink_cmds_CXX 27632 27633# Commands necessary for finishing linking programs. 27634postlink_cmds=$lt_postlink_cmds_CXX 27635 27636# Specify filename containing input files. 27637file_list_spec=$lt_file_list_spec_CXX 27638 27639# How to hardcode a shared library path into an executable. 27640hardcode_action=$hardcode_action_CXX 27641 27642# The directories searched by this compiler when creating a shared library. 27643compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27644 27645# Dependencies to place before and after the objects being linked to 27646# create a shared library. 27647predep_objects=$lt_predep_objects_CXX 27648postdep_objects=$lt_postdep_objects_CXX 27649predeps=$lt_predeps_CXX 27650postdeps=$lt_postdeps_CXX 27651 27652# The library search path used internally by the compiler when linking 27653# a shared library. 27654compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27655 27656# ### END LIBTOOL TAG CONFIG: CXX 27657_LT_EOF 27658 27659 ;; 27660 27661 esac 27662done # for ac_tag 27663 27664 27665as_fn_exit 0 27666_ACEOF 27667ac_clean_files=$ac_clean_files_save 27668 27669test $ac_write_fail = 0 || 27670 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27671 27672 27673# configure is writing to config.log, and then calls config.status. 27674# config.status does its own redirection, appending to config.log. 27675# Unfortunately, on DOS this fails, as config.log is still kept open 27676# by configure, so config.status won't be able to write to it; its 27677# output is simply discarded. So we exec the FD to /dev/null, 27678# effectively closing config.log, so it can be properly (re)opened and 27679# appended to by config.status. When coming back to configure, we 27680# need to make the FD available again. 27681if test "$no_create" != yes; then 27682 ac_cs_success=: 27683 ac_config_status_args= 27684 test "$silent" = yes && 27685 ac_config_status_args="$ac_config_status_args --quiet" 27686 exec 5>/dev/null 27687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27688 exec 5>>config.log 27689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27690 # would make configure fail if this is the last instruction. 27691 $ac_cs_success || as_fn_exit 1 27692fi 27693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27695$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27696fi 27697 27698 27699expandedXDGDATADIR=`eval "echo $XDGDATADIR"` 27700 27701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 27702** Configuration summary for $PACKAGE $VERSION: 27703 27704 PREFIX: $PREFIX 27705 xdg data directory: $expandedXDGDATADIR 27706 27707 CPPFLAGS: $CPPFLAGS 27708 CFLAGS: $CFLAGS 27709 LDFLAGS: $LDFLAGS 27710 LIBS: $LIBS 27711 27712 GTK Version: $GTK_VER 27713 Cairo Version: $CAIRO_VER 27714 27715 DXF via dxflib: $with_dxf 27716 27717 Electric Fence Debugging: $with_efence 27718 27719 ImageMagick: $have_magick 27720 (for test suite) 27721" >&5 27722$as_echo " 27723** Configuration summary for $PACKAGE $VERSION: 27724 27725 PREFIX: $PREFIX 27726 xdg data directory: $expandedXDGDATADIR 27727 27728 CPPFLAGS: $CPPFLAGS 27729 CFLAGS: $CFLAGS 27730 LDFLAGS: $LDFLAGS 27731 LIBS: $LIBS 27732 27733 GTK Version: $GTK_VER 27734 Cairo Version: $CAIRO_VER 27735 27736 DXF via dxflib: $with_dxf 27737 27738 Electric Fence Debugging: $with_efence 27739 27740 ImageMagick: $have_magick 27741 (for test suite) 27742" >&6; } 27743 27744