1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xdvik 22.87. 4# 5# Report bugs to <tex-k@tug.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='xdvik' 592PACKAGE_TARNAME='xdvik' 593PACKAGE_VERSION='22.87' 594PACKAGE_STRING='xdvik 22.87' 595PACKAGE_BUGREPORT='tex-k@tug.org' 596PACKAGE_URL='' 597 598ac_unique_file="xdvi.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639subdirs 640XDVIK_VERSION 641FREETYPE2_RULE 642FREETYPE2_DEPEND 643FREETYPE2_LIBS 644FREETYPE2_INCLUDES 645FT2_CONFIG 646ZLIB_RULE 647ZLIB_DEPEND 648ZLIB_LIBS 649ZLIB_INCLUDES 650KPATHSEA_RULE 651KPATHSEA_DEPEND 652KPATHSEA_LIBS 653KPATHSEA_INCLUDES 654final_exec_name 655x_tool_libs 656x_ext_lib 657x_xpm_libs 658x_xmu_lib 659iconv_libs 660iconv_libpath 661iconv_includes 662x_linker_options 663X_EXTRA_LIBS 664X_LIBS 665X_PRE_LIBS 666X_CFLAGS 667XMKMF 668LIBOBJS 669ALLOCA 670FONTCONFIGCPPFLAGS 671PS_DEF 672CPP 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680ac_ct_AR 681AR 682LN_S 683NM 684ac_ct_DUMPBIN 685DUMPBIN 686LD 687FGREP 688EGREP 689GREP 690SED 691host_os 692host_vendor 693host_cpu 694host 695build_os 696build_vendor 697build_cpu 698build 699LIBTOOL 700OBJDUMP 701DLLTOOL 702AS 703WARNING_CFLAGS 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__quote 712am__include 713DEPDIR 714OBJEXT 715EXEEXT 716ac_ct_CC 717CPPFLAGS 718LDFLAGS 719CFLAGS 720CC 721MAINT 722MAINTAINER_MODE_FALSE 723MAINTAINER_MODE_TRUE 724AM_BACKSLASH 725AM_DEFAULT_VERBOSITY 726AM_DEFAULT_V 727AM_V 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751target_alias 752host_alias 753build_alias 754LIBS 755ECHO_T 756ECHO_N 757ECHO_C 758DEFS 759mandir 760localedir 761libdir 762psdir 763pdfdir 764dvidir 765htmldir 766infodir 767docdir 768oldincludedir 769includedir 770localstatedir 771sharedstatedir 772sysconfdir 773datadir 774datarootdir 775libexecdir 776sbindir 777bindir 778program_transform_name 779prefix 780exec_prefix 781PACKAGE_URL 782PACKAGE_BUGREPORT 783PACKAGE_STRING 784PACKAGE_VERSION 785PACKAGE_TARNAME 786PACKAGE_NAME 787PATH_SEPARATOR 788SHELL' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792enable_silent_rules 793enable_maintainer_mode 794enable_dependency_tracking 795enable_compiler_warnings 796enable_shared 797enable_static 798with_pic 799enable_fast_install 800with_gnu_ld 801with_sysroot 802enable_libtool_lock 803enable_largefile 804with_xdvi_x_toolkit 805with_ps 806enable_a4 807with_x 808enable_xi2_scrolling 809with_iconv 810with_iconv_include 811with_iconv_libdir 812enable_magick 813with_xpm 814with_xpm_includes 815with_xpm_libraries 816with_motif_include 817with_motif_libdir 818with_system_kpathsea 819with_kpathsea_includes 820with_kpathsea_libdir 821with_system_zlib 822with_zlib_includes 823with_zlib_libdir 824with_system_freetype2 825with_default_gs_lib_path 826with_default_dvips_path 827with_default_ps2pdf_path 828' 829 ac_precious_vars='build_alias 830host_alias 831target_alias 832CC 833CFLAGS 834LDFLAGS 835LIBS 836CPPFLAGS 837CPP 838XMKMF' 839ac_subdirs_all='squeeze' 840 841# Initialize some variables set by options. 842ac_init_help= 843ac_init_version=false 844ac_unrecognized_opts= 845ac_unrecognized_sep= 846# The variables have the same names as the options, with 847# dashes changed to underlines. 848cache_file=/dev/null 849exec_prefix=NONE 850no_create= 851no_recursion= 852prefix=NONE 853program_prefix=NONE 854program_suffix=NONE 855program_transform_name=s,x,x, 856silent= 857site= 858srcdir= 859verbose= 860x_includes=NONE 861x_libraries=NONE 862 863# Installation directory options. 864# These are left unexpanded so users can "make install exec_prefix=/foo" 865# and all the variables that are supposed to be based on exec_prefix 866# by default will actually change. 867# Use braces instead of parens because sh, perl, etc. also accept them. 868# (The list follows the same order as the GNU Coding Standards.) 869bindir='${exec_prefix}/bin' 870sbindir='${exec_prefix}/sbin' 871libexecdir='${exec_prefix}/libexec' 872datarootdir='${prefix}/share' 873datadir='${datarootdir}' 874sysconfdir='${prefix}/etc' 875sharedstatedir='${prefix}/com' 876localstatedir='${prefix}/var' 877includedir='${prefix}/include' 878oldincludedir='/usr/include' 879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 880infodir='${datarootdir}/info' 881htmldir='${docdir}' 882dvidir='${docdir}' 883pdfdir='${docdir}' 884psdir='${docdir}' 885libdir='${exec_prefix}/lib' 886localedir='${datarootdir}/locale' 887mandir='${datarootdir}/man' 888 889ac_prev= 890ac_dashdash= 891for ac_option 892do 893 # If the previous option needs an argument, assign it. 894 if test -n "$ac_prev"; then 895 eval $ac_prev=\$ac_option 896 ac_prev= 897 continue 898 fi 899 900 case $ac_option in 901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 902 *=) ac_optarg= ;; 903 *) ac_optarg=yes ;; 904 esac 905 906 # Accept the important Cygnus configure options, so we can diagnose typos. 907 908 case $ac_dashdash$ac_option in 909 --) 910 ac_dashdash=yes ;; 911 912 -bindir | --bindir | --bindi | --bind | --bin | --bi) 913 ac_prev=bindir ;; 914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 915 bindir=$ac_optarg ;; 916 917 -build | --build | --buil | --bui | --bu) 918 ac_prev=build_alias ;; 919 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 920 build_alias=$ac_optarg ;; 921 922 -cache-file | --cache-file | --cache-fil | --cache-fi \ 923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 924 ac_prev=cache_file ;; 925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 927 cache_file=$ac_optarg ;; 928 929 --config-cache | -C) 930 cache_file=config.cache ;; 931 932 -datadir | --datadir | --datadi | --datad) 933 ac_prev=datadir ;; 934 -datadir=* | --datadir=* | --datadi=* | --datad=*) 935 datadir=$ac_optarg ;; 936 937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 938 | --dataroo | --dataro | --datar) 939 ac_prev=datarootdir ;; 940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 942 datarootdir=$ac_optarg ;; 943 944 -disable-* | --disable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error $? "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=no ;; 959 960 -docdir | --docdir | --docdi | --doc | --do) 961 ac_prev=docdir ;; 962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 963 docdir=$ac_optarg ;; 964 965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 966 ac_prev=dvidir ;; 967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 968 dvidir=$ac_optarg ;; 969 970 -enable-* | --enable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error $? "invalid feature name: $ac_useropt" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=\$ac_optarg ;; 985 986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 988 | --exec | --exe | --ex) 989 ac_prev=exec_prefix ;; 990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 992 | --exec=* | --exe=* | --ex=*) 993 exec_prefix=$ac_optarg ;; 994 995 -gas | --gas | --ga | --g) 996 # Obsolete; use --with-gas. 997 with_gas=yes ;; 998 999 -help | --help | --hel | --he | -h) 1000 ac_init_help=long ;; 1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1002 ac_init_help=recursive ;; 1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1004 ac_init_help=short ;; 1005 1006 -host | --host | --hos | --ho) 1007 ac_prev=host_alias ;; 1008 -host=* | --host=* | --hos=* | --ho=*) 1009 host_alias=$ac_optarg ;; 1010 1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1012 ac_prev=htmldir ;; 1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1014 | --ht=*) 1015 htmldir=$ac_optarg ;; 1016 1017 -includedir | --includedir | --includedi | --included | --include \ 1018 | --includ | --inclu | --incl | --inc) 1019 ac_prev=includedir ;; 1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1021 | --includ=* | --inclu=* | --incl=* | --inc=*) 1022 includedir=$ac_optarg ;; 1023 1024 -infodir | --infodir | --infodi | --infod | --info | --inf) 1025 ac_prev=infodir ;; 1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1027 infodir=$ac_optarg ;; 1028 1029 -libdir | --libdir | --libdi | --libd) 1030 ac_prev=libdir ;; 1031 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1032 libdir=$ac_optarg ;; 1033 1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1035 | --libexe | --libex | --libe) 1036 ac_prev=libexecdir ;; 1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1038 | --libexe=* | --libex=* | --libe=*) 1039 libexecdir=$ac_optarg ;; 1040 1041 -localedir | --localedir | --localedi | --localed | --locale) 1042 ac_prev=localedir ;; 1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1044 localedir=$ac_optarg ;; 1045 1046 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1047 | --localstate | --localstat | --localsta | --localst | --locals) 1048 ac_prev=localstatedir ;; 1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1051 localstatedir=$ac_optarg ;; 1052 1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1054 ac_prev=mandir ;; 1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1056 mandir=$ac_optarg ;; 1057 1058 -nfp | --nfp | --nf) 1059 # Obsolete; use --without-fp. 1060 with_fp=no ;; 1061 1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1063 | --no-cr | --no-c | -n) 1064 no_create=yes ;; 1065 1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1068 no_recursion=yes ;; 1069 1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1072 | --oldin | --oldi | --old | --ol | --o) 1073 ac_prev=oldincludedir ;; 1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1077 oldincludedir=$ac_optarg ;; 1078 1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1080 ac_prev=prefix ;; 1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1082 prefix=$ac_optarg ;; 1083 1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1085 | --program-pre | --program-pr | --program-p) 1086 ac_prev=program_prefix ;; 1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1089 program_prefix=$ac_optarg ;; 1090 1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1092 | --program-suf | --program-su | --program-s) 1093 ac_prev=program_suffix ;; 1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1096 program_suffix=$ac_optarg ;; 1097 1098 -program-transform-name | --program-transform-name \ 1099 | --program-transform-nam | --program-transform-na \ 1100 | --program-transform-n | --program-transform- \ 1101 | --program-transform | --program-transfor \ 1102 | --program-transfo | --program-transf \ 1103 | --program-trans | --program-tran \ 1104 | --progr-tra | --program-tr | --program-t) 1105 ac_prev=program_transform_name ;; 1106 -program-transform-name=* | --program-transform-name=* \ 1107 | --program-transform-nam=* | --program-transform-na=* \ 1108 | --program-transform-n=* | --program-transform-=* \ 1109 | --program-transform=* | --program-transfor=* \ 1110 | --program-transfo=* | --program-transf=* \ 1111 | --program-trans=* | --program-tran=* \ 1112 | --progr-tra=* | --program-tr=* | --program-t=*) 1113 program_transform_name=$ac_optarg ;; 1114 1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1116 ac_prev=pdfdir ;; 1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1118 pdfdir=$ac_optarg ;; 1119 1120 -psdir | --psdir | --psdi | --psd | --ps) 1121 ac_prev=psdir ;; 1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1123 psdir=$ac_optarg ;; 1124 1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1126 | -silent | --silent | --silen | --sile | --sil) 1127 silent=yes ;; 1128 1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 ac_prev=sbindir ;; 1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 | --sbi=* | --sb=*) 1133 sbindir=$ac_optarg ;; 1134 1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1137 | --sharedst | --shareds | --shared | --share | --shar \ 1138 | --sha | --sh) 1139 ac_prev=sharedstatedir ;; 1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1143 | --sha=* | --sh=*) 1144 sharedstatedir=$ac_optarg ;; 1145 1146 -site | --site | --sit) 1147 ac_prev=site ;; 1148 -site=* | --site=* | --sit=*) 1149 site=$ac_optarg ;; 1150 1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1152 ac_prev=srcdir ;; 1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1154 srcdir=$ac_optarg ;; 1155 1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1157 | --syscon | --sysco | --sysc | --sys | --sy) 1158 ac_prev=sysconfdir ;; 1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1161 sysconfdir=$ac_optarg ;; 1162 1163 -target | --target | --targe | --targ | --tar | --ta | --t) 1164 ac_prev=target_alias ;; 1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1166 target_alias=$ac_optarg ;; 1167 1168 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1169 verbose=yes ;; 1170 1171 -version | --version | --versio | --versi | --vers | -V) 1172 ac_init_version=: ;; 1173 1174 -with-* | --with-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=\$ac_optarg ;; 1189 1190 -without-* | --without-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=no ;; 1205 1206 --x) 1207 # Obsolete; use --with-x. 1208 with_x=yes ;; 1209 1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 | --x-incl | --x-inc | --x-in | --x-i) 1212 ac_prev=x_includes ;; 1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 x_includes=$ac_optarg ;; 1216 1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 ac_prev=x_libraries ;; 1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 x_libraries=$ac_optarg ;; 1223 1224 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1225Try \`$0 --help' for more information" 1226 ;; 1227 1228 *=*) 1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1230 # Reject names that are not valid shell variable names. 1231 case $ac_envvar in #( 1232 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1234 esac 1235 eval $ac_envvar=\$ac_optarg 1236 export $ac_envvar ;; 1237 1238 *) 1239 # FIXME: should be removed in autoconf 3.0. 1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1244 ;; 1245 1246 esac 1247done 1248 1249if test -n "$ac_prev"; then 1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 as_fn_error $? "missing argument to $ac_option" 1252fi 1253 1254if test -n "$ac_unrecognized_opts"; then 1255 case $enable_option_checking in 1256 no) ;; 1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 esac 1260fi 1261 1262# Check all directory arguments for consistency. 1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 libdir localedir mandir 1267do 1268 eval ac_val=\$$ac_var 1269 # Remove trailing slashes. 1270 case $ac_val in 1271 */ ) 1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1273 eval $ac_var=\$ac_val;; 1274 esac 1275 # Be sure to have absolute directory names. 1276 case $ac_val in 1277 [\\/$]* | ?:[\\/]* ) continue;; 1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1279 esac 1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1281done 1282 1283# There might be people who depend on the old broken behavior: `$host' 1284# used to hold the argument of --host etc. 1285# FIXME: To remove some day. 1286build=$build_alias 1287host=$host_alias 1288target=$target_alias 1289 1290# FIXME: To remove some day. 1291if test "x$host_alias" != x; then 1292 if test "x$build_alias" = x; then 1293 cross_compiling=maybe 1294 elif test "x$build_alias" != "x$host_alias"; then 1295 cross_compiling=yes 1296 fi 1297fi 1298 1299ac_tool_prefix= 1300test -n "$host_alias" && ac_tool_prefix=$host_alias- 1301 1302test "$silent" = yes && exec 6>/dev/null 1303 1304 1305ac_pwd=`pwd` && test -n "$ac_pwd" && 1306ac_ls_di=`ls -di .` && 1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1308 as_fn_error $? "working directory cannot be determined" 1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1310 as_fn_error $? "pwd does not report name of working directory" 1311 1312 1313# Find the source files, if location was not specified. 1314if test -z "$srcdir"; then 1315 ac_srcdir_defaulted=yes 1316 # Try the directory containing this script, then the parent directory. 1317 ac_confdir=`$as_dirname -- "$as_myself" || 1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319 X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 X"$as_myself" : 'X\(//\)$' \| \ 1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322$as_echo X"$as_myself" | 1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)[^/].*/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\/\)$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\).*/{ 1336 s//\1/ 1337 q 1338 } 1339 s/.*/./; q'` 1340 srcdir=$ac_confdir 1341 if test ! -r "$srcdir/$ac_unique_file"; then 1342 srcdir=.. 1343 fi 1344else 1345 ac_srcdir_defaulted=no 1346fi 1347if test ! -r "$srcdir/$ac_unique_file"; then 1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1350fi 1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1352ac_abs_confdir=`( 1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1354 pwd)` 1355# When building in place, set srcdir=. 1356if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 srcdir=. 1358fi 1359# Remove unnecessary trailing slashes from srcdir. 1360# Double slashes in file names in object file debugging info 1361# mess up M-x gdb in Emacs. 1362case $srcdir in 1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364esac 1365for ac_var in $ac_precious_vars; do 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_env_${ac_var}_value=\$${ac_var} 1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370done 1371 1372# 1373# Report the --help message. 1374# 1375if test "$ac_init_help" = "long"; then 1376 # Omit some internal or obsolete options to make the list less imposing. 1377 # This message is too long to be a string in the A/UX 3.1 sh. 1378 cat <<_ACEOF 1379\`configure' configures xdvik 22.87 to adapt to many kinds of systems. 1380 1381Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1383To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1386Defaults for the options are specified in brackets. 1387 1388Configuration: 1389 -h, --help display this help and exit 1390 --help=short display options specific to this package 1391 --help=recursive display the short help of all the included packages 1392 -V, --version display version information and exit 1393 -q, --quiet, --silent do not print \`checking ...' messages 1394 --cache-file=FILE cache test results in FILE [disabled] 1395 -C, --config-cache alias for \`--cache-file=config.cache' 1396 -n, --no-create do not create output files 1397 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1398 1399Installation directories: 1400 --prefix=PREFIX install architecture-independent files in PREFIX 1401 [$ac_default_prefix] 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 [PREFIX] 1404 1405By default, \`make install' will install all the files in 1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1407an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1408for instance \`--prefix=\$HOME'. 1409 1410For better control, use the options below. 1411 1412Fine tuning of the installation directories: 1413 --bindir=DIR user executables [EPREFIX/bin] 1414 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --libdir=DIR object code libraries [EPREFIX/lib] 1420 --includedir=DIR C header files [PREFIX/include] 1421 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1424 --infodir=DIR info documentation [DATAROOTDIR/info] 1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1426 --mandir=DIR man documentation [DATAROOTDIR/man] 1427 --docdir=DIR documentation root [DATAROOTDIR/doc/xdvik] 1428 --htmldir=DIR html documentation [DOCDIR] 1429 --dvidir=DIR dvi documentation [DOCDIR] 1430 --pdfdir=DIR pdf documentation [DOCDIR] 1431 --psdir=DIR ps documentation [DOCDIR] 1432_ACEOF 1433 1434 cat <<\_ACEOF 1435 1436Program names: 1437 --program-prefix=PREFIX prepend PREFIX to installed program names 1438 --program-suffix=SUFFIX append SUFFIX to installed program names 1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1440 1441X features: 1442 --x-includes=DIR X include files are in DIR 1443 --x-libraries=DIR X library files are in DIR 1444 1445System types: 1446 --build=BUILD configure for building on BUILD [guessed] 1447 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1448_ACEOF 1449fi 1450 1451if test -n "$ac_init_help"; then 1452 case $ac_init_help in 1453 short | recursive ) echo "Configuration of xdvik 22.87:";; 1454 esac 1455 cat <<\_ACEOF 1456 1457Optional Features: 1458 --disable-option-checking ignore unrecognized --enable/--with options 1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1461 --enable-silent-rules less verbose build output (undo: "make V=1") 1462 --disable-silent-rules verbose build output (undo: "make V=0") 1463 --enable-maintainer-mode 1464 enable make rules and dependencies not useful (and 1465 sometimes confusing) to the casual installer 1466 --enable-dependency-tracking 1467 do not reject slow dependency extractors 1468 --disable-dependency-tracking 1469 speeds up one-time build 1470 --enable-compiler-warnings=[no|min|yes|max|all] 1471 Turn on compiler warnings [default: yes if 1472 maintainer-mode, min otherwise] 1473 --enable-shared[=PKGS] build shared libraries [default=yes] 1474 --enable-static[=PKGS] build static libraries [default=yes] 1475 --enable-fast-install[=PKGS] 1476 optimize for fast installation [default=yes] 1477 --disable-libtool-lock avoid locking (might break parallel builds) 1478 --disable-largefile omit support for large files 1479 --disable-a4 Set default paper size to letter and default unit to 1480 inch 1481 --enable-xi2-scrolling Use XInput 2.1 'smooth scrolling' if available 1482 (default: enabled) 1483 --enable-magick Use ImageMagick to load/render image files. 1484 EXPERIMENTAL - DO NOT USE! 1485 1486Optional Packages: 1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1490 both] 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1492 --with-sysroot=DIR Search for dependent libraries within DIR 1493 (or the compiler's sysroot if not specified). 1494 --with-xdvi-x-toolkit=KIT 1495 Use toolkit KIT (motif/xaw/xaw3d/neXtaw) for xdvi 1496 [default: Motif if available, else Xaw] 1497 --with-ps=PS Use PostScript (PS=no/yes/gs/dps/news, default gs) 1498 --with-x use the X Window System 1499 --with-iconv Use an iconv library [default=check] 1500 --with-iconv-include=DIR 1501 Specify the location of <iconv.h> header 1502 --with-iconv-libdir=DIR Specify the location of iconv (-liconv or -lrecode) 1503 library 1504 --without-xpm Do not use the Xpm library (will disable the 1505 toolbar) 1506 --with-xpm-include=DIR Specify the location of Xpm include files 1507 --with-xpm-libdir=DIR Specify the location of Xpm libraries 1508 --with-motif-include=DIR 1509 Specify the location of Motif include files 1510 --with-motif-libdir=DIR Specify the location of Motif libraries 1511 --with-system-kpathsea use installed kpathsea headers and library 1512 --with-kpathsea-includes=DIR 1513 kpathsea headers installed in DIR 1514 --with-kpathsea-libdir=DIR 1515 kpathsea library installed in DIR 1516 --with-system-zlib use installed zlib headers and library 1517 --with-zlib-includes=DIR 1518 zlib headers installed in DIR 1519 --with-zlib-libdir=DIR zlib library installed in DIR 1520 --with-system-freetype2 use installed freetype2 headers and library 1521 (requires freetype-config) 1522 --with-default-gs-lib-path=PATH 1523 set default path for finding font aliases to PATH 1524 --with-default-dvips-path=CMD 1525 Use CMD as default DVI to PS converter 1526 --with-default-ps2pdf-path=CMD 1527 Use CMD as default PS to PDF converter 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 XMKMF Path to xmkmf, Makefile generator for X Window System 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <tex-k@tug.org>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || 1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1553 continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for guested configure. 1590 if test -f "$ac_srcdir/configure.gnu"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1593 elif test -f "$ac_srcdir/configure"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure" --help=recursive 1596 else 1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1598 fi || ac_status=$? 1599 cd "$ac_pwd" || { ac_status=$?; break; } 1600 done 1601fi 1602 1603test -n "$ac_init_help" && exit $ac_status 1604if $ac_init_version; then 1605 cat <<\_ACEOF 1606xdvik configure 22.87 1607generated by GNU Autoconf 2.69 1608 1609Copyright (C) 2012 Free Software Foundation, Inc. 1610This configure script is free software; the Free Software Foundation 1611gives unlimited permission to copy, distribute and modify it. 1612_ACEOF 1613 exit 1614fi 1615 1616## ------------------------ ## 1617## Autoconf initialization. ## 1618## ------------------------ ## 1619 1620# ac_fn_c_try_compile LINENO 1621# -------------------------- 1622# Try to compile conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_compile () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext 1627 if { { ac_try="$ac_compile" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_compile") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest.$ac_objext; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_compile 1657 1658# ac_fn_c_try_link LINENO 1659# ----------------------- 1660# Try to link conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_link () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 rm -f conftest.$ac_objext conftest$ac_exeext 1665 if { { ac_try="$ac_link" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_link") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { 1681 test -z "$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 } && test -s conftest$ac_exeext && { 1684 test "$cross_compiling" = yes || 1685 test -x conftest$ac_exeext 1686 }; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1696 # interfere with the next link command; also delete a directory that is 1697 # left behind by Apple's compiler. We do this before executing the actions. 1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_link 1703 1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1705# ------------------------------------------------------- 1706# Tests whether HEADER exists and can be compiled using the include files in 1707# INCLUDES, setting the cache variable VAR accordingly. 1708ac_fn_c_check_header_compile () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1712$as_echo_n "checking for $2... " >&6; } 1713if eval \${$3+:} false; then : 1714 $as_echo_n "(cached) " >&6 1715else 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717/* end confdefs.h. */ 1718$4 1719#include <$2> 1720_ACEOF 1721if ac_fn_c_try_compile "$LINENO"; then : 1722 eval "$3=yes" 1723else 1724 eval "$3=no" 1725fi 1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 1733} # ac_fn_c_check_header_compile 1734 1735# ac_fn_c_try_cpp LINENO 1736# ---------------------- 1737# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1738ac_fn_c_try_cpp () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_cpp conftest.$ac_ext" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } > conftest.i && { 1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1758 test ! -s conftest.err 1759 }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=1 1766fi 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_c_try_cpp 1771 1772# ac_fn_c_try_run LINENO 1773# ---------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1775# that executables *can* be run. 1776ac_fn_c_try_run () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1790 { { case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_try") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; }; }; then : 1800 ac_retval=0 1801else 1802 $as_echo "$as_me: program exited with status $ac_status" >&5 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=$ac_status 1807fi 1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_run 1813 1814# ac_fn_c_check_func LINENO FUNC VAR 1815# ---------------------------------- 1816# Tests whether FUNC exists, setting the cache variable VAR accordingly 1817ac_fn_c_check_func () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821$as_echo_n "checking for $2... " >&6; } 1822if eval \${$3+:} false; then : 1823 $as_echo_n "(cached) " >&6 1824else 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1829#define $2 innocuous_$2 1830 1831/* System header to define __stub macros and hopefully few prototypes, 1832 which can conflict with char $2 (); below. 1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1834 <limits.h> exists even on freestanding compilers. */ 1835 1836#ifdef __STDC__ 1837# include <limits.h> 1838#else 1839# include <assert.h> 1840#endif 1841 1842#undef $2 1843 1844/* Override any GCC internal prototype to avoid an error. 1845 Use char because int might match the return type of a GCC 1846 builtin and then its argument prototype would still apply. */ 1847#ifdef __cplusplus 1848extern "C" 1849#endif 1850char $2 (); 1851/* The GNU C library defines this for functions which it implements 1852 to always fail with ENOSYS. Some functions are actually named 1853 something starting with __ and the normal name is an alias. */ 1854#if defined __stub_$2 || defined __stub___$2 1855choke me 1856#endif 1857 1858int 1859main () 1860{ 1861return $2 (); 1862 ; 1863 return 0; 1864} 1865_ACEOF 1866if ac_fn_c_try_link "$LINENO"; then : 1867 eval "$3=yes" 1868else 1869 eval "$3=no" 1870fi 1871rm -f core conftest.err conftest.$ac_objext \ 1872 conftest$ac_exeext conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_func 1880 1881# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1882# ------------------------------------------------------- 1883# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1884# the include files in INCLUDES and setting the cache variable VAR 1885# accordingly. 1886ac_fn_c_check_header_mongrel () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 if eval \${$3+:} false; then : 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898else 1899 # Is the header compilable? 1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1901$as_echo_n "checking $2 usability... " >&6; } 1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 ac_header_compiler=yes 1909else 1910 ac_header_compiler=no 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1914$as_echo "$ac_header_compiler" >&6; } 1915 1916# Is the header present? 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1918$as_echo_n "checking $2 presence... " >&6; } 1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921#include <$2> 1922_ACEOF 1923if ac_fn_c_try_cpp "$LINENO"; then : 1924 ac_header_preproc=yes 1925else 1926 ac_header_preproc=no 1927fi 1928rm -f conftest.err conftest.i conftest.$ac_ext 1929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1930$as_echo "$ac_header_preproc" >&6; } 1931 1932# So? What about this header? 1933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1934 yes:no: ) 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1936$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1938$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1939 ;; 1940 no:yes:* ) 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1942$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1944$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1946$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1948$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1950$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1951( $as_echo "## ---------------------------- ## 1952## Report this to tex-k@tug.org ## 1953## ---------------------------- ##" 1954 ) | sed "s/^/$as_me: WARNING: /" >&2 1955 ;; 1956esac 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 eval "$3=\$ac_header_compiler" 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967fi 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970} # ac_fn_c_check_header_mongrel 1971 1972# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1973# ------------------------------------------- 1974# Tests whether TYPE exists after having included INCLUDES, setting cache 1975# variable VAR accordingly. 1976ac_fn_c_check_type () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980$as_echo_n "checking for $2... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983else 1984 eval "$3=no" 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987$4 1988int 1989main () 1990{ 1991if (sizeof ($2)) 1992 return 0; 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000$4 2001int 2002main () 2003{ 2004if (sizeof (($2))) 2005 return 0; 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO"; then : 2011 2012else 2013 eval "$3=yes" 2014fi 2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2016fi 2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2018fi 2019eval ac_res=\$$3 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2021$as_echo "$ac_res" >&6; } 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 2024} # ac_fn_c_check_type 2025 2026# ac_fn_c_find_intX_t LINENO BITS VAR 2027# ----------------------------------- 2028# Finds a signed integer type with width BITS, setting cache variable VAR 2029# accordingly. 2030ac_fn_c_find_intX_t () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2034$as_echo_n "checking for int$2_t... " >&6; } 2035if eval \${$3+:} false; then : 2036 $as_echo_n "(cached) " >&6 2037else 2038 eval "$3=no" 2039 # Order is important - never check a type that is potentially smaller 2040 # than half of the expected target width. 2041 for ac_type in int$2_t 'int' 'long int' \ 2042 'long long int' 'short int' 'signed char'; do 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044/* end confdefs.h. */ 2045$ac_includes_default 2046 enum { N = $2 / 2 - 1 }; 2047int 2048main () 2049{ 2050static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2051test_array [0] = 0; 2052return test_array [0]; 2053 2054 ; 2055 return 0; 2056} 2057_ACEOF 2058if ac_fn_c_try_compile "$LINENO"; then : 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$ac_includes_default 2062 enum { N = $2 / 2 - 1 }; 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2067 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2068test_array [0] = 0; 2069return test_array [0]; 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 2077else 2078 case $ac_type in #( 2079 int$2_t) : 2080 eval "$3=yes" ;; #( 2081 *) : 2082 eval "$3=\$ac_type" ;; 2083esac 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088 if eval test \"x\$"$3"\" = x"no"; then : 2089 2090else 2091 break 2092fi 2093 done 2094fi 2095eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097$as_echo "$ac_res" >&6; } 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100} # ac_fn_c_find_intX_t 2101 2102# ac_fn_c_find_uintX_t LINENO BITS VAR 2103# ------------------------------------ 2104# Finds an unsigned integer type with width BITS, setting cache variable VAR 2105# accordingly. 2106ac_fn_c_find_uintX_t () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2110$as_echo_n "checking for uint$2_t... " >&6; } 2111if eval \${$3+:} false; then : 2112 $as_echo_n "(cached) " >&6 2113else 2114 eval "$3=no" 2115 # Order is important - never check a type that is potentially smaller 2116 # than half of the expected target width. 2117 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2118 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$ac_includes_default 2122int 2123main () 2124{ 2125static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2126test_array [0] = 0; 2127return test_array [0]; 2128 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 case $ac_type in #( 2135 uint$2_t) : 2136 eval "$3=yes" ;; #( 2137 *) : 2138 eval "$3=\$ac_type" ;; 2139esac 2140fi 2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2142 if eval test \"x\$"$3"\" = x"no"; then : 2143 2144else 2145 break 2146fi 2147 done 2148fi 2149eval ac_res=\$$3 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2151$as_echo "$ac_res" >&6; } 2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2153 2154} # ac_fn_c_find_uintX_t 2155 2156# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2157# ---------------------------------------------------- 2158# Tries to find if the field MEMBER exists in type AGGR, after including 2159# INCLUDES, setting cache variable VAR accordingly. 2160ac_fn_c_check_member () 2161{ 2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2164$as_echo_n "checking for $2.$3... " >&6; } 2165if eval \${$4+:} false; then : 2166 $as_echo_n "(cached) " >&6 2167else 2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2169/* end confdefs.h. */ 2170$5 2171int 2172main () 2173{ 2174static $2 ac_aggr; 2175if (ac_aggr.$3) 2176return 0; 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 eval "$4=yes" 2183else 2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186$5 2187int 2188main () 2189{ 2190static $2 ac_aggr; 2191if (sizeof ac_aggr.$3) 2192return 0; 2193 ; 2194 return 0; 2195} 2196_ACEOF 2197if ac_fn_c_try_compile "$LINENO"; then : 2198 eval "$4=yes" 2199else 2200 eval "$4=no" 2201fi 2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2203fi 2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2205fi 2206eval ac_res=\$$4 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2208$as_echo "$ac_res" >&6; } 2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2210 2211} # ac_fn_c_check_member 2212 2213# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2214# -------------------------------------------- 2215# Tries to find the compile-time value of EXPR in a program that includes 2216# INCLUDES, setting VAR accordingly. Returns whether the value could be 2217# computed 2218ac_fn_c_compute_int () 2219{ 2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2221 if test "$cross_compiling" = yes; then 2222 # Depending upon the size, compute the lo and hi bounds. 2223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225$4 2226int 2227main () 2228{ 2229static int test_array [1 - 2 * !(($2) >= 0)]; 2230test_array [0] = 0; 2231return test_array [0]; 2232 2233 ; 2234 return 0; 2235} 2236_ACEOF 2237if ac_fn_c_try_compile "$LINENO"; then : 2238 ac_lo=0 ac_mid=0 2239 while :; do 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$4 2243int 2244main () 2245{ 2246static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2247test_array [0] = 0; 2248return test_array [0]; 2249 2250 ; 2251 return 0; 2252} 2253_ACEOF 2254if ac_fn_c_try_compile "$LINENO"; then : 2255 ac_hi=$ac_mid; break 2256else 2257 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2258 if test $ac_lo -le $ac_mid; then 2259 ac_lo= ac_hi= 2260 break 2261 fi 2262 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2263fi 2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2265 done 2266else 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273static int test_array [1 - 2 * !(($2) < 0)]; 2274test_array [0] = 0; 2275return test_array [0]; 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281if ac_fn_c_try_compile "$LINENO"; then : 2282 ac_hi=-1 ac_mid=-1 2283 while :; do 2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2285/* end confdefs.h. */ 2286$4 2287int 2288main () 2289{ 2290static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2291test_array [0] = 0; 2292return test_array [0]; 2293 2294 ; 2295 return 0; 2296} 2297_ACEOF 2298if ac_fn_c_try_compile "$LINENO"; then : 2299 ac_lo=$ac_mid; break 2300else 2301 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2302 if test $ac_mid -le $ac_hi; then 2303 ac_lo= ac_hi= 2304 break 2305 fi 2306 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2307fi 2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2309 done 2310else 2311 ac_lo= ac_hi= 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314fi 2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2316# Binary search between lo and hi bounds. 2317while test "x$ac_lo" != "x$ac_hi"; do 2318 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2320/* end confdefs.h. */ 2321$4 2322int 2323main () 2324{ 2325static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2326test_array [0] = 0; 2327return test_array [0]; 2328 2329 ; 2330 return 0; 2331} 2332_ACEOF 2333if ac_fn_c_try_compile "$LINENO"; then : 2334 ac_hi=$ac_mid 2335else 2336 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339done 2340case $ac_lo in #(( 2341?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2342'') ac_retval=1 ;; 2343esac 2344 else 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$4 2348static long int longval () { return $2; } 2349static unsigned long int ulongval () { return $2; } 2350#include <stdio.h> 2351#include <stdlib.h> 2352int 2353main () 2354{ 2355 2356 FILE *f = fopen ("conftest.val", "w"); 2357 if (! f) 2358 return 1; 2359 if (($2) < 0) 2360 { 2361 long int i = longval (); 2362 if (i != ($2)) 2363 return 1; 2364 fprintf (f, "%ld", i); 2365 } 2366 else 2367 { 2368 unsigned long int i = ulongval (); 2369 if (i != ($2)) 2370 return 1; 2371 fprintf (f, "%lu", i); 2372 } 2373 /* Do not output a trailing newline, as this causes \r\n confusion 2374 on some platforms. */ 2375 return ferror (f) || fclose (f) != 0; 2376 2377 ; 2378 return 0; 2379} 2380_ACEOF 2381if ac_fn_c_try_run "$LINENO"; then : 2382 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2383else 2384 ac_retval=1 2385fi 2386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2387 conftest.$ac_objext conftest.beam conftest.$ac_ext 2388rm -f conftest.val 2389 2390 fi 2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2392 as_fn_set_status $ac_retval 2393 2394} # ac_fn_c_compute_int 2395cat >config.log <<_ACEOF 2396This file contains any messages produced by compilers while 2397running configure, to aid debugging if configure makes a mistake. 2398 2399It was created by xdvik $as_me 22.87, which was 2400generated by GNU Autoconf 2.69. Invocation command line was 2401 2402 $ $0 $@ 2403 2404_ACEOF 2405exec 5>>config.log 2406{ 2407cat <<_ASUNAME 2408## --------- ## 2409## Platform. ## 2410## --------- ## 2411 2412hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2413uname -m = `(uname -m) 2>/dev/null || echo unknown` 2414uname -r = `(uname -r) 2>/dev/null || echo unknown` 2415uname -s = `(uname -s) 2>/dev/null || echo unknown` 2416uname -v = `(uname -v) 2>/dev/null || echo unknown` 2417 2418/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2419/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2420 2421/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2422/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2423/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2424/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2425/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2426/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2427/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2428 2429_ASUNAME 2430 2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2432for as_dir in $PATH 2433do 2434 IFS=$as_save_IFS 2435 test -z "$as_dir" && as_dir=. 2436 $as_echo "PATH: $as_dir" 2437 done 2438IFS=$as_save_IFS 2439 2440} >&5 2441 2442cat >&5 <<_ACEOF 2443 2444 2445## ----------- ## 2446## Core tests. ## 2447## ----------- ## 2448 2449_ACEOF 2450 2451 2452# Keep a trace of the command line. 2453# Strip out --no-create and --no-recursion so they do not pile up. 2454# Strip out --silent because we don't want to record it for future runs. 2455# Also quote any args containing shell meta-characters. 2456# Make two passes to allow for proper duplicate-argument suppression. 2457ac_configure_args= 2458ac_configure_args0= 2459ac_configure_args1= 2460ac_must_keep_next=false 2461for ac_pass in 1 2 2462do 2463 for ac_arg 2464 do 2465 case $ac_arg in 2466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2468 | -silent | --silent | --silen | --sile | --sil) 2469 continue ;; 2470 *\'*) 2471 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2472 esac 2473 case $ac_pass in 2474 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2475 2) 2476 as_fn_append ac_configure_args1 " '$ac_arg'" 2477 if test $ac_must_keep_next = true; then 2478 ac_must_keep_next=false # Got value, back to normal. 2479 else 2480 case $ac_arg in 2481 *=* | --config-cache | -C | -disable-* | --disable-* \ 2482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2484 | -with-* | --with-* | -without-* | --without-* | --x) 2485 case "$ac_configure_args0 " in 2486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2487 esac 2488 ;; 2489 -* ) ac_must_keep_next=true ;; 2490 esac 2491 fi 2492 as_fn_append ac_configure_args " '$ac_arg'" 2493 ;; 2494 esac 2495 done 2496done 2497{ ac_configure_args0=; unset ac_configure_args0;} 2498{ ac_configure_args1=; unset ac_configure_args1;} 2499 2500# When interrupted or exit'd, cleanup temporary files, and complete 2501# config.log. We remove comments because anyway the quotes in there 2502# would cause problems or look ugly. 2503# WARNING: Use '\'' to represent an apostrophe within the trap. 2504# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2505trap 'exit_status=$? 2506 # Save into config.log some information that might help in debugging. 2507 { 2508 echo 2509 2510 $as_echo "## ---------------- ## 2511## Cache variables. ## 2512## ---------------- ##" 2513 echo 2514 # The following way of writing the cache mishandles newlines in values, 2515( 2516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2517 eval ac_val=\$$ac_var 2518 case $ac_val in #( 2519 *${as_nl}*) 2520 case $ac_var in #( 2521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2522$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2523 esac 2524 case $ac_var in #( 2525 _ | IFS | as_nl) ;; #( 2526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2527 *) { eval $ac_var=; unset $ac_var;} ;; 2528 esac ;; 2529 esac 2530 done 2531 (set) 2>&1 | 2532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2533 *${as_nl}ac_space=\ *) 2534 sed -n \ 2535 "s/'\''/'\''\\\\'\'''\''/g; 2536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2537 ;; #( 2538 *) 2539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2540 ;; 2541 esac | 2542 sort 2543) 2544 echo 2545 2546 $as_echo "## ----------------- ## 2547## Output variables. ## 2548## ----------------- ##" 2549 echo 2550 for ac_var in $ac_subst_vars 2551 do 2552 eval ac_val=\$$ac_var 2553 case $ac_val in 2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2555 esac 2556 $as_echo "$ac_var='\''$ac_val'\''" 2557 done | sort 2558 echo 2559 2560 if test -n "$ac_subst_files"; then 2561 $as_echo "## ------------------- ## 2562## File substitutions. ## 2563## ------------------- ##" 2564 echo 2565 for ac_var in $ac_subst_files 2566 do 2567 eval ac_val=\$$ac_var 2568 case $ac_val in 2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2570 esac 2571 $as_echo "$ac_var='\''$ac_val'\''" 2572 done | sort 2573 echo 2574 fi 2575 2576 if test -s confdefs.h; then 2577 $as_echo "## ----------- ## 2578## confdefs.h. ## 2579## ----------- ##" 2580 echo 2581 cat confdefs.h 2582 echo 2583 fi 2584 test "$ac_signal" != 0 && 2585 $as_echo "$as_me: caught signal $ac_signal" 2586 $as_echo "$as_me: exit $exit_status" 2587 } >&5 2588 rm -f core *.core core.conftest.* && 2589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2590 exit $exit_status 2591' 0 2592for ac_signal in 1 2 13 15; do 2593 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2594done 2595ac_signal=0 2596 2597# confdefs.h avoids OS command line length limits that DEFS can exceed. 2598rm -f -r conftest* confdefs.h 2599 2600$as_echo "/* confdefs.h */" > confdefs.h 2601 2602# Predefined preprocessor variables. 2603 2604cat >>confdefs.h <<_ACEOF 2605#define PACKAGE_NAME "$PACKAGE_NAME" 2606_ACEOF 2607 2608cat >>confdefs.h <<_ACEOF 2609#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2610_ACEOF 2611 2612cat >>confdefs.h <<_ACEOF 2613#define PACKAGE_VERSION "$PACKAGE_VERSION" 2614_ACEOF 2615 2616cat >>confdefs.h <<_ACEOF 2617#define PACKAGE_STRING "$PACKAGE_STRING" 2618_ACEOF 2619 2620cat >>confdefs.h <<_ACEOF 2621#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2622_ACEOF 2623 2624cat >>confdefs.h <<_ACEOF 2625#define PACKAGE_URL "$PACKAGE_URL" 2626_ACEOF 2627 2628 2629# Let the site file select an alternate cache file if it wants to. 2630# Prefer an explicitly selected file to automatically selected ones. 2631ac_site_file1=NONE 2632ac_site_file2=NONE 2633if test -n "$CONFIG_SITE"; then 2634 # We do not want a PATH search for config.site. 2635 case $CONFIG_SITE in #(( 2636 -*) ac_site_file1=./$CONFIG_SITE;; 2637 */*) ac_site_file1=$CONFIG_SITE;; 2638 *) ac_site_file1=./$CONFIG_SITE;; 2639 esac 2640elif test "x$prefix" != xNONE; then 2641 ac_site_file1=$prefix/share/config.site 2642 ac_site_file2=$prefix/etc/config.site 2643else 2644 ac_site_file1=$ac_default_prefix/share/config.site 2645 ac_site_file2=$ac_default_prefix/etc/config.site 2646fi 2647for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2648do 2649 test "x$ac_site_file" = xNONE && continue 2650 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2652$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2653 sed 's/^/| /' "$ac_site_file" >&5 2654 . "$ac_site_file" \ 2655 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2657as_fn_error $? "failed to load site script $ac_site_file 2658See \`config.log' for more details" "$LINENO" 5; } 2659 fi 2660done 2661 2662if test -r "$cache_file"; then 2663 # Some versions of bash will fail to source /dev/null (special files 2664 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2665 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2667$as_echo "$as_me: loading cache $cache_file" >&6;} 2668 case $cache_file in 2669 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2670 *) . "./$cache_file";; 2671 esac 2672 fi 2673else 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2675$as_echo "$as_me: creating cache $cache_file" >&6;} 2676 >$cache_file 2677fi 2678 2679# Check that the precious variables saved in the cache have kept the same 2680# value. 2681ac_cache_corrupted=false 2682for ac_var in $ac_precious_vars; do 2683 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2684 eval ac_new_set=\$ac_env_${ac_var}_set 2685 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2686 eval ac_new_val=\$ac_env_${ac_var}_value 2687 case $ac_old_set,$ac_new_set in 2688 set,) 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2690$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2691 ac_cache_corrupted=: ;; 2692 ,set) 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2694$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2695 ac_cache_corrupted=: ;; 2696 ,);; 2697 *) 2698 if test "x$ac_old_val" != "x$ac_new_val"; then 2699 # differences in whitespace do not lead to failure. 2700 ac_old_val_w=`echo x $ac_old_val` 2701 ac_new_val_w=`echo x $ac_new_val` 2702 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2704$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2705 ac_cache_corrupted=: 2706 else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2708$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2709 eval $ac_var=\$ac_old_val 2710 fi 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2712$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2714$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2715 fi;; 2716 esac 2717 # Pass precious variables to config.status. 2718 if test "$ac_new_set" = set; then 2719 case $ac_new_val in 2720 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2721 *) ac_arg=$ac_var=$ac_new_val ;; 2722 esac 2723 case " $ac_configure_args " in 2724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2725 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2726 esac 2727 fi 2728done 2729if $ac_cache_corrupted; then 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2733$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2734 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2735fi 2736## -------------------- ## 2737## Main body of script. ## 2738## -------------------- ## 2739 2740ac_ext=c 2741ac_cpp='$CPP $CPPFLAGS' 2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2744ac_compiler_gnu=$ac_cv_c_compiler_gnu 2745 2746 2747 2748 2749ac_aux_dir= 2750for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do 2751 if test -f "$ac_dir/install-sh"; then 2752 ac_aux_dir=$ac_dir 2753 ac_install_sh="$ac_aux_dir/install-sh -c" 2754 break 2755 elif test -f "$ac_dir/install.sh"; then 2756 ac_aux_dir=$ac_dir 2757 ac_install_sh="$ac_aux_dir/install.sh -c" 2758 break 2759 elif test -f "$ac_dir/shtool"; then 2760 ac_aux_dir=$ac_dir 2761 ac_install_sh="$ac_aux_dir/shtool install -c" 2762 break 2763 fi 2764done 2765if test -z "$ac_aux_dir"; then 2766 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5 2767fi 2768 2769# These three variables are undocumented and unsupported, 2770# and are intended to be withdrawn in a future Autoconf release. 2771# They can cause serious problems if a builder's source tree is in a directory 2772# whose full name contains unusual characters. 2773ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2774ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2775ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2776 2777 2778 2779 2780am__api_version='1.14' 2781 2782# Find a good install program. We prefer a C program (faster), 2783# so one script is as good as another. But avoid the broken or 2784# incompatible versions: 2785# SysV /etc/install, /usr/sbin/install 2786# SunOS /usr/etc/install 2787# IRIX /sbin/install 2788# AIX /bin/install 2789# AmigaOS /C/install, which installs bootblocks on floppy discs 2790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2791# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2793# OS/2's system install, which has a completely different semantic 2794# ./install, which can be erroneously created by make from ./install.sh. 2795# Reject install programs that cannot install multiple files. 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2797$as_echo_n "checking for a BSD-compatible install... " >&6; } 2798if test -z "$INSTALL"; then 2799if ${ac_cv_path_install+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 # Account for people who put trailing slashes in PATH elements. 2808case $as_dir/ in #(( 2809 ./ | .// | /[cC]/* | \ 2810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2812 /usr/ucb/* ) ;; 2813 *) 2814 # OSF1 and SCO ODT 3.0 have their own names for install. 2815 # Don't use installbsd from OSF since it installs stuff as root 2816 # by default. 2817 for ac_prog in ginstall scoinst install; do 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2820 if test $ac_prog = install && 2821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2822 # AIX install. It has an incompatible calling convention. 2823 : 2824 elif test $ac_prog = install && 2825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2826 # program-specific install script used by HP pwplus--don't use. 2827 : 2828 else 2829 rm -rf conftest.one conftest.two conftest.dir 2830 echo one > conftest.one 2831 echo two > conftest.two 2832 mkdir conftest.dir 2833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2834 test -s conftest.one && test -s conftest.two && 2835 test -s conftest.dir/conftest.one && 2836 test -s conftest.dir/conftest.two 2837 then 2838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2839 break 3 2840 fi 2841 fi 2842 fi 2843 done 2844 done 2845 ;; 2846esac 2847 2848 done 2849IFS=$as_save_IFS 2850 2851rm -rf conftest.one conftest.two conftest.dir 2852 2853fi 2854 if test "${ac_cv_path_install+set}" = set; then 2855 INSTALL=$ac_cv_path_install 2856 else 2857 # As a last resort, use the slow shell script. Don't cache a 2858 # value for INSTALL within a source directory, because that will 2859 # break other packages using the cache if that directory is 2860 # removed, or if the value is a relative name. 2861 INSTALL=$ac_install_sh 2862 fi 2863fi 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2865$as_echo "$INSTALL" >&6; } 2866 2867# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2868# It thinks the first close brace ends the variable substitution. 2869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2870 2871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2872 2873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2874 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2876$as_echo_n "checking whether build environment is sane... " >&6; } 2877# Reject unsafe characters in $srcdir or the absolute working directory 2878# name. Accept space and tab only in the latter. 2879am_lf=' 2880' 2881case `pwd` in 2882 *[\\\"\#\$\&\'\`$am_lf]*) 2883 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2884esac 2885case $srcdir in 2886 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2887 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2888esac 2889 2890# Do 'set' in a subshell so we don't clobber the current shell's 2891# arguments. Must try -L first in case configure is actually a 2892# symlink; some systems play weird games with the mod time of symlinks 2893# (eg FreeBSD returns the mod time of the symlink's containing 2894# directory). 2895if ( 2896 am_has_slept=no 2897 for am_try in 1 2; do 2898 echo "timestamp, slept: $am_has_slept" > conftest.file 2899 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2900 if test "$*" = "X"; then 2901 # -L didn't work. 2902 set X `ls -t "$srcdir/configure" conftest.file` 2903 fi 2904 if test "$*" != "X $srcdir/configure conftest.file" \ 2905 && test "$*" != "X conftest.file $srcdir/configure"; then 2906 2907 # If neither matched, then we have a broken ls. This can happen 2908 # if, for instance, CONFIG_SHELL is bash and it inherits a 2909 # broken ls alias from the environment. This has actually 2910 # happened. Such a system could not be considered "sane". 2911 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2912 alias in your environment" "$LINENO" 5 2913 fi 2914 if test "$2" = conftest.file || test $am_try -eq 2; then 2915 break 2916 fi 2917 # Just in case. 2918 sleep 1 2919 am_has_slept=yes 2920 done 2921 test "$2" = conftest.file 2922 ) 2923then 2924 # Ok. 2925 : 2926else 2927 as_fn_error $? "newly created file is older than distributed files! 2928Check your system clock" "$LINENO" 5 2929fi 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2931$as_echo "yes" >&6; } 2932# If we didn't sleep, we still need to ensure time stamps of config.status and 2933# generated files are strictly newer. 2934am_sleep_pid= 2935if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2936 ( sleep 1 ) & 2937 am_sleep_pid=$! 2938fi 2939 2940rm -f conftest.file 2941 2942test "$program_prefix" != NONE && 2943 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2944# Use a double $ so make ignores it. 2945test "$program_suffix" != NONE && 2946 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2947# Double any \ or $. 2948# By default was `s,x,x', remove it if useless. 2949ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2950program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2951 2952# expand $ac_aux_dir to an absolute path 2953am_aux_dir=`cd $ac_aux_dir && pwd` 2954 2955if test x"${MISSING+set}" != xset; then 2956 case $am_aux_dir in 2957 *\ * | *\ *) 2958 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2959 *) 2960 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2961 esac 2962fi 2963# Use eval to expand $SHELL 2964if eval "$MISSING --is-lightweight"; then 2965 am_missing_run="$MISSING " 2966else 2967 am_missing_run= 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2969$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2970fi 2971 2972if test x"${install_sh}" != xset; then 2973 case $am_aux_dir in 2974 *\ * | *\ *) 2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2976 *) 2977 install_sh="\${SHELL} $am_aux_dir/install-sh" 2978 esac 2979fi 2980 2981# Installed binaries are usually stripped using 'strip' when the user 2982# run "make install-strip". However 'strip' might not be the right 2983# tool to use in cross-compilation environments, therefore Automake 2984# will honor the 'STRIP' environment variable to overrule this program. 2985if test "$cross_compiling" != no; then 2986 if test -n "$ac_tool_prefix"; then 2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2988set dummy ${ac_tool_prefix}strip; ac_word=$2 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990$as_echo_n "checking for $ac_word... " >&6; } 2991if ${ac_cv_prog_STRIP+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 if test -n "$STRIP"; then 2995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2996else 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008done 3009 done 3010IFS=$as_save_IFS 3011 3012fi 3013fi 3014STRIP=$ac_cv_prog_STRIP 3015if test -n "$STRIP"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3017$as_echo "$STRIP" >&6; } 3018else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020$as_echo "no" >&6; } 3021fi 3022 3023 3024fi 3025if test -z "$ac_cv_prog_STRIP"; then 3026 ac_ct_STRIP=$STRIP 3027 # Extract the first word of "strip", so it can be a program name with args. 3028set dummy strip; ac_word=$2 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3030$as_echo_n "checking for $ac_word... " >&6; } 3031if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 if test -n "$ac_ct_STRIP"; then 3035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3036else 3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3038for as_dir in $PATH 3039do 3040 IFS=$as_save_IFS 3041 test -z "$as_dir" && as_dir=. 3042 for ac_exec_ext in '' $ac_executable_extensions; do 3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3044 ac_cv_prog_ac_ct_STRIP="strip" 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3046 break 2 3047 fi 3048done 3049 done 3050IFS=$as_save_IFS 3051 3052fi 3053fi 3054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3055if test -n "$ac_ct_STRIP"; then 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3057$as_echo "$ac_ct_STRIP" >&6; } 3058else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060$as_echo "no" >&6; } 3061fi 3062 3063 if test "x$ac_ct_STRIP" = x; then 3064 STRIP=":" 3065 else 3066 case $cross_compiling:$ac_tool_warned in 3067yes:) 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3070ac_tool_warned=yes ;; 3071esac 3072 STRIP=$ac_ct_STRIP 3073 fi 3074else 3075 STRIP="$ac_cv_prog_STRIP" 3076fi 3077 3078fi 3079INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3080 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3082$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3083if test -z "$MKDIR_P"; then 3084 if ${ac_cv_path_mkdir+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3088for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3089do 3090 IFS=$as_save_IFS 3091 test -z "$as_dir" && as_dir=. 3092 for ac_prog in mkdir gmkdir; do 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3096 'mkdir (GNU coreutils) '* | \ 3097 'mkdir (coreutils) '* | \ 3098 'mkdir (fileutils) '4.1*) 3099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3100 break 3;; 3101 esac 3102 done 3103 done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108 3109 test -d ./--version && rmdir ./--version 3110 if test "${ac_cv_path_mkdir+set}" = set; then 3111 MKDIR_P="$ac_cv_path_mkdir -p" 3112 else 3113 # As a last resort, use the slow shell script. Don't cache a 3114 # value for MKDIR_P within a source directory, because that will 3115 # break other packages using the cache if that directory is 3116 # removed, or if the value is a relative name. 3117 MKDIR_P="$ac_install_sh -d" 3118 fi 3119fi 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3121$as_echo "$MKDIR_P" >&6; } 3122 3123for ac_prog in gawk mawk nawk awk 3124do 3125 # Extract the first word of "$ac_prog", so it can be a program name with args. 3126set dummy $ac_prog; ac_word=$2 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128$as_echo_n "checking for $ac_word... " >&6; } 3129if ${ac_cv_prog_AWK+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 if test -n "$AWK"; then 3133 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3134else 3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH 3137do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3142 ac_cv_prog_AWK="$ac_prog" 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3144 break 2 3145 fi 3146done 3147 done 3148IFS=$as_save_IFS 3149 3150fi 3151fi 3152AWK=$ac_cv_prog_AWK 3153if test -n "$AWK"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3155$as_echo "$AWK" >&6; } 3156else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158$as_echo "no" >&6; } 3159fi 3160 3161 3162 test -n "$AWK" && break 3163done 3164 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3166$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3167set x ${MAKE-make} 3168ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3169if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3170 $as_echo_n "(cached) " >&6 3171else 3172 cat >conftest.make <<\_ACEOF 3173SHELL = /bin/sh 3174all: 3175 @echo '@@@%%%=$(MAKE)=@@@%%%' 3176_ACEOF 3177# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3178case `${MAKE-make} -f conftest.make 2>/dev/null` in 3179 *@@@%%%=?*=@@@%%%*) 3180 eval ac_cv_prog_make_${ac_make}_set=yes;; 3181 *) 3182 eval ac_cv_prog_make_${ac_make}_set=no;; 3183esac 3184rm -f conftest.make 3185fi 3186if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3188$as_echo "yes" >&6; } 3189 SET_MAKE= 3190else 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192$as_echo "no" >&6; } 3193 SET_MAKE="MAKE=${MAKE-make}" 3194fi 3195 3196rm -rf .tst 2>/dev/null 3197mkdir .tst 2>/dev/null 3198if test -d .tst; then 3199 am__leading_dot=. 3200else 3201 am__leading_dot=_ 3202fi 3203rmdir .tst 2>/dev/null 3204 3205# Check whether --enable-silent-rules was given. 3206if test "${enable_silent_rules+set}" = set; then : 3207 enableval=$enable_silent_rules; 3208fi 3209 3210case $enable_silent_rules in # ((( 3211 yes) AM_DEFAULT_VERBOSITY=0;; 3212 no) AM_DEFAULT_VERBOSITY=1;; 3213 *) AM_DEFAULT_VERBOSITY=1;; 3214esac 3215am_make=${MAKE-make} 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3217$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3218if ${am_cv_make_support_nested_variables+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if $as_echo 'TRUE=$(BAR$(V)) 3222BAR0=false 3223BAR1=true 3224V=1 3225am__doit: 3226 @$(TRUE) 3227.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3228 am_cv_make_support_nested_variables=yes 3229else 3230 am_cv_make_support_nested_variables=no 3231fi 3232fi 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3234$as_echo "$am_cv_make_support_nested_variables" >&6; } 3235if test $am_cv_make_support_nested_variables = yes; then 3236 AM_V='$(V)' 3237 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3238else 3239 AM_V=$AM_DEFAULT_VERBOSITY 3240 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3241fi 3242AM_BACKSLASH='\' 3243 3244DEPDIR="${am__leading_dot}deps" 3245 3246ac_config_commands="$ac_config_commands depfiles" 3247 3248 3249am_make=${MAKE-make} 3250cat > confinc << 'END' 3251am__doit: 3252 @echo this is the am__doit target 3253.PHONY: am__doit 3254END 3255# If we don't find an include directive, just comment out the code. 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3257$as_echo_n "checking for style of include used by $am_make... " >&6; } 3258am__include="#" 3259am__quote= 3260_am_result=none 3261# First try GNU make style include. 3262echo "include confinc" > confmf 3263# Ignore all kinds of additional output from 'make'. 3264case `$am_make -s -f confmf 2> /dev/null` in #( 3265*the\ am__doit\ target*) 3266 am__include=include 3267 am__quote= 3268 _am_result=GNU 3269 ;; 3270esac 3271# Now try BSD make style include. 3272if test "$am__include" = "#"; then 3273 echo '.include "confinc"' > confmf 3274 case `$am_make -s -f confmf 2> /dev/null` in #( 3275 *the\ am__doit\ target*) 3276 am__include=.include 3277 am__quote="\"" 3278 _am_result=BSD 3279 ;; 3280 esac 3281fi 3282 3283 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3285$as_echo "$_am_result" >&6; } 3286rm -f confinc confmf 3287 3288# Check whether --enable-dependency-tracking was given. 3289if test "${enable_dependency_tracking+set}" = set; then : 3290 enableval=$enable_dependency_tracking; 3291fi 3292 3293if test "x$enable_dependency_tracking" != xno; then 3294 am_depcomp="$ac_aux_dir/depcomp" 3295 AMDEPBACKSLASH='\' 3296 am__nodep='_no' 3297fi 3298 if test "x$enable_dependency_tracking" != xno; then 3299 AMDEP_TRUE= 3300 AMDEP_FALSE='#' 3301else 3302 AMDEP_TRUE='#' 3303 AMDEP_FALSE= 3304fi 3305 3306 3307ac_ext=c 3308ac_cpp='$CPP $CPPFLAGS' 3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3311ac_compiler_gnu=$ac_cv_c_compiler_gnu 3312if test -n "$ac_tool_prefix"; then 3313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3314set dummy ${ac_tool_prefix}gcc; ac_word=$2 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316$as_echo_n "checking for $ac_word... " >&6; } 3317if ${ac_cv_prog_CC+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 if test -n "$CC"; then 3321 ac_cv_prog_CC="$CC" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3330 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334done 3335 done 3336IFS=$as_save_IFS 3337 3338fi 3339fi 3340CC=$ac_cv_prog_CC 3341if test -n "$CC"; then 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3343$as_echo "$CC" >&6; } 3344else 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346$as_echo "no" >&6; } 3347fi 3348 3349 3350fi 3351if test -z "$ac_cv_prog_CC"; then 3352 ac_ct_CC=$CC 3353 # Extract the first word of "gcc", so it can be a program name with args. 3354set dummy gcc; ac_word=$2 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356$as_echo_n "checking for $ac_word... " >&6; } 3357if ${ac_cv_prog_ac_ct_CC+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 if test -n "$ac_ct_CC"; then 3361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3362else 3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 ac_cv_prog_ac_ct_CC="gcc" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378fi 3379fi 3380ac_ct_CC=$ac_cv_prog_ac_ct_CC 3381if test -n "$ac_ct_CC"; then 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3383$as_echo "$ac_ct_CC" >&6; } 3384else 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3386$as_echo "no" >&6; } 3387fi 3388 3389 if test "x$ac_ct_CC" = x; then 3390 CC="" 3391 else 3392 case $cross_compiling:$ac_tool_warned in 3393yes:) 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3396ac_tool_warned=yes ;; 3397esac 3398 CC=$ac_ct_CC 3399 fi 3400else 3401 CC="$ac_cv_prog_CC" 3402fi 3403 3404if test -z "$CC"; then 3405 if test -n "$ac_tool_prefix"; then 3406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3407set dummy ${ac_tool_prefix}cc; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if ${ac_cv_prog_CC+:} false; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$CC"; then 3414 ac_cv_prog_CC="$CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_CC="${ac_tool_prefix}cc" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433CC=$ac_cv_prog_CC 3434if test -n "$CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3436$as_echo "$CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 3443 fi 3444fi 3445if test -z "$CC"; then 3446 # Extract the first word of "cc", so it can be a program name with args. 3447set dummy cc; ac_word=$2 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3449$as_echo_n "checking for $ac_word... " >&6; } 3450if ${ac_cv_prog_CC+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 if test -n "$CC"; then 3454 ac_cv_prog_CC="$CC" # Let the user override the test. 3455else 3456 ac_prog_rejected=no 3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3458for as_dir in $PATH 3459do 3460 IFS=$as_save_IFS 3461 test -z "$as_dir" && as_dir=. 3462 for ac_exec_ext in '' $ac_executable_extensions; do 3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3465 ac_prog_rejected=yes 3466 continue 3467 fi 3468 ac_cv_prog_CC="cc" 3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3470 break 2 3471 fi 3472done 3473 done 3474IFS=$as_save_IFS 3475 3476if test $ac_prog_rejected = yes; then 3477 # We found a bogon in the path, so make sure we never use it. 3478 set dummy $ac_cv_prog_CC 3479 shift 3480 if test $# != 0; then 3481 # We chose a different compiler from the bogus one. 3482 # However, it has the same basename, so the bogon will be chosen 3483 # first if we set CC to just the basename; use the full file name. 3484 shift 3485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3486 fi 3487fi 3488fi 3489fi 3490CC=$ac_cv_prog_CC 3491if test -n "$CC"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3493$as_echo "$CC" >&6; } 3494else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496$as_echo "no" >&6; } 3497fi 3498 3499 3500fi 3501if test -z "$CC"; then 3502 if test -n "$ac_tool_prefix"; then 3503 for ac_prog in cl.exe 3504 do 3505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3508$as_echo_n "checking for $ac_word... " >&6; } 3509if ${ac_cv_prog_CC+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 if test -n "$CC"; then 3513 ac_cv_prog_CC="$CC" # Let the user override the test. 3514else 3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516for as_dir in $PATH 3517do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526done 3527 done 3528IFS=$as_save_IFS 3529 3530fi 3531fi 3532CC=$ac_cv_prog_CC 3533if test -n "$CC"; then 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3535$as_echo "$CC" >&6; } 3536else 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538$as_echo "no" >&6; } 3539fi 3540 3541 3542 test -n "$CC" && break 3543 done 3544fi 3545if test -z "$CC"; then 3546 ac_ct_CC=$CC 3547 for ac_prog in cl.exe 3548do 3549 # Extract the first word of "$ac_prog", so it can be a program name with args. 3550set dummy $ac_prog; ac_word=$2 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3552$as_echo_n "checking for $ac_word... " >&6; } 3553if ${ac_cv_prog_ac_ct_CC+:} false; then : 3554 $as_echo_n "(cached) " >&6 3555else 3556 if test -n "$ac_ct_CC"; then 3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3558else 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 test -z "$as_dir" && as_dir=. 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3566 ac_cv_prog_ac_ct_CC="$ac_prog" 3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3568 break 2 3569 fi 3570done 3571 done 3572IFS=$as_save_IFS 3573 3574fi 3575fi 3576ac_ct_CC=$ac_cv_prog_ac_ct_CC 3577if test -n "$ac_ct_CC"; then 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3579$as_echo "$ac_ct_CC" >&6; } 3580else 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3582$as_echo "no" >&6; } 3583fi 3584 3585 3586 test -n "$ac_ct_CC" && break 3587done 3588 3589 if test "x$ac_ct_CC" = x; then 3590 CC="" 3591 else 3592 case $cross_compiling:$ac_tool_warned in 3593yes:) 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3596ac_tool_warned=yes ;; 3597esac 3598 CC=$ac_ct_CC 3599 fi 3600fi 3601 3602fi 3603 3604 3605test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3607as_fn_error $? "no acceptable C compiler found in \$PATH 3608See \`config.log' for more details" "$LINENO" 5; } 3609 3610# Provide some information about the compiler. 3611$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3612set X $ac_compile 3613ac_compiler=$2 3614for ac_option in --version -v -V -qversion; do 3615 { { ac_try="$ac_compiler $ac_option >&5" 3616case "(($ac_try" in 3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3618 *) ac_try_echo=$ac_try;; 3619esac 3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3621$as_echo "$ac_try_echo"; } >&5 3622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3623 ac_status=$? 3624 if test -s conftest.err; then 3625 sed '10a\ 3626... rest of stderr output deleted ... 3627 10q' conftest.err >conftest.er1 3628 cat conftest.er1 >&5 3629 fi 3630 rm -f conftest.er1 conftest.err 3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3632 test $ac_status = 0; } 3633done 3634 3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636/* end confdefs.h. */ 3637 3638int 3639main () 3640{ 3641 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646ac_clean_files_save=$ac_clean_files 3647ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3648# Try to create an executable without -o first, disregard a.out. 3649# It will help us diagnose broken compilers, and finding out an intuition 3650# of exeext. 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3652$as_echo_n "checking whether the C compiler works... " >&6; } 3653ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3654 3655# The possible output files: 3656ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3657 3658ac_rmfiles= 3659for ac_file in $ac_files 3660do 3661 case $ac_file in 3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3663 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3664 esac 3665done 3666rm -f $ac_rmfiles 3667 3668if { { ac_try="$ac_link_default" 3669case "(($ac_try" in 3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3671 *) ac_try_echo=$ac_try;; 3672esac 3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3674$as_echo "$ac_try_echo"; } >&5 3675 (eval "$ac_link_default") 2>&5 3676 ac_status=$? 3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3678 test $ac_status = 0; }; then : 3679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3681# in a Makefile. We should not override ac_cv_exeext if it was cached, 3682# so that the user can short-circuit this test for compilers unknown to 3683# Autoconf. 3684for ac_file in $ac_files '' 3685do 3686 test -f "$ac_file" || continue 3687 case $ac_file in 3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3689 ;; 3690 [ab].out ) 3691 # We found the default executable, but exeext='' is most 3692 # certainly right. 3693 break;; 3694 *.* ) 3695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3696 then :; else 3697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3698 fi 3699 # We set ac_cv_exeext here because the later test for it is not 3700 # safe: cross compilers may not add the suffix if given an `-o' 3701 # argument, so we may need to know it at that point already. 3702 # Even if this section looks crufty: it has the advantage of 3703 # actually working. 3704 break;; 3705 * ) 3706 break;; 3707 esac 3708done 3709test "$ac_cv_exeext" = no && ac_cv_exeext= 3710 3711else 3712 ac_file='' 3713fi 3714if test -z "$ac_file"; then : 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3716$as_echo "no" >&6; } 3717$as_echo "$as_me: failed program was:" >&5 3718sed 's/^/| /' conftest.$ac_ext >&5 3719 3720{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722as_fn_error 77 "C compiler cannot create executables 3723See \`config.log' for more details" "$LINENO" 5; } 3724else 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3726$as_echo "yes" >&6; } 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3729$as_echo_n "checking for C compiler default output file name... " >&6; } 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3731$as_echo "$ac_file" >&6; } 3732ac_exeext=$ac_cv_exeext 3733 3734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3735ac_clean_files=$ac_clean_files_save 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3737$as_echo_n "checking for suffix of executables... " >&6; } 3738if { { ac_try="$ac_link" 3739case "(($ac_try" in 3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3741 *) ac_try_echo=$ac_try;; 3742esac 3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3744$as_echo "$ac_try_echo"; } >&5 3745 (eval "$ac_link") 2>&5 3746 ac_status=$? 3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3748 test $ac_status = 0; }; then : 3749 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3750# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3751# work properly (i.e., refer to `conftest.exe'), while it won't with 3752# `rm'. 3753for ac_file in conftest.exe conftest conftest.*; do 3754 test -f "$ac_file" || continue 3755 case $ac_file in 3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3758 break;; 3759 * ) break;; 3760 esac 3761done 3762else 3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3766See \`config.log' for more details" "$LINENO" 5; } 3767fi 3768rm -f conftest conftest$ac_cv_exeext 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3770$as_echo "$ac_cv_exeext" >&6; } 3771 3772rm -f conftest.$ac_ext 3773EXEEXT=$ac_cv_exeext 3774ac_exeext=$EXEEXT 3775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776/* end confdefs.h. */ 3777#include <stdio.h> 3778int 3779main () 3780{ 3781FILE *f = fopen ("conftest.out", "w"); 3782 return ferror (f) || fclose (f) != 0; 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788ac_clean_files="$ac_clean_files conftest.out" 3789# Check that the compiler produces executables we can run. If not, either 3790# the compiler is broken, or we cross compile. 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3792$as_echo_n "checking whether we are cross compiling... " >&6; } 3793if test "$cross_compiling" != yes; then 3794 { { ac_try="$ac_link" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800$as_echo "$ac_try_echo"; } >&5 3801 (eval "$ac_link") 2>&5 3802 ac_status=$? 3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; } 3805 if { ac_try='./conftest$ac_cv_exeext' 3806 { { case "(($ac_try" in 3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3808 *) ac_try_echo=$ac_try;; 3809esac 3810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3811$as_echo "$ac_try_echo"; } >&5 3812 (eval "$ac_try") 2>&5 3813 ac_status=$? 3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3815 test $ac_status = 0; }; }; then 3816 cross_compiling=no 3817 else 3818 if test "$cross_compiling" = maybe; then 3819 cross_compiling=yes 3820 else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823as_fn_error $? "cannot run C compiled programs. 3824If you meant to cross compile, use \`--host'. 3825See \`config.log' for more details" "$LINENO" 5; } 3826 fi 3827 fi 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3830$as_echo "$cross_compiling" >&6; } 3831 3832rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3833ac_clean_files=$ac_clean_files_save 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3835$as_echo_n "checking for suffix of object files... " >&6; } 3836if ${ac_cv_objext+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850rm -f conftest.o conftest.obj 3851if { { ac_try="$ac_compile" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857$as_echo "$ac_try_echo"; } >&5 3858 (eval "$ac_compile") 2>&5 3859 ac_status=$? 3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; }; then : 3862 for ac_file in conftest.o conftest.obj conftest.*; do 3863 test -f "$ac_file" || continue; 3864 case $ac_file in 3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3867 break;; 3868 esac 3869done 3870else 3871 $as_echo "$as_me: failed program was:" >&5 3872sed 's/^/| /' conftest.$ac_ext >&5 3873 3874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3876as_fn_error $? "cannot compute suffix of object files: cannot compile 3877See \`config.log' for more details" "$LINENO" 5; } 3878fi 3879rm -f conftest.$ac_cv_objext conftest.$ac_ext 3880fi 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3882$as_echo "$ac_cv_objext" >&6; } 3883OBJEXT=$ac_cv_objext 3884ac_objext=$OBJEXT 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3886$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3887if ${ac_cv_c_compiler_gnu+:} false; then : 3888 $as_echo_n "(cached) " >&6 3889else 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892 3893int 3894main () 3895{ 3896#ifndef __GNUC__ 3897 choke me 3898#endif 3899 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904if ac_fn_c_try_compile "$LINENO"; then : 3905 ac_compiler_gnu=yes 3906else 3907 ac_compiler_gnu=no 3908fi 3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3910ac_cv_c_compiler_gnu=$ac_compiler_gnu 3911 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3914$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3915if test $ac_compiler_gnu = yes; then 3916 GCC=yes 3917else 3918 GCC= 3919fi 3920ac_test_CFLAGS=${CFLAGS+set} 3921ac_save_CFLAGS=$CFLAGS 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3923$as_echo_n "checking whether $CC accepts -g... " >&6; } 3924if ${ac_cv_prog_cc_g+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 ac_save_c_werror_flag=$ac_c_werror_flag 3928 ac_c_werror_flag=yes 3929 ac_cv_prog_cc_g=no 3930 CFLAGS="-g" 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933 3934int 3935main () 3936{ 3937 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942if ac_fn_c_try_compile "$LINENO"; then : 3943 ac_cv_prog_cc_g=yes 3944else 3945 CFLAGS="" 3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3947/* end confdefs.h. */ 3948 3949int 3950main () 3951{ 3952 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957if ac_fn_c_try_compile "$LINENO"; then : 3958 3959else 3960 ac_c_werror_flag=$ac_save_c_werror_flag 3961 CFLAGS="-g" 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964 3965int 3966main () 3967{ 3968 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973if ac_fn_c_try_compile "$LINENO"; then : 3974 ac_cv_prog_cc_g=yes 3975fi 3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3977fi 3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3979fi 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3981 ac_c_werror_flag=$ac_save_c_werror_flag 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3984$as_echo "$ac_cv_prog_cc_g" >&6; } 3985if test "$ac_test_CFLAGS" = set; then 3986 CFLAGS=$ac_save_CFLAGS 3987elif test $ac_cv_prog_cc_g = yes; then 3988 if test "$GCC" = yes; then 3989 CFLAGS="-g -O2" 3990 else 3991 CFLAGS="-g" 3992 fi 3993else 3994 if test "$GCC" = yes; then 3995 CFLAGS="-O2" 3996 else 3997 CFLAGS= 3998 fi 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4001$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4002if ${ac_cv_prog_cc_c89+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 ac_cv_prog_cc_c89=no 4006ac_save_CC=$CC 4007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008/* end confdefs.h. */ 4009#include <stdarg.h> 4010#include <stdio.h> 4011struct stat; 4012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4013struct buf { int x; }; 4014FILE * (*rcsopen) (struct buf *, struct stat *, int); 4015static char *e (p, i) 4016 char **p; 4017 int i; 4018{ 4019 return p[i]; 4020} 4021static char *f (char * (*g) (char **, int), char **p, ...) 4022{ 4023 char *s; 4024 va_list v; 4025 va_start (v,p); 4026 s = g (p, va_arg (v,int)); 4027 va_end (v); 4028 return s; 4029} 4030 4031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4032 function prototypes and stuff, but not '\xHH' hex character constants. 4033 These don't provoke an error unfortunately, instead are silently treated 4034 as 'x'. The following induces an error, until -std is added to get 4035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4036 array size at least. It's necessary to write '\x00'==0 to get something 4037 that's true only with -std. */ 4038int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4039 4040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4041 inside strings and character constants. */ 4042#define FOO(x) 'x' 4043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4044 4045int test (int i, double x); 4046struct s1 {int (*f) (int a);}; 4047struct s2 {int (*f) (double a);}; 4048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4049int argc; 4050char **argv; 4051int 4052main () 4053{ 4054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4055 ; 4056 return 0; 4057} 4058_ACEOF 4059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4061do 4062 CC="$ac_save_CC $ac_arg" 4063 if ac_fn_c_try_compile "$LINENO"; then : 4064 ac_cv_prog_cc_c89=$ac_arg 4065fi 4066rm -f core conftest.err conftest.$ac_objext 4067 test "x$ac_cv_prog_cc_c89" != "xno" && break 4068done 4069rm -f conftest.$ac_ext 4070CC=$ac_save_CC 4071 4072fi 4073# AC_CACHE_VAL 4074case "x$ac_cv_prog_cc_c89" in 4075 x) 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4077$as_echo "none needed" >&6; } ;; 4078 xno) 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4080$as_echo "unsupported" >&6; } ;; 4081 *) 4082 CC="$CC $ac_cv_prog_cc_c89" 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4085esac 4086if test "x$ac_cv_prog_cc_c89" != xno; then : 4087 4088fi 4089 4090ac_ext=c 4091ac_cpp='$CPP $CPPFLAGS' 4092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4094ac_compiler_gnu=$ac_cv_c_compiler_gnu 4095 4096ac_ext=c 4097ac_cpp='$CPP $CPPFLAGS' 4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4100ac_compiler_gnu=$ac_cv_c_compiler_gnu 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4102$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4103if ${am_cv_prog_cc_c_o+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4107/* end confdefs.h. */ 4108 4109int 4110main () 4111{ 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117 # Make sure it works both with $CC and with simple cc. 4118 # Following AC_PROG_CC_C_O, we do the test twice because some 4119 # compilers refuse to overwrite an existing .o file with -o, 4120 # though they will create one. 4121 am_cv_prog_cc_c_o=yes 4122 for am_i in 1 2; do 4123 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4124 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4125 ac_status=$? 4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4127 (exit $ac_status); } \ 4128 && test -f conftest2.$ac_objext; then 4129 : OK 4130 else 4131 am_cv_prog_cc_c_o=no 4132 break 4133 fi 4134 done 4135 rm -f core conftest* 4136 unset am_i 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4139$as_echo "$am_cv_prog_cc_c_o" >&6; } 4140if test "$am_cv_prog_cc_c_o" != yes; then 4141 # Losing compiler, so override with the script. 4142 # FIXME: It is wrong to rewrite CC. 4143 # But if we don't then we get into trouble of one sort or another. 4144 # A longer-term fix would be to have automake use am__CC in this case, 4145 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4146 CC="$am_aux_dir/compile $CC" 4147fi 4148ac_ext=c 4149ac_cpp='$CPP $CPPFLAGS' 4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154 4155depcc="$CC" am_compiler_list= 4156 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4158$as_echo_n "checking dependency style of $depcc... " >&6; } 4159if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4163 # We make a subdir and do the tests there. Otherwise we can end up 4164 # making bogus files that we don't know about and never remove. For 4165 # instance it was reported that on HP-UX the gcc test will end up 4166 # making a dummy file named 'D' -- because '-MD' means "put the output 4167 # in D". 4168 rm -rf conftest.dir 4169 mkdir conftest.dir 4170 # Copy depcomp to subdir because otherwise we won't find it if we're 4171 # using a relative directory. 4172 cp "$am_depcomp" conftest.dir 4173 cd conftest.dir 4174 # We will build objects and dependencies in a subdirectory because 4175 # it helps to detect inapplicable dependency modes. For instance 4176 # both Tru64's cc and ICC support -MD to output dependencies as a 4177 # side effect of compilation, but ICC will put the dependencies in 4178 # the current directory while Tru64 will put them in the object 4179 # directory. 4180 mkdir sub 4181 4182 am_cv_CC_dependencies_compiler_type=none 4183 if test "$am_compiler_list" = ""; then 4184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4185 fi 4186 am__universal=false 4187 case " $depcc " in #( 4188 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4189 esac 4190 4191 for depmode in $am_compiler_list; do 4192 # Setup a source with many dependencies, because some compilers 4193 # like to wrap large dependency lists on column 80 (with \), and 4194 # we should not choose a depcomp mode which is confused by this. 4195 # 4196 # We need to recreate these files for each test, as the compiler may 4197 # overwrite some of them when testing with obscure command lines. 4198 # This happens at least with the AIX C compiler. 4199 : > sub/conftest.c 4200 for i in 1 2 3 4 5 6; do 4201 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4202 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4203 # Solaris 10 /bin/sh. 4204 echo '/* dummy */' > sub/conftst$i.h 4205 done 4206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4207 4208 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4209 # mode. It turns out that the SunPro C++ compiler does not properly 4210 # handle '-M -o', and we need to detect this. Also, some Intel 4211 # versions had trouble with output in subdirs. 4212 am__obj=sub/conftest.${OBJEXT-o} 4213 am__minus_obj="-o $am__obj" 4214 case $depmode in 4215 gcc) 4216 # This depmode causes a compiler race in universal mode. 4217 test "$am__universal" = false || continue 4218 ;; 4219 nosideeffect) 4220 # After this tag, mechanisms are not by side-effect, so they'll 4221 # only be used when explicitly requested. 4222 if test "x$enable_dependency_tracking" = xyes; then 4223 continue 4224 else 4225 break 4226 fi 4227 ;; 4228 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4229 # This compiler won't grok '-c -o', but also, the minuso test has 4230 # not run yet. These depmodes are late enough in the game, and 4231 # so weak that their functioning should not be impacted. 4232 am__obj=conftest.${OBJEXT-o} 4233 am__minus_obj= 4234 ;; 4235 none) break ;; 4236 esac 4237 if depmode=$depmode \ 4238 source=sub/conftest.c object=$am__obj \ 4239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4240 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4241 >/dev/null 2>conftest.err && 4242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4244 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4246 # icc doesn't choke on unknown options, it will just issue warnings 4247 # or remarks (even with -Werror). So we grep stderr for any message 4248 # that says an option was ignored or not supported. 4249 # When given -MP, icc 7.0 and 7.1 complain thusly: 4250 # icc: Command line warning: ignoring option '-M'; no argument required 4251 # The diagnosis changed in icc 8.0: 4252 # icc: Command line remark: option '-MP' not supported 4253 if (grep 'ignoring option' conftest.err || 4254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4255 am_cv_CC_dependencies_compiler_type=$depmode 4256 break 4257 fi 4258 fi 4259 done 4260 4261 cd .. 4262 rm -rf conftest.dir 4263else 4264 am_cv_CC_dependencies_compiler_type=none 4265fi 4266 4267fi 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4269$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4270CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4271 4272 if 4273 test "x$enable_dependency_tracking" != xno \ 4274 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4275 am__fastdepCC_TRUE= 4276 am__fastdepCC_FALSE='#' 4277else 4278 am__fastdepCC_TRUE='#' 4279 am__fastdepCC_FALSE= 4280fi 4281 4282 4283 4284# Check whether --enable-compiler-warnings was given. 4285if test "${enable_compiler_warnings+set}" = set; then : 4286 enableval=$enable_compiler_warnings; 4287fi 4288case $enable_compiler_warnings in #( 4289 no | min | yes | max | all) : 4290 ;; #( 4291 *) : 4292 if test "x$enable_maintainer_mode" = xyes; then : 4293 enable_compiler_warnings=yes 4294else 4295 enable_compiler_warnings=min 4296fi ;; 4297esac 4298 4299case `pwd` in 4300 *\ * | *\ *) 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4302$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4303esac 4304 4305 4306 4307macro_version='2.4.2' 4308macro_revision='1.3337' 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322ltmain="$ac_aux_dir/ltmain.sh" 4323 4324# Make sure we can run config.sub. 4325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4327 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4329$as_echo_n "checking build system type... " >&6; } 4330if ${ac_cv_build+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 ac_build_alias=$build_alias 4334test "x$ac_build_alias" = x && 4335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4336test "x$ac_build_alias" = x && 4337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4340 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4343$as_echo "$ac_cv_build" >&6; } 4344case $ac_cv_build in 4345*-*-*) ;; 4346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4347esac 4348build=$ac_cv_build 4349ac_save_IFS=$IFS; IFS='-' 4350set x $ac_cv_build 4351shift 4352build_cpu=$1 4353build_vendor=$2 4354shift; shift 4355# Remember, the first character of IFS is used to create $*, 4356# except with old shells: 4357build_os=$* 4358IFS=$ac_save_IFS 4359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4360 4361 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4363$as_echo_n "checking host system type... " >&6; } 4364if ${ac_cv_host+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366else 4367 if test "x$host_alias" = x; then 4368 ac_cv_host=$ac_cv_build 4369else 4370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4372fi 4373 4374fi 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4376$as_echo "$ac_cv_host" >&6; } 4377case $ac_cv_host in 4378*-*-*) ;; 4379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4380esac 4381host=$ac_cv_host 4382ac_save_IFS=$IFS; IFS='-' 4383set x $ac_cv_host 4384shift 4385host_cpu=$1 4386host_vendor=$2 4387shift; shift 4388# Remember, the first character of IFS is used to create $*, 4389# except with old shells: 4390host_os=$* 4391IFS=$ac_save_IFS 4392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4393 4394 4395# Backslashify metacharacters that are still active within 4396# double-quoted strings. 4397sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4398 4399# Same as above, but do not quote variable references. 4400double_quote_subst='s/\(["`\\]\)/\\\1/g' 4401 4402# Sed substitution to delay expansion of an escaped shell variable in a 4403# double_quote_subst'ed string. 4404delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4405 4406# Sed substitution to delay expansion of an escaped single quote. 4407delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4408 4409# Sed substitution to avoid accidental globbing in evaled expressions 4410no_glob_subst='s/\*/\\\*/g' 4411 4412ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4415 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4417$as_echo_n "checking how to print strings... " >&6; } 4418# Test print first, because it will be a builtin if present. 4419if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4420 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4421 ECHO='print -r --' 4422elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4423 ECHO='printf %s\n' 4424else 4425 # Use this function as a fallback that always works. 4426 func_fallback_echo () 4427 { 4428 eval 'cat <<_LTECHO_EOF 4429$1 4430_LTECHO_EOF' 4431 } 4432 ECHO='func_fallback_echo' 4433fi 4434 4435# func_echo_all arg... 4436# Invoke $ECHO with all args, space-separated. 4437func_echo_all () 4438{ 4439 $ECHO "" 4440} 4441 4442case "$ECHO" in 4443 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4444$as_echo "printf" >&6; } ;; 4445 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4446$as_echo "print -r" >&6; } ;; 4447 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4448$as_echo "cat" >&6; } ;; 4449esac 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4465$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4466if ${ac_cv_path_SED+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4470 for ac_i in 1 2 3 4 5 6 7; do 4471 ac_script="$ac_script$as_nl$ac_script" 4472 done 4473 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4474 { ac_script=; unset ac_script;} 4475 if test -z "$SED"; then 4476 ac_path_SED_found=false 4477 # Loop through the user's path and test for each of PROGNAME-LIST 4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_prog in sed gsed; do 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4486 as_fn_executable_p "$ac_path_SED" || continue 4487# Check for GNU ac_path_SED and select it if it is found. 4488 # Check for GNU $ac_path_SED 4489case `"$ac_path_SED" --version 2>&1` in 4490*GNU*) 4491 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4492*) 4493 ac_count=0 4494 $as_echo_n 0123456789 >"conftest.in" 4495 while : 4496 do 4497 cat "conftest.in" "conftest.in" >"conftest.tmp" 4498 mv "conftest.tmp" "conftest.in" 4499 cp "conftest.in" "conftest.nl" 4500 $as_echo '' >> "conftest.nl" 4501 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4503 as_fn_arith $ac_count + 1 && ac_count=$as_val 4504 if test $ac_count -gt ${ac_path_SED_max-0}; then 4505 # Best one so far, save it but keep looking for a better one 4506 ac_cv_path_SED="$ac_path_SED" 4507 ac_path_SED_max=$ac_count 4508 fi 4509 # 10*(2^10) chars as input seems more than enough 4510 test $ac_count -gt 10 && break 4511 done 4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4513esac 4514 4515 $ac_path_SED_found && break 3 4516 done 4517 done 4518 done 4519IFS=$as_save_IFS 4520 if test -z "$ac_cv_path_SED"; then 4521 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4522 fi 4523else 4524 ac_cv_path_SED=$SED 4525fi 4526 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4529$as_echo "$ac_cv_path_SED" >&6; } 4530 SED="$ac_cv_path_SED" 4531 rm -f conftest.sed 4532 4533test -z "$SED" && SED=sed 4534Xsed="$SED -e 1s/^X//" 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4547$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4548if ${ac_cv_path_GREP+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -z "$GREP"; then 4552 ac_path_GREP_found=false 4553 # Loop through the user's path and test for each of PROGNAME-LIST 4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_prog in grep ggrep; do 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4562 as_fn_executable_p "$ac_path_GREP" || continue 4563# Check for GNU ac_path_GREP and select it if it is found. 4564 # Check for GNU $ac_path_GREP 4565case `"$ac_path_GREP" --version 2>&1` in 4566*GNU*) 4567 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4568*) 4569 ac_count=0 4570 $as_echo_n 0123456789 >"conftest.in" 4571 while : 4572 do 4573 cat "conftest.in" "conftest.in" >"conftest.tmp" 4574 mv "conftest.tmp" "conftest.in" 4575 cp "conftest.in" "conftest.nl" 4576 $as_echo 'GREP' >> "conftest.nl" 4577 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4579 as_fn_arith $ac_count + 1 && ac_count=$as_val 4580 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4581 # Best one so far, save it but keep looking for a better one 4582 ac_cv_path_GREP="$ac_path_GREP" 4583 ac_path_GREP_max=$ac_count 4584 fi 4585 # 10*(2^10) chars as input seems more than enough 4586 test $ac_count -gt 10 && break 4587 done 4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4589esac 4590 4591 $ac_path_GREP_found && break 3 4592 done 4593 done 4594 done 4595IFS=$as_save_IFS 4596 if test -z "$ac_cv_path_GREP"; then 4597 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4598 fi 4599else 4600 ac_cv_path_GREP=$GREP 4601fi 4602 4603fi 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4605$as_echo "$ac_cv_path_GREP" >&6; } 4606 GREP="$ac_cv_path_GREP" 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4610$as_echo_n "checking for egrep... " >&6; } 4611if ${ac_cv_path_EGREP+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4615 then ac_cv_path_EGREP="$GREP -E" 4616 else 4617 if test -z "$EGREP"; then 4618 ac_path_EGREP_found=false 4619 # Loop through the user's path and test for each of PROGNAME-LIST 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4622do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_prog in egrep; do 4626 for ac_exec_ext in '' $ac_executable_extensions; do 4627 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4628 as_fn_executable_p "$ac_path_EGREP" || continue 4629# Check for GNU ac_path_EGREP and select it if it is found. 4630 # Check for GNU $ac_path_EGREP 4631case `"$ac_path_EGREP" --version 2>&1` in 4632*GNU*) 4633 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4634*) 4635 ac_count=0 4636 $as_echo_n 0123456789 >"conftest.in" 4637 while : 4638 do 4639 cat "conftest.in" "conftest.in" >"conftest.tmp" 4640 mv "conftest.tmp" "conftest.in" 4641 cp "conftest.in" "conftest.nl" 4642 $as_echo 'EGREP' >> "conftest.nl" 4643 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4645 as_fn_arith $ac_count + 1 && ac_count=$as_val 4646 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4647 # Best one so far, save it but keep looking for a better one 4648 ac_cv_path_EGREP="$ac_path_EGREP" 4649 ac_path_EGREP_max=$ac_count 4650 fi 4651 # 10*(2^10) chars as input seems more than enough 4652 test $ac_count -gt 10 && break 4653 done 4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4655esac 4656 4657 $ac_path_EGREP_found && break 3 4658 done 4659 done 4660 done 4661IFS=$as_save_IFS 4662 if test -z "$ac_cv_path_EGREP"; then 4663 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4664 fi 4665else 4666 ac_cv_path_EGREP=$EGREP 4667fi 4668 4669 fi 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4672$as_echo "$ac_cv_path_EGREP" >&6; } 4673 EGREP="$ac_cv_path_EGREP" 4674 4675 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4677$as_echo_n "checking for fgrep... " >&6; } 4678if ${ac_cv_path_FGREP+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680else 4681 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4682 then ac_cv_path_FGREP="$GREP -F" 4683 else 4684 if test -z "$FGREP"; then 4685 ac_path_FGREP_found=false 4686 # Loop through the user's path and test for each of PROGNAME-LIST 4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4689do 4690 IFS=$as_save_IFS 4691 test -z "$as_dir" && as_dir=. 4692 for ac_prog in fgrep; do 4693 for ac_exec_ext in '' $ac_executable_extensions; do 4694 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4695 as_fn_executable_p "$ac_path_FGREP" || continue 4696# Check for GNU ac_path_FGREP and select it if it is found. 4697 # Check for GNU $ac_path_FGREP 4698case `"$ac_path_FGREP" --version 2>&1` in 4699*GNU*) 4700 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4701*) 4702 ac_count=0 4703 $as_echo_n 0123456789 >"conftest.in" 4704 while : 4705 do 4706 cat "conftest.in" "conftest.in" >"conftest.tmp" 4707 mv "conftest.tmp" "conftest.in" 4708 cp "conftest.in" "conftest.nl" 4709 $as_echo 'FGREP' >> "conftest.nl" 4710 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4712 as_fn_arith $ac_count + 1 && ac_count=$as_val 4713 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4714 # Best one so far, save it but keep looking for a better one 4715 ac_cv_path_FGREP="$ac_path_FGREP" 4716 ac_path_FGREP_max=$ac_count 4717 fi 4718 # 10*(2^10) chars as input seems more than enough 4719 test $ac_count -gt 10 && break 4720 done 4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4722esac 4723 4724 $ac_path_FGREP_found && break 3 4725 done 4726 done 4727 done 4728IFS=$as_save_IFS 4729 if test -z "$ac_cv_path_FGREP"; then 4730 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4731 fi 4732else 4733 ac_cv_path_FGREP=$FGREP 4734fi 4735 4736 fi 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4739$as_echo "$ac_cv_path_FGREP" >&6; } 4740 FGREP="$ac_cv_path_FGREP" 4741 4742 4743test -z "$GREP" && GREP=grep 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763# Check whether --with-gnu-ld was given. 4764if test "${with_gnu_ld+set}" = set; then : 4765 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4766else 4767 with_gnu_ld=no 4768fi 4769 4770ac_prog=ld 4771if test "$GCC" = yes; then 4772 # Check if gcc -print-prog-name=ld gives a path. 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4774$as_echo_n "checking for ld used by $CC... " >&6; } 4775 case $host in 4776 *-*-mingw*) 4777 # gcc leaves a trailing carriage return which upsets mingw 4778 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4779 *) 4780 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4781 esac 4782 case $ac_prog in 4783 # Accept absolute paths. 4784 [\\/]* | ?:[\\/]*) 4785 re_direlt='/[^/][^/]*/\.\./' 4786 # Canonicalize the pathname of ld 4787 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4788 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4789 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4790 done 4791 test -z "$LD" && LD="$ac_prog" 4792 ;; 4793 "") 4794 # If it fails, then pretend we aren't using GCC. 4795 ac_prog=ld 4796 ;; 4797 *) 4798 # If it is relative, then search for the first ld in PATH. 4799 with_gnu_ld=unknown 4800 ;; 4801 esac 4802elif test "$with_gnu_ld" = yes; then 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4804$as_echo_n "checking for GNU ld... " >&6; } 4805else 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4807$as_echo_n "checking for non-GNU ld... " >&6; } 4808fi 4809if ${lt_cv_path_LD+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 if test -z "$LD"; then 4813 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4814 for ac_dir in $PATH; do 4815 IFS="$lt_save_ifs" 4816 test -z "$ac_dir" && ac_dir=. 4817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4818 lt_cv_path_LD="$ac_dir/$ac_prog" 4819 # Check to see if the program is GNU ld. I'd rather use --version, 4820 # but apparently some variants of GNU ld only accept -v. 4821 # Break only if it was the GNU/non-GNU ld that we prefer. 4822 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4823 *GNU* | *'with BFD'*) 4824 test "$with_gnu_ld" != no && break 4825 ;; 4826 *) 4827 test "$with_gnu_ld" != yes && break 4828 ;; 4829 esac 4830 fi 4831 done 4832 IFS="$lt_save_ifs" 4833else 4834 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4835fi 4836fi 4837 4838LD="$lt_cv_path_LD" 4839if test -n "$LD"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4841$as_echo "$LD" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844$as_echo "no" >&6; } 4845fi 4846test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4848$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4849if ${lt_cv_prog_gnu_ld+:} false; then : 4850 $as_echo_n "(cached) " >&6 4851else 4852 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4853case `$LD -v 2>&1 </dev/null` in 4854*GNU* | *'with BFD'*) 4855 lt_cv_prog_gnu_ld=yes 4856 ;; 4857*) 4858 lt_cv_prog_gnu_ld=no 4859 ;; 4860esac 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4863$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4864with_gnu_ld=$lt_cv_prog_gnu_ld 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4875$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4876if ${lt_cv_path_NM+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 if test -n "$NM"; then 4880 # Let the user override the test. 4881 lt_cv_path_NM="$NM" 4882else 4883 lt_nm_to_check="${ac_tool_prefix}nm" 4884 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4885 lt_nm_to_check="$lt_nm_to_check nm" 4886 fi 4887 for lt_tmp_nm in $lt_nm_to_check; do 4888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4889 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4890 IFS="$lt_save_ifs" 4891 test -z "$ac_dir" && ac_dir=. 4892 tmp_nm="$ac_dir/$lt_tmp_nm" 4893 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4894 # Check to see if the nm accepts a BSD-compat flag. 4895 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4896 # nm: unknown option "B" ignored 4897 # Tru64's nm complains that /dev/null is an invalid object file 4898 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4899 */dev/null* | *'Invalid file or object type'*) 4900 lt_cv_path_NM="$tmp_nm -B" 4901 break 4902 ;; 4903 *) 4904 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4905 */dev/null*) 4906 lt_cv_path_NM="$tmp_nm -p" 4907 break 4908 ;; 4909 *) 4910 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4911 continue # so that we can try to find one that supports BSD flags 4912 ;; 4913 esac 4914 ;; 4915 esac 4916 fi 4917 done 4918 IFS="$lt_save_ifs" 4919 done 4920 : ${lt_cv_path_NM=no} 4921fi 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4924$as_echo "$lt_cv_path_NM" >&6; } 4925if test "$lt_cv_path_NM" != "no"; then 4926 NM="$lt_cv_path_NM" 4927else 4928 # Didn't find any BSD compatible name lister, look for dumpbin. 4929 if test -n "$DUMPBIN"; then : 4930 # Let the user override the test. 4931 else 4932 if test -n "$ac_tool_prefix"; then 4933 for ac_prog in dumpbin "link -dump" 4934 do 4935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4936set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4938$as_echo_n "checking for $ac_word... " >&6; } 4939if ${ac_cv_prog_DUMPBIN+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 if test -n "$DUMPBIN"; then 4943 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4944else 4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946for as_dir in $PATH 4947do 4948 IFS=$as_save_IFS 4949 test -z "$as_dir" && as_dir=. 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4952 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4954 break 2 4955 fi 4956done 4957 done 4958IFS=$as_save_IFS 4959 4960fi 4961fi 4962DUMPBIN=$ac_cv_prog_DUMPBIN 4963if test -n "$DUMPBIN"; then 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4965$as_echo "$DUMPBIN" >&6; } 4966else 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4968$as_echo "no" >&6; } 4969fi 4970 4971 4972 test -n "$DUMPBIN" && break 4973 done 4974fi 4975if test -z "$DUMPBIN"; then 4976 ac_ct_DUMPBIN=$DUMPBIN 4977 for ac_prog in dumpbin "link -dump" 4978do 4979 # Extract the first word of "$ac_prog", so it can be a program name with args. 4980set dummy $ac_prog; ac_word=$2 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4982$as_echo_n "checking for $ac_word... " >&6; } 4983if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 if test -n "$ac_ct_DUMPBIN"; then 4987 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4988else 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4996 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001 done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5007if test -n "$ac_ct_DUMPBIN"; then 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5009$as_echo "$ac_ct_DUMPBIN" >&6; } 5010else 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5012$as_echo "no" >&6; } 5013fi 5014 5015 5016 test -n "$ac_ct_DUMPBIN" && break 5017done 5018 5019 if test "x$ac_ct_DUMPBIN" = x; then 5020 DUMPBIN=":" 5021 else 5022 case $cross_compiling:$ac_tool_warned in 5023yes:) 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5026ac_tool_warned=yes ;; 5027esac 5028 DUMPBIN=$ac_ct_DUMPBIN 5029 fi 5030fi 5031 5032 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5033 *COFF*) 5034 DUMPBIN="$DUMPBIN -symbols" 5035 ;; 5036 *) 5037 DUMPBIN=: 5038 ;; 5039 esac 5040 fi 5041 5042 if test "$DUMPBIN" != ":"; then 5043 NM="$DUMPBIN" 5044 fi 5045fi 5046test -z "$NM" && NM=nm 5047 5048 5049 5050 5051 5052 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5054$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5055if ${lt_cv_nm_interface+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 lt_cv_nm_interface="BSD nm" 5059 echo "int some_variable = 0;" > conftest.$ac_ext 5060 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5061 (eval "$ac_compile" 2>conftest.err) 5062 cat conftest.err >&5 5063 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5064 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5065 cat conftest.err >&5 5066 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5067 cat conftest.out >&5 5068 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5069 lt_cv_nm_interface="MS dumpbin" 5070 fi 5071 rm -f conftest* 5072fi 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5074$as_echo "$lt_cv_nm_interface" >&6; } 5075 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5077$as_echo_n "checking whether ln -s works... " >&6; } 5078LN_S=$as_ln_s 5079if test "$LN_S" = "ln -s"; then 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5081$as_echo "yes" >&6; } 5082else 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5084$as_echo "no, using $LN_S" >&6; } 5085fi 5086 5087# find the maximum length of command line arguments 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5089$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5090if ${lt_cv_sys_max_cmd_len+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 i=0 5094 teststring="ABCD" 5095 5096 case $build_os in 5097 msdosdjgpp*) 5098 # On DJGPP, this test can blow up pretty badly due to problems in libc 5099 # (any single argument exceeding 2000 bytes causes a buffer overrun 5100 # during glob expansion). Even if it were fixed, the result of this 5101 # check would be larger than it should be. 5102 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5103 ;; 5104 5105 gnu*) 5106 # Under GNU Hurd, this test is not required because there is 5107 # no limit to the length of command line arguments. 5108 # Libtool will interpret -1 as no limit whatsoever 5109 lt_cv_sys_max_cmd_len=-1; 5110 ;; 5111 5112 cygwin* | mingw* | cegcc*) 5113 # On Win9x/ME, this test blows up -- it succeeds, but takes 5114 # about 5 minutes as the teststring grows exponentially. 5115 # Worse, since 9x/ME are not pre-emptively multitasking, 5116 # you end up with a "frozen" computer, even though with patience 5117 # the test eventually succeeds (with a max line length of 256k). 5118 # Instead, let's just punt: use the minimum linelength reported by 5119 # all of the supported platforms: 8192 (on NT/2K/XP). 5120 lt_cv_sys_max_cmd_len=8192; 5121 ;; 5122 5123 mint*) 5124 # On MiNT this can take a long time and run out of memory. 5125 lt_cv_sys_max_cmd_len=8192; 5126 ;; 5127 5128 amigaos*) 5129 # On AmigaOS with pdksh, this test takes hours, literally. 5130 # So we just punt and use a minimum line length of 8192. 5131 lt_cv_sys_max_cmd_len=8192; 5132 ;; 5133 5134 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5135 # This has been around since 386BSD, at least. Likely further. 5136 if test -x /sbin/sysctl; then 5137 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5138 elif test -x /usr/sbin/sysctl; then 5139 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5140 else 5141 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5142 fi 5143 # And add a safety zone 5144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5146 ;; 5147 5148 interix*) 5149 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5150 lt_cv_sys_max_cmd_len=196608 5151 ;; 5152 5153 os2*) 5154 # The test takes a long time on OS/2. 5155 lt_cv_sys_max_cmd_len=8192 5156 ;; 5157 5158 osf*) 5159 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5160 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5161 # nice to cause kernel panics so lets avoid the loop below. 5162 # First set a reasonable default. 5163 lt_cv_sys_max_cmd_len=16384 5164 # 5165 if test -x /sbin/sysconfig; then 5166 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5167 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5168 esac 5169 fi 5170 ;; 5171 sco3.2v5*) 5172 lt_cv_sys_max_cmd_len=102400 5173 ;; 5174 sysv5* | sco5v6* | sysv4.2uw2*) 5175 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5176 if test -n "$kargmax"; then 5177 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5178 else 5179 lt_cv_sys_max_cmd_len=32768 5180 fi 5181 ;; 5182 *) 5183 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5184 if test -n "$lt_cv_sys_max_cmd_len"; then 5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5187 else 5188 # Make teststring a little bigger before we do anything with it. 5189 # a 1K string should be a reasonable start. 5190 for i in 1 2 3 4 5 6 7 8 ; do 5191 teststring=$teststring$teststring 5192 done 5193 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5194 # If test is not a shell built-in, we'll probably end up computing a 5195 # maximum length that is only half of the actual maximum length, but 5196 # we can't tell. 5197 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5198 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5199 test $i != 17 # 1/2 MB should be enough 5200 do 5201 i=`expr $i + 1` 5202 teststring=$teststring$teststring 5203 done 5204 # Only check the string length outside the loop. 5205 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5206 teststring= 5207 # Add a significant safety factor because C++ compilers can tack on 5208 # massive amounts of additional arguments before passing them to the 5209 # linker. It appears as though 1/2 is a usable value. 5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5211 fi 5212 ;; 5213 esac 5214 5215fi 5216 5217if test -n $lt_cv_sys_max_cmd_len ; then 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5219$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5220else 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5222$as_echo "none" >&6; } 5223fi 5224max_cmd_len=$lt_cv_sys_max_cmd_len 5225 5226 5227 5228 5229 5230 5231: ${CP="cp -f"} 5232: ${MV="mv -f"} 5233: ${RM="rm -f"} 5234 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5236$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5237# Try some XSI features 5238xsi_shell=no 5239( _lt_dummy="a/b/c" 5240 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5241 = c,a/b,b/c, \ 5242 && eval 'test $(( 1 + 1 )) -eq 2 \ 5243 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5244 && xsi_shell=yes 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5246$as_echo "$xsi_shell" >&6; } 5247 5248 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5250$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5251lt_shell_append=no 5252( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5253 >/dev/null 2>&1 \ 5254 && lt_shell_append=yes 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5256$as_echo "$lt_shell_append" >&6; } 5257 5258 5259if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5260 lt_unset=unset 5261else 5262 lt_unset=false 5263fi 5264 5265 5266 5267 5268 5269# test EBCDIC or ASCII 5270case `echo X|tr X '\101'` in 5271 A) # ASCII based system 5272 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5273 lt_SP2NL='tr \040 \012' 5274 lt_NL2SP='tr \015\012 \040\040' 5275 ;; 5276 *) # EBCDIC based system 5277 lt_SP2NL='tr \100 \n' 5278 lt_NL2SP='tr \r\n \100\100' 5279 ;; 5280esac 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5291$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5292if ${lt_cv_to_host_file_cmd+:} false; then : 5293 $as_echo_n "(cached) " >&6 5294else 5295 case $host in 5296 *-*-mingw* ) 5297 case $build in 5298 *-*-mingw* ) # actually msys 5299 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5300 ;; 5301 *-*-cygwin* ) 5302 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5303 ;; 5304 * ) # otherwise, assume *nix 5305 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5306 ;; 5307 esac 5308 ;; 5309 *-*-cygwin* ) 5310 case $build in 5311 *-*-mingw* ) # actually msys 5312 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5313 ;; 5314 *-*-cygwin* ) 5315 lt_cv_to_host_file_cmd=func_convert_file_noop 5316 ;; 5317 * ) # otherwise, assume *nix 5318 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5319 ;; 5320 esac 5321 ;; 5322 * ) # unhandled hosts (and "normal" native builds) 5323 lt_cv_to_host_file_cmd=func_convert_file_noop 5324 ;; 5325esac 5326 5327fi 5328 5329to_host_file_cmd=$lt_cv_to_host_file_cmd 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5331$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5332 5333 5334 5335 5336 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5338$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5339if ${lt_cv_to_tool_file_cmd+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 #assume ordinary cross tools, or native build. 5343lt_cv_to_tool_file_cmd=func_convert_file_noop 5344case $host in 5345 *-*-mingw* ) 5346 case $build in 5347 *-*-mingw* ) # actually msys 5348 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5349 ;; 5350 esac 5351 ;; 5352esac 5353 5354fi 5355 5356to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5358$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5359 5360 5361 5362 5363 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5365$as_echo_n "checking for $LD option to reload object files... " >&6; } 5366if ${lt_cv_ld_reload_flag+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 lt_cv_ld_reload_flag='-r' 5370fi 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5372$as_echo "$lt_cv_ld_reload_flag" >&6; } 5373reload_flag=$lt_cv_ld_reload_flag 5374case $reload_flag in 5375"" | " "*) ;; 5376*) reload_flag=" $reload_flag" ;; 5377esac 5378reload_cmds='$LD$reload_flag -o $output$reload_objs' 5379case $host_os in 5380 cygwin* | mingw* | pw32* | cegcc*) 5381 if test "$GCC" != yes; then 5382 reload_cmds=false 5383 fi 5384 ;; 5385 darwin*) 5386 if test "$GCC" = yes; then 5387 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5388 else 5389 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5390 fi 5391 ;; 5392esac 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402if test -n "$ac_tool_prefix"; then 5403 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5404set dummy ${ac_tool_prefix}objdump; ac_word=$2 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5406$as_echo_n "checking for $ac_word... " >&6; } 5407if ${ac_cv_prog_OBJDUMP+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 if test -n "$OBJDUMP"; then 5411 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5412else 5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5414for as_dir in $PATH 5415do 5416 IFS=$as_save_IFS 5417 test -z "$as_dir" && as_dir=. 5418 for ac_exec_ext in '' $ac_executable_extensions; do 5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5420 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5422 break 2 5423 fi 5424done 5425 done 5426IFS=$as_save_IFS 5427 5428fi 5429fi 5430OBJDUMP=$ac_cv_prog_OBJDUMP 5431if test -n "$OBJDUMP"; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5433$as_echo "$OBJDUMP" >&6; } 5434else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5436$as_echo "no" >&6; } 5437fi 5438 5439 5440fi 5441if test -z "$ac_cv_prog_OBJDUMP"; then 5442 ac_ct_OBJDUMP=$OBJDUMP 5443 # Extract the first word of "objdump", so it can be a program name with args. 5444set dummy objdump; ac_word=$2 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5446$as_echo_n "checking for $ac_word... " >&6; } 5447if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 if test -n "$ac_ct_OBJDUMP"; then 5451 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5452else 5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5454for as_dir in $PATH 5455do 5456 IFS=$as_save_IFS 5457 test -z "$as_dir" && as_dir=. 5458 for ac_exec_ext in '' $ac_executable_extensions; do 5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5460 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5462 break 2 5463 fi 5464done 5465 done 5466IFS=$as_save_IFS 5467 5468fi 5469fi 5470ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5471if test -n "$ac_ct_OBJDUMP"; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5473$as_echo "$ac_ct_OBJDUMP" >&6; } 5474else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5476$as_echo "no" >&6; } 5477fi 5478 5479 if test "x$ac_ct_OBJDUMP" = x; then 5480 OBJDUMP="false" 5481 else 5482 case $cross_compiling:$ac_tool_warned in 5483yes:) 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5486ac_tool_warned=yes ;; 5487esac 5488 OBJDUMP=$ac_ct_OBJDUMP 5489 fi 5490else 5491 OBJDUMP="$ac_cv_prog_OBJDUMP" 5492fi 5493 5494test -z "$OBJDUMP" && OBJDUMP=objdump 5495 5496 5497 5498 5499 5500 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5502$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5503if ${lt_cv_deplibs_check_method+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 lt_cv_file_magic_cmd='$MAGIC_CMD' 5507lt_cv_file_magic_test_file= 5508lt_cv_deplibs_check_method='unknown' 5509# Need to set the preceding variable on all platforms that support 5510# interlibrary dependencies. 5511# 'none' -- dependencies not supported. 5512# `unknown' -- same as none, but documents that we really don't know. 5513# 'pass_all' -- all dependencies passed with no checks. 5514# 'test_compile' -- check by making test program. 5515# 'file_magic [[regex]]' -- check by looking for files in library path 5516# which responds to the $file_magic_cmd with a given extended regex. 5517# If you have `file' or equivalent on your system and you're not sure 5518# whether `pass_all' will *always* work, you probably want this one. 5519 5520case $host_os in 5521aix[4-9]*) 5522 lt_cv_deplibs_check_method=pass_all 5523 ;; 5524 5525beos*) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 5529bsdi[45]*) 5530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5531 lt_cv_file_magic_cmd='/usr/bin/file -L' 5532 lt_cv_file_magic_test_file=/shlib/libc.so 5533 ;; 5534 5535cygwin*) 5536 # func_win32_libid is a shell function defined in ltmain.sh 5537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5538 lt_cv_file_magic_cmd='func_win32_libid' 5539 ;; 5540 5541mingw* | pw32*) 5542 # Base MSYS/MinGW do not provide the 'file' command needed by 5543 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5544 # unless we find 'file', for example because we are cross-compiling. 5545 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5546 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5548 lt_cv_file_magic_cmd='func_win32_libid' 5549 else 5550 # Keep this pattern in sync with the one in func_win32_libid. 5551 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5552 lt_cv_file_magic_cmd='$OBJDUMP -f' 5553 fi 5554 ;; 5555 5556cegcc*) 5557 # use the weaker test based on 'objdump'. See mingw*. 5558 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5559 lt_cv_file_magic_cmd='$OBJDUMP -f' 5560 ;; 5561 5562darwin* | rhapsody*) 5563 lt_cv_deplibs_check_method=pass_all 5564 ;; 5565 5566freebsd* | dragonfly*) 5567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5568 case $host_cpu in 5569 i*86 ) 5570 # Not sure whether the presence of OpenBSD here was a mistake. 5571 # Let's accept both of them until this is cleared up. 5572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5573 lt_cv_file_magic_cmd=/usr/bin/file 5574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5575 ;; 5576 esac 5577 else 5578 lt_cv_deplibs_check_method=pass_all 5579 fi 5580 ;; 5581 5582gnu*) 5583 lt_cv_deplibs_check_method=pass_all 5584 ;; 5585 5586haiku*) 5587 lt_cv_deplibs_check_method=pass_all 5588 ;; 5589 5590hpux10.20* | hpux11*) 5591 lt_cv_file_magic_cmd=/usr/bin/file 5592 case $host_cpu in 5593 ia64*) 5594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5595 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5596 ;; 5597 hppa*64*) 5598 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]' 5599 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5600 ;; 5601 *) 5602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5603 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5604 ;; 5605 esac 5606 ;; 5607 5608interix[3-9]*) 5609 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5611 ;; 5612 5613irix5* | irix6* | nonstopux*) 5614 case $LD in 5615 *-32|*"-32 ") libmagic=32-bit;; 5616 *-n32|*"-n32 ") libmagic=N32;; 5617 *-64|*"-64 ") libmagic=64-bit;; 5618 *) libmagic=never-match;; 5619 esac 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623# This must be glibc/ELF. 5624linux* | k*bsd*-gnu | kopensolaris*-gnu) 5625 lt_cv_deplibs_check_method=pass_all 5626 ;; 5627 5628netbsd*) 5629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5631 else 5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5633 fi 5634 ;; 5635 5636newos6*) 5637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5638 lt_cv_file_magic_cmd=/usr/bin/file 5639 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5640 ;; 5641 5642*nto* | *qnx*) 5643 lt_cv_deplibs_check_method=pass_all 5644 ;; 5645 5646openbsd*) 5647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5649 else 5650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5651 fi 5652 ;; 5653 5654osf3* | osf4* | osf5*) 5655 lt_cv_deplibs_check_method=pass_all 5656 ;; 5657 5658rdos*) 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 5662solaris*) 5663 lt_cv_deplibs_check_method=pass_all 5664 ;; 5665 5666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5667 lt_cv_deplibs_check_method=pass_all 5668 ;; 5669 5670sysv4 | sysv4.3*) 5671 case $host_vendor in 5672 motorola) 5673 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]' 5674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5675 ;; 5676 ncr) 5677 lt_cv_deplibs_check_method=pass_all 5678 ;; 5679 sequent) 5680 lt_cv_file_magic_cmd='/bin/file' 5681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5682 ;; 5683 sni) 5684 lt_cv_file_magic_cmd='/bin/file' 5685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5686 lt_cv_file_magic_test_file=/lib/libc.so 5687 ;; 5688 siemens) 5689 lt_cv_deplibs_check_method=pass_all 5690 ;; 5691 pc) 5692 lt_cv_deplibs_check_method=pass_all 5693 ;; 5694 esac 5695 ;; 5696 5697tpf*) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700esac 5701 5702fi 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5704$as_echo "$lt_cv_deplibs_check_method" >&6; } 5705 5706file_magic_glob= 5707want_nocaseglob=no 5708if test "$build" = "$host"; then 5709 case $host_os in 5710 mingw* | pw32*) 5711 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5712 want_nocaseglob=yes 5713 else 5714 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5715 fi 5716 ;; 5717 esac 5718fi 5719 5720file_magic_cmd=$lt_cv_file_magic_cmd 5721deplibs_check_method=$lt_cv_deplibs_check_method 5722test -z "$deplibs_check_method" && deplibs_check_method=unknown 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745if test -n "$ac_tool_prefix"; then 5746 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5747set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5749$as_echo_n "checking for $ac_word... " >&6; } 5750if ${ac_cv_prog_DLLTOOL+:} false; then : 5751 $as_echo_n "(cached) " >&6 5752else 5753 if test -n "$DLLTOOL"; then 5754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5755else 5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5757for as_dir in $PATH 5758do 5759 IFS=$as_save_IFS 5760 test -z "$as_dir" && as_dir=. 5761 for ac_exec_ext in '' $ac_executable_extensions; do 5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5763 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5765 break 2 5766 fi 5767done 5768 done 5769IFS=$as_save_IFS 5770 5771fi 5772fi 5773DLLTOOL=$ac_cv_prog_DLLTOOL 5774if test -n "$DLLTOOL"; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5776$as_echo "$DLLTOOL" >&6; } 5777else 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5779$as_echo "no" >&6; } 5780fi 5781 5782 5783fi 5784if test -z "$ac_cv_prog_DLLTOOL"; then 5785 ac_ct_DLLTOOL=$DLLTOOL 5786 # Extract the first word of "dlltool", so it can be a program name with args. 5787set dummy dlltool; ac_word=$2 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5789$as_echo_n "checking for $ac_word... " >&6; } 5790if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 if test -n "$ac_ct_DLLTOOL"; then 5794 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5795else 5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797for as_dir in $PATH 5798do 5799 IFS=$as_save_IFS 5800 test -z "$as_dir" && as_dir=. 5801 for ac_exec_ext in '' $ac_executable_extensions; do 5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5803 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5805 break 2 5806 fi 5807done 5808 done 5809IFS=$as_save_IFS 5810 5811fi 5812fi 5813ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5814if test -n "$ac_ct_DLLTOOL"; then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5816$as_echo "$ac_ct_DLLTOOL" >&6; } 5817else 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5819$as_echo "no" >&6; } 5820fi 5821 5822 if test "x$ac_ct_DLLTOOL" = x; then 5823 DLLTOOL="false" 5824 else 5825 case $cross_compiling:$ac_tool_warned in 5826yes:) 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5829ac_tool_warned=yes ;; 5830esac 5831 DLLTOOL=$ac_ct_DLLTOOL 5832 fi 5833else 5834 DLLTOOL="$ac_cv_prog_DLLTOOL" 5835fi 5836 5837test -z "$DLLTOOL" && DLLTOOL=dlltool 5838 5839 5840 5841 5842 5843 5844 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5846$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5847if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 lt_cv_sharedlib_from_linklib_cmd='unknown' 5851 5852case $host_os in 5853cygwin* | mingw* | pw32* | cegcc*) 5854 # two different shell functions defined in ltmain.sh 5855 # decide which to use based on capabilities of $DLLTOOL 5856 case `$DLLTOOL --help 2>&1` in 5857 *--identify-strict*) 5858 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5859 ;; 5860 *) 5861 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5862 ;; 5863 esac 5864 ;; 5865*) 5866 # fallback: assume linklib IS sharedlib 5867 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5868 ;; 5869esac 5870 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5873$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5874sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5875test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5876 5877 5878 5879 5880 5881 5882 5883if test -n "$ac_tool_prefix"; then 5884 for ac_prog in ar 5885 do 5886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5887set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889$as_echo_n "checking for $ac_word... " >&6; } 5890if ${ac_cv_prog_AR+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 if test -n "$AR"; then 5894 ac_cv_prog_AR="$AR" # Let the user override the test. 5895else 5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897for as_dir in $PATH 5898do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5903 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907done 5908 done 5909IFS=$as_save_IFS 5910 5911fi 5912fi 5913AR=$ac_cv_prog_AR 5914if test -n "$AR"; then 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5916$as_echo "$AR" >&6; } 5917else 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919$as_echo "no" >&6; } 5920fi 5921 5922 5923 test -n "$AR" && break 5924 done 5925fi 5926if test -z "$AR"; then 5927 ac_ct_AR=$AR 5928 for ac_prog in ar 5929do 5930 # Extract the first word of "$ac_prog", so it can be a program name with args. 5931set dummy $ac_prog; ac_word=$2 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5933$as_echo_n "checking for $ac_word... " >&6; } 5934if ${ac_cv_prog_ac_ct_AR+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 if test -n "$ac_ct_AR"; then 5938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5939else 5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941for as_dir in $PATH 5942do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5947 ac_cv_prog_ac_ct_AR="$ac_prog" 5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5949 break 2 5950 fi 5951done 5952 done 5953IFS=$as_save_IFS 5954 5955fi 5956fi 5957ac_ct_AR=$ac_cv_prog_ac_ct_AR 5958if test -n "$ac_ct_AR"; then 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5960$as_echo "$ac_ct_AR" >&6; } 5961else 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5963$as_echo "no" >&6; } 5964fi 5965 5966 5967 test -n "$ac_ct_AR" && break 5968done 5969 5970 if test "x$ac_ct_AR" = x; then 5971 AR="false" 5972 else 5973 case $cross_compiling:$ac_tool_warned in 5974yes:) 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5977ac_tool_warned=yes ;; 5978esac 5979 AR=$ac_ct_AR 5980 fi 5981fi 5982 5983: ${AR=ar} 5984: ${AR_FLAGS=cru} 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5997$as_echo_n "checking for archiver @FILE support... " >&6; } 5998if ${lt_cv_ar_at_file+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 lt_cv_ar_at_file=no 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004 6005int 6006main () 6007{ 6008 6009 ; 6010 return 0; 6011} 6012_ACEOF 6013if ac_fn_c_try_compile "$LINENO"; then : 6014 echo conftest.$ac_objext > conftest.lst 6015 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6017 (eval $lt_ar_try) 2>&5 6018 ac_status=$? 6019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6020 test $ac_status = 0; } 6021 if test "$ac_status" -eq 0; then 6022 # Ensure the archiver fails upon bogus file names. 6023 rm -f conftest.$ac_objext libconftest.a 6024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6025 (eval $lt_ar_try) 2>&5 6026 ac_status=$? 6027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6028 test $ac_status = 0; } 6029 if test "$ac_status" -ne 0; then 6030 lt_cv_ar_at_file=@ 6031 fi 6032 fi 6033 rm -f conftest.* libconftest.a 6034 6035fi 6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6037 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6040$as_echo "$lt_cv_ar_at_file" >&6; } 6041 6042if test "x$lt_cv_ar_at_file" = xno; then 6043 archiver_list_spec= 6044else 6045 archiver_list_spec=$lt_cv_ar_at_file 6046fi 6047 6048 6049 6050 6051 6052 6053 6054if test -n "$ac_tool_prefix"; then 6055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6056set dummy ${ac_tool_prefix}strip; ac_word=$2 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6058$as_echo_n "checking for $ac_word... " >&6; } 6059if ${ac_cv_prog_STRIP+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 if test -n "$STRIP"; then 6063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6064else 6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6072 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077 done 6078IFS=$as_save_IFS 6079 6080fi 6081fi 6082STRIP=$ac_cv_prog_STRIP 6083if test -n "$STRIP"; then 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6085$as_echo "$STRIP" >&6; } 6086else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 6092fi 6093if test -z "$ac_cv_prog_STRIP"; then 6094 ac_ct_STRIP=$STRIP 6095 # Extract the first word of "strip", so it can be a program name with args. 6096set dummy strip; ac_word=$2 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098$as_echo_n "checking for $ac_word... " >&6; } 6099if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 if test -n "$ac_ct_STRIP"; then 6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6104else 6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106for as_dir in $PATH 6107do 6108 IFS=$as_save_IFS 6109 test -z "$as_dir" && as_dir=. 6110 for ac_exec_ext in '' $ac_executable_extensions; do 6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6112 ac_cv_prog_ac_ct_STRIP="strip" 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6114 break 2 6115 fi 6116done 6117 done 6118IFS=$as_save_IFS 6119 6120fi 6121fi 6122ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6123if test -n "$ac_ct_STRIP"; then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6125$as_echo "$ac_ct_STRIP" >&6; } 6126else 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6128$as_echo "no" >&6; } 6129fi 6130 6131 if test "x$ac_ct_STRIP" = x; then 6132 STRIP=":" 6133 else 6134 case $cross_compiling:$ac_tool_warned in 6135yes:) 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6138ac_tool_warned=yes ;; 6139esac 6140 STRIP=$ac_ct_STRIP 6141 fi 6142else 6143 STRIP="$ac_cv_prog_STRIP" 6144fi 6145 6146test -z "$STRIP" && STRIP=: 6147 6148 6149 6150 6151 6152 6153if test -n "$ac_tool_prefix"; then 6154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6155set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6157$as_echo_n "checking for $ac_word... " >&6; } 6158if ${ac_cv_prog_RANLIB+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$RANLIB"; then 6162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6163else 6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 test -z "$as_dir" && as_dir=. 6169 for ac_exec_ext in '' $ac_executable_extensions; do 6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6173 break 2 6174 fi 6175done 6176 done 6177IFS=$as_save_IFS 6178 6179fi 6180fi 6181RANLIB=$ac_cv_prog_RANLIB 6182if test -n "$RANLIB"; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6184$as_echo "$RANLIB" >&6; } 6185else 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 6191fi 6192if test -z "$ac_cv_prog_RANLIB"; then 6193 ac_ct_RANLIB=$RANLIB 6194 # Extract the first word of "ranlib", so it can be a program name with args. 6195set dummy ranlib; ac_word=$2 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6197$as_echo_n "checking for $ac_word... " >&6; } 6198if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 if test -n "$ac_ct_RANLIB"; then 6202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6203else 6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6205for as_dir in $PATH 6206do 6207 IFS=$as_save_IFS 6208 test -z "$as_dir" && as_dir=. 6209 for ac_exec_ext in '' $ac_executable_extensions; do 6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6211 ac_cv_prog_ac_ct_RANLIB="ranlib" 6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6213 break 2 6214 fi 6215done 6216 done 6217IFS=$as_save_IFS 6218 6219fi 6220fi 6221ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6222if test -n "$ac_ct_RANLIB"; then 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6224$as_echo "$ac_ct_RANLIB" >&6; } 6225else 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6227$as_echo "no" >&6; } 6228fi 6229 6230 if test "x$ac_ct_RANLIB" = x; then 6231 RANLIB=":" 6232 else 6233 case $cross_compiling:$ac_tool_warned in 6234yes:) 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6237ac_tool_warned=yes ;; 6238esac 6239 RANLIB=$ac_ct_RANLIB 6240 fi 6241else 6242 RANLIB="$ac_cv_prog_RANLIB" 6243fi 6244 6245test -z "$RANLIB" && RANLIB=: 6246 6247 6248 6249 6250 6251 6252# Determine commands to create old-style static archives. 6253old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6254old_postinstall_cmds='chmod 644 $oldlib' 6255old_postuninstall_cmds= 6256 6257if test -n "$RANLIB"; then 6258 case $host_os in 6259 openbsd*) 6260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6261 ;; 6262 *) 6263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6264 ;; 6265 esac 6266 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6267fi 6268 6269case $host_os in 6270 darwin*) 6271 lock_old_archive_extraction=yes ;; 6272 *) 6273 lock_old_archive_extraction=no ;; 6274esac 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314# If no C compiler was specified, use CC. 6315LTCC=${LTCC-"$CC"} 6316 6317# If no C compiler flags were specified, use CFLAGS. 6318LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6319 6320# Allow CC to be a program name with arguments. 6321compiler=$CC 6322 6323 6324# Check for command to grab the raw symbol name followed by C symbol from nm. 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6326$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6327if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 6331# These are sane defaults that work on at least a few old systems. 6332# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6333 6334# Character class describing NM global symbol codes. 6335symcode='[BCDEGRST]' 6336 6337# Regexp to match symbols that can be accessed directly from C. 6338sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6339 6340# Define system-specific variables. 6341case $host_os in 6342aix*) 6343 symcode='[BCDT]' 6344 ;; 6345cygwin* | mingw* | pw32* | cegcc*) 6346 symcode='[ABCDGISTW]' 6347 ;; 6348hpux*) 6349 if test "$host_cpu" = ia64; then 6350 symcode='[ABCDEGRST]' 6351 fi 6352 ;; 6353irix* | nonstopux*) 6354 symcode='[BCDEGRST]' 6355 ;; 6356osf*) 6357 symcode='[BCDEGQRST]' 6358 ;; 6359solaris*) 6360 symcode='[BDRT]' 6361 ;; 6362sco3.2v5*) 6363 symcode='[DT]' 6364 ;; 6365sysv4.2uw2*) 6366 symcode='[DT]' 6367 ;; 6368sysv5* | sco5v6* | unixware* | OpenUNIX*) 6369 symcode='[ABDT]' 6370 ;; 6371sysv4) 6372 symcode='[DFNSTU]' 6373 ;; 6374esac 6375 6376# If we're using GNU nm, then use its standard symbol codes. 6377case `$NM -V 2>&1` in 6378*GNU* | *'with BFD'*) 6379 symcode='[ABCDGIRSTW]' ;; 6380esac 6381 6382# Transform an extracted symbol line into a proper C declaration. 6383# Some systems (esp. on ia64) link data and code symbols differently, 6384# so use this general approach. 6385lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6386 6387# Transform an extracted symbol line into symbol name and symbol address 6388lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6389lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6390 6391# Handle CRLF in mingw tool chain 6392opt_cr= 6393case $build_os in 6394mingw*) 6395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6396 ;; 6397esac 6398 6399# Try without a prefix underscore, then with it. 6400for ac_symprfx in "" "_"; do 6401 6402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6403 symxfrm="\\1 $ac_symprfx\\2 \\2" 6404 6405 # Write the raw and C identifiers. 6406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6407 # Fake it for dumpbin and say T for any non-static function 6408 # and D for any global variable. 6409 # Also find C++ and __fastcall symbols from MSVC++, 6410 # which start with @ or ?. 6411 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6412" {last_section=section; section=\$ 3};"\ 6413" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6414" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6415" \$ 0!~/External *\|/{next};"\ 6416" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6417" {if(hide[section]) next};"\ 6418" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6419" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6420" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6421" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6422" ' prfx=^$ac_symprfx" 6423 else 6424 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6425 fi 6426 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6427 6428 # Check to see that the pipe works correctly. 6429 pipe_works=no 6430 6431 rm -f conftest* 6432 cat > conftest.$ac_ext <<_LT_EOF 6433#ifdef __cplusplus 6434extern "C" { 6435#endif 6436char nm_test_var; 6437void nm_test_func(void); 6438void nm_test_func(void){} 6439#ifdef __cplusplus 6440} 6441#endif 6442int main(){nm_test_var='a';nm_test_func();return(0);} 6443_LT_EOF 6444 6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6446 (eval $ac_compile) 2>&5 6447 ac_status=$? 6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6449 test $ac_status = 0; }; then 6450 # Now try to grab the symbols. 6451 nlist=conftest.nm 6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6453 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6454 ac_status=$? 6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6456 test $ac_status = 0; } && test -s "$nlist"; then 6457 # Try sorting and uniquifying the output. 6458 if sort "$nlist" | uniq > "$nlist"T; then 6459 mv -f "$nlist"T "$nlist" 6460 else 6461 rm -f "$nlist"T 6462 fi 6463 6464 # Make sure that we snagged all the symbols we need. 6465 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6466 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6467 cat <<_LT_EOF > conftest.$ac_ext 6468/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6469#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6470/* DATA imports from DLLs on WIN32 con't be const, because runtime 6471 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6472# define LT_DLSYM_CONST 6473#elif defined(__osf__) 6474/* This system does not cope well with relocations in const data. */ 6475# define LT_DLSYM_CONST 6476#else 6477# define LT_DLSYM_CONST const 6478#endif 6479 6480#ifdef __cplusplus 6481extern "C" { 6482#endif 6483 6484_LT_EOF 6485 # Now generate the symbol file. 6486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6487 6488 cat <<_LT_EOF >> conftest.$ac_ext 6489 6490/* The mapping between symbol names and symbols. */ 6491LT_DLSYM_CONST struct { 6492 const char *name; 6493 void *address; 6494} 6495lt__PROGRAM__LTX_preloaded_symbols[] = 6496{ 6497 { "@PROGRAM@", (void *) 0 }, 6498_LT_EOF 6499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6500 cat <<\_LT_EOF >> conftest.$ac_ext 6501 {0, (void *) 0} 6502}; 6503 6504/* This works around a problem in FreeBSD linker */ 6505#ifdef FREEBSD_WORKAROUND 6506static const void *lt_preloaded_setup() { 6507 return lt__PROGRAM__LTX_preloaded_symbols; 6508} 6509#endif 6510 6511#ifdef __cplusplus 6512} 6513#endif 6514_LT_EOF 6515 # Now try linking the two files. 6516 mv conftest.$ac_objext conftstm.$ac_objext 6517 lt_globsym_save_LIBS=$LIBS 6518 lt_globsym_save_CFLAGS=$CFLAGS 6519 LIBS="conftstm.$ac_objext" 6520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6522 (eval $ac_link) 2>&5 6523 ac_status=$? 6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6525 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6526 pipe_works=yes 6527 fi 6528 LIBS=$lt_globsym_save_LIBS 6529 CFLAGS=$lt_globsym_save_CFLAGS 6530 else 6531 echo "cannot find nm_test_func in $nlist" >&5 6532 fi 6533 else 6534 echo "cannot find nm_test_var in $nlist" >&5 6535 fi 6536 else 6537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6538 fi 6539 else 6540 echo "$progname: failed program was:" >&5 6541 cat conftest.$ac_ext >&5 6542 fi 6543 rm -rf conftest* conftst* 6544 6545 # Do not use the global_symbol_pipe unless it works. 6546 if test "$pipe_works" = yes; then 6547 break 6548 else 6549 lt_cv_sys_global_symbol_pipe= 6550 fi 6551done 6552 6553fi 6554 6555if test -z "$lt_cv_sys_global_symbol_pipe"; then 6556 lt_cv_sys_global_symbol_to_cdecl= 6557fi 6558if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6560$as_echo "failed" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6563$as_echo "ok" >&6; } 6564fi 6565 6566# Response file support. 6567if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6568 nm_file_list_spec='@' 6569elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6570 nm_file_list_spec='@' 6571fi 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6600$as_echo_n "checking for sysroot... " >&6; } 6601 6602# Check whether --with-sysroot was given. 6603if test "${with_sysroot+set}" = set; then : 6604 withval=$with_sysroot; 6605else 6606 with_sysroot=no 6607fi 6608 6609 6610lt_sysroot= 6611case ${with_sysroot} in #( 6612 yes) 6613 if test "$GCC" = yes; then 6614 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6615 fi 6616 ;; #( 6617 /*) 6618 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6619 ;; #( 6620 no|'') 6621 ;; #( 6622 *) 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6624$as_echo "${with_sysroot}" >&6; } 6625 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6626 ;; 6627esac 6628 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6630$as_echo "${lt_sysroot:-no}" >&6; } 6631 6632 6633 6634 6635 6636# Check whether --enable-libtool-lock was given. 6637if test "${enable_libtool_lock+set}" = set; then : 6638 enableval=$enable_libtool_lock; 6639fi 6640 6641test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6642 6643# Some flags need to be propagated to the compiler or linker for good 6644# libtool support. 6645case $host in 6646ia64-*-hpux*) 6647 # Find out which ABI we are using. 6648 echo 'int i;' > conftest.$ac_ext 6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6650 (eval $ac_compile) 2>&5 6651 ac_status=$? 6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6653 test $ac_status = 0; }; then 6654 case `/usr/bin/file conftest.$ac_objext` in 6655 *ELF-32*) 6656 HPUX_IA64_MODE="32" 6657 ;; 6658 *ELF-64*) 6659 HPUX_IA64_MODE="64" 6660 ;; 6661 esac 6662 fi 6663 rm -rf conftest* 6664 ;; 6665*-*-irix6*) 6666 # Find out which ABI we are using. 6667 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6669 (eval $ac_compile) 2>&5 6670 ac_status=$? 6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6672 test $ac_status = 0; }; then 6673 if test "$lt_cv_prog_gnu_ld" = yes; then 6674 case `/usr/bin/file conftest.$ac_objext` in 6675 *32-bit*) 6676 LD="${LD-ld} -melf32bsmip" 6677 ;; 6678 *N32*) 6679 LD="${LD-ld} -melf32bmipn32" 6680 ;; 6681 *64-bit*) 6682 LD="${LD-ld} -melf64bmip" 6683 ;; 6684 esac 6685 else 6686 case `/usr/bin/file conftest.$ac_objext` in 6687 *32-bit*) 6688 LD="${LD-ld} -32" 6689 ;; 6690 *N32*) 6691 LD="${LD-ld} -n32" 6692 ;; 6693 *64-bit*) 6694 LD="${LD-ld} -64" 6695 ;; 6696 esac 6697 fi 6698 fi 6699 rm -rf conftest* 6700 ;; 6701 6702x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6703s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6704 # Find out which ABI we are using. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.o` in 6712 *32-bit*) 6713 case $host in 6714 x86_64-*kfreebsd*-gnu) 6715 LD="${LD-ld} -m elf_i386_fbsd" 6716 ;; 6717 x86_64-*linux*) 6718 LD="${LD-ld} -m elf_i386" 6719 ;; 6720 ppc64-*linux*|powerpc64-*linux*) 6721 LD="${LD-ld} -m elf32ppclinux" 6722 ;; 6723 s390x-*linux*) 6724 LD="${LD-ld} -m elf_s390" 6725 ;; 6726 sparc64-*linux*) 6727 LD="${LD-ld} -m elf32_sparc" 6728 ;; 6729 esac 6730 ;; 6731 *64-bit*) 6732 case $host in 6733 x86_64-*kfreebsd*-gnu) 6734 LD="${LD-ld} -m elf_x86_64_fbsd" 6735 ;; 6736 x86_64-*linux*) 6737 LD="${LD-ld} -m elf_x86_64" 6738 ;; 6739 ppc*-*linux*|powerpc*-*linux*) 6740 LD="${LD-ld} -m elf64ppc" 6741 ;; 6742 s390*-*linux*|s390*-*tpf*) 6743 LD="${LD-ld} -m elf64_s390" 6744 ;; 6745 sparc*-*linux*) 6746 LD="${LD-ld} -m elf64_sparc" 6747 ;; 6748 esac 6749 ;; 6750 esac 6751 fi 6752 rm -rf conftest* 6753 ;; 6754 6755*-*-sco3.2v5*) 6756 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6757 SAVE_CFLAGS="$CFLAGS" 6758 CFLAGS="$CFLAGS -belf" 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6760$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6761if ${lt_cv_cc_needs_belf+:} false; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 ac_ext=c 6765ac_cpp='$CPP $CPPFLAGS' 6766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6768ac_compiler_gnu=$ac_cv_c_compiler_gnu 6769 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772 6773int 6774main () 6775{ 6776 6777 ; 6778 return 0; 6779} 6780_ACEOF 6781if ac_fn_c_try_link "$LINENO"; then : 6782 lt_cv_cc_needs_belf=yes 6783else 6784 lt_cv_cc_needs_belf=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext \ 6787 conftest$ac_exeext conftest.$ac_ext 6788 ac_ext=c 6789ac_cpp='$CPP $CPPFLAGS' 6790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6792ac_compiler_gnu=$ac_cv_c_compiler_gnu 6793 6794fi 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6796$as_echo "$lt_cv_cc_needs_belf" >&6; } 6797 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6798 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6799 CFLAGS="$SAVE_CFLAGS" 6800 fi 6801 ;; 6802*-*solaris*) 6803 # Find out which ABI we are using. 6804 echo 'int i;' > conftest.$ac_ext 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6806 (eval $ac_compile) 2>&5 6807 ac_status=$? 6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6809 test $ac_status = 0; }; then 6810 case `/usr/bin/file conftest.o` in 6811 *64-bit*) 6812 case $lt_cv_prog_gnu_ld in 6813 yes*) 6814 case $host in 6815 i?86-*-solaris*) 6816 LD="${LD-ld} -m elf_x86_64" 6817 ;; 6818 sparc*-*-solaris*) 6819 LD="${LD-ld} -m elf64_sparc" 6820 ;; 6821 esac 6822 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6823 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6824 LD="${LD-ld}_sol2" 6825 fi 6826 ;; 6827 *) 6828 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6829 LD="${LD-ld} -64" 6830 fi 6831 ;; 6832 esac 6833 ;; 6834 esac 6835 fi 6836 rm -rf conftest* 6837 ;; 6838esac 6839 6840need_locks="$enable_libtool_lock" 6841 6842if test -n "$ac_tool_prefix"; then 6843 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6844set dummy ${ac_tool_prefix}mt; ac_word=$2 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6846$as_echo_n "checking for $ac_word... " >&6; } 6847if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 if test -n "$MANIFEST_TOOL"; then 6851 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6852else 6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6854for as_dir in $PATH 6855do 6856 IFS=$as_save_IFS 6857 test -z "$as_dir" && as_dir=. 6858 for ac_exec_ext in '' $ac_executable_extensions; do 6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6860 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6862 break 2 6863 fi 6864done 6865 done 6866IFS=$as_save_IFS 6867 6868fi 6869fi 6870MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6871if test -n "$MANIFEST_TOOL"; then 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6873$as_echo "$MANIFEST_TOOL" >&6; } 6874else 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6876$as_echo "no" >&6; } 6877fi 6878 6879 6880fi 6881if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6882 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6883 # Extract the first word of "mt", so it can be a program name with args. 6884set dummy mt; ac_word=$2 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6886$as_echo_n "checking for $ac_word... " >&6; } 6887if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 if test -n "$ac_ct_MANIFEST_TOOL"; then 6891 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6900 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908fi 6909fi 6910ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6911if test -n "$ac_ct_MANIFEST_TOOL"; then 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6913$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6914else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6916$as_echo "no" >&6; } 6917fi 6918 6919 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6920 MANIFEST_TOOL=":" 6921 else 6922 case $cross_compiling:$ac_tool_warned in 6923yes:) 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6926ac_tool_warned=yes ;; 6927esac 6928 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6929 fi 6930else 6931 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6932fi 6933 6934test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6936$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6937if ${lt_cv_path_mainfest_tool+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 lt_cv_path_mainfest_tool=no 6941 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6942 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6943 cat conftest.err >&5 6944 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6945 lt_cv_path_mainfest_tool=yes 6946 fi 6947 rm -f conftest* 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6950$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6951if test "x$lt_cv_path_mainfest_tool" != xyes; then 6952 MANIFEST_TOOL=: 6953fi 6954 6955 6956 6957 6958 6959 6960 case $host_os in 6961 rhapsody* | darwin*) 6962 if test -n "$ac_tool_prefix"; then 6963 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6964set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6966$as_echo_n "checking for $ac_word... " >&6; } 6967if ${ac_cv_prog_DSYMUTIL+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$DSYMUTIL"; then 6971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6972else 6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974for as_dir in $PATH 6975do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6980 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984done 6985 done 6986IFS=$as_save_IFS 6987 6988fi 6989fi 6990DSYMUTIL=$ac_cv_prog_DSYMUTIL 6991if test -n "$DSYMUTIL"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6993$as_echo "$DSYMUTIL" >&6; } 6994else 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998 6999 7000fi 7001if test -z "$ac_cv_prog_DSYMUTIL"; then 7002 ac_ct_DSYMUTIL=$DSYMUTIL 7003 # Extract the first word of "dsymutil", so it can be a program name with args. 7004set dummy dsymutil; ac_word=$2 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7006$as_echo_n "checking for $ac_word... " >&6; } 7007if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7008 $as_echo_n "(cached) " >&6 7009else 7010 if test -n "$ac_ct_DSYMUTIL"; then 7011 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7012else 7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7014for as_dir in $PATH 7015do 7016 IFS=$as_save_IFS 7017 test -z "$as_dir" && as_dir=. 7018 for ac_exec_ext in '' $ac_executable_extensions; do 7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7020 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7022 break 2 7023 fi 7024done 7025 done 7026IFS=$as_save_IFS 7027 7028fi 7029fi 7030ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7031if test -n "$ac_ct_DSYMUTIL"; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7033$as_echo "$ac_ct_DSYMUTIL" >&6; } 7034else 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7036$as_echo "no" >&6; } 7037fi 7038 7039 if test "x$ac_ct_DSYMUTIL" = x; then 7040 DSYMUTIL=":" 7041 else 7042 case $cross_compiling:$ac_tool_warned in 7043yes:) 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7046ac_tool_warned=yes ;; 7047esac 7048 DSYMUTIL=$ac_ct_DSYMUTIL 7049 fi 7050else 7051 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7052fi 7053 7054 if test -n "$ac_tool_prefix"; then 7055 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7056set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058$as_echo_n "checking for $ac_word... " >&6; } 7059if ${ac_cv_prog_NMEDIT+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test -n "$NMEDIT"; then 7063 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082NMEDIT=$ac_cv_prog_NMEDIT 7083if test -n "$NMEDIT"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7085$as_echo "$NMEDIT" >&6; } 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091 7092fi 7093if test -z "$ac_cv_prog_NMEDIT"; then 7094 ac_ct_NMEDIT=$NMEDIT 7095 # Extract the first word of "nmedit", so it can be a program name with args. 7096set dummy nmedit; ac_word=$2 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7098$as_echo_n "checking for $ac_word... " >&6; } 7099if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 if test -n "$ac_ct_NMEDIT"; then 7103 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7104else 7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106for as_dir in $PATH 7107do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7112 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116done 7117 done 7118IFS=$as_save_IFS 7119 7120fi 7121fi 7122ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7123if test -n "$ac_ct_NMEDIT"; then 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7125$as_echo "$ac_ct_NMEDIT" >&6; } 7126else 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7128$as_echo "no" >&6; } 7129fi 7130 7131 if test "x$ac_ct_NMEDIT" = x; then 7132 NMEDIT=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138ac_tool_warned=yes ;; 7139esac 7140 NMEDIT=$ac_ct_NMEDIT 7141 fi 7142else 7143 NMEDIT="$ac_cv_prog_NMEDIT" 7144fi 7145 7146 if test -n "$ac_tool_prefix"; then 7147 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7148set dummy ${ac_tool_prefix}lipo; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_prog_LIPO+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$LIPO"; then 7155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174LIPO=$ac_cv_prog_LIPO 7175if test -n "$LIPO"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7177$as_echo "$LIPO" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 7184fi 7185if test -z "$ac_cv_prog_LIPO"; then 7186 ac_ct_LIPO=$LIPO 7187 # Extract the first word of "lipo", so it can be a program name with args. 7188set dummy lipo; ac_word=$2 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190$as_echo_n "checking for $ac_word... " >&6; } 7191if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 if test -n "$ac_ct_LIPO"; then 7195 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7196else 7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198for as_dir in $PATH 7199do 7200 IFS=$as_save_IFS 7201 test -z "$as_dir" && as_dir=. 7202 for ac_exec_ext in '' $ac_executable_extensions; do 7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7204 ac_cv_prog_ac_ct_LIPO="lipo" 7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7206 break 2 7207 fi 7208done 7209 done 7210IFS=$as_save_IFS 7211 7212fi 7213fi 7214ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7215if test -n "$ac_ct_LIPO"; then 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7217$as_echo "$ac_ct_LIPO" >&6; } 7218else 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7220$as_echo "no" >&6; } 7221fi 7222 7223 if test "x$ac_ct_LIPO" = x; then 7224 LIPO=":" 7225 else 7226 case $cross_compiling:$ac_tool_warned in 7227yes:) 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7230ac_tool_warned=yes ;; 7231esac 7232 LIPO=$ac_ct_LIPO 7233 fi 7234else 7235 LIPO="$ac_cv_prog_LIPO" 7236fi 7237 7238 if test -n "$ac_tool_prefix"; then 7239 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7240set dummy ${ac_tool_prefix}otool; ac_word=$2 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7242$as_echo_n "checking for $ac_word... " >&6; } 7243if ${ac_cv_prog_OTOOL+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 if test -n "$OTOOL"; then 7247 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7256 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260done 7261 done 7262IFS=$as_save_IFS 7263 7264fi 7265fi 7266OTOOL=$ac_cv_prog_OTOOL 7267if test -n "$OTOOL"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7269$as_echo "$OTOOL" >&6; } 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7272$as_echo "no" >&6; } 7273fi 7274 7275 7276fi 7277if test -z "$ac_cv_prog_OTOOL"; then 7278 ac_ct_OTOOL=$OTOOL 7279 # Extract the first word of "otool", so it can be a program name with args. 7280set dummy otool; ac_word=$2 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7282$as_echo_n "checking for $ac_word... " >&6; } 7283if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 if test -n "$ac_ct_OTOOL"; then 7287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7288else 7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7296 ac_cv_prog_ac_ct_OTOOL="otool" 7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301 done 7302IFS=$as_save_IFS 7303 7304fi 7305fi 7306ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7307if test -n "$ac_ct_OTOOL"; then 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7309$as_echo "$ac_ct_OTOOL" >&6; } 7310else 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7312$as_echo "no" >&6; } 7313fi 7314 7315 if test "x$ac_ct_OTOOL" = x; then 7316 OTOOL=":" 7317 else 7318 case $cross_compiling:$ac_tool_warned in 7319yes:) 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7322ac_tool_warned=yes ;; 7323esac 7324 OTOOL=$ac_ct_OTOOL 7325 fi 7326else 7327 OTOOL="$ac_cv_prog_OTOOL" 7328fi 7329 7330 if test -n "$ac_tool_prefix"; then 7331 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7332set dummy ${ac_tool_prefix}otool64; ac_word=$2 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7334$as_echo_n "checking for $ac_word... " >&6; } 7335if ${ac_cv_prog_OTOOL64+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337else 7338 if test -n "$OTOOL64"; then 7339 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7340else 7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7342for as_dir in $PATH 7343do 7344 IFS=$as_save_IFS 7345 test -z "$as_dir" && as_dir=. 7346 for ac_exec_ext in '' $ac_executable_extensions; do 7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7348 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7350 break 2 7351 fi 7352done 7353 done 7354IFS=$as_save_IFS 7355 7356fi 7357fi 7358OTOOL64=$ac_cv_prog_OTOOL64 7359if test -n "$OTOOL64"; then 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7361$as_echo "$OTOOL64" >&6; } 7362else 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7364$as_echo "no" >&6; } 7365fi 7366 7367 7368fi 7369if test -z "$ac_cv_prog_OTOOL64"; then 7370 ac_ct_OTOOL64=$OTOOL64 7371 # Extract the first word of "otool64", so it can be a program name with args. 7372set dummy otool64; ac_word=$2 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7374$as_echo_n "checking for $ac_word... " >&6; } 7375if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 if test -n "$ac_ct_OTOOL64"; then 7379 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7380else 7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7382for as_dir in $PATH 7383do 7384 IFS=$as_save_IFS 7385 test -z "$as_dir" && as_dir=. 7386 for ac_exec_ext in '' $ac_executable_extensions; do 7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7388 ac_cv_prog_ac_ct_OTOOL64="otool64" 7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7390 break 2 7391 fi 7392done 7393 done 7394IFS=$as_save_IFS 7395 7396fi 7397fi 7398ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7399if test -n "$ac_ct_OTOOL64"; then 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7401$as_echo "$ac_ct_OTOOL64" >&6; } 7402else 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7404$as_echo "no" >&6; } 7405fi 7406 7407 if test "x$ac_ct_OTOOL64" = x; then 7408 OTOOL64=":" 7409 else 7410 case $cross_compiling:$ac_tool_warned in 7411yes:) 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7414ac_tool_warned=yes ;; 7415esac 7416 OTOOL64=$ac_ct_OTOOL64 7417 fi 7418else 7419 OTOOL64="$ac_cv_prog_OTOOL64" 7420fi 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7449$as_echo_n "checking for -single_module linker flag... " >&6; } 7450if ${lt_cv_apple_cc_single_mod+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 lt_cv_apple_cc_single_mod=no 7454 if test -z "${LT_MULTI_MODULE}"; then 7455 # By default we will add the -single_module flag. You can override 7456 # by either setting the environment variable LT_MULTI_MODULE 7457 # non-empty at configure time, or by adding -multi_module to the 7458 # link flags. 7459 rm -rf libconftest.dylib* 7460 echo "int foo(void){return 1;}" > conftest.c 7461 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7462-dynamiclib -Wl,-single_module conftest.c" >&5 7463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7464 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7465 _lt_result=$? 7466 # If there is a non-empty error log, and "single_module" 7467 # appears in it, assume the flag caused a linker warning 7468 if test -s conftest.err && $GREP single_module conftest.err; then 7469 cat conftest.err >&5 7470 # Otherwise, if the output was created with a 0 exit code from 7471 # the compiler, it worked. 7472 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7473 lt_cv_apple_cc_single_mod=yes 7474 else 7475 cat conftest.err >&5 7476 fi 7477 rm -rf libconftest.dylib* 7478 rm -f conftest.* 7479 fi 7480fi 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7482$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7483 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7485$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7486if ${lt_cv_ld_exported_symbols_list+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 lt_cv_ld_exported_symbols_list=no 7490 save_LDFLAGS=$LDFLAGS 7491 echo "_main" > conftest.sym 7492 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495 7496int 7497main () 7498{ 7499 7500 ; 7501 return 0; 7502} 7503_ACEOF 7504if ac_fn_c_try_link "$LINENO"; then : 7505 lt_cv_ld_exported_symbols_list=yes 7506else 7507 lt_cv_ld_exported_symbols_list=no 7508fi 7509rm -f core conftest.err conftest.$ac_objext \ 7510 conftest$ac_exeext conftest.$ac_ext 7511 LDFLAGS="$save_LDFLAGS" 7512 7513fi 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7515$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7516 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7518$as_echo_n "checking for -force_load linker flag... " >&6; } 7519if ${lt_cv_ld_force_load+:} false; then : 7520 $as_echo_n "(cached) " >&6 7521else 7522 lt_cv_ld_force_load=no 7523 cat > conftest.c << _LT_EOF 7524int forced_loaded() { return 2;} 7525_LT_EOF 7526 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7527 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7528 echo "$AR cru libconftest.a conftest.o" >&5 7529 $AR cru libconftest.a conftest.o 2>&5 7530 echo "$RANLIB libconftest.a" >&5 7531 $RANLIB libconftest.a 2>&5 7532 cat > conftest.c << _LT_EOF 7533int main() { return 0;} 7534_LT_EOF 7535 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7536 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7537 _lt_result=$? 7538 if test -s conftest.err && $GREP force_load conftest.err; then 7539 cat conftest.err >&5 7540 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7541 lt_cv_ld_force_load=yes 7542 else 7543 cat conftest.err >&5 7544 fi 7545 rm -f conftest.err libconftest.a conftest conftest.c 7546 rm -rf conftest.dSYM 7547 7548fi 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7550$as_echo "$lt_cv_ld_force_load" >&6; } 7551 case $host_os in 7552 rhapsody* | darwin1.[012]) 7553 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7554 darwin1.*) 7555 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7556 darwin*) # darwin 5.x on 7557 # if running on 10.5 or later, the deployment target defaults 7558 # to the OS version, if on x86, and 10.4, the deployment 7559 # target defaults to 10.4. Don't you love it? 7560 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7561 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7562 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7563 10.[012]*) 7564 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7565 10.*) 7566 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7567 esac 7568 ;; 7569 esac 7570 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7571 _lt_dar_single_mod='$single_module' 7572 fi 7573 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7574 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7575 else 7576 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7577 fi 7578 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7579 _lt_dsymutil='~$DSYMUTIL $lib || :' 7580 else 7581 _lt_dsymutil= 7582 fi 7583 ;; 7584 esac 7585 7586ac_ext=c 7587ac_cpp='$CPP $CPPFLAGS' 7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7590ac_compiler_gnu=$ac_cv_c_compiler_gnu 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7592$as_echo_n "checking how to run the C preprocessor... " >&6; } 7593# On Suns, sometimes $CPP names a directory. 7594if test -n "$CPP" && test -d "$CPP"; then 7595 CPP= 7596fi 7597if test -z "$CPP"; then 7598 if ${ac_cv_prog_CPP+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 # Double quotes because CPP needs to be expanded 7602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7603 do 7604 ac_preproc_ok=false 7605for ac_c_preproc_warn_flag in '' yes 7606do 7607 # Use a header file that comes with gcc, so configuring glibc 7608 # with a fresh cross-compiler works. 7609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7610 # <limits.h> exists even on freestanding compilers. 7611 # On the NeXT, cc -E runs the code through the compiler's parser, 7612 # not just through cpp. "Syntax error" is here to catch this case. 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615#ifdef __STDC__ 7616# include <limits.h> 7617#else 7618# include <assert.h> 7619#endif 7620 Syntax error 7621_ACEOF 7622if ac_fn_c_try_cpp "$LINENO"; then : 7623 7624else 7625 # Broken: fails on valid input. 7626continue 7627fi 7628rm -f conftest.err conftest.i conftest.$ac_ext 7629 7630 # OK, works on sane cases. Now check whether nonexistent headers 7631 # can be detected and how. 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634#include <ac_nonexistent.h> 7635_ACEOF 7636if ac_fn_c_try_cpp "$LINENO"; then : 7637 # Broken: success on invalid input. 7638continue 7639else 7640 # Passes both tests. 7641ac_preproc_ok=: 7642break 7643fi 7644rm -f conftest.err conftest.i conftest.$ac_ext 7645 7646done 7647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7648rm -f conftest.i conftest.err conftest.$ac_ext 7649if $ac_preproc_ok; then : 7650 break 7651fi 7652 7653 done 7654 ac_cv_prog_CPP=$CPP 7655 7656fi 7657 CPP=$ac_cv_prog_CPP 7658else 7659 ac_cv_prog_CPP=$CPP 7660fi 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7662$as_echo "$CPP" >&6; } 7663ac_preproc_ok=false 7664for ac_c_preproc_warn_flag in '' yes 7665do 7666 # Use a header file that comes with gcc, so configuring glibc 7667 # with a fresh cross-compiler works. 7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7669 # <limits.h> exists even on freestanding compilers. 7670 # On the NeXT, cc -E runs the code through the compiler's parser, 7671 # not just through cpp. "Syntax error" is here to catch this case. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#ifdef __STDC__ 7675# include <limits.h> 7676#else 7677# include <assert.h> 7678#endif 7679 Syntax error 7680_ACEOF 7681if ac_fn_c_try_cpp "$LINENO"; then : 7682 7683else 7684 # Broken: fails on valid input. 7685continue 7686fi 7687rm -f conftest.err conftest.i conftest.$ac_ext 7688 7689 # OK, works on sane cases. Now check whether nonexistent headers 7690 # can be detected and how. 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693#include <ac_nonexistent.h> 7694_ACEOF 7695if ac_fn_c_try_cpp "$LINENO"; then : 7696 # Broken: success on invalid input. 7697continue 7698else 7699 # Passes both tests. 7700ac_preproc_ok=: 7701break 7702fi 7703rm -f conftest.err conftest.i conftest.$ac_ext 7704 7705done 7706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7707rm -f conftest.i conftest.err conftest.$ac_ext 7708if $ac_preproc_ok; then : 7709 7710else 7711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7713as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7714See \`config.log' for more details" "$LINENO" 5; } 7715fi 7716 7717ac_ext=c 7718ac_cpp='$CPP $CPPFLAGS' 7719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7721ac_compiler_gnu=$ac_cv_c_compiler_gnu 7722 7723 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7725$as_echo_n "checking for ANSI C header files... " >&6; } 7726if ${ac_cv_header_stdc+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731#include <stdlib.h> 7732#include <stdarg.h> 7733#include <string.h> 7734#include <float.h> 7735 7736int 7737main () 7738{ 7739 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_compile "$LINENO"; then : 7745 ac_cv_header_stdc=yes 7746else 7747 ac_cv_header_stdc=no 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7750 7751if test $ac_cv_header_stdc = yes; then 7752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755#include <string.h> 7756 7757_ACEOF 7758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7759 $EGREP "memchr" >/dev/null 2>&1; then : 7760 7761else 7762 ac_cv_header_stdc=no 7763fi 7764rm -f conftest* 7765 7766fi 7767 7768if test $ac_cv_header_stdc = yes; then 7769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772#include <stdlib.h> 7773 7774_ACEOF 7775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7776 $EGREP "free" >/dev/null 2>&1; then : 7777 7778else 7779 ac_cv_header_stdc=no 7780fi 7781rm -f conftest* 7782 7783fi 7784 7785if test $ac_cv_header_stdc = yes; then 7786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7787 if test "$cross_compiling" = yes; then : 7788 : 7789else 7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791/* end confdefs.h. */ 7792#include <ctype.h> 7793#include <stdlib.h> 7794#if ((' ' & 0x0FF) == 0x020) 7795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7797#else 7798# define ISLOWER(c) \ 7799 (('a' <= (c) && (c) <= 'i') \ 7800 || ('j' <= (c) && (c) <= 'r') \ 7801 || ('s' <= (c) && (c) <= 'z')) 7802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7803#endif 7804 7805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7806int 7807main () 7808{ 7809 int i; 7810 for (i = 0; i < 256; i++) 7811 if (XOR (islower (i), ISLOWER (i)) 7812 || toupper (i) != TOUPPER (i)) 7813 return 2; 7814 return 0; 7815} 7816_ACEOF 7817if ac_fn_c_try_run "$LINENO"; then : 7818 7819else 7820 ac_cv_header_stdc=no 7821fi 7822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7823 conftest.$ac_objext conftest.beam conftest.$ac_ext 7824fi 7825 7826fi 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7829$as_echo "$ac_cv_header_stdc" >&6; } 7830if test $ac_cv_header_stdc = yes; then 7831 7832$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7833 7834fi 7835 7836# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7837for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7838 inttypes.h stdint.h unistd.h 7839do : 7840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7842" 7843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7844 cat >>confdefs.h <<_ACEOF 7845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7846_ACEOF 7847 7848fi 7849 7850done 7851 7852 7853for ac_header in dlfcn.h 7854do : 7855 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7856" 7857if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7858 cat >>confdefs.h <<_ACEOF 7859#define HAVE_DLFCN_H 1 7860_ACEOF 7861 7862fi 7863 7864done 7865 7866 7867if test "`cd $srcdir && pwd`" != "`pwd`"; then 7868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 7869 # is not polluted with repeated "-I." 7870 am__isrc=' -I$(srcdir)' 7871 # test to see if srcdir already configured 7872 if test -f $srcdir/config.status; then 7873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 7874 fi 7875fi 7876 7877# test whether we have cygpath 7878if test -z "$CYGPATH_W"; then 7879 if (cygpath --version) >/dev/null 2>/dev/null; then 7880 CYGPATH_W='cygpath -w' 7881 else 7882 CYGPATH_W=echo 7883 fi 7884fi 7885 7886 7887# Define the identity of the package. 7888 PACKAGE='xdvik' 7889 VERSION='22.87' 7890 7891 7892cat >>confdefs.h <<_ACEOF 7893#define PACKAGE "$PACKAGE" 7894_ACEOF 7895 7896 7897cat >>confdefs.h <<_ACEOF 7898#define VERSION "$VERSION" 7899_ACEOF 7900 7901# Some tools Automake needs. 7902 7903ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 7904 7905 7906AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 7907 7908 7909AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 7910 7911 7912AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 7913 7914 7915MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 7916 7917# For better backward compatibility. To be removed once Automake 1.9.x 7918# dies out for good. For more background, see: 7919# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 7920# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 7921mkdir_p='$(MKDIR_P)' 7922 7923# We need awk for the "check" target. The system "awk" is bad on 7924# some platforms. 7925# Always define AMTAR for backward compatibility. Yes, it's still used 7926# in the wild :-( We should find a proper way to deprecate it ... 7927AMTAR='$${TAR-tar}' 7928 7929 7930# We'll loop over all known methods to create a tar archive until one works. 7931_am_tools='gnutar pax cpio none' 7932 7933am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 7934 7935 7936 7937 7938 7939 7940# POSIX will say in a future version that running "rm -f" with no argument 7941# is OK; and we want to be able to make that assumption in our Makefile 7942# recipes. So use an aggressive probe to check that the usage we want is 7943# actually supported "in the wild" to an acceptable degree. 7944# See automake bug#10828. 7945# To make any issue more visible, cause the running configure to be aborted 7946# by default if the 'rm' program in use doesn't match our expectations; the 7947# user can still override this though. 7948if rm -f && rm -fr && rm -rf; then : OK; else 7949 cat >&2 <<'END' 7950Oops! 7951 7952Your 'rm' program seems unable to run without file operands specified 7953on the command line, even when the '-f' option is present. This is contrary 7954to the behaviour of most rm programs out there, and not conforming with 7955the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 7956 7957Please tell bug-automake@gnu.org about your system, including the value 7958of your $PATH and any error possibly output before this message. This 7959can help us improve future automake versions. 7960 7961END 7962 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 7963 echo 'Configuration will proceed anyway, since you have set the' >&2 7964 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 7965 echo >&2 7966 else 7967 cat >&2 <<'END' 7968Aborting the configuration process, to ensure you take notice of the issue. 7969 7970You can download and install GNU coreutils to get an 'rm' implementation 7971that behaves properly: <http://www.gnu.org/software/coreutils/>. 7972 7973If you want to complete the configuration process using your problematic 7974'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 7975to "yes", and re-run configure. 7976 7977END 7978 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 7979 fi 7980fi 7981 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 7983$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 7984 # Check whether --enable-maintainer-mode was given. 7985if test "${enable_maintainer_mode+set}" = set; then : 7986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 7987else 7988 USE_MAINTAINER_MODE=no 7989fi 7990 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 7992$as_echo "$USE_MAINTAINER_MODE" >&6; } 7993 if test $USE_MAINTAINER_MODE = yes; then 7994 MAINTAINER_MODE_TRUE= 7995 MAINTAINER_MODE_FALSE='#' 7996else 7997 MAINTAINER_MODE_TRUE='#' 7998 MAINTAINER_MODE_FALSE= 7999fi 8000 8001 MAINT=$MAINTAINER_MODE_TRUE 8002 8003 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5 8005$as_echo_n "checking whether the compiler accepts prototypes... " >&6; } 8006if ${kb_cv_c_prototypes+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011#include <stdarg.h> 8012int 8013main () 8014{ 8015extern void foo(int i,...); 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020if ac_fn_c_try_link "$LINENO"; then : 8021 kb_cv_c_prototypes=yes 8022else 8023 kb_cv_c_prototypes=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext \ 8026 conftest$ac_exeext conftest.$ac_ext 8027fi 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5 8029$as_echo "$kb_cv_c_prototypes" >&6; } 8030if test "x$kb_cv_c_prototypes" = xno; then 8031 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5 8032fi 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 8034$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } 8035if ${kpse_cv_warning_cflags+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 if test "x$GCC" = xyes; then 8039 kpse_cv_warning_cflags= 8040if test "x$enable_compiler_warnings" != xno; then 8041 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type" 8042 case `$CC -dumpversion` in #( 8043 3.4.* | 4.*) : 8044 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #( 8045 *) : 8046 ;; 8047esac 8048 case `$CC -dumpversion` in #( 8049 3.[234].* | 4.*) : 8050 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #( 8051 *) : 8052 ;; 8053esac 8054 if test "x$enable_compiler_warnings" != xmin; then 8055 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags" 8056 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations" 8057 if test "x$enable_compiler_warnings" != xyes; then 8058 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" 8059 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings" 8060 case `$CC -dumpversion` in #( 8061 3.4.* | 4.*) : 8062 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #( 8063 *) : 8064 ;; 8065esac 8066 if test "x$enable_compiler_warnings" != xmax; then 8067 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow" 8068 fi 8069 fi 8070 fi 8071fi 8072elif test "x$enable_compiler_warnings" = xno; then 8073 kpse_cv_warning_cflags= 8074else 8075 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers 8076fi 8077fi 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5 8079$as_echo "$kpse_cv_warning_cflags" >&6; } 8080WARNING_CFLAGS=$kpse_cv_warning_cflags 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093# Set options 8094enable_win32_dll=yes 8095 8096case $host in 8097*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8098 if test -n "$ac_tool_prefix"; then 8099 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8100set dummy ${ac_tool_prefix}as; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_AS+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$AS"; then 8107 ac_cv_prog_AS="$AS" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_AS="${ac_tool_prefix}as" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126AS=$ac_cv_prog_AS 8127if test -n "$AS"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8129$as_echo "$AS" >&6; } 8130else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132$as_echo "no" >&6; } 8133fi 8134 8135 8136fi 8137if test -z "$ac_cv_prog_AS"; then 8138 ac_ct_AS=$AS 8139 # Extract the first word of "as", so it can be a program name with args. 8140set dummy as; ac_word=$2 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8142$as_echo_n "checking for $ac_word... " >&6; } 8143if ${ac_cv_prog_ac_ct_AS+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 if test -n "$ac_ct_AS"; then 8147 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8148else 8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8150for as_dir in $PATH 8151do 8152 IFS=$as_save_IFS 8153 test -z "$as_dir" && as_dir=. 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8156 ac_cv_prog_ac_ct_AS="as" 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160done 8161 done 8162IFS=$as_save_IFS 8163 8164fi 8165fi 8166ac_ct_AS=$ac_cv_prog_ac_ct_AS 8167if test -n "$ac_ct_AS"; then 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8169$as_echo "$ac_ct_AS" >&6; } 8170else 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172$as_echo "no" >&6; } 8173fi 8174 8175 if test "x$ac_ct_AS" = x; then 8176 AS="false" 8177 else 8178 case $cross_compiling:$ac_tool_warned in 8179yes:) 8180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8182ac_tool_warned=yes ;; 8183esac 8184 AS=$ac_ct_AS 8185 fi 8186else 8187 AS="$ac_cv_prog_AS" 8188fi 8189 8190 if test -n "$ac_tool_prefix"; then 8191 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8192set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194$as_echo_n "checking for $ac_word... " >&6; } 8195if ${ac_cv_prog_DLLTOOL+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 if test -n "$DLLTOOL"; then 8199 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8200else 8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202for as_dir in $PATH 8203do 8204 IFS=$as_save_IFS 8205 test -z "$as_dir" && as_dir=. 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8208 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212done 8213 done 8214IFS=$as_save_IFS 8215 8216fi 8217fi 8218DLLTOOL=$ac_cv_prog_DLLTOOL 8219if test -n "$DLLTOOL"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8221$as_echo "$DLLTOOL" >&6; } 8222else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224$as_echo "no" >&6; } 8225fi 8226 8227 8228fi 8229if test -z "$ac_cv_prog_DLLTOOL"; then 8230 ac_ct_DLLTOOL=$DLLTOOL 8231 # Extract the first word of "dlltool", so it can be a program name with args. 8232set dummy dlltool; ac_word=$2 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234$as_echo_n "checking for $ac_word... " >&6; } 8235if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237else 8238 if test -n "$ac_ct_DLLTOOL"; then 8239 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8240else 8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8242for as_dir in $PATH 8243do 8244 IFS=$as_save_IFS 8245 test -z "$as_dir" && as_dir=. 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252done 8253 done 8254IFS=$as_save_IFS 8255 8256fi 8257fi 8258ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8259if test -n "$ac_ct_DLLTOOL"; then 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8261$as_echo "$ac_ct_DLLTOOL" >&6; } 8262else 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264$as_echo "no" >&6; } 8265fi 8266 8267 if test "x$ac_ct_DLLTOOL" = x; then 8268 DLLTOOL="false" 8269 else 8270 case $cross_compiling:$ac_tool_warned in 8271yes:) 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8274ac_tool_warned=yes ;; 8275esac 8276 DLLTOOL=$ac_ct_DLLTOOL 8277 fi 8278else 8279 DLLTOOL="$ac_cv_prog_DLLTOOL" 8280fi 8281 8282 if test -n "$ac_tool_prefix"; then 8283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8284set dummy ${ac_tool_prefix}objdump; ac_word=$2 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286$as_echo_n "checking for $ac_word... " >&6; } 8287if ${ac_cv_prog_OBJDUMP+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 if test -n "$OBJDUMP"; then 8291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8292else 8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294for as_dir in $PATH 8295do 8296 IFS=$as_save_IFS 8297 test -z "$as_dir" && as_dir=. 8298 for ac_exec_ext in '' $ac_executable_extensions; do 8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8302 break 2 8303 fi 8304done 8305 done 8306IFS=$as_save_IFS 8307 8308fi 8309fi 8310OBJDUMP=$ac_cv_prog_OBJDUMP 8311if test -n "$OBJDUMP"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8313$as_echo "$OBJDUMP" >&6; } 8314else 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316$as_echo "no" >&6; } 8317fi 8318 8319 8320fi 8321if test -z "$ac_cv_prog_OBJDUMP"; then 8322 ac_ct_OBJDUMP=$OBJDUMP 8323 # Extract the first word of "objdump", so it can be a program name with args. 8324set dummy objdump; ac_word=$2 8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8326$as_echo_n "checking for $ac_word... " >&6; } 8327if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 if test -n "$ac_ct_OBJDUMP"; then 8331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8332else 8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8334for as_dir in $PATH 8335do 8336 IFS=$as_save_IFS 8337 test -z "$as_dir" && as_dir=. 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8340 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344done 8345 done 8346IFS=$as_save_IFS 8347 8348fi 8349fi 8350ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8351if test -n "$ac_ct_OBJDUMP"; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8353$as_echo "$ac_ct_OBJDUMP" >&6; } 8354else 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356$as_echo "no" >&6; } 8357fi 8358 8359 if test "x$ac_ct_OBJDUMP" = x; then 8360 OBJDUMP="false" 8361 else 8362 case $cross_compiling:$ac_tool_warned in 8363yes:) 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8366ac_tool_warned=yes ;; 8367esac 8368 OBJDUMP=$ac_ct_OBJDUMP 8369 fi 8370else 8371 OBJDUMP="$ac_cv_prog_OBJDUMP" 8372fi 8373 8374 ;; 8375esac 8376 8377test -z "$AS" && AS=as 8378 8379 8380 8381 8382 8383test -z "$DLLTOOL" && DLLTOOL=dlltool 8384 8385 8386 8387 8388 8389test -z "$OBJDUMP" && OBJDUMP=objdump 8390 8391 8392 8393 8394 8395 8396 8397 enable_dlopen=no 8398 8399 8400 8401 # Check whether --enable-shared was given. 8402if test "${enable_shared+set}" = set; then : 8403 enableval=$enable_shared; p=${PACKAGE-default} 8404 case $enableval in 8405 yes) enable_shared=yes ;; 8406 no) enable_shared=no ;; 8407 *) 8408 enable_shared=no 8409 # Look at the argument we got. We use all the common list separators. 8410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8411 for pkg in $enableval; do 8412 IFS="$lt_save_ifs" 8413 if test "X$pkg" = "X$p"; then 8414 enable_shared=yes 8415 fi 8416 done 8417 IFS="$lt_save_ifs" 8418 ;; 8419 esac 8420else 8421 enable_shared=yes 8422fi 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 # Check whether --enable-static was given. 8433if test "${enable_static+set}" = set; then : 8434 enableval=$enable_static; p=${PACKAGE-default} 8435 case $enableval in 8436 yes) enable_static=yes ;; 8437 no) enable_static=no ;; 8438 *) 8439 enable_static=no 8440 # Look at the argument we got. We use all the common list separators. 8441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8442 for pkg in $enableval; do 8443 IFS="$lt_save_ifs" 8444 if test "X$pkg" = "X$p"; then 8445 enable_static=yes 8446 fi 8447 done 8448 IFS="$lt_save_ifs" 8449 ;; 8450 esac 8451else 8452 enable_static=yes 8453fi 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464# Check whether --with-pic was given. 8465if test "${with_pic+set}" = set; then : 8466 withval=$with_pic; lt_p=${PACKAGE-default} 8467 case $withval in 8468 yes|no) pic_mode=$withval ;; 8469 *) 8470 pic_mode=default 8471 # Look at the argument we got. We use all the common list separators. 8472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8473 for lt_pkg in $withval; do 8474 IFS="$lt_save_ifs" 8475 if test "X$lt_pkg" = "X$lt_p"; then 8476 pic_mode=yes 8477 fi 8478 done 8479 IFS="$lt_save_ifs" 8480 ;; 8481 esac 8482else 8483 pic_mode=default 8484fi 8485 8486 8487test -z "$pic_mode" && pic_mode=default 8488 8489 8490 8491 8492 8493 8494 8495 # Check whether --enable-fast-install was given. 8496if test "${enable_fast_install+set}" = set; then : 8497 enableval=$enable_fast_install; p=${PACKAGE-default} 8498 case $enableval in 8499 yes) enable_fast_install=yes ;; 8500 no) enable_fast_install=no ;; 8501 *) 8502 enable_fast_install=no 8503 # Look at the argument we got. We use all the common list separators. 8504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8505 for pkg in $enableval; do 8506 IFS="$lt_save_ifs" 8507 if test "X$pkg" = "X$p"; then 8508 enable_fast_install=yes 8509 fi 8510 done 8511 IFS="$lt_save_ifs" 8512 ;; 8513 esac 8514else 8515 enable_fast_install=yes 8516fi 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528# This can be used to rebuild libtool when needed 8529LIBTOOL_DEPS="$ltmain" 8530 8531# Always use our own libtool. 8532LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563test -z "$LN_S" && LN_S="ln -s" 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578if test -n "${ZSH_VERSION+set}" ; then 8579 setopt NO_GLOB_SUBST 8580fi 8581 8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8583$as_echo_n "checking for objdir... " >&6; } 8584if ${lt_cv_objdir+:} false; then : 8585 $as_echo_n "(cached) " >&6 8586else 8587 rm -f .libs 2>/dev/null 8588mkdir .libs 2>/dev/null 8589if test -d .libs; then 8590 lt_cv_objdir=.libs 8591else 8592 # MS-DOS does not allow filenames that begin with a dot. 8593 lt_cv_objdir=_libs 8594fi 8595rmdir .libs 2>/dev/null 8596fi 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8598$as_echo "$lt_cv_objdir" >&6; } 8599objdir=$lt_cv_objdir 8600 8601 8602 8603 8604 8605cat >>confdefs.h <<_ACEOF 8606#define LT_OBJDIR "$lt_cv_objdir/" 8607_ACEOF 8608 8609 8610 8611 8612case $host_os in 8613aix3*) 8614 # AIX sometimes has problems with the GCC collect2 program. For some 8615 # reason, if we set the COLLECT_NAMES environment variable, the problems 8616 # vanish in a puff of smoke. 8617 if test "X${COLLECT_NAMES+set}" != Xset; then 8618 COLLECT_NAMES= 8619 export COLLECT_NAMES 8620 fi 8621 ;; 8622esac 8623 8624# Global variables: 8625ofile=libtool 8626can_build_shared=yes 8627 8628# All known linkers require a `.a' archive for static linking (except MSVC, 8629# which needs '.lib'). 8630libext=a 8631 8632with_gnu_ld="$lt_cv_prog_gnu_ld" 8633 8634old_CC="$CC" 8635old_CFLAGS="$CFLAGS" 8636 8637# Set sane defaults for various variables 8638test -z "$CC" && CC=cc 8639test -z "$LTCC" && LTCC=$CC 8640test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8641test -z "$LD" && LD=ld 8642test -z "$ac_objext" && ac_objext=o 8643 8644for cc_temp in $compiler""; do 8645 case $cc_temp in 8646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8648 \-*) ;; 8649 *) break;; 8650 esac 8651done 8652cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8653 8654 8655# Only perform the check for file, if the check method requires it 8656test -z "$MAGIC_CMD" && MAGIC_CMD=file 8657case $deplibs_check_method in 8658file_magic*) 8659 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8661$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8662if ${lt_cv_path_MAGIC_CMD+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 case $MAGIC_CMD in 8666[\\/*] | ?:[\\/]*) 8667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8668 ;; 8669*) 8670 lt_save_MAGIC_CMD="$MAGIC_CMD" 8671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8673 for ac_dir in $ac_dummy; do 8674 IFS="$lt_save_ifs" 8675 test -z "$ac_dir" && ac_dir=. 8676 if test -f $ac_dir/${ac_tool_prefix}file; then 8677 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8678 if test -n "$file_magic_test_file"; then 8679 case $deplibs_check_method in 8680 "file_magic "*) 8681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8684 $EGREP "$file_magic_regex" > /dev/null; then 8685 : 8686 else 8687 cat <<_LT_EOF 1>&2 8688 8689*** Warning: the command libtool uses to detect shared libraries, 8690*** $file_magic_cmd, produces output that libtool cannot recognize. 8691*** The result is that libtool may fail to recognize shared libraries 8692*** as such. This will affect the creation of libtool libraries that 8693*** depend on shared libraries, but programs linked with such libtool 8694*** libraries will work regardless of this problem. Nevertheless, you 8695*** may want to report the problem to your system manager and/or to 8696*** bug-libtool@gnu.org 8697 8698_LT_EOF 8699 fi ;; 8700 esac 8701 fi 8702 break 8703 fi 8704 done 8705 IFS="$lt_save_ifs" 8706 MAGIC_CMD="$lt_save_MAGIC_CMD" 8707 ;; 8708esac 8709fi 8710 8711MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8712if test -n "$MAGIC_CMD"; then 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8714$as_echo "$MAGIC_CMD" >&6; } 8715else 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8717$as_echo "no" >&6; } 8718fi 8719 8720 8721 8722 8723 8724if test -z "$lt_cv_path_MAGIC_CMD"; then 8725 if test -n "$ac_tool_prefix"; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8727$as_echo_n "checking for file... " >&6; } 8728if ${lt_cv_path_MAGIC_CMD+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 case $MAGIC_CMD in 8732[\\/*] | ?:[\\/]*) 8733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8734 ;; 8735*) 8736 lt_save_MAGIC_CMD="$MAGIC_CMD" 8737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8739 for ac_dir in $ac_dummy; do 8740 IFS="$lt_save_ifs" 8741 test -z "$ac_dir" && ac_dir=. 8742 if test -f $ac_dir/file; then 8743 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8744 if test -n "$file_magic_test_file"; then 8745 case $deplibs_check_method in 8746 "file_magic "*) 8747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8750 $EGREP "$file_magic_regex" > /dev/null; then 8751 : 8752 else 8753 cat <<_LT_EOF 1>&2 8754 8755*** Warning: the command libtool uses to detect shared libraries, 8756*** $file_magic_cmd, produces output that libtool cannot recognize. 8757*** The result is that libtool may fail to recognize shared libraries 8758*** as such. This will affect the creation of libtool libraries that 8759*** depend on shared libraries, but programs linked with such libtool 8760*** libraries will work regardless of this problem. Nevertheless, you 8761*** may want to report the problem to your system manager and/or to 8762*** bug-libtool@gnu.org 8763 8764_LT_EOF 8765 fi ;; 8766 esac 8767 fi 8768 break 8769 fi 8770 done 8771 IFS="$lt_save_ifs" 8772 MAGIC_CMD="$lt_save_MAGIC_CMD" 8773 ;; 8774esac 8775fi 8776 8777MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8778if test -n "$MAGIC_CMD"; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8780$as_echo "$MAGIC_CMD" >&6; } 8781else 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8783$as_echo "no" >&6; } 8784fi 8785 8786 8787 else 8788 MAGIC_CMD=: 8789 fi 8790fi 8791 8792 fi 8793 ;; 8794esac 8795 8796# Use C for the default configuration in the libtool script 8797 8798lt_save_CC="$CC" 8799ac_ext=c 8800ac_cpp='$CPP $CPPFLAGS' 8801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8803ac_compiler_gnu=$ac_cv_c_compiler_gnu 8804 8805 8806# Source file extension for C test sources. 8807ac_ext=c 8808 8809# Object file extension for compiled C test sources. 8810objext=o 8811objext=$objext 8812 8813# Code to be used in simple compile tests 8814lt_simple_compile_test_code="int some_variable = 0;" 8815 8816# Code to be used in simple link tests 8817lt_simple_link_test_code='int main(){return(0);}' 8818 8819 8820 8821 8822 8823 8824 8825# If no C compiler was specified, use CC. 8826LTCC=${LTCC-"$CC"} 8827 8828# If no C compiler flags were specified, use CFLAGS. 8829LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8830 8831# Allow CC to be a program name with arguments. 8832compiler=$CC 8833 8834# Save the default compiler, since it gets overwritten when the other 8835# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8836compiler_DEFAULT=$CC 8837 8838# save warnings/boilerplate of simple test code 8839ac_outfile=conftest.$ac_objext 8840echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8841eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8842_lt_compiler_boilerplate=`cat conftest.err` 8843$RM conftest* 8844 8845ac_outfile=conftest.$ac_objext 8846echo "$lt_simple_link_test_code" >conftest.$ac_ext 8847eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8848_lt_linker_boilerplate=`cat conftest.err` 8849$RM -r conftest* 8850 8851 8852## CAVEAT EMPTOR: 8853## There is no encapsulation within the following macros, do not change 8854## the running order or otherwise move them around unless you know exactly 8855## what you are doing... 8856if test -n "$compiler"; then 8857 8858lt_prog_compiler_no_builtin_flag= 8859 8860if test "$GCC" = yes; then 8861 case $cc_basename in 8862 nvcc*) 8863 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8864 *) 8865 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8866 esac 8867 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8869$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8870if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 lt_cv_prog_compiler_rtti_exceptions=no 8874 ac_outfile=conftest.$ac_objext 8875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8876 lt_compiler_flag="-fno-rtti -fno-exceptions" 8877 # Insert the option either (1) after the last *FLAGS variable, or 8878 # (2) before a word containing "conftest.", or (3) at the end. 8879 # Note that $ac_compile itself does not contain backslashes and begins 8880 # with a dollar sign (not a hyphen), so the echo should work correctly. 8881 # The option is referenced via a variable to avoid confusing sed. 8882 lt_compile=`echo "$ac_compile" | $SED \ 8883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8885 -e 's:$: $lt_compiler_flag:'` 8886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8887 (eval "$lt_compile" 2>conftest.err) 8888 ac_status=$? 8889 cat conftest.err >&5 8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8891 if (exit $ac_status) && test -s "$ac_outfile"; then 8892 # The compiler can only warn and ignore the option if not recognized 8893 # So say no if there are warnings other than the usual output. 8894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8897 lt_cv_prog_compiler_rtti_exceptions=yes 8898 fi 8899 fi 8900 $RM conftest* 8901 8902fi 8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8904$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8905 8906if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8907 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8908else 8909 : 8910fi 8911 8912fi 8913 8914 8915 8916 8917 8918 8919 lt_prog_compiler_wl= 8920lt_prog_compiler_pic= 8921lt_prog_compiler_static= 8922 8923 8924 if test "$GCC" = yes; then 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_static='-static' 8927 8928 case $host_os in 8929 aix*) 8930 # All AIX code is PIC. 8931 if test "$host_cpu" = ia64; then 8932 # AIX 5 now supports IA64 processor 8933 lt_prog_compiler_static='-Bstatic' 8934 fi 8935 ;; 8936 8937 amigaos*) 8938 case $host_cpu in 8939 powerpc) 8940 # see comment about AmigaOS4 .so support 8941 lt_prog_compiler_pic='-fPIC' 8942 ;; 8943 m68k) 8944 # FIXME: we need at least 68020 code to build shared libraries, but 8945 # adding the `-m68020' flag to GCC prevents building anything better, 8946 # like `-m68040'. 8947 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8948 ;; 8949 esac 8950 ;; 8951 8952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8953 # PIC is the default for these OSes. 8954 ;; 8955 8956 mingw* | cygwin* | pw32* | os2* | cegcc*) 8957 # This hack is so that the source file can tell whether it is being 8958 # built for inclusion in a dll (and should export symbols for example). 8959 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8960 # (--disable-auto-import) libraries 8961 lt_prog_compiler_pic='-DDLL_EXPORT' 8962 ;; 8963 8964 darwin* | rhapsody*) 8965 # PIC is the default on this platform 8966 # Common symbols not allowed in MH_DYLIB files 8967 lt_prog_compiler_pic='-fno-common' 8968 ;; 8969 8970 haiku*) 8971 # PIC is the default for Haiku. 8972 # The "-static" flag exists, but is broken. 8973 lt_prog_compiler_static= 8974 ;; 8975 8976 hpux*) 8977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8979 # sets the default TLS model and affects inlining. 8980 case $host_cpu in 8981 hppa*64*) 8982 # +Z the default 8983 ;; 8984 *) 8985 lt_prog_compiler_pic='-fPIC' 8986 ;; 8987 esac 8988 ;; 8989 8990 interix[3-9]*) 8991 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8992 # Instead, we relocate shared libraries at runtime. 8993 ;; 8994 8995 msdosdjgpp*) 8996 # Just because we use GCC doesn't mean we suddenly get shared libraries 8997 # on systems that don't support them. 8998 lt_prog_compiler_can_build_shared=no 8999 enable_shared=no 9000 ;; 9001 9002 *nto* | *qnx*) 9003 # QNX uses GNU C++, but need to define -shared option too, otherwise 9004 # it will coredump. 9005 lt_prog_compiler_pic='-fPIC -shared' 9006 ;; 9007 9008 sysv4*MP*) 9009 if test -d /usr/nec; then 9010 lt_prog_compiler_pic=-Kconform_pic 9011 fi 9012 ;; 9013 9014 *) 9015 lt_prog_compiler_pic='-fPIC' 9016 ;; 9017 esac 9018 9019 case $cc_basename in 9020 nvcc*) # Cuda Compiler Driver 2.2 9021 lt_prog_compiler_wl='-Xlinker ' 9022 if test -n "$lt_prog_compiler_pic"; then 9023 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9024 fi 9025 ;; 9026 esac 9027 else 9028 # PORTME Check for flag to pass linker flags through the system compiler. 9029 case $host_os in 9030 aix*) 9031 lt_prog_compiler_wl='-Wl,' 9032 if test "$host_cpu" = ia64; then 9033 # AIX 5 now supports IA64 processor 9034 lt_prog_compiler_static='-Bstatic' 9035 else 9036 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9037 fi 9038 ;; 9039 9040 mingw* | cygwin* | pw32* | os2* | cegcc*) 9041 # This hack is so that the source file can tell whether it is being 9042 # built for inclusion in a dll (and should export symbols for example). 9043 lt_prog_compiler_pic='-DDLL_EXPORT' 9044 ;; 9045 9046 hpux9* | hpux10* | hpux11*) 9047 lt_prog_compiler_wl='-Wl,' 9048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9049 # not for PA HP-UX. 9050 case $host_cpu in 9051 hppa*64*|ia64*) 9052 # +Z the default 9053 ;; 9054 *) 9055 lt_prog_compiler_pic='+Z' 9056 ;; 9057 esac 9058 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9059 lt_prog_compiler_static='${wl}-a ${wl}archive' 9060 ;; 9061 9062 irix5* | irix6* | nonstopux*) 9063 lt_prog_compiler_wl='-Wl,' 9064 # PIC (with -KPIC) is the default. 9065 lt_prog_compiler_static='-non_shared' 9066 ;; 9067 9068 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9069 case $cc_basename in 9070 # old Intel for x86_64 which still supported -KPIC. 9071 ecc*) 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-KPIC' 9074 lt_prog_compiler_static='-static' 9075 ;; 9076 # icc used to be incompatible with GCC. 9077 # ICC 10 doesn't accept -KPIC any more. 9078 icc* | ifort*) 9079 lt_prog_compiler_wl='-Wl,' 9080 lt_prog_compiler_pic='-fPIC' 9081 lt_prog_compiler_static='-static' 9082 ;; 9083 # Lahey Fortran 8.1. 9084 lf95*) 9085 lt_prog_compiler_wl='-Wl,' 9086 lt_prog_compiler_pic='--shared' 9087 lt_prog_compiler_static='--static' 9088 ;; 9089 nagfor*) 9090 # NAG Fortran compiler 9091 lt_prog_compiler_wl='-Wl,-Wl,,' 9092 lt_prog_compiler_pic='-PIC' 9093 lt_prog_compiler_static='-Bstatic' 9094 ;; 9095 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9096 # Portland Group compilers (*not* the Pentium gcc compiler, 9097 # which looks to be a dead project) 9098 lt_prog_compiler_wl='-Wl,' 9099 lt_prog_compiler_pic='-fpic' 9100 lt_prog_compiler_static='-Bstatic' 9101 ;; 9102 ccc*) 9103 lt_prog_compiler_wl='-Wl,' 9104 # All Alpha code is PIC. 9105 lt_prog_compiler_static='-non_shared' 9106 ;; 9107 xl* | bgxl* | bgf* | mpixl*) 9108 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9109 lt_prog_compiler_wl='-Wl,' 9110 lt_prog_compiler_pic='-qpic' 9111 lt_prog_compiler_static='-qstaticlink' 9112 ;; 9113 *) 9114 case `$CC -V 2>&1 | sed 5q` in 9115 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9116 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9117 lt_prog_compiler_pic='-KPIC' 9118 lt_prog_compiler_static='-Bstatic' 9119 lt_prog_compiler_wl='' 9120 ;; 9121 *Sun\ F* | *Sun*Fortran*) 9122 lt_prog_compiler_pic='-KPIC' 9123 lt_prog_compiler_static='-Bstatic' 9124 lt_prog_compiler_wl='-Qoption ld ' 9125 ;; 9126 *Sun\ C*) 9127 # Sun C 5.9 9128 lt_prog_compiler_pic='-KPIC' 9129 lt_prog_compiler_static='-Bstatic' 9130 lt_prog_compiler_wl='-Wl,' 9131 ;; 9132 *Intel*\ [CF]*Compiler*) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-fPIC' 9135 lt_prog_compiler_static='-static' 9136 ;; 9137 *Portland\ Group*) 9138 lt_prog_compiler_wl='-Wl,' 9139 lt_prog_compiler_pic='-fpic' 9140 lt_prog_compiler_static='-Bstatic' 9141 ;; 9142 esac 9143 ;; 9144 esac 9145 ;; 9146 9147 newsos6) 9148 lt_prog_compiler_pic='-KPIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 9152 *nto* | *qnx*) 9153 # QNX uses GNU C++, but need to define -shared option too, otherwise 9154 # it will coredump. 9155 lt_prog_compiler_pic='-fPIC -shared' 9156 ;; 9157 9158 osf3* | osf4* | osf5*) 9159 lt_prog_compiler_wl='-Wl,' 9160 # All OSF/1 code is PIC. 9161 lt_prog_compiler_static='-non_shared' 9162 ;; 9163 9164 rdos*) 9165 lt_prog_compiler_static='-non_shared' 9166 ;; 9167 9168 solaris*) 9169 lt_prog_compiler_pic='-KPIC' 9170 lt_prog_compiler_static='-Bstatic' 9171 case $cc_basename in 9172 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9173 lt_prog_compiler_wl='-Qoption ld ';; 9174 *) 9175 lt_prog_compiler_wl='-Wl,';; 9176 esac 9177 ;; 9178 9179 sunos4*) 9180 lt_prog_compiler_wl='-Qoption ld ' 9181 lt_prog_compiler_pic='-PIC' 9182 lt_prog_compiler_static='-Bstatic' 9183 ;; 9184 9185 sysv4 | sysv4.2uw2* | sysv4.3*) 9186 lt_prog_compiler_wl='-Wl,' 9187 lt_prog_compiler_pic='-KPIC' 9188 lt_prog_compiler_static='-Bstatic' 9189 ;; 9190 9191 sysv4*MP*) 9192 if test -d /usr/nec ;then 9193 lt_prog_compiler_pic='-Kconform_pic' 9194 lt_prog_compiler_static='-Bstatic' 9195 fi 9196 ;; 9197 9198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9199 lt_prog_compiler_wl='-Wl,' 9200 lt_prog_compiler_pic='-KPIC' 9201 lt_prog_compiler_static='-Bstatic' 9202 ;; 9203 9204 unicos*) 9205 lt_prog_compiler_wl='-Wl,' 9206 lt_prog_compiler_can_build_shared=no 9207 ;; 9208 9209 uts4*) 9210 lt_prog_compiler_pic='-pic' 9211 lt_prog_compiler_static='-Bstatic' 9212 ;; 9213 9214 *) 9215 lt_prog_compiler_can_build_shared=no 9216 ;; 9217 esac 9218 fi 9219 9220case $host_os in 9221 # For platforms which do not support PIC, -DPIC is meaningless: 9222 *djgpp*) 9223 lt_prog_compiler_pic= 9224 ;; 9225 *) 9226 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9227 ;; 9228esac 9229 9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9231$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9232if ${lt_cv_prog_compiler_pic+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9236fi 9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9238$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9239lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9240 9241# 9242# Check to make sure the PIC flag actually works. 9243# 9244if test -n "$lt_prog_compiler_pic"; then 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9247if ${lt_cv_prog_compiler_pic_works+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 lt_cv_prog_compiler_pic_works=no 9251 ac_outfile=conftest.$ac_objext 9252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9254 # Insert the option either (1) after the last *FLAGS variable, or 9255 # (2) before a word containing "conftest.", or (3) at the end. 9256 # Note that $ac_compile itself does not contain backslashes and begins 9257 # with a dollar sign (not a hyphen), so the echo should work correctly. 9258 # The option is referenced via a variable to avoid confusing sed. 9259 lt_compile=`echo "$ac_compile" | $SED \ 9260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9262 -e 's:$: $lt_compiler_flag:'` 9263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9264 (eval "$lt_compile" 2>conftest.err) 9265 ac_status=$? 9266 cat conftest.err >&5 9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9268 if (exit $ac_status) && test -s "$ac_outfile"; then 9269 # The compiler can only warn and ignore the option if not recognized 9270 # So say no if there are warnings other than the usual output. 9271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9274 lt_cv_prog_compiler_pic_works=yes 9275 fi 9276 fi 9277 $RM conftest* 9278 9279fi 9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9281$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9282 9283if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9284 case $lt_prog_compiler_pic in 9285 "" | " "*) ;; 9286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9287 esac 9288else 9289 lt_prog_compiler_pic= 9290 lt_prog_compiler_can_build_shared=no 9291fi 9292 9293fi 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305# 9306# Check to make sure the static flag actually works. 9307# 9308wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9310$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9311if ${lt_cv_prog_compiler_static_works+:} false; then : 9312 $as_echo_n "(cached) " >&6 9313else 9314 lt_cv_prog_compiler_static_works=no 9315 save_LDFLAGS="$LDFLAGS" 9316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9317 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9319 # The linker can only warn and ignore the option if not recognized 9320 # So say no if there are warnings 9321 if test -s conftest.err; then 9322 # Append any errors to the config.log. 9323 cat conftest.err 1>&5 9324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9326 if diff conftest.exp conftest.er2 >/dev/null; then 9327 lt_cv_prog_compiler_static_works=yes 9328 fi 9329 else 9330 lt_cv_prog_compiler_static_works=yes 9331 fi 9332 fi 9333 $RM -r conftest* 9334 LDFLAGS="$save_LDFLAGS" 9335 9336fi 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9338$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9339 9340if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9341 : 9342else 9343 lt_prog_compiler_static= 9344fi 9345 9346 9347 9348 9349 9350 9351 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9354if ${lt_cv_prog_compiler_c_o+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 lt_cv_prog_compiler_c_o=no 9358 $RM -r conftest 2>/dev/null 9359 mkdir conftest 9360 cd conftest 9361 mkdir out 9362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9363 9364 lt_compiler_flag="-o out/conftest2.$ac_objext" 9365 # Insert the option either (1) after the last *FLAGS variable, or 9366 # (2) before a word containing "conftest.", or (3) at the end. 9367 # Note that $ac_compile itself does not contain backslashes and begins 9368 # with a dollar sign (not a hyphen), so the echo should work correctly. 9369 lt_compile=`echo "$ac_compile" | $SED \ 9370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9372 -e 's:$: $lt_compiler_flag:'` 9373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9374 (eval "$lt_compile" 2>out/conftest.err) 9375 ac_status=$? 9376 cat out/conftest.err >&5 9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9379 then 9380 # The compiler can only warn and ignore the option if not recognized 9381 # So say no if there are warnings 9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9385 lt_cv_prog_compiler_c_o=yes 9386 fi 9387 fi 9388 chmod u+w . 2>&5 9389 $RM conftest* 9390 # SGI C++ compiler will create directory out/ii_files/ for 9391 # template instantiation 9392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9393 $RM out/* && rmdir out 9394 cd .. 9395 $RM -r conftest 9396 $RM conftest* 9397 9398fi 9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9400$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9401 9402 9403 9404 9405 9406 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9408$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9409if ${lt_cv_prog_compiler_c_o+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 lt_cv_prog_compiler_c_o=no 9413 $RM -r conftest 2>/dev/null 9414 mkdir conftest 9415 cd conftest 9416 mkdir out 9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9418 9419 lt_compiler_flag="-o out/conftest2.$ac_objext" 9420 # Insert the option either (1) after the last *FLAGS variable, or 9421 # (2) before a word containing "conftest.", or (3) at the end. 9422 # Note that $ac_compile itself does not contain backslashes and begins 9423 # with a dollar sign (not a hyphen), so the echo should work correctly. 9424 lt_compile=`echo "$ac_compile" | $SED \ 9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9427 -e 's:$: $lt_compiler_flag:'` 9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9429 (eval "$lt_compile" 2>out/conftest.err) 9430 ac_status=$? 9431 cat out/conftest.err >&5 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9434 then 9435 # The compiler can only warn and ignore the option if not recognized 9436 # So say no if there are warnings 9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9440 lt_cv_prog_compiler_c_o=yes 9441 fi 9442 fi 9443 chmod u+w . 2>&5 9444 $RM conftest* 9445 # SGI C++ compiler will create directory out/ii_files/ for 9446 # template instantiation 9447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9448 $RM out/* && rmdir out 9449 cd .. 9450 $RM -r conftest 9451 $RM conftest* 9452 9453fi 9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9455$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9456 9457 9458 9459 9460hard_links="nottested" 9461if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9462 # do not overwrite the value of need_locks provided by the user 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9464$as_echo_n "checking if we can lock with hard links... " >&6; } 9465 hard_links=yes 9466 $RM conftest* 9467 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9468 touch conftest.a 9469 ln conftest.a conftest.b 2>&5 || hard_links=no 9470 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9472$as_echo "$hard_links" >&6; } 9473 if test "$hard_links" = no; then 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9475$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9476 need_locks=warn 9477 fi 9478else 9479 need_locks=no 9480fi 9481 9482 9483 9484 9485 9486 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9488$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9489 9490 runpath_var= 9491 allow_undefined_flag= 9492 always_export_symbols=no 9493 archive_cmds= 9494 archive_expsym_cmds= 9495 compiler_needs_object=no 9496 enable_shared_with_static_runtimes=no 9497 export_dynamic_flag_spec= 9498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9499 hardcode_automatic=no 9500 hardcode_direct=no 9501 hardcode_direct_absolute=no 9502 hardcode_libdir_flag_spec= 9503 hardcode_libdir_separator= 9504 hardcode_minus_L=no 9505 hardcode_shlibpath_var=unsupported 9506 inherit_rpath=no 9507 link_all_deplibs=unknown 9508 module_cmds= 9509 module_expsym_cmds= 9510 old_archive_from_new_cmds= 9511 old_archive_from_expsyms_cmds= 9512 thread_safe_flag_spec= 9513 whole_archive_flag_spec= 9514 # include_expsyms should be a list of space-separated symbols to be *always* 9515 # included in the symbol list 9516 include_expsyms= 9517 # exclude_expsyms can be an extended regexp of symbols to exclude 9518 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9520 # as well as any symbol that contains `d'. 9521 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9523 # platforms (ab)use it in PIC code, but their linkers get confused if 9524 # the symbol is explicitly referenced. Since portable code cannot 9525 # rely on this symbol name, it's probably fine to never include it in 9526 # preloaded symbol tables. 9527 # Exclude shared library initialization/finalization symbols. 9528 extract_expsyms_cmds= 9529 9530 case $host_os in 9531 cygwin* | mingw* | pw32* | cegcc*) 9532 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9533 # When not using gcc, we currently assume that we are using 9534 # Microsoft Visual C++. 9535 if test "$GCC" != yes; then 9536 with_gnu_ld=no 9537 fi 9538 ;; 9539 interix*) 9540 # we just hope/assume this is gcc and not c89 (= MSVC++) 9541 with_gnu_ld=yes 9542 ;; 9543 openbsd*) 9544 with_gnu_ld=no 9545 ;; 9546 esac 9547 9548 ld_shlibs=yes 9549 9550 # On some targets, GNU ld is compatible enough with the native linker 9551 # that we're better off using the native interface for both. 9552 lt_use_gnu_ld_interface=no 9553 if test "$with_gnu_ld" = yes; then 9554 case $host_os in 9555 aix*) 9556 # The AIX port of GNU ld has always aspired to compatibility 9557 # with the native linker. However, as the warning in the GNU ld 9558 # block says, versions before 2.19.5* couldn't really create working 9559 # shared libraries, regardless of the interface used. 9560 case `$LD -v 2>&1` in 9561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9563 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9564 *) 9565 lt_use_gnu_ld_interface=yes 9566 ;; 9567 esac 9568 ;; 9569 *) 9570 lt_use_gnu_ld_interface=yes 9571 ;; 9572 esac 9573 fi 9574 9575 if test "$lt_use_gnu_ld_interface" = yes; then 9576 # If archive_cmds runs LD, not CC, wlarc should be empty 9577 wlarc='${wl}' 9578 9579 # Set some defaults for GNU ld with shared library support. These 9580 # are reset later if shared libraries are not supported. Putting them 9581 # here allows them to be overridden if necessary. 9582 runpath_var=LD_RUN_PATH 9583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9584 export_dynamic_flag_spec='${wl}--export-dynamic' 9585 # ancient GNU ld didn't support --whole-archive et. al. 9586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9588 else 9589 whole_archive_flag_spec= 9590 fi 9591 supports_anon_versioning=no 9592 case `$LD -v 2>&1` in 9593 *GNU\ gold*) supports_anon_versioning=yes ;; 9594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9597 *\ 2.11.*) ;; # other 2.11 versions 9598 *) supports_anon_versioning=yes ;; 9599 esac 9600 9601 # See if GNU ld supports shared libraries. 9602 case $host_os in 9603 aix[3-9]*) 9604 # On AIX/PPC, the GNU linker is very broken 9605 if test "$host_cpu" != ia64; then 9606 ld_shlibs=no 9607 cat <<_LT_EOF 1>&2 9608 9609*** Warning: the GNU linker, at least up to release 2.19, is reported 9610*** to be unable to reliably create shared libraries on AIX. 9611*** Therefore, libtool is disabling shared libraries support. If you 9612*** really care for shared libraries, you may want to install binutils 9613*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9614*** You will then need to restart the configuration process. 9615 9616_LT_EOF 9617 fi 9618 ;; 9619 9620 amigaos*) 9621 case $host_cpu in 9622 powerpc) 9623 # see comment about AmigaOS4 .so support 9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9625 archive_expsym_cmds='' 9626 ;; 9627 m68k) 9628 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)' 9629 hardcode_libdir_flag_spec='-L$libdir' 9630 hardcode_minus_L=yes 9631 ;; 9632 esac 9633 ;; 9634 9635 beos*) 9636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9637 allow_undefined_flag=unsupported 9638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9639 # support --undefined. This deserves some investigation. FIXME 9640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9641 else 9642 ld_shlibs=no 9643 fi 9644 ;; 9645 9646 cygwin* | mingw* | pw32* | cegcc*) 9647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9648 # as there is no search path for DLLs. 9649 hardcode_libdir_flag_spec='-L$libdir' 9650 export_dynamic_flag_spec='${wl}--export-all-symbols' 9651 allow_undefined_flag=unsupported 9652 always_export_symbols=no 9653 enable_shared_with_static_runtimes=yes 9654 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' 9655 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9656 9657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9659 # If the export-symbols file already is a .def file (1st line 9660 # is EXPORTS), use it as is; otherwise, prepend... 9661 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9662 cp $export_symbols $output_objdir/$soname.def; 9663 else 9664 echo EXPORTS > $output_objdir/$soname.def; 9665 cat $export_symbols >> $output_objdir/$soname.def; 9666 fi~ 9667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9668 else 9669 ld_shlibs=no 9670 fi 9671 ;; 9672 9673 haiku*) 9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9675 link_all_deplibs=yes 9676 ;; 9677 9678 interix[3-9]*) 9679 hardcode_direct=no 9680 hardcode_shlibpath_var=no 9681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9682 export_dynamic_flag_spec='${wl}-E' 9683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9684 # Instead, shared libraries are loaded at an image base (0x10000000 by 9685 # default) and relocated if they conflict, which is a slow very memory 9686 # consuming and fragmenting process. To avoid this, we pick a random, 9687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9688 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9690 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' 9691 ;; 9692 9693 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9694 tmp_diet=no 9695 if test "$host_os" = linux-dietlibc; then 9696 case $cc_basename in 9697 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9698 esac 9699 fi 9700 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9701 && test "$tmp_diet" = no 9702 then 9703 tmp_addflag=' $pic_flag' 9704 tmp_sharedflag='-shared' 9705 case $cc_basename,$host_cpu in 9706 pgcc*) # Portland Group C compiler 9707 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' 9708 tmp_addflag=' $pic_flag' 9709 ;; 9710 pgf77* | pgf90* | pgf95* | pgfortran*) 9711 # Portland Group f77 and f90 compilers 9712 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' 9713 tmp_addflag=' $pic_flag -Mnomain' ;; 9714 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9715 tmp_addflag=' -i_dynamic' ;; 9716 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9717 tmp_addflag=' -i_dynamic -nofor_main' ;; 9718 ifc* | ifort*) # Intel Fortran compiler 9719 tmp_addflag=' -nofor_main' ;; 9720 lf95*) # Lahey Fortran 8.1 9721 whole_archive_flag_spec= 9722 tmp_sharedflag='--shared' ;; 9723 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9724 tmp_sharedflag='-qmkshrobj' 9725 tmp_addflag= ;; 9726 nvcc*) # Cuda Compiler Driver 2.2 9727 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' 9728 compiler_needs_object=yes 9729 ;; 9730 esac 9731 case `$CC -V 2>&1 | sed 5q` in 9732 *Sun\ C*) # Sun C 5.9 9733 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' 9734 compiler_needs_object=yes 9735 tmp_sharedflag='-G' ;; 9736 *Sun\ F*) # Sun Fortran 8.3 9737 tmp_sharedflag='-G' ;; 9738 esac 9739 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9740 9741 if test "x$supports_anon_versioning" = xyes; then 9742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9744 echo "local: *; };" >> $output_objdir/$libname.ver~ 9745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9746 fi 9747 9748 case $cc_basename in 9749 xlf* | bgf* | bgxlf* | mpixlf*) 9750 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9751 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9753 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9754 if test "x$supports_anon_versioning" = xyes; then 9755 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9757 echo "local: *; };" >> $output_objdir/$libname.ver~ 9758 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9759 fi 9760 ;; 9761 esac 9762 else 9763 ld_shlibs=no 9764 fi 9765 ;; 9766 9767 netbsd*) 9768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9770 wlarc= 9771 else 9772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9773 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9774 fi 9775 ;; 9776 9777 solaris*) 9778 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9779 ld_shlibs=no 9780 cat <<_LT_EOF 1>&2 9781 9782*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9783*** create shared libraries on Solaris systems. Therefore, libtool 9784*** is disabling shared libraries support. We urge you to upgrade GNU 9785*** binutils to release 2.9.1 or newer. Another option is to modify 9786*** your PATH or compiler configuration so that the native linker is 9787*** used, and then restart. 9788 9789_LT_EOF 9790 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9792 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9793 else 9794 ld_shlibs=no 9795 fi 9796 ;; 9797 9798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9799 case `$LD -v 2>&1` in 9800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9801 ld_shlibs=no 9802 cat <<_LT_EOF 1>&2 9803 9804*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9805*** reliably create shared libraries on SCO systems. Therefore, libtool 9806*** is disabling shared libraries support. We urge you to upgrade GNU 9807*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9808*** your PATH or compiler configuration so that the native linker is 9809*** used, and then restart. 9810 9811_LT_EOF 9812 ;; 9813 *) 9814 # For security reasons, it is highly recommended that you always 9815 # use absolute paths for naming shared libraries, and exclude the 9816 # DT_RUNPATH tag from executables and libraries. But doing so 9817 # requires that you compile everything twice, which is a pain. 9818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9822 else 9823 ld_shlibs=no 9824 fi 9825 ;; 9826 esac 9827 ;; 9828 9829 sunos4*) 9830 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9831 wlarc= 9832 hardcode_direct=yes 9833 hardcode_shlibpath_var=no 9834 ;; 9835 9836 *) 9837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9839 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9840 else 9841 ld_shlibs=no 9842 fi 9843 ;; 9844 esac 9845 9846 if test "$ld_shlibs" = no; then 9847 runpath_var= 9848 hardcode_libdir_flag_spec= 9849 export_dynamic_flag_spec= 9850 whole_archive_flag_spec= 9851 fi 9852 else 9853 # PORTME fill in a description of your system's linker (not GNU ld) 9854 case $host_os in 9855 aix3*) 9856 allow_undefined_flag=unsupported 9857 always_export_symbols=yes 9858 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' 9859 # Note: this linker hardcodes the directories in LIBPATH if there 9860 # are no directories specified by -L. 9861 hardcode_minus_L=yes 9862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9863 # Neither direct hardcoding nor static linking is supported with a 9864 # broken collect2. 9865 hardcode_direct=unsupported 9866 fi 9867 ;; 9868 9869 aix[4-9]*) 9870 if test "$host_cpu" = ia64; then 9871 # On IA64, the linker does run time linking by default, so we don't 9872 # have to do anything special. 9873 aix_use_runtimelinking=no 9874 exp_sym_flag='-Bexport' 9875 no_entry_flag="" 9876 else 9877 # If we're using GNU nm, then we don't want the "-C" option. 9878 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9879 # Also, AIX nm treats weak defined symbols like other global 9880 # defined symbols, whereas GNU nm marks them as "W". 9881 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9882 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9883 else 9884 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9885 fi 9886 aix_use_runtimelinking=no 9887 9888 # Test if we are trying to use run time linking or normal 9889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9890 # need to do runtime linking. 9891 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9892 for ld_flag in $LDFLAGS; do 9893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9894 aix_use_runtimelinking=yes 9895 break 9896 fi 9897 done 9898 ;; 9899 esac 9900 9901 exp_sym_flag='-bexport' 9902 no_entry_flag='-bnoentry' 9903 fi 9904 9905 # When large executables or shared objects are built, AIX ld can 9906 # have problems creating the table of contents. If linking a library 9907 # or program results in "error TOC overflow" add -mminimal-toc to 9908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9910 9911 archive_cmds='' 9912 hardcode_direct=yes 9913 hardcode_direct_absolute=yes 9914 hardcode_libdir_separator=':' 9915 link_all_deplibs=yes 9916 file_list_spec='${wl}-f,' 9917 9918 if test "$GCC" = yes; then 9919 case $host_os in aix4.[012]|aix4.[012].*) 9920 # We only want to do this on AIX 4.2 and lower, the check 9921 # below for broken collect2 doesn't work under 4.3+ 9922 collect2name=`${CC} -print-prog-name=collect2` 9923 if test -f "$collect2name" && 9924 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9925 then 9926 # We have reworked collect2 9927 : 9928 else 9929 # We have old collect2 9930 hardcode_direct=unsupported 9931 # It fails to find uninstalled libraries when the uninstalled 9932 # path is not listed in the libpath. Setting hardcode_minus_L 9933 # to unsupported forces relinking 9934 hardcode_minus_L=yes 9935 hardcode_libdir_flag_spec='-L$libdir' 9936 hardcode_libdir_separator= 9937 fi 9938 ;; 9939 esac 9940 shared_flag='-shared' 9941 if test "$aix_use_runtimelinking" = yes; then 9942 shared_flag="$shared_flag "'${wl}-G' 9943 fi 9944 else 9945 # not using gcc 9946 if test "$host_cpu" = ia64; then 9947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9948 # chokes on -Wl,-G. The following line is correct: 9949 shared_flag='-G' 9950 else 9951 if test "$aix_use_runtimelinking" = yes; then 9952 shared_flag='${wl}-G' 9953 else 9954 shared_flag='${wl}-bM:SRE' 9955 fi 9956 fi 9957 fi 9958 9959 export_dynamic_flag_spec='${wl}-bexpall' 9960 # It seems that -bexpall does not export symbols beginning with 9961 # underscore (_), so it is better to generate a list of symbols to export. 9962 always_export_symbols=yes 9963 if test "$aix_use_runtimelinking" = yes; then 9964 # Warning - without using the other runtime loading flags (-brtl), 9965 # -berok will link without error, but may produce a broken library. 9966 allow_undefined_flag='-berok' 9967 # Determine the default libpath from the value encoded in an 9968 # empty executable. 9969 if test "${lt_cv_aix_libpath+set}" = set; then 9970 aix_libpath=$lt_cv_aix_libpath 9971else 9972 if ${lt_cv_aix_libpath_+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977 9978int 9979main () 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986if ac_fn_c_try_link "$LINENO"; then : 9987 9988 lt_aix_libpath_sed=' 9989 /Import File Strings/,/^$/ { 9990 /^0/ { 9991 s/^0 *\([^ ]*\) *$/\1/ 9992 p 9993 } 9994 }' 9995 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9996 # Check for a 64-bit object if we didn't find anything. 9997 if test -z "$lt_cv_aix_libpath_"; then 9998 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9999 fi 10000fi 10001rm -f core conftest.err conftest.$ac_objext \ 10002 conftest$ac_exeext conftest.$ac_ext 10003 if test -z "$lt_cv_aix_libpath_"; then 10004 lt_cv_aix_libpath_="/usr/lib:/lib" 10005 fi 10006 10007fi 10008 10009 aix_libpath=$lt_cv_aix_libpath_ 10010fi 10011 10012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10013 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10014 else 10015 if test "$host_cpu" = ia64; then 10016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10017 allow_undefined_flag="-z nodefs" 10018 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" 10019 else 10020 # Determine the default libpath from the value encoded in an 10021 # empty executable. 10022 if test "${lt_cv_aix_libpath+set}" = set; then 10023 aix_libpath=$lt_cv_aix_libpath 10024else 10025 if ${lt_cv_aix_libpath_+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030 10031int 10032main () 10033{ 10034 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039if ac_fn_c_try_link "$LINENO"; then : 10040 10041 lt_aix_libpath_sed=' 10042 /Import File Strings/,/^$/ { 10043 /^0/ { 10044 s/^0 *\([^ ]*\) *$/\1/ 10045 p 10046 } 10047 }' 10048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10049 # Check for a 64-bit object if we didn't find anything. 10050 if test -z "$lt_cv_aix_libpath_"; then 10051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10052 fi 10053fi 10054rm -f core conftest.err conftest.$ac_objext \ 10055 conftest$ac_exeext conftest.$ac_ext 10056 if test -z "$lt_cv_aix_libpath_"; then 10057 lt_cv_aix_libpath_="/usr/lib:/lib" 10058 fi 10059 10060fi 10061 10062 aix_libpath=$lt_cv_aix_libpath_ 10063fi 10064 10065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10066 # Warning - without using the other run time loading flags, 10067 # -berok will link without error, but may produce a broken library. 10068 no_undefined_flag=' ${wl}-bernotok' 10069 allow_undefined_flag=' ${wl}-berok' 10070 if test "$with_gnu_ld" = yes; then 10071 # We only use this code for GNU lds that support --whole-archive. 10072 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10073 else 10074 # Exported symbols can be pulled into shared objects from archives 10075 whole_archive_flag_spec='$convenience' 10076 fi 10077 archive_cmds_need_lc=yes 10078 # This is similar to how AIX traditionally builds its shared libraries. 10079 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10080 fi 10081 fi 10082 ;; 10083 10084 amigaos*) 10085 case $host_cpu in 10086 powerpc) 10087 # see comment about AmigaOS4 .so support 10088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10089 archive_expsym_cmds='' 10090 ;; 10091 m68k) 10092 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)' 10093 hardcode_libdir_flag_spec='-L$libdir' 10094 hardcode_minus_L=yes 10095 ;; 10096 esac 10097 ;; 10098 10099 bsdi[45]*) 10100 export_dynamic_flag_spec=-rdynamic 10101 ;; 10102 10103 cygwin* | mingw* | pw32* | cegcc*) 10104 # When not using gcc, we currently assume that we are using 10105 # Microsoft Visual C++. 10106 # hardcode_libdir_flag_spec is actually meaningless, as there is 10107 # no search path for DLLs. 10108 case $cc_basename in 10109 cl*) 10110 # Native MSVC 10111 hardcode_libdir_flag_spec=' ' 10112 allow_undefined_flag=unsupported 10113 always_export_symbols=yes 10114 file_list_spec='@' 10115 # Tell ltmain to make .lib files, not .a files. 10116 libext=lib 10117 # Tell ltmain to make .dll files, not .so files. 10118 shrext_cmds=".dll" 10119 # FIXME: Setting linknames here is a bad hack. 10120 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10122 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10123 else 10124 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10125 fi~ 10126 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10127 linknames=' 10128 # The linker will not automatically build a static lib if we build a DLL. 10129 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10130 enable_shared_with_static_runtimes=yes 10131 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10133 # Don't use ranlib 10134 old_postinstall_cmds='chmod 644 $oldlib' 10135 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10136 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10137 case $lt_outputfile in 10138 *.exe|*.EXE) ;; 10139 *) 10140 lt_outputfile="$lt_outputfile.exe" 10141 lt_tool_outputfile="$lt_tool_outputfile.exe" 10142 ;; 10143 esac~ 10144 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10145 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10146 $RM "$lt_outputfile.manifest"; 10147 fi' 10148 ;; 10149 *) 10150 # Assume MSVC wrapper 10151 hardcode_libdir_flag_spec=' ' 10152 allow_undefined_flag=unsupported 10153 # Tell ltmain to make .lib files, not .a files. 10154 libext=lib 10155 # Tell ltmain to make .dll files, not .so files. 10156 shrext_cmds=".dll" 10157 # FIXME: Setting linknames here is a bad hack. 10158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10159 # The linker will automatically build a .lib file if we build a DLL. 10160 old_archive_from_new_cmds='true' 10161 # FIXME: Should let the user specify the lib program. 10162 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10163 enable_shared_with_static_runtimes=yes 10164 ;; 10165 esac 10166 ;; 10167 10168 darwin* | rhapsody*) 10169 10170 10171 archive_cmds_need_lc=no 10172 hardcode_direct=no 10173 hardcode_automatic=yes 10174 hardcode_shlibpath_var=unsupported 10175 if test "$lt_cv_ld_force_load" = "yes"; then 10176 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\"`' 10177 10178 else 10179 whole_archive_flag_spec='' 10180 fi 10181 link_all_deplibs=yes 10182 allow_undefined_flag="$_lt_dar_allow_undefined" 10183 case $cc_basename in 10184 ifort*) _lt_dar_can_shared=yes ;; 10185 *) _lt_dar_can_shared=$GCC ;; 10186 esac 10187 if test "$_lt_dar_can_shared" = "yes"; then 10188 output_verbose_link_cmd=func_echo_all 10189 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10190 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10191 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}" 10192 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}" 10193 10194 else 10195 ld_shlibs=no 10196 fi 10197 10198 ;; 10199 10200 dgux*) 10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10202 hardcode_libdir_flag_spec='-L$libdir' 10203 hardcode_shlibpath_var=no 10204 ;; 10205 10206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10207 # support. Future versions do this automatically, but an explicit c++rt0.o 10208 # does not break anything, and helps significantly (at the cost of a little 10209 # extra space). 10210 freebsd2.2*) 10211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10212 hardcode_libdir_flag_spec='-R$libdir' 10213 hardcode_direct=yes 10214 hardcode_shlibpath_var=no 10215 ;; 10216 10217 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10218 freebsd2.*) 10219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10220 hardcode_direct=yes 10221 hardcode_minus_L=yes 10222 hardcode_shlibpath_var=no 10223 ;; 10224 10225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10226 freebsd* | dragonfly*) 10227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10228 hardcode_libdir_flag_spec='-R$libdir' 10229 hardcode_direct=yes 10230 hardcode_shlibpath_var=no 10231 ;; 10232 10233 hpux9*) 10234 if test "$GCC" = yes; then 10235 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10236 else 10237 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10238 fi 10239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10240 hardcode_libdir_separator=: 10241 hardcode_direct=yes 10242 10243 # hardcode_minus_L: Not really in the search PATH, 10244 # but as the default location of the library. 10245 hardcode_minus_L=yes 10246 export_dynamic_flag_spec='${wl}-E' 10247 ;; 10248 10249 hpux10*) 10250 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10251 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10252 else 10253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10254 fi 10255 if test "$with_gnu_ld" = no; then 10256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10257 hardcode_libdir_separator=: 10258 hardcode_direct=yes 10259 hardcode_direct_absolute=yes 10260 export_dynamic_flag_spec='${wl}-E' 10261 # hardcode_minus_L: Not really in the search PATH, 10262 # but as the default location of the library. 10263 hardcode_minus_L=yes 10264 fi 10265 ;; 10266 10267 hpux11*) 10268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10269 case $host_cpu in 10270 hppa*64*) 10271 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10272 ;; 10273 ia64*) 10274 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10275 ;; 10276 *) 10277 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10278 ;; 10279 esac 10280 else 10281 case $host_cpu in 10282 hppa*64*) 10283 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10284 ;; 10285 ia64*) 10286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10287 ;; 10288 *) 10289 10290 # Older versions of the 11.00 compiler do not understand -b yet 10291 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10293$as_echo_n "checking if $CC understands -b... " >&6; } 10294if ${lt_cv_prog_compiler__b+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 lt_cv_prog_compiler__b=no 10298 save_LDFLAGS="$LDFLAGS" 10299 LDFLAGS="$LDFLAGS -b" 10300 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10302 # The linker can only warn and ignore the option if not recognized 10303 # So say no if there are warnings 10304 if test -s conftest.err; then 10305 # Append any errors to the config.log. 10306 cat conftest.err 1>&5 10307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10309 if diff conftest.exp conftest.er2 >/dev/null; then 10310 lt_cv_prog_compiler__b=yes 10311 fi 10312 else 10313 lt_cv_prog_compiler__b=yes 10314 fi 10315 fi 10316 $RM -r conftest* 10317 LDFLAGS="$save_LDFLAGS" 10318 10319fi 10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10321$as_echo "$lt_cv_prog_compiler__b" >&6; } 10322 10323if test x"$lt_cv_prog_compiler__b" = xyes; then 10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10325else 10326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10327fi 10328 10329 ;; 10330 esac 10331 fi 10332 if test "$with_gnu_ld" = no; then 10333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10334 hardcode_libdir_separator=: 10335 10336 case $host_cpu in 10337 hppa*64*|ia64*) 10338 hardcode_direct=no 10339 hardcode_shlibpath_var=no 10340 ;; 10341 *) 10342 hardcode_direct=yes 10343 hardcode_direct_absolute=yes 10344 export_dynamic_flag_spec='${wl}-E' 10345 10346 # hardcode_minus_L: Not really in the search PATH, 10347 # but as the default location of the library. 10348 hardcode_minus_L=yes 10349 ;; 10350 esac 10351 fi 10352 ;; 10353 10354 irix5* | irix6* | nonstopux*) 10355 if test "$GCC" = yes; then 10356 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' 10357 # Try to use the -exported_symbol ld option, if it does not 10358 # work, assume that -exports_file does not work either and 10359 # implicitly export all symbols. 10360 # This should be the same for all languages, so no per-tag cache variable. 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10362$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10363if ${lt_cv_irix_exported_symbol+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365else 10366 save_LDFLAGS="$LDFLAGS" 10367 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370int foo (void) { return 0; } 10371_ACEOF 10372if ac_fn_c_try_link "$LINENO"; then : 10373 lt_cv_irix_exported_symbol=yes 10374else 10375 lt_cv_irix_exported_symbol=no 10376fi 10377rm -f core conftest.err conftest.$ac_objext \ 10378 conftest$ac_exeext conftest.$ac_ext 10379 LDFLAGS="$save_LDFLAGS" 10380fi 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10382$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10383 if test "$lt_cv_irix_exported_symbol" = yes; then 10384 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' 10385 fi 10386 else 10387 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' 10388 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' 10389 fi 10390 archive_cmds_need_lc='no' 10391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10392 hardcode_libdir_separator=: 10393 inherit_rpath=yes 10394 link_all_deplibs=yes 10395 ;; 10396 10397 netbsd*) 10398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10400 else 10401 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10402 fi 10403 hardcode_libdir_flag_spec='-R$libdir' 10404 hardcode_direct=yes 10405 hardcode_shlibpath_var=no 10406 ;; 10407 10408 newsos6) 10409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10410 hardcode_direct=yes 10411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10412 hardcode_libdir_separator=: 10413 hardcode_shlibpath_var=no 10414 ;; 10415 10416 *nto* | *qnx*) 10417 ;; 10418 10419 openbsd*) 10420 if test -f /usr/libexec/ld.so; then 10421 hardcode_direct=yes 10422 hardcode_shlibpath_var=no 10423 hardcode_direct_absolute=yes 10424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10426 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10428 export_dynamic_flag_spec='${wl}-E' 10429 else 10430 case $host_os in 10431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10433 hardcode_libdir_flag_spec='-R$libdir' 10434 ;; 10435 *) 10436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10438 ;; 10439 esac 10440 fi 10441 else 10442 ld_shlibs=no 10443 fi 10444 ;; 10445 10446 os2*) 10447 hardcode_libdir_flag_spec='-L$libdir' 10448 hardcode_minus_L=yes 10449 allow_undefined_flag=unsupported 10450 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10451 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10452 ;; 10453 10454 osf3*) 10455 if test "$GCC" = yes; then 10456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10457 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' 10458 else 10459 allow_undefined_flag=' -expect_unresolved \*' 10460 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' 10461 fi 10462 archive_cmds_need_lc='no' 10463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10464 hardcode_libdir_separator=: 10465 ;; 10466 10467 osf4* | osf5*) # as osf3* with the addition of -msym flag 10468 if test "$GCC" = yes; then 10469 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10470 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' 10471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10472 else 10473 allow_undefined_flag=' -expect_unresolved \*' 10474 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' 10475 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~ 10476 $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' 10477 10478 # Both c and cxx compiler support -rpath directly 10479 hardcode_libdir_flag_spec='-rpath $libdir' 10480 fi 10481 archive_cmds_need_lc='no' 10482 hardcode_libdir_separator=: 10483 ;; 10484 10485 solaris*) 10486 no_undefined_flag=' -z defs' 10487 if test "$GCC" = yes; then 10488 wlarc='${wl}' 10489 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10491 $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' 10492 else 10493 case `$CC -V 2>&1` in 10494 *"Compilers 5.0"*) 10495 wlarc='' 10496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10497 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10499 ;; 10500 *) 10501 wlarc='${wl}' 10502 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10504 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10505 ;; 10506 esac 10507 fi 10508 hardcode_libdir_flag_spec='-R$libdir' 10509 hardcode_shlibpath_var=no 10510 case $host_os in 10511 solaris2.[0-5] | solaris2.[0-5].*) ;; 10512 *) 10513 # The compiler driver will combine and reorder linker options, 10514 # but understands `-z linker_flag'. GCC discards it without `$wl', 10515 # but is careful enough not to reorder. 10516 # Supported since Solaris 2.6 (maybe 2.5.1?) 10517 if test "$GCC" = yes; then 10518 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10519 else 10520 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10521 fi 10522 ;; 10523 esac 10524 link_all_deplibs=yes 10525 ;; 10526 10527 sunos4*) 10528 if test "x$host_vendor" = xsequent; then 10529 # Use $CC to link under sequent, because it throws in some extra .o 10530 # files that make .init and .fini sections work. 10531 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10532 else 10533 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10534 fi 10535 hardcode_libdir_flag_spec='-L$libdir' 10536 hardcode_direct=yes 10537 hardcode_minus_L=yes 10538 hardcode_shlibpath_var=no 10539 ;; 10540 10541 sysv4) 10542 case $host_vendor in 10543 sni) 10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10545 hardcode_direct=yes # is this really true??? 10546 ;; 10547 siemens) 10548 ## LD is ld it makes a PLAMLIB 10549 ## CC just makes a GrossModule. 10550 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10551 reload_cmds='$CC -r -o $output$reload_objs' 10552 hardcode_direct=no 10553 ;; 10554 motorola) 10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10556 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10557 ;; 10558 esac 10559 runpath_var='LD_RUN_PATH' 10560 hardcode_shlibpath_var=no 10561 ;; 10562 10563 sysv4.3*) 10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10565 hardcode_shlibpath_var=no 10566 export_dynamic_flag_spec='-Bexport' 10567 ;; 10568 10569 sysv4*MP*) 10570 if test -d /usr/nec; then 10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10572 hardcode_shlibpath_var=no 10573 runpath_var=LD_RUN_PATH 10574 hardcode_runpath_var=yes 10575 ld_shlibs=yes 10576 fi 10577 ;; 10578 10579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10580 no_undefined_flag='${wl}-z,text' 10581 archive_cmds_need_lc=no 10582 hardcode_shlibpath_var=no 10583 runpath_var='LD_RUN_PATH' 10584 10585 if test "$GCC" = yes; then 10586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10588 else 10589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10591 fi 10592 ;; 10593 10594 sysv5* | sco3.2v5* | sco5v6*) 10595 # Note: We can NOT use -z defs as we might desire, because we do not 10596 # link with -lc, and that would cause any symbols used from libc to 10597 # always be unresolved, which means just about no library would 10598 # ever link correctly. If we're not using GNU ld we use -z text 10599 # though, which does catch some bad symbols but isn't as heavy-handed 10600 # as -z defs. 10601 no_undefined_flag='${wl}-z,text' 10602 allow_undefined_flag='${wl}-z,nodefs' 10603 archive_cmds_need_lc=no 10604 hardcode_shlibpath_var=no 10605 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10606 hardcode_libdir_separator=':' 10607 link_all_deplibs=yes 10608 export_dynamic_flag_spec='${wl}-Bexport' 10609 runpath_var='LD_RUN_PATH' 10610 10611 if test "$GCC" = yes; then 10612 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10613 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10614 else 10615 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10616 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10617 fi 10618 ;; 10619 10620 uts4*) 10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10622 hardcode_libdir_flag_spec='-L$libdir' 10623 hardcode_shlibpath_var=no 10624 ;; 10625 10626 *) 10627 ld_shlibs=no 10628 ;; 10629 esac 10630 10631 if test x$host_vendor = xsni; then 10632 case $host in 10633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10634 export_dynamic_flag_spec='${wl}-Blargedynsym' 10635 ;; 10636 esac 10637 fi 10638 fi 10639 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10641$as_echo "$ld_shlibs" >&6; } 10642test "$ld_shlibs" = no && can_build_shared=no 10643 10644with_gnu_ld=$with_gnu_ld 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660# 10661# Do we need to explicitly link libc? 10662# 10663case "x$archive_cmds_need_lc" in 10664x|xyes) 10665 # Assume -lc should be added 10666 archive_cmds_need_lc=yes 10667 10668 if test "$enable_shared" = yes && test "$GCC" = yes; then 10669 case $archive_cmds in 10670 *'~'*) 10671 # FIXME: we may have to deal with multi-command sequences. 10672 ;; 10673 '$CC '*) 10674 # Test whether the compiler implicitly links with -lc since on some 10675 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10676 # to ld, don't add -lc before -lgcc. 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10678$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10679if ${lt_cv_archive_cmds_need_lc+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 $RM conftest* 10683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10684 10685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10686 (eval $ac_compile) 2>&5 10687 ac_status=$? 10688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10689 test $ac_status = 0; } 2>conftest.err; then 10690 soname=conftest 10691 lib=conftest 10692 libobjs=conftest.$ac_objext 10693 deplibs= 10694 wl=$lt_prog_compiler_wl 10695 pic_flag=$lt_prog_compiler_pic 10696 compiler_flags=-v 10697 linker_flags=-v 10698 verstring= 10699 output_objdir=. 10700 libname=conftest 10701 lt_save_allow_undefined_flag=$allow_undefined_flag 10702 allow_undefined_flag= 10703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10704 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10705 ac_status=$? 10706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10707 test $ac_status = 0; } 10708 then 10709 lt_cv_archive_cmds_need_lc=no 10710 else 10711 lt_cv_archive_cmds_need_lc=yes 10712 fi 10713 allow_undefined_flag=$lt_save_allow_undefined_flag 10714 else 10715 cat conftest.err 1>&5 10716 fi 10717 $RM conftest* 10718 10719fi 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10721$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10722 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10723 ;; 10724 esac 10725 fi 10726 ;; 10727esac 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10881$as_echo_n "checking dynamic linker characteristics... " >&6; } 10882 10883if test "$GCC" = yes; then 10884 case $host_os in 10885 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10886 *) lt_awk_arg="/^libraries:/" ;; 10887 esac 10888 case $host_os in 10889 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10890 *) lt_sed_strip_eq="s,=/,/,g" ;; 10891 esac 10892 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10893 case $lt_search_path_spec in 10894 *\;*) 10895 # if the path contains ";" then we assume it to be the separator 10896 # otherwise default to the standard path separator (i.e. ":") - it is 10897 # assumed that no part of a normal pathname contains ";" but that should 10898 # okay in the real world where ";" in dirpaths is itself problematic. 10899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10900 ;; 10901 *) 10902 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10903 ;; 10904 esac 10905 # Ok, now we have the path, separated by spaces, we can step through it 10906 # and add multilib dir if necessary. 10907 lt_tmp_lt_search_path_spec= 10908 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10909 for lt_sys_path in $lt_search_path_spec; do 10910 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10912 else 10913 test -d "$lt_sys_path" && \ 10914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10915 fi 10916 done 10917 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10918BEGIN {RS=" "; FS="/|\n";} { 10919 lt_foo=""; 10920 lt_count=0; 10921 for (lt_i = NF; lt_i > 0; lt_i--) { 10922 if ($lt_i != "" && $lt_i != ".") { 10923 if ($lt_i == "..") { 10924 lt_count++; 10925 } else { 10926 if (lt_count == 0) { 10927 lt_foo="/" $lt_i lt_foo; 10928 } else { 10929 lt_count--; 10930 } 10931 } 10932 } 10933 } 10934 if (lt_foo != "") { lt_freq[lt_foo]++; } 10935 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10936}'` 10937 # AWK program above erroneously prepends '/' to C:/dos/paths 10938 # for these hosts. 10939 case $host_os in 10940 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10941 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10942 esac 10943 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10944else 10945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10946fi 10947library_names_spec= 10948libname_spec='lib$name' 10949soname_spec= 10950shrext_cmds=".so" 10951postinstall_cmds= 10952postuninstall_cmds= 10953finish_cmds= 10954finish_eval= 10955shlibpath_var= 10956shlibpath_overrides_runpath=unknown 10957version_type=none 10958dynamic_linker="$host_os ld.so" 10959sys_lib_dlsearch_path_spec="/lib /usr/lib" 10960need_lib_prefix=unknown 10961hardcode_into_libs=no 10962 10963# when you set need_version to no, make sure it does not cause -set_version 10964# flags to be left without arguments 10965need_version=unknown 10966 10967case $host_os in 10968aix3*) 10969 version_type=linux # correct to gnu/linux during the next big refactor 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10971 shlibpath_var=LIBPATH 10972 10973 # AIX 3 has no versioning support, so we append a major version to the name. 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 ;; 10976 10977aix[4-9]*) 10978 version_type=linux # correct to gnu/linux during the next big refactor 10979 need_lib_prefix=no 10980 need_version=no 10981 hardcode_into_libs=yes 10982 if test "$host_cpu" = ia64; then 10983 # AIX 5 supports IA64 10984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10985 shlibpath_var=LD_LIBRARY_PATH 10986 else 10987 # With GCC up to 2.95.x, collect2 would create an import file 10988 # for dependence libraries. The import file would start with 10989 # the line `#! .'. This would cause the generated library to 10990 # depend on `.', always an invalid library. This was fixed in 10991 # development snapshots of GCC prior to 3.0. 10992 case $host_os in 10993 aix4 | aix4.[01] | aix4.[01].*) 10994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10995 echo ' yes ' 10996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10997 : 10998 else 10999 can_build_shared=no 11000 fi 11001 ;; 11002 esac 11003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11004 # soname into executable. Probably we can add versioning support to 11005 # collect2, so additional links can be useful in future. 11006 if test "$aix_use_runtimelinking" = yes; then 11007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11008 # instead of lib<name>.a to let people know that these are not 11009 # typical AIX shared libraries. 11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11011 else 11012 # We preserve .a as extension for shared libraries through AIX4.2 11013 # and later when we are not doing run time linking. 11014 library_names_spec='${libname}${release}.a $libname.a' 11015 soname_spec='${libname}${release}${shared_ext}$major' 11016 fi 11017 shlibpath_var=LIBPATH 11018 fi 11019 ;; 11020 11021amigaos*) 11022 case $host_cpu in 11023 powerpc) 11024 # Since July 2007 AmigaOS4 officially supports .so libraries. 11025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11027 ;; 11028 m68k) 11029 library_names_spec='$libname.ixlibrary $libname.a' 11030 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11031 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11032 ;; 11033 esac 11034 ;; 11035 11036beos*) 11037 library_names_spec='${libname}${shared_ext}' 11038 dynamic_linker="$host_os ld.so" 11039 shlibpath_var=LIBRARY_PATH 11040 ;; 11041 11042bsdi[45]*) 11043 version_type=linux # correct to gnu/linux during the next big refactor 11044 need_version=no 11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11046 soname_spec='${libname}${release}${shared_ext}$major' 11047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11051 # the default ld.so.conf also contains /usr/contrib/lib and 11052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11053 # libtool to hard-code these into programs 11054 ;; 11055 11056cygwin* | mingw* | pw32* | cegcc*) 11057 version_type=windows 11058 shrext_cmds=".dll" 11059 need_version=no 11060 need_lib_prefix=no 11061 11062 case $GCC,$cc_basename in 11063 yes,*) 11064 # gcc 11065 library_names_spec='$libname.dll.a' 11066 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11067 postinstall_cmds='base_file=`basename \${file}`~ 11068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11069 dldir=$destdir/`dirname \$dlpath`~ 11070 test -d \$dldir || mkdir -p \$dldir~ 11071 $install_prog $dir/$dlname \$dldir/$dlname~ 11072 chmod a+x \$dldir/$dlname~ 11073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11075 fi' 11076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11077 dlpath=$dir/\$dldll~ 11078 $RM \$dlpath' 11079 shlibpath_overrides_runpath=yes 11080 11081 case $host_os in 11082 cygwin*) 11083 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11085 11086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11087 ;; 11088 mingw* | cegcc*) 11089 # MinGW DLLs use traditional 'lib' prefix 11090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11091 ;; 11092 pw32*) 11093 # pw32 DLLs use 'pw' prefix rather than 'lib' 11094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11095 ;; 11096 esac 11097 dynamic_linker='Win32 ld.exe' 11098 ;; 11099 11100 *,cl*) 11101 # Native MSVC 11102 libname_spec='$name' 11103 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11104 library_names_spec='${libname}.dll.lib' 11105 11106 case $build_os in 11107 mingw*) 11108 sys_lib_search_path_spec= 11109 lt_save_ifs=$IFS 11110 IFS=';' 11111 for lt_path in $LIB 11112 do 11113 IFS=$lt_save_ifs 11114 # Let DOS variable expansion print the short 8.3 style file name. 11115 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11116 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11117 done 11118 IFS=$lt_save_ifs 11119 # Convert to MSYS style. 11120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11121 ;; 11122 cygwin*) 11123 # Convert to unix form, then to dos form, then back to unix form 11124 # but this time dos style (no spaces!) so that the unix form looks 11125 # like /cygdrive/c/PROGRA~1:/cygdr... 11126 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11127 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11128 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11129 ;; 11130 *) 11131 sys_lib_search_path_spec="$LIB" 11132 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11133 # It is most probably a Windows format PATH. 11134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11135 else 11136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11137 fi 11138 # FIXME: find the short name or the path components, as spaces are 11139 # common. (e.g. "Program Files" -> "PROGRA~1") 11140 ;; 11141 esac 11142 11143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11144 postinstall_cmds='base_file=`basename \${file}`~ 11145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11146 dldir=$destdir/`dirname \$dlpath`~ 11147 test -d \$dldir || mkdir -p \$dldir~ 11148 $install_prog $dir/$dlname \$dldir/$dlname' 11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11150 dlpath=$dir/\$dldll~ 11151 $RM \$dlpath' 11152 shlibpath_overrides_runpath=yes 11153 dynamic_linker='Win32 link.exe' 11154 ;; 11155 11156 *) 11157 # Assume MSVC wrapper 11158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11159 dynamic_linker='Win32 ld.exe' 11160 ;; 11161 esac 11162 # FIXME: first we should search . and the directory the executable is in 11163 shlibpath_var=PATH 11164 ;; 11165 11166darwin* | rhapsody*) 11167 dynamic_linker="$host_os dyld" 11168 version_type=darwin 11169 need_lib_prefix=no 11170 need_version=no 11171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11172 soname_spec='${libname}${release}${major}$shared_ext' 11173 shlibpath_overrides_runpath=yes 11174 shlibpath_var=DYLD_LIBRARY_PATH 11175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11176 11177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11179 ;; 11180 11181dgux*) 11182 version_type=linux # correct to gnu/linux during the next big refactor 11183 need_lib_prefix=no 11184 need_version=no 11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11186 soname_spec='${libname}${release}${shared_ext}$major' 11187 shlibpath_var=LD_LIBRARY_PATH 11188 ;; 11189 11190freebsd* | dragonfly*) 11191 # DragonFly does not have aout. When/if they implement a new 11192 # versioning mechanism, adjust this. 11193 if test -x /usr/bin/objformat; then 11194 objformat=`/usr/bin/objformat` 11195 else 11196 case $host_os in 11197 freebsd[23].*) objformat=aout ;; 11198 *) objformat=elf ;; 11199 esac 11200 fi 11201 version_type=freebsd-$objformat 11202 case $version_type in 11203 freebsd-elf*) 11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11205 need_version=no 11206 need_lib_prefix=no 11207 ;; 11208 freebsd-*) 11209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11210 need_version=yes 11211 ;; 11212 esac 11213 shlibpath_var=LD_LIBRARY_PATH 11214 case $host_os in 11215 freebsd2.*) 11216 shlibpath_overrides_runpath=yes 11217 ;; 11218 freebsd3.[01]* | freebsdelf3.[01]*) 11219 shlibpath_overrides_runpath=yes 11220 hardcode_into_libs=yes 11221 ;; 11222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11224 shlibpath_overrides_runpath=no 11225 hardcode_into_libs=yes 11226 ;; 11227 *) # from 4.6 on, and DragonFly 11228 shlibpath_overrides_runpath=yes 11229 hardcode_into_libs=yes 11230 ;; 11231 esac 11232 ;; 11233 11234gnu*) 11235 version_type=linux # correct to gnu/linux during the next big refactor 11236 need_lib_prefix=no 11237 need_version=no 11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11239 soname_spec='${libname}${release}${shared_ext}$major' 11240 shlibpath_var=LD_LIBRARY_PATH 11241 shlibpath_overrides_runpath=no 11242 hardcode_into_libs=yes 11243 ;; 11244 11245haiku*) 11246 version_type=linux # correct to gnu/linux during the next big refactor 11247 need_lib_prefix=no 11248 need_version=no 11249 dynamic_linker="$host_os runtime_loader" 11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11251 soname_spec='${libname}${release}${shared_ext}$major' 11252 shlibpath_var=LIBRARY_PATH 11253 shlibpath_overrides_runpath=yes 11254 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11255 hardcode_into_libs=yes 11256 ;; 11257 11258hpux9* | hpux10* | hpux11*) 11259 # Give a soname corresponding to the major version so that dld.sl refuses to 11260 # link against other versions. 11261 version_type=sunos 11262 need_lib_prefix=no 11263 need_version=no 11264 case $host_cpu in 11265 ia64*) 11266 shrext_cmds='.so' 11267 hardcode_into_libs=yes 11268 dynamic_linker="$host_os dld.so" 11269 shlibpath_var=LD_LIBRARY_PATH 11270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11272 soname_spec='${libname}${release}${shared_ext}$major' 11273 if test "X$HPUX_IA64_MODE" = X32; then 11274 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11275 else 11276 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11277 fi 11278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11279 ;; 11280 hppa*64*) 11281 shrext_cmds='.sl' 11282 hardcode_into_libs=yes 11283 dynamic_linker="$host_os dld.sl" 11284 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11287 soname_spec='${libname}${release}${shared_ext}$major' 11288 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11290 ;; 11291 *) 11292 shrext_cmds='.sl' 11293 dynamic_linker="$host_os dld.sl" 11294 shlibpath_var=SHLIB_PATH 11295 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11297 soname_spec='${libname}${release}${shared_ext}$major' 11298 ;; 11299 esac 11300 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11301 postinstall_cmds='chmod 555 $lib' 11302 # or fails outright, so override atomically: 11303 install_override_mode=555 11304 ;; 11305 11306interix[3-9]*) 11307 version_type=linux # correct to gnu/linux during the next big refactor 11308 need_lib_prefix=no 11309 need_version=no 11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11311 soname_spec='${libname}${release}${shared_ext}$major' 11312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11313 shlibpath_var=LD_LIBRARY_PATH 11314 shlibpath_overrides_runpath=no 11315 hardcode_into_libs=yes 11316 ;; 11317 11318irix5* | irix6* | nonstopux*) 11319 case $host_os in 11320 nonstopux*) version_type=nonstopux ;; 11321 *) 11322 if test "$lt_cv_prog_gnu_ld" = yes; then 11323 version_type=linux # correct to gnu/linux during the next big refactor 11324 else 11325 version_type=irix 11326 fi ;; 11327 esac 11328 need_lib_prefix=no 11329 need_version=no 11330 soname_spec='${libname}${release}${shared_ext}$major' 11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11332 case $host_os in 11333 irix5* | nonstopux*) 11334 libsuff= shlibsuff= 11335 ;; 11336 *) 11337 case $LD in # libtool.m4 will add one of these switches to LD 11338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11339 libsuff= shlibsuff= libmagic=32-bit;; 11340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11341 libsuff=32 shlibsuff=N32 libmagic=N32;; 11342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11343 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11344 *) libsuff= shlibsuff= libmagic=never-match;; 11345 esac 11346 ;; 11347 esac 11348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11349 shlibpath_overrides_runpath=no 11350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11352 hardcode_into_libs=yes 11353 ;; 11354 11355# No shared lib support for Linux oldld, aout, or coff. 11356linux*oldld* | linux*aout* | linux*coff*) 11357 dynamic_linker=no 11358 ;; 11359 11360# This must be glibc/ELF. 11361linux* | k*bsd*-gnu | kopensolaris*-gnu) 11362 version_type=linux # correct to gnu/linux during the next big refactor 11363 need_lib_prefix=no 11364 need_version=no 11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11366 soname_spec='${libname}${release}${shared_ext}$major' 11367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11368 shlibpath_var=LD_LIBRARY_PATH 11369 shlibpath_overrides_runpath=no 11370 11371 # Some binutils ld are patched to set DT_RUNPATH 11372 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11373 $as_echo_n "(cached) " >&6 11374else 11375 lt_cv_shlibpath_overrides_runpath=no 11376 save_LDFLAGS=$LDFLAGS 11377 save_libdir=$libdir 11378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11381/* end confdefs.h. */ 11382 11383int 11384main () 11385{ 11386 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391if ac_fn_c_try_link "$LINENO"; then : 11392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11393 lt_cv_shlibpath_overrides_runpath=yes 11394fi 11395fi 11396rm -f core conftest.err conftest.$ac_objext \ 11397 conftest$ac_exeext conftest.$ac_ext 11398 LDFLAGS=$save_LDFLAGS 11399 libdir=$save_libdir 11400 11401fi 11402 11403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11404 11405 # This implies no fast_install, which is unacceptable. 11406 # Some rework will be needed to allow for fast_install 11407 # before this can be enabled. 11408 hardcode_into_libs=yes 11409 11410 # Append ld.so.conf contents to the search path 11411 if test -f /etc/ld.so.conf; then 11412 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' ' '` 11413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11414 fi 11415 11416 # We used to test for /lib/ld.so.1 and disable shared libraries on 11417 # powerpc, because MkLinux only supported shared libraries with the 11418 # GNU dynamic linker. Since this was broken with cross compilers, 11419 # most powerpc-linux boxes support dynamic linking these days and 11420 # people can always --disable-shared, the test was removed, and we 11421 # assume the GNU/Linux dynamic linker is in use. 11422 dynamic_linker='GNU/Linux ld.so' 11423 ;; 11424 11425netbsd*) 11426 version_type=sunos 11427 need_lib_prefix=no 11428 need_version=no 11429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11432 dynamic_linker='NetBSD (a.out) ld.so' 11433 else 11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11435 soname_spec='${libname}${release}${shared_ext}$major' 11436 dynamic_linker='NetBSD ld.elf_so' 11437 fi 11438 shlibpath_var=LD_LIBRARY_PATH 11439 shlibpath_overrides_runpath=yes 11440 hardcode_into_libs=yes 11441 ;; 11442 11443newsos6) 11444 version_type=linux # correct to gnu/linux during the next big refactor 11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11446 shlibpath_var=LD_LIBRARY_PATH 11447 shlibpath_overrides_runpath=yes 11448 ;; 11449 11450*nto* | *qnx*) 11451 version_type=qnx 11452 need_lib_prefix=no 11453 need_version=no 11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11455 soname_spec='${libname}${release}${shared_ext}$major' 11456 shlibpath_var=LD_LIBRARY_PATH 11457 shlibpath_overrides_runpath=no 11458 hardcode_into_libs=yes 11459 dynamic_linker='ldqnx.so' 11460 ;; 11461 11462openbsd*) 11463 version_type=sunos 11464 sys_lib_dlsearch_path_spec="/usr/lib" 11465 need_lib_prefix=no 11466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11467 case $host_os in 11468 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11469 *) need_version=no ;; 11470 esac 11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11473 shlibpath_var=LD_LIBRARY_PATH 11474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11475 case $host_os in 11476 openbsd2.[89] | openbsd2.[89].*) 11477 shlibpath_overrides_runpath=no 11478 ;; 11479 *) 11480 shlibpath_overrides_runpath=yes 11481 ;; 11482 esac 11483 else 11484 shlibpath_overrides_runpath=yes 11485 fi 11486 ;; 11487 11488os2*) 11489 libname_spec='$name' 11490 shrext_cmds=".dll" 11491 need_lib_prefix=no 11492 library_names_spec='$libname${shared_ext} $libname.a' 11493 dynamic_linker='OS/2 ld.exe' 11494 shlibpath_var=LIBPATH 11495 ;; 11496 11497osf3* | osf4* | osf5*) 11498 version_type=osf 11499 need_lib_prefix=no 11500 need_version=no 11501 soname_spec='${libname}${release}${shared_ext}$major' 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11503 shlibpath_var=LD_LIBRARY_PATH 11504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11506 ;; 11507 11508rdos*) 11509 dynamic_linker=no 11510 ;; 11511 11512solaris*) 11513 version_type=linux # correct to gnu/linux during the next big refactor 11514 need_lib_prefix=no 11515 need_version=no 11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11517 soname_spec='${libname}${release}${shared_ext}$major' 11518 shlibpath_var=LD_LIBRARY_PATH 11519 shlibpath_overrides_runpath=yes 11520 hardcode_into_libs=yes 11521 # ldd complains unless libraries are executable 11522 postinstall_cmds='chmod +x $lib' 11523 ;; 11524 11525sunos4*) 11526 version_type=sunos 11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 shlibpath_overrides_runpath=yes 11531 if test "$with_gnu_ld" = yes; then 11532 need_lib_prefix=no 11533 fi 11534 need_version=yes 11535 ;; 11536 11537sysv4 | sysv4.3*) 11538 version_type=linux # correct to gnu/linux during the next big refactor 11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11540 soname_spec='${libname}${release}${shared_ext}$major' 11541 shlibpath_var=LD_LIBRARY_PATH 11542 case $host_vendor in 11543 sni) 11544 shlibpath_overrides_runpath=no 11545 need_lib_prefix=no 11546 runpath_var=LD_RUN_PATH 11547 ;; 11548 siemens) 11549 need_lib_prefix=no 11550 ;; 11551 motorola) 11552 need_lib_prefix=no 11553 need_version=no 11554 shlibpath_overrides_runpath=no 11555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11556 ;; 11557 esac 11558 ;; 11559 11560sysv4*MP*) 11561 if test -d /usr/nec ;then 11562 version_type=linux # correct to gnu/linux during the next big refactor 11563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11564 soname_spec='$libname${shared_ext}.$major' 11565 shlibpath_var=LD_LIBRARY_PATH 11566 fi 11567 ;; 11568 11569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11570 version_type=freebsd-elf 11571 need_lib_prefix=no 11572 need_version=no 11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11574 soname_spec='${libname}${release}${shared_ext}$major' 11575 shlibpath_var=LD_LIBRARY_PATH 11576 shlibpath_overrides_runpath=yes 11577 hardcode_into_libs=yes 11578 if test "$with_gnu_ld" = yes; then 11579 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11580 else 11581 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11582 case $host_os in 11583 sco3.2v5*) 11584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11585 ;; 11586 esac 11587 fi 11588 sys_lib_dlsearch_path_spec='/usr/lib' 11589 ;; 11590 11591tpf*) 11592 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11593 version_type=linux # correct to gnu/linux during the next big refactor 11594 need_lib_prefix=no 11595 need_version=no 11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 shlibpath_overrides_runpath=no 11599 hardcode_into_libs=yes 11600 ;; 11601 11602uts4*) 11603 version_type=linux # correct to gnu/linux during the next big refactor 11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11605 soname_spec='${libname}${release}${shared_ext}$major' 11606 shlibpath_var=LD_LIBRARY_PATH 11607 ;; 11608 11609*) 11610 dynamic_linker=no 11611 ;; 11612esac 11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11614$as_echo "$dynamic_linker" >&6; } 11615test "$dynamic_linker" = no && can_build_shared=no 11616 11617variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11618if test "$GCC" = yes; then 11619 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11620fi 11621 11622if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11623 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11624fi 11625if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11626 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11627fi 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11721$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11722hardcode_action= 11723if test -n "$hardcode_libdir_flag_spec" || 11724 test -n "$runpath_var" || 11725 test "X$hardcode_automatic" = "Xyes" ; then 11726 11727 # We can hardcode non-existent directories. 11728 if test "$hardcode_direct" != no && 11729 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11730 # have to relink, otherwise we might link with an installed library 11731 # when we should be linking with a yet-to-be-installed one 11732 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11733 test "$hardcode_minus_L" != no; then 11734 # Linking always hardcodes the temporary library directory. 11735 hardcode_action=relink 11736 else 11737 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11738 hardcode_action=immediate 11739 fi 11740else 11741 # We cannot hardcode anything, or else we can only hardcode existing 11742 # directories. 11743 hardcode_action=unsupported 11744fi 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11746$as_echo "$hardcode_action" >&6; } 11747 11748if test "$hardcode_action" = relink || 11749 test "$inherit_rpath" = yes; then 11750 # Fast installation is not supported 11751 enable_fast_install=no 11752elif test "$shlibpath_overrides_runpath" = yes || 11753 test "$enable_shared" = no; then 11754 # Fast installation is not necessary 11755 enable_fast_install=needless 11756fi 11757 11758 11759 11760 11761 11762 11763 if test "x$enable_dlopen" != xyes; then 11764 enable_dlopen=unknown 11765 enable_dlopen_self=unknown 11766 enable_dlopen_self_static=unknown 11767else 11768 lt_cv_dlopen=no 11769 lt_cv_dlopen_libs= 11770 11771 case $host_os in 11772 beos*) 11773 lt_cv_dlopen="load_add_on" 11774 lt_cv_dlopen_libs= 11775 lt_cv_dlopen_self=yes 11776 ;; 11777 11778 mingw* | pw32* | cegcc*) 11779 lt_cv_dlopen="LoadLibrary" 11780 lt_cv_dlopen_libs= 11781 ;; 11782 11783 cygwin*) 11784 lt_cv_dlopen="dlopen" 11785 lt_cv_dlopen_libs= 11786 ;; 11787 11788 darwin*) 11789 # if libdl is installed we need to link against it 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11791$as_echo_n "checking for dlopen in -ldl... " >&6; } 11792if ${ac_cv_lib_dl_dlopen+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794else 11795 ac_check_lib_save_LIBS=$LIBS 11796LIBS="-ldl $LIBS" 11797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799 11800/* Override any GCC internal prototype to avoid an error. 11801 Use char because int might match the return type of a GCC 11802 builtin and then its argument prototype would still apply. */ 11803#ifdef __cplusplus 11804extern "C" 11805#endif 11806char dlopen (); 11807int 11808main () 11809{ 11810return dlopen (); 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815if ac_fn_c_try_link "$LINENO"; then : 11816 ac_cv_lib_dl_dlopen=yes 11817else 11818 ac_cv_lib_dl_dlopen=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext \ 11821 conftest$ac_exeext conftest.$ac_ext 11822LIBS=$ac_check_lib_save_LIBS 11823fi 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11825$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11826if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11828else 11829 11830 lt_cv_dlopen="dyld" 11831 lt_cv_dlopen_libs= 11832 lt_cv_dlopen_self=yes 11833 11834fi 11835 11836 ;; 11837 11838 *) 11839 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11840if test "x$ac_cv_func_shl_load" = xyes; then : 11841 lt_cv_dlopen="shl_load" 11842else 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11844$as_echo_n "checking for shl_load in -ldld... " >&6; } 11845if ${ac_cv_lib_dld_shl_load+:} false; then : 11846 $as_echo_n "(cached) " >&6 11847else 11848 ac_check_lib_save_LIBS=$LIBS 11849LIBS="-ldld $LIBS" 11850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11851/* end confdefs.h. */ 11852 11853/* Override any GCC internal prototype to avoid an error. 11854 Use char because int might match the return type of a GCC 11855 builtin and then its argument prototype would still apply. */ 11856#ifdef __cplusplus 11857extern "C" 11858#endif 11859char shl_load (); 11860int 11861main () 11862{ 11863return shl_load (); 11864 ; 11865 return 0; 11866} 11867_ACEOF 11868if ac_fn_c_try_link "$LINENO"; then : 11869 ac_cv_lib_dld_shl_load=yes 11870else 11871 ac_cv_lib_dld_shl_load=no 11872fi 11873rm -f core conftest.err conftest.$ac_objext \ 11874 conftest$ac_exeext conftest.$ac_ext 11875LIBS=$ac_check_lib_save_LIBS 11876fi 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11878$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11879if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11881else 11882 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11883if test "x$ac_cv_func_dlopen" = xyes; then : 11884 lt_cv_dlopen="dlopen" 11885else 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11887$as_echo_n "checking for dlopen in -ldl... " >&6; } 11888if ${ac_cv_lib_dl_dlopen+:} false; then : 11889 $as_echo_n "(cached) " >&6 11890else 11891 ac_check_lib_save_LIBS=$LIBS 11892LIBS="-ldl $LIBS" 11893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894/* end confdefs.h. */ 11895 11896/* Override any GCC internal prototype to avoid an error. 11897 Use char because int might match the return type of a GCC 11898 builtin and then its argument prototype would still apply. */ 11899#ifdef __cplusplus 11900extern "C" 11901#endif 11902char dlopen (); 11903int 11904main () 11905{ 11906return dlopen (); 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911if ac_fn_c_try_link "$LINENO"; then : 11912 ac_cv_lib_dl_dlopen=yes 11913else 11914 ac_cv_lib_dl_dlopen=no 11915fi 11916rm -f core conftest.err conftest.$ac_objext \ 11917 conftest$ac_exeext conftest.$ac_ext 11918LIBS=$ac_check_lib_save_LIBS 11919fi 11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11921$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11922if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11924else 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11926$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11927if ${ac_cv_lib_svld_dlopen+:} false; then : 11928 $as_echo_n "(cached) " >&6 11929else 11930 ac_check_lib_save_LIBS=$LIBS 11931LIBS="-lsvld $LIBS" 11932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11933/* end confdefs.h. */ 11934 11935/* Override any GCC internal prototype to avoid an error. 11936 Use char because int might match the return type of a GCC 11937 builtin and then its argument prototype would still apply. */ 11938#ifdef __cplusplus 11939extern "C" 11940#endif 11941char dlopen (); 11942int 11943main () 11944{ 11945return dlopen (); 11946 ; 11947 return 0; 11948} 11949_ACEOF 11950if ac_fn_c_try_link "$LINENO"; then : 11951 ac_cv_lib_svld_dlopen=yes 11952else 11953 ac_cv_lib_svld_dlopen=no 11954fi 11955rm -f core conftest.err conftest.$ac_objext \ 11956 conftest$ac_exeext conftest.$ac_ext 11957LIBS=$ac_check_lib_save_LIBS 11958fi 11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11960$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11961if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11963else 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11965$as_echo_n "checking for dld_link in -ldld... " >&6; } 11966if ${ac_cv_lib_dld_dld_link+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 ac_check_lib_save_LIBS=$LIBS 11970LIBS="-ldld $LIBS" 11971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11972/* end confdefs.h. */ 11973 11974/* Override any GCC internal prototype to avoid an error. 11975 Use char because int might match the return type of a GCC 11976 builtin and then its argument prototype would still apply. */ 11977#ifdef __cplusplus 11978extern "C" 11979#endif 11980char dld_link (); 11981int 11982main () 11983{ 11984return dld_link (); 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_link "$LINENO"; then : 11990 ac_cv_lib_dld_dld_link=yes 11991else 11992 ac_cv_lib_dld_dld_link=no 11993fi 11994rm -f core conftest.err conftest.$ac_objext \ 11995 conftest$ac_exeext conftest.$ac_ext 11996LIBS=$ac_check_lib_save_LIBS 11997fi 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11999$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12000if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12001 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12002fi 12003 12004 12005fi 12006 12007 12008fi 12009 12010 12011fi 12012 12013 12014fi 12015 12016 12017fi 12018 12019 ;; 12020 esac 12021 12022 if test "x$lt_cv_dlopen" != xno; then 12023 enable_dlopen=yes 12024 else 12025 enable_dlopen=no 12026 fi 12027 12028 case $lt_cv_dlopen in 12029 dlopen) 12030 save_CPPFLAGS="$CPPFLAGS" 12031 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12032 12033 save_LDFLAGS="$LDFLAGS" 12034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12035 12036 save_LIBS="$LIBS" 12037 LIBS="$lt_cv_dlopen_libs $LIBS" 12038 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12040$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12041if ${lt_cv_dlopen_self+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 if test "$cross_compiling" = yes; then : 12045 lt_cv_dlopen_self=cross 12046else 12047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12048 lt_status=$lt_dlunknown 12049 cat > conftest.$ac_ext <<_LT_EOF 12050#line $LINENO "configure" 12051#include "confdefs.h" 12052 12053#if HAVE_DLFCN_H 12054#include <dlfcn.h> 12055#endif 12056 12057#include <stdio.h> 12058 12059#ifdef RTLD_GLOBAL 12060# define LT_DLGLOBAL RTLD_GLOBAL 12061#else 12062# ifdef DL_GLOBAL 12063# define LT_DLGLOBAL DL_GLOBAL 12064# else 12065# define LT_DLGLOBAL 0 12066# endif 12067#endif 12068 12069/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12070 find out it does not work in some platform. */ 12071#ifndef LT_DLLAZY_OR_NOW 12072# ifdef RTLD_LAZY 12073# define LT_DLLAZY_OR_NOW RTLD_LAZY 12074# else 12075# ifdef DL_LAZY 12076# define LT_DLLAZY_OR_NOW DL_LAZY 12077# else 12078# ifdef RTLD_NOW 12079# define LT_DLLAZY_OR_NOW RTLD_NOW 12080# else 12081# ifdef DL_NOW 12082# define LT_DLLAZY_OR_NOW DL_NOW 12083# else 12084# define LT_DLLAZY_OR_NOW 0 12085# endif 12086# endif 12087# endif 12088# endif 12089#endif 12090 12091/* When -fvisbility=hidden is used, assume the code has been annotated 12092 correspondingly for the symbols needed. */ 12093#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12094int fnord () __attribute__((visibility("default"))); 12095#endif 12096 12097int fnord () { return 42; } 12098int main () 12099{ 12100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12101 int status = $lt_dlunknown; 12102 12103 if (self) 12104 { 12105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12106 else 12107 { 12108 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12109 else puts (dlerror ()); 12110 } 12111 /* dlclose (self); */ 12112 } 12113 else 12114 puts (dlerror ()); 12115 12116 return status; 12117} 12118_LT_EOF 12119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12120 (eval $ac_link) 2>&5 12121 ac_status=$? 12122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12123 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12124 (./conftest; exit; ) >&5 2>/dev/null 12125 lt_status=$? 12126 case x$lt_status in 12127 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12128 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12129 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12130 esac 12131 else : 12132 # compilation failed 12133 lt_cv_dlopen_self=no 12134 fi 12135fi 12136rm -fr conftest* 12137 12138 12139fi 12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12141$as_echo "$lt_cv_dlopen_self" >&6; } 12142 12143 if test "x$lt_cv_dlopen_self" = xyes; then 12144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12146$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12147if ${lt_cv_dlopen_self_static+:} false; then : 12148 $as_echo_n "(cached) " >&6 12149else 12150 if test "$cross_compiling" = yes; then : 12151 lt_cv_dlopen_self_static=cross 12152else 12153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12154 lt_status=$lt_dlunknown 12155 cat > conftest.$ac_ext <<_LT_EOF 12156#line $LINENO "configure" 12157#include "confdefs.h" 12158 12159#if HAVE_DLFCN_H 12160#include <dlfcn.h> 12161#endif 12162 12163#include <stdio.h> 12164 12165#ifdef RTLD_GLOBAL 12166# define LT_DLGLOBAL RTLD_GLOBAL 12167#else 12168# ifdef DL_GLOBAL 12169# define LT_DLGLOBAL DL_GLOBAL 12170# else 12171# define LT_DLGLOBAL 0 12172# endif 12173#endif 12174 12175/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12176 find out it does not work in some platform. */ 12177#ifndef LT_DLLAZY_OR_NOW 12178# ifdef RTLD_LAZY 12179# define LT_DLLAZY_OR_NOW RTLD_LAZY 12180# else 12181# ifdef DL_LAZY 12182# define LT_DLLAZY_OR_NOW DL_LAZY 12183# else 12184# ifdef RTLD_NOW 12185# define LT_DLLAZY_OR_NOW RTLD_NOW 12186# else 12187# ifdef DL_NOW 12188# define LT_DLLAZY_OR_NOW DL_NOW 12189# else 12190# define LT_DLLAZY_OR_NOW 0 12191# endif 12192# endif 12193# endif 12194# endif 12195#endif 12196 12197/* When -fvisbility=hidden is used, assume the code has been annotated 12198 correspondingly for the symbols needed. */ 12199#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12200int fnord () __attribute__((visibility("default"))); 12201#endif 12202 12203int fnord () { return 42; } 12204int main () 12205{ 12206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12207 int status = $lt_dlunknown; 12208 12209 if (self) 12210 { 12211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12212 else 12213 { 12214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12215 else puts (dlerror ()); 12216 } 12217 /* dlclose (self); */ 12218 } 12219 else 12220 puts (dlerror ()); 12221 12222 return status; 12223} 12224_LT_EOF 12225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12226 (eval $ac_link) 2>&5 12227 ac_status=$? 12228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12230 (./conftest; exit; ) >&5 2>/dev/null 12231 lt_status=$? 12232 case x$lt_status in 12233 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12234 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12235 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12236 esac 12237 else : 12238 # compilation failed 12239 lt_cv_dlopen_self_static=no 12240 fi 12241fi 12242rm -fr conftest* 12243 12244 12245fi 12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12247$as_echo "$lt_cv_dlopen_self_static" >&6; } 12248 fi 12249 12250 CPPFLAGS="$save_CPPFLAGS" 12251 LDFLAGS="$save_LDFLAGS" 12252 LIBS="$save_LIBS" 12253 ;; 12254 esac 12255 12256 case $lt_cv_dlopen_self in 12257 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12258 *) enable_dlopen_self=unknown ;; 12259 esac 12260 12261 case $lt_cv_dlopen_self_static in 12262 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12263 *) enable_dlopen_self_static=unknown ;; 12264 esac 12265fi 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283striplib= 12284old_striplib= 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12286$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12287if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12289 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12291$as_echo "yes" >&6; } 12292else 12293# FIXME - insert some real tests, host_os isn't really good enough 12294 case $host_os in 12295 darwin*) 12296 if test -n "$STRIP" ; then 12297 striplib="$STRIP -x" 12298 old_striplib="$STRIP -S" 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12300$as_echo "yes" >&6; } 12301 else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303$as_echo "no" >&6; } 12304 fi 12305 ;; 12306 *) 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12308$as_echo "no" >&6; } 12309 ;; 12310 esac 12311fi 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 # Report which library types will actually be built 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12326$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12328$as_echo "$can_build_shared" >&6; } 12329 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12331$as_echo_n "checking whether to build shared libraries... " >&6; } 12332 test "$can_build_shared" = "no" && enable_shared=no 12333 12334 # On AIX, shared libraries and static libraries use the same namespace, and 12335 # are all built from PIC. 12336 case $host_os in 12337 aix3*) 12338 test "$enable_shared" = yes && enable_static=no 12339 if test -n "$RANLIB"; then 12340 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12341 postinstall_cmds='$RANLIB $lib' 12342 fi 12343 ;; 12344 12345 aix[4-9]*) 12346 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12347 test "$enable_shared" = yes && enable_static=no 12348 fi 12349 ;; 12350 esac 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12352$as_echo "$enable_shared" >&6; } 12353 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12355$as_echo_n "checking whether to build static libraries... " >&6; } 12356 # Make sure either enable_shared or enable_static is yes. 12357 test "$enable_shared" = yes || enable_static=yes 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12359$as_echo "$enable_static" >&6; } 12360 12361 12362 12363 12364fi 12365ac_ext=c 12366ac_cpp='$CPP $CPPFLAGS' 12367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12369ac_compiler_gnu=$ac_cv_c_compiler_gnu 12370 12371CC="$lt_save_CC" 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 ac_config_commands="$ac_config_commands libtool" 12388 12389 12390 12391 12392# Only expand once: 12393 12394 12395# Check whether --enable-largefile was given. 12396if test "${enable_largefile+set}" = set; then : 12397 enableval=$enable_largefile; 12398fi 12399 12400if test "$enable_largefile" != no; then 12401 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12403$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12404if ${ac_cv_sys_largefile_CC+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 ac_cv_sys_largefile_CC=no 12408 if test "$GCC" != yes; then 12409 ac_save_CC=$CC 12410 while :; do 12411 # IRIX 6.2 and later do not support large files by default, 12412 # so use the C compiler's -n32 option if that helps. 12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12414/* end confdefs.h. */ 12415#include <sys/types.h> 12416 /* Check that off_t can represent 2**63 - 1 correctly. 12417 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12418 since some C++ compilers masquerading as C compilers 12419 incorrectly reject 9223372036854775807. */ 12420#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12422 && LARGE_OFF_T % 2147483647 == 1) 12423 ? 1 : -1]; 12424int 12425main () 12426{ 12427 12428 ; 12429 return 0; 12430} 12431_ACEOF 12432 if ac_fn_c_try_compile "$LINENO"; then : 12433 break 12434fi 12435rm -f core conftest.err conftest.$ac_objext 12436 CC="$CC -n32" 12437 if ac_fn_c_try_compile "$LINENO"; then : 12438 ac_cv_sys_largefile_CC=' -n32'; break 12439fi 12440rm -f core conftest.err conftest.$ac_objext 12441 break 12442 done 12443 CC=$ac_save_CC 12444 rm -f conftest.$ac_ext 12445 fi 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12448$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12449 if test "$ac_cv_sys_largefile_CC" != no; then 12450 CC=$CC$ac_cv_sys_largefile_CC 12451 fi 12452 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12454$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12455if ${ac_cv_sys_file_offset_bits+:} false; then : 12456 $as_echo_n "(cached) " >&6 12457else 12458 while :; do 12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461#include <sys/types.h> 12462 /* Check that off_t can represent 2**63 - 1 correctly. 12463 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12464 since some C++ compilers masquerading as C compilers 12465 incorrectly reject 9223372036854775807. */ 12466#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12468 && LARGE_OFF_T % 2147483647 == 1) 12469 ? 1 : -1]; 12470int 12471main () 12472{ 12473 12474 ; 12475 return 0; 12476} 12477_ACEOF 12478if ac_fn_c_try_compile "$LINENO"; then : 12479 ac_cv_sys_file_offset_bits=no; break 12480fi 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12483/* end confdefs.h. */ 12484#define _FILE_OFFSET_BITS 64 12485#include <sys/types.h> 12486 /* Check that off_t can represent 2**63 - 1 correctly. 12487 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12488 since some C++ compilers masquerading as C compilers 12489 incorrectly reject 9223372036854775807. */ 12490#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12492 && LARGE_OFF_T % 2147483647 == 1) 12493 ? 1 : -1]; 12494int 12495main () 12496{ 12497 12498 ; 12499 return 0; 12500} 12501_ACEOF 12502if ac_fn_c_try_compile "$LINENO"; then : 12503 ac_cv_sys_file_offset_bits=64; break 12504fi 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12506 ac_cv_sys_file_offset_bits=unknown 12507 break 12508done 12509fi 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12511$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12512case $ac_cv_sys_file_offset_bits in #( 12513 no | unknown) ;; 12514 *) 12515cat >>confdefs.h <<_ACEOF 12516#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12517_ACEOF 12518;; 12519esac 12520rm -rf conftest* 12521 if test $ac_cv_sys_file_offset_bits = unknown; then 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12523$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12524if ${ac_cv_sys_large_files+:} false; then : 12525 $as_echo_n "(cached) " >&6 12526else 12527 while :; do 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530#include <sys/types.h> 12531 /* Check that off_t can represent 2**63 - 1 correctly. 12532 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12533 since some C++ compilers masquerading as C compilers 12534 incorrectly reject 9223372036854775807. */ 12535#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12537 && LARGE_OFF_T % 2147483647 == 1) 12538 ? 1 : -1]; 12539int 12540main () 12541{ 12542 12543 ; 12544 return 0; 12545} 12546_ACEOF 12547if ac_fn_c_try_compile "$LINENO"; then : 12548 ac_cv_sys_large_files=no; break 12549fi 12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553#define _LARGE_FILES 1 12554#include <sys/types.h> 12555 /* Check that off_t can represent 2**63 - 1 correctly. 12556 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12557 since some C++ compilers masquerading as C compilers 12558 incorrectly reject 9223372036854775807. */ 12559#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12561 && LARGE_OFF_T % 2147483647 == 1) 12562 ? 1 : -1]; 12563int 12564main () 12565{ 12566 12567 ; 12568 return 0; 12569} 12570_ACEOF 12571if ac_fn_c_try_compile "$LINENO"; then : 12572 ac_cv_sys_large_files=1; break 12573fi 12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12575 ac_cv_sys_large_files=unknown 12576 break 12577done 12578fi 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12580$as_echo "$ac_cv_sys_large_files" >&6; } 12581case $ac_cv_sys_large_files in #( 12582 no | unknown) ;; 12583 *) 12584cat >>confdefs.h <<_ACEOF 12585#define _LARGE_FILES $ac_cv_sys_large_files 12586_ACEOF 12587;; 12588esac 12589rm -rf conftest* 12590 fi 12591 12592 12593fi 12594 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12596$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12597if ${ac_cv_sys_largefile_source+:} false; then : 12598 $as_echo_n "(cached) " >&6 12599else 12600 while :; do 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603#include <sys/types.h> /* for off_t */ 12604 #include <stdio.h> 12605int 12606main () 12607{ 12608int (*fp) (FILE *, off_t, int) = fseeko; 12609 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12610 ; 12611 return 0; 12612} 12613_ACEOF 12614if ac_fn_c_try_link "$LINENO"; then : 12615 ac_cv_sys_largefile_source=no; break 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12620/* end confdefs.h. */ 12621#define _LARGEFILE_SOURCE 1 12622#include <sys/types.h> /* for off_t */ 12623 #include <stdio.h> 12624int 12625main () 12626{ 12627int (*fp) (FILE *, off_t, int) = fseeko; 12628 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12629 ; 12630 return 0; 12631} 12632_ACEOF 12633if ac_fn_c_try_link "$LINENO"; then : 12634 ac_cv_sys_largefile_source=1; break 12635fi 12636rm -f core conftest.err conftest.$ac_objext \ 12637 conftest$ac_exeext conftest.$ac_ext 12638 ac_cv_sys_largefile_source=unknown 12639 break 12640done 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12643$as_echo "$ac_cv_sys_largefile_source" >&6; } 12644case $ac_cv_sys_largefile_source in #( 12645 no | unknown) ;; 12646 *) 12647cat >>confdefs.h <<_ACEOF 12648#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12649_ACEOF 12650;; 12651esac 12652rm -rf conftest* 12653 12654# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12655# in glibc 2.1.3, but that breaks too many other things. 12656# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12657if test $ac_cv_sys_largefile_source != unknown; then 12658 12659$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12660 12661fi 12662 12663ac_header_dirent=no 12664for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12665 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 12667$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12668if eval \${$as_ac_Header+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12672/* end confdefs.h. */ 12673#include <sys/types.h> 12674#include <$ac_hdr> 12675 12676int 12677main () 12678{ 12679if ((DIR *) 0) 12680return 0; 12681 ; 12682 return 0; 12683} 12684_ACEOF 12685if ac_fn_c_try_compile "$LINENO"; then : 12686 eval "$as_ac_Header=yes" 12687else 12688 eval "$as_ac_Header=no" 12689fi 12690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12691fi 12692eval ac_res=\$$as_ac_Header 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12694$as_echo "$ac_res" >&6; } 12695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12696 cat >>confdefs.h <<_ACEOF 12697#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12698_ACEOF 12699 12700ac_header_dirent=$ac_hdr; break 12701fi 12702 12703done 12704# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12705if test $ac_header_dirent = dirent.h; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12707$as_echo_n "checking for library containing opendir... " >&6; } 12708if ${ac_cv_search_opendir+:} false; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 ac_func_search_save_LIBS=$LIBS 12712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12713/* end confdefs.h. */ 12714 12715/* Override any GCC internal prototype to avoid an error. 12716 Use char because int might match the return type of a GCC 12717 builtin and then its argument prototype would still apply. */ 12718#ifdef __cplusplus 12719extern "C" 12720#endif 12721char opendir (); 12722int 12723main () 12724{ 12725return opendir (); 12726 ; 12727 return 0; 12728} 12729_ACEOF 12730for ac_lib in '' dir; do 12731 if test -z "$ac_lib"; then 12732 ac_res="none required" 12733 else 12734 ac_res=-l$ac_lib 12735 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12736 fi 12737 if ac_fn_c_try_link "$LINENO"; then : 12738 ac_cv_search_opendir=$ac_res 12739fi 12740rm -f core conftest.err conftest.$ac_objext \ 12741 conftest$ac_exeext 12742 if ${ac_cv_search_opendir+:} false; then : 12743 break 12744fi 12745done 12746if ${ac_cv_search_opendir+:} false; then : 12747 12748else 12749 ac_cv_search_opendir=no 12750fi 12751rm conftest.$ac_ext 12752LIBS=$ac_func_search_save_LIBS 12753fi 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12755$as_echo "$ac_cv_search_opendir" >&6; } 12756ac_res=$ac_cv_search_opendir 12757if test "$ac_res" != no; then : 12758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12759 12760fi 12761 12762else 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12764$as_echo_n "checking for library containing opendir... " >&6; } 12765if ${ac_cv_search_opendir+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767else 12768 ac_func_search_save_LIBS=$LIBS 12769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12770/* end confdefs.h. */ 12771 12772/* Override any GCC internal prototype to avoid an error. 12773 Use char because int might match the return type of a GCC 12774 builtin and then its argument prototype would still apply. */ 12775#ifdef __cplusplus 12776extern "C" 12777#endif 12778char opendir (); 12779int 12780main () 12781{ 12782return opendir (); 12783 ; 12784 return 0; 12785} 12786_ACEOF 12787for ac_lib in '' x; do 12788 if test -z "$ac_lib"; then 12789 ac_res="none required" 12790 else 12791 ac_res=-l$ac_lib 12792 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12793 fi 12794 if ac_fn_c_try_link "$LINENO"; then : 12795 ac_cv_search_opendir=$ac_res 12796fi 12797rm -f core conftest.err conftest.$ac_objext \ 12798 conftest$ac_exeext 12799 if ${ac_cv_search_opendir+:} false; then : 12800 break 12801fi 12802done 12803if ${ac_cv_search_opendir+:} false; then : 12804 12805else 12806 ac_cv_search_opendir=no 12807fi 12808rm conftest.$ac_ext 12809LIBS=$ac_func_search_save_LIBS 12810fi 12811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12812$as_echo "$ac_cv_search_opendir" >&6; } 12813ac_res=$ac_cv_search_opendir 12814if test "$ac_res" != no; then : 12815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12816 12817fi 12818 12819fi 12820 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12822$as_echo_n "checking for ANSI C header files... " >&6; } 12823if ${ac_cv_header_stdc+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825else 12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828#include <stdlib.h> 12829#include <stdarg.h> 12830#include <string.h> 12831#include <float.h> 12832 12833int 12834main () 12835{ 12836 12837 ; 12838 return 0; 12839} 12840_ACEOF 12841if ac_fn_c_try_compile "$LINENO"; then : 12842 ac_cv_header_stdc=yes 12843else 12844 ac_cv_header_stdc=no 12845fi 12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12847 12848if test $ac_cv_header_stdc = yes; then 12849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852#include <string.h> 12853 12854_ACEOF 12855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12856 $EGREP "memchr" >/dev/null 2>&1; then : 12857 12858else 12859 ac_cv_header_stdc=no 12860fi 12861rm -f conftest* 12862 12863fi 12864 12865if test $ac_cv_header_stdc = yes; then 12866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869#include <stdlib.h> 12870 12871_ACEOF 12872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12873 $EGREP "free" >/dev/null 2>&1; then : 12874 12875else 12876 ac_cv_header_stdc=no 12877fi 12878rm -f conftest* 12879 12880fi 12881 12882if test $ac_cv_header_stdc = yes; then 12883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12884 if test "$cross_compiling" = yes; then : 12885 : 12886else 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889#include <ctype.h> 12890#include <stdlib.h> 12891#if ((' ' & 0x0FF) == 0x020) 12892# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12893# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12894#else 12895# define ISLOWER(c) \ 12896 (('a' <= (c) && (c) <= 'i') \ 12897 || ('j' <= (c) && (c) <= 'r') \ 12898 || ('s' <= (c) && (c) <= 'z')) 12899# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12900#endif 12901 12902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12903int 12904main () 12905{ 12906 int i; 12907 for (i = 0; i < 256; i++) 12908 if (XOR (islower (i), ISLOWER (i)) 12909 || toupper (i) != TOUPPER (i)) 12910 return 2; 12911 return 0; 12912} 12913_ACEOF 12914if ac_fn_c_try_run "$LINENO"; then : 12915 12916else 12917 ac_cv_header_stdc=no 12918fi 12919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12920 conftest.$ac_objext conftest.beam conftest.$ac_ext 12921fi 12922 12923fi 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12926$as_echo "$ac_cv_header_stdc" >&6; } 12927if test $ac_cv_header_stdc = yes; then 12928 12929$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12930 12931fi 12932 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 12934$as_echo_n "checking whether closedir returns void... " >&6; } 12935if ${ac_cv_func_closedir_void+:} false; then : 12936 $as_echo_n "(cached) " >&6 12937else 12938 if test "$cross_compiling" = yes; then : 12939 ac_cv_func_closedir_void=yes 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943$ac_includes_default 12944#include <$ac_header_dirent> 12945#ifndef __cplusplus 12946int closedir (); 12947#endif 12948 12949int 12950main () 12951{ 12952return closedir (opendir (".")) != 0; 12953 ; 12954 return 0; 12955} 12956_ACEOF 12957if ac_fn_c_try_run "$LINENO"; then : 12958 ac_cv_func_closedir_void=no 12959else 12960 ac_cv_func_closedir_void=yes 12961fi 12962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12963 conftest.$ac_objext conftest.beam conftest.$ac_ext 12964fi 12965 12966fi 12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 12968$as_echo "$ac_cv_func_closedir_void" >&6; } 12969if test $ac_cv_func_closedir_void = yes; then 12970 12971$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 12972 12973fi 12974 12975for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h 12976do : 12977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12979if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12980 cat >>confdefs.h <<_ACEOF 12981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12982_ACEOF 12983 12984fi 12985 12986done 12987 12988for ac_func in putenv strcasecmp strtol strstr 12989do : 12990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12992if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12993 cat >>confdefs.h <<_ACEOF 12994#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12995_ACEOF 12996 12997fi 12998done 12999 13000for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr 13001do : 13002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13004if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13005 cat >>confdefs.h <<_ACEOF 13006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13007_ACEOF 13008 13009fi 13010done 13011 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13013$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13014if ${ac_cv_c_const+:} false; then : 13015 $as_echo_n "(cached) " >&6 13016else 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019 13020int 13021main () 13022{ 13023 13024#ifndef __cplusplus 13025 /* Ultrix mips cc rejects this sort of thing. */ 13026 typedef int charset[2]; 13027 const charset cs = { 0, 0 }; 13028 /* SunOS 4.1.1 cc rejects this. */ 13029 char const *const *pcpcc; 13030 char **ppc; 13031 /* NEC SVR4.0.2 mips cc rejects this. */ 13032 struct point {int x, y;}; 13033 static struct point const zero = {0,0}; 13034 /* AIX XL C 1.02.0.0 rejects this. 13035 It does not let you subtract one const X* pointer from another in 13036 an arm of an if-expression whose if-part is not a constant 13037 expression */ 13038 const char *g = "string"; 13039 pcpcc = &g + (g ? g-g : 0); 13040 /* HPUX 7.0 cc rejects these. */ 13041 ++pcpcc; 13042 ppc = (char**) pcpcc; 13043 pcpcc = (char const *const *) ppc; 13044 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13045 char tx; 13046 char *t = &tx; 13047 char const *s = 0 ? (char *) 0 : (char const *) 0; 13048 13049 *t++ = 0; 13050 if (s) return 0; 13051 } 13052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13053 int x[] = {25, 17}; 13054 const int *foo = &x[0]; 13055 ++foo; 13056 } 13057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13058 typedef const int *iptr; 13059 iptr p = 0; 13060 ++p; 13061 } 13062 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13064 struct s { int j; const int *ap[3]; } bx; 13065 struct s *b = &bx; b->j = 5; 13066 } 13067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13068 const int foo = 10; 13069 if (!foo) return 0; 13070 } 13071 return !cs[0] && !zero.x; 13072#endif 13073 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078if ac_fn_c_try_compile "$LINENO"; then : 13079 ac_cv_c_const=yes 13080else 13081 ac_cv_c_const=no 13082fi 13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13084fi 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13086$as_echo "$ac_cv_c_const" >&6; } 13087if test $ac_cv_c_const = no; then 13088 13089$as_echo "#define const /**/" >>confdefs.h 13090 13091fi 13092 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13094$as_echo_n "checking for inline... " >&6; } 13095if ${ac_cv_c_inline+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 ac_cv_c_inline=no 13099for ac_kw in inline __inline__ __inline; do 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102#ifndef __cplusplus 13103typedef int foo_t; 13104static $ac_kw foo_t static_foo () {return 0; } 13105$ac_kw foo_t foo () {return 0; } 13106#endif 13107 13108_ACEOF 13109if ac_fn_c_try_compile "$LINENO"; then : 13110 ac_cv_c_inline=$ac_kw 13111fi 13112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13113 test "$ac_cv_c_inline" != no && break 13114done 13115 13116fi 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13118$as_echo "$ac_cv_c_inline" >&6; } 13119 13120case $ac_cv_c_inline in 13121 inline | yes) ;; 13122 *) 13123 case $ac_cv_c_inline in 13124 no) ac_val=;; 13125 *) ac_val=$ac_cv_c_inline;; 13126 esac 13127 cat >>confdefs.h <<_ACEOF 13128#ifndef __cplusplus 13129#define inline $ac_val 13130#endif 13131_ACEOF 13132 ;; 13133esac 13134 13135ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13136if test "x$ac_cv_type_size_t" = xyes; then : 13137 13138else 13139 13140cat >>confdefs.h <<_ACEOF 13141#define size_t unsigned int 13142_ACEOF 13143 13144fi 13145 13146ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13147case $ac_cv_c_int64_t in #( 13148 no|yes) ;; #( 13149 *) 13150 13151cat >>confdefs.h <<_ACEOF 13152#define int64_t $ac_cv_c_int64_t 13153_ACEOF 13154;; 13155esac 13156 13157ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13158case $ac_cv_c_uint64_t in #( 13159 no|yes) ;; #( 13160 *) 13161 13162$as_echo "#define _UINT64_T 1" >>confdefs.h 13163 13164 13165cat >>confdefs.h <<_ACEOF 13166#define uint64_t $ac_cv_c_uint64_t 13167_ACEOF 13168;; 13169 esac 13170 13171case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #( 13172 *':no:'*) : 13173 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #( 13174 *) : 13175 ;; 13176esac 13177ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 13178if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 13179 13180cat >>confdefs.h <<_ACEOF 13181#define HAVE_STRUCT_STAT_ST_MTIM 1 13182_ACEOF 13183 13184 13185fi 13186 13187 13188if test "x$host_alias" != x && test "x$build_alias" = x; then : 13189 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5 13190fi 13191eval kpse_build_alias=\${build_alias-$build} 13192 13193 13194## texk/xdvik/ac/xdvik.ac: configure.ac fragment for the TeX Live subdirectory texk/xdvik/ 13195## configure options for xdvik 13196 13197# Check whether --with-xdvi-x-toolkit was given. 13198if test "${with_xdvi_x_toolkit+set}" = set; then : 13199 withval=$with_xdvi_x_toolkit; 13200fi 13201 13202 13203 13204# Reduce compiler warnings, there are just too many. 13205WARNING_CFLAGS=`echo $WARNING_CFLAGS | sed -e 's/ -Wcast-qual/ /' -e 's/ -Wwrite-strings/ /'` 13206 13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 13208$as_echo_n "checking for library containing pow... " >&6; } 13209if ${ac_cv_search_pow+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211else 13212 ac_func_search_save_LIBS=$LIBS 13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215 13216/* Override any GCC internal prototype to avoid an error. 13217 Use char because int might match the return type of a GCC 13218 builtin and then its argument prototype would still apply. */ 13219#ifdef __cplusplus 13220extern "C" 13221#endif 13222char pow (); 13223int 13224main () 13225{ 13226return pow (); 13227 ; 13228 return 0; 13229} 13230_ACEOF 13231for ac_lib in '' m; do 13232 if test -z "$ac_lib"; then 13233 ac_res="none required" 13234 else 13235 ac_res=-l$ac_lib 13236 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13237 fi 13238 if ac_fn_c_try_link "$LINENO"; then : 13239 ac_cv_search_pow=$ac_res 13240fi 13241rm -f core conftest.err conftest.$ac_objext \ 13242 conftest$ac_exeext 13243 if ${ac_cv_search_pow+:} false; then : 13244 break 13245fi 13246done 13247if ${ac_cv_search_pow+:} false; then : 13248 13249else 13250 ac_cv_search_pow=no 13251fi 13252rm conftest.$ac_ext 13253LIBS=$ac_func_search_save_LIBS 13254fi 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 13256$as_echo "$ac_cv_search_pow" >&6; } 13257ac_res=$ac_cv_search_pow 13258if test "$ac_res" != no; then : 13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13260 13261fi 13262 13263 13264 13265# Check whether --with-ps was given. 13266if test "${with_ps+set}" = set; then : 13267 withval=$with_ps; 13268fi 13269 13270case $with_ps in #( 13271 "" | yes | gs) : 13272 PS_DEF=-DPS_GS ;; #( 13273 no) : 13274 PS_DEF= ;; #( 13275 dps) : 13276 PS_DEF=-DPS_DPS ;; #( 13277 news) : 13278 PS_DEF=-DPS_NEWS ;; #( 13279 *) : 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown--with-ps argument \`$with_ps'; using gs." >&5 13281$as_echo "$as_me: WARNING: unknown--with-ps argument \`$with_ps'; using gs." >&2;} 13282 PS_DEF=-DPS_GS ;; 13283esac 13284 13285 13286 13287$as_echo "#define GREY 1" >>confdefs.h 13288 13289 13290 13291$as_echo "#define COLOR 1" >>confdefs.h 13292 13293 13294 13295$as_echo "#define FREETYPE 1" >>confdefs.h 13296 13297 13298 13299# Check whether --enable-a4 was given. 13300if test "${enable_a4+set}" = set; then : 13301 enableval=$enable_a4; 13302fi 13303 13304if test "x$enable_a4" = xno; then : 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabled a4/cm, using letter/in instead" >&5 13306$as_echo "$as_me: Disabled a4/cm, using letter/in instead" >&6;} 13307else 13308 13309$as_echo "#define A4 1" >>confdefs.h 13310 13311fi 13312 13313 13314$as_echo "#define PTEX 1" >>confdefs.h 13315 13316if pkg-config fontconfig --modversion > /dev/null 2>&1; then 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding fontconfig-\`pkg-config fontconfig --modversion\` library" >&5 13318$as_echo "adding fontconfig-\`pkg-config fontconfig --modversion\` library" >&6; } 13319 FONTCONFIGCPPFLAGS="`pkg-config fontconfig --cflags`" 13320 LIBS="`pkg-config fontconfig --libs` $LIBS" 13321 13322 13323$as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h 13324 13325fi 13326 13327ac_config_headers="$ac_config_headers c-auto.h:c-auto.in" 13328 13329 13330ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13331if test "x$ac_cv_type_pid_t" = xyes; then : 13332 13333else 13334 13335cat >>confdefs.h <<_ACEOF 13336#define pid_t int 13337_ACEOF 13338 13339fi 13340 13341for ac_header in vfork.h 13342do : 13343 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13344if test "x$ac_cv_header_vfork_h" = xyes; then : 13345 cat >>confdefs.h <<_ACEOF 13346#define HAVE_VFORK_H 1 13347_ACEOF 13348 13349fi 13350 13351done 13352 13353for ac_func in fork vfork 13354do : 13355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13356ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13357if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13358 cat >>confdefs.h <<_ACEOF 13359#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13360_ACEOF 13361 13362fi 13363done 13364 13365if test "x$ac_cv_func_fork" = xyes; then 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13367$as_echo_n "checking for working fork... " >&6; } 13368if ${ac_cv_func_fork_works+:} false; then : 13369 $as_echo_n "(cached) " >&6 13370else 13371 if test "$cross_compiling" = yes; then : 13372 ac_cv_func_fork_works=cross 13373else 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376$ac_includes_default 13377int 13378main () 13379{ 13380 13381 /* By Ruediger Kuhlmann. */ 13382 return fork () < 0; 13383 13384 ; 13385 return 0; 13386} 13387_ACEOF 13388if ac_fn_c_try_run "$LINENO"; then : 13389 ac_cv_func_fork_works=yes 13390else 13391 ac_cv_func_fork_works=no 13392fi 13393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13394 conftest.$ac_objext conftest.beam conftest.$ac_ext 13395fi 13396 13397fi 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13399$as_echo "$ac_cv_func_fork_works" >&6; } 13400 13401else 13402 ac_cv_func_fork_works=$ac_cv_func_fork 13403fi 13404if test "x$ac_cv_func_fork_works" = xcross; then 13405 case $host in 13406 *-*-amigaos* | *-*-msdosdjgpp*) 13407 # Override, as these systems have only a dummy fork() stub 13408 ac_cv_func_fork_works=no 13409 ;; 13410 *) 13411 ac_cv_func_fork_works=yes 13412 ;; 13413 esac 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13415$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13416fi 13417ac_cv_func_vfork_works=$ac_cv_func_vfork 13418if test "x$ac_cv_func_vfork" = xyes; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 13420$as_echo_n "checking for working vfork... " >&6; } 13421if ${ac_cv_func_vfork_works+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 if test "$cross_compiling" = yes; then : 13425 ac_cv_func_vfork_works=cross 13426else 13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429/* Thanks to Paul Eggert for this test. */ 13430$ac_includes_default 13431#include <sys/wait.h> 13432#ifdef HAVE_VFORK_H 13433# include <vfork.h> 13434#endif 13435/* On some sparc systems, changes by the child to local and incoming 13436 argument registers are propagated back to the parent. The compiler 13437 is told about this with #include <vfork.h>, but some compilers 13438 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 13439 static variable whose address is put into a register that is 13440 clobbered by the vfork. */ 13441static void 13442#ifdef __cplusplus 13443sparc_address_test (int arg) 13444# else 13445sparc_address_test (arg) int arg; 13446#endif 13447{ 13448 static pid_t child; 13449 if (!child) { 13450 child = vfork (); 13451 if (child < 0) { 13452 perror ("vfork"); 13453 _exit(2); 13454 } 13455 if (!child) { 13456 arg = getpid(); 13457 write(-1, "", 0); 13458 _exit (arg); 13459 } 13460 } 13461} 13462 13463int 13464main () 13465{ 13466 pid_t parent = getpid (); 13467 pid_t child; 13468 13469 sparc_address_test (0); 13470 13471 child = vfork (); 13472 13473 if (child == 0) { 13474 /* Here is another test for sparc vfork register problems. This 13475 test uses lots of local variables, at least as many local 13476 variables as main has allocated so far including compiler 13477 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13478 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13479 reuse the register of parent for one of the local variables, 13480 since it will think that parent can't possibly be used any more 13481 in this routine. Assigning to the local variable will thus 13482 munge parent in the parent process. */ 13483 pid_t 13484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13486 /* Convince the compiler that p..p7 are live; otherwise, it might 13487 use the same hardware register for all 8 local variables. */ 13488 if (p != p1 || p != p2 || p != p3 || p != p4 13489 || p != p5 || p != p6 || p != p7) 13490 _exit(1); 13491 13492 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13493 from child file descriptors. If the child closes a descriptor 13494 before it execs or exits, this munges the parent's descriptor 13495 as well. Test for this by closing stdout in the child. */ 13496 _exit(close(fileno(stdout)) != 0); 13497 } else { 13498 int status; 13499 struct stat st; 13500 13501 while (wait(&status) != child) 13502 ; 13503 return ( 13504 /* Was there some problem with vforking? */ 13505 child < 0 13506 13507 /* Did the child fail? (This shouldn't happen.) */ 13508 || status 13509 13510 /* Did the vfork/compiler bug occur? */ 13511 || parent != getpid() 13512 13513 /* Did the file descriptor bug occur? */ 13514 || fstat(fileno(stdout), &st) != 0 13515 ); 13516 } 13517} 13518_ACEOF 13519if ac_fn_c_try_run "$LINENO"; then : 13520 ac_cv_func_vfork_works=yes 13521else 13522 ac_cv_func_vfork_works=no 13523fi 13524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13525 conftest.$ac_objext conftest.beam conftest.$ac_ext 13526fi 13527 13528fi 13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 13530$as_echo "$ac_cv_func_vfork_works" >&6; } 13531 13532fi; 13533if test "x$ac_cv_func_fork_works" = xcross; then 13534 ac_cv_func_vfork_works=$ac_cv_func_vfork 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13536$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13537fi 13538 13539if test "x$ac_cv_func_vfork_works" = xyes; then 13540 13541$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 13542 13543else 13544 13545$as_echo "#define vfork fork" >>confdefs.h 13546 13547fi 13548if test "x$ac_cv_func_fork_works" = xyes; then 13549 13550$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 13551 13552fi 13553 13554for ac_func in vprintf 13555do : 13556 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 13557if test "x$ac_cv_func_vprintf" = xyes; then : 13558 cat >>confdefs.h <<_ACEOF 13559#define HAVE_VPRINTF 1 13560_ACEOF 13561 13562ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 13563if test "x$ac_cv_func__doprnt" = xyes; then : 13564 13565$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 13566 13567fi 13568 13569fi 13570done 13571 13572 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working implementation of (v)snprintf()" >&5 13574$as_echo_n "checking for a working implementation of (v)snprintf()... " >&6; } 13575if ${xdvi_cv_func_good_vsnprintf+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 if test "$cross_compiling" = yes; then : 13579 xdvi_cv_func_good_vsnprintf=no # safe value for cross-compiling 13580else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582/* end confdefs.h. */ 13583 13584#ifdef IRIX 13585#define _XOPEN_SOURCE 500 13586#endif 13587#include <stdio.h> 13588int 13589main () 13590{ 13591char s[2]; 13592 int retval = snprintf(s, 2, "test"); 13593 if (retval > -1 && retval != 4) /* neither negative nor desired size, not OK */ 13594 return 1; 13595 ; 13596 return 0; 13597} 13598_ACEOF 13599if ac_fn_c_try_run "$LINENO"; then : 13600 xdvi_cv_func_good_vsnprintf=yes 13601else 13602 xdvi_cv_func_good_vsnprintf=no 13603fi 13604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13605 conftest.$ac_objext conftest.beam conftest.$ac_ext 13606fi 13607 13608fi 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_good_vsnprintf" >&5 13610$as_echo "$xdvi_cv_func_good_vsnprintf" >&6; } 13611if test "x$xdvi_cv_func_good_vsnprintf" = xyes; then 13612 13613$as_echo "#define HAVE_GOOD_VSNPRINTF 1" >>confdefs.h 13614 13615fi 13616 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memicmp" >&5 13618$as_echo_n "checking for memicmp... " >&6; } 13619if ${xdvi_cv_memicmp+:} false; then : 13620 $as_echo_n "(cached) " >&6 13621else 13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13623/* end confdefs.h. */ 13624#include <string.h> 13625int 13626main () 13627{ 13628(void)memicmp((char *)NULL, (char *)NULL, 0); 13629 ; 13630 return 0; 13631} 13632_ACEOF 13633if ac_fn_c_try_link "$LINENO"; then : 13634 xdvi_cv_memicmp=yes 13635else 13636 xdvi_cv_memicmp=no 13637fi 13638rm -f core conftest.err conftest.$ac_objext \ 13639 conftest$ac_exeext conftest.$ac_ext 13640fi 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_memicmp" >&5 13642$as_echo "$xdvi_cv_memicmp" >&6; } 13643if test "x$xdvi_cv_memicmp" = xyes; then 13644 13645$as_echo "#define HAVE_MEMICMP 1" >>confdefs.h 13646 13647fi 13648 13649# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13650# for constant arguments. Useless! 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 13652$as_echo_n "checking for working alloca.h... " >&6; } 13653if ${ac_cv_working_alloca_h+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13657/* end confdefs.h. */ 13658#include <alloca.h> 13659int 13660main () 13661{ 13662char *p = (char *) alloca (2 * sizeof (int)); 13663 if (p) return 0; 13664 ; 13665 return 0; 13666} 13667_ACEOF 13668if ac_fn_c_try_link "$LINENO"; then : 13669 ac_cv_working_alloca_h=yes 13670else 13671 ac_cv_working_alloca_h=no 13672fi 13673rm -f core conftest.err conftest.$ac_objext \ 13674 conftest$ac_exeext conftest.$ac_ext 13675fi 13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 13677$as_echo "$ac_cv_working_alloca_h" >&6; } 13678if test $ac_cv_working_alloca_h = yes; then 13679 13680$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 13681 13682fi 13683 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 13685$as_echo_n "checking for alloca... " >&6; } 13686if ${ac_cv_func_alloca_works+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691#ifdef __GNUC__ 13692# define alloca __builtin_alloca 13693#else 13694# ifdef _MSC_VER 13695# include <malloc.h> 13696# define alloca _alloca 13697# else 13698# ifdef HAVE_ALLOCA_H 13699# include <alloca.h> 13700# else 13701# ifdef _AIX 13702 #pragma alloca 13703# else 13704# ifndef alloca /* predefined by HP cc +Olibcalls */ 13705void *alloca (size_t); 13706# endif 13707# endif 13708# endif 13709# endif 13710#endif 13711 13712int 13713main () 13714{ 13715char *p = (char *) alloca (1); 13716 if (p) return 0; 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_link "$LINENO"; then : 13722 ac_cv_func_alloca_works=yes 13723else 13724 ac_cv_func_alloca_works=no 13725fi 13726rm -f core conftest.err conftest.$ac_objext \ 13727 conftest$ac_exeext conftest.$ac_ext 13728fi 13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 13730$as_echo "$ac_cv_func_alloca_works" >&6; } 13731 13732if test $ac_cv_func_alloca_works = yes; then 13733 13734$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 13735 13736else 13737 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 13738# that cause trouble. Some versions do not even contain alloca or 13739# contain a buggy version. If you still want to use their alloca, 13740# use ar to extract alloca.o from them instead of compiling alloca.c. 13741 13742ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 13743 13744$as_echo "#define C_ALLOCA 1" >>confdefs.h 13745 13746 13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 13748$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 13749if ${ac_cv_os_cray+:} false; then : 13750 $as_echo_n "(cached) " >&6 13751else 13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754#if defined CRAY && ! defined CRAY2 13755webecray 13756#else 13757wenotbecray 13758#endif 13759 13760_ACEOF 13761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13762 $EGREP "webecray" >/dev/null 2>&1; then : 13763 ac_cv_os_cray=yes 13764else 13765 ac_cv_os_cray=no 13766fi 13767rm -f conftest* 13768 13769fi 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 13771$as_echo "$ac_cv_os_cray" >&6; } 13772if test $ac_cv_os_cray = yes; then 13773 for ac_func in _getb67 GETB67 getb67; do 13774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13776if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13777 13778cat >>confdefs.h <<_ACEOF 13779#define CRAY_STACKSEG_END $ac_func 13780_ACEOF 13781 13782 break 13783fi 13784 13785 done 13786fi 13787 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 13789$as_echo_n "checking stack direction for C alloca... " >&6; } 13790if ${ac_cv_c_stack_direction+:} false; then : 13791 $as_echo_n "(cached) " >&6 13792else 13793 if test "$cross_compiling" = yes; then : 13794 ac_cv_c_stack_direction=0 13795else 13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13797/* end confdefs.h. */ 13798$ac_includes_default 13799int 13800find_stack_direction (int *addr, int depth) 13801{ 13802 int dir, dummy = 0; 13803 if (! addr) 13804 addr = &dummy; 13805 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 13806 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 13807 return dir + dummy; 13808} 13809 13810int 13811main (int argc, char **argv) 13812{ 13813 return find_stack_direction (0, argc + !argv + 20) < 0; 13814} 13815_ACEOF 13816if ac_fn_c_try_run "$LINENO"; then : 13817 ac_cv_c_stack_direction=1 13818else 13819 ac_cv_c_stack_direction=-1 13820fi 13821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13822 conftest.$ac_objext conftest.beam conftest.$ac_ext 13823fi 13824 13825fi 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 13827$as_echo "$ac_cv_c_stack_direction" >&6; } 13828cat >>confdefs.h <<_ACEOF 13829#define STACK_DIRECTION $ac_cv_c_stack_direction 13830_ACEOF 13831 13832 13833fi 13834 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 13836$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 13837if ${ac_cv_c_stringize+:} false; then : 13838 $as_echo_n "(cached) " >&6 13839else 13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13841/* end confdefs.h. */ 13842#define x(y) #y 13843 13844char *s = x(teststring); 13845_ACEOF 13846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13847 $EGREP "#teststring" >/dev/null 2>&1; then : 13848 ac_cv_c_stringize=no 13849else 13850 ac_cv_c_stringize=yes 13851fi 13852rm -f conftest* 13853 13854fi 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 13856$as_echo "$ac_cv_c_stringize" >&6; } 13857if test $ac_cv_c_stringize = yes; then 13858 13859$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 13860 13861fi 13862 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 13864$as_echo_n "checking for working memcmp... " >&6; } 13865if ${ac_cv_func_memcmp_working+:} false; then : 13866 $as_echo_n "(cached) " >&6 13867else 13868 if test "$cross_compiling" = yes; then : 13869 ac_cv_func_memcmp_working=no 13870else 13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13872/* end confdefs.h. */ 13873$ac_includes_default 13874int 13875main () 13876{ 13877 13878 /* Some versions of memcmp are not 8-bit clean. */ 13879 char c0 = '\100', c1 = '\200', c2 = '\201'; 13880 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 13881 return 1; 13882 13883 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 13884 or more and with at least one buffer not starting on a 4-byte boundary. 13885 William Lewis provided this test program. */ 13886 { 13887 char foo[21]; 13888 char bar[21]; 13889 int i; 13890 for (i = 0; i < 4; i++) 13891 { 13892 char *a = foo + i; 13893 char *b = bar + i; 13894 strcpy (a, "--------01111111"); 13895 strcpy (b, "--------10000000"); 13896 if (memcmp (a, b, 16) >= 0) 13897 return 1; 13898 } 13899 return 0; 13900 } 13901 13902 ; 13903 return 0; 13904} 13905_ACEOF 13906if ac_fn_c_try_run "$LINENO"; then : 13907 ac_cv_func_memcmp_working=yes 13908else 13909 ac_cv_func_memcmp_working=no 13910fi 13911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13912 conftest.$ac_objext conftest.beam conftest.$ac_ext 13913fi 13914 13915fi 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 13917$as_echo "$ac_cv_func_memcmp_working" >&6; } 13918test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 13919 *" memcmp.$ac_objext "* ) ;; 13920 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13921 ;; 13922esac 13923 13924 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13926$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13927if ${ac_cv_header_sys_wait_h+:} false; then : 13928 $as_echo_n "(cached) " >&6 13929else 13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932#include <sys/types.h> 13933#include <sys/wait.h> 13934#ifndef WEXITSTATUS 13935# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13936#endif 13937#ifndef WIFEXITED 13938# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13939#endif 13940 13941int 13942main () 13943{ 13944 int s; 13945 wait (&s); 13946 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13947 ; 13948 return 0; 13949} 13950_ACEOF 13951if ac_fn_c_try_compile "$LINENO"; then : 13952 ac_cv_header_sys_wait_h=yes 13953else 13954 ac_cv_header_sys_wait_h=no 13955fi 13956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13957fi 13958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13959$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13960if test $ac_cv_header_sys_wait_h = yes; then 13961 13962$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13963 13964fi 13965 13966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13967$as_echo_n "checking return type of signal handlers... " >&6; } 13968if ${ac_cv_type_signal+:} false; then : 13969 $as_echo_n "(cached) " >&6 13970else 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973#include <sys/types.h> 13974#include <signal.h> 13975 13976int 13977main () 13978{ 13979return *(signal (0, 0)) (0) == 1; 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 ac_cv_type_signal=int 13986else 13987 ac_cv_type_signal=void 13988fi 13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13992$as_echo "$ac_cv_type_signal" >&6; } 13993 13994cat >>confdefs.h <<_ACEOF 13995#define RETSIGTYPE $ac_cv_type_signal 13996_ACEOF 13997 13998 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14000$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14001if ${ac_cv_c_bigendian+:} false; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 ac_cv_c_bigendian=unknown 14005 # See if we're dealing with a universal compiler. 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007/* end confdefs.h. */ 14008#ifndef __APPLE_CC__ 14009 not a universal capable compiler 14010 #endif 14011 typedef int dummy; 14012 14013_ACEOF 14014if ac_fn_c_try_compile "$LINENO"; then : 14015 14016 # Check for potential -arch flags. It is not universal unless 14017 # there are at least two -arch flags with different values. 14018 ac_arch= 14019 ac_prev= 14020 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14021 if test -n "$ac_prev"; then 14022 case $ac_word in 14023 i?86 | x86_64 | ppc | ppc64) 14024 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14025 ac_arch=$ac_word 14026 else 14027 ac_cv_c_bigendian=universal 14028 break 14029 fi 14030 ;; 14031 esac 14032 ac_prev= 14033 elif test "x$ac_word" = "x-arch"; then 14034 ac_prev=arch 14035 fi 14036 done 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14039 if test $ac_cv_c_bigendian = unknown; then 14040 # See if sys/param.h defines the BYTE_ORDER macro. 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043#include <sys/types.h> 14044 #include <sys/param.h> 14045 14046int 14047main () 14048{ 14049#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14050 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14051 && LITTLE_ENDIAN) 14052 bogus endian macros 14053 #endif 14054 14055 ; 14056 return 0; 14057} 14058_ACEOF 14059if ac_fn_c_try_compile "$LINENO"; then : 14060 # It does; now see whether it defined to BIG_ENDIAN or not. 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063#include <sys/types.h> 14064 #include <sys/param.h> 14065 14066int 14067main () 14068{ 14069#if BYTE_ORDER != BIG_ENDIAN 14070 not big endian 14071 #endif 14072 14073 ; 14074 return 0; 14075} 14076_ACEOF 14077if ac_fn_c_try_compile "$LINENO"; then : 14078 ac_cv_c_bigendian=yes 14079else 14080 ac_cv_c_bigendian=no 14081fi 14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14083fi 14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14085 fi 14086 if test $ac_cv_c_bigendian = unknown; then 14087 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14089/* end confdefs.h. */ 14090#include <limits.h> 14091 14092int 14093main () 14094{ 14095#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14096 bogus endian macros 14097 #endif 14098 14099 ; 14100 return 0; 14101} 14102_ACEOF 14103if ac_fn_c_try_compile "$LINENO"; then : 14104 # It does; now see whether it defined to _BIG_ENDIAN or not. 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107#include <limits.h> 14108 14109int 14110main () 14111{ 14112#ifndef _BIG_ENDIAN 14113 not big endian 14114 #endif 14115 14116 ; 14117 return 0; 14118} 14119_ACEOF 14120if ac_fn_c_try_compile "$LINENO"; then : 14121 ac_cv_c_bigendian=yes 14122else 14123 ac_cv_c_bigendian=no 14124fi 14125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14128 fi 14129 if test $ac_cv_c_bigendian = unknown; then 14130 # Compile a test program. 14131 if test "$cross_compiling" = yes; then : 14132 # Try to guess by grepping values from an object file. 14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135short int ascii_mm[] = 14136 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14137 short int ascii_ii[] = 14138 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14139 int use_ascii (int i) { 14140 return ascii_mm[i] + ascii_ii[i]; 14141 } 14142 short int ebcdic_ii[] = 14143 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14144 short int ebcdic_mm[] = 14145 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14146 int use_ebcdic (int i) { 14147 return ebcdic_mm[i] + ebcdic_ii[i]; 14148 } 14149 extern int foo; 14150 14151int 14152main () 14153{ 14154return use_ascii (foo) == use_ebcdic (foo); 14155 ; 14156 return 0; 14157} 14158_ACEOF 14159if ac_fn_c_try_compile "$LINENO"; then : 14160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14161 ac_cv_c_bigendian=yes 14162 fi 14163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14164 if test "$ac_cv_c_bigendian" = unknown; then 14165 ac_cv_c_bigendian=no 14166 else 14167 # finding both strings is unlikely to happen, but who knows? 14168 ac_cv_c_bigendian=unknown 14169 fi 14170 fi 14171fi 14172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14173else 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176$ac_includes_default 14177int 14178main () 14179{ 14180 14181 /* Are we little or big endian? From Harbison&Steele. */ 14182 union 14183 { 14184 long int l; 14185 char c[sizeof (long int)]; 14186 } u; 14187 u.l = 1; 14188 return u.c[sizeof (long int) - 1] == 1; 14189 14190 ; 14191 return 0; 14192} 14193_ACEOF 14194if ac_fn_c_try_run "$LINENO"; then : 14195 ac_cv_c_bigendian=no 14196else 14197 ac_cv_c_bigendian=yes 14198fi 14199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14200 conftest.$ac_objext conftest.beam conftest.$ac_ext 14201fi 14202 14203 fi 14204fi 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14206$as_echo "$ac_cv_c_bigendian" >&6; } 14207 case $ac_cv_c_bigendian in #( 14208 yes) 14209 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14210;; #( 14211 no) 14212 ;; #( 14213 universal) 14214 14215$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14216 14217 ;; #( 14218 *) 14219 as_fn_error $? "unknown endianness 14220 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14221 esac 14222 14223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 14224$as_echo_n "checking for X... " >&6; } 14225 14226 14227# Check whether --with-x was given. 14228if test "${with_x+set}" = set; then : 14229 withval=$with_x; 14230fi 14231 14232# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 14233if test "x$with_x" = xno; then 14234 # The user explicitly disabled X. 14235 have_x=disabled 14236else 14237 case $x_includes,$x_libraries in #( 14238 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 14239 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 # One or both of the vars are not set, and there is no cached value. 14243ac_x_includes=no ac_x_libraries=no 14244rm -f -r conftest.dir 14245if mkdir conftest.dir; then 14246 cd conftest.dir 14247 cat >Imakefile <<'_ACEOF' 14248incroot: 14249 @echo incroot='${INCROOT}' 14250usrlibdir: 14251 @echo usrlibdir='${USRLIBDIR}' 14252libdir: 14253 @echo libdir='${LIBDIR}' 14254_ACEOF 14255 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 14256 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 14257 for ac_var in incroot usrlibdir libdir; do 14258 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 14259 done 14260 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 14261 for ac_extension in a so sl dylib la dll; do 14262 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 14263 test -f "$ac_im_libdir/libX11.$ac_extension"; then 14264 ac_im_usrlibdir=$ac_im_libdir; break 14265 fi 14266 done 14267 # Screen out bogus values from the imake configuration. They are 14268 # bogus both because they are the default anyway, and because 14269 # using them would break gcc on systems where it needs fixed includes. 14270 case $ac_im_incroot in 14271 /usr/include) ac_x_includes= ;; 14272 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 14273 esac 14274 case $ac_im_usrlibdir in 14275 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 14276 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 14277 esac 14278 fi 14279 cd .. 14280 rm -f -r conftest.dir 14281fi 14282 14283# Standard set of common directories for X headers. 14284# Check X11 before X11Rn because it is often a symlink to the current release. 14285ac_x_header_dirs=' 14286/usr/X11/include 14287/usr/X11R7/include 14288/usr/X11R6/include 14289/usr/X11R5/include 14290/usr/X11R4/include 14291 14292/usr/include/X11 14293/usr/include/X11R7 14294/usr/include/X11R6 14295/usr/include/X11R5 14296/usr/include/X11R4 14297 14298/usr/local/X11/include 14299/usr/local/X11R7/include 14300/usr/local/X11R6/include 14301/usr/local/X11R5/include 14302/usr/local/X11R4/include 14303 14304/usr/local/include/X11 14305/usr/local/include/X11R7 14306/usr/local/include/X11R6 14307/usr/local/include/X11R5 14308/usr/local/include/X11R4 14309 14310/usr/X386/include 14311/usr/x386/include 14312/usr/XFree86/include/X11 14313 14314/usr/include 14315/usr/local/include 14316/usr/unsupported/include 14317/usr/athena/include 14318/usr/local/x11r5/include 14319/usr/lpp/Xamples/include 14320 14321/usr/openwin/include 14322/usr/openwin/share/include' 14323 14324if test "$ac_x_includes" = no; then 14325 # Guess where to find include files, by looking for Xlib.h. 14326 # First, try using that file with no special directory specified. 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329#include <X11/Xlib.h> 14330_ACEOF 14331if ac_fn_c_try_cpp "$LINENO"; then : 14332 # We can compile using X headers with no special include directory. 14333ac_x_includes= 14334else 14335 for ac_dir in $ac_x_header_dirs; do 14336 if test -r "$ac_dir/X11/Xlib.h"; then 14337 ac_x_includes=$ac_dir 14338 break 14339 fi 14340done 14341fi 14342rm -f conftest.err conftest.i conftest.$ac_ext 14343fi # $ac_x_includes = no 14344 14345if test "$ac_x_libraries" = no; then 14346 # Check for the libraries. 14347 # See if we find them without any special options. 14348 # Don't add to $LIBS permanently. 14349 ac_save_LIBS=$LIBS 14350 LIBS="-lX11 $LIBS" 14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353#include <X11/Xlib.h> 14354int 14355main () 14356{ 14357XrmInitialize () 14358 ; 14359 return 0; 14360} 14361_ACEOF 14362if ac_fn_c_try_link "$LINENO"; then : 14363 LIBS=$ac_save_LIBS 14364# We can link X programs with no special library path. 14365ac_x_libraries= 14366else 14367 LIBS=$ac_save_LIBS 14368for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 14369do 14370 # Don't even attempt the hair of trying to link an X program! 14371 for ac_extension in a so sl dylib la dll; do 14372 if test -r "$ac_dir/libX11.$ac_extension"; then 14373 ac_x_libraries=$ac_dir 14374 break 2 14375 fi 14376 done 14377done 14378fi 14379rm -f core conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381fi # $ac_x_libraries = no 14382 14383case $ac_x_includes,$ac_x_libraries in #( 14384 no,* | *,no | *\'*) 14385 # Didn't find X, or a directory has "'" in its name. 14386 ac_cv_have_x="have_x=no";; #( 14387 *) 14388 # Record where we found X for the cache. 14389 ac_cv_have_x="have_x=yes\ 14390 ac_x_includes='$ac_x_includes'\ 14391 ac_x_libraries='$ac_x_libraries'" 14392esac 14393fi 14394;; #( 14395 *) have_x=yes;; 14396 esac 14397 eval "$ac_cv_have_x" 14398fi # $with_x != no 14399 14400if test "$have_x" != yes; then 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 14402$as_echo "$have_x" >&6; } 14403 no_x=yes 14404else 14405 # If each of the values was on the command line, it overrides each guess. 14406 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 14407 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 14408 # Update the cache value to reflect the command line values. 14409 ac_cv_have_x="have_x=yes\ 14410 ac_x_includes='$x_includes'\ 14411 ac_x_libraries='$x_libraries'" 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 14413$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 14414fi 14415 14416if test "$no_x" = yes; then 14417 # Not all programs may use this symbol, but it does not hurt to define it. 14418 14419$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 14420 14421 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 14422else 14423 if test -n "$x_includes"; then 14424 X_CFLAGS="$X_CFLAGS -I$x_includes" 14425 fi 14426 14427 # It would also be nice to do this for all -L options, not just this one. 14428 if test -n "$x_libraries"; then 14429 X_LIBS="$X_LIBS -L$x_libraries" 14430 # For Solaris; some versions of Sun CC require a space after -R and 14431 # others require no space. Words are not sufficient . . . . 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 14433$as_echo_n "checking whether -R must be followed by a space... " >&6; } 14434 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 14435 ac_xsave_c_werror_flag=$ac_c_werror_flag 14436 ac_c_werror_flag=yes 14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14438/* end confdefs.h. */ 14439 14440int 14441main () 14442{ 14443 14444 ; 14445 return 0; 14446} 14447_ACEOF 14448if ac_fn_c_try_link "$LINENO"; then : 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14450$as_echo "no" >&6; } 14451 X_LIBS="$X_LIBS -R$x_libraries" 14452else 14453 LIBS="$ac_xsave_LIBS -R $x_libraries" 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456 14457int 14458main () 14459{ 14460 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465if ac_fn_c_try_link "$LINENO"; then : 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14467$as_echo "yes" >&6; } 14468 X_LIBS="$X_LIBS -R $x_libraries" 14469else 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 14471$as_echo "neither works" >&6; } 14472fi 14473rm -f core conftest.err conftest.$ac_objext \ 14474 conftest$ac_exeext conftest.$ac_ext 14475fi 14476rm -f core conftest.err conftest.$ac_objext \ 14477 conftest$ac_exeext conftest.$ac_ext 14478 ac_c_werror_flag=$ac_xsave_c_werror_flag 14479 LIBS=$ac_xsave_LIBS 14480 fi 14481 14482 # Check for system-dependent libraries X programs must link with. 14483 # Do this before checking for the system-independent R6 libraries 14484 # (-lICE), since we may need -lsocket or whatever for X linking. 14485 14486 if test "$ISC" = yes; then 14487 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 14488 else 14489 # Martyn Johnson says this is needed for Ultrix, if the X 14490 # libraries were built with DECnet support. And Karl Berry says 14491 # the Alpha needs dnet_stub (dnet does not exist). 14492 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494/* end confdefs.h. */ 14495 14496/* Override any GCC internal prototype to avoid an error. 14497 Use char because int might match the return type of a GCC 14498 builtin and then its argument prototype would still apply. */ 14499#ifdef __cplusplus 14500extern "C" 14501#endif 14502char XOpenDisplay (); 14503int 14504main () 14505{ 14506return XOpenDisplay (); 14507 ; 14508 return 0; 14509} 14510_ACEOF 14511if ac_fn_c_try_link "$LINENO"; then : 14512 14513else 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 14515$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 14516if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 14517 $as_echo_n "(cached) " >&6 14518else 14519 ac_check_lib_save_LIBS=$LIBS 14520LIBS="-ldnet $LIBS" 14521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523 14524/* Override any GCC internal prototype to avoid an error. 14525 Use char because int might match the return type of a GCC 14526 builtin and then its argument prototype would still apply. */ 14527#ifdef __cplusplus 14528extern "C" 14529#endif 14530char dnet_ntoa (); 14531int 14532main () 14533{ 14534return dnet_ntoa (); 14535 ; 14536 return 0; 14537} 14538_ACEOF 14539if ac_fn_c_try_link "$LINENO"; then : 14540 ac_cv_lib_dnet_dnet_ntoa=yes 14541else 14542 ac_cv_lib_dnet_dnet_ntoa=no 14543fi 14544rm -f core conftest.err conftest.$ac_objext \ 14545 conftest$ac_exeext conftest.$ac_ext 14546LIBS=$ac_check_lib_save_LIBS 14547fi 14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 14549$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 14550if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 14551 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 14552fi 14553 14554 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 14556$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 14557if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 ac_check_lib_save_LIBS=$LIBS 14561LIBS="-ldnet_stub $LIBS" 14562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564 14565/* Override any GCC internal prototype to avoid an error. 14566 Use char because int might match the return type of a GCC 14567 builtin and then its argument prototype would still apply. */ 14568#ifdef __cplusplus 14569extern "C" 14570#endif 14571char dnet_ntoa (); 14572int 14573main () 14574{ 14575return dnet_ntoa (); 14576 ; 14577 return 0; 14578} 14579_ACEOF 14580if ac_fn_c_try_link "$LINENO"; then : 14581 ac_cv_lib_dnet_stub_dnet_ntoa=yes 14582else 14583 ac_cv_lib_dnet_stub_dnet_ntoa=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext \ 14586 conftest$ac_exeext conftest.$ac_ext 14587LIBS=$ac_check_lib_save_LIBS 14588fi 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 14590$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 14591if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 14592 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 14593fi 14594 14595 fi 14596fi 14597rm -f core conftest.err conftest.$ac_objext \ 14598 conftest$ac_exeext conftest.$ac_ext 14599 LIBS="$ac_xsave_LIBS" 14600 14601 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 14602 # to get the SysV transport functions. 14603 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 14604 # needs -lnsl. 14605 # The nsl library prevents programs from opening the X display 14606 # on Irix 5.2, according to T.E. Dickey. 14607 # The functions gethostbyname, getservbyname, and inet_addr are 14608 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 14609 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14610if test "x$ac_cv_func_gethostbyname" = xyes; then : 14611 14612fi 14613 14614 if test $ac_cv_func_gethostbyname = no; then 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 14616$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 14617if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 ac_check_lib_save_LIBS=$LIBS 14621LIBS="-lnsl $LIBS" 14622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623/* end confdefs.h. */ 14624 14625/* Override any GCC internal prototype to avoid an error. 14626 Use char because int might match the return type of a GCC 14627 builtin and then its argument prototype would still apply. */ 14628#ifdef __cplusplus 14629extern "C" 14630#endif 14631char gethostbyname (); 14632int 14633main () 14634{ 14635return gethostbyname (); 14636 ; 14637 return 0; 14638} 14639_ACEOF 14640if ac_fn_c_try_link "$LINENO"; then : 14641 ac_cv_lib_nsl_gethostbyname=yes 14642else 14643 ac_cv_lib_nsl_gethostbyname=no 14644fi 14645rm -f core conftest.err conftest.$ac_objext \ 14646 conftest$ac_exeext conftest.$ac_ext 14647LIBS=$ac_check_lib_save_LIBS 14648fi 14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 14650$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 14651if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 14652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 14653fi 14654 14655 if test $ac_cv_lib_nsl_gethostbyname = no; then 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 14657$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 14658if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 14659 $as_echo_n "(cached) " >&6 14660else 14661 ac_check_lib_save_LIBS=$LIBS 14662LIBS="-lbsd $LIBS" 14663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14664/* end confdefs.h. */ 14665 14666/* Override any GCC internal prototype to avoid an error. 14667 Use char because int might match the return type of a GCC 14668 builtin and then its argument prototype would still apply. */ 14669#ifdef __cplusplus 14670extern "C" 14671#endif 14672char gethostbyname (); 14673int 14674main () 14675{ 14676return gethostbyname (); 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_link "$LINENO"; then : 14682 ac_cv_lib_bsd_gethostbyname=yes 14683else 14684 ac_cv_lib_bsd_gethostbyname=no 14685fi 14686rm -f core conftest.err conftest.$ac_objext \ 14687 conftest$ac_exeext conftest.$ac_ext 14688LIBS=$ac_check_lib_save_LIBS 14689fi 14690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 14691$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 14692if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 14693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 14694fi 14695 14696 fi 14697 fi 14698 14699 # lieder@skyler.mavd.honeywell.com says without -lsocket, 14700 # socket/setsockopt and other routines are undefined under SCO ODT 14701 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 14702 # on later versions), says Simon Leinen: it contains gethostby* 14703 # variants that don't use the name server (or something). -lsocket 14704 # must be given before -lnsl if both are needed. We assume that 14705 # if connect needs -lnsl, so does gethostbyname. 14706 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14707if test "x$ac_cv_func_connect" = xyes; then : 14708 14709fi 14710 14711 if test $ac_cv_func_connect = no; then 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 14713$as_echo_n "checking for connect in -lsocket... " >&6; } 14714if ${ac_cv_lib_socket_connect+:} false; then : 14715 $as_echo_n "(cached) " >&6 14716else 14717 ac_check_lib_save_LIBS=$LIBS 14718LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 14719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721 14722/* Override any GCC internal prototype to avoid an error. 14723 Use char because int might match the return type of a GCC 14724 builtin and then its argument prototype would still apply. */ 14725#ifdef __cplusplus 14726extern "C" 14727#endif 14728char connect (); 14729int 14730main () 14731{ 14732return connect (); 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737if ac_fn_c_try_link "$LINENO"; then : 14738 ac_cv_lib_socket_connect=yes 14739else 14740 ac_cv_lib_socket_connect=no 14741fi 14742rm -f core conftest.err conftest.$ac_objext \ 14743 conftest$ac_exeext conftest.$ac_ext 14744LIBS=$ac_check_lib_save_LIBS 14745fi 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 14747$as_echo "$ac_cv_lib_socket_connect" >&6; } 14748if test "x$ac_cv_lib_socket_connect" = xyes; then : 14749 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 14750fi 14751 14752 fi 14753 14754 # Guillermo Gomez says -lposix is necessary on A/UX. 14755 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 14756if test "x$ac_cv_func_remove" = xyes; then : 14757 14758fi 14759 14760 if test $ac_cv_func_remove = no; then 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 14762$as_echo_n "checking for remove in -lposix... " >&6; } 14763if ${ac_cv_lib_posix_remove+:} false; then : 14764 $as_echo_n "(cached) " >&6 14765else 14766 ac_check_lib_save_LIBS=$LIBS 14767LIBS="-lposix $LIBS" 14768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14769/* end confdefs.h. */ 14770 14771/* Override any GCC internal prototype to avoid an error. 14772 Use char because int might match the return type of a GCC 14773 builtin and then its argument prototype would still apply. */ 14774#ifdef __cplusplus 14775extern "C" 14776#endif 14777char remove (); 14778int 14779main () 14780{ 14781return remove (); 14782 ; 14783 return 0; 14784} 14785_ACEOF 14786if ac_fn_c_try_link "$LINENO"; then : 14787 ac_cv_lib_posix_remove=yes 14788else 14789 ac_cv_lib_posix_remove=no 14790fi 14791rm -f core conftest.err conftest.$ac_objext \ 14792 conftest$ac_exeext conftest.$ac_ext 14793LIBS=$ac_check_lib_save_LIBS 14794fi 14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 14796$as_echo "$ac_cv_lib_posix_remove" >&6; } 14797if test "x$ac_cv_lib_posix_remove" = xyes; then : 14798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 14799fi 14800 14801 fi 14802 14803 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 14804 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 14805if test "x$ac_cv_func_shmat" = xyes; then : 14806 14807fi 14808 14809 if test $ac_cv_func_shmat = no; then 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 14811$as_echo_n "checking for shmat in -lipc... " >&6; } 14812if ${ac_cv_lib_ipc_shmat+:} false; then : 14813 $as_echo_n "(cached) " >&6 14814else 14815 ac_check_lib_save_LIBS=$LIBS 14816LIBS="-lipc $LIBS" 14817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14818/* end confdefs.h. */ 14819 14820/* Override any GCC internal prototype to avoid an error. 14821 Use char because int might match the return type of a GCC 14822 builtin and then its argument prototype would still apply. */ 14823#ifdef __cplusplus 14824extern "C" 14825#endif 14826char shmat (); 14827int 14828main () 14829{ 14830return shmat (); 14831 ; 14832 return 0; 14833} 14834_ACEOF 14835if ac_fn_c_try_link "$LINENO"; then : 14836 ac_cv_lib_ipc_shmat=yes 14837else 14838 ac_cv_lib_ipc_shmat=no 14839fi 14840rm -f core conftest.err conftest.$ac_objext \ 14841 conftest$ac_exeext conftest.$ac_ext 14842LIBS=$ac_check_lib_save_LIBS 14843fi 14844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 14845$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 14846if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 14847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 14848fi 14849 14850 fi 14851 fi 14852 14853 # Check for libraries that X11R6 Xt/Xaw programs need. 14854 ac_save_LDFLAGS=$LDFLAGS 14855 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 14856 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 14857 # check for ICE first), but we must link in the order -lSM -lICE or 14858 # we get undefined symbols. So assume we have SM if we have ICE. 14859 # These have to be linked with before -lX11, unlike the other 14860 # libraries we check for below, so use a different variable. 14861 # John Interrante, Karl Berry 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 14863$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 14864if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 ac_check_lib_save_LIBS=$LIBS 14868LIBS="-lICE $X_EXTRA_LIBS $LIBS" 14869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14870/* end confdefs.h. */ 14871 14872/* Override any GCC internal prototype to avoid an error. 14873 Use char because int might match the return type of a GCC 14874 builtin and then its argument prototype would still apply. */ 14875#ifdef __cplusplus 14876extern "C" 14877#endif 14878char IceConnectionNumber (); 14879int 14880main () 14881{ 14882return IceConnectionNumber (); 14883 ; 14884 return 0; 14885} 14886_ACEOF 14887if ac_fn_c_try_link "$LINENO"; then : 14888 ac_cv_lib_ICE_IceConnectionNumber=yes 14889else 14890 ac_cv_lib_ICE_IceConnectionNumber=no 14891fi 14892rm -f core conftest.err conftest.$ac_objext \ 14893 conftest$ac_exeext conftest.$ac_ext 14894LIBS=$ac_check_lib_save_LIBS 14895fi 14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 14897$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 14898if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 14899 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 14900fi 14901 14902 LDFLAGS=$ac_save_LDFLAGS 14903 14904fi 14905 14906 14907if test "x$ac_cv_func_vfork_works" = xyes; then : 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether setsid() is allowed within vfork()" >&5 14909$as_echo_n "checking for whether setsid() is allowed within vfork()... " >&6; } 14910if ${xdvi_cv_setsid_in_vfork+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 if test "$cross_compiling" = yes; then : 14914 xdvi_cv_setsid_in_vfork=no # safe value for cross-compiling 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918 14919/* Test adapted from Gnu autoconf */ 14920/* Thanks to Paul Eggert for this test. */ 14921#include <stdio.h> 14922#include <sys/types.h> 14923#include <sys/stat.h> 14924#ifdef HAVE_UNISTD_H 14925#include <unistd.h> 14926#endif 14927#ifdef HAVE_VFORK_H 14928#include <vfork.h> 14929#endif 14930int 14931main () 14932{ 14933 14934 pid_t parent = getpid (); 14935 pid_t child; 14936 14937 child = vfork (); 14938 14939 if (child == 0) { 14940 if (setsid () == -1) 14941 _exit(1); 14942 _exit(0); 14943 } else { 14944 int status; 14945 14946 while (wait(&status) != child) 14947 ; 14948 exit( 14949 /* Was there some problem with vforking? */ 14950 child < 0 14951 14952 /* Did the child fail? (This shouldn't happen.) */ 14953 || status 14954 ); 14955 } 14956 ; 14957 return 0; 14958} 14959_ACEOF 14960if ac_fn_c_try_run "$LINENO"; then : 14961 xdvi_cv_setsid_in_vfork=yes 14962else 14963 xdvi_cv_setsid_in_vfork=no 14964fi 14965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14966 conftest.$ac_objext conftest.beam conftest.$ac_ext 14967fi 14968 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_setsid_in_vfork" >&5 14971$as_echo "$xdvi_cv_setsid_in_vfork" >&6; } 14972if test "x$xdvi_cv_setsid_in_vfork" = xyes; then 14973 14974$as_echo "#define HAVE_GOOD_SETSID_VFORK 1" >>confdefs.h 14975 14976fi 14977fi 14978 14979# The cast to long int works around a bug in the HP C Compiler 14980# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14981# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14982# This bug is HP SR number 8606223364. 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 14984$as_echo_n "checking size of unsigned long... " >&6; } 14985if ${ac_cv_sizeof_unsigned_long+:} false; then : 14986 $as_echo_n "(cached) " >&6 14987else 14988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 14989 14990else 14991 if test "$ac_cv_type_unsigned_long" = yes; then 14992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14994as_fn_error 77 "cannot compute sizeof (unsigned long) 14995See \`config.log' for more details" "$LINENO" 5; } 14996 else 14997 ac_cv_sizeof_unsigned_long=0 14998 fi 14999fi 15000 15001fi 15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 15003$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 15004 15005 15006 15007cat >>confdefs.h <<_ACEOF 15008#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 15009_ACEOF 15010 15011 # The cast to long int works around a bug in the HP C Compiler 15012# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15014# This bug is HP SR number 8606223364. 15015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 15016$as_echo_n "checking size of unsigned int... " >&6; } 15017if ${ac_cv_sizeof_unsigned_int+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019else 15020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 15021 15022else 15023 if test "$ac_cv_type_unsigned_int" = yes; then 15024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15026as_fn_error 77 "cannot compute sizeof (unsigned int) 15027See \`config.log' for more details" "$LINENO" 5; } 15028 else 15029 ac_cv_sizeof_unsigned_int=0 15030 fi 15031fi 15032 15033fi 15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 15035$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 15036 15037 15038 15039cat >>confdefs.h <<_ACEOF 15040#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 15041_ACEOF 15042 15043 # The cast to long int works around a bug in the HP C Compiler 15044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15046# This bug is HP SR number 8606223364. 15047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 15048$as_echo_n "checking size of unsigned short... " >&6; } 15049if ${ac_cv_sizeof_unsigned_short+:} false; then : 15050 $as_echo_n "(cached) " >&6 15051else 15052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 15053 15054else 15055 if test "$ac_cv_type_unsigned_short" = yes; then 15056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15058as_fn_error 77 "cannot compute sizeof (unsigned short) 15059See \`config.log' for more details" "$LINENO" 5; } 15060 else 15061 ac_cv_sizeof_unsigned_short=0 15062 fi 15063fi 15064 15065fi 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 15067$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 15068 15069 15070 15071cat >>confdefs.h <<_ACEOF 15072#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 15073_ACEOF 15074 15075 # The cast to long int works around a bug in the HP C Compiler 15076# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15077# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15078# This bug is HP SR number 8606223364. 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5 15080$as_echo_n "checking size of unsigned char... " >&6; } 15081if ${ac_cv_sizeof_unsigned_char+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then : 15085 15086else 15087 if test "$ac_cv_type_unsigned_char" = yes; then 15088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15090as_fn_error 77 "cannot compute sizeof (unsigned char) 15091See \`config.log' for more details" "$LINENO" 5; } 15092 else 15093 ac_cv_sizeof_unsigned_char=0 15094 fi 15095fi 15096 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5 15099$as_echo "$ac_cv_sizeof_unsigned_char" >&6; } 15100 15101 15102 15103cat >>confdefs.h <<_ACEOF 15104#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char 15105_ACEOF 15106 15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for integer type to use in bitmaps" >&5 15108$as_echo_n "checking for integer type to use in bitmaps... " >&6; } 15109if ${xdvi_cv_bitmap_type+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 if (test $ac_cv_sizeof_unsigned_long = 4 || test $ac_cv_sizeof_unsigned_long = 2) \ 15113 && test $ac_cv_sizeof_unsigned_long != $ac_cv_sizeof_unsigned_int; then : 15114 xdvi_cv_bitmap_type="BMTYPE=long BMBYTES=$ac_cv_sizeof_unsigned_long" 15115elif test $ac_cv_sizeof_unsigned_int = 4 || test $ac_cv_sizeof_unsigned_int = 2; then : 15116 xdvi_cv_bitmap_type="BMTYPE=int BMBYTES=$ac_cv_sizeof_unsigned_int" 15117elif test $ac_cv_sizeof_unsigned_short = 4 || test $ac_cv_sizeof_unsigned_short = 2; then : 15118 xdvi_cv_bitmap_type="BMTYPE=short BMBYTES=$ac_cv_sizeof_unsigned_short" 15119else 15120 xdvi_cv_bitmap_type="BMTYPE=char BMBYTES=$ac_cv_sizeof_unsigned_cher" 15121fi 15122fi 15123 15124eval "$xdvi_cv_bitmap_type" 15125 15126cat >>confdefs.h <<_ACEOF 15127#define BMTYPE $BMTYPE 15128_ACEOF 15129 15130 15131cat >>confdefs.h <<_ACEOF 15132#define BMBYTES $BMBYTES 15133_ACEOF 15134 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $BMTYPE, size = $BMBYTES" >&5 15136$as_echo "unsigned $BMTYPE, size = $BMBYTES" >&6; } 15137 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stropts.h and isastream()" >&5 15139$as_echo_n "checking for stropts.h and isastream()... " >&6; } 15140if ${xdvi_cv_sys_streams+:} false; then : 15141 $as_echo_n "(cached) " >&6 15142else 15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15144/* end confdefs.h. */ 15145#include <stropts.h> 15146int 15147main () 15148{ 15149#ifndef I_SETSIG 15150choke me 15151#else 15152isastream(0); 15153#endif 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO"; then : 15159 xdvi_cv_sys_streams=yes 15160else 15161 xdvi_cv_sys_streams=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext \ 15164 conftest$ac_exeext conftest.$ac_ext 15165fi 15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_sys_streams" >&5 15167$as_echo "$xdvi_cv_sys_streams" >&6; } 15168if test "x$xdvi_cv_sys_streams" = xyes; then 15169 15170$as_echo "#define HAVE_STREAMS 1" >>confdefs.h 15171 15172fi 15173 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for certain old versions of Linux" >&5 15175$as_echo_n "checking for certain old versions of Linux... " >&6; } 15176if ${xdvi_cv_sys_old_linux+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 case "`(uname -sr) 2>/dev/null`" in #( 15180 "Linux 2."[01].* | "Linux 2.2."[0-8] | "Linux 2.2."[0-8]-*) : 15181 xdvi_cv_sys_old_linux=yes ;; #( 15182 *) : 15183 xdvi_cv_sys_old_linux=no ;; 15184esac 15185fi 15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_sys_old_linux" >&5 15187$as_echo "$xdvi_cv_sys_old_linux" >&6; } 15188if test "x$xdvi_cv_sys_old_linux" = xyes; then 15189 15190$as_echo "#define FLAKY_SIGPOLL 1" >>confdefs.h 15191 15192fi 15193 15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll.h and poll()" >&5 15195$as_echo_n "checking for poll.h and poll()... " >&6; } 15196if ${xdvi_cv_func_poll+:} false; then : 15197 $as_echo_n "(cached) " >&6 15198else 15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15200/* end confdefs.h. */ 15201#include <poll.h> 15202int 15203main () 15204{ 15205poll((struct pollfd *) 0, 0, 0); 15206 ; 15207 return 0; 15208} 15209_ACEOF 15210if ac_fn_c_try_link "$LINENO"; then : 15211 xdvi_cv_func_poll=yes 15212else 15213 xdvi_cv_func_poll=no 15214fi 15215rm -f core conftest.err conftest.$ac_objext \ 15216 conftest$ac_exeext conftest.$ac_ext 15217fi 15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_poll" >&5 15219$as_echo "$xdvi_cv_func_poll" >&6; } 15220if test "x$xdvi_cv_func_poll" = xyes; then 15221 15222$as_echo "#define HAVE_POLL 1" >>confdefs.h 15223 15224else 15225 for ac_header in sys/select.h select.h 15226do : 15227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15229if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15230 cat >>confdefs.h <<_ACEOF 15231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15232_ACEOF 15233 15234fi 15235 15236done 15237 15238fi 15239 15240 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB Bell extension" >&5 15242$as_echo_n "checking for XKB Bell extension... " >&6; } 15243if ${xdvi_cv_func_xkb_bell+:} false; then : 15244 $as_echo_n "(cached) " >&6 15245else 15246 xdvi_save_LIBS=$LIBS 15247LIBS="$X_PRE_LIBS"" $LIBS $X_LIBS -lX11" 15248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250 15251#include <X11/X.h> 15252#include <X11/XKBlib.h> /* has the prototype */ 15253 15254int 15255main () 15256{ 15257 15258 Atom y; 15259 XkbBell((Display *)0, (Window)0, 0, y); 15260 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_link "$LINENO"; then : 15266 xdvi_cv_func_xkb_bell=yes 15267else 15268 xdvi_cv_func_xkb_bell=no 15269fi 15270rm -f core conftest.err conftest.$ac_objext \ 15271 conftest$ac_exeext conftest.$ac_ext 15272LIBS=$xdvi_save_LIBS 15273fi 15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_xkb_bell" >&5 15275$as_echo "$xdvi_cv_func_xkb_bell" >&6; } 15276if test "$xdvi_cv_func_xkb_bell" = yes; then 15277 X_PRE_LIBS="$X_PRE_LIBS" 15278 15279$as_echo "#define HAVE_XKB_BELL_EXT 1" >>confdefs.h 15280 15281fi 15282 15283# Check whether --enable-xi2-scrolling was given. 15284if test "${enable_xi2_scrolling+set}" = set; then : 15285 enableval=$enable_xi2_scrolling; 15286else 15287 enable_xi2_scrolling=yes 15288fi 15289 15290if test "x$enable_xi2_scrolling" = xyes; then 15291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XInput version 2.1 or higher" >&5 15292$as_echo_n "checking for XInput version 2.1 or higher... " >&6; } 15293if ${xdvi_cv_xinput_2_1+:} false; then : 15294 $as_echo_n "(cached) " >&6 15295else 15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15297/* end confdefs.h. */ 15298#include <X11/extensions/XI2.h> 15299 15300int 15301main () 15302{ 15303#if (XI_2_Major < 2 || (XI_2_Major == 2 && XI_2_Minor < 1)) 15304choke me "XInput version is < 2.1" 15305#endif 15306 15307 ; 15308 return 0; 15309} 15310_ACEOF 15311if ac_fn_c_try_compile "$LINENO"; then : 15312 xdvi_cv_xinput_2_1=yes 15313else 15314 xdvi_cv_xinput_2_1=no 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15317fi 15318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_xinput_2_1" >&5 15319$as_echo "$xdvi_cv_xinput_2_1" >&6; } 15320if test $xdvi_cv_xinput_2_1 = yes; then 15321 15322$as_echo "#define HAVE_XI21 1" >>confdefs.h 15323 15324 X_PRE_LIBS="$X_PRE_LIBS -lXi" 15325fi 15326fi 15327 15328 15329 15330 15331# Check for `--allow-multiple-definition' linker flag 15332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports multiple definitions and for required flags" >&5 15333$as_echo_n "checking if linker supports multiple definitions and for required flags... " >&6; } 15334if ${xdvi_cv_linker_multiple_defns+:} false; then : 15335 $as_echo_n "(cached) " >&6 15336else 15337 xdvi_ld_save_LDFLAGS=$LDFLAGS 15338 LDFLAGS="-Xlinker --allow-multiple-definition" 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341#include <stdio.h> 15342int 15343main () 15344{ 15345void foo(void); 15346 ; 15347 return 0; 15348} 15349_ACEOF 15350if ac_fn_c_try_link "$LINENO"; then : 15351 xdvi_cv_linker_multiple_defns=$LDFLAGS 15352else 15353 xdvi_ld_save_LIBS=$LIBS 15354 xdvi_ld_save_CFLAGS=$CFLAGS 15355 xdvi_ld_save_CPPFLAGS=$CPPFLAGS 15356 15357 LIBS="$X_PRE_LIBS -lXt -lX11 $X_EXTRA_LIBS $LIBS" 15358 CFLAGS="$X_CFLAGS $CFLAGS" 15359 CPPFLAGS="$X_CFLAGS $CPPFLAGS" 15360 LDFLAGS="$X_LIBS $xdvi_ld_save_LDFLAGS" 15361 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363/* end confdefs.h. */ 15364#include <X11/Intrinsic.h> 15365 15366 XtIntervalId XtAppAddTimeOut(XtAppContext app, 15367 unsigned long interval, 15368 XtTimerCallbackProc proc, 15369 XtPointer closure) 15370 { 15371 (void)app; (void)interval; (void)proc; (void)closure; 15372 return (XtIntervalId)0; 15373 } 15374int 15375main () 15376{ 15377XtIntervalId i = 0; XtRemoveTimeOut(i); 15378 ; 15379 return 0; 15380} 15381_ACEOF 15382if ac_fn_c_try_link "$LINENO"; then : 15383 xdvi_cv_linker_multiple_defns="none required" 15384else 15385 xdvi_cv_linker_multiple_defns=unsupported 15386fi 15387rm -f core conftest.err conftest.$ac_objext \ 15388 conftest$ac_exeext conftest.$ac_ext 15389 15390 LIBS=$xdvi_ld_save_LIBS 15391 CFLAGS=$xdvi_ld_save_CFLAGS 15392 CPPFLAGS=$xdvi_ld_save_CPPFLAGS 15393fi 15394rm -f core conftest.err conftest.$ac_objext \ 15395 conftest$ac_exeext conftest.$ac_ext 15396 LDFLAGS=$xdvi_ld_save_LDFLAGS 15397fi 15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_linker_multiple_defns" >&5 15399$as_echo "$xdvi_cv_linker_multiple_defns" >&6; } 15400 15401x_linker_options="" 15402case $xdvi_cv_linker_multiple_defns in #( 15403 "none required") : 15404 15405$as_echo "#define LD_ALLOWS_MULTIPLE_DEFINITIONS 1" >>confdefs.h 15406 ;; #( 15407 unsupported) : 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linker does not allow multiple definitions. 15409 ***************************************************************** 15410 * Warning: Your linker does not allow multiple definitions. * 15411 * This does not make xdvik unusable, but it will cause problems * 15412 * with event handling: Some widgets, e.g. the print log window, * 15413 * tooltips, statusline messages and hyperlink location markers * 15414 * will not be updated until the mouse is moved. * 15415 *****************************************************************" >&5 15416$as_echo "$as_me: WARNING: Linker does not allow multiple definitions. 15417 ***************************************************************** 15418 * Warning: Your linker does not allow multiple definitions. * 15419 * This does not make xdvik unusable, but it will cause problems * 15420 * with event handling: Some widgets, e.g. the print log window, * 15421 * tooltips, statusline messages and hyperlink location markers * 15422 * will not be updated until the mouse is moved. * 15423 *****************************************************************" >&2;} ;; #( 15424 *) : 15425 x_linker_options=$xdvi_cv_linker_multiple_defns 15426 $as_echo "#define LD_ALLOWS_MULTIPLE_DEFINITIONS 1" >>confdefs.h 15427 ;; 15428esac 15429 15430 15431 15432for ac_header in stdint.h inttypes.h 15433do : 15434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15437 cat >>confdefs.h <<_ACEOF 15438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15439_ACEOF 15440 15441fi 15442 15443done 15444 15445ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 15446case $ac_cv_c_uint32_t in #( 15447 no|yes) ;; #( 15448 *) 15449 15450$as_echo "#define _UINT32_T 1" >>confdefs.h 15451 15452 15453cat >>confdefs.h <<_ACEOF 15454#define uint32_t $ac_cv_c_uint32_t 15455_ACEOF 15456;; 15457 esac 15458 15459ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 15460if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 15461 15462else 15463 15464cat >>confdefs.h <<_ACEOF 15465#define ptrdiff_t long 15466_ACEOF 15467 15468fi 15469 15470 15471for ac_func in mkstemp memcpy strerror waitpid sigaction strchr setenv \ 15472 fchdir getcwd getpwnam getuid getpwuid \ 15473 lstat ftruncate snprintf vsnprintf realpath 15474do : 15475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15476ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15477if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15478 cat >>confdefs.h <<_ACEOF 15479#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15480_ACEOF 15481 15482fi 15483done 15484 15485 15486# <sys/bsdtypes.h> is for ISC 4.0, to define fd_set in psgs.c. 15487# regex.h is needed for regexp support in DVI search. 15488for ac_header in netdb.h sys/bsdtypes.h sys/param.h unistd.h sys/fcntl.h regex.h 15489do : 15490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15491ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15492if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15493 cat >>confdefs.h <<_ACEOF 15494#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15495_ACEOF 15496 15497fi 15498 15499done 15500 15501 15502# Checks for iconv 15503 15504 15505# Check whether --with-iconv was given. 15506if test "${with_iconv+set}" = set; then : 15507 withval=$with_iconv; 15508else 15509 with_iconv=check 15510fi 15511 15512 15513# Check whether --with-iconv-include was given. 15514if test "${with_iconv_include+set}" = set; then : 15515 withval=$with_iconv_include; 15516fi 15517 15518# Check whether --with-iconv-libdir was given. 15519if test "${with_iconv_libdir+set}" = set; then : 15520 withval=$with_iconv_libdir; 15521fi 15522case $with_iconv_include in #( 15523 yes | no | "") : 15524 iconv_includes= ;; #( 15525 *) : 15526 iconv_includes="-I$with_iconv_include" ;; 15527esac 15528case $with_iconv_libdir in #( 15529 yes | no | "") : 15530 iconv_libpath= ;; #( 15531 *) : 15532 iconv_libpath="-L$with_iconv_libdir" ;; 15533esac 15534if test "x$with_iconv" != xno; then : 15535 xdvi_iconv_save_CPPFLAGS=$CPPFLAGS 15536 CPPFLAGS="$iconv_includes $CPPFLAGS" 15537 for ac_header in iconv.h 15538do : 15539 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 15540if test "x$ac_cv_header_iconv_h" = xyes; then : 15541 cat >>confdefs.h <<_ACEOF 15542#define HAVE_ICONV_H 1 15543_ACEOF 15544 15545fi 15546 15547done 15548 15549 # Check if -liconv or -lrecode is needed for iconv() 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5 15551$as_echo_n "checking for library containing iconv... " >&6; } 15552if ${xdvi_cv_search_iconv+:} false; then : 15553 $as_echo_n "(cached) " >&6 15554else 15555 15556xdvi_iconv_save_LDFLAGS=$LDFLAGS 15557xdvi_iconv_save_LIBS=$LIBS 15558LDFLAGS="$iconv_libpath $LDFLAGS" 15559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15560/* end confdefs.h. */ 15561#include <stdlib.h> 15562#include <iconv.h> 15563int 15564main () 15565{ 15566iconv_t cd = iconv_open("",""); 15567 ; 15568 return 0; 15569} 15570_ACEOF 15571xdvi_cv_search_iconv=no 15572for xdvi_lib in "" -liconv -lrecode; do 15573 LIBS="$xdvi_lib $xdvi_iconv_save_LIBS" 15574 if ac_fn_c_try_link "$LINENO"; then : 15575 xdvi_cv_search_iconv=$xdvi_lib 15576 break 15577fi 15578rm -f core conftest.err conftest.$ac_objext \ 15579 conftest$ac_exeext 15580done 15581test "x$xdvi_cv_search_iconv" = x && xdvi_cv_search_iconv="none required" 15582LDFLAGS=$xdvi_iconv_save_LDFLAGS 15583LIBS=$xdvi_iconv_save_LIBS 15584fi 15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_search_iconv" >&5 15586$as_echo "$xdvi_cv_search_iconv" >&6; } 15587 15588 if test "x$xdvi_cv_search_iconv" != xno; then 15589 if test "x$xdvi_cv_search_iconv" = "xnone required"; then 15590 iconv_libs= 15591 else 15592 iconv_libs=$xdvi_cv_search_iconv 15593 fi 15594 15595$as_echo "#define HAVE_ICONV 1" >>confdefs.h 15596 15597 if test "x$ac_cv_header_iconv_h" = xyes; then 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv input type" >&5 15599$as_echo_n "checking for iconv input type... " >&6; } 15600if ${xdvi_cv_iconv_char_pptr_type+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602else 15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15604/* end confdefs.h. */ 15605 15606/* iconv() definitions may differ depending on following macros ... */ 15607#ifdef __hpux 15608/* On HP-UX 10.10 B and 20.10, compiling with _XOPEN_SOURCE + ..._EXTENDED 15609 * leads to poll() not realizing that a file descriptor is writable in psgs.c. 15610 */ 15611# define _HPUX_SOURCE 1 15612#else 15613# ifndef _XOPEN_SOURCE 15614# define _XOPEN_SOURCE 600 15615# endif 15616# define _XOPEN_SOURCE_EXTENDED 1 15617# define __EXTENSIONS__ 1 /* needed to get struct timeval on SunOS 5.5 */ 15618# define _SVID_SOURCE 1 /* needed to get S_IFLNK in glibc */ 15619# define _BSD_SOURCE 1 /* needed to get F_SETOWN in glibc-2.1.3 */ 15620#endif 15621 15622#include <iconv.h> 15623 15624int 15625main () 15626{ 15627extern size_t iconv(iconv_t, char **, size_t *, char**, size_t*); 15628 ; 15629 return 0; 15630} 15631_ACEOF 15632if ac_fn_c_try_compile "$LINENO"; then : 15633 xdvi_cv_iconv_char_pptr_type='char **' 15634else 15635 xdvi_cv_iconv_char_pptr_type='const char **' 15636fi 15637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15638fi 15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_iconv_char_pptr_type" >&5 15640$as_echo "$xdvi_cv_iconv_char_pptr_type" >&6; } 15641 15642cat >>confdefs.h <<_ACEOF 15643#define ICONV_CHAR_PPTR_TYPE $xdvi_cv_iconv_char_pptr_type 15644_ACEOF 15645 15646 15647 fi 15648 fi 15649 CPPFLAGS=$xdvi_iconv_save_CPPFLAGS 15650 15651fi 15652 15653 15654 15655 15656# Checks for langinfo 15657for ac_func in nl_langinfo 15658do : 15659 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 15660if test "x$ac_cv_func_nl_langinfo" = xyes; then : 15661 cat >>confdefs.h <<_ACEOF 15662#define HAVE_NL_LANGINFO 1 15663_ACEOF 15664 15665fi 15666done 15667 15668for ac_header in langinfo.h 15669do : 15670 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 15671if test "x$ac_cv_header_langinfo_h" = xyes; then : 15672 cat >>confdefs.h <<_ACEOF 15673#define HAVE_LANGINFO_H 1 15674_ACEOF 15675 15676fi 15677 15678done 15679 15680if test "x$ac_cv_func_nl_langinfo:$ac_cv_header_langinfo_h" = xyes:yes; then 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nl_langinfo(CODESET) is working" >&5 15682$as_echo_n "checking if nl_langinfo(CODESET) is working... " >&6; } 15683if ${xdvi_cv_nl_langinfo_codeset+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688#include <langinfo.h> 15689int 15690main () 15691{ 15692char* cs = nl_langinfo(CODESET); 15693 ; 15694 return 0; 15695} 15696_ACEOF 15697if ac_fn_c_try_link "$LINENO"; then : 15698 xdvi_cv_nl_langinfo_codeset=yes 15699else 15700 xdvi_cv_nl_langinfo_codeset=no 15701fi 15702rm -f core conftest.err conftest.$ac_objext \ 15703 conftest$ac_exeext conftest.$ac_ext 15704fi 15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_nl_langinfo_codeset" >&5 15706$as_echo "$xdvi_cv_nl_langinfo_codeset" >&6; } 15707 if test "x$xdvi_cv_nl_langinfo_codeset" = xyes; then : 15708 15709$as_echo "#define HAVE_WORKING_NL_LANGINFO_CODESET 1" >>confdefs.h 15710 15711fi 15712fi 15713 15714 15715# Check X11 headers. 15716# X11/IntrinsicI.h is needed for LateBindings (to roll our own translations) 15717xdvi_save_CPPFLAGS=$CPPFLAGS 15718CPPFLAGS="$CPPFLAGS $X_CFLAGS" 15719for ac_header in X11/Intrinsic.h X11/IntrinsicI.h X11/Xosdefs.h X11/xpm.h \ 15720 Xm/XpmP.h 15721do : 15722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15723ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15724if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15725 cat >>confdefs.h <<_ACEOF 15726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15727_ACEOF 15728 15729fi 15730 15731done 15732 15733# For editres, we need to check both the header and define a linker option. 15734for ac_header in X11/Xmu/Editres.h X11/Xmu/Xmu.h 15735do : 15736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_INTRINSIC_H 15738# include <X11/Intrinsic.h> 15739#endif 15740" 15741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15742 cat >>confdefs.h <<_ACEOF 15743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15744_ACEOF 15745 x_xmu_lib=-lXmu 15746else 15747 x_xmu_lib= 15748fi 15749 15750done 15751 15752 15753CPPFLAGS=$xdvi_save_CPPFLAGS 15754 15755# Check whether --enable-magick was given. 15756if test "${enable_magick+set}" = set; then : 15757 enableval=$enable_magick; 15758fi 15759 15760if test "x$enable_magick" = xyes; then 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick version" >&5 15762$as_echo_n "checking for ImageMagick version... " >&6; } 15763 if MAGICK_VER=`Magick-config --version 2>/dev/null`; then 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGICK_VER" >&5 15765$as_echo "$MAGICK_VER" >&6; } 15766 set dummy `echo $MAGICK_VER | sed -e 's/\./ /g'` 15767 MAGICK_VER_MAJOR=$2 15768 MAGICK_VER_MINOR=$3 15769 if expr $MAGICK_VER_MAJOR \> 4 >/dev/null && \ 15770 (expr $MAGICK_VER_MAJOR \> 5 >/dev/null || \ 15771 expr $MAGICK_VER_MINOR \> 2 >/dev/null); then 15772 MAGICK_CPP="-DMAGICK_VER_MAJOR=$MAGICK_VER_MAJOR -DMAGICK_VER_MINOR=$MAGICK_VER_MINOR `Magick-config --cppflags`" 15773 MAGICK_LD="`Magick-config --libs` `Magick-config --ldflags`" 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: ImageMagick support enabled" >&5 15775$as_echo "$as_me: ImageMagick support enabled" >&6;} 15776 X_CFLAGS="$X_CFLAGS $MAGICK_CPP" 15777 X_EXTRA_LIBS="$X_EXTRA_LIBS $MAGICK_LD" 15778 15779$as_echo "#define MAGICK 1" >>confdefs.h 15780 15781 else 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: ImageMagick version too old - disabled" >&5 15783$as_echo "$as_me: ImageMagick version too old - disabled" >&6;} 15784 fi 15785 else 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot run 'Magick-config' - ImageMagick support disabled" >&5 15787$as_echo "cannot run 'Magick-config' - ImageMagick support disabled" >&6; } 15788 fi 15789fi 15790 15791# Check whether -lXpm can be used 15792 15793 15794# Check whether --with-xpm was given. 15795if test "${with_xpm+set}" = set; then : 15796 withval=$with_xpm; 15797fi 15798 15799# Check whether --with-xpm-includes was given. 15800if test "${with_xpm_includes+set}" = set; then : 15801 withval=$with_xpm_includes; xpm_includes=$withval 15802else 15803 xpm_includes= 15804fi 15805 15806# Check whether --with-xpm-libraries was given. 15807if test "${with_xpm_libraries+set}" = set; then : 15808 withval=$with_xpm_libraries; xpm_libraries=$withval 15809else 15810 xpm_libraries= 15811fi 15812if test "x$with_xpm" = xno; then 15813 xpm_includes=no 15814 xpm_libraries=no 15815fi 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xpm" >&5 15817$as_echo_n "checking for Xpm... " >&6; } 15818# 15819# Check the headers. 15820# 15821if test "x$xpm_includes" = x; then 15822 if ${xdvi_cv_xpm_includes+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 xdvi_xpm_save_CFLAGS=$CFLAGS 15826xdvi_xpm_save_CPPFLAGS=$CPPFLAGS 15827# 15828CFLAGS="$X_CFLAGS $CFLAGS" 15829CPPFLAGS="$X_CFLAGS $CPPFLAGS" 15830# 15831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15832/* end confdefs.h. */ 15833#include <X11/xpm.h> 15834int 15835main () 15836{ 15837int a; 15838 ; 15839 return 0; 15840} 15841_ACEOF 15842if ac_fn_c_try_compile "$LINENO"; then : 15843 # X11/xpm.h is in the standard search path. 15844 xdvi_cv_xpm_includes=default 15845else 15846 # X11/xpm.h is not in the standard search path. 15847 xdvi_cv_xpm_includes=no 15848# Locate it and put its directory in `xpm_includes' 15849# 15850# /usr/include/Motif* are used on HP-UX (Motif). 15851# /usr/include/X11* are used on HP-UX (X and Xaw). 15852# /usr/dt is used on Solaris (Motif). 15853# /usr/openwin is used on Solaris (X and Xaw). 15854# Other directories are just guesses. 15855for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ 15856 /usr/X11/include /usr/X11R5/include /usr/X11R6/include \ 15857 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ 15858 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ 15859 /usr/dt/include /usr/openwin/include \ 15860 /usr/dt/*/include /opt/*/include /usr/include/Motif* \ 15861 "${prefix}"/*/include /usr/*/include /usr/local/*/include \ 15862 "${prefix}"/include/* /usr/include/* /usr/local/include/* 15863do 15864 if test -f "$dir/X11/xpm.h"; then 15865 xdvi_cv_xpm_includes=$dir 15866 break 15867 elif test -f "$dir/xpm.h"; then 15868 xdvi_cv_xpm_includes=$dir 15869 break 15870 fi 15871done 15872fi 15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15874# 15875CFLAGS=$xdvi_xpm_save_CFLAGS 15876CPPFLAGS=$xdvi_xpm_save_CPPFLAGS 15877fi 15878 15879# 15880xpm_includes=$xdvi_cv_xpm_includes 15881 15882fi 15883if test "x$xpm_includes" = xdefault; then 15884 15885$as_echo "#define HAVE_X11_XPM_H 1" >>confdefs.h 15886 15887elif test -f "$xpm_includes/X11/xpm.h"; then 15888 $as_echo "#define HAVE_X11_XPM_H 1" >>confdefs.h 15889 15890elif test -f "$xpm_includes/xpm.h"; then 15891 15892$as_echo "#define HAVE_XPM_H 1" >>confdefs.h 15893 15894fi 15895# 15896# Add Xpm definition to X_CFLAGS (and remember previous value) 15897# 15898xdvi_xpm_save_X_CFLAGS=$X_CFLAGS 15899if test "x$xpm_includes" != xdefault \ 15900 && test "x$xpm_includes" != "x$x_includes" && test "x$xpm_includes" != xno 15901then 15902 X_CFLAGS="-I$xpm_includes $X_CFLAGS" 15903fi 15904# 15905# Check the libraries. 15906# 15907if test "x$xpm_libraries" = x; then 15908 if ${xdvi_cv_xpm_libraries+:} false; then : 15909 $as_echo_n "(cached) " >&6 15910else 15911 xdvi_xpm_save_LIBS=$LIBS 15912xdvi_xpm_save_CFLAGS=$CFLAGS 15913xdvi_xpm_save_CPPFLAGS=$CPPFLAGS 15914xdvi_xpm_save_LDFLAGS=$LDFLAGS 15915# 15916LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" 15917CFLAGS="$X_CFLAGS $CFLAGS" 15918CPPFLAGS="$X_CFLAGS $CPPFLAGS" 15919LDFLAGS="$X_LIBS $LDFLAGS" 15920# 15921# We use XtToolkitInitialize() here since it takes no arguments 15922# and thus also works with a C++ compiler. 15923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924/* end confdefs.h. */ 15925#include <X11/Intrinsic.h> 15926#include <X11/xpm.h> 15927int 15928main () 15929{ 15930XtToolkitInitialize(); 15931 ; 15932 return 0; 15933} 15934_ACEOF 15935if ac_fn_c_try_link "$LINENO"; then : 15936 # libxpm.a is in the standard search path. 15937 xdvi_cv_xpm_libraries=default 15938else 15939 # libXpm.a is not in the standard search path. 15940 xdvi_cv_xpm_libraries=no 15941# Locate it and put its directory in `xpm_libraries' 15942# 15943# /usr/lib/Motif* are used on HP-UX (Motif). 15944# /usr/lib/X11* are used on HP-UX (X and Xpm). 15945# /usr/dt is used on Solaris (Motif). 15946# /usr/openwin is used on Solaris (X and Xpm). 15947# Other directories are just guesses. 15948for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ 15949 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ 15950 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ 15951 /usr/dt/lib /usr/openwin/lib \ 15952 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ 15953 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ 15954 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/* 15955do 15956 if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then 15957 xdvi_cv_xpm_libraries=$dir 15958 break 15959 fi 15960done 15961fi 15962rm -f core conftest.err conftest.$ac_objext \ 15963 conftest$ac_exeext conftest.$ac_ext 15964# 15965LIBS=$xdvi_xpm_save_LIBS 15966CFLAGS=$xdvi_xpm_save_CFLAGS 15967CPPFLAGS=$xdvi_xpm_save_CPPFLAGS 15968LDFLAGS=$xdvi_xpm_save_LDFLAGS 15969fi 15970 15971# 15972xpm_libraries="$xdvi_cv_xpm_libraries" 15973fi 15974# 15975# Report the results of headers and libraries. 15976# 15977xdvi_use_xpm=yes 15978# 15979# 15980xpm_libraries_result=$xpm_libraries 15981if test "x$xpm_libraries_result" = xdefault; then 15982 xpm_libraries_result="in default path" 15983elif test "x$xpm_libraries_result" = xno; then 15984 xpm_libraries_result="(none)" 15985 xdvi_use_xpm=no 15986fi 15987# 15988xpm_includes_result=$xpm_includes 15989if test "x$xpm_includes_result" = xdefault; then 15990 xpm_includes_result="in default path" 15991elif test "x$xpm_includes_result" = xno; then 15992 xpm_includes_result="(none)" 15993 xdvi_use_xpm=no 15994fi 15995# 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $xpm_libraries_result, headers $xpm_includes_result" >&5 15997$as_echo "libraries $xpm_libraries_result, headers $xpm_includes_result" >&6; } 15998# 15999if test "x$xdvi_use_xpm" = xyes; then 16000 # 16001 # Add Xpm definition to X_LIBS 16002 # 16003 if test "x$xpm_libraries" != xdefault \ 16004 && test "x$xpm_libraries" != "x$x_libraries" && test "x$xpm_libraries" != xno 16005 then 16006 case "$X_LIBS" in 16007 *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; 16008 *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; 16009 *) X_LIBS="-L$xpm_libraries $X_LIBS";; 16010 esac 16011 fi 16012 # 16013 16014$as_echo "#define USE_XPM 1" >>confdefs.h 16015 16016 x_xpm_libs="-lXpm" 16017else 16018 # Restore previous X_CFLAGS 16019 X_CFLAGS=$xdvi_xpm_save_X_CFLAGS 16020 $as_echo "#define USE_XPM 0" >>confdefs.h 16021 16022 x_xpm_libs= 16023fi 16024 16025 16026 16027# Check for libXext. 16028if test -n "$x_libraries"; then : 16029 XLFLAG="-L$x_libraries" 16030else 16031 XLFLAG= 16032fi 16033if test -z "$x_ext_lib"; then # allow envvar override 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextCreateExtension in -lXext" >&5 16035$as_echo_n "checking for XextCreateExtension in -lXext... " >&6; } 16036if ${ac_cv_lib_Xext_XextCreateExtension+:} false; then : 16037 $as_echo_n "(cached) " >&6 16038else 16039 ac_check_lib_save_LIBS=$LIBS 16040LIBS="-lXext -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS" 16041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043 16044/* Override any GCC internal prototype to avoid an error. 16045 Use char because int might match the return type of a GCC 16046 builtin and then its argument prototype would still apply. */ 16047#ifdef __cplusplus 16048extern "C" 16049#endif 16050char XextCreateExtension (); 16051int 16052main () 16053{ 16054return XextCreateExtension (); 16055 ; 16056 return 0; 16057} 16058_ACEOF 16059if ac_fn_c_try_link "$LINENO"; then : 16060 ac_cv_lib_Xext_XextCreateExtension=yes 16061else 16062 ac_cv_lib_Xext_XextCreateExtension=no 16063fi 16064rm -f core conftest.err conftest.$ac_objext \ 16065 conftest$ac_exeext conftest.$ac_ext 16066LIBS=$ac_check_lib_save_LIBS 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 16069$as_echo "$ac_cv_lib_Xext_XextCreateExtension" >&6; } 16070if test "x$ac_cv_lib_Xext_XextCreateExtension" = xyes; then : 16071 x_ext_lib='-lXext' 16072fi 16073 16074fi 16075 16076 16077# Check for libXp. 16078# Although libXp is now defunct (no longer part of XOrg), older versions 16079# of libXm may need to link with libXp; same for the equally defunct libXaw8. 16080# We certainly don't want to include libXp unless necessary, since this might 16081# only perpetuate the need to keep libXp.so around. 16082# Moreover for ELF shared libraries a requirement for libXp.so is probably 16083# encoded into libXm.so and/or libXaw.so and need not be specified explicitly. 16084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryVersion in -lXp" >&5 16085$as_echo_n "checking for XpQueryVersion in -lXp... " >&6; } 16086if ${ac_cv_lib_Xp_XpQueryVersion+:} false; then : 16087 $as_echo_n "(cached) " >&6 16088else 16089 ac_check_lib_save_LIBS=$LIBS 16090LIBS="-lXp $x_ext_lib -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS" 16091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16092/* end confdefs.h. */ 16093 16094/* Override any GCC internal prototype to avoid an error. 16095 Use char because int might match the return type of a GCC 16096 builtin and then its argument prototype would still apply. */ 16097#ifdef __cplusplus 16098extern "C" 16099#endif 16100char XpQueryVersion (); 16101int 16102main () 16103{ 16104return XpQueryVersion (); 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO"; then : 16110 ac_cv_lib_Xp_XpQueryVersion=yes 16111else 16112 ac_cv_lib_Xp_XpQueryVersion=no 16113fi 16114rm -f core conftest.err conftest.$ac_objext \ 16115 conftest$ac_exeext conftest.$ac_ext 16116LIBS=$ac_check_lib_save_LIBS 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryVersion" >&5 16119$as_echo "$ac_cv_lib_Xp_XpQueryVersion" >&6; } 16120if test "x$ac_cv_lib_Xp_XpQueryVersion" = xyes; then : 16121 x_xp_lib='-lXp' 16122fi 16123 16124 16125if test "x$enable_build" != xno || test -f config.force; then 16126 16127# Check which toolkit was specified 16128case $with_xdvi_x_toolkit in #( 16129 next | nextaw | neXtaw) : 16130 val=neXtaw ;; #( 16131 xaw3d) : 16132 val=xaw3d ;; #( 16133 "" | x | xa | xaw) : 16134 val=xaw ;; #( 16135 y | ye | yes) : 16136 val=yes ;; #( 16137 m | mo | mot | moti | motif) : 16138 val=motif ;; #( 16139 *) : 16140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown --with-xdvi-x-toolkit argument 16141 \`$with_xdvi_x_toolkit'; using xaw." >&5 16142$as_echo "$as_me: WARNING: unknown --with-xdvi-x-toolkit argument 16143 \`$with_xdvi_x_toolkit'; using xaw." >&2;} 16144 val=xaw ;; 16145esac 16146with_xdvi_x_toolkit=$val 16147 16148if test "x$with_xdvi_x_toolkit" = xxaw3d; then 16149 prog_extension="xaw3d" 16150 x_tool_libs="-lXaw3d" 16151elif test "x$with_xdvi_x_toolkit" = xneXtaw; then 16152 prog_extension="nextaw" 16153 x_tool_libs="-lneXtaw" 16154else 16155 # Check for Xaw headers and library version 16156 save_CPPFLAGS=$CPPFLAGS 16157CPPFLAGS="$CPPFLAGS $X_CFLAGS" 16158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xaw headers" >&5 16159$as_echo_n "checking for Xaw headers... " >&6; } 16160if ${xdvi_cv_xaw_headers+:} false; then : 16161 $as_echo_n "(cached) " >&6 16162else 16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16164/* end confdefs.h. */ 16165 16166#include <X11/X.h> 16167#include <X11/Xlib.h> 16168#include <X11/Xutil.h> 16169#include <X11/Xos.h> 16170#include <X11/Xfuncs.h> 16171#include <X11/Intrinsic.h> 16172#include <X11/Xaw/Form.h> 16173int 16174main () 16175{ 16176 16177 ; 16178 return 0; 16179} 16180_ACEOF 16181if ac_fn_c_try_compile "$LINENO"; then : 16182 xdvi_cv_xaw_headers=yes 16183else 16184 xdvi_cv_xaw_headers=no 16185fi 16186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16187fi 16188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_xaw_headers" >&5 16189$as_echo "$xdvi_cv_xaw_headers" >&6; } 16190xdvi_have_xaw=$xdvi_cv_xaw_headers 16191# 16192if test "x$xdvi_have_xaw" = xyes; then 16193 ac_fn_c_check_member "$LINENO" "SimpleClassPart" "extension" "ac_cv_member_SimpleClassPart_extension" " 16194#include <X11/IntrinsicP.h> 16195#include <X11/StringDefs.h> 16196#include <X11/Intrinsic.h> 16197#include <X11/StringDefs.h> 16198#include <X11/Xos.h> 16199#include <X11/Xaw/SimpleP.h> 16200" 16201if test "x$ac_cv_member_SimpleClassPart_extension" = xyes; then : 16202 16203else 16204 16205$as_echo "#define HAVE_OLD_XAW 1" >>confdefs.h 16206 16207fi 16208 16209 16210fi 16211CPPFLAGS=$save_CPPFLAGS 16212 16213 if test "x$with_xdvi_x_toolkit" != xxaw; then 16214 if test "x$with_xdvi_x_toolkit" = xmotif; then 16215 # Requested motiv 16216 default_toolkit=none 16217 else 16218 # Requested motiv with Xaw as fallback 16219 default_toolkit=Xaw 16220 fi 16221 16222 16223# Check whether --with-motif-include was given. 16224if test "${with_motif_include+set}" = set; then : 16225 withval=$with_motif_include; motif_include=$withval 16226else 16227 motif_include= 16228fi 16229 16230# Check whether --with-motif-libdir was given. 16231if test "${with_motif_libdir+set}" = set; then : 16232 withval=$with_motif_libdir; motif_libdir=$withval 16233else 16234 motif_libdir= 16235fi 16236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5 16237$as_echo_n "checking for Motif... " >&6; } 16238# 16239# Search the include files. 16240# 16241if test "x$motif_include" = x; then 16242 if ${xdvi_cv_motif_include+:} false; then : 16243 $as_echo_n "(cached) " >&6 16244else 16245 xdvi_motif_save_CFLAGS=$CFLAGS 16246xdvi_motif_save_CPPFLAGS=$CPPFLAGS 16247# 16248CFLAGS="$X_CFLAGS $CFLAGS" 16249CPPFLAGS="$X_CFLAGS $CPPFLAGS" 16250# 16251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253#include <Xm/Xm.h> 16254int 16255main () 16256{ 16257int a; 16258 ; 16259 return 0; 16260} 16261_ACEOF 16262if ac_fn_c_try_compile "$LINENO"; then : 16263 # Xm/Xm.h is in the standard search path. 16264 xdvi_cv_motif_include=default 16265else 16266 # Xm/Xm.h is not in the standard search path. 16267 xdvi_cv_motif_include=no 16268# Locate it and put its directory in `motif_include' 16269# 16270# /usr/include/Motif* are used on HP-UX (Motif). 16271# /usr/include/X11* are used on HP-UX (X and Athena). 16272# /usr/dt is used on Solaris (Motif). 16273# /usr/openwin is used on Solaris (X and Athena). 16274# Other directories are just guesses. 16275for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ 16276 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ 16277 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ 16278 /usr/dt/include /usr/openwin/include \ 16279 /usr/dt/*/include /opt/*/include /usr/include/Motif* \ 16280 "${prefix}"/*/include /usr/*/include /usr/local/*/include \ 16281 "${prefix}"/include/* /usr/include/* /usr/local/include/*; do 16282 if test -f "$dir/Xm/Xm.h"; then 16283 xdvi_cv_motif_include=$dir 16284 break 16285 fi 16286done 16287fi 16288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16289# 16290CFLAGS=$xdvi_motif_save_CFLAGS 16291CPPFLAGS=$xdvi_motif_save_CPPFLAGS 16292fi 16293 16294motif_include=$xdvi_cv_motif_include 16295 16296fi 16297# 16298# Add Motif definition to X_CFLAGS (and remember previous value) 16299# 16300xdvi_motif_save_X_CFLAGS=$X_CFLAGS 16301if test "x$motif_include" != xdefault \ 16302 && test "x$motif_include" != "x$x_includes" && test "x$motif_include" != xno 16303then 16304 X_CFLAGS="-I$motif_include $X_CFLAGS" 16305fi 16306# 16307# Now for the libraries. 16308# 16309if test "x$motif_libdir" = x; then 16310 if ${xdvi_cv_motif_libdir+:} false; then : 16311 $as_echo_n "(cached) " >&6 16312else 16313 xdvi_motif_save_LIBS=$LIBS 16314xdvi_motif_save_CFLAGS=$CFLAGS 16315xdvi_motif_save_CPPFLAGS=$CPPFLAGS 16316xdvi_motif_save_LDFLAGS=$LDFLAGS 16317# 16318LIBS="$X_PRE_LIBS -lXm $x_xp_lib -lXt -lX11 $X_EXTRA_LIBS $LIBS" 16319CFLAGS="$X_CFLAGS $CFLAGS" 16320CPPFLAGS="$X_CFLAGS $CPPFLAGS" 16321LDFLAGS="$X_LIBS $LDFLAGS" 16322# 16323# We use XtToolkitInitialize() here since it takes no arguments 16324# and thus also works with a C++ compiler. 16325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16326/* end confdefs.h. */ 16327#include <X11/Intrinsic.h> 16328#include <Xm/Xm.h> 16329int 16330main () 16331{ 16332XtToolkitInitialize(); 16333 ; 16334 return 0; 16335} 16336_ACEOF 16337if ac_fn_c_try_link "$LINENO"; then : 16338 # libXm.a is in the standard search path. 16339 xdvi_cv_motif_libdir=default 16340else 16341 # libXm.a is not in the standard search path. 16342 xdvi_cv_motif_libdir=no 16343# Locate it and put its directory in `motif_libdir' 16344# 16345# /usr/lib/Motif* are used on HP-UX (Motif). 16346# /usr/lib/X11* are used on HP-UX (X and Athena). 16347# /usr/dt is used on Solaris (Motif). 16348# /usr/lesstif is used on Linux (Lesstif). 16349# /usr/openwin is used on Solaris (X and Athena). 16350# Other directories are just guesses. 16351for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ 16352 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ 16353 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ 16354 /usr/dt/lib /usr/openwin/lib \ 16355 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ 16356 /usr/lesstif*/lib /usr/lib/Lesstif* \ 16357 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ 16358 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do 16359 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then 16360 xdvi_cv_motif_libdir=$dir 16361 break 16362 fi 16363done 16364fi 16365rm -f core conftest.err conftest.$ac_objext \ 16366 conftest$ac_exeext conftest.$ac_ext 16367# 16368LIBS=$xdvi_motif_save_LIBS 16369CFLAGS=$xdvi_motif_save_CFLAGS 16370CPPFLAGS=$xdvi_motif_save_CPPFLAGS 16371LDFLAGS=$xdvi_motif_save_LDFLAGS 16372fi 16373 16374# 16375motif_libdir="$xdvi_cv_motif_libdir" 16376 16377fi 16378# 16379# Report the results of headers and libraries. 16380# 16381xdvi_have_motif=yes 16382# 16383motif_libdir_result=$motif_libdir 16384if test "x$motif_libdir_result" = xdefault; then 16385 motif_libdir_result="in default path" 16386elif test "x$motif_libdir_result" = xno; then 16387 motif_libdir_result="(none)" 16388 xdvi_have_motif=no 16389fi 16390# 16391motif_include_result=$motif_include 16392if test "x$motif_include_result" = xdefault; then 16393 motif_include_result="in default path" 16394elif test "x$motif_include_result" = xno; then 16395 motif_include_result="(none)" 16396 xdvi_have_motif=no 16397fi 16398# 16399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libdir_result, headers $motif_include_result" >&5 16400$as_echo "libraries $motif_libdir_result, headers $motif_include_result" >&6; } 16401# 16402if test "x$xdvi_have_motif" = xyes; then 16403 # 16404 # Add Motif definition to X_LIBS 16405 # 16406 if test "x$motif_libdir" != xdefault \ 16407 && test "x$motif_libdir" != "x$x_libraries" && test "x$motif_libdir" != no 16408 then 16409 case "$X_LIBS" in 16410 *-R\ *) X_LIBS="-L$motif_libdir -R $motif_libdir $X_LIBS";; 16411 *-R*) X_LIBS="-L$motif_libdir -R$motif_libdir $X_LIBS";; 16412 *) X_LIBS="-L$motif_libdir $X_LIBS";; 16413 esac 16414 fi 16415 # 16416 prog_extension="motif" 16417 16418$as_echo "#define MOTIF 1" >>confdefs.h 16419 16420 x_tool_libs="-lXm" 16421 if test "x$x_xp_lib" != x; then 16422 # check if libXm requires libXp 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libXm requires libXp" >&5 16424$as_echo_n "checking if libXm requires libXp... " >&6; } 16425if ${xdvi_cv_motif_xp+:} false; then : 16426 $as_echo_n "(cached) " >&6 16427else 16428 xdvi_motif_save_LIBS=$LIBS 16429xdvi_motif_save_CFLAGS=$CFLAGS 16430xdvi_motif_save_CPPFLAGS=$CPPFLAGS 16431xdvi_motif_save_LDFLAGS=$LDFLAGS 16432# 16433LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" 16434CFLAGS="$X_CFLAGS $CFLAGS" 16435CPPFLAGS="$X_CFLAGS $CPPFLAGS" 16436LDFLAGS="$X_LIBS $LDFLAGS" 16437# 16438# We use XtToolkitInitialize() here since it takes no arguments 16439# and thus also works with a C++ compiler. 16440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442#include <X11/Intrinsic.h> 16443#include <Xm/Xm.h> 16444int 16445main () 16446{ 16447XtToolkitInitialize(); 16448 ; 16449 return 0; 16450} 16451_ACEOF 16452if ac_fn_c_try_link "$LINENO"; then : 16453 xdvi_cv_motif_xp=no 16454else 16455 xdvi_cv_motif_xp=yes 16456fi 16457rm -f core conftest.err conftest.$ac_objext \ 16458 conftest$ac_exeext conftest.$ac_ext 16459# 16460LIBS=$xdvi_motif_save_LIBS 16461CFLAGS=$xdvi_motif_save_CFLAGS 16462CPPFLAGS=$xdvi_motif_save_CPPFLAGS 16463LDFLAGS=$xdvi_motif_save_LDFLAGS 16464fi 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_motif_xp" >&5 16466$as_echo "$xdvi_cv_motif_xp" >&6; } 16467if test "x$xdvi_cv_motif_xp" = xyes; then 16468 x_tool_libs="$x_tool_libs $x_xp_lib" 16469fi 16470 16471 fi 16472 # now warn if we're using LessTif (see LESSTIF-BUGS for why ...) 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif" >&5 16474$as_echo_n "checking for LessTif... " >&6; } 16475if ${xdvi_cv_using_lesstif+:} false; then : 16476 $as_echo_n "(cached) " >&6 16477else 16478 save_CPPFLAGS=$CPPFLAGS 16479CPPFLAGS="$CPPFLAGS $X_CFLAGS" 16480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16481/* end confdefs.h. */ 16482#include <X11/X.h> 16483#include <X11/Xlib.h> 16484#include <X11/Xutil.h> 16485#include <X11/Xos.h> 16486#include <X11/Intrinsic.h> 16487#include <Xm/Xm.h> 16488int 16489main () 16490{ 16491const char *p = LesstifVERSION_STRING; 16492 ; 16493 return 0; 16494} 16495_ACEOF 16496if ac_fn_c_try_compile "$LINENO"; then : 16497 xdvi_cv_using_lesstif=yes 16498else 16499 xdvi_cv_using_lesstif=no 16500fi 16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16502CPPFLAGS=$save_CPPFLAGS 16503fi 16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_using_lesstif" >&5 16505$as_echo "$xdvi_cv_using_lesstif" >&6; } 16506if test "x$xdvi_cv_using_lesstif" = xyes; then 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LessTif header detected. 16508 ***************************************************************** 16509 * Warning: You are using LessTif instead of OpenMotif. * 16510 * Some GUI elements might be broken; please see the file * 16511 * * 16512 * texk/xdvik/LESSTIF-BUGS * 16513 * * 16514 * for more information. * 16515 *****************************************************************" >&5 16516$as_echo "$as_me: WARNING: LessTif header detected. 16517 ***************************************************************** 16518 * Warning: You are using LessTif instead of OpenMotif. * 16519 * Some GUI elements might be broken; please see the file * 16520 * * 16521 * texk/xdvik/LESSTIF-BUGS * 16522 * * 16523 * for more information. * 16524 *****************************************************************" >&2;} 16525fi 16526 16527 # Check whether to compile for Motif with Xaw Panner. 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in panner (requires Xaw)" >&5 16529$as_echo_n "checking whether to compile in panner (requires Xaw)... " >&6; } 16530if ${xdvi_cv_use_xaw_panner+:} false; then : 16531 $as_echo_n "(cached) " >&6 16532else 16533 save_CPPFLAGS=$CPPFLAGS 16534CPPFLAGS="$CPPFLAGS $X_CFLAGS" 16535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16536/* end confdefs.h. */ 16537#include <X11/X.h> 16538#include <X11/Xlib.h> 16539#include <X11/Xutil.h> 16540#include <X11/Xos.h> 16541#include <X11/Xfuncs.h> 16542#include <X11/Intrinsic.h> 16543#include <X11/Xaw/Reports.h> 16544int 16545main () 16546{ 16547 16548 ; 16549 return 0; 16550} 16551_ACEOF 16552if ac_fn_c_try_compile "$LINENO"; then : 16553 xdvi_cv_use_xaw_panner=yes 16554else 16555 xdvi_cv_use_xaw_panner=no 16556fi 16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16558CPPFLAGS=$save_CPPFLAGS 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_use_xaw_panner" >&5 16561$as_echo "$xdvi_cv_use_xaw_panner" >&6; } 16562if test "x$xdvi_cv_use_xaw_panner" = xyes; then 16563 16564$as_echo "#define USE_XAW_PANNER 1" >>confdefs.h 16565 16566fi 16567 16568elif test "x$default_toolkit" = xnone; then 16569 as_fn_error $? "No Motif." "$LINENO" 5 16570else 16571 # Restore previous X_CFLAGS 16572 X_CFLAGS=$xdvi_motif_save_X_CFLAGS 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: No Motif, using Xaw." >&5 16574$as_echo "$as_me: No Motif, using Xaw." >&6;} 16575 with_xdvi_x_toolkit="xaw" 16576fi 16577 16578 16579 fi 16580 if test "x$with_xdvi_x_toolkit" = xxaw; then 16581 # Requested or fallback to Xaw, check for library 16582 16583if test "x$xdvi_have_xaw" = xyes; then 16584 # First try without libXp 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawInitializeWidgetSet in -lXaw" >&5 16586$as_echo_n "checking for XawInitializeWidgetSet in -lXaw... " >&6; } 16587if ${ac_cv_lib_Xaw_XawInitializeWidgetSet+:} false; then : 16588 $as_echo_n "(cached) " >&6 16589else 16590 ac_check_lib_save_LIBS=$LIBS 16591LIBS="-lXaw $x_xmu_lib -lXt $X_PRE_LIBS $x_ext_lib $x_xpm_libs -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS" 16592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16593/* end confdefs.h. */ 16594 16595/* Override any GCC internal prototype to avoid an error. 16596 Use char because int might match the return type of a GCC 16597 builtin and then its argument prototype would still apply. */ 16598#ifdef __cplusplus 16599extern "C" 16600#endif 16601char XawInitializeWidgetSet (); 16602int 16603main () 16604{ 16605return XawInitializeWidgetSet (); 16606 ; 16607 return 0; 16608} 16609_ACEOF 16610if ac_fn_c_try_link "$LINENO"; then : 16611 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes 16612else 16613 ac_cv_lib_Xaw_XawInitializeWidgetSet=no 16614fi 16615rm -f core conftest.err conftest.$ac_objext \ 16616 conftest$ac_exeext conftest.$ac_ext 16617LIBS=$ac_check_lib_save_LIBS 16618fi 16619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5 16620$as_echo "$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; } 16621if test "x$ac_cv_lib_Xaw_XawInitializeWidgetSet" = xyes; then : 16622 x_tool_libs="-lXaw" 16623else 16624 # libXaw without libXp failed 16625 if test "x$x_xp_lib" = x; then 16626 xdvi_have_xaw=no 16627 else 16628 # Now try with libXp 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawTextReplace in -lXaw" >&5 16630$as_echo_n "checking for XawTextReplace in -lXaw... " >&6; } 16631if ${ac_cv_lib_Xaw_XawTextReplace+:} false; then : 16632 $as_echo_n "(cached) " >&6 16633else 16634 ac_check_lib_save_LIBS=$LIBS 16635LIBS="-lXaw $x_xp_lib $x_xmu_lib -lXt $X_PRE_LIBS $x_ext_lib $x_xpm_libs -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS" 16636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16637/* end confdefs.h. */ 16638 16639/* Override any GCC internal prototype to avoid an error. 16640 Use char because int might match the return type of a GCC 16641 builtin and then its argument prototype would still apply. */ 16642#ifdef __cplusplus 16643extern "C" 16644#endif 16645char XawTextReplace (); 16646int 16647main () 16648{ 16649return XawTextReplace (); 16650 ; 16651 return 0; 16652} 16653_ACEOF 16654if ac_fn_c_try_link "$LINENO"; then : 16655 ac_cv_lib_Xaw_XawTextReplace=yes 16656else 16657 ac_cv_lib_Xaw_XawTextReplace=no 16658fi 16659rm -f core conftest.err conftest.$ac_objext \ 16660 conftest$ac_exeext conftest.$ac_ext 16661LIBS=$ac_check_lib_save_LIBS 16662fi 16663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawTextReplace" >&5 16664$as_echo "$ac_cv_lib_Xaw_XawTextReplace" >&6; } 16665if test "x$ac_cv_lib_Xaw_XawTextReplace" = xyes; then : 16666 x_tool_libs="-lXaw $x_xp_lib" 16667else 16668 xdvi_have_xaw=no 16669fi 16670 16671 fi 16672fi 16673 16674fi 16675if test "x$xdvi_have_xaw" = xyes; then 16676 prog_extension="xaw" 16677 16678$as_echo "#define XAW 1" >>confdefs.h 16679 16680else 16681 as_fn_error $? "Sorry, you will need at least the Xaw header/library files to compile xdvik." "$LINENO" 5 16682fi 16683 16684 fi 16685fi 16686 16687final_exec_name="xdvi-$prog_extension" 16688program_transform_name="'s,xdvi-bin,$final_exec_name,'" 16689 16690 16691 16692 16693 16694# If we're on Solaris and we want DPS, then add the extra compilation stuff 16695# to get it. 16696if echo "$PS_DEF" | grep PS_DPS >/dev/null; then 16697 if test "`(uname) 2>/dev/null`" = SunOS \ 16698 && uname -r | grep '^5' >/dev/null; then 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: adding DPS includes and libraries for Solaris" >&5 16700$as_echo "$as_me: adding DPS includes and libraries for Solaris" >&6;} 16701 X_CFLAGS="$X_CFLAGS -I/usr/openwin/include/X11" 16702 X_LIBS="$X_LIBS -R/usr/openwin/lib /usr/openwin/lib/libdps.so $ac_sunmath" 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lsunmath" >&5 16704$as_echo_n "checking for isinf in -lsunmath... " >&6; } 16705if ${ac_cv_lib_sunmath_isinf+:} false; then : 16706 $as_echo_n "(cached) " >&6 16707else 16708 ac_check_lib_save_LIBS=$LIBS 16709LIBS="-lsunmath $LIBS" 16710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712 16713/* Override any GCC internal prototype to avoid an error. 16714 Use char because int might match the return type of a GCC 16715 builtin and then its argument prototype would still apply. */ 16716#ifdef __cplusplus 16717extern "C" 16718#endif 16719char isinf (); 16720int 16721main () 16722{ 16723return isinf (); 16724 ; 16725 return 0; 16726} 16727_ACEOF 16728if ac_fn_c_try_link "$LINENO"; then : 16729 ac_cv_lib_sunmath_isinf=yes 16730else 16731 ac_cv_lib_sunmath_isinf=no 16732fi 16733rm -f core conftest.err conftest.$ac_objext \ 16734 conftest$ac_exeext conftest.$ac_ext 16735LIBS=$ac_check_lib_save_LIBS 16736fi 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_isinf" >&5 16738$as_echo "$ac_cv_lib_sunmath_isinf" >&6; } 16739if test "x$ac_cv_lib_sunmath_isinf" = xyes; then : 16740 X_LIBS="$X_LIBS -lsunmath" 16741fi 16742 16743 for ac_func in isinf 16744do : 16745 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf" 16746if test "x$ac_cv_func_isinf" = xyes; then : 16747 cat >>confdefs.h <<_ACEOF 16748#define HAVE_ISINF 1 16749_ACEOF 16750 16751fi 16752done 16753 16754 for ac_header in ieeefp.h 16755do : 16756 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" 16757if test "x$ac_cv_header_ieeefp_h" = xyes; then : 16758 cat >>confdefs.h <<_ACEOF 16759#define HAVE_IEEEFP_H 1 16760_ACEOF 16761 16762fi 16763 16764done 16765 16766 else 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: adding DPS libraries for SunOS 4.x" >&5 16768$as_echo "$as_me: adding DPS libraries for SunOS 4.x" >&6;} 16769 X_LIBS="$X_LIBS -ldps" 16770 fi 16771elif echo "$PS_DEF" | grep PS_NEWS >/dev/null; then 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: adding NeWS libraries" >&5 16773$as_echo "$as_me: adding NeWS libraries" >&6;} 16774 X_LIBS="$X_LIBS -lxview -lcps -lolgx -lxvps" 16775fi 16776 16777kpse_save_CPPFLAGS=$CPPFLAGS 16778kpse_save_LIBS=$LIBS 16779 16780## _KPSE_INIT: Initialize TL infrastructure 16781kpse_BLD=`(cd "./../../." && pwd)` 16782kpse_SRC=`(cd "$srcdir/../../." && pwd)` 16783 16784## _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests 16785: ${CONFIG_LT=./config.lt} 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 16787$as_echo "$as_me: creating $CONFIG_LT" >&6;} 16788as_write_fail=0 16789cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 16790#! $SHELL 16791# Generated by $as_me. 16792# Run this file to recreate a libtool stub with the current configuration. 16793SHELL=\${CONFIG_SHELL-$SHELL} 16794export SHELL 16795_ASEOF 16796cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 16797## -------------------- ## 16798## M4sh Initialization. ## 16799## -------------------- ## 16800 16801# Be more Bourne compatible 16802DUALCASE=1; export DUALCASE # for MKS sh 16803if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16804 emulate sh 16805 NULLCMD=: 16806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16807 # is contrary to our usage. Disable this feature. 16808 alias -g '${1+"$@"}'='"$@"' 16809 setopt NO_GLOB_SUBST 16810else 16811 case `(set -o) 2>/dev/null` in #( 16812 *posix*) : 16813 set -o posix ;; #( 16814 *) : 16815 ;; 16816esac 16817fi 16818 16819 16820as_nl=' 16821' 16822export as_nl 16823# Printing a long string crashes Solaris 7 /usr/bin/printf. 16824as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16827# Prefer a ksh shell builtin over an external printf program on Solaris, 16828# but without wasting forks for bash or zsh. 16829if test -z "$BASH_VERSION$ZSH_VERSION" \ 16830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16831 as_echo='print -r --' 16832 as_echo_n='print -rn --' 16833elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16834 as_echo='printf %s\n' 16835 as_echo_n='printf %s' 16836else 16837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16839 as_echo_n='/usr/ucb/echo -n' 16840 else 16841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16842 as_echo_n_body='eval 16843 arg=$1; 16844 case $arg in #( 16845 *"$as_nl"*) 16846 expr "X$arg" : "X\\(.*\\)$as_nl"; 16847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16848 esac; 16849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16850 ' 16851 export as_echo_n_body 16852 as_echo_n='sh -c $as_echo_n_body as_echo' 16853 fi 16854 export as_echo_body 16855 as_echo='sh -c $as_echo_body as_echo' 16856fi 16857 16858# The user is always right. 16859if test "${PATH_SEPARATOR+set}" != set; then 16860 PATH_SEPARATOR=: 16861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16863 PATH_SEPARATOR=';' 16864 } 16865fi 16866 16867 16868# IFS 16869# We need space, tab and new line, in precisely that order. Quoting is 16870# there to prevent editors from complaining about space-tab. 16871# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16872# splitting by setting IFS to empty value.) 16873IFS=" "" $as_nl" 16874 16875# Find who we are. Look in the path if we contain no directory separator. 16876as_myself= 16877case $0 in #(( 16878 *[\\/]* ) as_myself=$0 ;; 16879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16880for as_dir in $PATH 16881do 16882 IFS=$as_save_IFS 16883 test -z "$as_dir" && as_dir=. 16884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16885 done 16886IFS=$as_save_IFS 16887 16888 ;; 16889esac 16890# We did not find ourselves, most probably we were run as `sh COMMAND' 16891# in which case we are not to be found in the path. 16892if test "x$as_myself" = x; then 16893 as_myself=$0 16894fi 16895if test ! -f "$as_myself"; then 16896 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16897 exit 1 16898fi 16899 16900# Unset variables that we do not need and which cause bugs (e.g. in 16901# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16902# suppresses any "Segmentation fault" message there. '((' could 16903# trigger a bug in pdksh 5.2.14. 16904for as_var in BASH_ENV ENV MAIL MAILPATH 16905do eval test x\${$as_var+set} = xset \ 16906 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16907done 16908PS1='$ ' 16909PS2='> ' 16910PS4='+ ' 16911 16912# NLS nuisances. 16913LC_ALL=C 16914export LC_ALL 16915LANGUAGE=C 16916export LANGUAGE 16917 16918# CDPATH. 16919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16920 16921 16922# as_fn_error STATUS ERROR [LINENO LOG_FD] 16923# ---------------------------------------- 16924# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16925# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16926# script with STATUS, using 1 if that was 0. 16927as_fn_error () 16928{ 16929 as_status=$1; test $as_status -eq 0 && as_status=1 16930 if test "$4"; then 16931 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16932 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16933 fi 16934 $as_echo "$as_me: error: $2" >&2 16935 as_fn_exit $as_status 16936} # as_fn_error 16937 16938 16939# as_fn_set_status STATUS 16940# ----------------------- 16941# Set $? to STATUS, without forking. 16942as_fn_set_status () 16943{ 16944 return $1 16945} # as_fn_set_status 16946 16947# as_fn_exit STATUS 16948# ----------------- 16949# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16950as_fn_exit () 16951{ 16952 set +e 16953 as_fn_set_status $1 16954 exit $1 16955} # as_fn_exit 16956 16957# as_fn_unset VAR 16958# --------------- 16959# Portably unset VAR. 16960as_fn_unset () 16961{ 16962 { eval $1=; unset $1;} 16963} 16964as_unset=as_fn_unset 16965# as_fn_append VAR VALUE 16966# ---------------------- 16967# Append the text in VALUE to the end of the definition contained in VAR. Take 16968# advantage of any shell optimizations that allow amortized linear growth over 16969# repeated appends, instead of the typical quadratic growth present in naive 16970# implementations. 16971if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16972 eval 'as_fn_append () 16973 { 16974 eval $1+=\$2 16975 }' 16976else 16977 as_fn_append () 16978 { 16979 eval $1=\$$1\$2 16980 } 16981fi # as_fn_append 16982 16983# as_fn_arith ARG... 16984# ------------------ 16985# Perform arithmetic evaluation on the ARGs, and store the result in the 16986# global $as_val. Take advantage of shells that can avoid forks. The arguments 16987# must be portable across $(()) and expr. 16988if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16989 eval 'as_fn_arith () 16990 { 16991 as_val=$(( $* )) 16992 }' 16993else 16994 as_fn_arith () 16995 { 16996 as_val=`expr "$@" || test $? -eq 1` 16997 } 16998fi # as_fn_arith 16999 17000 17001if expr a : '\(a\)' >/dev/null 2>&1 && 17002 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17003 as_expr=expr 17004else 17005 as_expr=false 17006fi 17007 17008if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17009 as_basename=basename 17010else 17011 as_basename=false 17012fi 17013 17014if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17015 as_dirname=dirname 17016else 17017 as_dirname=false 17018fi 17019 17020as_me=`$as_basename -- "$0" || 17021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17022 X"$0" : 'X\(//\)$' \| \ 17023 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17024$as_echo X/"$0" | 17025 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17026 s//\1/ 17027 q 17028 } 17029 /^X\/\(\/\/\)$/{ 17030 s//\1/ 17031 q 17032 } 17033 /^X\/\(\/\).*/{ 17034 s//\1/ 17035 q 17036 } 17037 s/.*/./; q'` 17038 17039# Avoid depending upon Character Ranges. 17040as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17041as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17042as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17043as_cr_digits='0123456789' 17044as_cr_alnum=$as_cr_Letters$as_cr_digits 17045 17046ECHO_C= ECHO_N= ECHO_T= 17047case `echo -n x` in #((((( 17048-n*) 17049 case `echo 'xy\c'` in 17050 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17051 xy) ECHO_C='\c';; 17052 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17053 ECHO_T=' ';; 17054 esac;; 17055*) 17056 ECHO_N='-n';; 17057esac 17058 17059rm -f conf$$ conf$$.exe conf$$.file 17060if test -d conf$$.dir; then 17061 rm -f conf$$.dir/conf$$.file 17062else 17063 rm -f conf$$.dir 17064 mkdir conf$$.dir 2>/dev/null 17065fi 17066if (echo >conf$$.file) 2>/dev/null; then 17067 if ln -s conf$$.file conf$$ 2>/dev/null; then 17068 as_ln_s='ln -s' 17069 # ... but there are two gotchas: 17070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17072 # In both cases, we have to default to `cp -pR'. 17073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17074 as_ln_s='cp -pR' 17075 elif ln conf$$.file conf$$ 2>/dev/null; then 17076 as_ln_s=ln 17077 else 17078 as_ln_s='cp -pR' 17079 fi 17080else 17081 as_ln_s='cp -pR' 17082fi 17083rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17084rmdir conf$$.dir 2>/dev/null 17085 17086 17087# as_fn_mkdir_p 17088# ------------- 17089# Create "$as_dir" as a directory, including parents if necessary. 17090as_fn_mkdir_p () 17091{ 17092 17093 case $as_dir in #( 17094 -*) as_dir=./$as_dir;; 17095 esac 17096 test -d "$as_dir" || eval $as_mkdir_p || { 17097 as_dirs= 17098 while :; do 17099 case $as_dir in #( 17100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17101 *) as_qdir=$as_dir;; 17102 esac 17103 as_dirs="'$as_qdir' $as_dirs" 17104 as_dir=`$as_dirname -- "$as_dir" || 17105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17106 X"$as_dir" : 'X\(//\)[^/]' \| \ 17107 X"$as_dir" : 'X\(//\)$' \| \ 17108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17109$as_echo X"$as_dir" | 17110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17111 s//\1/ 17112 q 17113 } 17114 /^X\(\/\/\)[^/].*/{ 17115 s//\1/ 17116 q 17117 } 17118 /^X\(\/\/\)$/{ 17119 s//\1/ 17120 q 17121 } 17122 /^X\(\/\).*/{ 17123 s//\1/ 17124 q 17125 } 17126 s/.*/./; q'` 17127 test -d "$as_dir" && break 17128 done 17129 test -z "$as_dirs" || eval "mkdir $as_dirs" 17130 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17131 17132 17133} # as_fn_mkdir_p 17134if mkdir -p . 2>/dev/null; then 17135 as_mkdir_p='mkdir -p "$as_dir"' 17136else 17137 test -d ./-p && rmdir ./-p 17138 as_mkdir_p=false 17139fi 17140 17141 17142# as_fn_executable_p FILE 17143# ----------------------- 17144# Test if FILE is an executable regular file. 17145as_fn_executable_p () 17146{ 17147 test -f "$1" && test -x "$1" 17148} # as_fn_executable_p 17149as_test_x='test -x' 17150as_executable_p=as_fn_executable_p 17151 17152# Sed expression to map a string onto a valid CPP name. 17153as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17154 17155# Sed expression to map a string onto a valid variable name. 17156as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17157 17158 17159exec 6>&1 17160## --------------------------------- ## 17161## Main body of "$CONFIG_LT" script. ## 17162## --------------------------------- ## 17163_ASEOF 17164test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 17165 17166cat >>"$CONFIG_LT" <<\_LTEOF 17167lt_cl_silent=false 17168exec 5>>config.log 17169{ 17170 echo 17171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17172## Running $as_me. ## 17173_ASBOX 17174} >&5 17175 17176lt_cl_help="\ 17177\`$as_me' creates a local libtool stub from the current configuration, 17178for use in further configure time tests before the real libtool is 17179generated. 17180 17181Usage: $0 [OPTIONS] 17182 17183 -h, --help print this help, then exit 17184 -V, --version print version number, then exit 17185 -q, --quiet do not print progress messages 17186 -d, --debug don't remove temporary files 17187 17188Report bugs to <bug-libtool@gnu.org>." 17189 17190lt_cl_version="\ 17191xdvik config.lt 22.87 17192configured by $0, generated by GNU Autoconf 2.69. 17193 17194Copyright (C) 2011 Free Software Foundation, Inc. 17195This config.lt script is free software; the Free Software Foundation 17196gives unlimited permision to copy, distribute and modify it." 17197 17198while test $# != 0 17199do 17200 case $1 in 17201 --version | --v* | -V ) 17202 echo "$lt_cl_version"; exit 0 ;; 17203 --help | --h* | -h ) 17204 echo "$lt_cl_help"; exit 0 ;; 17205 --debug | --d* | -d ) 17206 debug=: ;; 17207 --quiet | --q* | --silent | --s* | -q ) 17208 lt_cl_silent=: ;; 17209 17210 -*) as_fn_error $? "unrecognized option: $1 17211Try \`$0 --help' for more information." "$LINENO" 5 ;; 17212 17213 *) as_fn_error $? "unrecognized argument: $1 17214Try \`$0 --help' for more information." "$LINENO" 5 ;; 17215 esac 17216 shift 17217done 17218 17219if $lt_cl_silent; then 17220 exec 6>/dev/null 17221fi 17222_LTEOF 17223 17224cat >>"$CONFIG_LT" <<_LTEOF 17225 17226 17227# The HP-UX ksh and POSIX shell print the target directory to stdout 17228# if CDPATH is set. 17229(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17230 17231sed_quote_subst='$sed_quote_subst' 17232double_quote_subst='$double_quote_subst' 17233delay_variable_subst='$delay_variable_subst' 17234macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17235macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17236AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17237DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17238OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17239enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17240enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17241pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17242enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17243SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17244ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17245PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17246host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17247host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17248host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17249build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17250build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17251build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17252SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17253Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17254GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17255EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17256FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17257LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17258NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17259LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17260max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17261ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17262exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17263lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17264lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17265lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17266lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17267lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17268reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17269reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17270deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17271file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17272file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17273want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17274sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17275AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17276AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17277archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17278STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17279RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17280old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17281old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17282old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17283lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17284CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17285CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17286compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17287GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17288lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17289lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17290lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17291lt_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"`' 17292nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17293lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17294objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17295MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17296lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17297lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17298lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17299lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17300lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17301need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17302MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17303DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17304NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17305LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17306OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17307OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17308libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17309shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17310extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17311archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17312enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17313export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17314whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17315compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17316old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17317old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17318archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17319archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17320module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17321module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17322with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17323allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17324no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17325hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17326hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17327hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17328hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17329hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17330hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17331hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17332inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17333link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17334always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17335export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17336exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17337include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17338prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17339postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17340file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17341variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17342need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17343need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17344version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17345runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17346shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17347shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17348libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17349library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17350soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17351install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17352postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17353postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17354finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17355finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17356hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17357sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17358sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17359hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17360enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17361enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17362enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17363old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17364striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17365 17366LTCC='$LTCC' 17367LTCFLAGS='$LTCFLAGS' 17368compiler='$compiler_DEFAULT' 17369 17370# A function that is used when there is no print builtin or printf. 17371func_fallback_echo () 17372{ 17373 eval 'cat <<_LTECHO_EOF 17374\$1 17375_LTECHO_EOF' 17376} 17377 17378# Quote evaled strings. 17379for var in AS \ 17380DLLTOOL \ 17381OBJDUMP \ 17382SHELL \ 17383ECHO \ 17384PATH_SEPARATOR \ 17385SED \ 17386GREP \ 17387EGREP \ 17388FGREP \ 17389LD \ 17390NM \ 17391LN_S \ 17392lt_SP2NL \ 17393lt_NL2SP \ 17394reload_flag \ 17395deplibs_check_method \ 17396file_magic_cmd \ 17397file_magic_glob \ 17398want_nocaseglob \ 17399sharedlib_from_linklib_cmd \ 17400AR \ 17401AR_FLAGS \ 17402archiver_list_spec \ 17403STRIP \ 17404RANLIB \ 17405CC \ 17406CFLAGS \ 17407compiler \ 17408lt_cv_sys_global_symbol_pipe \ 17409lt_cv_sys_global_symbol_to_cdecl \ 17410lt_cv_sys_global_symbol_to_c_name_address \ 17411lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17412nm_file_list_spec \ 17413lt_prog_compiler_no_builtin_flag \ 17414lt_prog_compiler_pic \ 17415lt_prog_compiler_wl \ 17416lt_prog_compiler_static \ 17417lt_cv_prog_compiler_c_o \ 17418need_locks \ 17419MANIFEST_TOOL \ 17420DSYMUTIL \ 17421NMEDIT \ 17422LIPO \ 17423OTOOL \ 17424OTOOL64 \ 17425shrext_cmds \ 17426export_dynamic_flag_spec \ 17427whole_archive_flag_spec \ 17428compiler_needs_object \ 17429with_gnu_ld \ 17430allow_undefined_flag \ 17431no_undefined_flag \ 17432hardcode_libdir_flag_spec \ 17433hardcode_libdir_separator \ 17434exclude_expsyms \ 17435include_expsyms \ 17436file_list_spec \ 17437variables_saved_for_relink \ 17438libname_spec \ 17439library_names_spec \ 17440soname_spec \ 17441install_override_mode \ 17442finish_eval \ 17443old_striplib \ 17444striplib; do 17445 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17446 *[\\\\\\\`\\"\\\$]*) 17447 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17448 ;; 17449 *) 17450 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17451 ;; 17452 esac 17453done 17454 17455# Double-quote double-evaled strings. 17456for var in reload_cmds \ 17457old_postinstall_cmds \ 17458old_postuninstall_cmds \ 17459old_archive_cmds \ 17460extract_expsyms_cmds \ 17461old_archive_from_new_cmds \ 17462old_archive_from_expsyms_cmds \ 17463archive_cmds \ 17464archive_expsym_cmds \ 17465module_cmds \ 17466module_expsym_cmds \ 17467export_symbols_cmds \ 17468prelink_cmds \ 17469postlink_cmds \ 17470postinstall_cmds \ 17471postuninstall_cmds \ 17472finish_cmds \ 17473sys_lib_search_path_spec \ 17474sys_lib_dlsearch_path_spec; do 17475 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17476 *[\\\\\\\`\\"\\\$]*) 17477 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17478 ;; 17479 *) 17480 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17481 ;; 17482 esac 17483done 17484 17485ac_aux_dir='$ac_aux_dir' 17486xsi_shell='$xsi_shell' 17487lt_shell_append='$lt_shell_append' 17488 17489# See if we are running on zsh, and set the options which allow our 17490# commands through without removal of \ escapes INIT. 17491if test -n "\${ZSH_VERSION+set}" ; then 17492 setopt NO_GLOB_SUBST 17493fi 17494 17495 17496 PACKAGE='$PACKAGE' 17497 VERSION='$VERSION' 17498 TIMESTAMP='$TIMESTAMP' 17499 RM='$RM' 17500 ofile='$ofile' 17501 17502 17503 17504_LTEOF 17505 17506cat >>"$CONFIG_LT" <<\_LTEOF 17507{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 17508$as_echo "$as_me: creating $ofile" >&6;} 17509 17510 17511 # See if we are running on zsh, and set the options which allow our 17512 # commands through without removal of \ escapes. 17513 if test -n "${ZSH_VERSION+set}" ; then 17514 setopt NO_GLOB_SUBST 17515 fi 17516 17517 cfgfile="${ofile}T" 17518 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17519 $RM "$cfgfile" 17520 17521 cat <<_LT_EOF >> "$cfgfile" 17522#! $SHELL 17523 17524# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17525# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17526# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17527# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17528# 17529# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17530# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17531# Foundation, Inc. 17532# Written by Gordon Matzigkeit, 1996 17533# 17534# This file is part of GNU Libtool. 17535# 17536# GNU Libtool is free software; you can redistribute it and/or 17537# modify it under the terms of the GNU General Public License as 17538# published by the Free Software Foundation; either version 2 of 17539# the License, or (at your option) any later version. 17540# 17541# As a special exception to the GNU General Public License, 17542# if you distribute this file as part of a program or library that 17543# is built using GNU Libtool, you may include this file under the 17544# same distribution terms that you use for the rest of that program. 17545# 17546# GNU Libtool is distributed in the hope that it will be useful, 17547# but WITHOUT ANY WARRANTY; without even the implied warranty of 17548# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17549# GNU General Public License for more details. 17550# 17551# You should have received a copy of the GNU General Public License 17552# along with GNU Libtool; see the file COPYING. If not, a copy 17553# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17554# obtained by writing to the Free Software Foundation, Inc., 17555# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17556 17557 17558# The names of the tagged configurations supported by this script. 17559available_tags="" 17560 17561# ### BEGIN LIBTOOL CONFIG 17562 17563# Which release of libtool.m4 was used? 17564macro_version=$macro_version 17565macro_revision=$macro_revision 17566 17567# Assembler program. 17568AS=$lt_AS 17569 17570# DLL creation program. 17571DLLTOOL=$lt_DLLTOOL 17572 17573# Object dumper program. 17574OBJDUMP=$lt_OBJDUMP 17575 17576# Whether or not to build shared libraries. 17577build_libtool_libs=$enable_shared 17578 17579# Whether or not to build static libraries. 17580build_old_libs=$enable_static 17581 17582# What type of objects to build. 17583pic_mode=$pic_mode 17584 17585# Whether or not to optimize for fast installation. 17586fast_install=$enable_fast_install 17587 17588# Shell to use when invoking shell scripts. 17589SHELL=$lt_SHELL 17590 17591# An echo program that protects backslashes. 17592ECHO=$lt_ECHO 17593 17594# The PATH separator for the build system. 17595PATH_SEPARATOR=$lt_PATH_SEPARATOR 17596 17597# The host system. 17598host_alias=$host_alias 17599host=$host 17600host_os=$host_os 17601 17602# The build system. 17603build_alias=$build_alias 17604build=$build 17605build_os=$build_os 17606 17607# A sed program that does not truncate output. 17608SED=$lt_SED 17609 17610# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17611Xsed="\$SED -e 1s/^X//" 17612 17613# A grep program that handles long lines. 17614GREP=$lt_GREP 17615 17616# An ERE matcher. 17617EGREP=$lt_EGREP 17618 17619# A literal string matcher. 17620FGREP=$lt_FGREP 17621 17622# A BSD- or MS-compatible name lister. 17623NM=$lt_NM 17624 17625# Whether we need soft or hard links. 17626LN_S=$lt_LN_S 17627 17628# What is the maximum length of a command? 17629max_cmd_len=$max_cmd_len 17630 17631# Object file suffix (normally "o"). 17632objext=$ac_objext 17633 17634# Executable file suffix (normally ""). 17635exeext=$exeext 17636 17637# whether the shell understands "unset". 17638lt_unset=$lt_unset 17639 17640# turn spaces into newlines. 17641SP2NL=$lt_lt_SP2NL 17642 17643# turn newlines into spaces. 17644NL2SP=$lt_lt_NL2SP 17645 17646# convert \$build file names to \$host format. 17647to_host_file_cmd=$lt_cv_to_host_file_cmd 17648 17649# convert \$build files to toolchain format. 17650to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17651 17652# Method to check whether dependent libraries are shared objects. 17653deplibs_check_method=$lt_deplibs_check_method 17654 17655# Command to use when deplibs_check_method = "file_magic". 17656file_magic_cmd=$lt_file_magic_cmd 17657 17658# How to find potential files when deplibs_check_method = "file_magic". 17659file_magic_glob=$lt_file_magic_glob 17660 17661# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17662want_nocaseglob=$lt_want_nocaseglob 17663 17664# Command to associate shared and link libraries. 17665sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17666 17667# The archiver. 17668AR=$lt_AR 17669 17670# Flags to create an archive. 17671AR_FLAGS=$lt_AR_FLAGS 17672 17673# How to feed a file listing to the archiver. 17674archiver_list_spec=$lt_archiver_list_spec 17675 17676# A symbol stripping program. 17677STRIP=$lt_STRIP 17678 17679# Commands used to install an old-style archive. 17680RANLIB=$lt_RANLIB 17681old_postinstall_cmds=$lt_old_postinstall_cmds 17682old_postuninstall_cmds=$lt_old_postuninstall_cmds 17683 17684# Whether to use a lock for old archive extraction. 17685lock_old_archive_extraction=$lock_old_archive_extraction 17686 17687# A C compiler. 17688LTCC=$lt_CC 17689 17690# LTCC compiler flags. 17691LTCFLAGS=$lt_CFLAGS 17692 17693# Take the output of nm and produce a listing of raw symbols and C names. 17694global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17695 17696# Transform the output of nm in a proper C declaration. 17697global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17698 17699# Transform the output of nm in a C name address pair. 17700global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17701 17702# Transform the output of nm in a C name address pair when lib prefix is needed. 17703global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17704 17705# Specify filename containing input files for \$NM. 17706nm_file_list_spec=$lt_nm_file_list_spec 17707 17708# The root where to search for dependent libraries,and in which our libraries should be installed. 17709lt_sysroot=$lt_sysroot 17710 17711# The name of the directory that contains temporary libtool files. 17712objdir=$objdir 17713 17714# Used to examine libraries when file_magic_cmd begins with "file". 17715MAGIC_CMD=$MAGIC_CMD 17716 17717# Must we lock files when doing compilation? 17718need_locks=$lt_need_locks 17719 17720# Manifest tool. 17721MANIFEST_TOOL=$lt_MANIFEST_TOOL 17722 17723# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17724DSYMUTIL=$lt_DSYMUTIL 17725 17726# Tool to change global to local symbols on Mac OS X. 17727NMEDIT=$lt_NMEDIT 17728 17729# Tool to manipulate fat objects and archives on Mac OS X. 17730LIPO=$lt_LIPO 17731 17732# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17733OTOOL=$lt_OTOOL 17734 17735# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17736OTOOL64=$lt_OTOOL64 17737 17738# Old archive suffix (normally "a"). 17739libext=$libext 17740 17741# Shared library suffix (normally ".so"). 17742shrext_cmds=$lt_shrext_cmds 17743 17744# The commands to extract the exported symbol list from a shared archive. 17745extract_expsyms_cmds=$lt_extract_expsyms_cmds 17746 17747# Variables whose values should be saved in libtool wrapper scripts and 17748# restored at link time. 17749variables_saved_for_relink=$lt_variables_saved_for_relink 17750 17751# Do we need the "lib" prefix for modules? 17752need_lib_prefix=$need_lib_prefix 17753 17754# Do we need a version for libraries? 17755need_version=$need_version 17756 17757# Library versioning type. 17758version_type=$version_type 17759 17760# Shared library runtime path variable. 17761runpath_var=$runpath_var 17762 17763# Shared library path variable. 17764shlibpath_var=$shlibpath_var 17765 17766# Is shlibpath searched before the hard-coded library search path? 17767shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17768 17769# Format of library name prefix. 17770libname_spec=$lt_libname_spec 17771 17772# List of archive names. First name is the real one, the rest are links. 17773# The last name is the one that the linker finds with -lNAME 17774library_names_spec=$lt_library_names_spec 17775 17776# The coded name of the library, if different from the real name. 17777soname_spec=$lt_soname_spec 17778 17779# Permission mode override for installation of shared libraries. 17780install_override_mode=$lt_install_override_mode 17781 17782# Command to use after installation of a shared archive. 17783postinstall_cmds=$lt_postinstall_cmds 17784 17785# Command to use after uninstallation of a shared archive. 17786postuninstall_cmds=$lt_postuninstall_cmds 17787 17788# Commands used to finish a libtool library installation in a directory. 17789finish_cmds=$lt_finish_cmds 17790 17791# As "finish_cmds", except a single script fragment to be evaled but 17792# not shown. 17793finish_eval=$lt_finish_eval 17794 17795# Whether we should hardcode library paths into libraries. 17796hardcode_into_libs=$hardcode_into_libs 17797 17798# Compile-time system search path for libraries. 17799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17800 17801# Run-time system search path for libraries. 17802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17803 17804# Whether dlopen is supported. 17805dlopen_support=$enable_dlopen 17806 17807# Whether dlopen of programs is supported. 17808dlopen_self=$enable_dlopen_self 17809 17810# Whether dlopen of statically linked programs is supported. 17811dlopen_self_static=$enable_dlopen_self_static 17812 17813# Commands to strip libraries. 17814old_striplib=$lt_old_striplib 17815striplib=$lt_striplib 17816 17817 17818# The linker used to build libraries. 17819LD=$lt_LD 17820 17821# How to create reloadable object files. 17822reload_flag=$lt_reload_flag 17823reload_cmds=$lt_reload_cmds 17824 17825# Commands used to build an old-style archive. 17826old_archive_cmds=$lt_old_archive_cmds 17827 17828# A language specific compiler. 17829CC=$lt_compiler 17830 17831# Is the compiler the GNU compiler? 17832with_gcc=$GCC 17833 17834# Compiler flag to turn off builtin functions. 17835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17836 17837# Additional compiler flags for building library objects. 17838pic_flag=$lt_lt_prog_compiler_pic 17839 17840# How to pass a linker flag through the compiler. 17841wl=$lt_lt_prog_compiler_wl 17842 17843# Compiler flag to prevent dynamic linking. 17844link_static_flag=$lt_lt_prog_compiler_static 17845 17846# Does compiler simultaneously support -c and -o options? 17847compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17848 17849# Whether or not to add -lc for building shared libraries. 17850build_libtool_need_lc=$archive_cmds_need_lc 17851 17852# Whether or not to disallow shared libs when runtime libs are static. 17853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17854 17855# Compiler flag to allow reflexive dlopens. 17856export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17857 17858# Compiler flag to generate shared objects directly from archives. 17859whole_archive_flag_spec=$lt_whole_archive_flag_spec 17860 17861# Whether the compiler copes with passing no objects directly. 17862compiler_needs_object=$lt_compiler_needs_object 17863 17864# Create an old-style archive from a shared archive. 17865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17866 17867# Create a temporary old-style archive to link instead of a shared archive. 17868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17869 17870# Commands used to build a shared archive. 17871archive_cmds=$lt_archive_cmds 17872archive_expsym_cmds=$lt_archive_expsym_cmds 17873 17874# Commands used to build a loadable module if different from building 17875# a shared archive. 17876module_cmds=$lt_module_cmds 17877module_expsym_cmds=$lt_module_expsym_cmds 17878 17879# Whether we are building with GNU ld or not. 17880with_gnu_ld=$lt_with_gnu_ld 17881 17882# Flag that allows shared libraries with undefined symbols to be built. 17883allow_undefined_flag=$lt_allow_undefined_flag 17884 17885# Flag that enforces no undefined symbols. 17886no_undefined_flag=$lt_no_undefined_flag 17887 17888# Flag to hardcode \$libdir into a binary during linking. 17889# This must work even if \$libdir does not exist 17890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17891 17892# Whether we need a single "-rpath" flag with a separated argument. 17893hardcode_libdir_separator=$lt_hardcode_libdir_separator 17894 17895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17896# DIR into the resulting binary. 17897hardcode_direct=$hardcode_direct 17898 17899# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17900# DIR into the resulting binary and the resulting library dependency is 17901# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17902# library is relocated. 17903hardcode_direct_absolute=$hardcode_direct_absolute 17904 17905# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17906# into the resulting binary. 17907hardcode_minus_L=$hardcode_minus_L 17908 17909# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17910# into the resulting binary. 17911hardcode_shlibpath_var=$hardcode_shlibpath_var 17912 17913# Set to "yes" if building a shared library automatically hardcodes DIR 17914# into the library and all subsequent libraries and executables linked 17915# against it. 17916hardcode_automatic=$hardcode_automatic 17917 17918# Set to yes if linker adds runtime paths of dependent libraries 17919# to runtime path list. 17920inherit_rpath=$inherit_rpath 17921 17922# Whether libtool must link a program against all its dependency libraries. 17923link_all_deplibs=$link_all_deplibs 17924 17925# Set to "yes" if exported symbols are required. 17926always_export_symbols=$always_export_symbols 17927 17928# The commands to list exported symbols. 17929export_symbols_cmds=$lt_export_symbols_cmds 17930 17931# Symbols that should not be listed in the preloaded symbols. 17932exclude_expsyms=$lt_exclude_expsyms 17933 17934# Symbols that must always be exported. 17935include_expsyms=$lt_include_expsyms 17936 17937# Commands necessary for linking programs (against libraries) with templates. 17938prelink_cmds=$lt_prelink_cmds 17939 17940# Commands necessary for finishing linking programs. 17941postlink_cmds=$lt_postlink_cmds 17942 17943# Specify filename containing input files. 17944file_list_spec=$lt_file_list_spec 17945 17946# How to hardcode a shared library path into an executable. 17947hardcode_action=$hardcode_action 17948 17949# ### END LIBTOOL CONFIG 17950 17951_LT_EOF 17952 17953 case $host_os in 17954 aix3*) 17955 cat <<\_LT_EOF >> "$cfgfile" 17956# AIX sometimes has problems with the GCC collect2 program. For some 17957# reason, if we set the COLLECT_NAMES environment variable, the problems 17958# vanish in a puff of smoke. 17959if test "X${COLLECT_NAMES+set}" != Xset; then 17960 COLLECT_NAMES= 17961 export COLLECT_NAMES 17962fi 17963_LT_EOF 17964 ;; 17965 esac 17966 17967 17968ltmain="$ac_aux_dir/ltmain.sh" 17969 17970 17971 # We use sed instead of cat because bash on DJGPP gets confused if 17972 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17973 # text mode, it properly converts lines to CR/LF. This bash problem 17974 # is reportedly fixed, but why not run on old versions too? 17975 sed '$q' "$ltmain" >> "$cfgfile" \ 17976 || (rm -f "$cfgfile"; exit 1) 17977 17978 if test x"$xsi_shell" = xyes; then 17979 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17980func_dirname ()\ 17981{\ 17982\ case ${1} in\ 17983\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17984\ * ) func_dirname_result="${3}" ;;\ 17985\ esac\ 17986} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17987 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17989test 0 -eq $? || _lt_function_replace_fail=: 17990 17991 17992 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17993func_basename ()\ 17994{\ 17995\ func_basename_result="${1##*/}"\ 17996} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17997 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17999test 0 -eq $? || _lt_function_replace_fail=: 18000 18001 18002 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18003func_dirname_and_basename ()\ 18004{\ 18005\ case ${1} in\ 18006\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18007\ * ) func_dirname_result="${3}" ;;\ 18008\ esac\ 18009\ func_basename_result="${1##*/}"\ 18010} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18011 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18013test 0 -eq $? || _lt_function_replace_fail=: 18014 18015 18016 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18017func_stripname ()\ 18018{\ 18019\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18020\ # positional parameters, so assign one to ordinary parameter first.\ 18021\ func_stripname_result=${3}\ 18022\ func_stripname_result=${func_stripname_result#"${1}"}\ 18023\ func_stripname_result=${func_stripname_result%"${2}"}\ 18024} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18025 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18027test 0 -eq $? || _lt_function_replace_fail=: 18028 18029 18030 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18031func_split_long_opt ()\ 18032{\ 18033\ func_split_long_opt_name=${1%%=*}\ 18034\ func_split_long_opt_arg=${1#*=}\ 18035} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18038test 0 -eq $? || _lt_function_replace_fail=: 18039 18040 18041 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18042func_split_short_opt ()\ 18043{\ 18044\ func_split_short_opt_arg=${1#??}\ 18045\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18046} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18047 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18049test 0 -eq $? || _lt_function_replace_fail=: 18050 18051 18052 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18053func_lo2o ()\ 18054{\ 18055\ case ${1} in\ 18056\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18057\ *) func_lo2o_result=${1} ;;\ 18058\ esac\ 18059} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18060 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18062test 0 -eq $? || _lt_function_replace_fail=: 18063 18064 18065 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18066func_xform ()\ 18067{\ 18068 func_xform_result=${1%.*}.lo\ 18069} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18072test 0 -eq $? || _lt_function_replace_fail=: 18073 18074 18075 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18076func_arith ()\ 18077{\ 18078 func_arith_result=$(( $* ))\ 18079} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18080 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18082test 0 -eq $? || _lt_function_replace_fail=: 18083 18084 18085 sed -e '/^func_len ()$/,/^} # func_len /c\ 18086func_len ()\ 18087{\ 18088 func_len_result=${#1}\ 18089} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18090 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18092test 0 -eq $? || _lt_function_replace_fail=: 18093 18094fi 18095 18096if test x"$lt_shell_append" = xyes; then 18097 sed -e '/^func_append ()$/,/^} # func_append /c\ 18098func_append ()\ 18099{\ 18100 eval "${1}+=\\${2}"\ 18101} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18102 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18104test 0 -eq $? || _lt_function_replace_fail=: 18105 18106 18107 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18108func_append_quoted ()\ 18109{\ 18110\ func_quote_for_eval "${2}"\ 18111\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18112} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18113 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18115test 0 -eq $? || _lt_function_replace_fail=: 18116 18117 18118 # Save a `func_append' function call where possible by direct use of '+=' 18119 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18120 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18122 test 0 -eq $? || _lt_function_replace_fail=: 18123else 18124 # Save a `func_append' function call even when '+=' is not available 18125 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18126 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18128 test 0 -eq $? || _lt_function_replace_fail=: 18129fi 18130 18131if test x"$_lt_function_replace_fail" = x":"; then 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18133$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18134fi 18135 18136 18137 mv -f "$cfgfile" "$ofile" || 18138 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18139 chmod +x "$ofile" 18140 18141 18142as_fn_exit 0 18143_LTEOF 18144chmod +x "$CONFIG_LT" 18145 18146# configure is writing to config.log, but config.lt does its own redirection, 18147# appending to config.log, which fails on DOS, as config.log is still kept 18148# open by configure. Here we exec the FD to /dev/null, effectively closing 18149# config.log, so it can be properly (re)opened and appended to by config.lt. 18150lt_cl_success=: 18151test "$silent" = yes && 18152 lt_config_lt_args="$lt_config_lt_args --quiet" 18153exec 5>/dev/null 18154$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 18155exec 5>>config.log 18156$lt_cl_success || as_fn_exit 1 18157 18158ac_ext=c 18159ac_cpp='$CPP $CPPFLAGS' 18160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18162ac_compiler_gnu=$ac_cv_c_compiler_gnu 18163ac_link="./libtool --mode=link --tag=CC $ac_link" 18164 18165## _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags 18166 18167# Check whether --with-system-kpathsea was given. 18168if test "${with_system_kpathsea+set}" = set; then : 18169 withval=$with_system_kpathsea; 18170fi 18171 18172# Check whether --with-kpathsea-includes was given. 18173if test "${with_kpathsea_includes+set}" = set; then : 18174 withval=$with_kpathsea_includes; 18175fi 18176 18177# Check whether --with-kpathsea-libdir was given. 18178if test "${with_kpathsea_libdir+set}" = set; then : 18179 withval=$with_kpathsea_libdir; 18180fi 18181if test "x$with_system_kpathsea" = xyes; then 18182 if test "x$with_kpathsea_includes" != x && test "x$with_kpathsea_includes" != xyes; then 18183 KPATHSEA_INCLUDES="-I$with_kpathsea_includes" 18184fi 18185KPATHSEA_LIBS="-lkpathsea" 18186if test "x$with_kpathsea_libdir" != x && test "x$with_kpathsea_libdir" != xyes; then 18187 KPATHSEA_LIBS="-L$with_kpathsea_libdir $KPATHSEA_LIBS" 18188fi 18189else 18190 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk" 18191 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la" 18192 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la' 18193 KPATHSEA_RULE='# Rebuild libkpathsea 18194$(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h 18195 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild 18196${top_builddir}/../kpathsea/paths.h: 18197 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild' 18198fi 18199 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5 18201$as_echo_n "checking if libkpathsea supports debugging... " >&6; } 18202if ${kpse_cv_kpse_debug+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" 18206eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" 18207 18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18209/* end confdefs.h. */ 18210#include <kpathsea/kpathsea.h> 18211int 18212main () 18213{ 18214FILE *f = fopen("f", "r") 18215 ; 18216 return 0; 18217} 18218_ACEOF 18219if ac_fn_c_try_link "$LINENO"; then : 18220 kpse_cv_kpse_debug=yes 18221else 18222 kpse_cv_kpse_debug=no 18223fi 18224rm -f core conftest.err conftest.$ac_objext \ 18225 conftest$ac_exeext conftest.$ac_ext 18226 CPPFLAGS=$kpse_save_CPPFLAGS 18227LIBS=$kpse_save_LIBS 18228 18229fi 18230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5 18231$as_echo "$kpse_cv_kpse_debug" >&6; } 18232if test "x$kpse_cv_kpse_debug" != xyes; then : 18233 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" 18234fi 18235 18236## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags 18237 18238# Check whether --with-system-zlib was given. 18239if test "${with_system_zlib+set}" = set; then : 18240 withval=$with_system_zlib; 18241fi 18242 18243# Check whether --with-zlib-includes was given. 18244if test "${with_zlib_includes+set}" = set; then : 18245 withval=$with_zlib_includes; 18246fi 18247 18248# Check whether --with-zlib-libdir was given. 18249if test "${with_zlib_libdir+set}" = set; then : 18250 withval=$with_zlib_libdir; 18251fi 18252if test "x$with_system_zlib" = xyes; then 18253 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then 18254 ZLIB_INCLUDES="-I$with_zlib_includes" 18255fi 18256ZLIB_LIBS="-lz" 18257if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then 18258 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS" 18259fi 18260else 18261 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include" 18262 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a" 18263 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a' 18264 ZLIB_RULE='# Rebuild libz 18265$(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h 18266 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild 18267${top_builddir}/../../libs/zlib/include/zconf.h: 18268 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild' 18269fi 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5 18271$as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; } 18272if ${kpse_cv_have_decl_z_const+:} false; then : 18273 $as_echo_n "(cached) " >&6 18274else 18275 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\" 18276eval LIBS=\"$ZLIB_LIBS \$LIBS\" 18277 18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280#include <zlib.h> 18281int 18282main () 18283{ 18284z_const char * foo(); 18285 ; 18286 return 0; 18287} 18288_ACEOF 18289if ac_fn_c_try_compile "$LINENO"; then : 18290 kpse_cv_have_decl_z_const=yes 18291else 18292 kpse_cv_have_decl_z_const=no 18293fi 18294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18295 CPPFLAGS=$kpse_save_CPPFLAGS 18296LIBS=$kpse_save_LIBS 18297 18298fi 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5 18300$as_echo "$kpse_cv_have_decl_z_const" >&6; } 18301case $kpse_cv_have_decl_z_const in #( 18302 yes) : 18303 18304$as_echo "#define ZLIB_CONST 1" >>confdefs.h 18305 ;; #( 18306 *) : 18307 18308$as_echo "#define z_const /**/" >>confdefs.h 18309 ;; 18310esac 18311 18312## _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags 18313 18314# Check whether --with-system-freetype2 was given. 18315if test "${with_system_freetype2+set}" = set; then : 18316 withval=$with_system_freetype2; 18317fi 18318if test "x$with_system_freetype2" = xyes; then 18319 if test -n "$ac_tool_prefix"; then 18320 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args. 18321set dummy ${ac_tool_prefix}freetype-config; ac_word=$2 18322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18323$as_echo_n "checking for $ac_word... " >&6; } 18324if ${ac_cv_prog_FT2_CONFIG+:} false; then : 18325 $as_echo_n "(cached) " >&6 18326else 18327 if test -n "$FT2_CONFIG"; then 18328 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test. 18329else 18330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18331for as_dir in $PATH 18332do 18333 IFS=$as_save_IFS 18334 test -z "$as_dir" && as_dir=. 18335 for ac_exec_ext in '' $ac_executable_extensions; do 18336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18337 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config" 18338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18339 break 2 18340 fi 18341done 18342 done 18343IFS=$as_save_IFS 18344 18345fi 18346fi 18347FT2_CONFIG=$ac_cv_prog_FT2_CONFIG 18348if test -n "$FT2_CONFIG"; then 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5 18350$as_echo "$FT2_CONFIG" >&6; } 18351else 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18353$as_echo "no" >&6; } 18354fi 18355 18356 18357fi 18358if test -z "$ac_cv_prog_FT2_CONFIG"; then 18359 ac_ct_FT2_CONFIG=$FT2_CONFIG 18360 # Extract the first word of "freetype-config", so it can be a program name with args. 18361set dummy freetype-config; ac_word=$2 18362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18363$as_echo_n "checking for $ac_word... " >&6; } 18364if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then : 18365 $as_echo_n "(cached) " >&6 18366else 18367 if test -n "$ac_ct_FT2_CONFIG"; then 18368 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test. 18369else 18370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18371for as_dir in $PATH 18372do 18373 IFS=$as_save_IFS 18374 test -z "$as_dir" && as_dir=. 18375 for ac_exec_ext in '' $ac_executable_extensions; do 18376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18377 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config" 18378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18379 break 2 18380 fi 18381done 18382 done 18383IFS=$as_save_IFS 18384 18385fi 18386fi 18387ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG 18388if test -n "$ac_ct_FT2_CONFIG"; then 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5 18390$as_echo "$ac_ct_FT2_CONFIG" >&6; } 18391else 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18393$as_echo "no" >&6; } 18394fi 18395 18396 if test "x$ac_ct_FT2_CONFIG" = x; then 18397 FT2_CONFIG="false" 18398 else 18399 case $cross_compiling:$ac_tool_warned in 18400yes:) 18401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18403ac_tool_warned=yes ;; 18404esac 18405 FT2_CONFIG=$ac_ct_FT2_CONFIG 18406 fi 18407else 18408 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG" 18409fi 18410if $FT2_CONFIG --ftversion >/dev/null 2>&1; then 18411 FREETYPE2_INCLUDES=`pkg-config freetype2 --cflags` 18412 FREETYPE2_LIBS=`pkg-config freetype2 --libs` 18413elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then 18414 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5 18415fi 18416else 18417 FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2" 18418 FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a" 18419 FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a' 18420 FREETYPE2_RULE='# Rebuild libfreetype 18421$(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h 18422 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild 18423${top_builddir}/../../libs/freetype2/freetype2/ft2build.h: 18424 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild' 18425fi 18426 18427## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags 18428 18429# Check whether --with-system-zlib was given. 18430if test "${with_system_zlib+set}" = set; then : 18431 withval=$with_system_zlib; 18432fi 18433 18434# Check whether --with-zlib-includes was given. 18435if test "${with_zlib_includes+set}" = set; then : 18436 withval=$with_zlib_includes; 18437fi 18438 18439# Check whether --with-zlib-libdir was given. 18440if test "${with_zlib_libdir+set}" = set; then : 18441 withval=$with_zlib_libdir; 18442fi 18443if test "x$with_system_zlib" = xyes; then 18444 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then 18445 ZLIB_INCLUDES="-I$with_zlib_includes" 18446fi 18447ZLIB_LIBS="-lz" 18448if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then 18449 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS" 18450fi 18451else 18452 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include" 18453 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a" 18454 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a' 18455 ZLIB_RULE='# Rebuild libz 18456$(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h 18457 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild 18458${top_builddir}/../../libs/zlib/include/zconf.h: 18459 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild' 18460fi 18461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5 18462$as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; } 18463if ${kpse_cv_have_decl_z_const+:} false; then : 18464 $as_echo_n "(cached) " >&6 18465else 18466 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\" 18467eval LIBS=\"$ZLIB_LIBS \$LIBS\" 18468 18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18470/* end confdefs.h. */ 18471#include <zlib.h> 18472int 18473main () 18474{ 18475z_const char * foo(); 18476 ; 18477 return 0; 18478} 18479_ACEOF 18480if ac_fn_c_try_compile "$LINENO"; then : 18481 kpse_cv_have_decl_z_const=yes 18482else 18483 kpse_cv_have_decl_z_const=no 18484fi 18485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18486 CPPFLAGS=$kpse_save_CPPFLAGS 18487LIBS=$kpse_save_LIBS 18488 18489fi 18490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5 18491$as_echo "$kpse_cv_have_decl_z_const" >&6; } 18492case $kpse_cv_have_decl_z_const in #( 18493 yes) : 18494 18495$as_echo "#define ZLIB_CONST 1" >>confdefs.h 18496 ;; #( 18497 *) : 18498 18499$as_echo "#define z_const /**/" >>confdefs.h 18500 ;; 18501esac 18502 18503 18504 18505# Check whether --with-default-gs-lib-path was given. 18506if test "${with_default_gs_lib_path+set}" = set; then : 18507 withval=$with_default_gs_lib_path; 18508cat >>confdefs.h <<_ACEOF 18509#define DEFAULT_GS_LIB_PATH "$withval" 18510_ACEOF 18511 18512 18513else 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the path to be used for Ghostscript searches" >&5 18515$as_echo_n "checking for the path to be used for Ghostscript searches... " >&6; } 18516if ${xdvi_cv_gs_lib_path+:} false; then : 18517 $as_echo_n "(cached) " >&6 18518else 18519 if gs -h >/dev/null 2>&1; then 18520 ac_tmp="`gs -h \ 18521 | sed \ 18522 -e '1,/Search path:/d' \ 18523 -e '/For more information/,$d' \ 18524 -e '/Initialization files are compiled/d' \ 18525 -e 's/$/\/\/\//' \ 18526 -e 's/^ //' \ 18527 | tr '\n' '/'`" 18528 # Solaris 9 sed doesn't handle incomplete lines at eof 18529 xdvi_cv_gs_lib_path=`echo "$ac_tmp" \ 18530 | sed -e 's/\/\/\/\// /g' -e 's/ *$//' -e 's/ : /:/g'` 18531else 18532 xdvi_cv_gs_lib_path=/usr/local/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/ghostscript/fonts:/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/fonts 18533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine Ghostscript search path; using $xdvi_cv_gs_lib_path" >&5 18534$as_echo "$as_me: WARNING: Could not determine Ghostscript search path; using $xdvi_cv_gs_lib_path" >&2;} 18535fi 18536fi 18537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_gs_lib_path" >&5 18538$as_echo "$xdvi_cv_gs_lib_path" >&6; } 18539cat >>confdefs.h <<_ACEOF 18540#define DEFAULT_GS_LIB_PATH "$xdvi_cv_gs_lib_path" 18541_ACEOF 18542 18543 18544fi 18545 18546 18547eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" 18548eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" 18549 18550 18551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kpathsea declares the kpse_enc_format" >&5 18552$as_echo_n "checking whether kpathsea declares the kpse_enc_format... " >&6; } 18553if ${kpse_cv_have_enc_format+:} false; then : 18554 $as_echo_n "(cached) " >&6 18555else 18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18557/* end confdefs.h. */ 18558#include <kpathsea/kpathsea.h> 18559int 18560main () 18561{ 18562kpse_enc_format 18563 ; 18564 return 0; 18565} 18566_ACEOF 18567if ac_fn_c_try_link "$LINENO"; then : 18568 kpse_cv_have_enc_format=yes 18569else 18570 kpse_cv_have_enc_format=no 18571fi 18572rm -f core conftest.err conftest.$ac_objext \ 18573 conftest$ac_exeext conftest.$ac_ext 18574fi 18575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_enc_format" >&5 18576$as_echo "$kpse_cv_have_enc_format" >&6; } 18577if test "x$kpse_cv_have_enc_format" = xyes; then : 18578 18579else 18580 as_fn_error $? "your kpathsea has no kpse_enc_format." "$LINENO" 5 18581fi 18582 18583ac_fn_c_check_header_mongrel "$LINENO" "kpathsea/version.h" "ac_cv_header_kpathsea_version_h" "$ac_includes_default" 18584if test "x$ac_cv_header_kpathsea_version_h" = xyes; then : 18585 18586else 18587 as_fn_error $? "Sorry, kpathsea too old" "$LINENO" 5 18588fi 18589 18590 18591 18592CPPFLAGS=$kpse_save_CPPFLAGS 18593LIBS=$kpse_save_LIBS 18594 18595 18596echo timestamp >config.force 18597fi 18598 18599 18600# Check whether --with-default-dvips-path was given. 18601if test "${with_default_dvips_path+set}" = set; then : 18602 withval=$with_default_dvips_path; 18603else 18604 with_default_dvips_path="dvips" 18605fi 18606 18607 18608cat >>confdefs.h <<_ACEOF 18609#define DEFAULT_DVIPS_PATH "$with_default_dvips_path" 18610_ACEOF 18611 18612 18613 18614# Check whether --with-default-ps2pdf-path was given. 18615if test "${with_default_ps2pdf_path+set}" = set; then : 18616 withval=$with_default_ps2pdf_path; 18617else 18618 with_default_ps2pdf_path="ps2pdf" 18619fi 18620 18621 18622cat >>confdefs.h <<_ACEOF 18623#define DEFAULT_PS2PDF_PATH "$with_default_ps2pdf_path" 18624_ACEOF 18625 18626 18627XDVIK_VERSION=22.87 18628 18629 18630 18631 18632subdirs="$subdirs squeeze" 18633 18634 18635ac_config_files="$ac_config_files Makefile tests/Makefile" 18636 18637 18638ac_config_files="$ac_config_files xdvi:xdvi-sh.in" 18639 18640 18641 18642 18643cat >confcache <<\_ACEOF 18644# This file is a shell script that caches the results of configure 18645# tests run on this system so they can be shared between configure 18646# scripts and configure runs, see configure's option --config-cache. 18647# It is not useful on other systems. If it contains results you don't 18648# want to keep, you may remove or edit it. 18649# 18650# config.status only pays attention to the cache file if you give it 18651# the --recheck option to rerun configure. 18652# 18653# `ac_cv_env_foo' variables (set or unset) will be overridden when 18654# loading this file, other *unset* `ac_cv_foo' will be assigned the 18655# following values. 18656 18657_ACEOF 18658 18659# The following way of writing the cache mishandles newlines in values, 18660# but we know of no workaround that is simple, portable, and efficient. 18661# So, we kill variables containing newlines. 18662# Ultrix sh set writes to stderr and can't be redirected directly, 18663# and sets the high bit in the cache file unless we assign to the vars. 18664( 18665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18666 eval ac_val=\$$ac_var 18667 case $ac_val in #( 18668 *${as_nl}*) 18669 case $ac_var in #( 18670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18672 esac 18673 case $ac_var in #( 18674 _ | IFS | as_nl) ;; #( 18675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18676 *) { eval $ac_var=; unset $ac_var;} ;; 18677 esac ;; 18678 esac 18679 done 18680 18681 (set) 2>&1 | 18682 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18683 *${as_nl}ac_space=\ *) 18684 # `set' does not quote correctly, so add quotes: double-quote 18685 # substitution turns \\\\ into \\, and sed turns \\ into \. 18686 sed -n \ 18687 "s/'/'\\\\''/g; 18688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18689 ;; #( 18690 *) 18691 # `set' quotes correctly as required by POSIX, so do not add quotes. 18692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18693 ;; 18694 esac | 18695 sort 18696) | 18697 sed ' 18698 /^ac_cv_env_/b end 18699 t clear 18700 :clear 18701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18702 t end 18703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18704 :end' >>confcache 18705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18706 if test -w "$cache_file"; then 18707 if test "x$cache_file" != "x/dev/null"; then 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18709$as_echo "$as_me: updating cache $cache_file" >&6;} 18710 if test ! -f "$cache_file" || test -h "$cache_file"; then 18711 cat confcache >"$cache_file" 18712 else 18713 case $cache_file in #( 18714 */* | ?:*) 18715 mv -f confcache "$cache_file"$$ && 18716 mv -f "$cache_file"$$ "$cache_file" ;; #( 18717 *) 18718 mv -f confcache "$cache_file" ;; 18719 esac 18720 fi 18721 fi 18722 else 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18724$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18725 fi 18726fi 18727rm -f confcache 18728 18729test "x$prefix" = xNONE && prefix=$ac_default_prefix 18730# Let make expand exec_prefix. 18731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18732 18733DEFS=-DHAVE_CONFIG_H 18734 18735ac_libobjs= 18736ac_ltlibobjs= 18737U= 18738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18739 # 1. Remove the extension, and $U if already installed. 18740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18743 # will be set to the directory where LIBOBJS objects are built. 18744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18746done 18747LIBOBJS=$ac_libobjs 18748 18749LTLIBOBJS=$ac_ltlibobjs 18750 18751 18752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18753$as_echo_n "checking that generated files are newer than configure... " >&6; } 18754 if test -n "$am_sleep_pid"; then 18755 # Hide warnings about reused PIDs. 18756 wait $am_sleep_pid 2>/dev/null 18757 fi 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18759$as_echo "done" >&6; } 18760 if test -n "$EXEEXT"; then 18761 am__EXEEXT_TRUE= 18762 am__EXEEXT_FALSE='#' 18763else 18764 am__EXEEXT_TRUE='#' 18765 am__EXEEXT_FALSE= 18766fi 18767 18768if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18769 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18770Usually this means the macro was only invoked conditionally." "$LINENO" 5 18771fi 18772if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18773 as_fn_error $? "conditional \"AMDEP\" was never defined. 18774Usually this means the macro was only invoked conditionally." "$LINENO" 5 18775fi 18776if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18777 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18778Usually this means the macro was only invoked conditionally." "$LINENO" 5 18779fi 18780 18781 18782: "${CONFIG_STATUS=./config.status}" 18783ac_write_fail=0 18784ac_clean_files_save=$ac_clean_files 18785ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18787$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18788as_write_fail=0 18789cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18790#! $SHELL 18791# Generated by $as_me. 18792# Run this file to recreate the current configuration. 18793# Compiler output produced by configure, useful for debugging 18794# configure, is in config.log if it exists. 18795 18796debug=false 18797ac_cs_recheck=false 18798ac_cs_silent=false 18799 18800SHELL=\${CONFIG_SHELL-$SHELL} 18801export SHELL 18802_ASEOF 18803cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18804## -------------------- ## 18805## M4sh Initialization. ## 18806## -------------------- ## 18807 18808# Be more Bourne compatible 18809DUALCASE=1; export DUALCASE # for MKS sh 18810if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18811 emulate sh 18812 NULLCMD=: 18813 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18814 # is contrary to our usage. Disable this feature. 18815 alias -g '${1+"$@"}'='"$@"' 18816 setopt NO_GLOB_SUBST 18817else 18818 case `(set -o) 2>/dev/null` in #( 18819 *posix*) : 18820 set -o posix ;; #( 18821 *) : 18822 ;; 18823esac 18824fi 18825 18826 18827as_nl=' 18828' 18829export as_nl 18830# Printing a long string crashes Solaris 7 /usr/bin/printf. 18831as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18833as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18834# Prefer a ksh shell builtin over an external printf program on Solaris, 18835# but without wasting forks for bash or zsh. 18836if test -z "$BASH_VERSION$ZSH_VERSION" \ 18837 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18838 as_echo='print -r --' 18839 as_echo_n='print -rn --' 18840elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18841 as_echo='printf %s\n' 18842 as_echo_n='printf %s' 18843else 18844 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18845 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18846 as_echo_n='/usr/ucb/echo -n' 18847 else 18848 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18849 as_echo_n_body='eval 18850 arg=$1; 18851 case $arg in #( 18852 *"$as_nl"*) 18853 expr "X$arg" : "X\\(.*\\)$as_nl"; 18854 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18855 esac; 18856 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18857 ' 18858 export as_echo_n_body 18859 as_echo_n='sh -c $as_echo_n_body as_echo' 18860 fi 18861 export as_echo_body 18862 as_echo='sh -c $as_echo_body as_echo' 18863fi 18864 18865# The user is always right. 18866if test "${PATH_SEPARATOR+set}" != set; then 18867 PATH_SEPARATOR=: 18868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18870 PATH_SEPARATOR=';' 18871 } 18872fi 18873 18874 18875# IFS 18876# We need space, tab and new line, in precisely that order. Quoting is 18877# there to prevent editors from complaining about space-tab. 18878# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18879# splitting by setting IFS to empty value.) 18880IFS=" "" $as_nl" 18881 18882# Find who we are. Look in the path if we contain no directory separator. 18883as_myself= 18884case $0 in #(( 18885 *[\\/]* ) as_myself=$0 ;; 18886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18887for as_dir in $PATH 18888do 18889 IFS=$as_save_IFS 18890 test -z "$as_dir" && as_dir=. 18891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18892 done 18893IFS=$as_save_IFS 18894 18895 ;; 18896esac 18897# We did not find ourselves, most probably we were run as `sh COMMAND' 18898# in which case we are not to be found in the path. 18899if test "x$as_myself" = x; then 18900 as_myself=$0 18901fi 18902if test ! -f "$as_myself"; then 18903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18904 exit 1 18905fi 18906 18907# Unset variables that we do not need and which cause bugs (e.g. in 18908# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18909# suppresses any "Segmentation fault" message there. '((' could 18910# trigger a bug in pdksh 5.2.14. 18911for as_var in BASH_ENV ENV MAIL MAILPATH 18912do eval test x\${$as_var+set} = xset \ 18913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18914done 18915PS1='$ ' 18916PS2='> ' 18917PS4='+ ' 18918 18919# NLS nuisances. 18920LC_ALL=C 18921export LC_ALL 18922LANGUAGE=C 18923export LANGUAGE 18924 18925# CDPATH. 18926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18927 18928 18929# as_fn_error STATUS ERROR [LINENO LOG_FD] 18930# ---------------------------------------- 18931# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18932# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18933# script with STATUS, using 1 if that was 0. 18934as_fn_error () 18935{ 18936 as_status=$1; test $as_status -eq 0 && as_status=1 18937 if test "$4"; then 18938 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18940 fi 18941 $as_echo "$as_me: error: $2" >&2 18942 as_fn_exit $as_status 18943} # as_fn_error 18944 18945 18946# as_fn_set_status STATUS 18947# ----------------------- 18948# Set $? to STATUS, without forking. 18949as_fn_set_status () 18950{ 18951 return $1 18952} # as_fn_set_status 18953 18954# as_fn_exit STATUS 18955# ----------------- 18956# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18957as_fn_exit () 18958{ 18959 set +e 18960 as_fn_set_status $1 18961 exit $1 18962} # as_fn_exit 18963 18964# as_fn_unset VAR 18965# --------------- 18966# Portably unset VAR. 18967as_fn_unset () 18968{ 18969 { eval $1=; unset $1;} 18970} 18971as_unset=as_fn_unset 18972# as_fn_append VAR VALUE 18973# ---------------------- 18974# Append the text in VALUE to the end of the definition contained in VAR. Take 18975# advantage of any shell optimizations that allow amortized linear growth over 18976# repeated appends, instead of the typical quadratic growth present in naive 18977# implementations. 18978if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18979 eval 'as_fn_append () 18980 { 18981 eval $1+=\$2 18982 }' 18983else 18984 as_fn_append () 18985 { 18986 eval $1=\$$1\$2 18987 } 18988fi # as_fn_append 18989 18990# as_fn_arith ARG... 18991# ------------------ 18992# Perform arithmetic evaluation on the ARGs, and store the result in the 18993# global $as_val. Take advantage of shells that can avoid forks. The arguments 18994# must be portable across $(()) and expr. 18995if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18996 eval 'as_fn_arith () 18997 { 18998 as_val=$(( $* )) 18999 }' 19000else 19001 as_fn_arith () 19002 { 19003 as_val=`expr "$@" || test $? -eq 1` 19004 } 19005fi # as_fn_arith 19006 19007 19008if expr a : '\(a\)' >/dev/null 2>&1 && 19009 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19010 as_expr=expr 19011else 19012 as_expr=false 19013fi 19014 19015if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19016 as_basename=basename 19017else 19018 as_basename=false 19019fi 19020 19021if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19022 as_dirname=dirname 19023else 19024 as_dirname=false 19025fi 19026 19027as_me=`$as_basename -- "$0" || 19028$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19029 X"$0" : 'X\(//\)$' \| \ 19030 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19031$as_echo X/"$0" | 19032 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19033 s//\1/ 19034 q 19035 } 19036 /^X\/\(\/\/\)$/{ 19037 s//\1/ 19038 q 19039 } 19040 /^X\/\(\/\).*/{ 19041 s//\1/ 19042 q 19043 } 19044 s/.*/./; q'` 19045 19046# Avoid depending upon Character Ranges. 19047as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19048as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19049as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19050as_cr_digits='0123456789' 19051as_cr_alnum=$as_cr_Letters$as_cr_digits 19052 19053ECHO_C= ECHO_N= ECHO_T= 19054case `echo -n x` in #((((( 19055-n*) 19056 case `echo 'xy\c'` in 19057 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19058 xy) ECHO_C='\c';; 19059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19060 ECHO_T=' ';; 19061 esac;; 19062*) 19063 ECHO_N='-n';; 19064esac 19065 19066rm -f conf$$ conf$$.exe conf$$.file 19067if test -d conf$$.dir; then 19068 rm -f conf$$.dir/conf$$.file 19069else 19070 rm -f conf$$.dir 19071 mkdir conf$$.dir 2>/dev/null 19072fi 19073if (echo >conf$$.file) 2>/dev/null; then 19074 if ln -s conf$$.file conf$$ 2>/dev/null; then 19075 as_ln_s='ln -s' 19076 # ... but there are two gotchas: 19077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19079 # In both cases, we have to default to `cp -pR'. 19080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19081 as_ln_s='cp -pR' 19082 elif ln conf$$.file conf$$ 2>/dev/null; then 19083 as_ln_s=ln 19084 else 19085 as_ln_s='cp -pR' 19086 fi 19087else 19088 as_ln_s='cp -pR' 19089fi 19090rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19091rmdir conf$$.dir 2>/dev/null 19092 19093 19094# as_fn_mkdir_p 19095# ------------- 19096# Create "$as_dir" as a directory, including parents if necessary. 19097as_fn_mkdir_p () 19098{ 19099 19100 case $as_dir in #( 19101 -*) as_dir=./$as_dir;; 19102 esac 19103 test -d "$as_dir" || eval $as_mkdir_p || { 19104 as_dirs= 19105 while :; do 19106 case $as_dir in #( 19107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19108 *) as_qdir=$as_dir;; 19109 esac 19110 as_dirs="'$as_qdir' $as_dirs" 19111 as_dir=`$as_dirname -- "$as_dir" || 19112$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19113 X"$as_dir" : 'X\(//\)[^/]' \| \ 19114 X"$as_dir" : 'X\(//\)$' \| \ 19115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19116$as_echo X"$as_dir" | 19117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19118 s//\1/ 19119 q 19120 } 19121 /^X\(\/\/\)[^/].*/{ 19122 s//\1/ 19123 q 19124 } 19125 /^X\(\/\/\)$/{ 19126 s//\1/ 19127 q 19128 } 19129 /^X\(\/\).*/{ 19130 s//\1/ 19131 q 19132 } 19133 s/.*/./; q'` 19134 test -d "$as_dir" && break 19135 done 19136 test -z "$as_dirs" || eval "mkdir $as_dirs" 19137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19138 19139 19140} # as_fn_mkdir_p 19141if mkdir -p . 2>/dev/null; then 19142 as_mkdir_p='mkdir -p "$as_dir"' 19143else 19144 test -d ./-p && rmdir ./-p 19145 as_mkdir_p=false 19146fi 19147 19148 19149# as_fn_executable_p FILE 19150# ----------------------- 19151# Test if FILE is an executable regular file. 19152as_fn_executable_p () 19153{ 19154 test -f "$1" && test -x "$1" 19155} # as_fn_executable_p 19156as_test_x='test -x' 19157as_executable_p=as_fn_executable_p 19158 19159# Sed expression to map a string onto a valid CPP name. 19160as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19161 19162# Sed expression to map a string onto a valid variable name. 19163as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19164 19165 19166exec 6>&1 19167## ----------------------------------- ## 19168## Main body of $CONFIG_STATUS script. ## 19169## ----------------------------------- ## 19170_ASEOF 19171test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19172 19173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19174# Save the log message, to keep $0 and so on meaningful, and to 19175# report actual input values of CONFIG_FILES etc. instead of their 19176# values after options handling. 19177ac_log=" 19178This file was extended by xdvik $as_me 22.87, which was 19179generated by GNU Autoconf 2.69. Invocation command line was 19180 19181 CONFIG_FILES = $CONFIG_FILES 19182 CONFIG_HEADERS = $CONFIG_HEADERS 19183 CONFIG_LINKS = $CONFIG_LINKS 19184 CONFIG_COMMANDS = $CONFIG_COMMANDS 19185 $ $0 $@ 19186 19187on `(hostname || uname -n) 2>/dev/null | sed 1q` 19188" 19189 19190_ACEOF 19191 19192case $ac_config_files in *" 19193"*) set x $ac_config_files; shift; ac_config_files=$*;; 19194esac 19195 19196case $ac_config_headers in *" 19197"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19198esac 19199 19200 19201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19202# Files that config.status was made for. 19203config_files="$ac_config_files" 19204config_headers="$ac_config_headers" 19205config_commands="$ac_config_commands" 19206 19207_ACEOF 19208 19209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19210ac_cs_usage="\ 19211\`$as_me' instantiates files and other configuration actions 19212from templates according to the current configuration. Unless the files 19213and actions are specified as TAGs, all are instantiated by default. 19214 19215Usage: $0 [OPTION]... [TAG]... 19216 19217 -h, --help print this help, then exit 19218 -V, --version print version number and configuration settings, then exit 19219 --config print configuration, then exit 19220 -q, --quiet, --silent 19221 do not print progress messages 19222 -d, --debug don't remove temporary files 19223 --recheck update $as_me by reconfiguring in the same conditions 19224 --file=FILE[:TEMPLATE] 19225 instantiate the configuration file FILE 19226 --header=FILE[:TEMPLATE] 19227 instantiate the configuration header FILE 19228 19229Configuration files: 19230$config_files 19231 19232Configuration headers: 19233$config_headers 19234 19235Configuration commands: 19236$config_commands 19237 19238Report bugs to <tex-k@tug.org>." 19239 19240_ACEOF 19241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19242ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19243ac_cs_version="\\ 19244xdvik config.status 22.87 19245configured by $0, generated by GNU Autoconf 2.69, 19246 with options \\"\$ac_cs_config\\" 19247 19248Copyright (C) 2012 Free Software Foundation, Inc. 19249This config.status script is free software; the Free Software Foundation 19250gives unlimited permission to copy, distribute and modify it." 19251 19252ac_pwd='$ac_pwd' 19253srcdir='$srcdir' 19254INSTALL='$INSTALL' 19255MKDIR_P='$MKDIR_P' 19256AWK='$AWK' 19257test -n "\$AWK" || AWK=awk 19258_ACEOF 19259 19260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19261# The default lists apply if the user does not specify any file. 19262ac_need_defaults=: 19263while test $# != 0 19264do 19265 case $1 in 19266 --*=?*) 19267 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19269 ac_shift=: 19270 ;; 19271 --*=) 19272 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19273 ac_optarg= 19274 ac_shift=: 19275 ;; 19276 *) 19277 ac_option=$1 19278 ac_optarg=$2 19279 ac_shift=shift 19280 ;; 19281 esac 19282 19283 case $ac_option in 19284 # Handling of the options. 19285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19286 ac_cs_recheck=: ;; 19287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19288 $as_echo "$ac_cs_version"; exit ;; 19289 --config | --confi | --conf | --con | --co | --c ) 19290 $as_echo "$ac_cs_config"; exit ;; 19291 --debug | --debu | --deb | --de | --d | -d ) 19292 debug=: ;; 19293 --file | --fil | --fi | --f ) 19294 $ac_shift 19295 case $ac_optarg in 19296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19297 '') as_fn_error $? "missing file argument" ;; 19298 esac 19299 as_fn_append CONFIG_FILES " '$ac_optarg'" 19300 ac_need_defaults=false;; 19301 --header | --heade | --head | --hea ) 19302 $ac_shift 19303 case $ac_optarg in 19304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19305 esac 19306 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19307 ac_need_defaults=false;; 19308 --he | --h) 19309 # Conflict between --help and --header 19310 as_fn_error $? "ambiguous option: \`$1' 19311Try \`$0 --help' for more information.";; 19312 --help | --hel | -h ) 19313 $as_echo "$ac_cs_usage"; exit ;; 19314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19315 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19316 ac_cs_silent=: ;; 19317 19318 # This is an error. 19319 -*) as_fn_error $? "unrecognized option: \`$1' 19320Try \`$0 --help' for more information." ;; 19321 19322 *) as_fn_append ac_config_targets " $1" 19323 ac_need_defaults=false ;; 19324 19325 esac 19326 shift 19327done 19328 19329ac_configure_extra_args= 19330 19331if $ac_cs_silent; then 19332 exec 6>/dev/null 19333 ac_configure_extra_args="$ac_configure_extra_args --silent" 19334fi 19335 19336_ACEOF 19337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19338if \$ac_cs_recheck; then 19339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19340 shift 19341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19342 CONFIG_SHELL='$SHELL' 19343 export CONFIG_SHELL 19344 exec "\$@" 19345fi 19346 19347_ACEOF 19348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19349exec 5>>config.log 19350{ 19351 echo 19352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19353## Running $as_me. ## 19354_ASBOX 19355 $as_echo "$ac_log" 19356} >&5 19357 19358_ACEOF 19359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19360# 19361# INIT-COMMANDS 19362# 19363AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19364 19365 19366# The HP-UX ksh and POSIX shell print the target directory to stdout 19367# if CDPATH is set. 19368(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19369 19370sed_quote_subst='$sed_quote_subst' 19371double_quote_subst='$double_quote_subst' 19372delay_variable_subst='$delay_variable_subst' 19373macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19374macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19375AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19376DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19377OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19378enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19379enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19380pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19381enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19382SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19383ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19384PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19385host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19386host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19387host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19388build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19389build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19390build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19391SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19392Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19393GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19394EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19395FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19396LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19397NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19398LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19399max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19400ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19401exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19402lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19403lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19404lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19405lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19406lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19407reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19408reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19409deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19410file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19411file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19412want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19413sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19414AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19415AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19416archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19417STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19418RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19419old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19420old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19421old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19422lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19423CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19424CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19425compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19426GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19427lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19428lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19429lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19430lt_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"`' 19431nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19432lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19433objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19434MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19435lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19436lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19437lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19438lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19439lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19440need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19441MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19442DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19443NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19444LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19445OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19446OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19447libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19448shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19449extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19450archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19451enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19452export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19453whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19454compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19455old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19456old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19457archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19458archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19459module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19460module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19461with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19462allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19463no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19464hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19465hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19466hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19467hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19468hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19469hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19470hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19471inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19472link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19473always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19474export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19475exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19476include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19477prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19478postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19479file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19480variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19481need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19482need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19483version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19484runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19485shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19486shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19487libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19488library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19489soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19490install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19491postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19492postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19493finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19494finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19495hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19496sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19497sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19498hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19499enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19500enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19501enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19502old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19503striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19504 19505LTCC='$LTCC' 19506LTCFLAGS='$LTCFLAGS' 19507compiler='$compiler_DEFAULT' 19508 19509# A function that is used when there is no print builtin or printf. 19510func_fallback_echo () 19511{ 19512 eval 'cat <<_LTECHO_EOF 19513\$1 19514_LTECHO_EOF' 19515} 19516 19517# Quote evaled strings. 19518for var in AS \ 19519DLLTOOL \ 19520OBJDUMP \ 19521SHELL \ 19522ECHO \ 19523PATH_SEPARATOR \ 19524SED \ 19525GREP \ 19526EGREP \ 19527FGREP \ 19528LD \ 19529NM \ 19530LN_S \ 19531lt_SP2NL \ 19532lt_NL2SP \ 19533reload_flag \ 19534deplibs_check_method \ 19535file_magic_cmd \ 19536file_magic_glob \ 19537want_nocaseglob \ 19538sharedlib_from_linklib_cmd \ 19539AR \ 19540AR_FLAGS \ 19541archiver_list_spec \ 19542STRIP \ 19543RANLIB \ 19544CC \ 19545CFLAGS \ 19546compiler \ 19547lt_cv_sys_global_symbol_pipe \ 19548lt_cv_sys_global_symbol_to_cdecl \ 19549lt_cv_sys_global_symbol_to_c_name_address \ 19550lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19551nm_file_list_spec \ 19552lt_prog_compiler_no_builtin_flag \ 19553lt_prog_compiler_pic \ 19554lt_prog_compiler_wl \ 19555lt_prog_compiler_static \ 19556lt_cv_prog_compiler_c_o \ 19557need_locks \ 19558MANIFEST_TOOL \ 19559DSYMUTIL \ 19560NMEDIT \ 19561LIPO \ 19562OTOOL \ 19563OTOOL64 \ 19564shrext_cmds \ 19565export_dynamic_flag_spec \ 19566whole_archive_flag_spec \ 19567compiler_needs_object \ 19568with_gnu_ld \ 19569allow_undefined_flag \ 19570no_undefined_flag \ 19571hardcode_libdir_flag_spec \ 19572hardcode_libdir_separator \ 19573exclude_expsyms \ 19574include_expsyms \ 19575file_list_spec \ 19576variables_saved_for_relink \ 19577libname_spec \ 19578library_names_spec \ 19579soname_spec \ 19580install_override_mode \ 19581finish_eval \ 19582old_striplib \ 19583striplib; do 19584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19585 *[\\\\\\\`\\"\\\$]*) 19586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19587 ;; 19588 *) 19589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19590 ;; 19591 esac 19592done 19593 19594# Double-quote double-evaled strings. 19595for var in reload_cmds \ 19596old_postinstall_cmds \ 19597old_postuninstall_cmds \ 19598old_archive_cmds \ 19599extract_expsyms_cmds \ 19600old_archive_from_new_cmds \ 19601old_archive_from_expsyms_cmds \ 19602archive_cmds \ 19603archive_expsym_cmds \ 19604module_cmds \ 19605module_expsym_cmds \ 19606export_symbols_cmds \ 19607prelink_cmds \ 19608postlink_cmds \ 19609postinstall_cmds \ 19610postuninstall_cmds \ 19611finish_cmds \ 19612sys_lib_search_path_spec \ 19613sys_lib_dlsearch_path_spec; do 19614 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19615 *[\\\\\\\`\\"\\\$]*) 19616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19617 ;; 19618 *) 19619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19620 ;; 19621 esac 19622done 19623 19624ac_aux_dir='$ac_aux_dir' 19625xsi_shell='$xsi_shell' 19626lt_shell_append='$lt_shell_append' 19627 19628# See if we are running on zsh, and set the options which allow our 19629# commands through without removal of \ escapes INIT. 19630if test -n "\${ZSH_VERSION+set}" ; then 19631 setopt NO_GLOB_SUBST 19632fi 19633 19634 19635 PACKAGE='$PACKAGE' 19636 VERSION='$VERSION' 19637 TIMESTAMP='$TIMESTAMP' 19638 RM='$RM' 19639 ofile='$ofile' 19640 19641ac_aux_dir='$ac_aux_dir' 19642 19643 19644 19645_ACEOF 19646 19647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19648 19649# Handling of arguments. 19650for ac_config_target in $ac_config_targets 19651do 19652 case $ac_config_target in 19653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19655 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;; 19656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19657 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 19658 "xdvi") CONFIG_FILES="$CONFIG_FILES xdvi:xdvi-sh.in" ;; 19659 19660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19661 esac 19662done 19663 19664 19665# If the user did not use the arguments to specify the items to instantiate, 19666# then the envvar interface is used. Set only those that are not. 19667# We use the long form for the default assignment because of an extremely 19668# bizarre bug on SunOS 4.1.3. 19669if $ac_need_defaults; then 19670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19671 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19672 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19673fi 19674 19675# Have a temporary directory for convenience. Make it in the build tree 19676# simply because there is no reason against having it here, and in addition, 19677# creating and moving files from /tmp can sometimes cause problems. 19678# Hook for its removal unless debugging. 19679# Note that there is a small window in which the directory will not be cleaned: 19680# after its creation but before its name has been assigned to `$tmp'. 19681$debug || 19682{ 19683 tmp= ac_tmp= 19684 trap 'exit_status=$? 19685 : "${ac_tmp:=$tmp}" 19686 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19687' 0 19688 trap 'as_fn_exit 1' 1 2 13 15 19689} 19690# Create a (secure) tmp directory for tmp files. 19691 19692{ 19693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19694 test -d "$tmp" 19695} || 19696{ 19697 tmp=./conf$$-$RANDOM 19698 (umask 077 && mkdir "$tmp") 19699} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19700ac_tmp=$tmp 19701 19702# Set up the scripts for CONFIG_FILES section. 19703# No need to generate them if there are no CONFIG_FILES. 19704# This happens for instance with `./config.status config.h'. 19705if test -n "$CONFIG_FILES"; then 19706 19707 19708ac_cr=`echo X | tr X '\015'` 19709# On cygwin, bash can eat \r inside `` if the user requested igncr. 19710# But we know of no other shell where ac_cr would be empty at this 19711# point, so we can use a bashism as a fallback. 19712if test "x$ac_cr" = x; then 19713 eval ac_cr=\$\'\\r\' 19714fi 19715ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19716if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19717 ac_cs_awk_cr='\\r' 19718else 19719 ac_cs_awk_cr=$ac_cr 19720fi 19721 19722echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19723_ACEOF 19724 19725 19726{ 19727 echo "cat >conf$$subs.awk <<_ACEOF" && 19728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19729 echo "_ACEOF" 19730} >conf$$subs.sh || 19731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19732ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19733ac_delim='%!_!# ' 19734for ac_last_try in false false false false false :; do 19735 . ./conf$$subs.sh || 19736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19737 19738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19739 if test $ac_delim_n = $ac_delim_num; then 19740 break 19741 elif $ac_last_try; then 19742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19743 else 19744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19745 fi 19746done 19747rm -f conf$$subs.sh 19748 19749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19750cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19751_ACEOF 19752sed -n ' 19753h 19754s/^/S["/; s/!.*/"]=/ 19755p 19756g 19757s/^[^!]*!// 19758:repl 19759t repl 19760s/'"$ac_delim"'$// 19761t delim 19762:nl 19763h 19764s/\(.\{148\}\)..*/\1/ 19765t more1 19766s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19767p 19768n 19769b repl 19770:more1 19771s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19772p 19773g 19774s/.\{148\}// 19775t nl 19776:delim 19777h 19778s/\(.\{148\}\)..*/\1/ 19779t more2 19780s/["\\]/\\&/g; s/^/"/; s/$/"/ 19781p 19782b 19783:more2 19784s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19785p 19786g 19787s/.\{148\}// 19788t delim 19789' <conf$$subs.awk | sed ' 19790/^[^""]/{ 19791 N 19792 s/\n// 19793} 19794' >>$CONFIG_STATUS || ac_write_fail=1 19795rm -f conf$$subs.awk 19796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19797_ACAWK 19798cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19799 for (key in S) S_is_set[key] = 1 19800 FS = "" 19801 19802} 19803{ 19804 line = $ 0 19805 nfields = split(line, field, "@") 19806 substed = 0 19807 len = length(field[1]) 19808 for (i = 2; i < nfields; i++) { 19809 key = field[i] 19810 keylen = length(key) 19811 if (S_is_set[key]) { 19812 value = S[key] 19813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19814 len += length(value) + length(field[++i]) 19815 substed = 1 19816 } else 19817 len += 1 + keylen 19818 } 19819 19820 print line 19821} 19822 19823_ACAWK 19824_ACEOF 19825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19826if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19828else 19829 cat 19830fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19831 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19832_ACEOF 19833 19834# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19835# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19836# trailing colons and then remove the whole line if VPATH becomes empty 19837# (actually we leave an empty line to preserve line numbers). 19838if test "x$srcdir" = x.; then 19839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19840h 19841s/// 19842s/^/:/ 19843s/[ ]*$/:/ 19844s/:\$(srcdir):/:/g 19845s/:\${srcdir}:/:/g 19846s/:@srcdir@:/:/g 19847s/^:*// 19848s/:*$// 19849x 19850s/\(=[ ]*\).*/\1/ 19851G 19852s/\n// 19853s/^[^=]*=[ ]*$// 19854}' 19855fi 19856 19857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19858fi # test -n "$CONFIG_FILES" 19859 19860# Set up the scripts for CONFIG_HEADERS section. 19861# No need to generate them if there are no CONFIG_HEADERS. 19862# This happens for instance with `./config.status Makefile'. 19863if test -n "$CONFIG_HEADERS"; then 19864cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19865BEGIN { 19866_ACEOF 19867 19868# Transform confdefs.h into an awk script `defines.awk', embedded as 19869# here-document in config.status, that substitutes the proper values into 19870# config.h.in to produce config.h. 19871 19872# Create a delimiter string that does not exist in confdefs.h, to ease 19873# handling of long lines. 19874ac_delim='%!_!# ' 19875for ac_last_try in false false :; do 19876 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19877 if test -z "$ac_tt"; then 19878 break 19879 elif $ac_last_try; then 19880 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19881 else 19882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19883 fi 19884done 19885 19886# For the awk script, D is an array of macro values keyed by name, 19887# likewise P contains macro parameters if any. Preserve backslash 19888# newline sequences. 19889 19890ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19891sed -n ' 19892s/.\{148\}/&'"$ac_delim"'/g 19893t rset 19894:rset 19895s/^[ ]*#[ ]*define[ ][ ]*/ / 19896t def 19897d 19898:def 19899s/\\$// 19900t bsnl 19901s/["\\]/\\&/g 19902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19903D["\1"]=" \3"/p 19904s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19905d 19906:bsnl 19907s/["\\]/\\&/g 19908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19909D["\1"]=" \3\\\\\\n"\\/p 19910t cont 19911s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19912t cont 19913d 19914:cont 19915n 19916s/.\{148\}/&'"$ac_delim"'/g 19917t clear 19918:clear 19919s/\\$// 19920t bsnlc 19921s/["\\]/\\&/g; s/^/"/; s/$/"/p 19922d 19923:bsnlc 19924s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19925b cont 19926' <confdefs.h | sed ' 19927s/'"$ac_delim"'/"\\\ 19928"/g' >>$CONFIG_STATUS || ac_write_fail=1 19929 19930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19931 for (key in D) D_is_set[key] = 1 19932 FS = "" 19933} 19934/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19935 line = \$ 0 19936 split(line, arg, " ") 19937 if (arg[1] == "#") { 19938 defundef = arg[2] 19939 mac1 = arg[3] 19940 } else { 19941 defundef = substr(arg[1], 2) 19942 mac1 = arg[2] 19943 } 19944 split(mac1, mac2, "(") #) 19945 macro = mac2[1] 19946 prefix = substr(line, 1, index(line, defundef) - 1) 19947 if (D_is_set[macro]) { 19948 # Preserve the white space surrounding the "#". 19949 print prefix "define", macro P[macro] D[macro] 19950 next 19951 } else { 19952 # Replace #undef with comments. This is necessary, for example, 19953 # in the case of _POSIX_SOURCE, which is predefined and required 19954 # on some systems where configure will not decide to define it. 19955 if (defundef == "undef") { 19956 print "/*", prefix defundef, macro, "*/" 19957 next 19958 } 19959 } 19960} 19961{ print } 19962_ACAWK 19963_ACEOF 19964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19965 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19966fi # test -n "$CONFIG_HEADERS" 19967 19968 19969eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19970shift 19971for ac_tag 19972do 19973 case $ac_tag in 19974 :[FHLC]) ac_mode=$ac_tag; continue;; 19975 esac 19976 case $ac_mode$ac_tag in 19977 :[FHL]*:*);; 19978 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19979 :[FH]-) ac_tag=-:-;; 19980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19981 esac 19982 ac_save_IFS=$IFS 19983 IFS=: 19984 set x $ac_tag 19985 IFS=$ac_save_IFS 19986 shift 19987 ac_file=$1 19988 shift 19989 19990 case $ac_mode in 19991 :L) ac_source=$1;; 19992 :[FH]) 19993 ac_file_inputs= 19994 for ac_f 19995 do 19996 case $ac_f in 19997 -) ac_f="$ac_tmp/stdin";; 19998 *) # Look for the file first in the build tree, then in the source tree 19999 # (if the path is not absolute). The absolute path cannot be DOS-style, 20000 # because $ac_f cannot contain `:'. 20001 test -f "$ac_f" || 20002 case $ac_f in 20003 [\\/$]*) false;; 20004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20005 esac || 20006 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20007 esac 20008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20009 as_fn_append ac_file_inputs " '$ac_f'" 20010 done 20011 20012 # Let's still pretend it is `configure' which instantiates (i.e., don't 20013 # use $as_me), people would be surprised to read: 20014 # /* config.h. Generated by config.status. */ 20015 configure_input='Generated from '` 20016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20017 `' by configure.' 20018 if test x"$ac_file" != x-; then 20019 configure_input="$ac_file. $configure_input" 20020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20021$as_echo "$as_me: creating $ac_file" >&6;} 20022 fi 20023 # Neutralize special characters interpreted by sed in replacement strings. 20024 case $configure_input in #( 20025 *\&* | *\|* | *\\* ) 20026 ac_sed_conf_input=`$as_echo "$configure_input" | 20027 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20028 *) ac_sed_conf_input=$configure_input;; 20029 esac 20030 20031 case $ac_tag in 20032 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20034 esac 20035 ;; 20036 esac 20037 20038 ac_dir=`$as_dirname -- "$ac_file" || 20039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20040 X"$ac_file" : 'X\(//\)[^/]' \| \ 20041 X"$ac_file" : 'X\(//\)$' \| \ 20042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20043$as_echo X"$ac_file" | 20044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20045 s//\1/ 20046 q 20047 } 20048 /^X\(\/\/\)[^/].*/{ 20049 s//\1/ 20050 q 20051 } 20052 /^X\(\/\/\)$/{ 20053 s//\1/ 20054 q 20055 } 20056 /^X\(\/\).*/{ 20057 s//\1/ 20058 q 20059 } 20060 s/.*/./; q'` 20061 as_dir="$ac_dir"; as_fn_mkdir_p 20062 ac_builddir=. 20063 20064case "$ac_dir" in 20065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20066*) 20067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20068 # A ".." for each directory in $ac_dir_suffix. 20069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20070 case $ac_top_builddir_sub in 20071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20073 esac ;; 20074esac 20075ac_abs_top_builddir=$ac_pwd 20076ac_abs_builddir=$ac_pwd$ac_dir_suffix 20077# for backward compatibility: 20078ac_top_builddir=$ac_top_build_prefix 20079 20080case $srcdir in 20081 .) # We are building in place. 20082 ac_srcdir=. 20083 ac_top_srcdir=$ac_top_builddir_sub 20084 ac_abs_top_srcdir=$ac_pwd ;; 20085 [\\/]* | ?:[\\/]* ) # Absolute name. 20086 ac_srcdir=$srcdir$ac_dir_suffix; 20087 ac_top_srcdir=$srcdir 20088 ac_abs_top_srcdir=$srcdir ;; 20089 *) # Relative name. 20090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20091 ac_top_srcdir=$ac_top_build_prefix$srcdir 20092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20093esac 20094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20095 20096 20097 case $ac_mode in 20098 :F) 20099 # 20100 # CONFIG_FILE 20101 # 20102 20103 case $INSTALL in 20104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20106 esac 20107 ac_MKDIR_P=$MKDIR_P 20108 case $MKDIR_P in 20109 [\\/$]* | ?:[\\/]* ) ;; 20110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20111 esac 20112_ACEOF 20113 20114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20115# If the template does not know about datarootdir, expand it. 20116# FIXME: This hack should be removed a few years after 2.60. 20117ac_datarootdir_hack=; ac_datarootdir_seen= 20118ac_sed_dataroot=' 20119/datarootdir/ { 20120 p 20121 q 20122} 20123/@datadir@/p 20124/@docdir@/p 20125/@infodir@/p 20126/@localedir@/p 20127/@mandir@/p' 20128case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20129*datarootdir*) ac_datarootdir_seen=yes;; 20130*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20132$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20133_ACEOF 20134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20135 ac_datarootdir_hack=' 20136 s&@datadir@&$datadir&g 20137 s&@docdir@&$docdir&g 20138 s&@infodir@&$infodir&g 20139 s&@localedir@&$localedir&g 20140 s&@mandir@&$mandir&g 20141 s&\\\${datarootdir}&$datarootdir&g' ;; 20142esac 20143_ACEOF 20144 20145# Neutralize VPATH when `$srcdir' = `.'. 20146# Shell code in configure.ac might set extrasub. 20147# FIXME: do we really want to maintain this feature? 20148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20149ac_sed_extra="$ac_vpsub 20150$extrasub 20151_ACEOF 20152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20153:t 20154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20155s|@configure_input@|$ac_sed_conf_input|;t t 20156s&@top_builddir@&$ac_top_builddir_sub&;t t 20157s&@top_build_prefix@&$ac_top_build_prefix&;t t 20158s&@srcdir@&$ac_srcdir&;t t 20159s&@abs_srcdir@&$ac_abs_srcdir&;t t 20160s&@top_srcdir@&$ac_top_srcdir&;t t 20161s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20162s&@builddir@&$ac_builddir&;t t 20163s&@abs_builddir@&$ac_abs_builddir&;t t 20164s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20165s&@INSTALL@&$ac_INSTALL&;t t 20166s&@MKDIR_P@&$ac_MKDIR_P&;t t 20167$ac_datarootdir_hack 20168" 20169eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20170 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20171 20172test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20173 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20175 "$ac_tmp/out"`; test -z "$ac_out"; } && 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20177which seems to be undefined. Please make sure it is defined" >&5 20178$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20179which seems to be undefined. Please make sure it is defined" >&2;} 20180 20181 rm -f "$ac_tmp/stdin" 20182 case $ac_file in 20183 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20184 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20185 esac \ 20186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20187 ;; 20188 :H) 20189 # 20190 # CONFIG_HEADER 20191 # 20192 if test x"$ac_file" != x-; then 20193 { 20194 $as_echo "/* $configure_input */" \ 20195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20196 } >"$ac_tmp/config.h" \ 20197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20198 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20200$as_echo "$as_me: $ac_file is unchanged" >&6;} 20201 else 20202 rm -f "$ac_file" 20203 mv "$ac_tmp/config.h" "$ac_file" \ 20204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20205 fi 20206 else 20207 $as_echo "/* $configure_input */" \ 20208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20209 || as_fn_error $? "could not create -" "$LINENO" 5 20210 fi 20211# Compute "$ac_file"'s index in $config_headers. 20212_am_arg="$ac_file" 20213_am_stamp_count=1 20214for _am_header in $config_headers :; do 20215 case $_am_header in 20216 $_am_arg | $_am_arg:* ) 20217 break ;; 20218 * ) 20219 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20220 esac 20221done 20222echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20223$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20224 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20225 X"$_am_arg" : 'X\(//\)$' \| \ 20226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20227$as_echo X"$_am_arg" | 20228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20229 s//\1/ 20230 q 20231 } 20232 /^X\(\/\/\)[^/].*/{ 20233 s//\1/ 20234 q 20235 } 20236 /^X\(\/\/\)$/{ 20237 s//\1/ 20238 q 20239 } 20240 /^X\(\/\).*/{ 20241 s//\1/ 20242 q 20243 } 20244 s/.*/./; q'`/stamp-h$_am_stamp_count 20245 ;; 20246 20247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20248$as_echo "$as_me: executing $ac_file commands" >&6;} 20249 ;; 20250 esac 20251 20252 20253 case $ac_file$ac_mode in 20254 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20255 # Older Autoconf quotes --file arguments for eval, but not when files 20256 # are listed without --file. Let's play safe and only enable the eval 20257 # if we detect the quoting. 20258 case $CONFIG_FILES in 20259 *\'*) eval set x "$CONFIG_FILES" ;; 20260 *) set x $CONFIG_FILES ;; 20261 esac 20262 shift 20263 for mf 20264 do 20265 # Strip MF so we end up with the name of the file. 20266 mf=`echo "$mf" | sed -e 's/:.*$//'` 20267 # Check whether this is an Automake generated Makefile or not. 20268 # We used to match only the files named 'Makefile.in', but 20269 # some people rename them; so instead we look at the file content. 20270 # Grep'ing the first line is not enough: some people post-process 20271 # each Makefile.in and add a new line on top of each file to say so. 20272 # Grep'ing the whole file is not good either: AIX grep has a line 20273 # limit of 2048, but all sed's we know have understand at least 4000. 20274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20275 dirpart=`$as_dirname -- "$mf" || 20276$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20277 X"$mf" : 'X\(//\)[^/]' \| \ 20278 X"$mf" : 'X\(//\)$' \| \ 20279 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20280$as_echo X"$mf" | 20281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20282 s//\1/ 20283 q 20284 } 20285 /^X\(\/\/\)[^/].*/{ 20286 s//\1/ 20287 q 20288 } 20289 /^X\(\/\/\)$/{ 20290 s//\1/ 20291 q 20292 } 20293 /^X\(\/\).*/{ 20294 s//\1/ 20295 q 20296 } 20297 s/.*/./; q'` 20298 else 20299 continue 20300 fi 20301 # Extract the definition of DEPDIR, am__include, and am__quote 20302 # from the Makefile without running 'make'. 20303 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20304 test -z "$DEPDIR" && continue 20305 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20306 test -z "$am__include" && continue 20307 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20308 # Find all dependency output files, they are included files with 20309 # $(DEPDIR) in their names. We invoke sed twice because it is the 20310 # simplest approach to changing $(DEPDIR) to its actual value in the 20311 # expansion. 20312 for file in `sed -n " 20313 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20314 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20315 # Make sure the directory exists. 20316 test -f "$dirpart/$file" && continue 20317 fdir=`$as_dirname -- "$file" || 20318$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20319 X"$file" : 'X\(//\)[^/]' \| \ 20320 X"$file" : 'X\(//\)$' \| \ 20321 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20322$as_echo X"$file" | 20323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20324 s//\1/ 20325 q 20326 } 20327 /^X\(\/\/\)[^/].*/{ 20328 s//\1/ 20329 q 20330 } 20331 /^X\(\/\/\)$/{ 20332 s//\1/ 20333 q 20334 } 20335 /^X\(\/\).*/{ 20336 s//\1/ 20337 q 20338 } 20339 s/.*/./; q'` 20340 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20341 # echo "creating $dirpart/$file" 20342 echo '# dummy' > "$dirpart/$file" 20343 done 20344 done 20345} 20346 ;; 20347 "libtool":C) 20348 20349 # See if we are running on zsh, and set the options which allow our 20350 # commands through without removal of \ escapes. 20351 if test -n "${ZSH_VERSION+set}" ; then 20352 setopt NO_GLOB_SUBST 20353 fi 20354 20355 cfgfile="${ofile}T" 20356 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20357 $RM "$cfgfile" 20358 20359 cat <<_LT_EOF >> "$cfgfile" 20360#! $SHELL 20361 20362# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20363# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20365# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20366# 20367# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20368# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20369# Foundation, Inc. 20370# Written by Gordon Matzigkeit, 1996 20371# 20372# This file is part of GNU Libtool. 20373# 20374# GNU Libtool is free software; you can redistribute it and/or 20375# modify it under the terms of the GNU General Public License as 20376# published by the Free Software Foundation; either version 2 of 20377# the License, or (at your option) any later version. 20378# 20379# As a special exception to the GNU General Public License, 20380# if you distribute this file as part of a program or library that 20381# is built using GNU Libtool, you may include this file under the 20382# same distribution terms that you use for the rest of that program. 20383# 20384# GNU Libtool is distributed in the hope that it will be useful, 20385# but WITHOUT ANY WARRANTY; without even the implied warranty of 20386# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20387# GNU General Public License for more details. 20388# 20389# You should have received a copy of the GNU General Public License 20390# along with GNU Libtool; see the file COPYING. If not, a copy 20391# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20392# obtained by writing to the Free Software Foundation, Inc., 20393# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20394 20395 20396# The names of the tagged configurations supported by this script. 20397available_tags="" 20398 20399# ### BEGIN LIBTOOL CONFIG 20400 20401# Which release of libtool.m4 was used? 20402macro_version=$macro_version 20403macro_revision=$macro_revision 20404 20405# Assembler program. 20406AS=$lt_AS 20407 20408# DLL creation program. 20409DLLTOOL=$lt_DLLTOOL 20410 20411# Object dumper program. 20412OBJDUMP=$lt_OBJDUMP 20413 20414# Whether or not to build shared libraries. 20415build_libtool_libs=$enable_shared 20416 20417# Whether or not to build static libraries. 20418build_old_libs=$enable_static 20419 20420# What type of objects to build. 20421pic_mode=$pic_mode 20422 20423# Whether or not to optimize for fast installation. 20424fast_install=$enable_fast_install 20425 20426# Shell to use when invoking shell scripts. 20427SHELL=$lt_SHELL 20428 20429# An echo program that protects backslashes. 20430ECHO=$lt_ECHO 20431 20432# The PATH separator for the build system. 20433PATH_SEPARATOR=$lt_PATH_SEPARATOR 20434 20435# The host system. 20436host_alias=$host_alias 20437host=$host 20438host_os=$host_os 20439 20440# The build system. 20441build_alias=$build_alias 20442build=$build 20443build_os=$build_os 20444 20445# A sed program that does not truncate output. 20446SED=$lt_SED 20447 20448# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20449Xsed="\$SED -e 1s/^X//" 20450 20451# A grep program that handles long lines. 20452GREP=$lt_GREP 20453 20454# An ERE matcher. 20455EGREP=$lt_EGREP 20456 20457# A literal string matcher. 20458FGREP=$lt_FGREP 20459 20460# A BSD- or MS-compatible name lister. 20461NM=$lt_NM 20462 20463# Whether we need soft or hard links. 20464LN_S=$lt_LN_S 20465 20466# What is the maximum length of a command? 20467max_cmd_len=$max_cmd_len 20468 20469# Object file suffix (normally "o"). 20470objext=$ac_objext 20471 20472# Executable file suffix (normally ""). 20473exeext=$exeext 20474 20475# whether the shell understands "unset". 20476lt_unset=$lt_unset 20477 20478# turn spaces into newlines. 20479SP2NL=$lt_lt_SP2NL 20480 20481# turn newlines into spaces. 20482NL2SP=$lt_lt_NL2SP 20483 20484# convert \$build file names to \$host format. 20485to_host_file_cmd=$lt_cv_to_host_file_cmd 20486 20487# convert \$build files to toolchain format. 20488to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20489 20490# Method to check whether dependent libraries are shared objects. 20491deplibs_check_method=$lt_deplibs_check_method 20492 20493# Command to use when deplibs_check_method = "file_magic". 20494file_magic_cmd=$lt_file_magic_cmd 20495 20496# How to find potential files when deplibs_check_method = "file_magic". 20497file_magic_glob=$lt_file_magic_glob 20498 20499# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20500want_nocaseglob=$lt_want_nocaseglob 20501 20502# Command to associate shared and link libraries. 20503sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20504 20505# The archiver. 20506AR=$lt_AR 20507 20508# Flags to create an archive. 20509AR_FLAGS=$lt_AR_FLAGS 20510 20511# How to feed a file listing to the archiver. 20512archiver_list_spec=$lt_archiver_list_spec 20513 20514# A symbol stripping program. 20515STRIP=$lt_STRIP 20516 20517# Commands used to install an old-style archive. 20518RANLIB=$lt_RANLIB 20519old_postinstall_cmds=$lt_old_postinstall_cmds 20520old_postuninstall_cmds=$lt_old_postuninstall_cmds 20521 20522# Whether to use a lock for old archive extraction. 20523lock_old_archive_extraction=$lock_old_archive_extraction 20524 20525# A C compiler. 20526LTCC=$lt_CC 20527 20528# LTCC compiler flags. 20529LTCFLAGS=$lt_CFLAGS 20530 20531# Take the output of nm and produce a listing of raw symbols and C names. 20532global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20533 20534# Transform the output of nm in a proper C declaration. 20535global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20536 20537# Transform the output of nm in a C name address pair. 20538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20539 20540# Transform the output of nm in a C name address pair when lib prefix is needed. 20541global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20542 20543# Specify filename containing input files for \$NM. 20544nm_file_list_spec=$lt_nm_file_list_spec 20545 20546# The root where to search for dependent libraries,and in which our libraries should be installed. 20547lt_sysroot=$lt_sysroot 20548 20549# The name of the directory that contains temporary libtool files. 20550objdir=$objdir 20551 20552# Used to examine libraries when file_magic_cmd begins with "file". 20553MAGIC_CMD=$MAGIC_CMD 20554 20555# Must we lock files when doing compilation? 20556need_locks=$lt_need_locks 20557 20558# Manifest tool. 20559MANIFEST_TOOL=$lt_MANIFEST_TOOL 20560 20561# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20562DSYMUTIL=$lt_DSYMUTIL 20563 20564# Tool to change global to local symbols on Mac OS X. 20565NMEDIT=$lt_NMEDIT 20566 20567# Tool to manipulate fat objects and archives on Mac OS X. 20568LIPO=$lt_LIPO 20569 20570# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20571OTOOL=$lt_OTOOL 20572 20573# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20574OTOOL64=$lt_OTOOL64 20575 20576# Old archive suffix (normally "a"). 20577libext=$libext 20578 20579# Shared library suffix (normally ".so"). 20580shrext_cmds=$lt_shrext_cmds 20581 20582# The commands to extract the exported symbol list from a shared archive. 20583extract_expsyms_cmds=$lt_extract_expsyms_cmds 20584 20585# Variables whose values should be saved in libtool wrapper scripts and 20586# restored at link time. 20587variables_saved_for_relink=$lt_variables_saved_for_relink 20588 20589# Do we need the "lib" prefix for modules? 20590need_lib_prefix=$need_lib_prefix 20591 20592# Do we need a version for libraries? 20593need_version=$need_version 20594 20595# Library versioning type. 20596version_type=$version_type 20597 20598# Shared library runtime path variable. 20599runpath_var=$runpath_var 20600 20601# Shared library path variable. 20602shlibpath_var=$shlibpath_var 20603 20604# Is shlibpath searched before the hard-coded library search path? 20605shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20606 20607# Format of library name prefix. 20608libname_spec=$lt_libname_spec 20609 20610# List of archive names. First name is the real one, the rest are links. 20611# The last name is the one that the linker finds with -lNAME 20612library_names_spec=$lt_library_names_spec 20613 20614# The coded name of the library, if different from the real name. 20615soname_spec=$lt_soname_spec 20616 20617# Permission mode override for installation of shared libraries. 20618install_override_mode=$lt_install_override_mode 20619 20620# Command to use after installation of a shared archive. 20621postinstall_cmds=$lt_postinstall_cmds 20622 20623# Command to use after uninstallation of a shared archive. 20624postuninstall_cmds=$lt_postuninstall_cmds 20625 20626# Commands used to finish a libtool library installation in a directory. 20627finish_cmds=$lt_finish_cmds 20628 20629# As "finish_cmds", except a single script fragment to be evaled but 20630# not shown. 20631finish_eval=$lt_finish_eval 20632 20633# Whether we should hardcode library paths into libraries. 20634hardcode_into_libs=$hardcode_into_libs 20635 20636# Compile-time system search path for libraries. 20637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20638 20639# Run-time system search path for libraries. 20640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20641 20642# Whether dlopen is supported. 20643dlopen_support=$enable_dlopen 20644 20645# Whether dlopen of programs is supported. 20646dlopen_self=$enable_dlopen_self 20647 20648# Whether dlopen of statically linked programs is supported. 20649dlopen_self_static=$enable_dlopen_self_static 20650 20651# Commands to strip libraries. 20652old_striplib=$lt_old_striplib 20653striplib=$lt_striplib 20654 20655 20656# The linker used to build libraries. 20657LD=$lt_LD 20658 20659# How to create reloadable object files. 20660reload_flag=$lt_reload_flag 20661reload_cmds=$lt_reload_cmds 20662 20663# Commands used to build an old-style archive. 20664old_archive_cmds=$lt_old_archive_cmds 20665 20666# A language specific compiler. 20667CC=$lt_compiler 20668 20669# Is the compiler the GNU compiler? 20670with_gcc=$GCC 20671 20672# Compiler flag to turn off builtin functions. 20673no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20674 20675# Additional compiler flags for building library objects. 20676pic_flag=$lt_lt_prog_compiler_pic 20677 20678# How to pass a linker flag through the compiler. 20679wl=$lt_lt_prog_compiler_wl 20680 20681# Compiler flag to prevent dynamic linking. 20682link_static_flag=$lt_lt_prog_compiler_static 20683 20684# Does compiler simultaneously support -c and -o options? 20685compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20686 20687# Whether or not to add -lc for building shared libraries. 20688build_libtool_need_lc=$archive_cmds_need_lc 20689 20690# Whether or not to disallow shared libs when runtime libs are static. 20691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20692 20693# Compiler flag to allow reflexive dlopens. 20694export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20695 20696# Compiler flag to generate shared objects directly from archives. 20697whole_archive_flag_spec=$lt_whole_archive_flag_spec 20698 20699# Whether the compiler copes with passing no objects directly. 20700compiler_needs_object=$lt_compiler_needs_object 20701 20702# Create an old-style archive from a shared archive. 20703old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20704 20705# Create a temporary old-style archive to link instead of a shared archive. 20706old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20707 20708# Commands used to build a shared archive. 20709archive_cmds=$lt_archive_cmds 20710archive_expsym_cmds=$lt_archive_expsym_cmds 20711 20712# Commands used to build a loadable module if different from building 20713# a shared archive. 20714module_cmds=$lt_module_cmds 20715module_expsym_cmds=$lt_module_expsym_cmds 20716 20717# Whether we are building with GNU ld or not. 20718with_gnu_ld=$lt_with_gnu_ld 20719 20720# Flag that allows shared libraries with undefined symbols to be built. 20721allow_undefined_flag=$lt_allow_undefined_flag 20722 20723# Flag that enforces no undefined symbols. 20724no_undefined_flag=$lt_no_undefined_flag 20725 20726# Flag to hardcode \$libdir into a binary during linking. 20727# This must work even if \$libdir does not exist 20728hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20729 20730# Whether we need a single "-rpath" flag with a separated argument. 20731hardcode_libdir_separator=$lt_hardcode_libdir_separator 20732 20733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20734# DIR into the resulting binary. 20735hardcode_direct=$hardcode_direct 20736 20737# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20738# DIR into the resulting binary and the resulting library dependency is 20739# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20740# library is relocated. 20741hardcode_direct_absolute=$hardcode_direct_absolute 20742 20743# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20744# into the resulting binary. 20745hardcode_minus_L=$hardcode_minus_L 20746 20747# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20748# into the resulting binary. 20749hardcode_shlibpath_var=$hardcode_shlibpath_var 20750 20751# Set to "yes" if building a shared library automatically hardcodes DIR 20752# into the library and all subsequent libraries and executables linked 20753# against it. 20754hardcode_automatic=$hardcode_automatic 20755 20756# Set to yes if linker adds runtime paths of dependent libraries 20757# to runtime path list. 20758inherit_rpath=$inherit_rpath 20759 20760# Whether libtool must link a program against all its dependency libraries. 20761link_all_deplibs=$link_all_deplibs 20762 20763# Set to "yes" if exported symbols are required. 20764always_export_symbols=$always_export_symbols 20765 20766# The commands to list exported symbols. 20767export_symbols_cmds=$lt_export_symbols_cmds 20768 20769# Symbols that should not be listed in the preloaded symbols. 20770exclude_expsyms=$lt_exclude_expsyms 20771 20772# Symbols that must always be exported. 20773include_expsyms=$lt_include_expsyms 20774 20775# Commands necessary for linking programs (against libraries) with templates. 20776prelink_cmds=$lt_prelink_cmds 20777 20778# Commands necessary for finishing linking programs. 20779postlink_cmds=$lt_postlink_cmds 20780 20781# Specify filename containing input files. 20782file_list_spec=$lt_file_list_spec 20783 20784# How to hardcode a shared library path into an executable. 20785hardcode_action=$hardcode_action 20786 20787# ### END LIBTOOL CONFIG 20788 20789_LT_EOF 20790 20791 case $host_os in 20792 aix3*) 20793 cat <<\_LT_EOF >> "$cfgfile" 20794# AIX sometimes has problems with the GCC collect2 program. For some 20795# reason, if we set the COLLECT_NAMES environment variable, the problems 20796# vanish in a puff of smoke. 20797if test "X${COLLECT_NAMES+set}" != Xset; then 20798 COLLECT_NAMES= 20799 export COLLECT_NAMES 20800fi 20801_LT_EOF 20802 ;; 20803 esac 20804 20805 20806ltmain="$ac_aux_dir/ltmain.sh" 20807 20808 20809 # We use sed instead of cat because bash on DJGPP gets confused if 20810 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20811 # text mode, it properly converts lines to CR/LF. This bash problem 20812 # is reportedly fixed, but why not run on old versions too? 20813 sed '$q' "$ltmain" >> "$cfgfile" \ 20814 || (rm -f "$cfgfile"; exit 1) 20815 20816 if test x"$xsi_shell" = xyes; then 20817 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20818func_dirname ()\ 20819{\ 20820\ case ${1} in\ 20821\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20822\ * ) func_dirname_result="${3}" ;;\ 20823\ esac\ 20824} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20825 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20827test 0 -eq $? || _lt_function_replace_fail=: 20828 20829 20830 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20831func_basename ()\ 20832{\ 20833\ func_basename_result="${1##*/}"\ 20834} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20835 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20837test 0 -eq $? || _lt_function_replace_fail=: 20838 20839 20840 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20841func_dirname_and_basename ()\ 20842{\ 20843\ case ${1} in\ 20844\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20845\ * ) func_dirname_result="${3}" ;;\ 20846\ esac\ 20847\ func_basename_result="${1##*/}"\ 20848} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20849 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20851test 0 -eq $? || _lt_function_replace_fail=: 20852 20853 20854 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20855func_stripname ()\ 20856{\ 20857\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20858\ # positional parameters, so assign one to ordinary parameter first.\ 20859\ func_stripname_result=${3}\ 20860\ func_stripname_result=${func_stripname_result#"${1}"}\ 20861\ func_stripname_result=${func_stripname_result%"${2}"}\ 20862} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20863 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20865test 0 -eq $? || _lt_function_replace_fail=: 20866 20867 20868 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20869func_split_long_opt ()\ 20870{\ 20871\ func_split_long_opt_name=${1%%=*}\ 20872\ func_split_long_opt_arg=${1#*=}\ 20873} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20874 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20876test 0 -eq $? || _lt_function_replace_fail=: 20877 20878 20879 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20880func_split_short_opt ()\ 20881{\ 20882\ func_split_short_opt_arg=${1#??}\ 20883\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20884} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20885 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20887test 0 -eq $? || _lt_function_replace_fail=: 20888 20889 20890 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20891func_lo2o ()\ 20892{\ 20893\ case ${1} in\ 20894\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20895\ *) func_lo2o_result=${1} ;;\ 20896\ esac\ 20897} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20898 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20900test 0 -eq $? || _lt_function_replace_fail=: 20901 20902 20903 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20904func_xform ()\ 20905{\ 20906 func_xform_result=${1%.*}.lo\ 20907} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20908 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20910test 0 -eq $? || _lt_function_replace_fail=: 20911 20912 20913 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20914func_arith ()\ 20915{\ 20916 func_arith_result=$(( $* ))\ 20917} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20918 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20920test 0 -eq $? || _lt_function_replace_fail=: 20921 20922 20923 sed -e '/^func_len ()$/,/^} # func_len /c\ 20924func_len ()\ 20925{\ 20926 func_len_result=${#1}\ 20927} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20930test 0 -eq $? || _lt_function_replace_fail=: 20931 20932fi 20933 20934if test x"$lt_shell_append" = xyes; then 20935 sed -e '/^func_append ()$/,/^} # func_append /c\ 20936func_append ()\ 20937{\ 20938 eval "${1}+=\\${2}"\ 20939} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20940 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20942test 0 -eq $? || _lt_function_replace_fail=: 20943 20944 20945 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20946func_append_quoted ()\ 20947{\ 20948\ func_quote_for_eval "${2}"\ 20949\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20950} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20951 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20953test 0 -eq $? || _lt_function_replace_fail=: 20954 20955 20956 # Save a `func_append' function call where possible by direct use of '+=' 20957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20958 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20960 test 0 -eq $? || _lt_function_replace_fail=: 20961else 20962 # Save a `func_append' function call even when '+=' is not available 20963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20964 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20966 test 0 -eq $? || _lt_function_replace_fail=: 20967fi 20968 20969if test x"$_lt_function_replace_fail" = x":"; then 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20971$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20972fi 20973 20974 20975 mv -f "$cfgfile" "$ofile" || 20976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20977 chmod +x "$ofile" 20978 20979 ;; 20980 "xdvi":F) chmod +x xdvi ;; 20981 20982 esac 20983done # for ac_tag 20984 20985 20986as_fn_exit 0 20987_ACEOF 20988ac_clean_files=$ac_clean_files_save 20989 20990test $ac_write_fail = 0 || 20991 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20992 20993if test "x$cross_compiling" = xyes; then : 20994 cache_file=/dev/null 20995 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \ 20996 CC='$BUILDCC' CPPFLAGS='$BUILDCPPFLAGS'\ 20997 CFLAGS='$BUILDCFLAGS' LDFLAGS='$BUILDLDFLAGS'" 20998fi 20999 21000# configure is writing to config.log, and then calls config.status. 21001# config.status does its own redirection, appending to config.log. 21002# Unfortunately, on DOS this fails, as config.log is still kept open 21003# by configure, so config.status won't be able to write to it; its 21004# output is simply discarded. So we exec the FD to /dev/null, 21005# effectively closing config.log, so it can be properly (re)opened and 21006# appended to by config.status. When coming back to configure, we 21007# need to make the FD available again. 21008if test "$no_create" != yes; then 21009 ac_cs_success=: 21010 ac_config_status_args= 21011 test "$silent" = yes && 21012 ac_config_status_args="$ac_config_status_args --quiet" 21013 exec 5>/dev/null 21014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21015 exec 5>>config.log 21016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21017 # would make configure fail if this is the last instruction. 21018 $ac_cs_success || as_fn_exit 1 21019fi 21020 21021# 21022# CONFIG_SUBDIRS section. 21023# 21024if test "$no_recursion" != yes; then 21025 21026 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 21027 # so they do not pile up. 21028 ac_sub_configure_args= 21029 ac_prev= 21030 eval "set x $ac_configure_args" 21031 shift 21032 for ac_arg 21033 do 21034 if test -n "$ac_prev"; then 21035 ac_prev= 21036 continue 21037 fi 21038 case $ac_arg in 21039 -cache-file | --cache-file | --cache-fil | --cache-fi \ 21040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 21041 ac_prev=cache_file ;; 21042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 21043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 21044 | --c=*) 21045 ;; 21046 --config-cache | -C) 21047 ;; 21048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 21049 ac_prev=srcdir ;; 21050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 21051 ;; 21052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 21053 ac_prev=prefix ;; 21054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 21055 ;; 21056 --disable-option-checking) 21057 ;; 21058 *) 21059 case $ac_arg in 21060 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21061 esac 21062 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 21063 esac 21064 done 21065 21066 # Always prepend --prefix to ensure using the same prefix 21067 # in subdir configurations. 21068 ac_arg="--prefix=$prefix" 21069 case $ac_arg in 21070 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21071 esac 21072 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 21073 21074 # Pass --silent 21075 if test "$silent" = yes; then 21076 ac_sub_configure_args="--silent $ac_sub_configure_args" 21077 fi 21078 21079 # Always prepend --disable-option-checking to silence warnings, since 21080 # different subdirs can have different --enable and --with options. 21081 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 21082 21083 ac_popdir=`pwd` 21084 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 21085 21086 # Do not complain, so a configure script can configure whichever 21087 # parts of a large source tree are present. 21088 test -d "$srcdir/$ac_dir" || continue 21089 21090 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 21091 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 21092 $as_echo "$ac_msg" >&6 21093 as_dir="$ac_dir"; as_fn_mkdir_p 21094 ac_builddir=. 21095 21096case "$ac_dir" in 21097.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21098*) 21099 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21100 # A ".." for each directory in $ac_dir_suffix. 21101 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21102 case $ac_top_builddir_sub in 21103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21105 esac ;; 21106esac 21107ac_abs_top_builddir=$ac_pwd 21108ac_abs_builddir=$ac_pwd$ac_dir_suffix 21109# for backward compatibility: 21110ac_top_builddir=$ac_top_build_prefix 21111 21112case $srcdir in 21113 .) # We are building in place. 21114 ac_srcdir=. 21115 ac_top_srcdir=$ac_top_builddir_sub 21116 ac_abs_top_srcdir=$ac_pwd ;; 21117 [\\/]* | ?:[\\/]* ) # Absolute name. 21118 ac_srcdir=$srcdir$ac_dir_suffix; 21119 ac_top_srcdir=$srcdir 21120 ac_abs_top_srcdir=$srcdir ;; 21121 *) # Relative name. 21122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21123 ac_top_srcdir=$ac_top_build_prefix$srcdir 21124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21125esac 21126ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21127 21128 21129 cd "$ac_dir" 21130 21131 # Check for guested configure; otherwise get Cygnus style configure. 21132 if test -f "$ac_srcdir/configure.gnu"; then 21133 ac_sub_configure=$ac_srcdir/configure.gnu 21134 elif test -f "$ac_srcdir/configure"; then 21135 ac_sub_configure=$ac_srcdir/configure 21136 elif test -f "$ac_srcdir/configure.in"; then 21137 # This should be Cygnus configure. 21138 ac_sub_configure=$ac_aux_dir/configure 21139 else 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 21141$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21142 ac_sub_configure= 21143 fi 21144 21145 # The recursion is here. 21146 if test -n "$ac_sub_configure"; then 21147 # Make the cache file name correct relative to the subdirectory. 21148 case $cache_file in 21149 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21150 *) # Relative name. 21151 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 21152 esac 21153 21154 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21155$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21156 # The eval makes quoting arguments work. 21157 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 21158 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 21159 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 21160 fi 21161 21162 cd "$ac_popdir" 21163 done 21164fi 21165if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21167$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21168fi 21169 21170