1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Find the correct PATH separator. Usually this is `:', but 245# DJGPP uses `;' like DOS. 246if test "X${PATH_SEPARATOR+set}" != Xset; then 247 UNAME=${UNAME-`uname 2>/dev/null`} 248 case X$UNAME in 249 *-DOS) lt_cv_sys_path_separator=';' ;; 250 *) lt_cv_sys_path_separator=':' ;; 251 esac 252fi 253 254 255# Check that we are running under the correct shell. 256SHELL=${CONFIG_SHELL-/bin/sh} 257 258case X$ECHO in 259X*--fallback-echo) 260 # Remove one level of quotation (which was required for Make). 261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 262 ;; 263esac 264 265echo=${ECHO-echo} 266if test "X$1" = X--no-reexec; then 267 # Discard the --no-reexec flag, and continue. 268 shift 269elif test "X$1" = X--fallback-echo; then 270 # Avoid inline document here, it may be left over 271 : 272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 273 # Yippee, $echo works! 274 : 275else 276 # Restart under the correct shell. 277 exec $SHELL "$0" --no-reexec ${1+"$@"} 278fi 279 280if test "X$1" = X--fallback-echo; then 281 # used as fallback echo 282 shift 283 cat <<EOF 284 285EOF 286 exit 0 287fi 288 289# The HP-UX ksh and POSIX shell print the target directory to stdout 290# if CDPATH is set. 291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 292 293if test -z "$ECHO"; then 294if test "X${echo_test_string+set}" != Xset; then 295# find a string as large as possible, as long as the shell can cope with it 296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 298 if (echo_test_string="`eval $cmd`") 2>/dev/null && 299 echo_test_string="`eval $cmd`" && 300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 301 then 302 break 303 fi 304 done 305fi 306 307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 309 test "X$echo_testing_string" = "X$echo_test_string"; then 310 : 311else 312 # The Solaris, AIX, and Digital Unix default echo programs unquote 313 # backslashes. This makes it impossible to quote backslashes using 314 # echo "$something" | sed 's/\\/\\\\/g' 315 # 316 # So, first we look for a working echo in the user's PATH. 317 318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 319 for dir in $PATH /usr/ucb; do 320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 323 test "X$echo_testing_string" = "X$echo_test_string"; then 324 echo="$dir/echo" 325 break 326 fi 327 done 328 IFS="$save_ifs" 329 330 if test "X$echo" = Xecho; then 331 # We didn't find a better echo, so look for alternatives. 332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 334 test "X$echo_testing_string" = "X$echo_test_string"; then 335 # This shell has a builtin print -r that does the trick. 336 echo='print -r' 337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 338 test "X$CONFIG_SHELL" != X/bin/ksh; then 339 # If we have ksh, try running configure again with it. 340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 341 export ORIGINAL_CONFIG_SHELL 342 CONFIG_SHELL=/bin/ksh 343 export CONFIG_SHELL 344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 345 else 346 # Try using printf. 347 echo='printf %s\n' 348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 350 test "X$echo_testing_string" = "X$echo_test_string"; then 351 # Cool, printf works 352 : 353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 358 export CONFIG_SHELL 359 SHELL="$CONFIG_SHELL" 360 export SHELL 361 echo="$CONFIG_SHELL $0 --fallback-echo" 362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 363 test "X$echo_testing_string" = 'X\t' && 364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 365 test "X$echo_testing_string" = "X$echo_test_string"; then 366 echo="$CONFIG_SHELL $0 --fallback-echo" 367 else 368 # maybe with a smaller string... 369 prev=: 370 371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 373 then 374 break 375 fi 376 prev="$cmd" 377 done 378 379 if test "$prev" != 'sed 50q "$0"'; then 380 echo_test_string=`eval $prev` 381 export echo_test_string 382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 383 else 384 # Oops. We lost completely, so just stick with echo. 385 echo=echo 386 fi 387 fi 388 fi 389 fi 390fi 391fi 392 393# Copy echo and quote the copy suitably for passing to libtool from 394# the Makefile, instead of quoting the original, which is used later. 395ECHO=$echo 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 398fi 399 400 401 402# Name of the host. 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 404# so uname gets run too. 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 406 407exec 6>&1 408 409# 410# Initializations. 411# 412ac_default_prefix=/usr/local 413ac_config_libobj_dir=. 414cross_compiling=no 415subdirs= 416MFLAGS= 417MAKEFLAGS= 418SHELL=${CONFIG_SHELL-/bin/sh} 419 420# Maximum number of lines to put in a shell here document. 421# This variable seems obsolete. It should probably be removed, and 422# only ac_max_sed_lines should be used. 423: ${ac_max_here_lines=38} 424 425# Identity of this package. 426PACKAGE_NAME= 427PACKAGE_TARNAME= 428PACKAGE_VERSION= 429PACKAGE_STRING= 430PACKAGE_BUGREPORT= 431 432ac_unique_file="src/gimageview.c" 433# Factoring default headers for most tests. 434ac_includes_default="\ 435#include <stdio.h> 436#if HAVE_SYS_TYPES_H 437# include <sys/types.h> 438#endif 439#if HAVE_SYS_STAT_H 440# include <sys/stat.h> 441#endif 442#if STDC_HEADERS 443# include <stdlib.h> 444# include <stddef.h> 445#else 446# if HAVE_STDLIB_H 447# include <stdlib.h> 448# endif 449#endif 450#if HAVE_STRING_H 451# if !STDC_HEADERS && HAVE_MEMORY_H 452# include <memory.h> 453# endif 454# include <string.h> 455#endif 456#if HAVE_STRINGS_H 457# include <strings.h> 458#endif 459#if HAVE_INTTYPES_H 460# include <inttypes.h> 461#else 462# if HAVE_STDINT_H 463# include <stdint.h> 464# endif 465#endif 466#if HAVE_UNISTD_H 467# include <unistd.h> 468#endif" 469 470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S YACC CPP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE WINDRES OS_WIN32_TRUE OS_WIN32_FALSE ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL GLIB_REQUIRED GTK_REQUIRED IMLIB_REQUIRED GDK_PIXBUF_REQUIRED LIBRSVG_REQUIRED LIBWMF_REQUIRED XINE_REQUIRED GLIB2_REQUIRED GMODULE2_REQUIRED GTK2_REQUIRED GDK_PIXBUF2_REQUIRED PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG IMLIB_CONFIG GDK_IMLIB_CFLAGS GDK_IMLIB_LIBS GDK_PIXBUF_CONFIG GDK_PIXBUF_CFLAGS GDK_PIXBUF_LIBS ENABLE_GDK_PIXBUF_TRUE ENABLE_GDK_PIXBUF_FALSE ENABLE_GDK_IMLIB_TRUE ENABLE_GDK_IMLIB_FALSE GIMV_IMAGELIB_CFLAGS GIMV_IMAGELIB_LIBS ZLIB_CFLAGS ZLIB_LIBS HAVE_BZLIB_TRUE HAVE_BZLIB_FALSE BZLIB_CFLAGS BZLIB_LIBS PNG_CFLAGS PNG_LIBS HAVE_PNG_TRUE HAVE_PNG_FALSE ENABLE_JPEG_TRUE ENABLE_JPEG_FALSE JPEG_CFLAGS JPEG_LIBS ENABLE_MNG_TRUE ENABLE_MNG_FALSE MNG_CFLAGS MNG_LIBS LIBRSVG_CFLAGS LIBRSVG_LIBS GNOME_CONFIG GNOME_CFLAGS GNOME_LIBS GNOMEUI_CFLAGS GNOMEUI_LIBS ZVT_LIBS GLIB_CFLAGS GLIB_LIBS OAF_CFLAGS OAF_LIBS GNORBA_CFLAGS GNORBA_LIBS ENABLE_LIBRSVG_TRUE ENABLE_LIBRSVG_FALSE XML_CFLAGS XML_LIBS LIBWMF_CONFIG LIBWMF_CFLAGS LIBWMF_LIBS ENABLE_WMF_TRUE ENABLE_WMF_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XINERAMA_LIBS XINE_CONFIG XINE_CFLAGS XINE_LIBS XINE_ACFLAGS ENABLE_XINE_TRUE ENABLE_XINE_FALSE ALLOCA GLIBC21 LIBICONV LTLIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX localedir LIBCHARSET INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL ENABLE_EXIF_TRUE ENABLE_EXIF_FALSE EXIF_CFLAGS EXIF_LIBS ENABLE_SPI_TRUE ENABLE_SPI_FALSE DLLLOADER_CFLAGS DLLLOADER_LIBS ENABLE_MPLAYER_TRUE ENABLE_MPLAYER_FALSE LIBOBJS docdir gimv_datadir gimv_docdir gimv_icondir plugindir ARCHIVER_PLUGIN_DIR IMAGE_LOADER_PLUGIN_DIR IMAGE_SAVER_PLUGIN_DIR IO_STREAM_PLUGIN_DIR IMAGE_VIEW_PLUGIN_DIR THUMBNAIL_VIEW_PLUGIN_DIR THUMBNAIL_PLUGIN_DIR LTLIBOBJS' 471ac_subst_files='' 472 473# Initialize some variables set by options. 474ac_init_help= 475ac_init_version=false 476# The variables have the same names as the options, with 477# dashes changed to underlines. 478cache_file=/dev/null 479exec_prefix=NONE 480no_create= 481no_recursion= 482prefix=NONE 483program_prefix=NONE 484program_suffix=NONE 485program_transform_name=s,x,x, 486silent= 487site= 488srcdir= 489verbose= 490x_includes=NONE 491x_libraries=NONE 492 493# Installation directory options. 494# These are left unexpanded so users can "make install exec_prefix=/foo" 495# and all the variables that are supposed to be based on exec_prefix 496# by default will actually change. 497# Use braces instead of parens because sh, perl, etc. also accept them. 498bindir='${exec_prefix}/bin' 499sbindir='${exec_prefix}/sbin' 500libexecdir='${exec_prefix}/libexec' 501datadir='${prefix}/share' 502sysconfdir='${prefix}/etc' 503sharedstatedir='${prefix}/com' 504localstatedir='${prefix}/var' 505libdir='${exec_prefix}/lib' 506includedir='${prefix}/include' 507oldincludedir='/usr/include' 508infodir='${prefix}/info' 509mandir='${prefix}/man' 510 511ac_prev= 512for ac_option 513do 514 # If the previous option needs an argument, assign it. 515 if test -n "$ac_prev"; then 516 eval "$ac_prev=\$ac_option" 517 ac_prev= 518 continue 519 fi 520 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 522 523 # Accept the important Cygnus configure options, so we can diagnose typos. 524 525 case $ac_option in 526 527 -bindir | --bindir | --bindi | --bind | --bin | --bi) 528 ac_prev=bindir ;; 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 530 bindir=$ac_optarg ;; 531 532 -build | --build | --buil | --bui | --bu) 533 ac_prev=build_alias ;; 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 535 build_alias=$ac_optarg ;; 536 537 -cache-file | --cache-file | --cache-fil | --cache-fi \ 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 539 ac_prev=cache_file ;; 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 542 cache_file=$ac_optarg ;; 543 544 --config-cache | -C) 545 cache_file=config.cache ;; 546 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 548 ac_prev=datadir ;; 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 550 | --da=*) 551 datadir=$ac_optarg ;; 552 553 -disable-* | --disable-*) 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 555 # Reject names that are not valid shell variable names. 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 558 { (exit 1); exit 1; }; } 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 560 eval "enable_$ac_feature=no" ;; 561 562 -enable-* | --enable-*) 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 567 { (exit 1); exit 1; }; } 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 569 case $ac_option in 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 571 *) ac_optarg=yes ;; 572 esac 573 eval "enable_$ac_feature='$ac_optarg'" ;; 574 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 577 | --exec | --exe | --ex) 578 ac_prev=exec_prefix ;; 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 581 | --exec=* | --exe=* | --ex=*) 582 exec_prefix=$ac_optarg ;; 583 584 -gas | --gas | --ga | --g) 585 # Obsolete; use --with-gas. 586 with_gas=yes ;; 587 588 -help | --help | --hel | --he | -h) 589 ac_init_help=long ;; 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 591 ac_init_help=recursive ;; 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 593 ac_init_help=short ;; 594 595 -host | --host | --hos | --ho) 596 ac_prev=host_alias ;; 597 -host=* | --host=* | --hos=* | --ho=*) 598 host_alias=$ac_optarg ;; 599 600 -includedir | --includedir | --includedi | --included | --include \ 601 | --includ | --inclu | --incl | --inc) 602 ac_prev=includedir ;; 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 604 | --includ=* | --inclu=* | --incl=* | --inc=*) 605 includedir=$ac_optarg ;; 606 607 -infodir | --infodir | --infodi | --infod | --info | --inf) 608 ac_prev=infodir ;; 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 610 infodir=$ac_optarg ;; 611 612 -libdir | --libdir | --libdi | --libd) 613 ac_prev=libdir ;; 614 -libdir=* | --libdir=* | --libdi=* | --libd=*) 615 libdir=$ac_optarg ;; 616 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 618 | --libexe | --libex | --libe) 619 ac_prev=libexecdir ;; 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 621 | --libexe=* | --libex=* | --libe=*) 622 libexecdir=$ac_optarg ;; 623 624 -localstatedir | --localstatedir | --localstatedi | --localstated \ 625 | --localstate | --localstat | --localsta | --localst \ 626 | --locals | --local | --loca | --loc | --lo) 627 ac_prev=localstatedir ;; 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 631 localstatedir=$ac_optarg ;; 632 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 634 ac_prev=mandir ;; 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 636 mandir=$ac_optarg ;; 637 638 -nfp | --nfp | --nf) 639 # Obsolete; use --without-fp. 640 with_fp=no ;; 641 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 643 | --no-cr | --no-c | -n) 644 no_create=yes ;; 645 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 648 no_recursion=yes ;; 649 650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 652 | --oldin | --oldi | --old | --ol | --o) 653 ac_prev=oldincludedir ;; 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 657 oldincludedir=$ac_optarg ;; 658 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 660 ac_prev=prefix ;; 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 662 prefix=$ac_optarg ;; 663 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 665 | --program-pre | --program-pr | --program-p) 666 ac_prev=program_prefix ;; 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 669 program_prefix=$ac_optarg ;; 670 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 672 | --program-suf | --program-su | --program-s) 673 ac_prev=program_suffix ;; 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 676 program_suffix=$ac_optarg ;; 677 678 -program-transform-name | --program-transform-name \ 679 | --program-transform-nam | --program-transform-na \ 680 | --program-transform-n | --program-transform- \ 681 | --program-transform | --program-transfor \ 682 | --program-transfo | --program-transf \ 683 | --program-trans | --program-tran \ 684 | --progr-tra | --program-tr | --program-t) 685 ac_prev=program_transform_name ;; 686 -program-transform-name=* | --program-transform-name=* \ 687 | --program-transform-nam=* | --program-transform-na=* \ 688 | --program-transform-n=* | --program-transform-=* \ 689 | --program-transform=* | --program-transfor=* \ 690 | --program-transfo=* | --program-transf=* \ 691 | --program-trans=* | --program-tran=* \ 692 | --progr-tra=* | --program-tr=* | --program-t=*) 693 program_transform_name=$ac_optarg ;; 694 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 696 | -silent | --silent | --silen | --sile | --sil) 697 silent=yes ;; 698 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 700 ac_prev=sbindir ;; 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 702 | --sbi=* | --sb=*) 703 sbindir=$ac_optarg ;; 704 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 707 | --sharedst | --shareds | --shared | --share | --shar \ 708 | --sha | --sh) 709 ac_prev=sharedstatedir ;; 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 713 | --sha=* | --sh=*) 714 sharedstatedir=$ac_optarg ;; 715 716 -site | --site | --sit) 717 ac_prev=site ;; 718 -site=* | --site=* | --sit=*) 719 site=$ac_optarg ;; 720 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 722 ac_prev=srcdir ;; 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 724 srcdir=$ac_optarg ;; 725 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 727 | --syscon | --sysco | --sysc | --sys | --sy) 728 ac_prev=sysconfdir ;; 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 731 sysconfdir=$ac_optarg ;; 732 733 -target | --target | --targe | --targ | --tar | --ta | --t) 734 ac_prev=target_alias ;; 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 736 target_alias=$ac_optarg ;; 737 738 -v | -verbose | --verbose | --verbos | --verbo | --verb) 739 verbose=yes ;; 740 741 -version | --version | --versio | --versi | --vers | -V) 742 ac_init_version=: ;; 743 744 -with-* | --with-*) 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 746 # Reject names that are not valid shell variable names. 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 748 { echo "$as_me: error: invalid package name: $ac_package" >&2 749 { (exit 1); exit 1; }; } 750 ac_package=`echo $ac_package| sed 's/-/_/g'` 751 case $ac_option in 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 753 *) ac_optarg=yes ;; 754 esac 755 eval "with_$ac_package='$ac_optarg'" ;; 756 757 -without-* | --without-*) 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 759 # Reject names that are not valid shell variable names. 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 761 { echo "$as_me: error: invalid package name: $ac_package" >&2 762 { (exit 1); exit 1; }; } 763 ac_package=`echo $ac_package | sed 's/-/_/g'` 764 eval "with_$ac_package=no" ;; 765 766 --x) 767 # Obsolete; use --with-x. 768 with_x=yes ;; 769 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 771 | --x-incl | --x-inc | --x-in | --x-i) 772 ac_prev=x_includes ;; 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 775 x_includes=$ac_optarg ;; 776 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 779 ac_prev=x_libraries ;; 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 782 x_libraries=$ac_optarg ;; 783 784 -*) { echo "$as_me: error: unrecognized option: $ac_option 785Try \`$0 --help' for more information." >&2 786 { (exit 1); exit 1; }; } 787 ;; 788 789 *=*) 790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 791 # Reject names that are not valid shell variable names. 792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 794 { (exit 1); exit 1; }; } 795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 796 eval "$ac_envvar='$ac_optarg'" 797 export $ac_envvar ;; 798 799 *) 800 # FIXME: should be removed in autoconf 3.0. 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 805 ;; 806 807 esac 808done 809 810if test -n "$ac_prev"; then 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 812 { echo "$as_me: error: missing argument to $ac_option" >&2 813 { (exit 1); exit 1; }; } 814fi 815 816# Be sure to have absolute paths. 817for ac_var in exec_prefix prefix 818do 819 eval ac_val=$`echo $ac_var` 820 case $ac_val in 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 823 { (exit 1); exit 1; }; };; 824 esac 825done 826 827# Be sure to have absolute paths. 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 829 localstatedir libdir includedir oldincludedir infodir mandir 830do 831 eval ac_val=$`echo $ac_var` 832 case $ac_val in 833 [\\/$]* | ?:[\\/]* ) ;; 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 835 { (exit 1); exit 1; }; };; 836 esac 837done 838 839# There might be people who depend on the old broken behavior: `$host' 840# used to hold the argument of --host etc. 841# FIXME: To remove some day. 842build=$build_alias 843host=$host_alias 844target=$target_alias 845 846# FIXME: To remove some day. 847if test "x$host_alias" != x; then 848 if test "x$build_alias" = x; then 849 cross_compiling=maybe 850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 851 If a cross compiler is detected then cross compile mode will be used." >&2 852 elif test "x$build_alias" != "x$host_alias"; then 853 cross_compiling=yes 854 fi 855fi 856 857ac_tool_prefix= 858test -n "$host_alias" && ac_tool_prefix=$host_alias- 859 860test "$silent" = yes && exec 6>/dev/null 861 862 863# Find the source files, if location was not specified. 864if test -z "$srcdir"; then 865 ac_srcdir_defaulted=yes 866 # Try the directory containing this script, then its parent. 867 ac_confdir=`(dirname "$0") 2>/dev/null || 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 869 X"$0" : 'X\(//\)[^/]' \| \ 870 X"$0" : 'X\(//\)$' \| \ 871 X"$0" : 'X\(/\)' \| \ 872 . : '\(.\)' 2>/dev/null || 873echo X"$0" | 874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 876 /^X\(\/\/\)$/{ s//\1/; q; } 877 /^X\(\/\).*/{ s//\1/; q; } 878 s/.*/./; q'` 879 srcdir=$ac_confdir 880 if test ! -r $srcdir/$ac_unique_file; then 881 srcdir=.. 882 fi 883else 884 ac_srcdir_defaulted=no 885fi 886if test ! -r $srcdir/$ac_unique_file; then 887 if test "$ac_srcdir_defaulted" = yes; then 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 889 { (exit 1); exit 1; }; } 890 else 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 892 { (exit 1); exit 1; }; } 893 fi 894fi 895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 897 { (exit 1); exit 1; }; } 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 899ac_env_build_alias_set=${build_alias+set} 900ac_env_build_alias_value=$build_alias 901ac_cv_env_build_alias_set=${build_alias+set} 902ac_cv_env_build_alias_value=$build_alias 903ac_env_host_alias_set=${host_alias+set} 904ac_env_host_alias_value=$host_alias 905ac_cv_env_host_alias_set=${host_alias+set} 906ac_cv_env_host_alias_value=$host_alias 907ac_env_target_alias_set=${target_alias+set} 908ac_env_target_alias_value=$target_alias 909ac_cv_env_target_alias_set=${target_alias+set} 910ac_cv_env_target_alias_value=$target_alias 911ac_env_CC_set=${CC+set} 912ac_env_CC_value=$CC 913ac_cv_env_CC_set=${CC+set} 914ac_cv_env_CC_value=$CC 915ac_env_CFLAGS_set=${CFLAGS+set} 916ac_env_CFLAGS_value=$CFLAGS 917ac_cv_env_CFLAGS_set=${CFLAGS+set} 918ac_cv_env_CFLAGS_value=$CFLAGS 919ac_env_LDFLAGS_set=${LDFLAGS+set} 920ac_env_LDFLAGS_value=$LDFLAGS 921ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 922ac_cv_env_LDFLAGS_value=$LDFLAGS 923ac_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_env_CPPFLAGS_value=$CPPFLAGS 925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CPP_set=${CPP+set} 936ac_env_CPP_value=$CPP 937ac_cv_env_CPP_set=${CPP+set} 938ac_cv_env_CPP_value=$CPP 939 940# 941# Report the --help message. 942# 943if test "$ac_init_help" = "long"; then 944 # Omit some internal or obsolete options to make the list less imposing. 945 # This message is too long to be a string in the A/UX 3.1 sh. 946 cat <<_ACEOF 947\`configure' configures this package to adapt to many kinds of systems. 948 949Usage: $0 [OPTION]... [VAR=VALUE]... 950 951To assign environment variables (e.g., CC, CFLAGS...), specify them as 952VAR=VALUE. See below for descriptions of some of the useful variables. 953 954Defaults for the options are specified in brackets. 955 956Configuration: 957 -h, --help display this help and exit 958 --help=short display options specific to this package 959 --help=recursive display the short help of all the included packages 960 -V, --version display version information and exit 961 -q, --quiet, --silent do not print \`checking...' messages 962 --cache-file=FILE cache test results in FILE [disabled] 963 -C, --config-cache alias for \`--cache-file=config.cache' 964 -n, --no-create do not create output files 965 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 966 967_ACEOF 968 969 cat <<_ACEOF 970Installation directories: 971 --prefix=PREFIX install architecture-independent files in PREFIX 972 [$ac_default_prefix] 973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 974 [PREFIX] 975 976By default, \`make install' will install all the files in 977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 978an installation prefix other than \`$ac_default_prefix' using \`--prefix', 979for instance \`--prefix=\$HOME'. 980 981For better control, use the options below. 982 983Fine tuning of the installation directories: 984 --bindir=DIR user executables [EPREFIX/bin] 985 --sbindir=DIR system admin executables [EPREFIX/sbin] 986 --libexecdir=DIR program executables [EPREFIX/libexec] 987 --datadir=DIR read-only architecture-independent data [PREFIX/share] 988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 990 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 991 --libdir=DIR object code libraries [EPREFIX/lib] 992 --includedir=DIR C header files [PREFIX/include] 993 --oldincludedir=DIR C header files for non-gcc [/usr/include] 994 --infodir=DIR info documentation [PREFIX/info] 995 --mandir=DIR man documentation [PREFIX/man] 996_ACEOF 997 998 cat <<\_ACEOF 999 1000Program names: 1001 --program-prefix=PREFIX prepend PREFIX to installed program names 1002 --program-suffix=SUFFIX append SUFFIX to installed program names 1003 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1004 1005X features: 1006 --x-includes=DIR X include files are in DIR 1007 --x-libraries=DIR X library files are in DIR 1008 1009System types: 1010 --build=BUILD configure for building on BUILD [guessed] 1011 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1012_ACEOF 1013fi 1014 1015if test -n "$ac_init_help"; then 1016 1017 cat <<\_ACEOF 1018 1019Optional Features: 1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1022 --disable-dependency-tracking speeds up one-time build 1023 --enable-dependency-tracking do not reject slow dependency extractors 1024 --enable-maintainer-mode enable make rules and dependencies not useful 1025 (and sometimes confusing) to the casual installer 1026 --enable-shared=PKGS build shared libraries default=yes 1027 --enable-static=PKGS build static libraries default=no 1028 --enable-fast-install=PKGS optimize for fast installation default=yes 1029 --disable-libtool-lock avoid locking (might break parallel builds) 1030 --disable-gtktest Do not try to compile and run a test GTK program 1031 --disable-imlib Do not use imlib 1032 --disable-gdk-pixbuf Do not use gdk-pixbuf 1033 --disable-imlibtest Do not try to compile and run a test IMLIB program 1034 --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program 1035 --disable-libwmftest Do not try to compile and run a test libwmf program 1036 --disable-xinetest Do not try to compile and run a test XINE program 1037 --disable-rpath do not hardcode runtime library paths 1038 --disable-nls do not use Native Language Support 1039 --enable-exif enable EXIF support default=yes 1040 --enable-spi susie plugin support (broken) default=no 1041 --enable-splash enable splash logo 1042 --enable-mplayer enable MPlyer support (experimental) default=no 1043 1044Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-x use the X Window System 1048 --with-gnu-ld assume the C compiler uses GNU ld default=no 1049 --with-pic try to use only PIC/non-PIC objects default=use both 1050 --with-gtk2 Use Gtk+-2.0 (experimental) default=no 1051 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1052 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1053 --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional) 1054 --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional) 1055 --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional) 1056 --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional) 1057 --with-libmng Use libmng for MNG image default=yes 1058 --with-librsvg Use librsvg for SVG image default=yes 1059 --with-gnome-prefix=PFX Prefix where GNOME is installed (optional) 1060 --with-gnome-exec-prefix=PFX Exec prefix where GNOME is installed (optional) 1061 --with-libwmf Use libwmf library for Windows Meta File default=yes 1062 --with-libwmf-prefix=PFX Prefix where libwmf is installed (optional) 1063 --with-libwmf-exec-prefix=PFX Exec prefix where libwmf is installed (optional) 1064 --with-xine Use Xine library for movie (experimental) default=no 1065 --with-xine-prefix=PFX Prefix where XINE is installed (optional) 1066 --with-xine-exec-prefix=PFX Exec prefix where XINE is installed (optional) 1067 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1068 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1069 --with-included-gettext use the GNU gettext library included here 1070 --with-libcharset-prefix=DIR search for libcharset in DIR/include and DIR/lib 1071 1072Some influential environment variables: 1073 CC C compiler command 1074 CFLAGS C compiler flags 1075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1076 nonstandard directory <lib dir> 1077 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1078 headers in a nonstandard directory <include dir> 1079 CXX C++ compiler command 1080 CXXFLAGS C++ compiler flags 1081 CPP C preprocessor 1082 1083Use these variables to override the choices made by `configure' or to help 1084it to find libraries and programs with nonstandard names/locations. 1085 1086_ACEOF 1087fi 1088 1089if test "$ac_init_help" = "recursive"; then 1090 # If there are subdirs, report their specific --help. 1091 ac_popdir=`pwd` 1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1093 test -d $ac_dir || continue 1094 ac_builddir=. 1095 1096if test "$ac_dir" != .; then 1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1098 # A "../" for each directory in $ac_dir_suffix. 1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1100else 1101 ac_dir_suffix= ac_top_builddir= 1102fi 1103 1104case $srcdir in 1105 .) # No --srcdir option. We are building in place. 1106 ac_srcdir=. 1107 if test -z "$ac_top_builddir"; then 1108 ac_top_srcdir=. 1109 else 1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1111 fi ;; 1112 [\\/]* | ?:[\\/]* ) # Absolute path. 1113 ac_srcdir=$srcdir$ac_dir_suffix; 1114 ac_top_srcdir=$srcdir ;; 1115 *) # Relative path. 1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1117 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1118esac 1119 1120# Do not use `cd foo && pwd` to compute absolute paths, because 1121# the directories may not exist. 1122case `pwd` in 1123.) ac_abs_builddir="$ac_dir";; 1124*) 1125 case "$ac_dir" in 1126 .) ac_abs_builddir=`pwd`;; 1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1128 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1129 esac;; 1130esac 1131case $ac_abs_builddir in 1132.) ac_abs_top_builddir=${ac_top_builddir}.;; 1133*) 1134 case ${ac_top_builddir}. in 1135 .) ac_abs_top_builddir=$ac_abs_builddir;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1138 esac;; 1139esac 1140case $ac_abs_builddir in 1141.) ac_abs_srcdir=$ac_srcdir;; 1142*) 1143 case $ac_srcdir in 1144 .) ac_abs_srcdir=$ac_abs_builddir;; 1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1147 esac;; 1148esac 1149case $ac_abs_builddir in 1150.) ac_abs_top_srcdir=$ac_top_srcdir;; 1151*) 1152 case $ac_top_srcdir in 1153 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1156 esac;; 1157esac 1158 1159 cd $ac_dir 1160 # Check for guested configure; otherwise get Cygnus style configure. 1161 if test -f $ac_srcdir/configure.gnu; then 1162 echo 1163 $SHELL $ac_srcdir/configure.gnu --help=recursive 1164 elif test -f $ac_srcdir/configure; then 1165 echo 1166 $SHELL $ac_srcdir/configure --help=recursive 1167 elif test -f $ac_srcdir/configure.ac || 1168 test -f $ac_srcdir/configure.in; then 1169 echo 1170 $ac_configure --help 1171 else 1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1173 fi 1174 cd $ac_popdir 1175 done 1176fi 1177 1178test -n "$ac_init_help" && exit 0 1179if $ac_init_version; then 1180 cat <<\_ACEOF 1181 1182Copyright (C) 2003 Free Software Foundation, Inc. 1183This configure script is free software; the Free Software Foundation 1184gives unlimited permission to copy, distribute and modify it. 1185_ACEOF 1186 exit 0 1187fi 1188exec 5>config.log 1189cat >&5 <<_ACEOF 1190This file contains any messages produced by compilers while 1191running configure, to aid debugging if configure makes a mistake. 1192 1193It was created by $as_me, which was 1194generated by GNU Autoconf 2.59. Invocation command line was 1195 1196 $ $0 $@ 1197 1198_ACEOF 1199{ 1200cat <<_ASUNAME 1201## --------- ## 1202## Platform. ## 1203## --------- ## 1204 1205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1206uname -m = `(uname -m) 2>/dev/null || echo unknown` 1207uname -r = `(uname -r) 2>/dev/null || echo unknown` 1208uname -s = `(uname -s) 2>/dev/null || echo unknown` 1209uname -v = `(uname -v) 2>/dev/null || echo unknown` 1210 1211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1212/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1213 1214/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1215/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1217hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1218/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1219/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1220/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1221 1222_ASUNAME 1223 1224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1225for as_dir in $PATH 1226do 1227 IFS=$as_save_IFS 1228 test -z "$as_dir" && as_dir=. 1229 echo "PATH: $as_dir" 1230done 1231 1232} >&5 1233 1234cat >&5 <<_ACEOF 1235 1236 1237## ----------- ## 1238## Core tests. ## 1239## ----------- ## 1240 1241_ACEOF 1242 1243 1244# Keep a trace of the command line. 1245# Strip out --no-create and --no-recursion so they do not pile up. 1246# Strip out --silent because we don't want to record it for future runs. 1247# Also quote any args containing shell meta-characters. 1248# Make two passes to allow for proper duplicate-argument suppression. 1249ac_configure_args= 1250ac_configure_args0= 1251ac_configure_args1= 1252ac_sep= 1253ac_must_keep_next=false 1254for ac_pass in 1 2 1255do 1256 for ac_arg 1257 do 1258 case $ac_arg in 1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1261 | -silent | --silent | --silen | --sile | --sil) 1262 continue ;; 1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1265 esac 1266 case $ac_pass in 1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1268 2) 1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1270 if test $ac_must_keep_next = true; then 1271 ac_must_keep_next=false # Got value, back to normal. 1272 else 1273 case $ac_arg in 1274 *=* | --config-cache | -C | -disable-* | --disable-* \ 1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1277 | -with-* | --with-* | -without-* | --without-* | --x) 1278 case "$ac_configure_args0 " in 1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1280 esac 1281 ;; 1282 -* ) ac_must_keep_next=true ;; 1283 esac 1284 fi 1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1286 # Get rid of the leading space. 1287 ac_sep=" " 1288 ;; 1289 esac 1290 done 1291done 1292$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1293$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1294 1295# When interrupted or exit'd, cleanup temporary files, and complete 1296# config.log. We remove comments because anyway the quotes in there 1297# would cause problems or look ugly. 1298# WARNING: Be sure not to use single quotes in there, as some shells, 1299# such as our DU 5.0 friend, will then `close' the trap. 1300trap 'exit_status=$? 1301 # Save into config.log some information that might help in debugging. 1302 { 1303 echo 1304 1305 cat <<\_ASBOX 1306## ---------------- ## 1307## Cache variables. ## 1308## ---------------- ## 1309_ASBOX 1310 echo 1311 # The following way of writing the cache mishandles newlines in values, 1312{ 1313 (set) 2>&1 | 1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1315 *ac_space=\ *) 1316 sed -n \ 1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1319 ;; 1320 *) 1321 sed -n \ 1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1323 ;; 1324 esac; 1325} 1326 echo 1327 1328 cat <<\_ASBOX 1329## ----------------- ## 1330## Output variables. ## 1331## ----------------- ## 1332_ASBOX 1333 echo 1334 for ac_var in $ac_subst_vars 1335 do 1336 eval ac_val=$`echo $ac_var` 1337 echo "$ac_var='"'"'$ac_val'"'"'" 1338 done | sort 1339 echo 1340 1341 if test -n "$ac_subst_files"; then 1342 cat <<\_ASBOX 1343## ------------- ## 1344## Output files. ## 1345## ------------- ## 1346_ASBOX 1347 echo 1348 for ac_var in $ac_subst_files 1349 do 1350 eval ac_val=$`echo $ac_var` 1351 echo "$ac_var='"'"'$ac_val'"'"'" 1352 done | sort 1353 echo 1354 fi 1355 1356 if test -s confdefs.h; then 1357 cat <<\_ASBOX 1358## ----------- ## 1359## confdefs.h. ## 1360## ----------- ## 1361_ASBOX 1362 echo 1363 sed "/^$/d" confdefs.h | sort 1364 echo 1365 fi 1366 test "$ac_signal" != 0 && 1367 echo "$as_me: caught signal $ac_signal" 1368 echo "$as_me: exit $exit_status" 1369 } >&5 1370 rm -f core *.core && 1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1372 exit $exit_status 1373 ' 0 1374for ac_signal in 1 2 13 15; do 1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1376done 1377ac_signal=0 1378 1379# confdefs.h avoids OS command line length limits that DEFS can exceed. 1380rm -rf conftest* confdefs.h 1381# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1382echo >confdefs.h 1383 1384# Predefined preprocessor variables. 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_NAME "$PACKAGE_NAME" 1388_ACEOF 1389 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1393_ACEOF 1394 1395 1396cat >>confdefs.h <<_ACEOF 1397#define PACKAGE_VERSION "$PACKAGE_VERSION" 1398_ACEOF 1399 1400 1401cat >>confdefs.h <<_ACEOF 1402#define PACKAGE_STRING "$PACKAGE_STRING" 1403_ACEOF 1404 1405 1406cat >>confdefs.h <<_ACEOF 1407#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1408_ACEOF 1409 1410 1411# Let the site file select an alternate cache file if it wants to. 1412# Prefer explicitly selected file to automatically selected ones. 1413if test -z "$CONFIG_SITE"; then 1414 if test "x$prefix" != xNONE; then 1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1416 else 1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1418 fi 1419fi 1420for ac_site_file in $CONFIG_SITE; do 1421 if test -r "$ac_site_file"; then 1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1423echo "$as_me: loading site script $ac_site_file" >&6;} 1424 sed 's/^/| /' "$ac_site_file" >&5 1425 . "$ac_site_file" 1426 fi 1427done 1428 1429if test -r "$cache_file"; then 1430 # Some versions of bash will fail to source /dev/null (special 1431 # files actually), so we avoid doing that. 1432 if test -f "$cache_file"; then 1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1434echo "$as_me: loading cache $cache_file" >&6;} 1435 case $cache_file in 1436 [\\/]* | ?:[\\/]* ) . $cache_file;; 1437 *) . ./$cache_file;; 1438 esac 1439 fi 1440else 1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1442echo "$as_me: creating cache $cache_file" >&6;} 1443 >$cache_file 1444fi 1445 1446# Check that the precious variables saved in the cache have kept the same 1447# value. 1448ac_cache_corrupted=false 1449for ac_var in `(set) 2>&1 | 1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1452 eval ac_new_set=\$ac_env_${ac_var}_set 1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1454 eval ac_new_val="\$ac_env_${ac_var}_value" 1455 case $ac_old_set,$ac_new_set in 1456 set,) 1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1458echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1459 ac_cache_corrupted=: ;; 1460 ,set) 1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1462echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1463 ac_cache_corrupted=: ;; 1464 ,);; 1465 *) 1466 if test "x$ac_old_val" != "x$ac_new_val"; then 1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1468echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1470echo "$as_me: former value: $ac_old_val" >&2;} 1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1472echo "$as_me: current value: $ac_new_val" >&2;} 1473 ac_cache_corrupted=: 1474 fi;; 1475 esac 1476 # Pass precious variables to config.status. 1477 if test "$ac_new_set" = set; then 1478 case $ac_new_val in 1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1481 *) ac_arg=$ac_var=$ac_new_val ;; 1482 esac 1483 case " $ac_configure_args " in 1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1486 esac 1487 fi 1488done 1489if $ac_cache_corrupted; then 1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1491echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1493echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1494 { (exit 1); exit 1; }; } 1495fi 1496 1497ac_ext=c 1498ac_cpp='$CPP $CPPFLAGS' 1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1501ac_compiler_gnu=$ac_cv_c_compiler_gnu 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521PACKAGE=gimageview 1522 1523MAJOR_VERSION=0 1524MINOR_VERSION=2 1525MICRO_VERSION=27 1526EXTRA_VERSION= 1527VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION 1528 1529am__api_version="1.8" 1530ac_aux_dir= 1531for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1532 if test -f $ac_dir/install-sh; then 1533 ac_aux_dir=$ac_dir 1534 ac_install_sh="$ac_aux_dir/install-sh -c" 1535 break 1536 elif test -f $ac_dir/install.sh; then 1537 ac_aux_dir=$ac_dir 1538 ac_install_sh="$ac_aux_dir/install.sh -c" 1539 break 1540 elif test -f $ac_dir/shtool; then 1541 ac_aux_dir=$ac_dir 1542 ac_install_sh="$ac_aux_dir/shtool install -c" 1543 break 1544 fi 1545done 1546if test -z "$ac_aux_dir"; then 1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1548echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1549 { (exit 1); exit 1; }; } 1550fi 1551ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1552ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1553ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1554 1555# Find a good install program. We prefer a C program (faster), 1556# so one script is as good as another. But avoid the broken or 1557# incompatible versions: 1558# SysV /etc/install, /usr/sbin/install 1559# SunOS /usr/etc/install 1560# IRIX /sbin/install 1561# AIX /bin/install 1562# AmigaOS /C/install, which installs bootblocks on floppy discs 1563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1564# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1566# OS/2's system install, which has a completely different semantic 1567# ./install, which can be erroneously created by make from ./install.sh. 1568echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1569echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1570if test -z "$INSTALL"; then 1571if test "${ac_cv_path_install+set}" = set; then 1572 echo $ECHO_N "(cached) $ECHO_C" >&6 1573else 1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1575for as_dir in $PATH 1576do 1577 IFS=$as_save_IFS 1578 test -z "$as_dir" && as_dir=. 1579 # Account for people who put trailing slashes in PATH elements. 1580case $as_dir/ in 1581 ./ | .// | /cC/* | \ 1582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1583 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1584 /usr/ucb/* ) ;; 1585 *) 1586 # OSF1 and SCO ODT 3.0 have their own names for install. 1587 # Don't use installbsd from OSF since it installs stuff as root 1588 # by default. 1589 for ac_prog in ginstall scoinst install; do 1590 for ac_exec_ext in '' $ac_executable_extensions; do 1591 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1592 if test $ac_prog = install && 1593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1594 # AIX install. It has an incompatible calling convention. 1595 : 1596 elif test $ac_prog = install && 1597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1598 # program-specific install script used by HP pwplus--don't use. 1599 : 1600 else 1601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1602 break 3 1603 fi 1604 fi 1605 done 1606 done 1607 ;; 1608esac 1609done 1610 1611 1612fi 1613 if test "${ac_cv_path_install+set}" = set; then 1614 INSTALL=$ac_cv_path_install 1615 else 1616 # As a last resort, use the slow shell script. We don't cache a 1617 # path for INSTALL within a source directory, because that will 1618 # break other packages using the cache if that directory is 1619 # removed, or if the path is relative. 1620 INSTALL=$ac_install_sh 1621 fi 1622fi 1623echo "$as_me:$LINENO: result: $INSTALL" >&5 1624echo "${ECHO_T}$INSTALL" >&6 1625 1626# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1627# It thinks the first close brace ends the variable substitution. 1628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1629 1630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1631 1632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1633 1634echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1635echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1636# Just in case 1637sleep 1 1638echo timestamp > conftest.file 1639# Do `set' in a subshell so we don't clobber the current shell's 1640# arguments. Must try -L first in case configure is actually a 1641# symlink; some systems play weird games with the mod time of symlinks 1642# (eg FreeBSD returns the mod time of the symlink's containing 1643# directory). 1644if ( 1645 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1646 if test "$*" = "X"; then 1647 # -L didn't work. 1648 set X `ls -t $srcdir/configure conftest.file` 1649 fi 1650 rm -f conftest.file 1651 if test "$*" != "X $srcdir/configure conftest.file" \ 1652 && test "$*" != "X conftest.file $srcdir/configure"; then 1653 1654 # If neither matched, then we have a broken ls. This can happen 1655 # if, for instance, CONFIG_SHELL is bash and it inherits a 1656 # broken ls alias from the environment. This has actually 1657 # happened. Such a system could not be considered "sane". 1658 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1659alias in your environment" >&5 1660echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1661alias in your environment" >&2;} 1662 { (exit 1); exit 1; }; } 1663 fi 1664 1665 test "$2" = conftest.file 1666 ) 1667then 1668 # Ok. 1669 : 1670else 1671 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1672Check your system clock" >&5 1673echo "$as_me: error: newly created file is older than distributed files! 1674Check your system clock" >&2;} 1675 { (exit 1); exit 1; }; } 1676fi 1677echo "$as_me:$LINENO: result: yes" >&5 1678echo "${ECHO_T}yes" >&6 1679test "$program_prefix" != NONE && 1680 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1681# Use a double $ so make ignores it. 1682test "$program_suffix" != NONE && 1683 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1684# Double any \ or $. echo might interpret backslashes. 1685# By default was `s,x,x', remove it if useless. 1686cat <<\_ACEOF >conftest.sed 1687s/[\\$]/&&/g;s/;s,x,x,$// 1688_ACEOF 1689program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1690rm conftest.sed 1691 1692# expand $ac_aux_dir to an absolute path 1693am_aux_dir=`cd $ac_aux_dir && pwd` 1694 1695test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1696# Use eval to expand $SHELL 1697if eval "$MISSING --run true"; then 1698 am_missing_run="$MISSING --run " 1699else 1700 am_missing_run= 1701 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1702echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1703fi 1704 1705if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1706 # Keeping the `.' argument allows $(mkdir_p) to be used without 1707 # argument. Indeed, we sometimes output rules like 1708 # $(mkdir_p) $(somedir) 1709 # where $(somedir) is conditionally defined. 1710 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1711 # expensive solution, as it forces Make to start a sub-shell.) 1712 mkdir_p='mkdir -p -- .' 1713else 1714 # On NextStep and OpenStep, the `mkdir' command does not 1715 # recognize any option. It will interpret all options as 1716 # directories to create, and then abort because `.' already 1717 # exists. 1718 for d in ./-p ./--version; 1719 do 1720 test -d $d && rmdir $d 1721 done 1722 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1723 if test -f "$ac_aux_dir/mkinstalldirs"; then 1724 mkdir_p='$(mkinstalldirs)' 1725 else 1726 mkdir_p='$(install_sh) -d' 1727 fi 1728fi 1729 1730for ac_prog in gawk mawk nawk awk 1731do 1732 # Extract the first word of "$ac_prog", so it can be a program name with args. 1733set dummy $ac_prog; ac_word=$2 1734echo "$as_me:$LINENO: checking for $ac_word" >&5 1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1736if test "${ac_cv_prog_AWK+set}" = set; then 1737 echo $ECHO_N "(cached) $ECHO_C" >&6 1738else 1739 if test -n "$AWK"; then 1740 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1741else 1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1743for as_dir in $PATH 1744do 1745 IFS=$as_save_IFS 1746 test -z "$as_dir" && as_dir=. 1747 for ac_exec_ext in '' $ac_executable_extensions; do 1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1749 ac_cv_prog_AWK="$ac_prog" 1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1751 break 2 1752 fi 1753done 1754done 1755 1756fi 1757fi 1758AWK=$ac_cv_prog_AWK 1759if test -n "$AWK"; then 1760 echo "$as_me:$LINENO: result: $AWK" >&5 1761echo "${ECHO_T}$AWK" >&6 1762else 1763 echo "$as_me:$LINENO: result: no" >&5 1764echo "${ECHO_T}no" >&6 1765fi 1766 1767 test -n "$AWK" && break 1768done 1769 1770echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1771echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1772set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1773if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1774 echo $ECHO_N "(cached) $ECHO_C" >&6 1775else 1776 cat >conftest.make <<\_ACEOF 1777all: 1778 @echo 'ac_maketemp="$(MAKE)"' 1779_ACEOF 1780# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1781eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1782if test -n "$ac_maketemp"; then 1783 eval ac_cv_prog_make_${ac_make}_set=yes 1784else 1785 eval ac_cv_prog_make_${ac_make}_set=no 1786fi 1787rm -f conftest.make 1788fi 1789if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1790 echo "$as_me:$LINENO: result: yes" >&5 1791echo "${ECHO_T}yes" >&6 1792 SET_MAKE= 1793else 1794 echo "$as_me:$LINENO: result: no" >&5 1795echo "${ECHO_T}no" >&6 1796 SET_MAKE="MAKE=${MAKE-make}" 1797fi 1798 1799rm -rf .tst 2>/dev/null 1800mkdir .tst 2>/dev/null 1801if test -d .tst; then 1802 am__leading_dot=. 1803else 1804 am__leading_dot=_ 1805fi 1806rmdir .tst 2>/dev/null 1807 1808# test to see if srcdir already configured 1809if test "`cd $srcdir && pwd`" != "`pwd`" && 1810 test -f $srcdir/config.status; then 1811 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1812echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1813 { (exit 1); exit 1; }; } 1814fi 1815 1816# test whether we have cygpath 1817if test -z "$CYGPATH_W"; then 1818 if (cygpath --version) >/dev/null 2>/dev/null; then 1819 CYGPATH_W='cygpath -w' 1820 else 1821 CYGPATH_W=echo 1822 fi 1823fi 1824 1825 1826# Define the identity of the package. 1827 PACKAGE=$PACKAGE 1828 VERSION=$VERSION 1829 1830 1831cat >>confdefs.h <<_ACEOF 1832#define PACKAGE "$PACKAGE" 1833_ACEOF 1834 1835 1836cat >>confdefs.h <<_ACEOF 1837#define VERSION "$VERSION" 1838_ACEOF 1839 1840# Some tools Automake needs. 1841 1842ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1843 1844 1845AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1846 1847 1848AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1849 1850 1851AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1852 1853 1854MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1855 1856 1857AMTAR=${AMTAR-"${am_missing_run}tar"} 1858 1859install_sh=${install_sh-"$am_aux_dir/install-sh"} 1860 1861# Installed binaries are usually stripped using `strip' when the user 1862# run `make install-strip'. However `strip' might not be the right 1863# tool to use in cross-compilation environments, therefore Automake 1864# will honor the `STRIP' environment variable to overrule this program. 1865if test "$cross_compiling" != no; then 1866 if test -n "$ac_tool_prefix"; then 1867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1868set dummy ${ac_tool_prefix}strip; ac_word=$2 1869echo "$as_me:$LINENO: checking for $ac_word" >&5 1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1871if test "${ac_cv_prog_STRIP+set}" = set; then 1872 echo $ECHO_N "(cached) $ECHO_C" >&6 1873else 1874 if test -n "$STRIP"; then 1875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1876else 1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1878for as_dir in $PATH 1879do 1880 IFS=$as_save_IFS 1881 test -z "$as_dir" && as_dir=. 1882 for ac_exec_ext in '' $ac_executable_extensions; do 1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1884 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1886 break 2 1887 fi 1888done 1889done 1890 1891fi 1892fi 1893STRIP=$ac_cv_prog_STRIP 1894if test -n "$STRIP"; then 1895 echo "$as_me:$LINENO: result: $STRIP" >&5 1896echo "${ECHO_T}$STRIP" >&6 1897else 1898 echo "$as_me:$LINENO: result: no" >&5 1899echo "${ECHO_T}no" >&6 1900fi 1901 1902fi 1903if test -z "$ac_cv_prog_STRIP"; then 1904 ac_ct_STRIP=$STRIP 1905 # Extract the first word of "strip", so it can be a program name with args. 1906set dummy strip; ac_word=$2 1907echo "$as_me:$LINENO: checking for $ac_word" >&5 1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1910 echo $ECHO_N "(cached) $ECHO_C" >&6 1911else 1912 if test -n "$ac_ct_STRIP"; then 1913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1914else 1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1916for as_dir in $PATH 1917do 1918 IFS=$as_save_IFS 1919 test -z "$as_dir" && as_dir=. 1920 for ac_exec_ext in '' $ac_executable_extensions; do 1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1922 ac_cv_prog_ac_ct_STRIP="strip" 1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1924 break 2 1925 fi 1926done 1927done 1928 1929 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1930fi 1931fi 1932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1933if test -n "$ac_ct_STRIP"; then 1934 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1935echo "${ECHO_T}$ac_ct_STRIP" >&6 1936else 1937 echo "$as_me:$LINENO: result: no" >&5 1938echo "${ECHO_T}no" >&6 1939fi 1940 1941 STRIP=$ac_ct_STRIP 1942else 1943 STRIP="$ac_cv_prog_STRIP" 1944fi 1945 1946fi 1947INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1948 1949# We need awk for the "check" target. The system "awk" is bad on 1950# some platforms. 1951 1952 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE "$PACKAGE" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define VERSION "$VERSION" 1960_ACEOF 1961 1962 1963 ac_config_headers="$ac_config_headers config.h" 1964 1965 1966 1967 1968 1969for ac_prog in gawk mawk nawk awk 1970do 1971 # Extract the first word of "$ac_prog", so it can be a program name with args. 1972set dummy $ac_prog; ac_word=$2 1973echo "$as_me:$LINENO: checking for $ac_word" >&5 1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1975if test "${ac_cv_prog_AWK+set}" = set; then 1976 echo $ECHO_N "(cached) $ECHO_C" >&6 1977else 1978 if test -n "$AWK"; then 1979 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1980else 1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1982for as_dir in $PATH 1983do 1984 IFS=$as_save_IFS 1985 test -z "$as_dir" && as_dir=. 1986 for ac_exec_ext in '' $ac_executable_extensions; do 1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1988 ac_cv_prog_AWK="$ac_prog" 1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1990 break 2 1991 fi 1992done 1993done 1994 1995fi 1996fi 1997AWK=$ac_cv_prog_AWK 1998if test -n "$AWK"; then 1999 echo "$as_me:$LINENO: result: $AWK" >&5 2000echo "${ECHO_T}$AWK" >&6 2001else 2002 echo "$as_me:$LINENO: result: no" >&5 2003echo "${ECHO_T}no" >&6 2004fi 2005 2006 test -n "$AWK" && break 2007done 2008 2009ac_ext=c 2010ac_cpp='$CPP $CPPFLAGS' 2011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2013ac_compiler_gnu=$ac_cv_c_compiler_gnu 2014if test -n "$ac_tool_prefix"; then 2015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2016set dummy ${ac_tool_prefix}gcc; ac_word=$2 2017echo "$as_me:$LINENO: checking for $ac_word" >&5 2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2019if test "${ac_cv_prog_CC+set}" = set; then 2020 echo $ECHO_N "(cached) $ECHO_C" >&6 2021else 2022 if test -n "$CC"; then 2023 ac_cv_prog_CC="$CC" # Let the user override the test. 2024else 2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2026for as_dir in $PATH 2027do 2028 IFS=$as_save_IFS 2029 test -z "$as_dir" && as_dir=. 2030 for ac_exec_ext in '' $ac_executable_extensions; do 2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2032 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2034 break 2 2035 fi 2036done 2037done 2038 2039fi 2040fi 2041CC=$ac_cv_prog_CC 2042if test -n "$CC"; then 2043 echo "$as_me:$LINENO: result: $CC" >&5 2044echo "${ECHO_T}$CC" >&6 2045else 2046 echo "$as_me:$LINENO: result: no" >&5 2047echo "${ECHO_T}no" >&6 2048fi 2049 2050fi 2051if test -z "$ac_cv_prog_CC"; then 2052 ac_ct_CC=$CC 2053 # Extract the first word of "gcc", so it can be a program name with args. 2054set dummy gcc; ac_word=$2 2055echo "$as_me:$LINENO: checking for $ac_word" >&5 2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2058 echo $ECHO_N "(cached) $ECHO_C" >&6 2059else 2060 if test -n "$ac_ct_CC"; then 2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2062else 2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2064for as_dir in $PATH 2065do 2066 IFS=$as_save_IFS 2067 test -z "$as_dir" && as_dir=. 2068 for ac_exec_ext in '' $ac_executable_extensions; do 2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2070 ac_cv_prog_ac_ct_CC="gcc" 2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2072 break 2 2073 fi 2074done 2075done 2076 2077fi 2078fi 2079ac_ct_CC=$ac_cv_prog_ac_ct_CC 2080if test -n "$ac_ct_CC"; then 2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2082echo "${ECHO_T}$ac_ct_CC" >&6 2083else 2084 echo "$as_me:$LINENO: result: no" >&5 2085echo "${ECHO_T}no" >&6 2086fi 2087 2088 CC=$ac_ct_CC 2089else 2090 CC="$ac_cv_prog_CC" 2091fi 2092 2093if test -z "$CC"; then 2094 if test -n "$ac_tool_prefix"; then 2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2096set dummy ${ac_tool_prefix}cc; ac_word=$2 2097echo "$as_me:$LINENO: checking for $ac_word" >&5 2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2099if test "${ac_cv_prog_CC+set}" = set; then 2100 echo $ECHO_N "(cached) $ECHO_C" >&6 2101else 2102 if test -n "$CC"; then 2103 ac_cv_prog_CC="$CC" # Let the user override the test. 2104else 2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2106for as_dir in $PATH 2107do 2108 IFS=$as_save_IFS 2109 test -z "$as_dir" && as_dir=. 2110 for ac_exec_ext in '' $ac_executable_extensions; do 2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2112 ac_cv_prog_CC="${ac_tool_prefix}cc" 2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2114 break 2 2115 fi 2116done 2117done 2118 2119fi 2120fi 2121CC=$ac_cv_prog_CC 2122if test -n "$CC"; then 2123 echo "$as_me:$LINENO: result: $CC" >&5 2124echo "${ECHO_T}$CC" >&6 2125else 2126 echo "$as_me:$LINENO: result: no" >&5 2127echo "${ECHO_T}no" >&6 2128fi 2129 2130fi 2131if test -z "$ac_cv_prog_CC"; then 2132 ac_ct_CC=$CC 2133 # Extract the first word of "cc", so it can be a program name with args. 2134set dummy cc; ac_word=$2 2135echo "$as_me:$LINENO: checking for $ac_word" >&5 2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2138 echo $ECHO_N "(cached) $ECHO_C" >&6 2139else 2140 if test -n "$ac_ct_CC"; then 2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2142else 2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2144for as_dir in $PATH 2145do 2146 IFS=$as_save_IFS 2147 test -z "$as_dir" && as_dir=. 2148 for ac_exec_ext in '' $ac_executable_extensions; do 2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2150 ac_cv_prog_ac_ct_CC="cc" 2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2152 break 2 2153 fi 2154done 2155done 2156 2157fi 2158fi 2159ac_ct_CC=$ac_cv_prog_ac_ct_CC 2160if test -n "$ac_ct_CC"; then 2161 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2162echo "${ECHO_T}$ac_ct_CC" >&6 2163else 2164 echo "$as_me:$LINENO: result: no" >&5 2165echo "${ECHO_T}no" >&6 2166fi 2167 2168 CC=$ac_ct_CC 2169else 2170 CC="$ac_cv_prog_CC" 2171fi 2172 2173fi 2174if test -z "$CC"; then 2175 # Extract the first word of "cc", so it can be a program name with args. 2176set dummy cc; ac_word=$2 2177echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2179if test "${ac_cv_prog_CC+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$CC"; then 2183 ac_cv_prog_CC="$CC" # Let the user override the test. 2184else 2185 ac_prog_rejected=no 2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2187for as_dir in $PATH 2188do 2189 IFS=$as_save_IFS 2190 test -z "$as_dir" && as_dir=. 2191 for ac_exec_ext in '' $ac_executable_extensions; do 2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2194 ac_prog_rejected=yes 2195 continue 2196 fi 2197 ac_cv_prog_CC="cc" 2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2199 break 2 2200 fi 2201done 2202done 2203 2204if test $ac_prog_rejected = yes; then 2205 # We found a bogon in the path, so make sure we never use it. 2206 set dummy $ac_cv_prog_CC 2207 shift 2208 if test $# != 0; then 2209 # We chose a different compiler from the bogus one. 2210 # However, it has the same basename, so the bogon will be chosen 2211 # first if we set CC to just the basename; use the full file name. 2212 shift 2213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2214 fi 2215fi 2216fi 2217fi 2218CC=$ac_cv_prog_CC 2219if test -n "$CC"; then 2220 echo "$as_me:$LINENO: result: $CC" >&5 2221echo "${ECHO_T}$CC" >&6 2222else 2223 echo "$as_me:$LINENO: result: no" >&5 2224echo "${ECHO_T}no" >&6 2225fi 2226 2227fi 2228if test -z "$CC"; then 2229 if test -n "$ac_tool_prefix"; then 2230 for ac_prog in cl 2231 do 2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2233set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2234echo "$as_me:$LINENO: checking for $ac_word" >&5 2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2236if test "${ac_cv_prog_CC+set}" = set; then 2237 echo $ECHO_N "(cached) $ECHO_C" >&6 2238else 2239 if test -n "$CC"; then 2240 ac_cv_prog_CC="$CC" # Let the user override the test. 2241else 2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2243for as_dir in $PATH 2244do 2245 IFS=$as_save_IFS 2246 test -z "$as_dir" && as_dir=. 2247 for ac_exec_ext in '' $ac_executable_extensions; do 2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2251 break 2 2252 fi 2253done 2254done 2255 2256fi 2257fi 2258CC=$ac_cv_prog_CC 2259if test -n "$CC"; then 2260 echo "$as_me:$LINENO: result: $CC" >&5 2261echo "${ECHO_T}$CC" >&6 2262else 2263 echo "$as_me:$LINENO: result: no" >&5 2264echo "${ECHO_T}no" >&6 2265fi 2266 2267 test -n "$CC" && break 2268 done 2269fi 2270if test -z "$CC"; then 2271 ac_ct_CC=$CC 2272 for ac_prog in cl 2273do 2274 # Extract the first word of "$ac_prog", so it can be a program name with args. 2275set dummy $ac_prog; ac_word=$2 2276echo "$as_me:$LINENO: checking for $ac_word" >&5 2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 if test -n "$ac_ct_CC"; then 2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2283else 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2291 ac_cv_prog_ac_ct_CC="$ac_prog" 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2293 break 2 2294 fi 2295done 2296done 2297 2298fi 2299fi 2300ac_ct_CC=$ac_cv_prog_ac_ct_CC 2301if test -n "$ac_ct_CC"; then 2302 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2303echo "${ECHO_T}$ac_ct_CC" >&6 2304else 2305 echo "$as_me:$LINENO: result: no" >&5 2306echo "${ECHO_T}no" >&6 2307fi 2308 2309 test -n "$ac_ct_CC" && break 2310done 2311 2312 CC=$ac_ct_CC 2313fi 2314 2315fi 2316 2317 2318test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2319See \`config.log' for more details." >&5 2320echo "$as_me: error: no acceptable C compiler found in \$PATH 2321See \`config.log' for more details." >&2;} 2322 { (exit 1); exit 1; }; } 2323 2324# Provide some information about the compiler. 2325echo "$as_me:$LINENO:" \ 2326 "checking for C compiler version" >&5 2327ac_compiler=`set X $ac_compile; echo $2` 2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2329 (eval $ac_compiler --version </dev/null >&5) 2>&5 2330 ac_status=$? 2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2332 (exit $ac_status); } 2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2334 (eval $ac_compiler -v </dev/null >&5) 2>&5 2335 ac_status=$? 2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2337 (exit $ac_status); } 2338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2339 (eval $ac_compiler -V </dev/null >&5) 2>&5 2340 ac_status=$? 2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2342 (exit $ac_status); } 2343 2344cat >conftest.$ac_ext <<_ACEOF 2345/* confdefs.h. */ 2346_ACEOF 2347cat confdefs.h >>conftest.$ac_ext 2348cat >>conftest.$ac_ext <<_ACEOF 2349/* end confdefs.h. */ 2350 2351int 2352main () 2353{ 2354 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359ac_clean_files_save=$ac_clean_files 2360ac_clean_files="$ac_clean_files a.out a.exe b.out" 2361# Try to create an executable without -o first, disregard a.out. 2362# It will help us diagnose broken compilers, and finding out an intuition 2363# of exeext. 2364echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2365echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2366ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2367if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2368 (eval $ac_link_default) 2>&5 2369 ac_status=$? 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); }; then 2372 # Find the output, starting from the most likely. This scheme is 2373# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2374# resort. 2375 2376# Be careful to initialize this variable, since it used to be cached. 2377# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2378ac_cv_exeext= 2379# b.out is created by i960 compilers. 2380for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2381do 2382 test -f "$ac_file" || continue 2383 case $ac_file in 2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2385 ;; 2386 conftest.$ac_ext ) 2387 # This is the source file. 2388 ;; 2389 [ab].out ) 2390 # We found the default executable, but exeext='' is most 2391 # certainly right. 2392 break;; 2393 *.* ) 2394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2395 # FIXME: I believe we export ac_cv_exeext for Libtool, 2396 # but it would be cool to find out if it's true. Does anybody 2397 # maintain Libtool? --akim. 2398 export ac_cv_exeext 2399 break;; 2400 * ) 2401 break;; 2402 esac 2403done 2404else 2405 echo "$as_me: failed program was:" >&5 2406sed 's/^/| /' conftest.$ac_ext >&5 2407 2408{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2409See \`config.log' for more details." >&5 2410echo "$as_me: error: C compiler cannot create executables 2411See \`config.log' for more details." >&2;} 2412 { (exit 77); exit 77; }; } 2413fi 2414 2415ac_exeext=$ac_cv_exeext 2416echo "$as_me:$LINENO: result: $ac_file" >&5 2417echo "${ECHO_T}$ac_file" >&6 2418 2419# Check the compiler produces executables we can run. If not, either 2420# the compiler is broken, or we cross compile. 2421echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2422echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2423# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2424# If not cross compiling, check that we can run a simple program. 2425if test "$cross_compiling" != yes; then 2426 if { ac_try='./$ac_file' 2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2428 (eval $ac_try) 2>&5 2429 ac_status=$? 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); }; }; then 2432 cross_compiling=no 2433 else 2434 if test "$cross_compiling" = maybe; then 2435 cross_compiling=yes 2436 else 2437 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2438If you meant to cross compile, use \`--host'. 2439See \`config.log' for more details." >&5 2440echo "$as_me: error: cannot run C compiled programs. 2441If you meant to cross compile, use \`--host'. 2442See \`config.log' for more details." >&2;} 2443 { (exit 1); exit 1; }; } 2444 fi 2445 fi 2446fi 2447echo "$as_me:$LINENO: result: yes" >&5 2448echo "${ECHO_T}yes" >&6 2449 2450rm -f a.out a.exe conftest$ac_cv_exeext b.out 2451ac_clean_files=$ac_clean_files_save 2452# Check the compiler produces executables we can run. If not, either 2453# the compiler is broken, or we cross compile. 2454echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2455echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2456echo "$as_me:$LINENO: result: $cross_compiling" >&5 2457echo "${ECHO_T}$cross_compiling" >&6 2458 2459echo "$as_me:$LINENO: checking for suffix of executables" >&5 2460echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2462 (eval $ac_link) 2>&5 2463 ac_status=$? 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); }; then 2466 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2467# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2468# work properly (i.e., refer to `conftest.exe'), while it won't with 2469# `rm'. 2470for ac_file in conftest.exe conftest conftest.*; do 2471 test -f "$ac_file" || continue 2472 case $ac_file in 2473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2475 export ac_cv_exeext 2476 break;; 2477 * ) break;; 2478 esac 2479done 2480else 2481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2482See \`config.log' for more details." >&5 2483echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2484See \`config.log' for more details." >&2;} 2485 { (exit 1); exit 1; }; } 2486fi 2487 2488rm -f conftest$ac_cv_exeext 2489echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2490echo "${ECHO_T}$ac_cv_exeext" >&6 2491 2492rm -f conftest.$ac_ext 2493EXEEXT=$ac_cv_exeext 2494ac_exeext=$EXEEXT 2495echo "$as_me:$LINENO: checking for suffix of object files" >&5 2496echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2497if test "${ac_cv_objext+set}" = set; then 2498 echo $ECHO_N "(cached) $ECHO_C" >&6 2499else 2500 cat >conftest.$ac_ext <<_ACEOF 2501/* confdefs.h. */ 2502_ACEOF 2503cat confdefs.h >>conftest.$ac_ext 2504cat >>conftest.$ac_ext <<_ACEOF 2505/* end confdefs.h. */ 2506 2507int 2508main () 2509{ 2510 2511 ; 2512 return 0; 2513} 2514_ACEOF 2515rm -f conftest.o conftest.obj 2516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2517 (eval $ac_compile) 2>&5 2518 ac_status=$? 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); }; then 2521 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2522 case $ac_file in 2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2525 break;; 2526 esac 2527done 2528else 2529 echo "$as_me: failed program was:" >&5 2530sed 's/^/| /' conftest.$ac_ext >&5 2531 2532{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2533See \`config.log' for more details." >&5 2534echo "$as_me: error: cannot compute suffix of object files: cannot compile 2535See \`config.log' for more details." >&2;} 2536 { (exit 1); exit 1; }; } 2537fi 2538 2539rm -f conftest.$ac_cv_objext conftest.$ac_ext 2540fi 2541echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2542echo "${ECHO_T}$ac_cv_objext" >&6 2543OBJEXT=$ac_cv_objext 2544ac_objext=$OBJEXT 2545echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2546echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2547if test "${ac_cv_c_compiler_gnu+set}" = set; then 2548 echo $ECHO_N "(cached) $ECHO_C" >&6 2549else 2550 cat >conftest.$ac_ext <<_ACEOF 2551/* confdefs.h. */ 2552_ACEOF 2553cat confdefs.h >>conftest.$ac_ext 2554cat >>conftest.$ac_ext <<_ACEOF 2555/* end confdefs.h. */ 2556 2557int 2558main () 2559{ 2560#ifndef __GNUC__ 2561 choke me 2562#endif 2563 2564 ; 2565 return 0; 2566} 2567_ACEOF 2568rm -f conftest.$ac_objext 2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2570 (eval $ac_compile) 2>conftest.er1 2571 ac_status=$? 2572 grep -v '^ *+' conftest.er1 >conftest.err 2573 rm -f conftest.er1 2574 cat conftest.err >&5 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); } && 2577 { ac_try='test -z "$ac_c_werror_flag" 2578 || test ! -s conftest.err' 2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2580 (eval $ac_try) 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); }; } && 2584 { ac_try='test -s conftest.$ac_objext' 2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2586 (eval $ac_try) 2>&5 2587 ac_status=$? 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); }; }; then 2590 ac_compiler_gnu=yes 2591else 2592 echo "$as_me: failed program was:" >&5 2593sed 's/^/| /' conftest.$ac_ext >&5 2594 2595ac_compiler_gnu=no 2596fi 2597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2598ac_cv_c_compiler_gnu=$ac_compiler_gnu 2599 2600fi 2601echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2602echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2603GCC=`test $ac_compiler_gnu = yes && echo yes` 2604ac_test_CFLAGS=${CFLAGS+set} 2605ac_save_CFLAGS=$CFLAGS 2606CFLAGS="-g" 2607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2609if test "${ac_cv_prog_cc_g+set}" = set; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611else 2612 cat >conftest.$ac_ext <<_ACEOF 2613/* confdefs.h. */ 2614_ACEOF 2615cat confdefs.h >>conftest.$ac_ext 2616cat >>conftest.$ac_ext <<_ACEOF 2617/* end confdefs.h. */ 2618 2619int 2620main () 2621{ 2622 2623 ; 2624 return 0; 2625} 2626_ACEOF 2627rm -f conftest.$ac_objext 2628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2629 (eval $ac_compile) 2>conftest.er1 2630 ac_status=$? 2631 grep -v '^ *+' conftest.er1 >conftest.err 2632 rm -f conftest.er1 2633 cat conftest.err >&5 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); } && 2636 { ac_try='test -z "$ac_c_werror_flag" 2637 || test ! -s conftest.err' 2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2639 (eval $ac_try) 2>&5 2640 ac_status=$? 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); }; } && 2643 { ac_try='test -s conftest.$ac_objext' 2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2645 (eval $ac_try) 2>&5 2646 ac_status=$? 2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2648 (exit $ac_status); }; }; then 2649 ac_cv_prog_cc_g=yes 2650else 2651 echo "$as_me: failed program was:" >&5 2652sed 's/^/| /' conftest.$ac_ext >&5 2653 2654ac_cv_prog_cc_g=no 2655fi 2656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2657fi 2658echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2659echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2660if test "$ac_test_CFLAGS" = set; then 2661 CFLAGS=$ac_save_CFLAGS 2662elif test $ac_cv_prog_cc_g = yes; then 2663 if test "$GCC" = yes; then 2664 CFLAGS="-g -O2" 2665 else 2666 CFLAGS="-g" 2667 fi 2668else 2669 if test "$GCC" = yes; then 2670 CFLAGS="-O2" 2671 else 2672 CFLAGS= 2673 fi 2674fi 2675echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2676echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2677if test "${ac_cv_prog_cc_stdc+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 ac_cv_prog_cc_stdc=no 2681ac_save_CC=$CC 2682cat >conftest.$ac_ext <<_ACEOF 2683/* confdefs.h. */ 2684_ACEOF 2685cat confdefs.h >>conftest.$ac_ext 2686cat >>conftest.$ac_ext <<_ACEOF 2687/* end confdefs.h. */ 2688#include <stdarg.h> 2689#include <stdio.h> 2690#include <sys/types.h> 2691#include <sys/stat.h> 2692/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2693struct buf { int x; }; 2694FILE * (*rcsopen) (struct buf *, struct stat *, int); 2695static char *e (p, i) 2696 char **p; 2697 int i; 2698{ 2699 return p[i]; 2700} 2701static char *f (char * (*g) (char **, int), char **p, ...) 2702{ 2703 char *s; 2704 va_list v; 2705 va_start (v,p); 2706 s = g (p, va_arg (v,int)); 2707 va_end (v); 2708 return s; 2709} 2710 2711/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2712 function prototypes and stuff, but not '\xHH' hex character constants. 2713 These don't provoke an error unfortunately, instead are silently treated 2714 as 'x'. The following induces an error, until -std1 is added to get 2715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2716 array size at least. It's necessary to write '\x00'==0 to get something 2717 that's true only with -std1. */ 2718int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2719 2720int test (int i, double x); 2721struct s1 {int (*f) (int a);}; 2722struct s2 {int (*f) (double a);}; 2723int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2724int argc; 2725char **argv; 2726int 2727main () 2728{ 2729return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2730 ; 2731 return 0; 2732} 2733_ACEOF 2734# Don't try gcc -ansi; that turns off useful extensions and 2735# breaks some systems' header files. 2736# AIX -qlanglvl=ansi 2737# Ultrix and OSF/1 -std1 2738# HP-UX 10.20 and later -Ae 2739# HP-UX older versions -Aa -D_HPUX_SOURCE 2740# SVR4 -Xc -D__EXTENSIONS__ 2741for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2742do 2743 CC="$ac_save_CC $ac_arg" 2744 rm -f conftest.$ac_objext 2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2746 (eval $ac_compile) 2>conftest.er1 2747 ac_status=$? 2748 grep -v '^ *+' conftest.er1 >conftest.err 2749 rm -f conftest.er1 2750 cat conftest.err >&5 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); } && 2753 { ac_try='test -z "$ac_c_werror_flag" 2754 || test ! -s conftest.err' 2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2756 (eval $ac_try) 2>&5 2757 ac_status=$? 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2759 (exit $ac_status); }; } && 2760 { ac_try='test -s conftest.$ac_objext' 2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2762 (eval $ac_try) 2>&5 2763 ac_status=$? 2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2765 (exit $ac_status); }; }; then 2766 ac_cv_prog_cc_stdc=$ac_arg 2767break 2768else 2769 echo "$as_me: failed program was:" >&5 2770sed 's/^/| /' conftest.$ac_ext >&5 2771 2772fi 2773rm -f conftest.err conftest.$ac_objext 2774done 2775rm -f conftest.$ac_ext conftest.$ac_objext 2776CC=$ac_save_CC 2777 2778fi 2779 2780case "x$ac_cv_prog_cc_stdc" in 2781 x|xno) 2782 echo "$as_me:$LINENO: result: none needed" >&5 2783echo "${ECHO_T}none needed" >&6 ;; 2784 *) 2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2786echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2787 CC="$CC $ac_cv_prog_cc_stdc" ;; 2788esac 2789 2790# Some people use a C++ compiler to compile C. Since we use `exit', 2791# in C++ we need to declare it. In case someone uses the same compiler 2792# for both compiling C and C++ we need to have the C++ compiler decide 2793# the declaration of exit, since it's the most demanding environment. 2794cat >conftest.$ac_ext <<_ACEOF 2795#ifndef __cplusplus 2796 choke me 2797#endif 2798_ACEOF 2799rm -f conftest.$ac_objext 2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2801 (eval $ac_compile) 2>conftest.er1 2802 ac_status=$? 2803 grep -v '^ *+' conftest.er1 >conftest.err 2804 rm -f conftest.er1 2805 cat conftest.err >&5 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); } && 2808 { ac_try='test -z "$ac_c_werror_flag" 2809 || test ! -s conftest.err' 2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2811 (eval $ac_try) 2>&5 2812 ac_status=$? 2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814 (exit $ac_status); }; } && 2815 { ac_try='test -s conftest.$ac_objext' 2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2817 (eval $ac_try) 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; }; then 2821 for ac_declaration in \ 2822 '' \ 2823 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2824 'extern "C" void std::exit (int); using std::exit;' \ 2825 'extern "C" void exit (int) throw ();' \ 2826 'extern "C" void exit (int);' \ 2827 'void exit (int);' 2828do 2829 cat >conftest.$ac_ext <<_ACEOF 2830/* confdefs.h. */ 2831_ACEOF 2832cat confdefs.h >>conftest.$ac_ext 2833cat >>conftest.$ac_ext <<_ACEOF 2834/* end confdefs.h. */ 2835$ac_declaration 2836#include <stdlib.h> 2837int 2838main () 2839{ 2840exit (42); 2841 ; 2842 return 0; 2843} 2844_ACEOF 2845rm -f conftest.$ac_objext 2846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2847 (eval $ac_compile) 2>conftest.er1 2848 ac_status=$? 2849 grep -v '^ *+' conftest.er1 >conftest.err 2850 rm -f conftest.er1 2851 cat conftest.err >&5 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } && 2854 { ac_try='test -z "$ac_c_werror_flag" 2855 || test ! -s conftest.err' 2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2857 (eval $ac_try) 2>&5 2858 ac_status=$? 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); }; } && 2861 { ac_try='test -s conftest.$ac_objext' 2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2863 (eval $ac_try) 2>&5 2864 ac_status=$? 2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2866 (exit $ac_status); }; }; then 2867 : 2868else 2869 echo "$as_me: failed program was:" >&5 2870sed 's/^/| /' conftest.$ac_ext >&5 2871 2872continue 2873fi 2874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2875 cat >conftest.$ac_ext <<_ACEOF 2876/* confdefs.h. */ 2877_ACEOF 2878cat confdefs.h >>conftest.$ac_ext 2879cat >>conftest.$ac_ext <<_ACEOF 2880/* end confdefs.h. */ 2881$ac_declaration 2882int 2883main () 2884{ 2885exit (42); 2886 ; 2887 return 0; 2888} 2889_ACEOF 2890rm -f conftest.$ac_objext 2891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2892 (eval $ac_compile) 2>conftest.er1 2893 ac_status=$? 2894 grep -v '^ *+' conftest.er1 >conftest.err 2895 rm -f conftest.er1 2896 cat conftest.err >&5 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); } && 2899 { ac_try='test -z "$ac_c_werror_flag" 2900 || test ! -s conftest.err' 2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2902 (eval $ac_try) 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); }; } && 2906 { ac_try='test -s conftest.$ac_objext' 2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2908 (eval $ac_try) 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); }; }; then 2912 break 2913else 2914 echo "$as_me: failed program was:" >&5 2915sed 's/^/| /' conftest.$ac_ext >&5 2916 2917fi 2918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2919done 2920rm -f conftest* 2921if test -n "$ac_declaration"; then 2922 echo '#ifdef __cplusplus' >>confdefs.h 2923 echo $ac_declaration >>confdefs.h 2924 echo '#endif' >>confdefs.h 2925fi 2926 2927else 2928 echo "$as_me: failed program was:" >&5 2929sed 's/^/| /' conftest.$ac_ext >&5 2930 2931fi 2932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2933ac_ext=c 2934ac_cpp='$CPP $CPPFLAGS' 2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938DEPDIR="${am__leading_dot}deps" 2939 2940 ac_config_commands="$ac_config_commands depfiles" 2941 2942 2943am_make=${MAKE-make} 2944cat > confinc << 'END' 2945am__doit: 2946 @echo done 2947.PHONY: am__doit 2948END 2949# If we don't find an include directive, just comment out the code. 2950echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2951echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2952am__include="#" 2953am__quote= 2954_am_result=none 2955# First try GNU make style include. 2956echo "include confinc" > confmf 2957# We grep out `Entering directory' and `Leaving directory' 2958# messages which can occur if `w' ends up in MAKEFLAGS. 2959# In particular we don't look at `^make:' because GNU make might 2960# be invoked under some other name (usually "gmake"), in which 2961# case it prints its new name instead of `make'. 2962if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2963 am__include=include 2964 am__quote= 2965 _am_result=GNU 2966fi 2967# Now try BSD make style include. 2968if test "$am__include" = "#"; then 2969 echo '.include "confinc"' > confmf 2970 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2971 am__include=.include 2972 am__quote="\"" 2973 _am_result=BSD 2974 fi 2975fi 2976 2977 2978echo "$as_me:$LINENO: result: $_am_result" >&5 2979echo "${ECHO_T}$_am_result" >&6 2980rm -f confinc confmf 2981 2982# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2983if test "${enable_dependency_tracking+set}" = set; then 2984 enableval="$enable_dependency_tracking" 2985 2986fi; 2987if test "x$enable_dependency_tracking" != xno; then 2988 am_depcomp="$ac_aux_dir/depcomp" 2989 AMDEPBACKSLASH='\' 2990fi 2991 2992 2993if test "x$enable_dependency_tracking" != xno; then 2994 AMDEP_TRUE= 2995 AMDEP_FALSE='#' 2996else 2997 AMDEP_TRUE='#' 2998 AMDEP_FALSE= 2999fi 3000 3001 3002 3003 3004depcc="$CC" am_compiler_list= 3005 3006echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3007echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3008if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3012 # We make a subdir and do the tests there. Otherwise we can end up 3013 # making bogus files that we don't know about and never remove. For 3014 # instance it was reported that on HP-UX the gcc test will end up 3015 # making a dummy file named `D' -- because `-MD' means `put the output 3016 # in D'. 3017 mkdir conftest.dir 3018 # Copy depcomp to subdir because otherwise we won't find it if we're 3019 # using a relative directory. 3020 cp "$am_depcomp" conftest.dir 3021 cd conftest.dir 3022 # We will build objects and dependencies in a subdirectory because 3023 # it helps to detect inapplicable dependency modes. For instance 3024 # both Tru64's cc and ICC support -MD to output dependencies as a 3025 # side effect of compilation, but ICC will put the dependencies in 3026 # the current directory while Tru64 will put them in the object 3027 # directory. 3028 mkdir sub 3029 3030 am_cv_CC_dependencies_compiler_type=none 3031 if test "$am_compiler_list" = ""; then 3032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3033 fi 3034 for depmode in $am_compiler_list; do 3035 # Setup a source with many dependencies, because some compilers 3036 # like to wrap large dependency lists on column 80 (with \), and 3037 # we should not choose a depcomp mode which is confused by this. 3038 # 3039 # We need to recreate these files for each test, as the compiler may 3040 # overwrite some of them when testing with obscure command lines. 3041 # This happens at least with the AIX C compiler. 3042 : > sub/conftest.c 3043 for i in 1 2 3 4 5 6; do 3044 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3046 # Solaris 8's {/usr,}/bin/sh. 3047 touch sub/conftst$i.h 3048 done 3049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3050 3051 case $depmode in 3052 nosideeffect) 3053 # after this tag, mechanisms are not by side-effect, so they'll 3054 # only be used when explicitly requested 3055 if test "x$enable_dependency_tracking" = xyes; then 3056 continue 3057 else 3058 break 3059 fi 3060 ;; 3061 none) break ;; 3062 esac 3063 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3064 # mode. It turns out that the SunPro C++ compiler does not properly 3065 # handle `-M -o', and we need to detect this. 3066 if depmode=$depmode \ 3067 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3069 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3070 >/dev/null 2>conftest.err && 3071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3072 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3074 # icc doesn't choke on unknown options, it will just issue warnings 3075 # (even with -Werror). So we grep stderr for any message 3076 # that says an option was ignored. 3077 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3078 am_cv_CC_dependencies_compiler_type=$depmode 3079 break 3080 fi 3081 fi 3082 done 3083 3084 cd .. 3085 rm -rf conftest.dir 3086else 3087 am_cv_CC_dependencies_compiler_type=none 3088fi 3089 3090fi 3091echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3092echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3093CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3094 3095 3096 3097if 3098 test "x$enable_dependency_tracking" != xno \ 3099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3100 am__fastdepCC_TRUE= 3101 am__fastdepCC_FALSE='#' 3102else 3103 am__fastdepCC_TRUE='#' 3104 am__fastdepCC_FALSE= 3105fi 3106 3107 3108ac_ext=cc 3109ac_cpp='$CXXCPP $CPPFLAGS' 3110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3113if test -n "$ac_tool_prefix"; then 3114 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3115 do 3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3118echo "$as_me:$LINENO: checking for $ac_word" >&5 3119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3120if test "${ac_cv_prog_CXX+set}" = set; then 3121 echo $ECHO_N "(cached) $ECHO_C" >&6 3122else 3123 if test -n "$CXX"; then 3124 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138done 3139 3140fi 3141fi 3142CXX=$ac_cv_prog_CXX 3143if test -n "$CXX"; then 3144 echo "$as_me:$LINENO: result: $CXX" >&5 3145echo "${ECHO_T}$CXX" >&6 3146else 3147 echo "$as_me:$LINENO: result: no" >&5 3148echo "${ECHO_T}no" >&6 3149fi 3150 3151 test -n "$CXX" && break 3152 done 3153fi 3154if test -z "$CXX"; then 3155 ac_ct_CXX=$CXX 3156 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3157do 3158 # Extract the first word of "$ac_prog", so it can be a program name with args. 3159set dummy $ac_prog; ac_word=$2 3160echo "$as_me:$LINENO: checking for $ac_word" >&5 3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3162if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3163 echo $ECHO_N "(cached) $ECHO_C" >&6 3164else 3165 if test -n "$ac_ct_CXX"; then 3166 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_ac_ct_CXX="$ac_prog" 3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180done 3181 3182fi 3183fi 3184ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3185if test -n "$ac_ct_CXX"; then 3186 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3187echo "${ECHO_T}$ac_ct_CXX" >&6 3188else 3189 echo "$as_me:$LINENO: result: no" >&5 3190echo "${ECHO_T}no" >&6 3191fi 3192 3193 test -n "$ac_ct_CXX" && break 3194done 3195test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3196 3197 CXX=$ac_ct_CXX 3198fi 3199 3200 3201# Provide some information about the compiler. 3202echo "$as_me:$LINENO:" \ 3203 "checking for C++ compiler version" >&5 3204ac_compiler=`set X $ac_compile; echo $2` 3205{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3206 (eval $ac_compiler --version </dev/null >&5) 2>&5 3207 ac_status=$? 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); } 3210{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3211 (eval $ac_compiler -v </dev/null >&5) 2>&5 3212 ac_status=$? 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); } 3215{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3216 (eval $ac_compiler -V </dev/null >&5) 2>&5 3217 ac_status=$? 3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } 3220 3221echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3222echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3223if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 cat >conftest.$ac_ext <<_ACEOF 3227/* confdefs.h. */ 3228_ACEOF 3229cat confdefs.h >>conftest.$ac_ext 3230cat >>conftest.$ac_ext <<_ACEOF 3231/* end confdefs.h. */ 3232 3233int 3234main () 3235{ 3236#ifndef __GNUC__ 3237 choke me 3238#endif 3239 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244rm -f conftest.$ac_objext 3245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3246 (eval $ac_compile) 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } && 3253 { ac_try='test -z "$ac_cxx_werror_flag" 3254 || test ! -s conftest.err' 3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3256 (eval $ac_try) 2>&5 3257 ac_status=$? 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); }; } && 3260 { ac_try='test -s conftest.$ac_objext' 3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3262 (eval $ac_try) 2>&5 3263 ac_status=$? 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; }; then 3266 ac_compiler_gnu=yes 3267else 3268 echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271ac_compiler_gnu=no 3272fi 3273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3274ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3275 3276fi 3277echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3278echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3279GXX=`test $ac_compiler_gnu = yes && echo yes` 3280ac_test_CXXFLAGS=${CXXFLAGS+set} 3281ac_save_CXXFLAGS=$CXXFLAGS 3282CXXFLAGS="-g" 3283echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3284echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3285if test "${ac_cv_prog_cxx_g+set}" = set; then 3286 echo $ECHO_N "(cached) $ECHO_C" >&6 3287else 3288 cat >conftest.$ac_ext <<_ACEOF 3289/* confdefs.h. */ 3290_ACEOF 3291cat confdefs.h >>conftest.$ac_ext 3292cat >>conftest.$ac_ext <<_ACEOF 3293/* end confdefs.h. */ 3294 3295int 3296main () 3297{ 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303rm -f conftest.$ac_objext 3304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3305 (eval $ac_compile) 2>conftest.er1 3306 ac_status=$? 3307 grep -v '^ *+' conftest.er1 >conftest.err 3308 rm -f conftest.er1 3309 cat conftest.err >&5 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); } && 3312 { ac_try='test -z "$ac_cxx_werror_flag" 3313 || test ! -s conftest.err' 3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3315 (eval $ac_try) 2>&5 3316 ac_status=$? 3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3318 (exit $ac_status); }; } && 3319 { ac_try='test -s conftest.$ac_objext' 3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3321 (eval $ac_try) 2>&5 3322 ac_status=$? 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); }; }; then 3325 ac_cv_prog_cxx_g=yes 3326else 3327 echo "$as_me: failed program was:" >&5 3328sed 's/^/| /' conftest.$ac_ext >&5 3329 3330ac_cv_prog_cxx_g=no 3331fi 3332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3333fi 3334echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3335echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3336if test "$ac_test_CXXFLAGS" = set; then 3337 CXXFLAGS=$ac_save_CXXFLAGS 3338elif test $ac_cv_prog_cxx_g = yes; then 3339 if test "$GXX" = yes; then 3340 CXXFLAGS="-g -O2" 3341 else 3342 CXXFLAGS="-g" 3343 fi 3344else 3345 if test "$GXX" = yes; then 3346 CXXFLAGS="-O2" 3347 else 3348 CXXFLAGS= 3349 fi 3350fi 3351for ac_declaration in \ 3352 '' \ 3353 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3354 'extern "C" void std::exit (int); using std::exit;' \ 3355 'extern "C" void exit (int) throw ();' \ 3356 'extern "C" void exit (int);' \ 3357 'void exit (int);' 3358do 3359 cat >conftest.$ac_ext <<_ACEOF 3360/* confdefs.h. */ 3361_ACEOF 3362cat confdefs.h >>conftest.$ac_ext 3363cat >>conftest.$ac_ext <<_ACEOF 3364/* end confdefs.h. */ 3365$ac_declaration 3366#include <stdlib.h> 3367int 3368main () 3369{ 3370exit (42); 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375rm -f conftest.$ac_objext 3376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3377 (eval $ac_compile) 2>conftest.er1 3378 ac_status=$? 3379 grep -v '^ *+' conftest.er1 >conftest.err 3380 rm -f conftest.er1 3381 cat conftest.err >&5 3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3383 (exit $ac_status); } && 3384 { ac_try='test -z "$ac_cxx_werror_flag" 3385 || test ! -s conftest.err' 3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3387 (eval $ac_try) 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); }; } && 3391 { ac_try='test -s conftest.$ac_objext' 3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3393 (eval $ac_try) 2>&5 3394 ac_status=$? 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); }; }; then 3397 : 3398else 3399 echo "$as_me: failed program was:" >&5 3400sed 's/^/| /' conftest.$ac_ext >&5 3401 3402continue 3403fi 3404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3405 cat >conftest.$ac_ext <<_ACEOF 3406/* confdefs.h. */ 3407_ACEOF 3408cat confdefs.h >>conftest.$ac_ext 3409cat >>conftest.$ac_ext <<_ACEOF 3410/* end confdefs.h. */ 3411$ac_declaration 3412int 3413main () 3414{ 3415exit (42); 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420rm -f conftest.$ac_objext 3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3422 (eval $ac_compile) 2>conftest.er1 3423 ac_status=$? 3424 grep -v '^ *+' conftest.er1 >conftest.err 3425 rm -f conftest.er1 3426 cat conftest.err >&5 3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3428 (exit $ac_status); } && 3429 { ac_try='test -z "$ac_cxx_werror_flag" 3430 || test ! -s conftest.err' 3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3432 (eval $ac_try) 2>&5 3433 ac_status=$? 3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3435 (exit $ac_status); }; } && 3436 { ac_try='test -s conftest.$ac_objext' 3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; }; then 3442 break 3443else 3444 echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447fi 3448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3449done 3450rm -f conftest* 3451if test -n "$ac_declaration"; then 3452 echo '#ifdef __cplusplus' >>confdefs.h 3453 echo $ac_declaration >>confdefs.h 3454 echo '#endif' >>confdefs.h 3455fi 3456 3457ac_ext=c 3458ac_cpp='$CPP $CPPFLAGS' 3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462 3463depcc="$CXX" am_compiler_list= 3464 3465echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3466echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3467if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3468 echo $ECHO_N "(cached) $ECHO_C" >&6 3469else 3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3471 # We make a subdir and do the tests there. Otherwise we can end up 3472 # making bogus files that we don't know about and never remove. For 3473 # instance it was reported that on HP-UX the gcc test will end up 3474 # making a dummy file named `D' -- because `-MD' means `put the output 3475 # in D'. 3476 mkdir conftest.dir 3477 # Copy depcomp to subdir because otherwise we won't find it if we're 3478 # using a relative directory. 3479 cp "$am_depcomp" conftest.dir 3480 cd conftest.dir 3481 # We will build objects and dependencies in a subdirectory because 3482 # it helps to detect inapplicable dependency modes. For instance 3483 # both Tru64's cc and ICC support -MD to output dependencies as a 3484 # side effect of compilation, but ICC will put the dependencies in 3485 # the current directory while Tru64 will put them in the object 3486 # directory. 3487 mkdir sub 3488 3489 am_cv_CXX_dependencies_compiler_type=none 3490 if test "$am_compiler_list" = ""; then 3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3492 fi 3493 for depmode in $am_compiler_list; do 3494 # Setup a source with many dependencies, because some compilers 3495 # like to wrap large dependency lists on column 80 (with \), and 3496 # we should not choose a depcomp mode which is confused by this. 3497 # 3498 # We need to recreate these files for each test, as the compiler may 3499 # overwrite some of them when testing with obscure command lines. 3500 # This happens at least with the AIX C compiler. 3501 : > sub/conftest.c 3502 for i in 1 2 3 4 5 6; do 3503 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3504 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3505 # Solaris 8's {/usr,}/bin/sh. 3506 touch sub/conftst$i.h 3507 done 3508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3509 3510 case $depmode in 3511 nosideeffect) 3512 # after this tag, mechanisms are not by side-effect, so they'll 3513 # only be used when explicitly requested 3514 if test "x$enable_dependency_tracking" = xyes; then 3515 continue 3516 else 3517 break 3518 fi 3519 ;; 3520 none) break ;; 3521 esac 3522 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3523 # mode. It turns out that the SunPro C++ compiler does not properly 3524 # handle `-M -o', and we need to detect this. 3525 if depmode=$depmode \ 3526 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3528 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3529 >/dev/null 2>conftest.err && 3530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3531 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3533 # icc doesn't choke on unknown options, it will just issue warnings 3534 # (even with -Werror). So we grep stderr for any message 3535 # that says an option was ignored. 3536 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3537 am_cv_CXX_dependencies_compiler_type=$depmode 3538 break 3539 fi 3540 fi 3541 done 3542 3543 cd .. 3544 rm -rf conftest.dir 3545else 3546 am_cv_CXX_dependencies_compiler_type=none 3547fi 3548 3549fi 3550echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3551echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3552CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3553 3554 3555 3556if 3557 test "x$enable_dependency_tracking" != xno \ 3558 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3559 am__fastdepCXX_TRUE= 3560 am__fastdepCXX_FALSE='#' 3561else 3562 am__fastdepCXX_TRUE='#' 3563 am__fastdepCXX_FALSE= 3564fi 3565 3566 3567# Find a good install program. We prefer a C program (faster), 3568# so one script is as good as another. But avoid the broken or 3569# incompatible versions: 3570# SysV /etc/install, /usr/sbin/install 3571# SunOS /usr/etc/install 3572# IRIX /sbin/install 3573# AIX /bin/install 3574# AmigaOS /C/install, which installs bootblocks on floppy discs 3575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3576# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3578# OS/2's system install, which has a completely different semantic 3579# ./install, which can be erroneously created by make from ./install.sh. 3580echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3581echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3582if test -z "$INSTALL"; then 3583if test "${ac_cv_path_install+set}" = set; then 3584 echo $ECHO_N "(cached) $ECHO_C" >&6 3585else 3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587for as_dir in $PATH 3588do 3589 IFS=$as_save_IFS 3590 test -z "$as_dir" && as_dir=. 3591 # Account for people who put trailing slashes in PATH elements. 3592case $as_dir/ in 3593 ./ | .// | /cC/* | \ 3594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3596 /usr/ucb/* ) ;; 3597 *) 3598 # OSF1 and SCO ODT 3.0 have their own names for install. 3599 # Don't use installbsd from OSF since it installs stuff as root 3600 # by default. 3601 for ac_prog in ginstall scoinst install; do 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3604 if test $ac_prog = install && 3605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3606 # AIX install. It has an incompatible calling convention. 3607 : 3608 elif test $ac_prog = install && 3609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3610 # program-specific install script used by HP pwplus--don't use. 3611 : 3612 else 3613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3614 break 3 3615 fi 3616 fi 3617 done 3618 done 3619 ;; 3620esac 3621done 3622 3623 3624fi 3625 if test "${ac_cv_path_install+set}" = set; then 3626 INSTALL=$ac_cv_path_install 3627 else 3628 # As a last resort, use the slow shell script. We don't cache a 3629 # path for INSTALL within a source directory, because that will 3630 # break other packages using the cache if that directory is 3631 # removed, or if the path is relative. 3632 INSTALL=$ac_install_sh 3633 fi 3634fi 3635echo "$as_me:$LINENO: result: $INSTALL" >&5 3636echo "${ECHO_T}$INSTALL" >&6 3637 3638# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3639# It thinks the first close brace ends the variable substitution. 3640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3641 3642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3643 3644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3645 3646echo "$as_me:$LINENO: checking whether ln -s works" >&5 3647echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3648LN_S=$as_ln_s 3649if test "$LN_S" = "ln -s"; then 3650 echo "$as_me:$LINENO: result: yes" >&5 3651echo "${ECHO_T}yes" >&6 3652else 3653 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3654echo "${ECHO_T}no, using $LN_S" >&6 3655fi 3656 3657echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3658echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3659set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3660if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3661 echo $ECHO_N "(cached) $ECHO_C" >&6 3662else 3663 cat >conftest.make <<\_ACEOF 3664all: 3665 @echo 'ac_maketemp="$(MAKE)"' 3666_ACEOF 3667# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3668eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3669if test -n "$ac_maketemp"; then 3670 eval ac_cv_prog_make_${ac_make}_set=yes 3671else 3672 eval ac_cv_prog_make_${ac_make}_set=no 3673fi 3674rm -f conftest.make 3675fi 3676if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3677 echo "$as_me:$LINENO: result: yes" >&5 3678echo "${ECHO_T}yes" >&6 3679 SET_MAKE= 3680else 3681 echo "$as_me:$LINENO: result: no" >&5 3682echo "${ECHO_T}no" >&6 3683 SET_MAKE="MAKE=${MAKE-make}" 3684fi 3685 3686for ac_prog in 'bison -y' byacc 3687do 3688 # Extract the first word of "$ac_prog", so it can be a program name with args. 3689set dummy $ac_prog; ac_word=$2 3690echo "$as_me:$LINENO: checking for $ac_word" >&5 3691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3692if test "${ac_cv_prog_YACC+set}" = set; then 3693 echo $ECHO_N "(cached) $ECHO_C" >&6 3694else 3695 if test -n "$YACC"; then 3696 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3697else 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH 3700do 3701 IFS=$as_save_IFS 3702 test -z "$as_dir" && as_dir=. 3703 for ac_exec_ext in '' $ac_executable_extensions; do 3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3705 ac_cv_prog_YACC="$ac_prog" 3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3707 break 2 3708 fi 3709done 3710done 3711 3712fi 3713fi 3714YACC=$ac_cv_prog_YACC 3715if test -n "$YACC"; then 3716 echo "$as_me:$LINENO: result: $YACC" >&5 3717echo "${ECHO_T}$YACC" >&6 3718else 3719 echo "$as_me:$LINENO: result: no" >&5 3720echo "${ECHO_T}no" >&6 3721fi 3722 3723 test -n "$YACC" && break 3724done 3725test -n "$YACC" || YACC="yacc" 3726 3727 3728echo "$as_me:$LINENO: checking for library containing strerror" >&5 3729echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3730if test "${ac_cv_search_strerror+set}" = set; then 3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3732else 3733 ac_func_search_save_LIBS=$LIBS 3734ac_cv_search_strerror=no 3735cat >conftest.$ac_ext <<_ACEOF 3736/* confdefs.h. */ 3737_ACEOF 3738cat confdefs.h >>conftest.$ac_ext 3739cat >>conftest.$ac_ext <<_ACEOF 3740/* end confdefs.h. */ 3741 3742/* Override any gcc2 internal prototype to avoid an error. */ 3743#ifdef __cplusplus 3744extern "C" 3745#endif 3746/* We use char because int might match the return type of a gcc2 3747 builtin and then its argument prototype would still apply. */ 3748char strerror (); 3749int 3750main () 3751{ 3752strerror (); 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757rm -f conftest.$ac_objext conftest$ac_exeext 3758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3759 (eval $ac_link) 2>conftest.er1 3760 ac_status=$? 3761 grep -v '^ *+' conftest.er1 >conftest.err 3762 rm -f conftest.er1 3763 cat conftest.err >&5 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); } && 3766 { ac_try='test -z "$ac_c_werror_flag" 3767 || test ! -s conftest.err' 3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3769 (eval $ac_try) 2>&5 3770 ac_status=$? 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3772 (exit $ac_status); }; } && 3773 { ac_try='test -s conftest$ac_exeext' 3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3775 (eval $ac_try) 2>&5 3776 ac_status=$? 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); }; }; then 3779 ac_cv_search_strerror="none required" 3780else 3781 echo "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784fi 3785rm -f conftest.err conftest.$ac_objext \ 3786 conftest$ac_exeext conftest.$ac_ext 3787if test "$ac_cv_search_strerror" = no; then 3788 for ac_lib in cposix; do 3789 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3790 cat >conftest.$ac_ext <<_ACEOF 3791/* confdefs.h. */ 3792_ACEOF 3793cat confdefs.h >>conftest.$ac_ext 3794cat >>conftest.$ac_ext <<_ACEOF 3795/* end confdefs.h. */ 3796 3797/* Override any gcc2 internal prototype to avoid an error. */ 3798#ifdef __cplusplus 3799extern "C" 3800#endif 3801/* We use char because int might match the return type of a gcc2 3802 builtin and then its argument prototype would still apply. */ 3803char strerror (); 3804int 3805main () 3806{ 3807strerror (); 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812rm -f conftest.$ac_objext conftest$ac_exeext 3813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3814 (eval $ac_link) 2>conftest.er1 3815 ac_status=$? 3816 grep -v '^ *+' conftest.er1 >conftest.err 3817 rm -f conftest.er1 3818 cat conftest.err >&5 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); } && 3821 { ac_try='test -z "$ac_c_werror_flag" 3822 || test ! -s conftest.err' 3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3824 (eval $ac_try) 2>&5 3825 ac_status=$? 3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3827 (exit $ac_status); }; } && 3828 { ac_try='test -s conftest$ac_exeext' 3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3830 (eval $ac_try) 2>&5 3831 ac_status=$? 3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 (exit $ac_status); }; }; then 3834 ac_cv_search_strerror="-l$ac_lib" 3835break 3836else 3837 echo "$as_me: failed program was:" >&5 3838sed 's/^/| /' conftest.$ac_ext >&5 3839 3840fi 3841rm -f conftest.err conftest.$ac_objext \ 3842 conftest$ac_exeext conftest.$ac_ext 3843 done 3844fi 3845LIBS=$ac_func_search_save_LIBS 3846fi 3847echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3848echo "${ECHO_T}$ac_cv_search_strerror" >&6 3849if test "$ac_cv_search_strerror" != no; then 3850 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3851 3852fi 3853 3854ac_ext=c 3855ac_cpp='$CPP $CPPFLAGS' 3856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3858ac_compiler_gnu=$ac_cv_c_compiler_gnu 3859echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3860echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3861# On Suns, sometimes $CPP names a directory. 3862if test -n "$CPP" && test -d "$CPP"; then 3863 CPP= 3864fi 3865if test -z "$CPP"; then 3866 if test "${ac_cv_prog_CPP+set}" = set; then 3867 echo $ECHO_N "(cached) $ECHO_C" >&6 3868else 3869 # Double quotes because CPP needs to be expanded 3870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3871 do 3872 ac_preproc_ok=false 3873for ac_c_preproc_warn_flag in '' yes 3874do 3875 # Use a header file that comes with gcc, so configuring glibc 3876 # with a fresh cross-compiler works. 3877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3878 # <limits.h> exists even on freestanding compilers. 3879 # On the NeXT, cc -E runs the code through the compiler's parser, 3880 # not just through cpp. "Syntax error" is here to catch this case. 3881 cat >conftest.$ac_ext <<_ACEOF 3882/* confdefs.h. */ 3883_ACEOF 3884cat confdefs.h >>conftest.$ac_ext 3885cat >>conftest.$ac_ext <<_ACEOF 3886/* end confdefs.h. */ 3887#ifdef __STDC__ 3888# include <limits.h> 3889#else 3890# include <assert.h> 3891#endif 3892 Syntax error 3893_ACEOF 3894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3896 ac_status=$? 3897 grep -v '^ *+' conftest.er1 >conftest.err 3898 rm -f conftest.er1 3899 cat conftest.err >&5 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); } >/dev/null; then 3902 if test -s conftest.err; then 3903 ac_cpp_err=$ac_c_preproc_warn_flag 3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3905 else 3906 ac_cpp_err= 3907 fi 3908else 3909 ac_cpp_err=yes 3910fi 3911if test -z "$ac_cpp_err"; then 3912 : 3913else 3914 echo "$as_me: failed program was:" >&5 3915sed 's/^/| /' conftest.$ac_ext >&5 3916 3917 # Broken: fails on valid input. 3918continue 3919fi 3920rm -f conftest.err conftest.$ac_ext 3921 3922 # OK, works on sane cases. Now check whether non-existent headers 3923 # can be detected and how. 3924 cat >conftest.$ac_ext <<_ACEOF 3925/* confdefs.h. */ 3926_ACEOF 3927cat confdefs.h >>conftest.$ac_ext 3928cat >>conftest.$ac_ext <<_ACEOF 3929/* end confdefs.h. */ 3930#include <ac_nonexistent.h> 3931_ACEOF 3932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3934 ac_status=$? 3935 grep -v '^ *+' conftest.er1 >conftest.err 3936 rm -f conftest.er1 3937 cat conftest.err >&5 3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3939 (exit $ac_status); } >/dev/null; then 3940 if test -s conftest.err; then 3941 ac_cpp_err=$ac_c_preproc_warn_flag 3942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3943 else 3944 ac_cpp_err= 3945 fi 3946else 3947 ac_cpp_err=yes 3948fi 3949if test -z "$ac_cpp_err"; then 3950 # Broken: success on invalid input. 3951continue 3952else 3953 echo "$as_me: failed program was:" >&5 3954sed 's/^/| /' conftest.$ac_ext >&5 3955 3956 # Passes both tests. 3957ac_preproc_ok=: 3958break 3959fi 3960rm -f conftest.err conftest.$ac_ext 3961 3962done 3963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3964rm -f conftest.err conftest.$ac_ext 3965if $ac_preproc_ok; then 3966 break 3967fi 3968 3969 done 3970 ac_cv_prog_CPP=$CPP 3971 3972fi 3973 CPP=$ac_cv_prog_CPP 3974else 3975 ac_cv_prog_CPP=$CPP 3976fi 3977echo "$as_me:$LINENO: result: $CPP" >&5 3978echo "${ECHO_T}$CPP" >&6 3979ac_preproc_ok=false 3980for ac_c_preproc_warn_flag in '' yes 3981do 3982 # Use a header file that comes with gcc, so configuring glibc 3983 # with a fresh cross-compiler works. 3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3985 # <limits.h> exists even on freestanding compilers. 3986 # On the NeXT, cc -E runs the code through the compiler's parser, 3987 # not just through cpp. "Syntax error" is here to catch this case. 3988 cat >conftest.$ac_ext <<_ACEOF 3989/* confdefs.h. */ 3990_ACEOF 3991cat confdefs.h >>conftest.$ac_ext 3992cat >>conftest.$ac_ext <<_ACEOF 3993/* end confdefs.h. */ 3994#ifdef __STDC__ 3995# include <limits.h> 3996#else 3997# include <assert.h> 3998#endif 3999 Syntax error 4000_ACEOF 4001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4003 ac_status=$? 4004 grep -v '^ *+' conftest.er1 >conftest.err 4005 rm -f conftest.er1 4006 cat conftest.err >&5 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); } >/dev/null; then 4009 if test -s conftest.err; then 4010 ac_cpp_err=$ac_c_preproc_warn_flag 4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4012 else 4013 ac_cpp_err= 4014 fi 4015else 4016 ac_cpp_err=yes 4017fi 4018if test -z "$ac_cpp_err"; then 4019 : 4020else 4021 echo "$as_me: failed program was:" >&5 4022sed 's/^/| /' conftest.$ac_ext >&5 4023 4024 # Broken: fails on valid input. 4025continue 4026fi 4027rm -f conftest.err conftest.$ac_ext 4028 4029 # OK, works on sane cases. Now check whether non-existent headers 4030 # can be detected and how. 4031 cat >conftest.$ac_ext <<_ACEOF 4032/* confdefs.h. */ 4033_ACEOF 4034cat confdefs.h >>conftest.$ac_ext 4035cat >>conftest.$ac_ext <<_ACEOF 4036/* end confdefs.h. */ 4037#include <ac_nonexistent.h> 4038_ACEOF 4039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4041 ac_status=$? 4042 grep -v '^ *+' conftest.er1 >conftest.err 4043 rm -f conftest.er1 4044 cat conftest.err >&5 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); } >/dev/null; then 4047 if test -s conftest.err; then 4048 ac_cpp_err=$ac_c_preproc_warn_flag 4049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4050 else 4051 ac_cpp_err= 4052 fi 4053else 4054 ac_cpp_err=yes 4055fi 4056if test -z "$ac_cpp_err"; then 4057 # Broken: success on invalid input. 4058continue 4059else 4060 echo "$as_me: failed program was:" >&5 4061sed 's/^/| /' conftest.$ac_ext >&5 4062 4063 # Passes both tests. 4064ac_preproc_ok=: 4065break 4066fi 4067rm -f conftest.err conftest.$ac_ext 4068 4069done 4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4071rm -f conftest.err conftest.$ac_ext 4072if $ac_preproc_ok; then 4073 : 4074else 4075 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4076See \`config.log' for more details." >&5 4077echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4078See \`config.log' for more details." >&2;} 4079 { (exit 1); exit 1; }; } 4080fi 4081 4082ac_ext=c 4083ac_cpp='$CPP $CPPFLAGS' 4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089echo "$as_me:$LINENO: checking for X" >&5 4090echo $ECHO_N "checking for X... $ECHO_C" >&6 4091 4092 4093# Check whether --with-x or --without-x was given. 4094if test "${with_x+set}" = set; then 4095 withval="$with_x" 4096 4097fi; 4098# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4099if test "x$with_x" = xno; then 4100 # The user explicitly disabled X. 4101 have_x=disabled 4102else 4103 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 4104 # Both variables are already set. 4105 have_x=yes 4106 else 4107 if test "${ac_cv_have_x+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 # One or both of the vars are not set, and there is no cached value. 4111ac_x_includes=no ac_x_libraries=no 4112rm -fr conftest.dir 4113if mkdir conftest.dir; then 4114 cd conftest.dir 4115 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 4116 cat >Imakefile <<'_ACEOF' 4117acfindx: 4118 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 4119_ACEOF 4120 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 4121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4122 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 4123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4124 for ac_extension in a so sl; do 4125 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 4126 test -f $ac_im_libdir/libX11.$ac_extension; then 4127 ac_im_usrlibdir=$ac_im_libdir; break 4128 fi 4129 done 4130 # Screen out bogus values from the imake configuration. They are 4131 # bogus both because they are the default anyway, and because 4132 # using them would break gcc on systems where it needs fixed includes. 4133 case $ac_im_incroot in 4134 /usr/include) ;; 4135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4136 esac 4137 case $ac_im_usrlibdir in 4138 /usr/lib | /lib) ;; 4139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4140 esac 4141 fi 4142 cd .. 4143 rm -fr conftest.dir 4144fi 4145 4146# Standard set of common directories for X headers. 4147# Check X11 before X11Rn because it is often a symlink to the current release. 4148ac_x_header_dirs=' 4149/usr/X11/include 4150/usr/X11R6/include 4151/usr/X11R5/include 4152/usr/X11R4/include 4153 4154/usr/include/X11 4155/usr/include/X11R6 4156/usr/include/X11R5 4157/usr/include/X11R4 4158 4159/usr/local/X11/include 4160/usr/local/X11R6/include 4161/usr/local/X11R5/include 4162/usr/local/X11R4/include 4163 4164/usr/local/include/X11 4165/usr/local/include/X11R6 4166/usr/local/include/X11R5 4167/usr/local/include/X11R4 4168 4169/usr/X386/include 4170/usr/x386/include 4171/usr/XFree86/include/X11 4172 4173/usr/include 4174/usr/local/include 4175/usr/unsupported/include 4176/usr/athena/include 4177/usr/local/x11r5/include 4178/usr/lpp/Xamples/include 4179 4180/usr/openwin/include 4181/usr/openwin/share/include' 4182 4183if test "$ac_x_includes" = no; then 4184 # Guess where to find include files, by looking for Intrinsic.h. 4185 # First, try using that file with no special directory specified. 4186 cat >conftest.$ac_ext <<_ACEOF 4187/* confdefs.h. */ 4188_ACEOF 4189cat confdefs.h >>conftest.$ac_ext 4190cat >>conftest.$ac_ext <<_ACEOF 4191/* end confdefs.h. */ 4192#include <X11/Intrinsic.h> 4193_ACEOF 4194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4196 ac_status=$? 4197 grep -v '^ *+' conftest.er1 >conftest.err 4198 rm -f conftest.er1 4199 cat conftest.err >&5 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4201 (exit $ac_status); } >/dev/null; then 4202 if test -s conftest.err; then 4203 ac_cpp_err=$ac_c_preproc_warn_flag 4204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4205 else 4206 ac_cpp_err= 4207 fi 4208else 4209 ac_cpp_err=yes 4210fi 4211if test -z "$ac_cpp_err"; then 4212 # We can compile using X headers with no special include directory. 4213ac_x_includes= 4214else 4215 echo "$as_me: failed program was:" >&5 4216sed 's/^/| /' conftest.$ac_ext >&5 4217 4218 for ac_dir in $ac_x_header_dirs; do 4219 if test -r "$ac_dir/X11/Intrinsic.h"; then 4220 ac_x_includes=$ac_dir 4221 break 4222 fi 4223done 4224fi 4225rm -f conftest.err conftest.$ac_ext 4226fi # $ac_x_includes = no 4227 4228if test "$ac_x_libraries" = no; then 4229 # Check for the libraries. 4230 # See if we find them without any special options. 4231 # Don't add to $LIBS permanently. 4232 ac_save_LIBS=$LIBS 4233 LIBS="-lXt $LIBS" 4234 cat >conftest.$ac_ext <<_ACEOF 4235/* confdefs.h. */ 4236_ACEOF 4237cat confdefs.h >>conftest.$ac_ext 4238cat >>conftest.$ac_ext <<_ACEOF 4239/* end confdefs.h. */ 4240#include <X11/Intrinsic.h> 4241int 4242main () 4243{ 4244XtMalloc (0) 4245 ; 4246 return 0; 4247} 4248_ACEOF 4249rm -f conftest.$ac_objext conftest$ac_exeext 4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4251 (eval $ac_link) 2>conftest.er1 4252 ac_status=$? 4253 grep -v '^ *+' conftest.er1 >conftest.err 4254 rm -f conftest.er1 4255 cat conftest.err >&5 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); } && 4258 { ac_try='test -z "$ac_c_werror_flag" 4259 || test ! -s conftest.err' 4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4261 (eval $ac_try) 2>&5 4262 ac_status=$? 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); }; } && 4265 { ac_try='test -s conftest$ac_exeext' 4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4267 (eval $ac_try) 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); }; }; then 4271 LIBS=$ac_save_LIBS 4272# We can link X programs with no special library path. 4273ac_x_libraries= 4274else 4275 echo "$as_me: failed program was:" >&5 4276sed 's/^/| /' conftest.$ac_ext >&5 4277 4278LIBS=$ac_save_LIBS 4279for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4280do 4281 # Don't even attempt the hair of trying to link an X program! 4282 for ac_extension in a so sl; do 4283 if test -r $ac_dir/libXt.$ac_extension; then 4284 ac_x_libraries=$ac_dir 4285 break 2 4286 fi 4287 done 4288done 4289fi 4290rm -f conftest.err conftest.$ac_objext \ 4291 conftest$ac_exeext conftest.$ac_ext 4292fi # $ac_x_libraries = no 4293 4294if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 4295 # Didn't find X anywhere. Cache the known absence of X. 4296 ac_cv_have_x="have_x=no" 4297else 4298 # Record where we found X for the cache. 4299 ac_cv_have_x="have_x=yes \ 4300 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 4301fi 4302fi 4303 4304 fi 4305 eval "$ac_cv_have_x" 4306fi # $with_x != no 4307 4308if test "$have_x" != yes; then 4309 echo "$as_me:$LINENO: result: $have_x" >&5 4310echo "${ECHO_T}$have_x" >&6 4311 no_x=yes 4312else 4313 # If each of the values was on the command line, it overrides each guess. 4314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4316 # Update the cache value to reflect the command line values. 4317 ac_cv_have_x="have_x=yes \ 4318 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4319 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4320echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 4321fi 4322 4323echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 4324echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 4325 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4326if test "${enable_maintainer_mode+set}" = set; then 4327 enableval="$enable_maintainer_mode" 4328 USE_MAINTAINER_MODE=$enableval 4329else 4330 USE_MAINTAINER_MODE=no 4331fi; 4332 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 4333echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 4334 4335 4336if test $USE_MAINTAINER_MODE = yes; then 4337 MAINTAINER_MODE_TRUE= 4338 MAINTAINER_MODE_FALSE='#' 4339else 4340 MAINTAINER_MODE_TRUE='#' 4341 MAINTAINER_MODE_FALSE= 4342fi 4343 4344 MAINT=$MAINTAINER_MODE_TRUE 4345 4346 4347 4348 4349# Make sure we can run config.sub. 4350$ac_config_sub sun4 >/dev/null 2>&1 || 4351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 4352echo "$as_me: error: cannot run $ac_config_sub" >&2;} 4353 { (exit 1); exit 1; }; } 4354 4355echo "$as_me:$LINENO: checking build system type" >&5 4356echo $ECHO_N "checking build system type... $ECHO_C" >&6 4357if test "${ac_cv_build+set}" = set; then 4358 echo $ECHO_N "(cached) $ECHO_C" >&6 4359else 4360 ac_cv_build_alias=$build_alias 4361test -z "$ac_cv_build_alias" && 4362 ac_cv_build_alias=`$ac_config_guess` 4363test -z "$ac_cv_build_alias" && 4364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4365echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4366 { (exit 1); exit 1; }; } 4367ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 4368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 4369echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 4370 { (exit 1); exit 1; }; } 4371 4372fi 4373echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4374echo "${ECHO_T}$ac_cv_build" >&6 4375build=$ac_cv_build 4376build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4377build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4378build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4379 4380 4381echo "$as_me:$LINENO: checking host system type" >&5 4382echo $ECHO_N "checking host system type... $ECHO_C" >&6 4383if test "${ac_cv_host+set}" = set; then 4384 echo $ECHO_N "(cached) $ECHO_C" >&6 4385else 4386 ac_cv_host_alias=$host_alias 4387test -z "$ac_cv_host_alias" && 4388 ac_cv_host_alias=$ac_cv_build_alias 4389ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4391echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4392 { (exit 1); exit 1; }; } 4393 4394fi 4395echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4396echo "${ECHO_T}$ac_cv_host" >&6 4397host=$ac_cv_host 4398host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4399host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4400host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4401 4402 4403 4404echo "$as_me:$LINENO: checking for some Win32 platform" >&5 4405echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6 4406case "$host" in 4407 *-*-mingw*|*-*-cygwin*) 4408 platform_win32=yes 4409 ;; 4410 *) 4411 platform_win32=no 4412 ;; 4413esac 4414echo "$as_me:$LINENO: result: $platform_win32" >&5 4415echo "${ECHO_T}$platform_win32" >&6 4416 4417 4418if test x"$platform_win32" = x"yes"; then 4419 PLATFORM_WIN32_TRUE= 4420 PLATFORM_WIN32_FALSE='#' 4421else 4422 PLATFORM_WIN32_TRUE='#' 4423 PLATFORM_WIN32_FALSE= 4424fi 4425 4426 4427if test x"$platform_win32" = x"yes"; then 4428 WINDRES=windres 4429 4430fi 4431 4432echo "$as_me:$LINENO: checking for native Win32" >&5 4433echo $ECHO_N "checking for native Win32... $ECHO_C" >&6 4434case "$host" in 4435 *-*-mingw*) 4436 os_win32=yes 4437 ;; 4438 *) 4439 os_win32=no 4440 ;; 4441esac 4442echo "$as_me:$LINENO: result: $os_win32" >&5 4443echo "${ECHO_T}$os_win32" >&6 4444 4445 4446if test x"$os_win32" = x"yes"; then 4447 OS_WIN32_TRUE= 4448 OS_WIN32_FALSE='#' 4449else 4450 OS_WIN32_TRUE='#' 4451 OS_WIN32_FALSE= 4452fi 4453 4454 4455 4456# Check whether --enable-shared or --disable-shared was given. 4457if test "${enable_shared+set}" = set; then 4458 enableval="$enable_shared" 4459 p=${PACKAGE-default} 4460case $enableval in 4461yes) enable_shared=yes ;; 4462no) enable_shared=no ;; 4463*) 4464 enable_shared=no 4465 # Look at the argument we got. We use all the common list separators. 4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4467 for pkg in $enableval; do 4468 if test "X$pkg" = "X$p"; then 4469 enable_shared=yes 4470 fi 4471 done 4472 IFS="$ac_save_ifs" 4473 ;; 4474esac 4475else 4476 enable_shared=yes 4477fi; 4478# Check whether --enable-static or --disable-static was given. 4479if test "${enable_static+set}" = set; then 4480 enableval="$enable_static" 4481 p=${PACKAGE-default} 4482case $enableval in 4483yes) enable_static=yes ;; 4484no) enable_static=no ;; 4485*) 4486 enable_static=no 4487 # Look at the argument we got. We use all the common list separators. 4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4489 for pkg in $enableval; do 4490 if test "X$pkg" = "X$p"; then 4491 enable_static=yes 4492 fi 4493 done 4494 IFS="$ac_save_ifs" 4495 ;; 4496esac 4497else 4498 enable_static=no 4499fi; 4500 4501# Check whether --enable-fast-install or --disable-fast-install was given. 4502if test "${enable_fast_install+set}" = set; then 4503 enableval="$enable_fast_install" 4504 p=${PACKAGE-default} 4505case $enableval in 4506yes) enable_fast_install=yes ;; 4507no) enable_fast_install=no ;; 4508*) 4509 enable_fast_install=no 4510 # Look at the argument we got. We use all the common list separators. 4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4512 for pkg in $enableval; do 4513 if test "X$pkg" = "X$p"; then 4514 enable_fast_install=yes 4515 fi 4516 done 4517 IFS="$ac_save_ifs" 4518 ;; 4519esac 4520else 4521 enable_fast_install=yes 4522fi; 4523 4524# Check whether --with-gnu-ld or --without-gnu-ld was given. 4525if test "${with_gnu_ld+set}" = set; then 4526 withval="$with_gnu_ld" 4527 test "$withval" = no || with_gnu_ld=yes 4528else 4529 with_gnu_ld=no 4530fi; 4531ac_prog=ld 4532if test "$GCC" = yes; then 4533 # Check if gcc -print-prog-name=ld gives a path. 4534 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 4535echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 4536 case $host in 4537 *-*-mingw*) 4538 # gcc leaves a trailing carriage return which upsets mingw 4539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4540 *) 4541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4542 esac 4543 case $ac_prog in 4544 # Accept absolute paths. 4545 [\\/]* | [A-Za-z]:[\\/]*) 4546 re_direlt='/[^/][^/]*/\.\./' 4547 # Canonicalize the path of ld 4548 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4549 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4550 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4551 done 4552 test -z "$LD" && LD="$ac_prog" 4553 ;; 4554 "") 4555 # If it fails, then pretend we aren't using GCC. 4556 ac_prog=ld 4557 ;; 4558 *) 4559 # If it is relative, then search for the first ld in PATH. 4560 with_gnu_ld=unknown 4561 ;; 4562 esac 4563elif test "$with_gnu_ld" = yes; then 4564 echo "$as_me:$LINENO: checking for GNU ld" >&5 4565echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4566else 4567 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4568echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4569fi 4570if test "${lt_cv_path_LD+set}" = set; then 4571 echo $ECHO_N "(cached) $ECHO_C" >&6 4572else 4573 if test -z "$LD"; then 4574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4575 for ac_dir in $PATH; do 4576 test -z "$ac_dir" && ac_dir=. 4577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4578 lt_cv_path_LD="$ac_dir/$ac_prog" 4579 # Check to see if the program is GNU ld. I'd rather use --version, 4580 # but apparently some GNU ld's only accept -v. 4581 # Break only if it was the GNU/non-GNU ld that we prefer. 4582 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 4583 test "$with_gnu_ld" != no && break 4584 else 4585 test "$with_gnu_ld" != yes && break 4586 fi 4587 fi 4588 done 4589 IFS="$ac_save_ifs" 4590else 4591 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4592fi 4593fi 4594 4595LD="$lt_cv_path_LD" 4596if test -n "$LD"; then 4597 echo "$as_me:$LINENO: result: $LD" >&5 4598echo "${ECHO_T}$LD" >&6 4599else 4600 echo "$as_me:$LINENO: result: no" >&5 4601echo "${ECHO_T}no" >&6 4602fi 4603test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4604echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4605 { (exit 1); exit 1; }; } 4606echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4607echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4608if test "${lt_cv_prog_gnu_ld+set}" = set; then 4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4610else 4611 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4612if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4613 lt_cv_prog_gnu_ld=yes 4614else 4615 lt_cv_prog_gnu_ld=no 4616fi 4617fi 4618echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4619echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4620with_gnu_ld=$lt_cv_prog_gnu_ld 4621 4622 4623echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4624echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4625if test "${lt_cv_ld_reload_flag+set}" = set; then 4626 echo $ECHO_N "(cached) $ECHO_C" >&6 4627else 4628 lt_cv_ld_reload_flag='-r' 4629fi 4630echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4631echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4632reload_flag=$lt_cv_ld_reload_flag 4633test -n "$reload_flag" && reload_flag=" $reload_flag" 4634 4635echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4636echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4637if test "${lt_cv_path_NM+set}" = set; then 4638 echo $ECHO_N "(cached) $ECHO_C" >&6 4639else 4640 if test -n "$NM"; then 4641 # Let the user override the test. 4642 lt_cv_path_NM="$NM" 4643else 4644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4645 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4646 test -z "$ac_dir" && ac_dir=. 4647 tmp_nm=$ac_dir/${ac_tool_prefix}nm 4648 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 4649 # Check to see if the nm accepts a BSD-compat flag. 4650 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4651 # nm: unknown option "B" ignored 4652 # Tru64's nm complains that /dev/null is an invalid object file 4653 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 4654 lt_cv_path_NM="$tmp_nm -B" 4655 break 4656 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 4657 lt_cv_path_NM="$tmp_nm -p" 4658 break 4659 else 4660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4661 continue # so that we can try to find one that supports BSD flags 4662 fi 4663 fi 4664 done 4665 IFS="$ac_save_ifs" 4666 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4667fi 4668fi 4669 4670NM="$lt_cv_path_NM" 4671echo "$as_me:$LINENO: result: $NM" >&5 4672echo "${ECHO_T}$NM" >&6 4673 4674echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 4675echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 4676if test "${lt_cv_deplibs_check_method+set}" = set; then 4677 echo $ECHO_N "(cached) $ECHO_C" >&6 4678else 4679 lt_cv_file_magic_cmd='$MAGIC_CMD' 4680lt_cv_file_magic_test_file= 4681lt_cv_deplibs_check_method='unknown' 4682# Need to set the preceding variable on all platforms that support 4683# interlibrary dependencies. 4684# 'none' -- dependencies not supported. 4685# `unknown' -- same as none, but documents that we really don't know. 4686# 'pass_all' -- all dependencies passed with no checks. 4687# 'test_compile' -- check by making test program. 4688# ['file_magic [regex]'] -- check by looking for files in library path 4689# which responds to the $file_magic_cmd with a given egrep regex. 4690# If you have `file' or equivalent on your system and you're not sure 4691# whether `pass_all' will *always* work, you probably want this one. 4692 4693case $host_os in 4694aix4* | aix5*) 4695 lt_cv_deplibs_check_method=pass_all 4696 ;; 4697 4698beos*) 4699 lt_cv_deplibs_check_method=pass_all 4700 ;; 4701 4702bsdi4*) 4703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4704 lt_cv_file_magic_cmd='/usr/bin/file -L' 4705 lt_cv_file_magic_test_file=/shlib/libc.so 4706 ;; 4707 4708cygwin* | mingw* | pw32*) 4709 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4710 lt_cv_file_magic_cmd='$OBJDUMP -f' 4711 ;; 4712 4713darwin* | rhapsody*) 4714 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4715 lt_cv_file_magic_cmd='/usr/bin/file -L' 4716 case "$host_os" in 4717 rhapsody* | darwin1.[012]) 4718 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 4719 ;; 4720 *) # Darwin 1.3 on 4721 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4722 ;; 4723 esac 4724 ;; 4725 4726freebsd*) 4727 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4728 case $host_cpu in 4729 i*86 ) 4730 # Not sure whether the presence of OpenBSD here was a mistake. 4731 # Let's accept both of them until this is cleared up. 4732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4733 lt_cv_file_magic_cmd=/usr/bin/file 4734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4735 ;; 4736 esac 4737 else 4738 lt_cv_deplibs_check_method=pass_all 4739 fi 4740 ;; 4741 4742gnu*) 4743 lt_cv_deplibs_check_method=pass_all 4744 ;; 4745 4746hpux10.20*|hpux11*) 4747 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4748 lt_cv_file_magic_cmd=/usr/bin/file 4749 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4750 ;; 4751 4752irix5* | irix6*) 4753 case $host_os in 4754 irix5*) 4755 # this will be overridden with pass_all, but let us keep it just in case 4756 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4757 ;; 4758 *) 4759 case $LD in 4760 *-32|*"-32 ") libmagic=32-bit;; 4761 *-n32|*"-n32 ") libmagic=N32;; 4762 *-64|*"-64 ") libmagic=64-bit;; 4763 *) libmagic=never-match;; 4764 esac 4765 # this will be overridden with pass_all, but let us keep it just in case 4766 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4767 ;; 4768 esac 4769 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4770 lt_cv_deplibs_check_method=pass_all 4771 ;; 4772 4773# This must be Linux ELF. 4774linux-gnu*) 4775 case $host_cpu in 4776 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 4777 lt_cv_deplibs_check_method=pass_all ;; 4778 *) 4779 # glibc up to 2.1.1 does not perform some relocations on ARM 4780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4781 esac 4782 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4783 ;; 4784 4785netbsd*) 4786 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4787 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 4788 else 4789 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 4790 fi 4791 ;; 4792 4793newos6*) 4794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4795 lt_cv_file_magic_cmd=/usr/bin/file 4796 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4797 ;; 4798 4799openbsd*) 4800 lt_cv_file_magic_cmd=/usr/bin/file 4801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4804 else 4805 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4806 fi 4807 ;; 4808 4809osf3* | osf4* | osf5*) 4810 # this will be overridden with pass_all, but let us keep it just in case 4811 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4812 lt_cv_file_magic_test_file=/shlib/libc.so 4813 lt_cv_deplibs_check_method=pass_all 4814 ;; 4815 4816sco3.2v5*) 4817 lt_cv_deplibs_check_method=pass_all 4818 ;; 4819 4820solaris*) 4821 lt_cv_deplibs_check_method=pass_all 4822 lt_cv_file_magic_test_file=/lib/libc.so 4823 ;; 4824 4825sysv5uw[78]* | sysv4*uw2*) 4826 lt_cv_deplibs_check_method=pass_all 4827 ;; 4828 4829sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4830 case $host_vendor in 4831 motorola) 4832 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]' 4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4834 ;; 4835 ncr) 4836 lt_cv_deplibs_check_method=pass_all 4837 ;; 4838 sequent) 4839 lt_cv_file_magic_cmd='/bin/file' 4840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4841 ;; 4842 sni) 4843 lt_cv_file_magic_cmd='/bin/file' 4844 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4845 lt_cv_file_magic_test_file=/lib/libc.so 4846 ;; 4847 esac 4848 ;; 4849esac 4850 4851fi 4852echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4853echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4854file_magic_cmd=$lt_cv_file_magic_cmd 4855deplibs_check_method=$lt_cv_deplibs_check_method 4856 4857 4858 4859 4860 4861 4862 4863# Check for command to grab the raw symbol name followed by C symbol from nm. 4864echo "$as_me:$LINENO: checking command to parse $NM output" >&5 4865echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 4866if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4867 echo $ECHO_N "(cached) $ECHO_C" >&6 4868else 4869 4870# These are sane defaults that work on at least a few old systems. 4871# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4872 4873# Character class describing NM global symbol codes. 4874symcode='[BCDEGRST]' 4875 4876# Regexp to match symbols that can be accessed directly from C. 4877sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4878 4879# Transform the above into a raw symbol and a C symbol. 4880symxfrm='\1 \2\3 \3' 4881 4882# Transform an extracted symbol line into a proper C declaration 4883lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 4884 4885# Transform an extracted symbol line into symbol name and symbol address 4886lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4887 4888# Define system-specific variables. 4889case $host_os in 4890aix*) 4891 symcode='[BCDT]' 4892 ;; 4893cygwin* | mingw* | pw32*) 4894 symcode='[ABCDGISTW]' 4895 ;; 4896hpux*) # Its linker distinguishes data from code symbols 4897 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4898 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4899 ;; 4900irix*) 4901 symcode='[BCDEGRST]' 4902 ;; 4903solaris* | sysv5*) 4904 symcode='[BDT]' 4905 ;; 4906sysv4) 4907 symcode='[DFNSTU]' 4908 ;; 4909esac 4910 4911# Handle CRLF in mingw tool chain 4912opt_cr= 4913case $host_os in 4914mingw*) 4915 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4916 ;; 4917esac 4918 4919# If we're using GNU nm, then use its standard symbol codes. 4920if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 4921 symcode='[ABCDGISTW]' 4922fi 4923 4924# Try without a prefix undercore, then with it. 4925for ac_symprfx in "" "_"; do 4926 4927 # Write the raw and C identifiers. 4928lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4929 4930 # Check to see that the pipe works correctly. 4931 pipe_works=no 4932 rm -f conftest* 4933 cat > conftest.$ac_ext <<EOF 4934#ifdef __cplusplus 4935extern "C" { 4936#endif 4937char nm_test_var; 4938void nm_test_func(){} 4939#ifdef __cplusplus 4940} 4941#endif 4942int main(){nm_test_var='a';nm_test_func();return(0);} 4943EOF 4944 4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4946 (eval $ac_compile) 2>&5 4947 ac_status=$? 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; then 4950 # Now try to grab the symbols. 4951 nlist=conftest.nm 4952 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4953 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4954 ac_status=$? 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); } && test -s "$nlist"; then 4957 # Try sorting and uniquifying the output. 4958 if sort "$nlist" | uniq > "$nlist"T; then 4959 mv -f "$nlist"T "$nlist" 4960 else 4961 rm -f "$nlist"T 4962 fi 4963 4964 # Make sure that we snagged all the symbols we need. 4965 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 4966 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 4967 cat <<EOF > conftest.$ac_ext 4968#ifdef __cplusplus 4969extern "C" { 4970#endif 4971 4972EOF 4973 # Now generate the symbol file. 4974 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 4975 4976 cat <<EOF >> conftest.$ac_ext 4977#if defined (__STDC__) && __STDC__ 4978# define lt_ptr void * 4979#else 4980# define lt_ptr char * 4981# define const 4982#endif 4983 4984/* The mapping between symbol names and symbols. */ 4985const struct { 4986 const char *name; 4987 lt_ptr address; 4988} 4989lt_preloaded_symbols[] = 4990{ 4991EOF 4992 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 4993 cat <<\EOF >> conftest.$ac_ext 4994 {0, (lt_ptr) 0} 4995}; 4996 4997#ifdef __cplusplus 4998} 4999#endif 5000EOF 5001 # Now try linking the two files. 5002 mv conftest.$ac_objext conftstm.$ac_objext 5003 save_LIBS="$LIBS" 5004 save_CFLAGS="$CFLAGS" 5005 LIBS="conftstm.$ac_objext" 5006 CFLAGS="$CFLAGS$no_builtin_flag" 5007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5008 (eval $ac_link) 2>&5 5009 ac_status=$? 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5011 (exit $ac_status); } && test -s conftest; then 5012 pipe_works=yes 5013 fi 5014 LIBS="$save_LIBS" 5015 CFLAGS="$save_CFLAGS" 5016 else 5017 echo "cannot find nm_test_func in $nlist" >&5 5018 fi 5019 else 5020 echo "cannot find nm_test_var in $nlist" >&5 5021 fi 5022 else 5023 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5024 fi 5025 else 5026 echo "$progname: failed program was:" >&5 5027 cat conftest.$ac_ext >&5 5028 fi 5029 rm -f conftest* conftst* 5030 5031 # Do not use the global_symbol_pipe unless it works. 5032 if test "$pipe_works" = yes; then 5033 break 5034 else 5035 lt_cv_sys_global_symbol_pipe= 5036 fi 5037done 5038 5039fi 5040 5041global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 5042if test -z "$lt_cv_sys_global_symbol_pipe"; then 5043 global_symbol_to_cdecl= 5044 global_symbol_to_c_name_address= 5045else 5046 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 5047 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 5048fi 5049if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 5050then 5051 echo "$as_me:$LINENO: result: failed" >&5 5052echo "${ECHO_T}failed" >&6 5053else 5054 echo "$as_me:$LINENO: result: ok" >&5 5055echo "${ECHO_T}ok" >&6 5056fi 5057 5058echo "$as_me:$LINENO: checking for egrep" >&5 5059echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5060if test "${ac_cv_prog_egrep+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062else 5063 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5064 then ac_cv_prog_egrep='grep -E' 5065 else ac_cv_prog_egrep='egrep' 5066 fi 5067fi 5068echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 5069echo "${ECHO_T}$ac_cv_prog_egrep" >&6 5070 EGREP=$ac_cv_prog_egrep 5071 5072 5073echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5074echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5075if test "${ac_cv_header_stdc+set}" = set; then 5076 echo $ECHO_N "(cached) $ECHO_C" >&6 5077else 5078 cat >conftest.$ac_ext <<_ACEOF 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084#include <stdlib.h> 5085#include <stdarg.h> 5086#include <string.h> 5087#include <float.h> 5088 5089int 5090main () 5091{ 5092 5093 ; 5094 return 0; 5095} 5096_ACEOF 5097rm -f conftest.$ac_objext 5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5099 (eval $ac_compile) 2>conftest.er1 5100 ac_status=$? 5101 grep -v '^ *+' conftest.er1 >conftest.err 5102 rm -f conftest.er1 5103 cat conftest.err >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); } && 5106 { ac_try='test -z "$ac_c_werror_flag" 5107 || test ! -s conftest.err' 5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5109 (eval $ac_try) 2>&5 5110 ac_status=$? 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); }; } && 5113 { ac_try='test -s conftest.$ac_objext' 5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5115 (eval $ac_try) 2>&5 5116 ac_status=$? 5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5118 (exit $ac_status); }; }; then 5119 ac_cv_header_stdc=yes 5120else 5121 echo "$as_me: failed program was:" >&5 5122sed 's/^/| /' conftest.$ac_ext >&5 5123 5124ac_cv_header_stdc=no 5125fi 5126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5127 5128if test $ac_cv_header_stdc = yes; then 5129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5130 cat >conftest.$ac_ext <<_ACEOF 5131/* confdefs.h. */ 5132_ACEOF 5133cat confdefs.h >>conftest.$ac_ext 5134cat >>conftest.$ac_ext <<_ACEOF 5135/* end confdefs.h. */ 5136#include <string.h> 5137 5138_ACEOF 5139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5140 $EGREP "memchr" >/dev/null 2>&1; then 5141 : 5142else 5143 ac_cv_header_stdc=no 5144fi 5145rm -f conftest* 5146 5147fi 5148 5149if test $ac_cv_header_stdc = yes; then 5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5151 cat >conftest.$ac_ext <<_ACEOF 5152/* confdefs.h. */ 5153_ACEOF 5154cat confdefs.h >>conftest.$ac_ext 5155cat >>conftest.$ac_ext <<_ACEOF 5156/* end confdefs.h. */ 5157#include <stdlib.h> 5158 5159_ACEOF 5160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5161 $EGREP "free" >/dev/null 2>&1; then 5162 : 5163else 5164 ac_cv_header_stdc=no 5165fi 5166rm -f conftest* 5167 5168fi 5169 5170if test $ac_cv_header_stdc = yes; then 5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5172 if test "$cross_compiling" = yes; then 5173 : 5174else 5175 cat >conftest.$ac_ext <<_ACEOF 5176/* confdefs.h. */ 5177_ACEOF 5178cat confdefs.h >>conftest.$ac_ext 5179cat >>conftest.$ac_ext <<_ACEOF 5180/* end confdefs.h. */ 5181#include <ctype.h> 5182#if ((' ' & 0x0FF) == 0x020) 5183# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5184# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5185#else 5186# define ISLOWER(c) \ 5187 (('a' <= (c) && (c) <= 'i') \ 5188 || ('j' <= (c) && (c) <= 'r') \ 5189 || ('s' <= (c) && (c) <= 'z')) 5190# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5191#endif 5192 5193#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5194int 5195main () 5196{ 5197 int i; 5198 for (i = 0; i < 256; i++) 5199 if (XOR (islower (i), ISLOWER (i)) 5200 || toupper (i) != TOUPPER (i)) 5201 exit(2); 5202 exit (0); 5203} 5204_ACEOF 5205rm -f conftest$ac_exeext 5206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5207 (eval $ac_link) 2>&5 5208 ac_status=$? 5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5212 (eval $ac_try) 2>&5 5213 ac_status=$? 5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5215 (exit $ac_status); }; }; then 5216 : 5217else 5218 echo "$as_me: program exited with status $ac_status" >&5 5219echo "$as_me: failed program was:" >&5 5220sed 's/^/| /' conftest.$ac_ext >&5 5221 5222( exit $ac_status ) 5223ac_cv_header_stdc=no 5224fi 5225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5226fi 5227fi 5228fi 5229echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5230echo "${ECHO_T}$ac_cv_header_stdc" >&6 5231if test $ac_cv_header_stdc = yes; then 5232 5233cat >>confdefs.h <<\_ACEOF 5234#define STDC_HEADERS 1 5235_ACEOF 5236 5237fi 5238 5239# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5250 inttypes.h stdint.h unistd.h 5251do 5252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5253echo "$as_me:$LINENO: checking for $ac_header" >&5 5254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5255if eval "test \"\${$as_ac_Header+set}\" = set"; then 5256 echo $ECHO_N "(cached) $ECHO_C" >&6 5257else 5258 cat >conftest.$ac_ext <<_ACEOF 5259/* confdefs.h. */ 5260_ACEOF 5261cat confdefs.h >>conftest.$ac_ext 5262cat >>conftest.$ac_ext <<_ACEOF 5263/* end confdefs.h. */ 5264$ac_includes_default 5265 5266#include <$ac_header> 5267_ACEOF 5268rm -f conftest.$ac_objext 5269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5270 (eval $ac_compile) 2>conftest.er1 5271 ac_status=$? 5272 grep -v '^ *+' conftest.er1 >conftest.err 5273 rm -f conftest.er1 5274 cat conftest.err >&5 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); } && 5277 { ac_try='test -z "$ac_c_werror_flag" 5278 || test ! -s conftest.err' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; } && 5284 { ac_try='test -s conftest.$ac_objext' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; }; then 5290 eval "$as_ac_Header=yes" 5291else 5292 echo "$as_me: failed program was:" >&5 5293sed 's/^/| /' conftest.$ac_ext >&5 5294 5295eval "$as_ac_Header=no" 5296fi 5297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5298fi 5299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5301if test `eval echo '${'$as_ac_Header'}'` = yes; then 5302 cat >>confdefs.h <<_ACEOF 5303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5304_ACEOF 5305 5306fi 5307 5308done 5309 5310 5311 5312for ac_header in dlfcn.h 5313do 5314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5315if eval "test \"\${$as_ac_Header+set}\" = set"; then 5316 echo "$as_me:$LINENO: checking for $ac_header" >&5 5317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5318if eval "test \"\${$as_ac_Header+set}\" = set"; then 5319 echo $ECHO_N "(cached) $ECHO_C" >&6 5320fi 5321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5323else 5324 # Is the header compilable? 5325echo "$as_me:$LINENO: checking $ac_header usability" >&5 5326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5327cat >conftest.$ac_ext <<_ACEOF 5328/* confdefs.h. */ 5329_ACEOF 5330cat confdefs.h >>conftest.$ac_ext 5331cat >>conftest.$ac_ext <<_ACEOF 5332/* end confdefs.h. */ 5333$ac_includes_default 5334#include <$ac_header> 5335_ACEOF 5336rm -f conftest.$ac_objext 5337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5338 (eval $ac_compile) 2>conftest.er1 5339 ac_status=$? 5340 grep -v '^ *+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } && 5345 { ac_try='test -z "$ac_c_werror_flag" 5346 || test ! -s conftest.err' 5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5348 (eval $ac_try) 2>&5 5349 ac_status=$? 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); }; } && 5352 { ac_try='test -s conftest.$ac_objext' 5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5354 (eval $ac_try) 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); }; }; then 5358 ac_header_compiler=yes 5359else 5360 echo "$as_me: failed program was:" >&5 5361sed 's/^/| /' conftest.$ac_ext >&5 5362 5363ac_header_compiler=no 5364fi 5365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5367echo "${ECHO_T}$ac_header_compiler" >&6 5368 5369# Is the header present? 5370echo "$as_me:$LINENO: checking $ac_header presence" >&5 5371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5372cat >conftest.$ac_ext <<_ACEOF 5373/* confdefs.h. */ 5374_ACEOF 5375cat confdefs.h >>conftest.$ac_ext 5376cat >>conftest.$ac_ext <<_ACEOF 5377/* end confdefs.h. */ 5378#include <$ac_header> 5379_ACEOF 5380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5382 ac_status=$? 5383 grep -v '^ *+' conftest.er1 >conftest.err 5384 rm -f conftest.er1 5385 cat conftest.err >&5 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); } >/dev/null; then 5388 if test -s conftest.err; then 5389 ac_cpp_err=$ac_c_preproc_warn_flag 5390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5391 else 5392 ac_cpp_err= 5393 fi 5394else 5395 ac_cpp_err=yes 5396fi 5397if test -z "$ac_cpp_err"; then 5398 ac_header_preproc=yes 5399else 5400 echo "$as_me: failed program was:" >&5 5401sed 's/^/| /' conftest.$ac_ext >&5 5402 5403 ac_header_preproc=no 5404fi 5405rm -f conftest.err conftest.$ac_ext 5406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5407echo "${ECHO_T}$ac_header_preproc" >&6 5408 5409# So? What about this header? 5410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5411 yes:no: ) 5412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5416 ac_header_preproc=yes 5417 ;; 5418 no:yes:* ) 5419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5431 ( 5432 cat <<\_ASBOX 5433## ------------------------------------------ ## 5434## Report this to the AC_PACKAGE_NAME lists. ## 5435## ------------------------------------------ ## 5436_ASBOX 5437 ) | 5438 sed "s/^/$as_me: WARNING: /" >&2 5439 ;; 5440esac 5441echo "$as_me:$LINENO: checking for $ac_header" >&5 5442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5443if eval "test \"\${$as_ac_Header+set}\" = set"; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 eval "$as_ac_Header=\$ac_header_preproc" 5447fi 5448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5450 5451fi 5452if test `eval echo '${'$as_ac_Header'}'` = yes; then 5453 cat >>confdefs.h <<_ACEOF 5454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5455_ACEOF 5456 5457fi 5458 5459done 5460 5461 5462 5463 5464 5465# Only perform the check for file, if the check method requires it 5466case $deplibs_check_method in 5467file_magic*) 5468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5469 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5470echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5471if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473else 5474 case $MAGIC_CMD in 5475 /*) 5476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5477 ;; 5478 ?:/*) 5479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 5480 ;; 5481 *) 5482 ac_save_MAGIC_CMD="$MAGIC_CMD" 5483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5484 ac_dummy="/usr/bin:$PATH" 5485 for ac_dir in $ac_dummy; do 5486 test -z "$ac_dir" && ac_dir=. 5487 if test -f $ac_dir/${ac_tool_prefix}file; then 5488 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5489 if test -n "$file_magic_test_file"; then 5490 case $deplibs_check_method in 5491 "file_magic "*) 5492 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5495 egrep "$file_magic_regex" > /dev/null; then 5496 : 5497 else 5498 cat <<EOF 1>&2 5499 5500*** Warning: the command libtool uses to detect shared libraries, 5501*** $file_magic_cmd, produces output that libtool cannot recognize. 5502*** The result is that libtool may fail to recognize shared libraries 5503*** as such. This will affect the creation of libtool libraries that 5504*** depend on shared libraries, but programs linked with such libtool 5505*** libraries will work regardless of this problem. Nevertheless, you 5506*** may want to report the problem to your system manager and/or to 5507*** bug-libtool@gnu.org 5508 5509EOF 5510 fi ;; 5511 esac 5512 fi 5513 break 5514 fi 5515 done 5516 IFS="$ac_save_ifs" 5517 MAGIC_CMD="$ac_save_MAGIC_CMD" 5518 ;; 5519esac 5520fi 5521 5522MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5523if test -n "$MAGIC_CMD"; then 5524 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5525echo "${ECHO_T}$MAGIC_CMD" >&6 5526else 5527 echo "$as_me:$LINENO: result: no" >&5 5528echo "${ECHO_T}no" >&6 5529fi 5530 5531if test -z "$lt_cv_path_MAGIC_CMD"; then 5532 if test -n "$ac_tool_prefix"; then 5533 echo "$as_me:$LINENO: checking for file" >&5 5534echo $ECHO_N "checking for file... $ECHO_C" >&6 5535if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5536 echo $ECHO_N "(cached) $ECHO_C" >&6 5537else 5538 case $MAGIC_CMD in 5539 /*) 5540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5541 ;; 5542 ?:/*) 5543 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 5544 ;; 5545 *) 5546 ac_save_MAGIC_CMD="$MAGIC_CMD" 5547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5548 ac_dummy="/usr/bin:$PATH" 5549 for ac_dir in $ac_dummy; do 5550 test -z "$ac_dir" && ac_dir=. 5551 if test -f $ac_dir/file; then 5552 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5553 if test -n "$file_magic_test_file"; then 5554 case $deplibs_check_method in 5555 "file_magic "*) 5556 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5559 egrep "$file_magic_regex" > /dev/null; then 5560 : 5561 else 5562 cat <<EOF 1>&2 5563 5564*** Warning: the command libtool uses to detect shared libraries, 5565*** $file_magic_cmd, produces output that libtool cannot recognize. 5566*** The result is that libtool may fail to recognize shared libraries 5567*** as such. This will affect the creation of libtool libraries that 5568*** depend on shared libraries, but programs linked with such libtool 5569*** libraries will work regardless of this problem. Nevertheless, you 5570*** may want to report the problem to your system manager and/or to 5571*** bug-libtool@gnu.org 5572 5573EOF 5574 fi ;; 5575 esac 5576 fi 5577 break 5578 fi 5579 done 5580 IFS="$ac_save_ifs" 5581 MAGIC_CMD="$ac_save_MAGIC_CMD" 5582 ;; 5583esac 5584fi 5585 5586MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5587if test -n "$MAGIC_CMD"; then 5588 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5589echo "${ECHO_T}$MAGIC_CMD" >&6 5590else 5591 echo "$as_me:$LINENO: result: no" >&5 5592echo "${ECHO_T}no" >&6 5593fi 5594 5595 else 5596 MAGIC_CMD=: 5597 fi 5598fi 5599 5600 fi 5601 ;; 5602esac 5603 5604if test -n "$ac_tool_prefix"; then 5605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5606set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5607echo "$as_me:$LINENO: checking for $ac_word" >&5 5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5609if test "${ac_cv_prog_RANLIB+set}" = set; then 5610 echo $ECHO_N "(cached) $ECHO_C" >&6 5611else 5612 if test -n "$RANLIB"; then 5613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5614else 5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5616for as_dir in $PATH 5617do 5618 IFS=$as_save_IFS 5619 test -z "$as_dir" && as_dir=. 5620 for ac_exec_ext in '' $ac_executable_extensions; do 5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5624 break 2 5625 fi 5626done 5627done 5628 5629fi 5630fi 5631RANLIB=$ac_cv_prog_RANLIB 5632if test -n "$RANLIB"; then 5633 echo "$as_me:$LINENO: result: $RANLIB" >&5 5634echo "${ECHO_T}$RANLIB" >&6 5635else 5636 echo "$as_me:$LINENO: result: no" >&5 5637echo "${ECHO_T}no" >&6 5638fi 5639 5640fi 5641if test -z "$ac_cv_prog_RANLIB"; then 5642 ac_ct_RANLIB=$RANLIB 5643 # Extract the first word of "ranlib", so it can be a program name with args. 5644set dummy ranlib; ac_word=$2 5645echo "$as_me:$LINENO: checking for $ac_word" >&5 5646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5647if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5648 echo $ECHO_N "(cached) $ECHO_C" >&6 5649else 5650 if test -n "$ac_ct_RANLIB"; then 5651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_ac_ct_RANLIB="ranlib" 5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665done 5666 5667 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5668fi 5669fi 5670ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5671if test -n "$ac_ct_RANLIB"; then 5672 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5673echo "${ECHO_T}$ac_ct_RANLIB" >&6 5674else 5675 echo "$as_me:$LINENO: result: no" >&5 5676echo "${ECHO_T}no" >&6 5677fi 5678 5679 RANLIB=$ac_ct_RANLIB 5680else 5681 RANLIB="$ac_cv_prog_RANLIB" 5682fi 5683 5684if test -n "$ac_tool_prefix"; then 5685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5686set dummy ${ac_tool_prefix}strip; ac_word=$2 5687echo "$as_me:$LINENO: checking for $ac_word" >&5 5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5689if test "${ac_cv_prog_STRIP+set}" = set; then 5690 echo $ECHO_N "(cached) $ECHO_C" >&6 5691else 5692 if test -n "$STRIP"; then 5693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5694else 5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696for as_dir in $PATH 5697do 5698 IFS=$as_save_IFS 5699 test -z "$as_dir" && as_dir=. 5700 for ac_exec_ext in '' $ac_executable_extensions; do 5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5702 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5704 break 2 5705 fi 5706done 5707done 5708 5709fi 5710fi 5711STRIP=$ac_cv_prog_STRIP 5712if test -n "$STRIP"; then 5713 echo "$as_me:$LINENO: result: $STRIP" >&5 5714echo "${ECHO_T}$STRIP" >&6 5715else 5716 echo "$as_me:$LINENO: result: no" >&5 5717echo "${ECHO_T}no" >&6 5718fi 5719 5720fi 5721if test -z "$ac_cv_prog_STRIP"; then 5722 ac_ct_STRIP=$STRIP 5723 # Extract the first word of "strip", so it can be a program name with args. 5724set dummy strip; ac_word=$2 5725echo "$as_me:$LINENO: checking for $ac_word" >&5 5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5727if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5728 echo $ECHO_N "(cached) $ECHO_C" >&6 5729else 5730 if test -n "$ac_ct_STRIP"; then 5731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 test -z "$as_dir" && as_dir=. 5738 for ac_exec_ext in '' $ac_executable_extensions; do 5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5740 ac_cv_prog_ac_ct_STRIP="strip" 5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5742 break 2 5743 fi 5744done 5745done 5746 5747 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5748fi 5749fi 5750ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5751if test -n "$ac_ct_STRIP"; then 5752 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5753echo "${ECHO_T}$ac_ct_STRIP" >&6 5754else 5755 echo "$as_me:$LINENO: result: no" >&5 5756echo "${ECHO_T}no" >&6 5757fi 5758 5759 STRIP=$ac_ct_STRIP 5760else 5761 STRIP="$ac_cv_prog_STRIP" 5762fi 5763 5764 5765enable_dlopen=no 5766enable_win32_dll=no 5767 5768# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5769if test "${enable_libtool_lock+set}" = set; then 5770 enableval="$enable_libtool_lock" 5771 5772fi; 5773test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5774 5775# Some flags need to be propagated to the compiler or linker for good 5776# libtool support. 5777case $host in 5778*-*-irix6*) 5779 # Find out which ABI we are using. 5780 echo '#line 5780 "configure"' > conftest.$ac_ext 5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5782 (eval $ac_compile) 2>&5 5783 ac_status=$? 5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5785 (exit $ac_status); }; then 5786 case `/usr/bin/file conftest.$ac_objext` in 5787 *32-bit*) 5788 LD="${LD-ld} -32" 5789 ;; 5790 *N32*) 5791 LD="${LD-ld} -n32" 5792 ;; 5793 *64-bit*) 5794 LD="${LD-ld} -64" 5795 ;; 5796 esac 5797 fi 5798 rm -rf conftest* 5799 ;; 5800 5801*-*-sco3.2v5*) 5802 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5803 SAVE_CFLAGS="$CFLAGS" 5804 CFLAGS="$CFLAGS -belf" 5805 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5806echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5807if test "${lt_cv_cc_needs_belf+set}" = set; then 5808 echo $ECHO_N "(cached) $ECHO_C" >&6 5809else 5810 5811 5812 ac_ext=c 5813ac_cpp='$CPP $CPPFLAGS' 5814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5816ac_compiler_gnu=$ac_cv_c_compiler_gnu 5817 5818 cat >conftest.$ac_ext <<_ACEOF 5819/* confdefs.h. */ 5820_ACEOF 5821cat confdefs.h >>conftest.$ac_ext 5822cat >>conftest.$ac_ext <<_ACEOF 5823/* end confdefs.h. */ 5824 5825int 5826main () 5827{ 5828 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833rm -f conftest.$ac_objext conftest$ac_exeext 5834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5835 (eval $ac_link) 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } && 5842 { ac_try='test -z "$ac_c_werror_flag" 5843 || test ! -s conftest.err' 5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5845 (eval $ac_try) 2>&5 5846 ac_status=$? 5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5848 (exit $ac_status); }; } && 5849 { ac_try='test -s conftest$ac_exeext' 5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5851 (eval $ac_try) 2>&5 5852 ac_status=$? 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); }; }; then 5855 lt_cv_cc_needs_belf=yes 5856else 5857 echo "$as_me: failed program was:" >&5 5858sed 's/^/| /' conftest.$ac_ext >&5 5859 5860lt_cv_cc_needs_belf=no 5861fi 5862rm -f conftest.err conftest.$ac_objext \ 5863 conftest$ac_exeext conftest.$ac_ext 5864 ac_ext=c 5865ac_cpp='$CPP $CPPFLAGS' 5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5868ac_compiler_gnu=$ac_cv_c_compiler_gnu 5869 5870fi 5871echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5872echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5875 CFLAGS="$SAVE_CFLAGS" 5876 fi 5877 ;; 5878 5879 5880esac 5881 5882# Sed substitution that helps us do robust quoting. It backslashifies 5883# metacharacters that are still active within double-quoted strings. 5884Xsed='sed -e s/^X//' 5885sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5886 5887# Same as above, but do not quote variable references. 5888double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5889 5890# Sed substitution to delay expansion of an escaped shell variable in a 5891# double_quote_subst'ed string. 5892delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5893 5894# Constants: 5895rm="rm -f" 5896 5897# Global variables: 5898default_ofile=libtool 5899can_build_shared=yes 5900 5901# All known linkers require a `.a' archive for static linking (except M$VC, 5902# which needs '.lib'). 5903libext=a 5904ltmain="$ac_aux_dir/ltmain.sh" 5905ofile="$default_ofile" 5906with_gnu_ld="$lt_cv_prog_gnu_ld" 5907need_locks="$enable_libtool_lock" 5908 5909old_CC="$CC" 5910old_CFLAGS="$CFLAGS" 5911 5912# Set sane defaults for various variables 5913test -z "$AR" && AR=ar 5914test -z "$AR_FLAGS" && AR_FLAGS=cru 5915test -z "$AS" && AS=as 5916test -z "$CC" && CC=cc 5917test -z "$DLLTOOL" && DLLTOOL=dlltool 5918test -z "$LD" && LD=ld 5919test -z "$LN_S" && LN_S="ln -s" 5920test -z "$MAGIC_CMD" && MAGIC_CMD=file 5921test -z "$NM" && NM=nm 5922test -z "$OBJDUMP" && OBJDUMP=objdump 5923test -z "$RANLIB" && RANLIB=: 5924test -z "$STRIP" && STRIP=: 5925test -z "$ac_objext" && ac_objext=o 5926 5927if test x"$host" != x"$build"; then 5928 ac_tool_prefix=${host_alias}- 5929else 5930 ac_tool_prefix= 5931fi 5932 5933# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 5934case $host_os in 5935linux-gnu*) ;; 5936linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 5937esac 5938 5939case $host_os in 5940aix3*) 5941 # AIX sometimes has problems with the GCC collect2 program. For some 5942 # reason, if we set the COLLECT_NAMES environment variable, the problems 5943 # vanish in a puff of smoke. 5944 if test "X${COLLECT_NAMES+set}" != Xset; then 5945 COLLECT_NAMES= 5946 export COLLECT_NAMES 5947 fi 5948 ;; 5949esac 5950 5951# Determine commands to create old-style static archives. 5952old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5953old_postinstall_cmds='chmod 644 $oldlib' 5954old_postuninstall_cmds= 5955 5956if test -n "$RANLIB"; then 5957 case $host_os in 5958 openbsd*) 5959 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5960 ;; 5961 *) 5962 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5963 ;; 5964 esac 5965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5966fi 5967 5968# Allow CC to be a program name with arguments. 5969set dummy $CC 5970compiler="$2" 5971 5972## FIXME: this should be a separate macro 5973## 5974echo "$as_me:$LINENO: checking for objdir" >&5 5975echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5976rm -f .libs 2>/dev/null 5977mkdir .libs 2>/dev/null 5978if test -d .libs; then 5979 objdir=.libs 5980else 5981 # MS-DOS does not allow filenames that begin with a dot. 5982 objdir=_libs 5983fi 5984rmdir .libs 2>/dev/null 5985echo "$as_me:$LINENO: result: $objdir" >&5 5986echo "${ECHO_T}$objdir" >&6 5987## 5988## END FIXME 5989 5990 5991## FIXME: this should be a separate macro 5992## 5993 5994# Check whether --with-pic or --without-pic was given. 5995if test "${with_pic+set}" = set; then 5996 withval="$with_pic" 5997 pic_mode="$withval" 5998else 5999 pic_mode=default 6000fi; 6001test -z "$pic_mode" && pic_mode=default 6002 6003# We assume here that the value for lt_cv_prog_cc_pic will not be cached 6004# in isolation, and that seeing it set (from the cache) indicates that 6005# the associated values are set (in the cache) correctly too. 6006echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6008if test "${lt_cv_prog_cc_pic+set}" = set; then 6009 echo $ECHO_N "(cached) $ECHO_C" >&6 6010else 6011 lt_cv_prog_cc_pic= 6012 lt_cv_prog_cc_shlib= 6013 lt_cv_prog_cc_wl= 6014 lt_cv_prog_cc_static= 6015 lt_cv_prog_cc_no_builtin= 6016 lt_cv_prog_cc_can_build_shared=$can_build_shared 6017 6018 if test "$GCC" = yes; then 6019 lt_cv_prog_cc_wl='-Wl,' 6020 lt_cv_prog_cc_static='-static' 6021 6022 case $host_os in 6023 aix*) 6024 # Below there is a dirty hack to force normal static linking with -ldl 6025 # The problem is because libdl dynamically linked with both libc and 6026 # libC (AIX C++ library), which obviously doesn't included in libraries 6027 # list by gcc. This cause undefined symbols with -static flags. 6028 # This hack allows C programs to be linked with "-static -ldl", but 6029 # not sure about C++ programs. 6030 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 6031 ;; 6032 amigaos*) 6033 # FIXME: we need at least 68020 code to build shared libraries, but 6034 # adding the `-m68020' flag to GCC prevents building anything better, 6035 # like `-m68040'. 6036 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 6037 ;; 6038 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 6039 # PIC is the default for these OSes. 6040 ;; 6041 darwin* | rhapsody*) 6042 # PIC is the default on this platform 6043 # Common symbols not allowed in MH_DYLIB files 6044 lt_cv_prog_cc_pic='-fno-common' 6045 ;; 6046 cygwin* | mingw* | pw32* | os2*) 6047 # This hack is so that the source file can tell whether it is being 6048 # built for inclusion in a dll (and should export symbols for example). 6049 lt_cv_prog_cc_pic='-DDLL_EXPORT' 6050 ;; 6051 sysv4*MP*) 6052 if test -d /usr/nec; then 6053 lt_cv_prog_cc_pic=-Kconform_pic 6054 fi 6055 ;; 6056 *) 6057 lt_cv_prog_cc_pic='-fPIC' 6058 ;; 6059 esac 6060 else 6061 # PORTME Check for PIC flags for the system compiler. 6062 case $host_os in 6063 aix3* | aix4* | aix5*) 6064 lt_cv_prog_cc_wl='-Wl,' 6065 # All AIX code is PIC. 6066 if test "$host_cpu" = ia64; then 6067 # AIX 5 now supports IA64 processor 6068 lt_cv_prog_cc_static='-Bstatic' 6069 else 6070 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 6071 fi 6072 ;; 6073 6074 hpux9* | hpux10* | hpux11*) 6075 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 6076 lt_cv_prog_cc_wl='-Wl,' 6077 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 6078 lt_cv_prog_cc_pic='+Z' 6079 ;; 6080 6081 irix5* | irix6*) 6082 lt_cv_prog_cc_wl='-Wl,' 6083 lt_cv_prog_cc_static='-non_shared' 6084 # PIC (with -KPIC) is the default. 6085 ;; 6086 6087 cygwin* | mingw* | pw32* | os2*) 6088 # This hack is so that the source file can tell whether it is being 6089 # built for inclusion in a dll (and should export symbols for example). 6090 lt_cv_prog_cc_pic='-DDLL_EXPORT' 6091 ;; 6092 6093 newsos6) 6094 lt_cv_prog_cc_pic='-KPIC' 6095 lt_cv_prog_cc_static='-Bstatic' 6096 ;; 6097 6098 osf3* | osf4* | osf5*) 6099 # All OSF/1 code is PIC. 6100 lt_cv_prog_cc_wl='-Wl,' 6101 lt_cv_prog_cc_static='-non_shared' 6102 ;; 6103 6104 sco3.2v5*) 6105 lt_cv_prog_cc_pic='-Kpic' 6106 lt_cv_prog_cc_static='-dn' 6107 lt_cv_prog_cc_shlib='-belf' 6108 ;; 6109 6110 solaris*) 6111 lt_cv_prog_cc_pic='-KPIC' 6112 lt_cv_prog_cc_static='-Bstatic' 6113 lt_cv_prog_cc_wl='-Wl,' 6114 ;; 6115 6116 sunos4*) 6117 lt_cv_prog_cc_pic='-PIC' 6118 lt_cv_prog_cc_static='-Bstatic' 6119 lt_cv_prog_cc_wl='-Qoption ld ' 6120 ;; 6121 6122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6123 lt_cv_prog_cc_pic='-KPIC' 6124 lt_cv_prog_cc_static='-Bstatic' 6125 if test "x$host_vendor" = xsni; then 6126 lt_cv_prog_cc_wl='-LD' 6127 else 6128 lt_cv_prog_cc_wl='-Wl,' 6129 fi 6130 ;; 6131 6132 uts4*) 6133 lt_cv_prog_cc_pic='-pic' 6134 lt_cv_prog_cc_static='-Bstatic' 6135 ;; 6136 6137 sysv4*MP*) 6138 if test -d /usr/nec ;then 6139 lt_cv_prog_cc_pic='-Kconform_pic' 6140 lt_cv_prog_cc_static='-Bstatic' 6141 fi 6142 ;; 6143 6144 *) 6145 lt_cv_prog_cc_can_build_shared=no 6146 ;; 6147 esac 6148 fi 6149 6150fi 6151 6152if test -z "$lt_cv_prog_cc_pic"; then 6153 echo "$as_me:$LINENO: result: none" >&5 6154echo "${ECHO_T}none" >&6 6155else 6156 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 6157echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 6158 6159 # Check to make sure the pic_flag actually works. 6160 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 6161echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 6162 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 6163 echo $ECHO_N "(cached) $ECHO_C" >&6 6164else 6165 save_CFLAGS="$CFLAGS" 6166 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 6167 cat >conftest.$ac_ext <<_ACEOF 6168/* confdefs.h. */ 6169_ACEOF 6170cat confdefs.h >>conftest.$ac_ext 6171cat >>conftest.$ac_ext <<_ACEOF 6172/* end confdefs.h. */ 6173 6174int 6175main () 6176{ 6177 6178 ; 6179 return 0; 6180} 6181_ACEOF 6182rm -f conftest.$ac_objext 6183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6184 (eval $ac_compile) 2>conftest.er1 6185 ac_status=$? 6186 grep -v '^ *+' conftest.er1 >conftest.err 6187 rm -f conftest.er1 6188 cat conftest.err >&5 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); } && 6191 { ac_try='test -z "$ac_c_werror_flag" 6192 || test ! -s conftest.err' 6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6194 (eval $ac_try) 2>&5 6195 ac_status=$? 6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6197 (exit $ac_status); }; } && 6198 { ac_try='test -s conftest.$ac_objext' 6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6200 (eval $ac_try) 2>&5 6201 ac_status=$? 6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6203 (exit $ac_status); }; }; then 6204 case $host_os in 6205 hpux9* | hpux10* | hpux11*) 6206 # On HP-UX, both CC and GCC only warn that PIC is supported... then 6207 # they create non-PIC objects. So, if there were any warnings, we 6208 # assume that PIC is not supported. 6209 if test -s conftest.err; then 6210 lt_cv_prog_cc_pic_works=no 6211 else 6212 lt_cv_prog_cc_pic_works=yes 6213 fi 6214 ;; 6215 *) 6216 lt_cv_prog_cc_pic_works=yes 6217 ;; 6218 esac 6219 6220else 6221 echo "$as_me: failed program was:" >&5 6222sed 's/^/| /' conftest.$ac_ext >&5 6223 6224 lt_cv_prog_cc_pic_works=no 6225 6226fi 6227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6228 CFLAGS="$save_CFLAGS" 6229 6230fi 6231 6232 6233 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 6234 lt_cv_prog_cc_pic= 6235 lt_cv_prog_cc_can_build_shared=no 6236 else 6237 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 6238 fi 6239 6240 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 6241echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 6242fi 6243## 6244## END FIXME 6245 6246# Check for any special shared library compilation flags. 6247if test -n "$lt_cv_prog_cc_shlib"; then 6248 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 6249echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 6250 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 6251 else 6252 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6253echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6254 lt_cv_prog_cc_can_build_shared=no 6255 fi 6256fi 6257 6258## FIXME: this should be a separate macro 6259## 6260echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 6261echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 6262if test "${lt_cv_prog_cc_static_works+set}" = set; then 6263 echo $ECHO_N "(cached) $ECHO_C" >&6 6264else 6265 lt_cv_prog_cc_static_works=no 6266 save_LDFLAGS="$LDFLAGS" 6267 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 6268 cat >conftest.$ac_ext <<_ACEOF 6269/* confdefs.h. */ 6270_ACEOF 6271cat confdefs.h >>conftest.$ac_ext 6272cat >>conftest.$ac_ext <<_ACEOF 6273/* end confdefs.h. */ 6274 6275int 6276main () 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283rm -f conftest.$ac_objext conftest$ac_exeext 6284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6285 (eval $ac_link) 2>conftest.er1 6286 ac_status=$? 6287 grep -v '^ *+' conftest.er1 >conftest.err 6288 rm -f conftest.er1 6289 cat conftest.err >&5 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6291 (exit $ac_status); } && 6292 { ac_try='test -z "$ac_c_werror_flag" 6293 || test ! -s conftest.err' 6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6295 (eval $ac_try) 2>&5 6296 ac_status=$? 6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); }; } && 6299 { ac_try='test -s conftest$ac_exeext' 6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6301 (eval $ac_try) 2>&5 6302 ac_status=$? 6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6304 (exit $ac_status); }; }; then 6305 lt_cv_prog_cc_static_works=yes 6306else 6307 echo "$as_me: failed program was:" >&5 6308sed 's/^/| /' conftest.$ac_ext >&5 6309 6310fi 6311rm -f conftest.err conftest.$ac_objext \ 6312 conftest$ac_exeext conftest.$ac_ext 6313 LDFLAGS="$save_LDFLAGS" 6314 6315fi 6316 6317 6318# Belt *and* braces to stop my trousers falling down: 6319test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 6320echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 6321echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 6322 6323pic_flag="$lt_cv_prog_cc_pic" 6324special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 6325wl="$lt_cv_prog_cc_wl" 6326link_static_flag="$lt_cv_prog_cc_static" 6327no_builtin_flag="$lt_cv_prog_cc_no_builtin" 6328can_build_shared="$lt_cv_prog_cc_can_build_shared" 6329## 6330## END FIXME 6331 6332 6333## FIXME: this should be a separate macro 6334## 6335# Check to see if options -o and -c are simultaneously supported by compiler 6336echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6338if test "${lt_cv_compiler_c_o+set}" = set; then 6339 echo $ECHO_N "(cached) $ECHO_C" >&6 6340else 6341 6342$rm -r conftest 2>/dev/null 6343mkdir conftest 6344cd conftest 6345echo "int some_variable = 0;" > conftest.$ac_ext 6346mkdir out 6347# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6348# that will create temporary files in the current directory regardless of 6349# the output directory. Thus, making CWD read-only will cause this test 6350# to fail, enabling locking or at least warning the user not to do parallel 6351# builds. 6352chmod -w . 6353save_CFLAGS="$CFLAGS" 6354CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 6355compiler_c_o=no 6356if { (eval echo configure:6356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 6357 # The compiler can only warn and ignore the option if not recognized 6358 # So say no if there are warnings 6359 if test -s out/conftest.err; then 6360 lt_cv_compiler_c_o=no 6361 else 6362 lt_cv_compiler_c_o=yes 6363 fi 6364else 6365 # Append any errors to the config.log. 6366 cat out/conftest.err 1>&5 6367 lt_cv_compiler_c_o=no 6368fi 6369CFLAGS="$save_CFLAGS" 6370chmod u+w . 6371$rm conftest* out/* 6372rmdir out 6373cd .. 6374rmdir conftest 6375$rm -r conftest 2>/dev/null 6376 6377fi 6378 6379compiler_c_o=$lt_cv_compiler_c_o 6380echo "$as_me:$LINENO: result: $compiler_c_o" >&5 6381echo "${ECHO_T}$compiler_c_o" >&6 6382 6383if test x"$compiler_c_o" = x"yes"; then 6384 # Check to see if we can write to a .lo 6385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 6386echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 6387 if test "${lt_cv_compiler_o_lo+set}" = set; then 6388 echo $ECHO_N "(cached) $ECHO_C" >&6 6389else 6390 6391 lt_cv_compiler_o_lo=no 6392 save_CFLAGS="$CFLAGS" 6393 CFLAGS="$CFLAGS -c -o conftest.lo" 6394 save_objext="$ac_objext" 6395 ac_objext=lo 6396 cat >conftest.$ac_ext <<_ACEOF 6397/* confdefs.h. */ 6398_ACEOF 6399cat confdefs.h >>conftest.$ac_ext 6400cat >>conftest.$ac_ext <<_ACEOF 6401/* end confdefs.h. */ 6402 6403int 6404main () 6405{ 6406int some_variable = 0; 6407 ; 6408 return 0; 6409} 6410_ACEOF 6411rm -f conftest.$ac_objext 6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6413 (eval $ac_compile) 2>conftest.er1 6414 ac_status=$? 6415 grep -v '^ *+' conftest.er1 >conftest.err 6416 rm -f conftest.er1 6417 cat conftest.err >&5 6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6419 (exit $ac_status); } && 6420 { ac_try='test -z "$ac_c_werror_flag" 6421 || test ! -s conftest.err' 6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6423 (eval $ac_try) 2>&5 6424 ac_status=$? 6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6426 (exit $ac_status); }; } && 6427 { ac_try='test -s conftest.$ac_objext' 6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6429 (eval $ac_try) 2>&5 6430 ac_status=$? 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); }; }; then 6433 # The compiler can only warn and ignore the option if not recognized 6434 # So say no if there are warnings 6435 if test -s conftest.err; then 6436 lt_cv_compiler_o_lo=no 6437 else 6438 lt_cv_compiler_o_lo=yes 6439 fi 6440 6441else 6442 echo "$as_me: failed program was:" >&5 6443sed 's/^/| /' conftest.$ac_ext >&5 6444 6445fi 6446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6447 ac_objext="$save_objext" 6448 CFLAGS="$save_CFLAGS" 6449 6450fi 6451 6452 compiler_o_lo=$lt_cv_compiler_o_lo 6453 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 6454echo "${ECHO_T}$compiler_o_lo" >&6 6455else 6456 compiler_o_lo=no 6457fi 6458## 6459## END FIXME 6460 6461## FIXME: this should be a separate macro 6462## 6463# Check to see if we can do hard links to lock some files if needed 6464hard_links="nottested" 6465if test "$compiler_c_o" = no && test "$need_locks" != no; then 6466 # do not overwrite the value of need_locks provided by the user 6467 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6468echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6469 hard_links=yes 6470 $rm conftest* 6471 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6472 touch conftest.a 6473 ln conftest.a conftest.b 2>&5 || hard_links=no 6474 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6475 echo "$as_me:$LINENO: result: $hard_links" >&5 6476echo "${ECHO_T}$hard_links" >&6 6477 if test "$hard_links" = no; then 6478 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6479echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6480 need_locks=warn 6481 fi 6482else 6483 need_locks=no 6484fi 6485## 6486## END FIXME 6487 6488## FIXME: this should be a separate macro 6489## 6490if test "$GCC" = yes; then 6491 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 6492 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6493echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6494 echo "int some_variable = 0;" > conftest.$ac_ext 6495 save_CFLAGS="$CFLAGS" 6496 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 6497 compiler_rtti_exceptions=no 6498 cat >conftest.$ac_ext <<_ACEOF 6499/* confdefs.h. */ 6500_ACEOF 6501cat confdefs.h >>conftest.$ac_ext 6502cat >>conftest.$ac_ext <<_ACEOF 6503/* end confdefs.h. */ 6504 6505int 6506main () 6507{ 6508int some_variable = 0; 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513rm -f conftest.$ac_objext 6514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6515 (eval $ac_compile) 2>conftest.er1 6516 ac_status=$? 6517 grep -v '^ *+' conftest.er1 >conftest.err 6518 rm -f conftest.er1 6519 cat conftest.err >&5 6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 (exit $ac_status); } && 6522 { ac_try='test -z "$ac_c_werror_flag" 6523 || test ! -s conftest.err' 6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6525 (eval $ac_try) 2>&5 6526 ac_status=$? 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); }; } && 6529 { ac_try='test -s conftest.$ac_objext' 6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6531 (eval $ac_try) 2>&5 6532 ac_status=$? 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); }; }; then 6535 # The compiler can only warn and ignore the option if not recognized 6536 # So say no if there are warnings 6537 if test -s conftest.err; then 6538 compiler_rtti_exceptions=no 6539 else 6540 compiler_rtti_exceptions=yes 6541 fi 6542 6543else 6544 echo "$as_me: failed program was:" >&5 6545sed 's/^/| /' conftest.$ac_ext >&5 6546 6547fi 6548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6549 CFLAGS="$save_CFLAGS" 6550 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 6551echo "${ECHO_T}$compiler_rtti_exceptions" >&6 6552 6553 if test "$compiler_rtti_exceptions" = "yes"; then 6554 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 6555 else 6556 no_builtin_flag=' -fno-builtin' 6557 fi 6558fi 6559## 6560## END FIXME 6561 6562## FIXME: this should be a separate macro 6563## 6564# See if the linker supports building shared libraries. 6565echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 6566echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 6567 6568allow_undefined_flag= 6569no_undefined_flag= 6570need_lib_prefix=unknown 6571need_version=unknown 6572# when you set need_version to no, make sure it does not cause -set_version 6573# flags to be left without arguments 6574archive_cmds= 6575archive_expsym_cmds= 6576old_archive_from_new_cmds= 6577old_archive_from_expsyms_cmds= 6578export_dynamic_flag_spec= 6579whole_archive_flag_spec= 6580thread_safe_flag_spec= 6581hardcode_into_libs=no 6582hardcode_libdir_flag_spec= 6583hardcode_libdir_separator= 6584hardcode_direct=no 6585hardcode_minus_L=no 6586hardcode_shlibpath_var=unsupported 6587runpath_var= 6588link_all_deplibs=unknown 6589always_export_symbols=no 6590export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 6591# include_expsyms should be a list of space-separated symbols to be *always* 6592# included in the symbol list 6593include_expsyms= 6594# exclude_expsyms can be an egrep regular expression of symbols to exclude 6595# it will be wrapped by ` (' and `)$', so one must not match beginning or 6596# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6597# as well as any symbol that contains `d'. 6598exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6599# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6600# platforms (ab)use it in PIC code, but their linkers get confused if 6601# the symbol is explicitly referenced. Since portable code cannot 6602# rely on this symbol name, it's probably fine to never include it in 6603# preloaded symbol tables. 6604extract_expsyms_cmds= 6605 6606case $host_os in 6607cygwin* | mingw* | pw32*) 6608 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6609 # When not using gcc, we currently assume that we are using 6610 # Microsoft Visual C++. 6611 if test "$GCC" != yes; then 6612 with_gnu_ld=no 6613 fi 6614 ;; 6615openbsd*) 6616 with_gnu_ld=no 6617 ;; 6618esac 6619 6620ld_shlibs=yes 6621if test "$with_gnu_ld" = yes; then 6622 # If archive_cmds runs LD, not CC, wlarc should be empty 6623 wlarc='${wl}' 6624 6625 # See if GNU ld supports shared libraries. 6626 case $host_os in 6627 aix3* | aix4* | aix5*) 6628 # On AIX, the GNU linker is very broken 6629 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 6630 ld_shlibs=no 6631 cat <<EOF 1>&2 6632 6633*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6634*** to be unable to reliably create shared libraries on AIX. 6635*** Therefore, libtool is disabling shared libraries support. If you 6636*** really care for shared libraries, you may want to modify your PATH 6637*** so that a non-GNU linker is found, and then restart. 6638 6639EOF 6640 ;; 6641 6642 amigaos*) 6643 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)' 6644 hardcode_libdir_flag_spec='-L$libdir' 6645 hardcode_minus_L=yes 6646 6647 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6648 # that the semantics of dynamic libraries on AmigaOS, at least up 6649 # to version 4, is to share data among multiple programs linked 6650 # with the same dynamic library. Since this doesn't match the 6651 # behavior of shared libraries on other platforms, we can use 6652 # them. 6653 ld_shlibs=no 6654 ;; 6655 6656 beos*) 6657 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6658 allow_undefined_flag=unsupported 6659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6660 # support --undefined. This deserves some investigation. FIXME 6661 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6662 else 6663 ld_shlibs=no 6664 fi 6665 ;; 6666 6667 cygwin* | mingw* | pw32*) 6668 # hardcode_libdir_flag_spec is actually meaningless, as there is 6669 # no search path for DLLs. 6670 hardcode_libdir_flag_spec='-L$libdir' 6671 allow_undefined_flag=unsupported 6672 always_export_symbols=yes 6673 6674 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 6675 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 6676 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 6677 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 6678 else $CC -o impgen impgen.c ; fi)~ 6679 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 6680 6681 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 6682 6683 # cygwin and mingw dlls have different entry points and sets of symbols 6684 # to exclude. 6685 # FIXME: what about values for MSVC? 6686 dll_entry=__cygwin_dll_entry@12 6687 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 6688 case $host_os in 6689 mingw*) 6690 # mingw values 6691 dll_entry=_DllMainCRTStartup@12 6692 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 6693 ;; 6694 esac 6695 6696 # mingw and cygwin differ, and it's simplest to just exclude the union 6697 # of the two symbol sets. 6698 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 6699 6700 # recent cygwin and mingw systems supply a stub DllMain which the user 6701 # can override, but on older systems we have to supply one (in ltdll.c) 6702 if test "x$lt_cv_need_dllmain" = "xyes"; then 6703 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 6704 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ 6705 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 6706 else 6707 ltdll_obj= 6708 ltdll_cmds= 6709 fi 6710 6711 # Extract the symbol export list from an `--export-all' def file, 6712 # then regenerate the def file from the symbol export list, so that 6713 # the compiled dll only exports the symbol export list. 6714 # Be careful not to strip the DATA tag left be newer dlltools. 6715 export_symbols_cmds="$ltdll_cmds"' 6716 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 6717 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 6718 6719 # If the export-symbols file already is a .def file (1st line 6720 # is EXPORTS), use it as is. 6721 # If DATA tags from a recent dlltool are present, honour them! 6722 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 6723 cp $export_symbols $output_objdir/$soname-def; 6724 else 6725 echo EXPORTS > $output_objdir/$soname-def; 6726 _lt_hint=1; 6727 cat $export_symbols | while read symbol; do 6728 set dummy \$symbol; 6729 case \$# in 6730 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 6731 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 6732 esac; 6733 _lt_hint=`expr 1 + \$_lt_hint`; 6734 done; 6735 fi~ 6736 '"$ltdll_cmds"' 6737 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6738 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 6739 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6740 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 6741 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 6742 ;; 6743 6744 netbsd*) 6745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6747 wlarc= 6748 else 6749 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6750 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6751 fi 6752 ;; 6753 6754 solaris* | sysv5*) 6755 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 6756 ld_shlibs=no 6757 cat <<EOF 1>&2 6758 6759*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6760*** create shared libraries on Solaris systems. Therefore, libtool 6761*** is disabling shared libraries support. We urge you to upgrade GNU 6762*** binutils to release 2.9.1 or newer. Another option is to modify 6763*** your PATH or compiler configuration so that the native linker is 6764*** used, and then restart. 6765 6766EOF 6767 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6770 else 6771 ld_shlibs=no 6772 fi 6773 ;; 6774 6775 sunos4*) 6776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6777 wlarc= 6778 hardcode_direct=yes 6779 hardcode_shlibpath_var=no 6780 ;; 6781 6782 *) 6783 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6786 else 6787 ld_shlibs=no 6788 fi 6789 ;; 6790 esac 6791 6792 if test "$ld_shlibs" = yes; then 6793 runpath_var=LD_RUN_PATH 6794 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6795 export_dynamic_flag_spec='${wl}--export-dynamic' 6796 case $host_os in 6797 cygwin* | mingw* | pw32*) 6798 # dlltool doesn't understand --whole-archive et. al. 6799 whole_archive_flag_spec= 6800 ;; 6801 *) 6802 # ancient GNU ld didn't support --whole-archive et. al. 6803 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 6804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6805 else 6806 whole_archive_flag_spec= 6807 fi 6808 ;; 6809 esac 6810 fi 6811else 6812 # PORTME fill in a description of your system's linker (not GNU ld) 6813 case $host_os in 6814 aix3*) 6815 allow_undefined_flag=unsupported 6816 always_export_symbols=yes 6817 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' 6818 # Note: this linker hardcodes the directories in LIBPATH if there 6819 # are no directories specified by -L. 6820 hardcode_minus_L=yes 6821 if test "$GCC" = yes && test -z "$link_static_flag"; then 6822 # Neither direct hardcoding nor static linking is supported with a 6823 # broken collect2. 6824 hardcode_direct=unsupported 6825 fi 6826 ;; 6827 6828 aix4* | aix5*) 6829 if test "$host_cpu" = ia64; then 6830 # On IA64, the linker does run time linking by default, so we don't 6831 # have to do anything special. 6832 aix_use_runtimelinking=no 6833 exp_sym_flag='-Bexport' 6834 no_entry_flag="" 6835 else 6836 aix_use_runtimelinking=no 6837 6838 # Test if we are trying to use run time linking or normal 6839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6840 # need to do runtime linking. 6841 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6842 for ld_flag in $LDFLAGS; do 6843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6844 aix_use_runtimelinking=yes 6845 break 6846 fi 6847 done 6848 esac 6849 6850 exp_sym_flag='-bexport' 6851 no_entry_flag='-bnoentry' 6852 fi 6853 6854 # When large executables or shared objects are built, AIX ld can 6855 # have problems creating the table of contents. If linking a library 6856 # or program results in "error TOC overflow" add -mminimal-toc to 6857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6859 6860 hardcode_direct=yes 6861 archive_cmds='' 6862 hardcode_libdir_separator=':' 6863 if test "$GCC" = yes; then 6864 case $host_os in aix4.[012]|aix4.[012].*) 6865 collect2name=`${CC} -print-prog-name=collect2` 6866 if test -f "$collect2name" && \ 6867 strings "$collect2name" | grep resolve_lib_name >/dev/null 6868 then 6869 # We have reworked collect2 6870 hardcode_direct=yes 6871 else 6872 # We have old collect2 6873 hardcode_direct=unsupported 6874 # It fails to find uninstalled libraries when the uninstalled 6875 # path is not listed in the libpath. Setting hardcode_minus_L 6876 # to unsupported forces relinking 6877 hardcode_minus_L=yes 6878 hardcode_libdir_flag_spec='-L$libdir' 6879 hardcode_libdir_separator= 6880 fi 6881 esac 6882 6883 shared_flag='-shared' 6884 else 6885 # not using gcc 6886 if test "$host_cpu" = ia64; then 6887 shared_flag='${wl}-G' 6888 else 6889 if test "$aix_use_runtimelinking" = yes; then 6890 shared_flag='${wl}-G' 6891 else 6892 shared_flag='${wl}-bM:SRE' 6893 fi 6894 fi 6895 fi 6896 6897 # It seems that -bexpall can do strange things, so it is better to 6898 # generate a list of symbols to export. 6899 always_export_symbols=yes 6900 if test "$aix_use_runtimelinking" = yes; then 6901 # Warning - without using the other runtime loading flags (-brtl), 6902 # -berok will link without error, but may produce a broken library. 6903 allow_undefined_flag='-berok' 6904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 6905 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6906 else 6907 if test "$host_cpu" = ia64; then 6908 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6909 allow_undefined_flag="-z nodefs" 6910 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6911 else 6912 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 6913 # Warning - without using the other run time loading flags, 6914 # -berok will link without error, but may produce a broken library. 6915 allow_undefined_flag='${wl}-berok' 6916 # This is a bit strange, but is similar to how AIX traditionally builds 6917 # it's shared libraries. 6918 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 6919 fi 6920 fi 6921 ;; 6922 6923 amigaos*) 6924 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)' 6925 hardcode_libdir_flag_spec='-L$libdir' 6926 hardcode_minus_L=yes 6927 # see comment about different semantics on the GNU ld section 6928 ld_shlibs=no 6929 ;; 6930 6931 cygwin* | mingw* | pw32*) 6932 # When not using gcc, we currently assume that we are using 6933 # Microsoft Visual C++. 6934 # hardcode_libdir_flag_spec is actually meaningless, as there is 6935 # no search path for DLLs. 6936 hardcode_libdir_flag_spec=' ' 6937 allow_undefined_flag=unsupported 6938 # Tell ltmain to make .lib files, not .a files. 6939 libext=lib 6940 # FIXME: Setting linknames here is a bad hack. 6941 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6942 # The linker will automatically build a .lib file if we build a DLL. 6943 old_archive_from_new_cmds='true' 6944 # FIXME: Should let the user specify the lib program. 6945 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6946 fix_srcfile_path='`cygpath -w "$srcfile"`' 6947 ;; 6948 6949 darwin* | rhapsody*) 6950 case "$host_os" in 6951 rhapsody* | darwin1.[012]) 6952 allow_undefined_flag='-undefined suppress' 6953 ;; 6954 *) # Darwin 1.3 on 6955 allow_undefined_flag='-flat_namespace -undefined suppress' 6956 ;; 6957 esac 6958 # FIXME: Relying on posixy $() will cause problems for 6959 # cross-compilation, but unfortunately the echo tests do not 6960 # yet detect zsh echo's removal of \ escapes. 6961 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 6962 # We need to add '_' to the symbols in $export_symbols first 6963 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 6964 hardcode_direct=yes 6965 hardcode_shlibpath_var=no 6966 whole_archive_flag_spec='-all_load $convenience' 6967 ;; 6968 6969 freebsd1*) 6970 ld_shlibs=no 6971 ;; 6972 6973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6974 # support. Future versions do this automatically, but an explicit c++rt0.o 6975 # does not break anything, and helps significantly (at the cost of a little 6976 # extra space). 6977 freebsd2.2*) 6978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6979 hardcode_libdir_flag_spec='-R$libdir' 6980 hardcode_direct=yes 6981 hardcode_shlibpath_var=no 6982 ;; 6983 6984 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6985 freebsd2*) 6986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6987 hardcode_direct=yes 6988 hardcode_minus_L=yes 6989 hardcode_shlibpath_var=no 6990 ;; 6991 6992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6993 freebsd*) 6994 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6995 hardcode_libdir_flag_spec='-R$libdir' 6996 hardcode_direct=yes 6997 hardcode_shlibpath_var=no 6998 ;; 6999 7000 hpux9* | hpux10* | hpux11*) 7001 case $host_os in 7002 hpux9*) 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' ;; 7003 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 7004 esac 7005 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7006 hardcode_libdir_separator=: 7007 hardcode_direct=yes 7008 hardcode_minus_L=yes # Not in the search PATH, but as the default 7009 # location of the library. 7010 export_dynamic_flag_spec='${wl}-E' 7011 ;; 7012 7013 irix5* | irix6*) 7014 if test "$GCC" = yes; then 7015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7016 else 7017 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7018 fi 7019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7020 hardcode_libdir_separator=: 7021 link_all_deplibs=yes 7022 ;; 7023 7024 netbsd*) 7025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7027 else 7028 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7029 fi 7030 hardcode_libdir_flag_spec='-R$libdir' 7031 hardcode_direct=yes 7032 hardcode_shlibpath_var=no 7033 ;; 7034 7035 newsos6) 7036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7037 hardcode_direct=yes 7038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7039 hardcode_libdir_separator=: 7040 hardcode_shlibpath_var=no 7041 ;; 7042 7043 openbsd*) 7044 hardcode_direct=yes 7045 hardcode_shlibpath_var=no 7046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 7048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7049 export_dynamic_flag_spec='${wl}-E' 7050 else 7051 case "$host_os" in 7052 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7054 hardcode_libdir_flag_spec='-R$libdir' 7055 ;; 7056 *) 7057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 7058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7059 ;; 7060 esac 7061 fi 7062 ;; 7063 7064 os2*) 7065 hardcode_libdir_flag_spec='-L$libdir' 7066 hardcode_minus_L=yes 7067 allow_undefined_flag=unsupported 7068 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' 7069 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7070 ;; 7071 7072 osf3*) 7073 if test "$GCC" = yes; then 7074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7075 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7076 else 7077 allow_undefined_flag=' -expect_unresolved \*' 7078 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7079 fi 7080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7081 hardcode_libdir_separator=: 7082 ;; 7083 7084 osf4* | osf5*) # as osf3* with the addition of -msym flag 7085 if test "$GCC" = yes; then 7086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7087 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7089 else 7090 allow_undefined_flag=' -expect_unresolved \*' 7091 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7092 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7093 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7094 7095 #Both c and cxx compiler support -rpath directly 7096 hardcode_libdir_flag_spec='-rpath $libdir' 7097 fi 7098 hardcode_libdir_separator=: 7099 ;; 7100 7101 sco3.2v5*) 7102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7103 hardcode_shlibpath_var=no 7104 runpath_var=LD_RUN_PATH 7105 hardcode_runpath_var=yes 7106 export_dynamic_flag_spec='${wl}-Bexport' 7107 ;; 7108 7109 solaris*) 7110 no_undefined_flag=' -z defs' 7111 # $CC -shared without GNU ld will not create a library from C++ 7112 # object files and a static libstdc++, better avoid it by now 7113 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7116 hardcode_libdir_flag_spec='-R$libdir' 7117 hardcode_shlibpath_var=no 7118 case $host_os in 7119 solaris2.[0-5] | solaris2.[0-5].*) ;; 7120 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7121 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7122 esac 7123 link_all_deplibs=yes 7124 ;; 7125 7126 sunos4*) 7127 if test "x$host_vendor" = xsequent; then 7128 # Use $CC to link under sequent, because it throws in some extra .o 7129 # files that make .init and .fini sections work. 7130 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7131 else 7132 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7133 fi 7134 hardcode_libdir_flag_spec='-L$libdir' 7135 hardcode_direct=yes 7136 hardcode_minus_L=yes 7137 hardcode_shlibpath_var=no 7138 ;; 7139 7140 sysv4) 7141 if test "x$host_vendor" = xsno; then 7142 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 7143 hardcode_direct=yes # is this really true??? 7144 else 7145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7147 fi 7148 runpath_var='LD_RUN_PATH' 7149 hardcode_shlibpath_var=no 7150 ;; 7151 7152 sysv4.3*) 7153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7154 hardcode_shlibpath_var=no 7155 export_dynamic_flag_spec='-Bexport' 7156 ;; 7157 7158 sysv5*) 7159 no_undefined_flag=' -z text' 7160 # $CC -shared without GNU ld will not create a library from C++ 7161 # object files and a static libstdc++, better avoid it by now 7162 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7163 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7164 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7165 hardcode_libdir_flag_spec= 7166 hardcode_shlibpath_var=no 7167 runpath_var='LD_RUN_PATH' 7168 ;; 7169 7170 uts4*) 7171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7172 hardcode_libdir_flag_spec='-L$libdir' 7173 hardcode_shlibpath_var=no 7174 ;; 7175 7176 dgux*) 7177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7178 hardcode_libdir_flag_spec='-L$libdir' 7179 hardcode_shlibpath_var=no 7180 ;; 7181 7182 sysv4*MP*) 7183 if test -d /usr/nec; then 7184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7185 hardcode_shlibpath_var=no 7186 runpath_var=LD_RUN_PATH 7187 hardcode_runpath_var=yes 7188 ld_shlibs=yes 7189 fi 7190 ;; 7191 7192 sysv4.2uw2*) 7193 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7194 hardcode_direct=yes 7195 hardcode_minus_L=no 7196 hardcode_shlibpath_var=no 7197 hardcode_runpath_var=yes 7198 runpath_var=LD_RUN_PATH 7199 ;; 7200 7201 sysv5uw7* | unixware7*) 7202 no_undefined_flag='${wl}-z ${wl}text' 7203 if test "$GCC" = yes; then 7204 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7205 else 7206 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7207 fi 7208 runpath_var='LD_RUN_PATH' 7209 hardcode_shlibpath_var=no 7210 ;; 7211 7212 *) 7213 ld_shlibs=no 7214 ;; 7215 esac 7216fi 7217echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7218echo "${ECHO_T}$ld_shlibs" >&6 7219test "$ld_shlibs" = no && can_build_shared=no 7220## 7221## END FIXME 7222 7223## FIXME: this should be a separate macro 7224## 7225# Check hardcoding attributes. 7226echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7227echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7228hardcode_action= 7229if test -n "$hardcode_libdir_flag_spec" || \ 7230 test -n "$runpath_var"; then 7231 7232 # We can hardcode non-existant directories. 7233 if test "$hardcode_direct" != no && 7234 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7235 # have to relink, otherwise we might link with an installed library 7236 # when we should be linking with a yet-to-be-installed one 7237 ## test "$hardcode_shlibpath_var" != no && 7238 test "$hardcode_minus_L" != no; then 7239 # Linking always hardcodes the temporary library directory. 7240 hardcode_action=relink 7241 else 7242 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7243 hardcode_action=immediate 7244 fi 7245else 7246 # We cannot hardcode anything, or else we can only hardcode existing 7247 # directories. 7248 hardcode_action=unsupported 7249fi 7250echo "$as_me:$LINENO: result: $hardcode_action" >&5 7251echo "${ECHO_T}$hardcode_action" >&6 7252## 7253## END FIXME 7254 7255## FIXME: this should be a separate macro 7256## 7257striplib= 7258old_striplib= 7259echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7260echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7261if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7263 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7264 echo "$as_me:$LINENO: result: yes" >&5 7265echo "${ECHO_T}yes" >&6 7266else 7267 echo "$as_me:$LINENO: result: no" >&5 7268echo "${ECHO_T}no" >&6 7269fi 7270## 7271## END FIXME 7272 7273reload_cmds='$LD$reload_flag -o $output$reload_objs' 7274test -z "$deplibs_check_method" && deplibs_check_method=unknown 7275 7276## FIXME: this should be a separate macro 7277## 7278# PORTME Fill in your ld.so characteristics 7279echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7280echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7281library_names_spec= 7282libname_spec='lib$name' 7283soname_spec= 7284postinstall_cmds= 7285postuninstall_cmds= 7286finish_cmds= 7287finish_eval= 7288shlibpath_var= 7289shlibpath_overrides_runpath=unknown 7290version_type=none 7291dynamic_linker="$host_os ld.so" 7292sys_lib_dlsearch_path_spec="/lib /usr/lib" 7293sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 7294 7295case $host_os in 7296aix3*) 7297 version_type=linux 7298 library_names_spec='${libname}${release}.so$versuffix $libname.a' 7299 shlibpath_var=LIBPATH 7300 7301 # AIX has no versioning support, so we append a major version to the name. 7302 soname_spec='${libname}${release}.so$major' 7303 ;; 7304 7305aix4* | aix5*) 7306 version_type=linux 7307 if test "$host_cpu" = ia64; then 7308 # AIX 5 supports IA64 7309 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 7310 shlibpath_var=LD_LIBRARY_PATH 7311 else 7312 # With GCC up to 2.95.x, collect2 would create an import file 7313 # for dependence libraries. The import file would start with 7314 # the line `#! .'. This would cause the generated library to 7315 # depend on `.', always an invalid library. This was fixed in 7316 # development snapshots of GCC prior to 3.0. 7317 case $host_os in 7318 aix4 | aix4.[01] | aix4.[01].*) 7319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7320 echo ' yes ' 7321 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7322 : 7323 else 7324 can_build_shared=no 7325 fi 7326 ;; 7327 esac 7328 # AIX (on Power*) has no versioning support, so currently we can 7329 # not hardcode correct soname into executable. Probably we can 7330 # add versioning support to collect2, so additional links can 7331 # be useful in future. 7332 if test "$aix_use_runtimelinking" = yes; then 7333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7334 # instead of lib<name>.a to let people know that these are not 7335 # typical AIX shared libraries. 7336 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7337 else 7338 # We preserve .a as extension for shared libraries through AIX4.2 7339 # and later when we are not doing run time linking. 7340 library_names_spec='${libname}${release}.a $libname.a' 7341 soname_spec='${libname}${release}.so$major' 7342 fi 7343 shlibpath_var=LIBPATH 7344 fi 7345 ;; 7346 7347amigaos*) 7348 library_names_spec='$libname.ixlibrary $libname.a' 7349 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7350 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 7351 ;; 7352 7353beos*) 7354 library_names_spec='${libname}.so' 7355 dynamic_linker="$host_os ld.so" 7356 shlibpath_var=LIBRARY_PATH 7357 ;; 7358 7359bsdi4*) 7360 version_type=linux 7361 need_version=no 7362 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7363 soname_spec='${libname}${release}.so$major' 7364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7365 shlibpath_var=LD_LIBRARY_PATH 7366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7368 export_dynamic_flag_spec=-rdynamic 7369 # the default ld.so.conf also contains /usr/contrib/lib and 7370 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7371 # libtool to hard-code these into programs 7372 ;; 7373 7374cygwin* | mingw* | pw32*) 7375 version_type=windows 7376 need_version=no 7377 need_lib_prefix=no 7378 case $GCC,$host_os in 7379 yes,cygwin*) 7380 library_names_spec='$libname.dll.a' 7381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 7382 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 7383 dldir=$destdir/`dirname \$dlpath`~ 7384 test -d \$dldir || mkdir -p \$dldir~ 7385 $install_prog .libs/$dlname \$dldir/$dlname' 7386 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7387 dlpath=$dir/\$dldll~ 7388 $rm \$dlpath' 7389 ;; 7390 yes,mingw*) 7391 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 7392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 7393 ;; 7394 yes,pw32*) 7395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 7396 ;; 7397 *) 7398 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 7399 ;; 7400 esac 7401 dynamic_linker='Win32 ld.exe' 7402 # FIXME: first we should search . and the directory the executable is in 7403 shlibpath_var=PATH 7404 ;; 7405 7406darwin* | rhapsody*) 7407 dynamic_linker="$host_os dyld" 7408 version_type=darwin 7409 need_lib_prefix=no 7410 need_version=no 7411 # FIXME: Relying on posixy $() will cause problems for 7412 # cross-compilation, but unfortunately the echo tests do not 7413 # yet detect zsh echo's removal of \ escapes. 7414 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 7415 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 7416 shlibpath_overrides_runpath=yes 7417 shlibpath_var=DYLD_LIBRARY_PATH 7418 ;; 7419 7420freebsd1*) 7421 dynamic_linker=no 7422 ;; 7423 7424freebsd*) 7425 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7426 version_type=freebsd-$objformat 7427 case $version_type in 7428 freebsd-elf*) 7429 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 7430 need_version=no 7431 need_lib_prefix=no 7432 ;; 7433 freebsd-*) 7434 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 7435 need_version=yes 7436 ;; 7437 esac 7438 shlibpath_var=LD_LIBRARY_PATH 7439 case $host_os in 7440 freebsd2*) 7441 shlibpath_overrides_runpath=yes 7442 ;; 7443 *) 7444 shlibpath_overrides_runpath=no 7445 hardcode_into_libs=yes 7446 ;; 7447 esac 7448 ;; 7449 7450gnu*) 7451 version_type=linux 7452 need_lib_prefix=no 7453 need_version=no 7454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 7455 soname_spec='${libname}${release}.so$major' 7456 shlibpath_var=LD_LIBRARY_PATH 7457 hardcode_into_libs=yes 7458 ;; 7459 7460hpux9* | hpux10* | hpux11*) 7461 # Give a soname corresponding to the major version so that dld.sl refuses to 7462 # link against other versions. 7463 dynamic_linker="$host_os dld.sl" 7464 version_type=sunos 7465 need_lib_prefix=no 7466 need_version=no 7467 shlibpath_var=SHLIB_PATH 7468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7469 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 7470 soname_spec='${libname}${release}.sl$major' 7471 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7472 postinstall_cmds='chmod 555 $lib' 7473 ;; 7474 7475irix5* | irix6*) 7476 version_type=irix 7477 need_lib_prefix=no 7478 need_version=no 7479 soname_spec='${libname}${release}.so$major' 7480 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 7481 case $host_os in 7482 irix5*) 7483 libsuff= shlibsuff= 7484 ;; 7485 *) 7486 case $LD in # libtool.m4 will add one of these switches to LD 7487 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 7488 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 7489 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 7490 *) libsuff= shlibsuff= libmagic=never-match;; 7491 esac 7492 ;; 7493 esac 7494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7495 shlibpath_overrides_runpath=no 7496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7498 ;; 7499 7500# No shared lib support for Linux oldld, aout, or coff. 7501linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 7502 dynamic_linker=no 7503 ;; 7504 7505# This must be Linux ELF. 7506linux-gnu*) 7507 version_type=linux 7508 need_lib_prefix=no 7509 need_version=no 7510 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7511 soname_spec='${libname}${release}.so$major' 7512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7513 shlibpath_var=LD_LIBRARY_PATH 7514 shlibpath_overrides_runpath=no 7515 # This implies no fast_install, which is unacceptable. 7516 # Some rework will be needed to allow for fast_install 7517 # before this can be enabled. 7518 hardcode_into_libs=yes 7519 7520 # We used to test for /lib/ld.so.1 and disable shared libraries on 7521 # powerpc, because MkLinux only supported shared libraries with the 7522 # GNU dynamic linker. Since this was broken with cross compilers, 7523 # most powerpc-linux boxes support dynamic linking these days and 7524 # people can always --disable-shared, the test was removed, and we 7525 # assume the GNU/Linux dynamic linker is in use. 7526 dynamic_linker='GNU/Linux ld.so' 7527 ;; 7528 7529netbsd*) 7530 version_type=sunos 7531 need_lib_prefix=no 7532 need_version=no 7533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7534 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7536 dynamic_linker='NetBSD (a.out) ld.so' 7537 else 7538 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 7539 soname_spec='${libname}${release}.so$major' 7540 dynamic_linker='NetBSD ld.elf_so' 7541 fi 7542 shlibpath_var=LD_LIBRARY_PATH 7543 shlibpath_overrides_runpath=yes 7544 hardcode_into_libs=yes 7545 ;; 7546 7547newsos6) 7548 version_type=linux 7549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7550 shlibpath_var=LD_LIBRARY_PATH 7551 shlibpath_overrides_runpath=yes 7552 ;; 7553 7554openbsd*) 7555 version_type=sunos 7556 need_lib_prefix=no 7557 need_version=no 7558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7559 case "$host_os" in 7560 openbsd2.[89] | openbsd2.[89].*) 7561 shlibpath_overrides_runpath=no 7562 ;; 7563 *) 7564 shlibpath_overrides_runpath=yes 7565 ;; 7566 esac 7567 else 7568 shlibpath_overrides_runpath=yes 7569 fi 7570 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7572 shlibpath_var=LD_LIBRARY_PATH 7573 ;; 7574 7575os2*) 7576 libname_spec='$name' 7577 need_lib_prefix=no 7578 library_names_spec='$libname.dll $libname.a' 7579 dynamic_linker='OS/2 ld.exe' 7580 shlibpath_var=LIBPATH 7581 ;; 7582 7583osf3* | osf4* | osf5*) 7584 version_type=osf 7585 need_version=no 7586 soname_spec='${libname}${release}.so' 7587 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 7588 shlibpath_var=LD_LIBRARY_PATH 7589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7591 ;; 7592 7593sco3.2v5*) 7594 version_type=osf 7595 soname_spec='${libname}${release}.so$major' 7596 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7597 shlibpath_var=LD_LIBRARY_PATH 7598 ;; 7599 7600solaris*) 7601 version_type=linux 7602 need_lib_prefix=no 7603 need_version=no 7604 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7605 soname_spec='${libname}${release}.so$major' 7606 shlibpath_var=LD_LIBRARY_PATH 7607 shlibpath_overrides_runpath=yes 7608 hardcode_into_libs=yes 7609 # ldd complains unless libraries are executable 7610 postinstall_cmds='chmod +x $lib' 7611 ;; 7612 7613sunos4*) 7614 version_type=sunos 7615 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7617 shlibpath_var=LD_LIBRARY_PATH 7618 shlibpath_overrides_runpath=yes 7619 if test "$with_gnu_ld" = yes; then 7620 need_lib_prefix=no 7621 fi 7622 need_version=yes 7623 ;; 7624 7625sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7626 version_type=linux 7627 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7628 soname_spec='${libname}${release}.so$major' 7629 shlibpath_var=LD_LIBRARY_PATH 7630 case $host_vendor in 7631 sni) 7632 shlibpath_overrides_runpath=no 7633 ;; 7634 motorola) 7635 need_lib_prefix=no 7636 need_version=no 7637 shlibpath_overrides_runpath=no 7638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7639 ;; 7640 esac 7641 ;; 7642 7643uts4*) 7644 version_type=linux 7645 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7646 soname_spec='${libname}${release}.so$major' 7647 shlibpath_var=LD_LIBRARY_PATH 7648 ;; 7649 7650dgux*) 7651 version_type=linux 7652 need_lib_prefix=no 7653 need_version=no 7654 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7655 soname_spec='${libname}${release}.so$major' 7656 shlibpath_var=LD_LIBRARY_PATH 7657 ;; 7658 7659sysv4*MP*) 7660 if test -d /usr/nec ;then 7661 version_type=linux 7662 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 7663 soname_spec='$libname.so.$major' 7664 shlibpath_var=LD_LIBRARY_PATH 7665 fi 7666 ;; 7667 7668*) 7669 dynamic_linker=no 7670 ;; 7671esac 7672echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7673echo "${ECHO_T}$dynamic_linker" >&6 7674test "$dynamic_linker" = no && can_build_shared=no 7675## 7676## END FIXME 7677 7678## FIXME: this should be a separate macro 7679## 7680# Report the final consequences. 7681echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 7682echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 7683echo "$as_me:$LINENO: result: $can_build_shared" >&5 7684echo "${ECHO_T}$can_build_shared" >&6 7685## 7686## END FIXME 7687 7688## FIXME: this should be a separate macro 7689## 7690echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 7691echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 7692test "$can_build_shared" = "no" && enable_shared=no 7693 7694# On AIX, shared libraries and static libraries use the same namespace, and 7695# are all built from PIC. 7696case "$host_os" in 7697aix3*) 7698 test "$enable_shared" = yes && enable_static=no 7699 if test -n "$RANLIB"; then 7700 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7701 postinstall_cmds='$RANLIB $lib' 7702 fi 7703 ;; 7704 7705aix4*) 7706 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7707 test "$enable_shared" = yes && enable_static=no 7708 fi 7709 ;; 7710esac 7711echo "$as_me:$LINENO: result: $enable_shared" >&5 7712echo "${ECHO_T}$enable_shared" >&6 7713## 7714## END FIXME 7715 7716## FIXME: this should be a separate macro 7717## 7718echo "$as_me:$LINENO: checking whether to build static libraries" >&5 7719echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 7720# Make sure either enable_shared or enable_static is yes. 7721test "$enable_shared" = yes || enable_static=yes 7722echo "$as_me:$LINENO: result: $enable_static" >&5 7723echo "${ECHO_T}$enable_static" >&6 7724## 7725## END FIXME 7726 7727if test "$hardcode_action" = relink; then 7728 # Fast installation is not supported 7729 enable_fast_install=no 7730elif test "$shlibpath_overrides_runpath" = yes || 7731 test "$enable_shared" = no; then 7732 # Fast installation is not necessary 7733 enable_fast_install=needless 7734fi 7735 7736variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7737if test "$GCC" = yes; then 7738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7739fi 7740 7741if test "x$enable_dlopen" != xyes; then 7742 enable_dlopen=unknown 7743 enable_dlopen_self=unknown 7744 enable_dlopen_self_static=unknown 7745else 7746 lt_cv_dlopen=no 7747 lt_cv_dlopen_libs= 7748 7749 case $host_os in 7750 beos*) 7751 lt_cv_dlopen="load_add_on" 7752 lt_cv_dlopen_libs= 7753 lt_cv_dlopen_self=yes 7754 ;; 7755 7756 cygwin* | mingw* | pw32*) 7757 lt_cv_dlopen="LoadLibrary" 7758 lt_cv_dlopen_libs= 7759 ;; 7760 7761 *) 7762 echo "$as_me:$LINENO: checking for shl_load" >&5 7763echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7764if test "${ac_cv_func_shl_load+set}" = set; then 7765 echo $ECHO_N "(cached) $ECHO_C" >&6 7766else 7767 cat >conftest.$ac_ext <<_ACEOF 7768/* confdefs.h. */ 7769_ACEOF 7770cat confdefs.h >>conftest.$ac_ext 7771cat >>conftest.$ac_ext <<_ACEOF 7772/* end confdefs.h. */ 7773/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 7774 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7775#define shl_load innocuous_shl_load 7776 7777/* System header to define __stub macros and hopefully few prototypes, 7778 which can conflict with char shl_load (); below. 7779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7780 <limits.h> exists even on freestanding compilers. */ 7781 7782#ifdef __STDC__ 7783# include <limits.h> 7784#else 7785# include <assert.h> 7786#endif 7787 7788#undef shl_load 7789 7790/* Override any gcc2 internal prototype to avoid an error. */ 7791#ifdef __cplusplus 7792extern "C" 7793{ 7794#endif 7795/* We use char because int might match the return type of a gcc2 7796 builtin and then its argument prototype would still apply. */ 7797char shl_load (); 7798/* The GNU C library defines this for functions which it implements 7799 to always fail with ENOSYS. Some functions are actually named 7800 something starting with __ and the normal name is an alias. */ 7801#if defined (__stub_shl_load) || defined (__stub___shl_load) 7802choke me 7803#else 7804char (*f) () = shl_load; 7805#endif 7806#ifdef __cplusplus 7807} 7808#endif 7809 7810int 7811main () 7812{ 7813return f != shl_load; 7814 ; 7815 return 0; 7816} 7817_ACEOF 7818rm -f conftest.$ac_objext conftest$ac_exeext 7819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7820 (eval $ac_link) 2>conftest.er1 7821 ac_status=$? 7822 grep -v '^ *+' conftest.er1 >conftest.err 7823 rm -f conftest.er1 7824 cat conftest.err >&5 7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7826 (exit $ac_status); } && 7827 { ac_try='test -z "$ac_c_werror_flag" 7828 || test ! -s conftest.err' 7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7830 (eval $ac_try) 2>&5 7831 ac_status=$? 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7833 (exit $ac_status); }; } && 7834 { ac_try='test -s conftest$ac_exeext' 7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7836 (eval $ac_try) 2>&5 7837 ac_status=$? 7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7839 (exit $ac_status); }; }; then 7840 ac_cv_func_shl_load=yes 7841else 7842 echo "$as_me: failed program was:" >&5 7843sed 's/^/| /' conftest.$ac_ext >&5 7844 7845ac_cv_func_shl_load=no 7846fi 7847rm -f conftest.err conftest.$ac_objext \ 7848 conftest$ac_exeext conftest.$ac_ext 7849fi 7850echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7851echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7852if test $ac_cv_func_shl_load = yes; then 7853 lt_cv_dlopen="shl_load" 7854else 7855 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7856echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7857if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7858 echo $ECHO_N "(cached) $ECHO_C" >&6 7859else 7860 ac_check_lib_save_LIBS=$LIBS 7861LIBS="-ldld $LIBS" 7862cat >conftest.$ac_ext <<_ACEOF 7863/* confdefs.h. */ 7864_ACEOF 7865cat confdefs.h >>conftest.$ac_ext 7866cat >>conftest.$ac_ext <<_ACEOF 7867/* end confdefs.h. */ 7868 7869/* Override any gcc2 internal prototype to avoid an error. */ 7870#ifdef __cplusplus 7871extern "C" 7872#endif 7873/* We use char because int might match the return type of a gcc2 7874 builtin and then its argument prototype would still apply. */ 7875char shl_load (); 7876int 7877main () 7878{ 7879shl_load (); 7880 ; 7881 return 0; 7882} 7883_ACEOF 7884rm -f conftest.$ac_objext conftest$ac_exeext 7885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7886 (eval $ac_link) 2>conftest.er1 7887 ac_status=$? 7888 grep -v '^ *+' conftest.er1 >conftest.err 7889 rm -f conftest.er1 7890 cat conftest.err >&5 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7892 (exit $ac_status); } && 7893 { ac_try='test -z "$ac_c_werror_flag" 7894 || test ! -s conftest.err' 7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7896 (eval $ac_try) 2>&5 7897 ac_status=$? 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 (exit $ac_status); }; } && 7900 { ac_try='test -s conftest$ac_exeext' 7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7902 (eval $ac_try) 2>&5 7903 ac_status=$? 7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7905 (exit $ac_status); }; }; then 7906 ac_cv_lib_dld_shl_load=yes 7907else 7908 echo "$as_me: failed program was:" >&5 7909sed 's/^/| /' conftest.$ac_ext >&5 7910 7911ac_cv_lib_dld_shl_load=no 7912fi 7913rm -f conftest.err conftest.$ac_objext \ 7914 conftest$ac_exeext conftest.$ac_ext 7915LIBS=$ac_check_lib_save_LIBS 7916fi 7917echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7918echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7919if test $ac_cv_lib_dld_shl_load = yes; then 7920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7921else 7922 echo "$as_me:$LINENO: checking for dlopen" >&5 7923echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7924if test "${ac_cv_func_dlopen+set}" = set; then 7925 echo $ECHO_N "(cached) $ECHO_C" >&6 7926else 7927 cat >conftest.$ac_ext <<_ACEOF 7928/* confdefs.h. */ 7929_ACEOF 7930cat confdefs.h >>conftest.$ac_ext 7931cat >>conftest.$ac_ext <<_ACEOF 7932/* end confdefs.h. */ 7933/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 7934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7935#define dlopen innocuous_dlopen 7936 7937/* System header to define __stub macros and hopefully few prototypes, 7938 which can conflict with char dlopen (); below. 7939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7940 <limits.h> exists even on freestanding compilers. */ 7941 7942#ifdef __STDC__ 7943# include <limits.h> 7944#else 7945# include <assert.h> 7946#endif 7947 7948#undef dlopen 7949 7950/* Override any gcc2 internal prototype to avoid an error. */ 7951#ifdef __cplusplus 7952extern "C" 7953{ 7954#endif 7955/* We use char because int might match the return type of a gcc2 7956 builtin and then its argument prototype would still apply. */ 7957char dlopen (); 7958/* The GNU C library defines this for functions which it implements 7959 to always fail with ENOSYS. Some functions are actually named 7960 something starting with __ and the normal name is an alias. */ 7961#if defined (__stub_dlopen) || defined (__stub___dlopen) 7962choke me 7963#else 7964char (*f) () = dlopen; 7965#endif 7966#ifdef __cplusplus 7967} 7968#endif 7969 7970int 7971main () 7972{ 7973return f != dlopen; 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978rm -f conftest.$ac_objext conftest$ac_exeext 7979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7980 (eval $ac_link) 2>conftest.er1 7981 ac_status=$? 7982 grep -v '^ *+' conftest.er1 >conftest.err 7983 rm -f conftest.er1 7984 cat conftest.err >&5 7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7986 (exit $ac_status); } && 7987 { ac_try='test -z "$ac_c_werror_flag" 7988 || test ! -s conftest.err' 7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7990 (eval $ac_try) 2>&5 7991 ac_status=$? 7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7993 (exit $ac_status); }; } && 7994 { ac_try='test -s conftest$ac_exeext' 7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7996 (eval $ac_try) 2>&5 7997 ac_status=$? 7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 (exit $ac_status); }; }; then 8000 ac_cv_func_dlopen=yes 8001else 8002 echo "$as_me: failed program was:" >&5 8003sed 's/^/| /' conftest.$ac_ext >&5 8004 8005ac_cv_func_dlopen=no 8006fi 8007rm -f conftest.err conftest.$ac_objext \ 8008 conftest$ac_exeext conftest.$ac_ext 8009fi 8010echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8011echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8012if test $ac_cv_func_dlopen = yes; then 8013 lt_cv_dlopen="dlopen" 8014else 8015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8016echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8017if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8018 echo $ECHO_N "(cached) $ECHO_C" >&6 8019else 8020 ac_check_lib_save_LIBS=$LIBS 8021LIBS="-ldl $LIBS" 8022cat >conftest.$ac_ext <<_ACEOF 8023/* confdefs.h. */ 8024_ACEOF 8025cat confdefs.h >>conftest.$ac_ext 8026cat >>conftest.$ac_ext <<_ACEOF 8027/* end confdefs.h. */ 8028 8029/* Override any gcc2 internal prototype to avoid an error. */ 8030#ifdef __cplusplus 8031extern "C" 8032#endif 8033/* We use char because int might match the return type of a gcc2 8034 builtin and then its argument prototype would still apply. */ 8035char dlopen (); 8036int 8037main () 8038{ 8039dlopen (); 8040 ; 8041 return 0; 8042} 8043_ACEOF 8044rm -f conftest.$ac_objext conftest$ac_exeext 8045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8046 (eval $ac_link) 2>conftest.er1 8047 ac_status=$? 8048 grep -v '^ *+' conftest.er1 >conftest.err 8049 rm -f conftest.er1 8050 cat conftest.err >&5 8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8052 (exit $ac_status); } && 8053 { ac_try='test -z "$ac_c_werror_flag" 8054 || test ! -s conftest.err' 8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8056 (eval $ac_try) 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; } && 8060 { ac_try='test -s conftest$ac_exeext' 8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8062 (eval $ac_try) 2>&5 8063 ac_status=$? 8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8065 (exit $ac_status); }; }; then 8066 ac_cv_lib_dl_dlopen=yes 8067else 8068 echo "$as_me: failed program was:" >&5 8069sed 's/^/| /' conftest.$ac_ext >&5 8070 8071ac_cv_lib_dl_dlopen=no 8072fi 8073rm -f conftest.err conftest.$ac_objext \ 8074 conftest$ac_exeext conftest.$ac_ext 8075LIBS=$ac_check_lib_save_LIBS 8076fi 8077echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8079if test $ac_cv_lib_dl_dlopen = yes; then 8080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8081else 8082 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8083echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8084if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8085 echo $ECHO_N "(cached) $ECHO_C" >&6 8086else 8087 ac_check_lib_save_LIBS=$LIBS 8088LIBS="-lsvld $LIBS" 8089cat >conftest.$ac_ext <<_ACEOF 8090/* confdefs.h. */ 8091_ACEOF 8092cat confdefs.h >>conftest.$ac_ext 8093cat >>conftest.$ac_ext <<_ACEOF 8094/* end confdefs.h. */ 8095 8096/* Override any gcc2 internal prototype to avoid an error. */ 8097#ifdef __cplusplus 8098extern "C" 8099#endif 8100/* We use char because int might match the return type of a gcc2 8101 builtin and then its argument prototype would still apply. */ 8102char dlopen (); 8103int 8104main () 8105{ 8106dlopen (); 8107 ; 8108 return 0; 8109} 8110_ACEOF 8111rm -f conftest.$ac_objext conftest$ac_exeext 8112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8113 (eval $ac_link) 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && 8120 { ac_try='test -z "$ac_c_werror_flag" 8121 || test ! -s conftest.err' 8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8123 (eval $ac_try) 2>&5 8124 ac_status=$? 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); }; } && 8127 { ac_try='test -s conftest$ac_exeext' 8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8129 (eval $ac_try) 2>&5 8130 ac_status=$? 8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8132 (exit $ac_status); }; }; then 8133 ac_cv_lib_svld_dlopen=yes 8134else 8135 echo "$as_me: failed program was:" >&5 8136sed 's/^/| /' conftest.$ac_ext >&5 8137 8138ac_cv_lib_svld_dlopen=no 8139fi 8140rm -f conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142LIBS=$ac_check_lib_save_LIBS 8143fi 8144echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8145echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8146if test $ac_cv_lib_svld_dlopen = yes; then 8147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8148else 8149 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8150echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8151if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8152 echo $ECHO_N "(cached) $ECHO_C" >&6 8153else 8154 ac_check_lib_save_LIBS=$LIBS 8155LIBS="-ldld $LIBS" 8156cat >conftest.$ac_ext <<_ACEOF 8157/* confdefs.h. */ 8158_ACEOF 8159cat confdefs.h >>conftest.$ac_ext 8160cat >>conftest.$ac_ext <<_ACEOF 8161/* end confdefs.h. */ 8162 8163/* Override any gcc2 internal prototype to avoid an error. */ 8164#ifdef __cplusplus 8165extern "C" 8166#endif 8167/* We use char because int might match the return type of a gcc2 8168 builtin and then its argument prototype would still apply. */ 8169char dld_link (); 8170int 8171main () 8172{ 8173dld_link (); 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178rm -f conftest.$ac_objext conftest$ac_exeext 8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8180 (eval $ac_link) 2>conftest.er1 8181 ac_status=$? 8182 grep -v '^ *+' conftest.er1 >conftest.err 8183 rm -f conftest.er1 8184 cat conftest.err >&5 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); } && 8187 { ac_try='test -z "$ac_c_werror_flag" 8188 || test ! -s conftest.err' 8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8190 (eval $ac_try) 2>&5 8191 ac_status=$? 8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8193 (exit $ac_status); }; } && 8194 { ac_try='test -s conftest$ac_exeext' 8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8196 (eval $ac_try) 2>&5 8197 ac_status=$? 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8199 (exit $ac_status); }; }; then 8200 ac_cv_lib_dld_dld_link=yes 8201else 8202 echo "$as_me: failed program was:" >&5 8203sed 's/^/| /' conftest.$ac_ext >&5 8204 8205ac_cv_lib_dld_dld_link=no 8206fi 8207rm -f conftest.err conftest.$ac_objext \ 8208 conftest$ac_exeext conftest.$ac_ext 8209LIBS=$ac_check_lib_save_LIBS 8210fi 8211echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8212echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8213if test $ac_cv_lib_dld_dld_link = yes; then 8214 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8215fi 8216 8217 8218fi 8219 8220 8221fi 8222 8223 8224fi 8225 8226 8227fi 8228 8229 8230fi 8231 8232 ;; 8233 esac 8234 8235 if test "x$lt_cv_dlopen" != xno; then 8236 enable_dlopen=yes 8237 else 8238 enable_dlopen=no 8239 fi 8240 8241 case $lt_cv_dlopen in 8242 dlopen) 8243 save_CPPFLAGS="$CPPFLAGS" 8244 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8245 8246 save_LDFLAGS="$LDFLAGS" 8247 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8248 8249 save_LIBS="$LIBS" 8250 LIBS="$lt_cv_dlopen_libs $LIBS" 8251 8252 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8253echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8254if test "${lt_cv_dlopen_self+set}" = set; then 8255 echo $ECHO_N "(cached) $ECHO_C" >&6 8256else 8257 if test "$cross_compiling" = yes; then : 8258 lt_cv_dlopen_self=cross 8259else 8260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8261 lt_status=$lt_dlunknown 8262 cat > conftest.$ac_ext <<EOF 8263#line 8263 "configure" 8264#include "confdefs.h" 8265 8266#if HAVE_DLFCN_H 8267#include <dlfcn.h> 8268#endif 8269 8270#include <stdio.h> 8271 8272#ifdef RTLD_GLOBAL 8273# define LT_DLGLOBAL RTLD_GLOBAL 8274#else 8275# ifdef DL_GLOBAL 8276# define LT_DLGLOBAL DL_GLOBAL 8277# else 8278# define LT_DLGLOBAL 0 8279# endif 8280#endif 8281 8282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8283 find out it does not work in some platform. */ 8284#ifndef LT_DLLAZY_OR_NOW 8285# ifdef RTLD_LAZY 8286# define LT_DLLAZY_OR_NOW RTLD_LAZY 8287# else 8288# ifdef DL_LAZY 8289# define LT_DLLAZY_OR_NOW DL_LAZY 8290# else 8291# ifdef RTLD_NOW 8292# define LT_DLLAZY_OR_NOW RTLD_NOW 8293# else 8294# ifdef DL_NOW 8295# define LT_DLLAZY_OR_NOW DL_NOW 8296# else 8297# define LT_DLLAZY_OR_NOW 0 8298# endif 8299# endif 8300# endif 8301# endif 8302#endif 8303 8304#ifdef __cplusplus 8305extern "C" void exit (int); 8306#endif 8307 8308void fnord() { int i=42;} 8309int main () 8310{ 8311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8312 int status = $lt_dlunknown; 8313 8314 if (self) 8315 { 8316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8318 /* dlclose (self); */ 8319 } 8320 8321 exit (status); 8322} 8323EOF 8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8325 (eval $ac_link) 2>&5 8326 ac_status=$? 8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8328 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8329 (./conftest; exit; ) 2>/dev/null 8330 lt_status=$? 8331 case x$lt_status in 8332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8334 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8335 esac 8336 else : 8337 # compilation failed 8338 lt_cv_dlopen_self=no 8339 fi 8340fi 8341rm -fr conftest* 8342 8343 8344fi 8345echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8346echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8347 8348 if test "x$lt_cv_dlopen_self" = xyes; then 8349 LDFLAGS="$LDFLAGS $link_static_flag" 8350 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8351echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8352if test "${lt_cv_dlopen_self_static+set}" = set; then 8353 echo $ECHO_N "(cached) $ECHO_C" >&6 8354else 8355 if test "$cross_compiling" = yes; then : 8356 lt_cv_dlopen_self_static=cross 8357else 8358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8359 lt_status=$lt_dlunknown 8360 cat > conftest.$ac_ext <<EOF 8361#line 8361 "configure" 8362#include "confdefs.h" 8363 8364#if HAVE_DLFCN_H 8365#include <dlfcn.h> 8366#endif 8367 8368#include <stdio.h> 8369 8370#ifdef RTLD_GLOBAL 8371# define LT_DLGLOBAL RTLD_GLOBAL 8372#else 8373# ifdef DL_GLOBAL 8374# define LT_DLGLOBAL DL_GLOBAL 8375# else 8376# define LT_DLGLOBAL 0 8377# endif 8378#endif 8379 8380/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8381 find out it does not work in some platform. */ 8382#ifndef LT_DLLAZY_OR_NOW 8383# ifdef RTLD_LAZY 8384# define LT_DLLAZY_OR_NOW RTLD_LAZY 8385# else 8386# ifdef DL_LAZY 8387# define LT_DLLAZY_OR_NOW DL_LAZY 8388# else 8389# ifdef RTLD_NOW 8390# define LT_DLLAZY_OR_NOW RTLD_NOW 8391# else 8392# ifdef DL_NOW 8393# define LT_DLLAZY_OR_NOW DL_NOW 8394# else 8395# define LT_DLLAZY_OR_NOW 0 8396# endif 8397# endif 8398# endif 8399# endif 8400#endif 8401 8402#ifdef __cplusplus 8403extern "C" void exit (int); 8404#endif 8405 8406void fnord() { int i=42;} 8407int main () 8408{ 8409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8410 int status = $lt_dlunknown; 8411 8412 if (self) 8413 { 8414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8416 /* dlclose (self); */ 8417 } 8418 8419 exit (status); 8420} 8421EOF 8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8423 (eval $ac_link) 2>&5 8424 ac_status=$? 8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8427 (./conftest; exit; ) 2>/dev/null 8428 lt_status=$? 8429 case x$lt_status in 8430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8432 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8433 esac 8434 else : 8435 # compilation failed 8436 lt_cv_dlopen_self_static=no 8437 fi 8438fi 8439rm -fr conftest* 8440 8441 8442fi 8443echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8444echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8445 fi 8446 8447 CPPFLAGS="$save_CPPFLAGS" 8448 LDFLAGS="$save_LDFLAGS" 8449 LIBS="$save_LIBS" 8450 ;; 8451 esac 8452 8453 case $lt_cv_dlopen_self in 8454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8455 *) enable_dlopen_self=unknown ;; 8456 esac 8457 8458 case $lt_cv_dlopen_self_static in 8459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8460 *) enable_dlopen_self_static=unknown ;; 8461 esac 8462fi 8463 8464 8465## FIXME: this should be a separate macro 8466## 8467if test "$enable_shared" = yes && test "$GCC" = yes; then 8468 case $archive_cmds in 8469 *'~'*) 8470 # FIXME: we may have to deal with multi-command sequences. 8471 ;; 8472 '$CC '*) 8473 # Test whether the compiler implicitly links with -lc since on some 8474 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8475 # to ld, don't add -lc before -lgcc. 8476 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8477echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8478 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 8479 echo $ECHO_N "(cached) $ECHO_C" >&6 8480else 8481 $rm conftest* 8482 echo 'static int dummy;' > conftest.$ac_ext 8483 8484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8485 (eval $ac_compile) 2>&5 8486 ac_status=$? 8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8488 (exit $ac_status); }; then 8489 soname=conftest 8490 lib=conftest 8491 libobjs=conftest.$ac_objext 8492 deplibs= 8493 wl=$lt_cv_prog_cc_wl 8494 compiler_flags=-v 8495 linker_flags=-v 8496 verstring= 8497 output_objdir=. 8498 libname=conftest 8499 save_allow_undefined_flag=$allow_undefined_flag 8500 allow_undefined_flag= 8501 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8502 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8503 ac_status=$? 8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8505 (exit $ac_status); } 8506 then 8507 lt_cv_archive_cmds_need_lc=no 8508 else 8509 lt_cv_archive_cmds_need_lc=yes 8510 fi 8511 allow_undefined_flag=$save_allow_undefined_flag 8512 else 8513 cat conftest.err 1>&5 8514 fi 8515fi 8516 8517 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 8518echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 8519 ;; 8520 esac 8521fi 8522need_lc=${lt_cv_archive_cmds_need_lc-yes} 8523## 8524## END FIXME 8525 8526## FIXME: this should be a separate macro 8527## 8528# The second clause should only fire when bootstrapping the 8529# libtool distribution, otherwise you forgot to ship ltmain.sh 8530# with your package, and you will get complaints that there are 8531# no rules to generate ltmain.sh. 8532if test -f "$ltmain"; then 8533 : 8534else 8535 # If there is no Makefile yet, we rely on a make rule to execute 8536 # `config.status --recheck' to rerun these tests and create the 8537 # libtool script then. 8538 test -f Makefile && make "$ltmain" 8539fi 8540 8541if test -f "$ltmain"; then 8542 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 8543 $rm -f "${ofile}T" 8544 8545 echo creating $ofile 8546 8547 # Now quote all the things that may contain metacharacters while being 8548 # careful not to overquote the AC_SUBSTed values. We take copies of the 8549 # variables and quote the copies for generation of the libtool script. 8550 for var in echo old_CC old_CFLAGS \ 8551 AR AR_FLAGS CC LD LN_S NM SHELL \ 8552 reload_flag reload_cmds wl \ 8553 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 8554 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 8555 library_names_spec soname_spec \ 8556 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 8557 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 8558 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 8559 old_striplib striplib file_magic_cmd export_symbols_cmds \ 8560 deplibs_check_method allow_undefined_flag no_undefined_flag \ 8561 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 8562 global_symbol_to_c_name_address \ 8563 hardcode_libdir_flag_spec hardcode_libdir_separator \ 8564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8565 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 8566 8567 case $var in 8568 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 8569 old_postinstall_cmds | old_postuninstall_cmds | \ 8570 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 8571 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 8572 postinstall_cmds | postuninstall_cmds | \ 8573 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8574 # Double-quote double-evaled strings. 8575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8576 ;; 8577 *) 8578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8579 ;; 8580 esac 8581 done 8582 8583 cat <<__EOF__ > "${ofile}T" 8584#! $SHELL 8585 8586# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8587# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8588# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8589# 8590# Copyright (C) 1996-2000 Free Software Foundation, Inc. 8591# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8592# 8593# This program is free software; you can redistribute it and/or modify 8594# it under the terms of the GNU General Public License as published by 8595# the Free Software Foundation; either version 2 of the License, or 8596# (at your option) any later version. 8597# 8598# This program is distributed in the hope that it will be useful, but 8599# WITHOUT ANY WARRANTY; without even the implied warranty of 8600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8601# General Public License for more details. 8602# 8603# You should have received a copy of the GNU General Public License 8604# along with this program; if not, write to the Free Software 8605# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8606# 8607# As a special exception to the GNU General Public License, if you 8608# distribute this file as part of a program that contains a 8609# configuration script generated by Autoconf, you may include it under 8610# the same distribution terms that you use for the rest of that program. 8611 8612# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8613Xsed="sed -e s/^X//" 8614 8615# The HP-UX ksh and POSIX shell print the target directory to stdout 8616# if CDPATH is set. 8617if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8618 8619# ### BEGIN LIBTOOL CONFIG 8620 8621# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8622 8623# Shell to use when invoking shell scripts. 8624SHELL=$lt_SHELL 8625 8626# Whether or not to build shared libraries. 8627build_libtool_libs=$enable_shared 8628 8629# Whether or not to build static libraries. 8630build_old_libs=$enable_static 8631 8632# Whether or not to add -lc for building shared libraries. 8633build_libtool_need_lc=$need_lc 8634 8635# Whether or not to optimize for fast installation. 8636fast_install=$enable_fast_install 8637 8638# The host system. 8639host_alias=$host_alias 8640host=$host 8641 8642# An echo program that does not interpret backslashes. 8643echo=$lt_echo 8644 8645# The archiver. 8646AR=$lt_AR 8647AR_FLAGS=$lt_AR_FLAGS 8648 8649# The default C compiler. 8650CC=$lt_CC 8651 8652# Is the compiler the GNU C compiler? 8653with_gcc=$GCC 8654 8655# The linker used to build libraries. 8656LD=$lt_LD 8657 8658# Whether we need hard or soft links. 8659LN_S=$lt_LN_S 8660 8661# A BSD-compatible nm program. 8662NM=$lt_NM 8663 8664# A symbol stripping program 8665STRIP=$STRIP 8666 8667# Used to examine libraries when file_magic_cmd begins "file" 8668MAGIC_CMD=$MAGIC_CMD 8669 8670# Used on cygwin: DLL creation program. 8671DLLTOOL="$DLLTOOL" 8672 8673# Used on cygwin: object dumper. 8674OBJDUMP="$OBJDUMP" 8675 8676# Used on cygwin: assembler. 8677AS="$AS" 8678 8679# The name of the directory that contains temporary libtool files. 8680objdir=$objdir 8681 8682# How to create reloadable object files. 8683reload_flag=$lt_reload_flag 8684reload_cmds=$lt_reload_cmds 8685 8686# How to pass a linker flag through the compiler. 8687wl=$lt_wl 8688 8689# Object file suffix (normally "o"). 8690objext="$ac_objext" 8691 8692# Old archive suffix (normally "a"). 8693libext="$libext" 8694 8695# Executable file suffix (normally ""). 8696exeext="$exeext" 8697 8698# Additional compiler flags for building library objects. 8699pic_flag=$lt_pic_flag 8700pic_mode=$pic_mode 8701 8702# Does compiler simultaneously support -c and -o options? 8703compiler_c_o=$lt_compiler_c_o 8704 8705# Can we write directly to a .lo ? 8706compiler_o_lo=$lt_compiler_o_lo 8707 8708# Must we lock files when doing compilation ? 8709need_locks=$lt_need_locks 8710 8711# Do we need the lib prefix for modules? 8712need_lib_prefix=$need_lib_prefix 8713 8714# Do we need a version for libraries? 8715need_version=$need_version 8716 8717# Whether dlopen is supported. 8718dlopen_support=$enable_dlopen 8719 8720# Whether dlopen of programs is supported. 8721dlopen_self=$enable_dlopen_self 8722 8723# Whether dlopen of statically linked programs is supported. 8724dlopen_self_static=$enable_dlopen_self_static 8725 8726# Compiler flag to prevent dynamic linking. 8727link_static_flag=$lt_link_static_flag 8728 8729# Compiler flag to turn off builtin functions. 8730no_builtin_flag=$lt_no_builtin_flag 8731 8732# Compiler flag to allow reflexive dlopens. 8733export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8734 8735# Compiler flag to generate shared objects directly from archives. 8736whole_archive_flag_spec=$lt_whole_archive_flag_spec 8737 8738# Compiler flag to generate thread-safe objects. 8739thread_safe_flag_spec=$lt_thread_safe_flag_spec 8740 8741# Library versioning type. 8742version_type=$version_type 8743 8744# Format of library name prefix. 8745libname_spec=$lt_libname_spec 8746 8747# List of archive names. First name is the real one, the rest are links. 8748# The last name is the one that the linker finds with -lNAME. 8749library_names_spec=$lt_library_names_spec 8750 8751# The coded name of the library, if different from the real name. 8752soname_spec=$lt_soname_spec 8753 8754# Commands used to build and install an old-style archive. 8755RANLIB=$lt_RANLIB 8756old_archive_cmds=$lt_old_archive_cmds 8757old_postinstall_cmds=$lt_old_postinstall_cmds 8758old_postuninstall_cmds=$lt_old_postuninstall_cmds 8759 8760# Create an old-style archive from a shared archive. 8761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8762 8763# Create a temporary old-style archive to link instead of a shared archive. 8764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8765 8766# Commands used to build and install a shared archive. 8767archive_cmds=$lt_archive_cmds 8768archive_expsym_cmds=$lt_archive_expsym_cmds 8769postinstall_cmds=$lt_postinstall_cmds 8770postuninstall_cmds=$lt_postuninstall_cmds 8771 8772# Commands to strip libraries. 8773old_striplib=$lt_old_striplib 8774striplib=$lt_striplib 8775 8776# Method to check whether dependent libraries are shared objects. 8777deplibs_check_method=$lt_deplibs_check_method 8778 8779# Command to use when deplibs_check_method == file_magic. 8780file_magic_cmd=$lt_file_magic_cmd 8781 8782# Flag that allows shared libraries with undefined symbols to be built. 8783allow_undefined_flag=$lt_allow_undefined_flag 8784 8785# Flag that forces no undefined symbols. 8786no_undefined_flag=$lt_no_undefined_flag 8787 8788# Commands used to finish a libtool library installation in a directory. 8789finish_cmds=$lt_finish_cmds 8790 8791# Same as above, but a single script fragment to be evaled but not shown. 8792finish_eval=$lt_finish_eval 8793 8794# Take the output of nm and produce a listing of raw symbols and C names. 8795global_symbol_pipe=$lt_global_symbol_pipe 8796 8797# Transform the output of nm in a proper C declaration 8798global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 8799 8800# Transform the output of nm in a C name address pair 8801global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 8802 8803# This is the shared library runtime path variable. 8804runpath_var=$runpath_var 8805 8806# This is the shared library path variable. 8807shlibpath_var=$shlibpath_var 8808 8809# Is shlibpath searched before the hard-coded library search path? 8810shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8811 8812# How to hardcode a shared library path into an executable. 8813hardcode_action=$hardcode_action 8814 8815# Whether we should hardcode library paths into libraries. 8816hardcode_into_libs=$hardcode_into_libs 8817 8818# Flag to hardcode \$libdir into a binary during linking. 8819# This must work even if \$libdir does not exist. 8820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8821 8822# Whether we need a single -rpath flag with a separated argument. 8823hardcode_libdir_separator=$lt_hardcode_libdir_separator 8824 8825# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 8826# resulting binary. 8827hardcode_direct=$hardcode_direct 8828 8829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8830# resulting binary. 8831hardcode_minus_L=$hardcode_minus_L 8832 8833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8834# the resulting binary. 8835hardcode_shlibpath_var=$hardcode_shlibpath_var 8836 8837# Variables whose values should be saved in libtool wrapper scripts and 8838# restored at relink time. 8839variables_saved_for_relink="$variables_saved_for_relink" 8840 8841# Whether libtool must link a program against all its dependency libraries. 8842link_all_deplibs=$link_all_deplibs 8843 8844# Compile-time system search path for libraries 8845sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8846 8847# Run-time system search path for libraries 8848sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8849 8850# Fix the shell variable \$srcfile for the compiler. 8851fix_srcfile_path="$fix_srcfile_path" 8852 8853# Set to yes if exported symbols are required. 8854always_export_symbols=$always_export_symbols 8855 8856# The commands to list exported symbols. 8857export_symbols_cmds=$lt_export_symbols_cmds 8858 8859# The commands to extract the exported symbol list from a shared archive. 8860extract_expsyms_cmds=$lt_extract_expsyms_cmds 8861 8862# Symbols that should not be listed in the preloaded symbols. 8863exclude_expsyms=$lt_exclude_expsyms 8864 8865# Symbols that must always be exported. 8866include_expsyms=$lt_include_expsyms 8867 8868# ### END LIBTOOL CONFIG 8869 8870__EOF__ 8871 8872 case $host_os in 8873 aix3*) 8874 cat <<\EOF >> "${ofile}T" 8875 8876# AIX sometimes has problems with the GCC collect2 program. For some 8877# reason, if we set the COLLECT_NAMES environment variable, the problems 8878# vanish in a puff of smoke. 8879if test "X${COLLECT_NAMES+set}" != Xset; then 8880 COLLECT_NAMES= 8881 export COLLECT_NAMES 8882fi 8883EOF 8884 ;; 8885 esac 8886 8887 case $host_os in 8888 cygwin* | mingw* | pw32* | os2*) 8889 cat <<'EOF' >> "${ofile}T" 8890 # This is a source program that is used to create dlls on Windows 8891 # Don't remove nor modify the starting and closing comments 8892# /* ltdll.c starts here */ 8893# #define WIN32_LEAN_AND_MEAN 8894# #include <windows.h> 8895# #undef WIN32_LEAN_AND_MEAN 8896# #include <stdio.h> 8897# 8898# #ifndef __CYGWIN__ 8899# # ifdef __CYGWIN32__ 8900# # define __CYGWIN__ __CYGWIN32__ 8901# # endif 8902# #endif 8903# 8904# #ifdef __cplusplus 8905# extern "C" { 8906# #endif 8907# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 8908# #ifdef __cplusplus 8909# } 8910# #endif 8911# 8912# #ifdef __CYGWIN__ 8913# #include <cygwin/cygwin_dll.h> 8914# DECLARE_CYGWIN_DLL( DllMain ); 8915# #endif 8916# HINSTANCE __hDllInstance_base; 8917# 8918# BOOL APIENTRY 8919# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 8920# { 8921# __hDllInstance_base = hInst; 8922# return TRUE; 8923# } 8924# /* ltdll.c ends here */ 8925 # This is a source program that is used to create import libraries 8926 # on Windows for dlls which lack them. Don't remove nor modify the 8927 # starting and closing comments 8928# /* impgen.c starts here */ 8929# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 8930# 8931# This file is part of GNU libtool. 8932# 8933# This program is free software; you can redistribute it and/or modify 8934# it under the terms of the GNU General Public License as published by 8935# the Free Software Foundation; either version 2 of the License, or 8936# (at your option) any later version. 8937# 8938# This program is distributed in the hope that it will be useful, 8939# but WITHOUT ANY WARRANTY; without even the implied warranty of 8940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8941# GNU General Public License for more details. 8942# 8943# You should have received a copy of the GNU General Public License 8944# along with this program; if not, write to the Free Software 8945# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8946# */ 8947# 8948# #include <stdio.h> /* for printf() */ 8949# #include <unistd.h> /* for open(), lseek(), read() */ 8950# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 8951# #include <string.h> /* for strdup() */ 8952# 8953# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 8954# #ifndef O_BINARY 8955# #define O_BINARY 0 8956# #endif 8957# 8958# static unsigned int 8959# pe_get16 (fd, offset) 8960# int fd; 8961# int offset; 8962# { 8963# unsigned char b[2]; 8964# lseek (fd, offset, SEEK_SET); 8965# read (fd, b, 2); 8966# return b[0] + (b[1]<<8); 8967# } 8968# 8969# static unsigned int 8970# pe_get32 (fd, offset) 8971# int fd; 8972# int offset; 8973# { 8974# unsigned char b[4]; 8975# lseek (fd, offset, SEEK_SET); 8976# read (fd, b, 4); 8977# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8978# } 8979# 8980# static unsigned int 8981# pe_as32 (ptr) 8982# void *ptr; 8983# { 8984# unsigned char *b = ptr; 8985# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8986# } 8987# 8988# int 8989# main (argc, argv) 8990# int argc; 8991# char *argv[]; 8992# { 8993# int dll; 8994# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 8995# unsigned long export_rva, export_size, nsections, secptr, expptr; 8996# unsigned long name_rvas, nexp; 8997# unsigned char *expdata, *erva; 8998# char *filename, *dll_name; 8999# 9000# filename = argv[1]; 9001# 9002# dll = open(filename, O_RDONLY|O_BINARY); 9003# if (dll < 1) 9004# return 1; 9005# 9006# dll_name = filename; 9007# 9008# for (i=0; filename[i]; i++) 9009# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 9010# dll_name = filename + i +1; 9011# 9012# pe_header_offset = pe_get32 (dll, 0x3c); 9013# opthdr_ofs = pe_header_offset + 4 + 20; 9014# num_entries = pe_get32 (dll, opthdr_ofs + 92); 9015# 9016# if (num_entries < 1) /* no exports */ 9017# return 1; 9018# 9019# export_rva = pe_get32 (dll, opthdr_ofs + 96); 9020# export_size = pe_get32 (dll, opthdr_ofs + 100); 9021# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 9022# secptr = (pe_header_offset + 4 + 20 + 9023# pe_get16 (dll, pe_header_offset + 4 + 16)); 9024# 9025# expptr = 0; 9026# for (i = 0; i < nsections; i++) 9027# { 9028# char sname[8]; 9029# unsigned long secptr1 = secptr + 40 * i; 9030# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 9031# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 9032# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 9033# lseek(dll, secptr1, SEEK_SET); 9034# read(dll, sname, 8); 9035# if (vaddr <= export_rva && vaddr+vsize > export_rva) 9036# { 9037# expptr = fptr + (export_rva - vaddr); 9038# if (export_rva + export_size > vaddr + vsize) 9039# export_size = vsize - (export_rva - vaddr); 9040# break; 9041# } 9042# } 9043# 9044# expdata = (unsigned char*)malloc(export_size); 9045# lseek (dll, expptr, SEEK_SET); 9046# read (dll, expdata, export_size); 9047# erva = expdata - export_rva; 9048# 9049# nexp = pe_as32 (expdata+24); 9050# name_rvas = pe_as32 (expdata+32); 9051# 9052# printf ("EXPORTS\n"); 9053# for (i = 0; i<nexp; i++) 9054# { 9055# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 9056# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 9057# } 9058# 9059# return 0; 9060# } 9061# /* impgen.c ends here */ 9062 9063EOF 9064 ;; 9065 esac 9066 9067 # We use sed instead of cat because bash on DJGPP gets confused if 9068 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9069 # text mode, it properly converts lines to CR/LF. This bash problem 9070 # is reportedly fixed, but why not run on old versions too? 9071 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 9072 9073 mv -f "${ofile}T" "$ofile" || \ 9074 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 9075 chmod +x "$ofile" 9076fi 9077## 9078## END FIXME 9079 9080 9081 9082 9083 9084# This can be used to rebuild libtool when needed 9085LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 9086 9087# Always use our own libtool. 9088LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9089 9090# Prevent multiple expansion 9091 9092 9093 9094 9095GLIB_REQUIRED=1.2.6 9096GTK_REQUIRED=1.2.6 9097IMLIB_REQUIRED=1.9 9098GDK_PIXBUF_REQUIRED=0.8.0 9099LIBRSVG_REQUIRED=1.0.0 9100LIBWMF_REQUIRED=0.2.8 9101XINE_REQUIRED=1.0.0 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111# Gtk+-2.0 9112GLIB2_REQUIRED=2.0.0 9113GMODULE2_REQUIRED=2.0.0 9114GDK_PIXBUF2_REQUIRED=2.0.0 9115GTK2_REQUIRED=2.0.0 9116 9117 9118 9119 9120 9121 9122GTK2_TARGET=gtk+-2.0 9123 9124 9125 9126# Check whether --with-gtk2 or --without-gtk2 was given. 9127if test "${with_gtk2+set}" = set; then 9128 withval="$with_gtk2" 9129 enable_gtk2="${withval}" 9130else 9131 enable_gtk2=no 9132fi; 9133if test x"$enable_gtk2" != xno; then 9134 if test x"$enable_gtk2" != xyes; then 9135 GTK2_TARGET=$enable_gtk2 9136 fi 9137 9138 succeeded=no 9139 9140 if test -z "$PKG_CONFIG"; then 9141 # Extract the first word of "pkg-config", so it can be a program name with args. 9142set dummy pkg-config; ac_word=$2 9143echo "$as_me:$LINENO: checking for $ac_word" >&5 9144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9145if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9146 echo $ECHO_N "(cached) $ECHO_C" >&6 9147else 9148 case $PKG_CONFIG in 9149 [\\/]* | ?:[\\/]*) 9150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9151 ;; 9152 *) 9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9154for as_dir in $PATH 9155do 9156 IFS=$as_save_IFS 9157 test -z "$as_dir" && as_dir=. 9158 for ac_exec_ext in '' $ac_executable_extensions; do 9159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9162 break 2 9163 fi 9164done 9165done 9166 9167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9168 ;; 9169esac 9170fi 9171PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9172 9173if test -n "$PKG_CONFIG"; then 9174 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9175echo "${ECHO_T}$PKG_CONFIG" >&6 9176else 9177 echo "$as_me:$LINENO: result: no" >&5 9178echo "${ECHO_T}no" >&6 9179fi 9180 9181 fi 9182 9183 if test "$PKG_CONFIG" = "no" ; then 9184 echo "*** The pkg-config script could not be found. Make sure it is" 9185 echo "*** in your path, or set the PKG_CONFIG environment variable" 9186 echo "*** to the full path to pkg-config." 9187 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 9188 else 9189 PKG_CONFIG_MIN_VERSION=0.9.0 9190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9191 echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB2_REQUIRED 9192 gmodule-2.0 >= $GMODULE2_REQUIRED 9193 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9194 $GTK2_TARGET >= $GTK2_REQUIRED" >&5 9195echo $ECHO_N "checking for glib-2.0 >= $GLIB2_REQUIRED 9196 gmodule-2.0 >= $GMODULE2_REQUIRED 9197 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9198 $GTK2_TARGET >= $GTK2_REQUIRED... $ECHO_C" >&6 9199 9200 if $PKG_CONFIG --exists "glib-2.0 >= $GLIB2_REQUIRED 9201 gmodule-2.0 >= $GMODULE2_REQUIRED 9202 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9203 $GTK2_TARGET >= $GTK2_REQUIRED" ; then 9204 echo "$as_me:$LINENO: result: yes" >&5 9205echo "${ECHO_T}yes" >&6 9206 succeeded=yes 9207 9208 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 9209echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 9210 GTK_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED 9211 gmodule-2.0 >= $GMODULE2_REQUIRED 9212 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9213 $GTK2_TARGET >= $GTK2_REQUIRED"` 9214 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 9215echo "${ECHO_T}$GTK_CFLAGS" >&6 9216 9217 echo "$as_me:$LINENO: checking GTK_LIBS" >&5 9218echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 9219 GTK_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED 9220 gmodule-2.0 >= $GMODULE2_REQUIRED 9221 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9222 $GTK2_TARGET >= $GTK2_REQUIRED"` 9223 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 9224echo "${ECHO_T}$GTK_LIBS" >&6 9225 else 9226 GTK_CFLAGS="" 9227 GTK_LIBS="" 9228 ## If we have a custom action on failure, don't print errors, but 9229 ## do set a variable so people can do so. 9230 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB2_REQUIRED 9231 gmodule-2.0 >= $GMODULE2_REQUIRED 9232 gdk-pixbuf-2.0 >= $GDK_PIXBUF2_REQUIRED 9233 $GTK2_TARGET >= $GTK2_REQUIRED"` 9234 9235 fi 9236 9237 9238 9239 else 9240 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 9241 echo "*** See http://www.freedesktop.org/software/pkgconfig" 9242 fi 9243 fi 9244 9245 if test $succeeded = yes; then 9246 : 9247 else 9248 { { echo "$as_me:$LINENO: error: Test for GTK+-2.0 failed. See the file 'INSTALL' for help" >&5 9249echo "$as_me: error: Test for GTK+-2.0 failed. See the file 'INSTALL' for help" >&2;} 9250 { (exit 1); exit 1; }; } 9251 fi 9252 9253 9254 9255 9256cat >>confdefs.h <<\_ACEOF 9257#define USE_GTK2 1 9258_ACEOF 9259 9260 9261cat >>confdefs.h <<\_ACEOF 9262#define USE_NORMAL_PANED 1 9263_ACEOF 9264 9265 9266cat >>confdefs.h <<\_ACEOF 9267#define ENABLE_TREEVIEW 1 9268_ACEOF 9269 9270else 9271 9272# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 9273if test "${with_gtk_prefix+set}" = set; then 9274 withval="$with_gtk_prefix" 9275 gtk_config_prefix="$withval" 9276else 9277 gtk_config_prefix="" 9278fi; 9279 9280# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 9281if test "${with_gtk_exec_prefix+set}" = set; then 9282 withval="$with_gtk_exec_prefix" 9283 gtk_config_exec_prefix="$withval" 9284else 9285 gtk_config_exec_prefix="" 9286fi; 9287# Check whether --enable-gtktest or --disable-gtktest was given. 9288if test "${enable_gtktest+set}" = set; then 9289 enableval="$enable_gtktest" 9290 9291else 9292 enable_gtktest=yes 9293fi; 9294 9295 for module in . 9296 do 9297 case "$module" in 9298 gthread) 9299 gtk_config_args="$gtk_config_args gthread" 9300 ;; 9301 esac 9302 done 9303 9304 if test x$gtk_config_exec_prefix != x ; then 9305 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 9306 if test x${GTK_CONFIG+set} != xset ; then 9307 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 9308 fi 9309 fi 9310 if test x$gtk_config_prefix != x ; then 9311 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 9312 if test x${GTK_CONFIG+set} != xset ; then 9313 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 9314 fi 9315 fi 9316 9317 # Extract the first word of "gtk-config", so it can be a program name with args. 9318set dummy gtk-config; ac_word=$2 9319echo "$as_me:$LINENO: checking for $ac_word" >&5 9320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9321if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 9322 echo $ECHO_N "(cached) $ECHO_C" >&6 9323else 9324 case $GTK_CONFIG in 9325 [\\/]* | ?:[\\/]*) 9326 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 9327 ;; 9328 *) 9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9330for as_dir in $PATH 9331do 9332 IFS=$as_save_IFS 9333 test -z "$as_dir" && as_dir=. 9334 for ac_exec_ext in '' $ac_executable_extensions; do 9335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9336 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9338 break 2 9339 fi 9340done 9341done 9342 9343 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 9344 ;; 9345esac 9346fi 9347GTK_CONFIG=$ac_cv_path_GTK_CONFIG 9348 9349if test -n "$GTK_CONFIG"; then 9350 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 9351echo "${ECHO_T}$GTK_CONFIG" >&6 9352else 9353 echo "$as_me:$LINENO: result: no" >&5 9354echo "${ECHO_T}no" >&6 9355fi 9356 9357 min_gtk_version=$GTK_REQUIRED 9358 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 9359echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 9360 no_gtk="" 9361 if test "$GTK_CONFIG" = "no" ; then 9362 no_gtk=yes 9363 else 9364 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 9365 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 9366 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 9367 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 9368 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 9369 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 9370 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 9371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 9372 if test "x$enable_gtktest" = "xyes" ; then 9373 ac_save_CFLAGS="$CFLAGS" 9374 ac_save_LIBS="$LIBS" 9375 CFLAGS="$CFLAGS $GTK_CFLAGS" 9376 LIBS="$GTK_LIBS $LIBS" 9377 rm -f conf.gtktest 9378 if test "$cross_compiling" = yes; then 9379 echo $ac_n "cross compiling; assumed OK... $ac_c" 9380else 9381 cat >conftest.$ac_ext <<_ACEOF 9382/* confdefs.h. */ 9383_ACEOF 9384cat confdefs.h >>conftest.$ac_ext 9385cat >>conftest.$ac_ext <<_ACEOF 9386/* end confdefs.h. */ 9387 9388#include <gtk/gtk.h> 9389#include <stdio.h> 9390#include <stdlib.h> 9391 9392int 9393main () 9394{ 9395 int major, minor, micro; 9396 char *tmp_version; 9397 9398 system ("touch conf.gtktest"); 9399 9400 /* HP/UX 9 (%@#!) writes to sscanf strings */ 9401 tmp_version = g_strdup("$min_gtk_version"); 9402 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9403 printf("%s, bad version string\n", "$min_gtk_version"); 9404 exit(1); 9405 } 9406 9407 if ((gtk_major_version != $gtk_config_major_version) || 9408 (gtk_minor_version != $gtk_config_minor_version) || 9409 (gtk_micro_version != $gtk_config_micro_version)) 9410 { 9411 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 9412 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 9413 gtk_major_version, gtk_minor_version, gtk_micro_version); 9414 printf ("*** was found! If gtk-config was correct, then it is best\n"); 9415 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 9416 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 9417 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 9418 printf("*** required on your system.\n"); 9419 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 9420 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 9421 printf("*** before re-running configure\n"); 9422 } 9423#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 9424 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 9425 (gtk_minor_version != GTK_MINOR_VERSION) || 9426 (gtk_micro_version != GTK_MICRO_VERSION)) 9427 { 9428 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 9429 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 9430 printf("*** library (version %d.%d.%d)\n", 9431 gtk_major_version, gtk_minor_version, gtk_micro_version); 9432 } 9433#endif /* defined (GTK_MAJOR_VERSION) ... */ 9434 else 9435 { 9436 if ((gtk_major_version > major) || 9437 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9438 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 9439 { 9440 return 0; 9441 } 9442 else 9443 { 9444 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 9445 gtk_major_version, gtk_minor_version, gtk_micro_version); 9446 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 9447 major, minor, micro); 9448 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 9449 printf("***\n"); 9450 printf("*** If you have already installed a sufficiently new version, this error\n"); 9451 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 9452 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 9453 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 9454 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 9455 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 9456 printf("*** so that the correct libraries are found at run-time))\n"); 9457 } 9458 } 9459 return 1; 9460} 9461 9462_ACEOF 9463rm -f conftest$ac_exeext 9464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9465 (eval $ac_link) 2>&5 9466 ac_status=$? 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9470 (eval $ac_try) 2>&5 9471 ac_status=$? 9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9473 (exit $ac_status); }; }; then 9474 : 9475else 9476 echo "$as_me: program exited with status $ac_status" >&5 9477echo "$as_me: failed program was:" >&5 9478sed 's/^/| /' conftest.$ac_ext >&5 9479 9480( exit $ac_status ) 9481no_gtk=yes 9482fi 9483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9484fi 9485 CFLAGS="$ac_save_CFLAGS" 9486 LIBS="$ac_save_LIBS" 9487 fi 9488 fi 9489 if test "x$no_gtk" = x ; then 9490 echo "$as_me:$LINENO: result: yes" >&5 9491echo "${ECHO_T}yes" >&6 9492 : 9493 else 9494 echo "$as_me:$LINENO: result: no" >&5 9495echo "${ECHO_T}no" >&6 9496 if test "$GTK_CONFIG" = "no" ; then 9497 echo "*** The gtk-config script installed by GTK could not be found" 9498 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 9499 echo "*** your path, or set the GTK_CONFIG environment variable to the" 9500 echo "*** full path to gtk-config." 9501 else 9502 if test -f conf.gtktest ; then 9503 : 9504 else 9505 echo "*** Could not run GTK test program, checking why..." 9506 CFLAGS="$CFLAGS $GTK_CFLAGS" 9507 LIBS="$LIBS $GTK_LIBS" 9508 cat >conftest.$ac_ext <<_ACEOF 9509/* confdefs.h. */ 9510_ACEOF 9511cat confdefs.h >>conftest.$ac_ext 9512cat >>conftest.$ac_ext <<_ACEOF 9513/* end confdefs.h. */ 9514 9515#include <gtk/gtk.h> 9516#include <stdio.h> 9517 9518int 9519main () 9520{ 9521 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 9522 ; 9523 return 0; 9524} 9525_ACEOF 9526rm -f conftest.$ac_objext conftest$ac_exeext 9527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9528 (eval $ac_link) 2>conftest.er1 9529 ac_status=$? 9530 grep -v '^ *+' conftest.er1 >conftest.err 9531 rm -f conftest.er1 9532 cat conftest.err >&5 9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9534 (exit $ac_status); } && 9535 { ac_try='test -z "$ac_c_werror_flag" 9536 || test ! -s conftest.err' 9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9538 (eval $ac_try) 2>&5 9539 ac_status=$? 9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9541 (exit $ac_status); }; } && 9542 { ac_try='test -s conftest$ac_exeext' 9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9544 (eval $ac_try) 2>&5 9545 ac_status=$? 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); }; }; then 9548 echo "*** The test program compiled, but did not run. This usually means" 9549 echo "*** that the run-time linker is not finding GTK or finding the wrong" 9550 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 9551 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 9552 echo "*** to the installed location Also, make sure you have run ldconfig if that" 9553 echo "*** is required on your system" 9554 echo "***" 9555 echo "*** If you have an old version installed, it is best to remove it, although" 9556 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 9557 echo "***" 9558 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 9559 echo "*** came with the system with the command" 9560 echo "***" 9561 echo "*** rpm --erase --nodeps gtk gtk-devel" 9562else 9563 echo "$as_me: failed program was:" >&5 9564sed 's/^/| /' conftest.$ac_ext >&5 9565 9566 echo "*** The test program failed to compile or link. See the file config.log for the" 9567 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 9568 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 9569 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 9570fi 9571rm -f conftest.err conftest.$ac_objext \ 9572 conftest$ac_exeext conftest.$ac_ext 9573 CFLAGS="$ac_save_CFLAGS" 9574 LIBS="$ac_save_LIBS" 9575 fi 9576 fi 9577 GTK_CFLAGS="" 9578 GTK_LIBS="" 9579 { { echo "$as_me:$LINENO: error: Test for GTK failed. See the file 'INSTALL' for help" >&5 9580echo "$as_me: error: Test for GTK failed. See the file 'INSTALL' for help" >&2;} 9581 { (exit 1); exit 1; }; } 9582 fi 9583 9584 9585 rm -f conf.gtktest 9586 9587fi 9588 9589 9590# Check whether --enable-imlib or --disable-imlib was given. 9591if test "${enable_imlib+set}" = set; then 9592 enableval="$enable_imlib" 9593 disable_imlib=yes 9594else 9595 disable_imlib=no 9596fi; 9597# Check whether --enable-gdk-pixbuf or --disable-gdk-pixbuf was given. 9598if test "${enable_gdk_pixbuf+set}" = set; then 9599 enableval="$enable_gdk_pixbuf" 9600 disable_gdk_pixbuf=yes 9601else 9602 disable_gdk_pixbuf=no 9603fi; 9604 9605if test x"$disable_imlib" = xyes -a x"$disable_gdk_pixbuf" = xyes; then 9606 { { echo "$as_me:$LINENO: error: *** No image libraries are enabled. GImageView needs Imlib or gdk-pixbuf. ***" >&5 9607echo "$as_me: error: *** No image libraries are enabled. GImageView needs Imlib or gdk-pixbuf. ***" >&2;} 9608 { (exit 1); exit 1; }; } 9609fi 9610 9611if test x"$enable_gtk2" != xno; then 9612 disable_imlib=yes 9613 disable_gdk_pixbuf=no 9614fi 9615 9616if test x"$enable_gtk2" != xno; then 9617 have_gdk_pixbuf=yes 9618else 9619 9620# Check whether --with-imlib-prefix or --without-imlib-prefix was given. 9621if test "${with_imlib_prefix+set}" = set; then 9622 withval="$with_imlib_prefix" 9623 imlib_prefix="$withval" 9624else 9625 imlib_prefix="" 9626fi; 9627 9628# Check whether --with-imlib-exec-prefix or --without-imlib-exec-prefix was given. 9629if test "${with_imlib_exec_prefix+set}" = set; then 9630 withval="$with_imlib_exec_prefix" 9631 imlib_exec_prefix="$withval" 9632else 9633 imlib_exec_prefix="" 9634fi; 9635# Check whether --enable-imlibtest or --disable-imlibtest was given. 9636if test "${enable_imlibtest+set}" = set; then 9637 enableval="$enable_imlibtest" 9638 9639else 9640 enable_imlibtest=yes 9641fi; 9642 9643 if test x$imlib_exec_prefix != x ; then 9644 imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix" 9645 if test x${IMLIB_CONFIG+set} != xset ; then 9646 IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config 9647 fi 9648 fi 9649 if test x$imlib_prefix != x ; then 9650 imlib_args="$imlib_args --prefix=$imlib_prefix" 9651 if test x${IMLIB_CONFIG+set} != xset ; then 9652 IMLIB_CONFIG=$imlib_prefix/bin/imlib-config 9653 fi 9654 fi 9655 9656 # Extract the first word of "imlib-config", so it can be a program name with args. 9657set dummy imlib-config; ac_word=$2 9658echo "$as_me:$LINENO: checking for $ac_word" >&5 9659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9660if test "${ac_cv_path_IMLIB_CONFIG+set}" = set; then 9661 echo $ECHO_N "(cached) $ECHO_C" >&6 9662else 9663 case $IMLIB_CONFIG in 9664 [\\/]* | ?:[\\/]*) 9665 ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path. 9666 ;; 9667 *) 9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9669for as_dir in $PATH 9670do 9671 IFS=$as_save_IFS 9672 test -z "$as_dir" && as_dir=. 9673 for ac_exec_ext in '' $ac_executable_extensions; do 9674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9675 ac_cv_path_IMLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9677 break 2 9678 fi 9679done 9680done 9681 9682 test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no" 9683 ;; 9684esac 9685fi 9686IMLIB_CONFIG=$ac_cv_path_IMLIB_CONFIG 9687 9688if test -n "$IMLIB_CONFIG"; then 9689 echo "$as_me:$LINENO: result: $IMLIB_CONFIG" >&5 9690echo "${ECHO_T}$IMLIB_CONFIG" >&6 9691else 9692 echo "$as_me:$LINENO: result: no" >&5 9693echo "${ECHO_T}no" >&6 9694fi 9695 9696 min_imlib_version=$IMLIB_REQUIRED 9697 echo "$as_me:$LINENO: checking for IMLIB - version >= $min_imlib_version" >&5 9698echo $ECHO_N "checking for IMLIB - version >= $min_imlib_version... $ECHO_C" >&6 9699 no_imlib="" 9700 if test "$IMLIB_CONFIG" = "no" ; then 9701 no_imlib=yes 9702 else 9703 GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk` 9704 GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk` 9705 9706 imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \ 9707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 9708 imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \ 9709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 9710 if test "x$enable_imlibtest" = "xyes" ; then 9711 ac_save_CFLAGS="$CFLAGS" 9712 ac_save_LIBS="$LIBS" 9713 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" 9714 LIBS="$LIBS $GDK_IMLIB_LIBS" 9715 rm -f conf.imlibtest 9716 if test "$cross_compiling" = yes; then 9717 echo $ac_n "cross compiling; assumed OK... $ac_c" 9718else 9719 cat >conftest.$ac_ext <<_ACEOF 9720/* confdefs.h. */ 9721_ACEOF 9722cat confdefs.h >>conftest.$ac_ext 9723cat >>conftest.$ac_ext <<_ACEOF 9724/* end confdefs.h. */ 9725 9726#include <stdio.h> 9727#include <stdlib.h> 9728#include <gdk_imlib.h> 9729 9730int main () 9731{ 9732 int major, minor; 9733 char *tmp_version; 9734 9735 system ("touch conf.gdkimlibtest"); 9736 9737 /* HP/UX 9 (%@#!) writes to sscanf strings */ 9738 tmp_version = g_strdup("$min_imlib_version"); 9739 if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) { 9740 printf("%s, bad version string\n", "$min_imlib_version"); 9741 exit(1); 9742 } 9743 9744 if (($imlib_major_version > major) || 9745 (($imlib_major_version == major) && ($imlib_minor_version >= minor))) 9746 { 9747 return 0; 9748 } 9749 else 9750 { 9751 printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version); 9752 printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor); 9753 printf("*** best to upgrade to the required version.\n"); 9754 printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n"); 9755 printf("*** to point to the correct copy of imlib-config, and remove the file\n"); 9756 printf("*** config.cache before re-running configure\n"); 9757 return 1; 9758 } 9759} 9760 9761 9762_ACEOF 9763rm -f conftest$ac_exeext 9764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9765 (eval $ac_link) 2>&5 9766 ac_status=$? 9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9770 (eval $ac_try) 2>&5 9771 ac_status=$? 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 (exit $ac_status); }; }; then 9774 : 9775else 9776 echo "$as_me: program exited with status $ac_status" >&5 9777echo "$as_me: failed program was:" >&5 9778sed 's/^/| /' conftest.$ac_ext >&5 9779 9780( exit $ac_status ) 9781no_imlib=yes 9782fi 9783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9784fi 9785 CFLAGS="$ac_save_CFLAGS" 9786 LIBS="$ac_save_LIBS" 9787 fi 9788 fi 9789 if test "x$no_imlib" = x ; then 9790 echo "$as_me:$LINENO: result: yes" >&5 9791echo "${ECHO_T}yes" >&6 9792 have_imlib=yes 9793 else 9794 echo "$as_me:$LINENO: result: no" >&5 9795echo "${ECHO_T}no" >&6 9796 if test "$IMLIB_CONFIG" = "no" ; then 9797 echo "*** The imlib-config script installed by IMLIB could not be found" 9798 echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in" 9799 echo "*** your path, or set the IMLIB_CONFIG environment variable to the" 9800 echo "*** full path to imlib-config." 9801 else 9802 if test -f conf.gdkimlibtest ; then 9803 : 9804 else 9805 echo "*** Could not run IMLIB test program, checking why..." 9806 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" 9807 LIBS="$LIBS $GDK_IMLIB_LIBS" 9808 cat >conftest.$ac_ext <<_ACEOF 9809/* confdefs.h. */ 9810_ACEOF 9811cat confdefs.h >>conftest.$ac_ext 9812cat >>conftest.$ac_ext <<_ACEOF 9813/* end confdefs.h. */ 9814 9815#include <stdio.h> 9816#include <gdk_imlib.h> 9817 9818int 9819main () 9820{ 9821 return 0; 9822 ; 9823 return 0; 9824} 9825_ACEOF 9826rm -f conftest.$ac_objext conftest$ac_exeext 9827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9828 (eval $ac_link) 2>conftest.er1 9829 ac_status=$? 9830 grep -v '^ *+' conftest.er1 >conftest.err 9831 rm -f conftest.er1 9832 cat conftest.err >&5 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9834 (exit $ac_status); } && 9835 { ac_try='test -z "$ac_c_werror_flag" 9836 || test ! -s conftest.err' 9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9838 (eval $ac_try) 2>&5 9839 ac_status=$? 9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9841 (exit $ac_status); }; } && 9842 { ac_try='test -s conftest$ac_exeext' 9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9844 (eval $ac_try) 2>&5 9845 ac_status=$? 9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9847 (exit $ac_status); }; }; then 9848 echo "*** The test program compiled, but did not run. This usually means" 9849 echo "*** that the run-time linker is not finding IMLIB or finding the wrong" 9850 echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your" 9851 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 9852 echo "*** to the installed location Also, make sure you have run ldconfig if that" 9853 echo "*** is required on your system" 9854 echo "***" 9855 echo "*** If you have an old version installed, it is best to remove it, although" 9856 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 9857else 9858 echo "$as_me: failed program was:" >&5 9859sed 's/^/| /' conftest.$ac_ext >&5 9860 9861 echo "*** The test program failed to compile or link. See the file config.log for the" 9862 echo "*** exact error that occured. This usually means IMLIB was incorrectly installed" 9863 echo "*** or that you have moved IMLIB since it was installed. In the latter case, you" 9864 echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG" 9865fi 9866rm -f conftest.err conftest.$ac_objext \ 9867 conftest$ac_exeext conftest.$ac_ext 9868 CFLAGS="$ac_save_CFLAGS" 9869 LIBS="$ac_save_LIBS" 9870 fi 9871 fi 9872 IMLIB_CFLAGS="" 9873 IMLIB_LIBS="" 9874 have_imlib=no 9875 fi 9876 9877 9878 rm -f conf.gdkimlibtest 9879 9880 9881# Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given. 9882if test "${with_gdk_pixbuf_prefix+set}" = set; then 9883 withval="$with_gdk_pixbuf_prefix" 9884 gdk_pixbuf_prefix="$withval" 9885else 9886 gdk_pixbuf_prefix="" 9887fi; 9888 9889# Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given. 9890if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then 9891 withval="$with_gdk_pixbuf_exec_prefix" 9892 gdk_pixbuf_exec_prefix="$withval" 9893else 9894 gdk_pixbuf_exec_prefix="" 9895fi; 9896# Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given. 9897if test "${enable_gdk_pixbuftest+set}" = set; then 9898 enableval="$enable_gdk_pixbuftest" 9899 9900else 9901 enable_gdk_pixbuftest=yes 9902fi; 9903 9904 if test x$gdk_pixbuf_exec_prefix != x ; then 9905 gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix" 9906 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then 9907 GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config 9908 fi 9909 fi 9910 if test x$gdk_pixbuf_prefix != x ; then 9911 gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix" 9912 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then 9913 GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config 9914 fi 9915 fi 9916 9917 # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args. 9918set dummy gdk-pixbuf-config; ac_word=$2 9919echo "$as_me:$LINENO: checking for $ac_word" >&5 9920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9921if test "${ac_cv_path_GDK_PIXBUF_CONFIG+set}" = set; then 9922 echo $ECHO_N "(cached) $ECHO_C" >&6 9923else 9924 case $GDK_PIXBUF_CONFIG in 9925 [\\/]* | ?:[\\/]*) 9926 ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path. 9927 ;; 9928 *) 9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9930for as_dir in $PATH 9931do 9932 IFS=$as_save_IFS 9933 test -z "$as_dir" && as_dir=. 9934 for ac_exec_ext in '' $ac_executable_extensions; do 9935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9936 ac_cv_path_GDK_PIXBUF_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9938 break 2 9939 fi 9940done 9941done 9942 9943 test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no" 9944 ;; 9945esac 9946fi 9947GDK_PIXBUF_CONFIG=$ac_cv_path_GDK_PIXBUF_CONFIG 9948 9949if test -n "$GDK_PIXBUF_CONFIG"; then 9950 echo "$as_me:$LINENO: result: $GDK_PIXBUF_CONFIG" >&5 9951echo "${ECHO_T}$GDK_PIXBUF_CONFIG" >&6 9952else 9953 echo "$as_me:$LINENO: result: no" >&5 9954echo "${ECHO_T}no" >&6 9955fi 9956 9957 min_gdk_pixbuf_version=$GDK_PIXBUF_REQUIRED 9958 echo "$as_me:$LINENO: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5 9959echo $ECHO_N "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version... $ECHO_C" >&6 9960 no_gdk_pixbuf="" 9961 if test "$GDK_PIXBUF_CONFIG" = "no" ; then 9962 no_gdk_pixbuf=yes 9963 else 9964 GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags` 9965 GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs` 9966 9967 gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ 9968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 9969 gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ 9970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 9971 gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \ 9972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 9973 if test "x$enable_gdk_pixbuftest" = "xyes" ; then 9974 ac_save_CFLAGS="$CFLAGS" 9975 ac_save_LIBS="$LIBS" 9976 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" 9977 LIBS="$LIBS $GDK_PIXBUF_LIBS" 9978 rm -f conf.gdk_pixbuftest 9979 if test "$cross_compiling" = yes; then 9980 echo $ac_n "cross compiling; assumed OK... $ac_c" 9981else 9982 cat >conftest.$ac_ext <<_ACEOF 9983/* confdefs.h. */ 9984_ACEOF 9985cat confdefs.h >>conftest.$ac_ext 9986cat >>conftest.$ac_ext <<_ACEOF 9987/* end confdefs.h. */ 9988 9989#include <stdio.h> 9990#include <stdlib.h> 9991#include <string.h> 9992#include <gdk-pixbuf/gdk-pixbuf.h> 9993 9994char* 9995my_strdup (char *str) 9996{ 9997 char *new_str; 9998 9999 if (str) 10000 { 10001 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 10002 strcpy (new_str, str); 10003 } 10004 else 10005 new_str = NULL; 10006 10007 return new_str; 10008} 10009 10010int main () 10011{ 10012 int major, minor, micro; 10013 char *tmp_version; 10014 10015 system ("touch conf.gdk_pixbuftest"); 10016 10017 /* HP/UX 9 (%@#!) writes to sscanf strings */ 10018 tmp_version = my_strdup("$min_gdk_pixbuf_version"); 10019 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 10020 printf("%s, bad version string\n", "$min_gdk_pixbuf_version"); 10021 exit(1); 10022 } 10023 10024 if (($gdk_pixbuf_major_version > major) || 10025 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) || 10026 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro))) 10027 { 10028 return 0; 10029 } 10030 else 10031 { 10032 printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version); 10033 printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro); 10034 printf("*** best to upgrade to the required version.\n"); 10035 printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n"); 10036 printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n"); 10037 printf("*** config.cache before re-running configure\n"); 10038 return 1; 10039 } 10040} 10041 10042 10043_ACEOF 10044rm -f conftest$ac_exeext 10045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10046 (eval $ac_link) 2>&5 10047 ac_status=$? 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10051 (eval $ac_try) 2>&5 10052 ac_status=$? 10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10054 (exit $ac_status); }; }; then 10055 : 10056else 10057 echo "$as_me: program exited with status $ac_status" >&5 10058echo "$as_me: failed program was:" >&5 10059sed 's/^/| /' conftest.$ac_ext >&5 10060 10061( exit $ac_status ) 10062no_gdk_pixbuf=yes 10063fi 10064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10065fi 10066 CFLAGS="$ac_save_CFLAGS" 10067 LIBS="$ac_save_LIBS" 10068 fi 10069 fi 10070 if test "x$no_gdk_pixbuf" = x ; then 10071 echo "$as_me:$LINENO: result: yes" >&5 10072echo "${ECHO_T}yes" >&6 10073 have_gdk_pixbuf=yes 10074 else 10075 echo "$as_me:$LINENO: result: no" >&5 10076echo "${ECHO_T}no" >&6 10077 if test "$GDK_PIXBUF_CONFIG" = "no" ; then 10078 echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found" 10079 echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in" 10080 echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the" 10081 echo "*** full path to gdk-pixbuf-config." 10082 else 10083 if test -f conf.gdk_pixbuftest ; then 10084 : 10085 else 10086 echo "*** Could not run GDK_PIXBUF test program, checking why..." 10087 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" 10088 LIBS="$LIBS $GDK_PIXBUF_LIBS" 10089 cat >conftest.$ac_ext <<_ACEOF 10090/* confdefs.h. */ 10091_ACEOF 10092cat confdefs.h >>conftest.$ac_ext 10093cat >>conftest.$ac_ext <<_ACEOF 10094/* end confdefs.h. */ 10095 10096#include <stdio.h> 10097#include <gdk-pixbuf/gdk-pixbuf.h> 10098 10099int 10100main () 10101{ 10102 return 0; 10103 ; 10104 return 0; 10105} 10106_ACEOF 10107rm -f conftest.$ac_objext conftest$ac_exeext 10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10109 (eval $ac_link) 2>conftest.er1 10110 ac_status=$? 10111 grep -v '^ *+' conftest.er1 >conftest.err 10112 rm -f conftest.er1 10113 cat conftest.err >&5 10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10115 (exit $ac_status); } && 10116 { ac_try='test -z "$ac_c_werror_flag" 10117 || test ! -s conftest.err' 10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10119 (eval $ac_try) 2>&5 10120 ac_status=$? 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); }; } && 10123 { ac_try='test -s conftest$ac_exeext' 10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10125 (eval $ac_try) 2>&5 10126 ac_status=$? 10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 (exit $ac_status); }; }; then 10129 echo "*** The test program compiled, but did not run. This usually means" 10130 echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong" 10131 echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your" 10132 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 10133 echo "*** to the installed location Also, make sure you have run ldconfig if that" 10134 echo "*** is required on your system" 10135 echo "***" 10136 echo "*** If you have an old version installed, it is best to remove it, although" 10137 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 10138else 10139 echo "$as_me: failed program was:" >&5 10140sed 's/^/| /' conftest.$ac_ext >&5 10141 10142 echo "*** The test program failed to compile or link. See the file config.log for the" 10143 echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed" 10144 echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you" 10145 echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" 10146fi 10147rm -f conftest.err conftest.$ac_objext \ 10148 conftest$ac_exeext conftest.$ac_ext 10149 CFLAGS="$ac_save_CFLAGS" 10150 LIBS="$ac_save_LIBS" 10151 fi 10152 fi 10153 GDK_PIXBUF_CFLAGS="" 10154 GDK_PIXBUF_LIBS="" 10155 have_gdk_pixbuf=no 10156 fi 10157 10158 10159 rm -f conf.gdk_pixbuftest 10160 10161fi 10162 10163GIMV_IMAGELIB_CFLAGS="" 10164GIMV_IMAGELIB_LIBS="" 10165 10166if test x"$disable_gdk_pixbuf" = xno -a x"$have_gdk_pixbuf" = xyes; then 10167 image_library="gdk-pixbuf" 10168 if test x"$enable_gtk2" != xno; then 10169 GIMV_IMAGELIB_CFLAGS="" 10170 GIMV_IMAGELIB_LIBS="" 10171 else 10172 GIMV_IMAGELIB_CFLAGS=${GDK_PIXBUF_CFLAGS} 10173 GIMV_IMAGELIB_LIBS=${GDK_PIXBUF_LIBS} 10174 fi 10175 disable_imlib=yes 10176 10177cat >>confdefs.h <<\_ACEOF 10178#define HAVE_GDK_PIXBUF 1 10179_ACEOF 10180 10181else 10182 disable_gdk_pixbuf=yes 10183 have_gdk_pixbuf=no 10184 if test x"$disable_imlib" = xno -a x"$have_imlib" = xyes; then 10185 image_library="Imlib" 10186 GIMV_IMAGELIB_CFLAGS=${GDK_IMLIB_CFLAGS} 10187 GIMV_IMAGELIB_LIBS=${GDK_IMLIB_LIBS} 10188 10189cat >>confdefs.h <<\_ACEOF 10190#define HAVE_GDK_IMLIB 1 10191_ACEOF 10192 10193 else 10194 { { echo "$as_me:$LINENO: error: *** No image libraries are enabled. GImageView needs Imlib or gdk-pixbuf. ***" >&5 10195echo "$as_me: error: *** No image libraries are enabled. GImageView needs Imlib or gdk-pixbuf. ***" >&2;} 10196 { (exit 1); exit 1; }; } 10197 fi 10198fi 10199 10200 10201 10202if test "x$disable_gdk_pixbuf" = xno -a "x$have_gdk_pixbuf" = xyes; then 10203 ENABLE_GDK_PIXBUF_TRUE= 10204 ENABLE_GDK_PIXBUF_FALSE='#' 10205else 10206 ENABLE_GDK_PIXBUF_TRUE='#' 10207 ENABLE_GDK_PIXBUF_FALSE= 10208fi 10209 10210 10211 10212if test "x$disable_imlib" = xno -a "x$have_imlib" = xyes; then 10213 ENABLE_GDK_IMLIB_TRUE= 10214 ENABLE_GDK_IMLIB_FALSE='#' 10215else 10216 ENABLE_GDK_IMLIB_TRUE='#' 10217 ENABLE_GDK_IMLIB_FALSE= 10218fi 10219 10220 10221 10222 10223 10224ZLIB_CFLAGS="" 10225ZLIB_LIBS="-lz" 10226 10227 10228 10229 10230BZLIB_CFLAGS="" 10231BZLIB_LIBS="" 10232if test "${ac_cv_header_bzlib_h+set}" = set; then 10233 echo "$as_me:$LINENO: checking for bzlib.h" >&5 10234echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 10235if test "${ac_cv_header_bzlib_h+set}" = set; then 10236 echo $ECHO_N "(cached) $ECHO_C" >&6 10237fi 10238echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 10239echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6 10240else 10241 # Is the header compilable? 10242echo "$as_me:$LINENO: checking bzlib.h usability" >&5 10243echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6 10244cat >conftest.$ac_ext <<_ACEOF 10245/* confdefs.h. */ 10246_ACEOF 10247cat confdefs.h >>conftest.$ac_ext 10248cat >>conftest.$ac_ext <<_ACEOF 10249/* end confdefs.h. */ 10250$ac_includes_default 10251#include <bzlib.h> 10252_ACEOF 10253rm -f conftest.$ac_objext 10254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10255 (eval $ac_compile) 2>conftest.er1 10256 ac_status=$? 10257 grep -v '^ *+' conftest.er1 >conftest.err 10258 rm -f conftest.er1 10259 cat conftest.err >&5 10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10261 (exit $ac_status); } && 10262 { ac_try='test -z "$ac_c_werror_flag" 10263 || test ! -s conftest.err' 10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10265 (eval $ac_try) 2>&5 10266 ac_status=$? 10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10268 (exit $ac_status); }; } && 10269 { ac_try='test -s conftest.$ac_objext' 10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10271 (eval $ac_try) 2>&5 10272 ac_status=$? 10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10274 (exit $ac_status); }; }; then 10275 ac_header_compiler=yes 10276else 10277 echo "$as_me: failed program was:" >&5 10278sed 's/^/| /' conftest.$ac_ext >&5 10279 10280ac_header_compiler=no 10281fi 10282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10284echo "${ECHO_T}$ac_header_compiler" >&6 10285 10286# Is the header present? 10287echo "$as_me:$LINENO: checking bzlib.h presence" >&5 10288echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6 10289cat >conftest.$ac_ext <<_ACEOF 10290/* confdefs.h. */ 10291_ACEOF 10292cat confdefs.h >>conftest.$ac_ext 10293cat >>conftest.$ac_ext <<_ACEOF 10294/* end confdefs.h. */ 10295#include <bzlib.h> 10296_ACEOF 10297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10299 ac_status=$? 10300 grep -v '^ *+' conftest.er1 >conftest.err 10301 rm -f conftest.er1 10302 cat conftest.err >&5 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); } >/dev/null; then 10305 if test -s conftest.err; then 10306 ac_cpp_err=$ac_c_preproc_warn_flag 10307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10308 else 10309 ac_cpp_err= 10310 fi 10311else 10312 ac_cpp_err=yes 10313fi 10314if test -z "$ac_cpp_err"; then 10315 ac_header_preproc=yes 10316else 10317 echo "$as_me: failed program was:" >&5 10318sed 's/^/| /' conftest.$ac_ext >&5 10319 10320 ac_header_preproc=no 10321fi 10322rm -f conftest.err conftest.$ac_ext 10323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10324echo "${ECHO_T}$ac_header_preproc" >&6 10325 10326# So? What about this header? 10327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10328 yes:no: ) 10329 { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 10330echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10331 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5 10332echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} 10333 ac_header_preproc=yes 10334 ;; 10335 no:yes:* ) 10336 { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5 10337echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} 10338 { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5 10339echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} 10340 { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5 10341echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} 10342 { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5 10343echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 10344 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5 10345echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} 10346 { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5 10347echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} 10348 ( 10349 cat <<\_ASBOX 10350## ------------------------------------------ ## 10351## Report this to the AC_PACKAGE_NAME lists. ## 10352## ------------------------------------------ ## 10353_ASBOX 10354 ) | 10355 sed "s/^/$as_me: WARNING: /" >&2 10356 ;; 10357esac 10358echo "$as_me:$LINENO: checking for bzlib.h" >&5 10359echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 10360if test "${ac_cv_header_bzlib_h+set}" = set; then 10361 echo $ECHO_N "(cached) $ECHO_C" >&6 10362else 10363 ac_cv_header_bzlib_h=$ac_header_preproc 10364fi 10365echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 10366echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6 10367 10368fi 10369if test $ac_cv_header_bzlib_h = yes; then 10370 10371 echo "$as_me:$LINENO: checking for BZ2_bzlibVersion in -lbz2" >&5 10372echo $ECHO_N "checking for BZ2_bzlibVersion in -lbz2... $ECHO_C" >&6 10373if test "${ac_cv_lib_bz2_BZ2_bzlibVersion+set}" = set; then 10374 echo $ECHO_N "(cached) $ECHO_C" >&6 10375else 10376 ac_check_lib_save_LIBS=$LIBS 10377LIBS="-lbz2 $LIBS" 10378cat >conftest.$ac_ext <<_ACEOF 10379/* confdefs.h. */ 10380_ACEOF 10381cat confdefs.h >>conftest.$ac_ext 10382cat >>conftest.$ac_ext <<_ACEOF 10383/* end confdefs.h. */ 10384 10385/* Override any gcc2 internal prototype to avoid an error. */ 10386#ifdef __cplusplus 10387extern "C" 10388#endif 10389/* We use char because int might match the return type of a gcc2 10390 builtin and then its argument prototype would still apply. */ 10391char BZ2_bzlibVersion (); 10392int 10393main () 10394{ 10395BZ2_bzlibVersion (); 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400rm -f conftest.$ac_objext conftest$ac_exeext 10401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10402 (eval $ac_link) 2>conftest.er1 10403 ac_status=$? 10404 grep -v '^ *+' conftest.er1 >conftest.err 10405 rm -f conftest.er1 10406 cat conftest.err >&5 10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10408 (exit $ac_status); } && 10409 { ac_try='test -z "$ac_c_werror_flag" 10410 || test ! -s conftest.err' 10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10412 (eval $ac_try) 2>&5 10413 ac_status=$? 10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10415 (exit $ac_status); }; } && 10416 { ac_try='test -s conftest$ac_exeext' 10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10418 (eval $ac_try) 2>&5 10419 ac_status=$? 10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10421 (exit $ac_status); }; }; then 10422 ac_cv_lib_bz2_BZ2_bzlibVersion=yes 10423else 10424 echo "$as_me: failed program was:" >&5 10425sed 's/^/| /' conftest.$ac_ext >&5 10426 10427ac_cv_lib_bz2_BZ2_bzlibVersion=no 10428fi 10429rm -f conftest.err conftest.$ac_objext \ 10430 conftest$ac_exeext conftest.$ac_ext 10431LIBS=$ac_check_lib_save_LIBS 10432fi 10433echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzlibVersion" >&5 10434echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzlibVersion" >&6 10435if test $ac_cv_lib_bz2_BZ2_bzlibVersion = yes; then 10436 10437 available_bzlib=yes; 10438 BZLIB_LIBS="-lbz2"; 10439 10440cat >>confdefs.h <<\_ACEOF 10441#define BZAPI_NEEDS_PREFIX 1 10442_ACEOF 10443 10444 10445else 10446 10447 echo "$as_me:$LINENO: checking for bzlibVersion in -lbz2" >&5 10448echo $ECHO_N "checking for bzlibVersion in -lbz2... $ECHO_C" >&6 10449if test "${ac_cv_lib_bz2_bzlibVersion+set}" = set; then 10450 echo $ECHO_N "(cached) $ECHO_C" >&6 10451else 10452 ac_check_lib_save_LIBS=$LIBS 10453LIBS="-lbz2 $LIBS" 10454cat >conftest.$ac_ext <<_ACEOF 10455/* confdefs.h. */ 10456_ACEOF 10457cat confdefs.h >>conftest.$ac_ext 10458cat >>conftest.$ac_ext <<_ACEOF 10459/* end confdefs.h. */ 10460 10461/* Override any gcc2 internal prototype to avoid an error. */ 10462#ifdef __cplusplus 10463extern "C" 10464#endif 10465/* We use char because int might match the return type of a gcc2 10466 builtin and then its argument prototype would still apply. */ 10467char bzlibVersion (); 10468int 10469main () 10470{ 10471bzlibVersion (); 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476rm -f conftest.$ac_objext conftest$ac_exeext 10477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10478 (eval $ac_link) 2>conftest.er1 10479 ac_status=$? 10480 grep -v '^ *+' conftest.er1 >conftest.err 10481 rm -f conftest.er1 10482 cat conftest.err >&5 10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10484 (exit $ac_status); } && 10485 { ac_try='test -z "$ac_c_werror_flag" 10486 || test ! -s conftest.err' 10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10488 (eval $ac_try) 2>&5 10489 ac_status=$? 10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10491 (exit $ac_status); }; } && 10492 { ac_try='test -s conftest$ac_exeext' 10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10494 (eval $ac_try) 2>&5 10495 ac_status=$? 10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10497 (exit $ac_status); }; }; then 10498 ac_cv_lib_bz2_bzlibVersion=yes 10499else 10500 echo "$as_me: failed program was:" >&5 10501sed 's/^/| /' conftest.$ac_ext >&5 10502 10503ac_cv_lib_bz2_bzlibVersion=no 10504fi 10505rm -f conftest.err conftest.$ac_objext \ 10506 conftest$ac_exeext conftest.$ac_ext 10507LIBS=$ac_check_lib_save_LIBS 10508fi 10509echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzlibVersion" >&5 10510echo "${ECHO_T}$ac_cv_lib_bz2_bzlibVersion" >&6 10511if test $ac_cv_lib_bz2_bzlibVersion = yes; then 10512 10513 available_bzlib=yes; BZLIB_LIBS="-lbz2"; 10514 10515fi 10516 10517 10518fi 10519 10520 10521fi 10522 10523 10524 10525if test x"$available_bzlib" = xyes; then 10526 10527cat >>confdefs.h <<\_ACEOF 10528#define HAVE_BZLIB 1 10529_ACEOF 10530 10531fi 10532 10533 10534if test x"$available_bzlib" = x"yes"; then 10535 HAVE_BZLIB_TRUE= 10536 HAVE_BZLIB_FALSE='#' 10537else 10538 HAVE_BZLIB_TRUE='#' 10539 HAVE_BZLIB_FALSE= 10540fi 10541 10542 10543 10544 10545 10546PNG_CFLAGS="" 10547PNG_LIBS="" 10548echo "$as_me:$LINENO: checking for png_read_info in -lpng" >&5 10549echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6 10550if test "${ac_cv_lib_png_png_read_info+set}" = set; then 10551 echo $ECHO_N "(cached) $ECHO_C" >&6 10552else 10553 ac_check_lib_save_LIBS=$LIBS 10554LIBS="-lpng -lz -lm $LIBS" 10555cat >conftest.$ac_ext <<_ACEOF 10556/* confdefs.h. */ 10557_ACEOF 10558cat confdefs.h >>conftest.$ac_ext 10559cat >>conftest.$ac_ext <<_ACEOF 10560/* end confdefs.h. */ 10561 10562/* Override any gcc2 internal prototype to avoid an error. */ 10563#ifdef __cplusplus 10564extern "C" 10565#endif 10566/* We use char because int might match the return type of a gcc2 10567 builtin and then its argument prototype would still apply. */ 10568char png_read_info (); 10569int 10570main () 10571{ 10572png_read_info (); 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577rm -f conftest.$ac_objext conftest$ac_exeext 10578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10579 (eval $ac_link) 2>conftest.er1 10580 ac_status=$? 10581 grep -v '^ *+' conftest.er1 >conftest.err 10582 rm -f conftest.er1 10583 cat conftest.err >&5 10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10585 (exit $ac_status); } && 10586 { ac_try='test -z "$ac_c_werror_flag" 10587 || test ! -s conftest.err' 10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10589 (eval $ac_try) 2>&5 10590 ac_status=$? 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 (exit $ac_status); }; } && 10593 { ac_try='test -s conftest$ac_exeext' 10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10595 (eval $ac_try) 2>&5 10596 ac_status=$? 10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10598 (exit $ac_status); }; }; then 10599 ac_cv_lib_png_png_read_info=yes 10600else 10601 echo "$as_me: failed program was:" >&5 10602sed 's/^/| /' conftest.$ac_ext >&5 10603 10604ac_cv_lib_png_png_read_info=no 10605fi 10606rm -f conftest.err conftest.$ac_objext \ 10607 conftest$ac_exeext conftest.$ac_ext 10608LIBS=$ac_check_lib_save_LIBS 10609fi 10610echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_info" >&5 10611echo "${ECHO_T}$ac_cv_lib_png_png_read_info" >&6 10612if test $ac_cv_lib_png_png_read_info = yes; then 10613 10614 if test "${ac_cv_header_png_h+set}" = set; then 10615 echo "$as_me:$LINENO: checking for png.h" >&5 10616echo $ECHO_N "checking for png.h... $ECHO_C" >&6 10617if test "${ac_cv_header_png_h+set}" = set; then 10618 echo $ECHO_N "(cached) $ECHO_C" >&6 10619fi 10620echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 10621echo "${ECHO_T}$ac_cv_header_png_h" >&6 10622else 10623 # Is the header compilable? 10624echo "$as_me:$LINENO: checking png.h usability" >&5 10625echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 10626cat >conftest.$ac_ext <<_ACEOF 10627/* confdefs.h. */ 10628_ACEOF 10629cat confdefs.h >>conftest.$ac_ext 10630cat >>conftest.$ac_ext <<_ACEOF 10631/* end confdefs.h. */ 10632$ac_includes_default 10633#include <png.h> 10634_ACEOF 10635rm -f conftest.$ac_objext 10636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10637 (eval $ac_compile) 2>conftest.er1 10638 ac_status=$? 10639 grep -v '^ *+' conftest.er1 >conftest.err 10640 rm -f conftest.er1 10641 cat conftest.err >&5 10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10643 (exit $ac_status); } && 10644 { ac_try='test -z "$ac_c_werror_flag" 10645 || test ! -s conftest.err' 10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10647 (eval $ac_try) 2>&5 10648 ac_status=$? 10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10650 (exit $ac_status); }; } && 10651 { ac_try='test -s conftest.$ac_objext' 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10653 (eval $ac_try) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; }; then 10657 ac_header_compiler=yes 10658else 10659 echo "$as_me: failed program was:" >&5 10660sed 's/^/| /' conftest.$ac_ext >&5 10661 10662ac_header_compiler=no 10663fi 10664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10666echo "${ECHO_T}$ac_header_compiler" >&6 10667 10668# Is the header present? 10669echo "$as_me:$LINENO: checking png.h presence" >&5 10670echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 10671cat >conftest.$ac_ext <<_ACEOF 10672/* confdefs.h. */ 10673_ACEOF 10674cat confdefs.h >>conftest.$ac_ext 10675cat >>conftest.$ac_ext <<_ACEOF 10676/* end confdefs.h. */ 10677#include <png.h> 10678_ACEOF 10679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10681 ac_status=$? 10682 grep -v '^ *+' conftest.er1 >conftest.err 10683 rm -f conftest.er1 10684 cat conftest.err >&5 10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10686 (exit $ac_status); } >/dev/null; then 10687 if test -s conftest.err; then 10688 ac_cpp_err=$ac_c_preproc_warn_flag 10689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10690 else 10691 ac_cpp_err= 10692 fi 10693else 10694 ac_cpp_err=yes 10695fi 10696if test -z "$ac_cpp_err"; then 10697 ac_header_preproc=yes 10698else 10699 echo "$as_me: failed program was:" >&5 10700sed 's/^/| /' conftest.$ac_ext >&5 10701 10702 ac_header_preproc=no 10703fi 10704rm -f conftest.err conftest.$ac_ext 10705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10706echo "${ECHO_T}$ac_header_preproc" >&6 10707 10708# So? What about this header? 10709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10710 yes:no: ) 10711 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 10712echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10713 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 10714echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} 10715 ac_header_preproc=yes 10716 ;; 10717 no:yes:* ) 10718 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 10719echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} 10720 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 10721echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} 10722 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 10723echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} 10724 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 10725echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} 10726 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 10727echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} 10728 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 10729echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} 10730 ( 10731 cat <<\_ASBOX 10732## ------------------------------------------ ## 10733## Report this to the AC_PACKAGE_NAME lists. ## 10734## ------------------------------------------ ## 10735_ASBOX 10736 ) | 10737 sed "s/^/$as_me: WARNING: /" >&2 10738 ;; 10739esac 10740echo "$as_me:$LINENO: checking for png.h" >&5 10741echo $ECHO_N "checking for png.h... $ECHO_C" >&6 10742if test "${ac_cv_header_png_h+set}" = set; then 10743 echo $ECHO_N "(cached) $ECHO_C" >&6 10744else 10745 ac_cv_header_png_h=$ac_header_preproc 10746fi 10747echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 10748echo "${ECHO_T}$ac_cv_header_png_h" >&6 10749 10750fi 10751if test $ac_cv_header_png_h = yes; then 10752 png_ok=yes 10753else 10754 png_ok=no 10755fi 10756 10757 10758 10759else 10760 10761 { { echo "$as_me:$LINENO: error: *** (PNG library is not found) ***" >&5 10762echo "$as_me: error: *** (PNG library is not found) ***" >&2;} 10763 { (exit 1); exit 1; }; } 10764 10765fi 10766 10767 10768if test x"$png_ok" = xyes; then 10769 echo "$as_me:$LINENO: checking for png_structp in png.h" >&5 10770echo $ECHO_N "checking for png_structp in png.h... $ECHO_C" >&6 10771 cat >conftest.$ac_ext <<_ACEOF 10772/* confdefs.h. */ 10773_ACEOF 10774cat confdefs.h >>conftest.$ac_ext 10775cat >>conftest.$ac_ext <<_ACEOF 10776/* end confdefs.h. */ 10777 #include <png.h> 10778int 10779main () 10780{ 10781 png_structp pp; 10782 png_infop info; 10783 png_colorp cmap; 10784 png_get_header_ver(NULL); 10785 png_create_read_struct; 10786 ; 10787 return 0; 10788} 10789_ACEOF 10790rm -f conftest.$ac_objext 10791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10792 (eval $ac_compile) 2>conftest.er1 10793 ac_status=$? 10794 grep -v '^ *+' conftest.er1 >conftest.err 10795 rm -f conftest.er1 10796 cat conftest.err >&5 10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10798 (exit $ac_status); } && 10799 { ac_try='test -z "$ac_c_werror_flag" 10800 || test ! -s conftest.err' 10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10802 (eval $ac_try) 2>&5 10803 ac_status=$? 10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10805 (exit $ac_status); }; } && 10806 { ac_try='test -s conftest.$ac_objext' 10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10808 (eval $ac_try) 2>&5 10809 ac_status=$? 10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10811 (exit $ac_status); }; }; then 10812 png_ok=yes 10813else 10814 echo "$as_me: failed program was:" >&5 10815sed 's/^/| /' conftest.$ac_ext >&5 10816 10817 png_ok=no 10818fi 10819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10820 echo "$as_me:$LINENO: result: $png_ok" >&5 10821echo "${ECHO_T}$png_ok" >&6 10822 if test x"$png_ok" = xyes; then 10823 PNG_LIBS="-lpng -lz" 10824 else 10825 { { echo "$as_me:$LINENO: error: *** PNG library (libpng) is too old ***" >&5 10826echo "$as_me: error: *** PNG library (libpng) is too old ***" >&2;} 10827 { (exit 1); exit 1; }; } 10828 fi 10829else 10830 { { echo "$as_me:$LINENO: error: *** PNG library (libpng) required ***" >&5 10831echo "$as_me: error: *** PNG library (libpng) required ***" >&2;} 10832 { (exit 1); exit 1; }; } 10833fi 10834 10835 10836 10837 10838 10839if test "x$PNG_LIBS" != x; then 10840 HAVE_PNG_TRUE= 10841 HAVE_PNG_FALSE='#' 10842else 10843 HAVE_PNG_TRUE='#' 10844 HAVE_PNG_FALSE= 10845fi 10846 10847 10848 10849JPEG_CFLAGS="" 10850JPEG_LIBS="" 10851available_jpeg=no 10852echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5 10853echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6 10854if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then 10855 echo $ECHO_N "(cached) $ECHO_C" >&6 10856else 10857 ac_check_lib_save_LIBS=$LIBS 10858LIBS="-ljpeg $LIBS" 10859cat >conftest.$ac_ext <<_ACEOF 10860/* confdefs.h. */ 10861_ACEOF 10862cat confdefs.h >>conftest.$ac_ext 10863cat >>conftest.$ac_ext <<_ACEOF 10864/* end confdefs.h. */ 10865 10866/* Override any gcc2 internal prototype to avoid an error. */ 10867#ifdef __cplusplus 10868extern "C" 10869#endif 10870/* We use char because int might match the return type of a gcc2 10871 builtin and then its argument prototype would still apply. */ 10872char jpeg_destroy_decompress (); 10873int 10874main () 10875{ 10876jpeg_destroy_decompress (); 10877 ; 10878 return 0; 10879} 10880_ACEOF 10881rm -f conftest.$ac_objext conftest$ac_exeext 10882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10883 (eval $ac_link) 2>conftest.er1 10884 ac_status=$? 10885 grep -v '^ *+' conftest.er1 >conftest.err 10886 rm -f conftest.er1 10887 cat conftest.err >&5 10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10889 (exit $ac_status); } && 10890 { ac_try='test -z "$ac_c_werror_flag" 10891 || test ! -s conftest.err' 10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10893 (eval $ac_try) 2>&5 10894 ac_status=$? 10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10896 (exit $ac_status); }; } && 10897 { ac_try='test -s conftest$ac_exeext' 10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10899 (eval $ac_try) 2>&5 10900 ac_status=$? 10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10902 (exit $ac_status); }; }; then 10903 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes 10904else 10905 echo "$as_me: failed program was:" >&5 10906sed 's/^/| /' conftest.$ac_ext >&5 10907 10908ac_cv_lib_jpeg_jpeg_destroy_decompress=no 10909fi 10910rm -f conftest.err conftest.$ac_objext \ 10911 conftest$ac_exeext conftest.$ac_ext 10912LIBS=$ac_check_lib_save_LIBS 10913fi 10914echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 10915echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6 10916if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then 10917 available_jpeg=yes 10918else 10919 available_jpeg=no 10920fi 10921 10922 10923if test x"$available_jpeg" = xyes; then 10924 echo "$as_me:$LINENO: checking for jpeglib.h" >&5 10925echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 10926 cat >conftest.$ac_ext <<_ACEOF 10927/* confdefs.h. */ 10928_ACEOF 10929cat confdefs.h >>conftest.$ac_ext 10930cat >>conftest.$ac_ext <<_ACEOF 10931/* end confdefs.h. */ 10932#include <stdio.h> 10933#undef PACKAGE 10934#undef VERSION 10935#undef HAVE_STDLIB_H 10936#include <jpeglib.h> 10937_ACEOF 10938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10940 ac_status=$? 10941 grep -v '^ *+' conftest.er1 >conftest.err 10942 rm -f conftest.er1 10943 cat conftest.err >&5 10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10945 (exit $ac_status); } >/dev/null; then 10946 if test -s conftest.err; then 10947 ac_cpp_err=$ac_c_preproc_warn_flag 10948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10949 else 10950 ac_cpp_err= 10951 fi 10952else 10953 ac_cpp_err=yes 10954fi 10955if test -z "$ac_cpp_err"; then 10956 available_jpeg=yes 10957else 10958 echo "$as_me: failed program was:" >&5 10959sed 's/^/| /' conftest.$ac_ext >&5 10960 10961 available_jpeg=no 10962fi 10963rm -f conftest.err conftest.$ac_ext 10964 echo "$as_me:$LINENO: result: $available_jpeg" >&5 10965echo "${ECHO_T}$available_jpeg" >&6 10966 if test x"$available_jpeg" = xyes; then 10967 JPEG_LIBS='-ljpeg' 10968 echo "$as_me:$LINENO: checking for jpeg_simple_progression in -ljpeg" >&5 10969echo $ECHO_N "checking for jpeg_simple_progression in -ljpeg... $ECHO_C" >&6 10970if test "${ac_cv_lib_jpeg_jpeg_simple_progression+set}" = set; then 10971 echo $ECHO_N "(cached) $ECHO_C" >&6 10972else 10973 ac_check_lib_save_LIBS=$LIBS 10974LIBS="-ljpeg $LIBS" 10975cat >conftest.$ac_ext <<_ACEOF 10976/* confdefs.h. */ 10977_ACEOF 10978cat confdefs.h >>conftest.$ac_ext 10979cat >>conftest.$ac_ext <<_ACEOF 10980/* end confdefs.h. */ 10981 10982/* Override any gcc2 internal prototype to avoid an error. */ 10983#ifdef __cplusplus 10984extern "C" 10985#endif 10986/* We use char because int might match the return type of a gcc2 10987 builtin and then its argument prototype would still apply. */ 10988char jpeg_simple_progression (); 10989int 10990main () 10991{ 10992jpeg_simple_progression (); 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997rm -f conftest.$ac_objext conftest$ac_exeext 10998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10999 (eval $ac_link) 2>conftest.er1 11000 ac_status=$? 11001 grep -v '^ *+' conftest.er1 >conftest.err 11002 rm -f conftest.er1 11003 cat conftest.err >&5 11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11005 (exit $ac_status); } && 11006 { ac_try='test -z "$ac_c_werror_flag" 11007 || test ! -s conftest.err' 11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11009 (eval $ac_try) 2>&5 11010 ac_status=$? 11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11012 (exit $ac_status); }; } && 11013 { ac_try='test -s conftest$ac_exeext' 11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11015 (eval $ac_try) 2>&5 11016 ac_status=$? 11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11018 (exit $ac_status); }; }; then 11019 ac_cv_lib_jpeg_jpeg_simple_progression=yes 11020else 11021 echo "$as_me: failed program was:" >&5 11022sed 's/^/| /' conftest.$ac_ext >&5 11023 11024ac_cv_lib_jpeg_jpeg_simple_progression=no 11025fi 11026rm -f conftest.err conftest.$ac_objext \ 11027 conftest$ac_exeext conftest.$ac_ext 11028LIBS=$ac_check_lib_save_LIBS 11029fi 11030echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_simple_progression" >&5 11031echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_simple_progression" >&6 11032if test $ac_cv_lib_jpeg_jpeg_simple_progression = yes; then 11033 11034cat >>confdefs.h <<\_ACEOF 11035#define HAVE_PROGRESSIVE_JPEG 1 11036_ACEOF 11037 11038else 11039 { echo "$as_me:$LINENO: WARNING: JPEG library does not support progressive saving." >&5 11040echo "$as_me: WARNING: JPEG library does not support progressive saving." >&2;} 11041fi 11042 11043 fi 11044fi 11045 11046if test x"$available_jpeg" = xyes; then 11047 11048cat >>confdefs.h <<\_ACEOF 11049#define ENABLE_JPEG 1 11050_ACEOF 11051 11052else 11053 { echo "$as_me:$LINENO: WARNING: *** JPEG loader will not be built ***" >&5 11054echo "$as_me: WARNING: *** JPEG loader will not be built ***" >&2;} 11055fi 11056 11057 11058 11059if test x"$available_jpeg" = x"yes"; then 11060 ENABLE_JPEG_TRUE= 11061 ENABLE_JPEG_FALSE='#' 11062else 11063 ENABLE_JPEG_TRUE='#' 11064 ENABLE_JPEG_FALSE= 11065fi 11066 11067 11068 11069 11070enable_jpeg=$available_jpeg 11071 11072 11073 11074# Check whether --with-libmng or --without-libmng was given. 11075if test "${with_libmng+set}" = set; then 11076 withval="$with_libmng" 11077 enable_mng="${withval}" 11078else 11079 enable_mng=yes 11080fi; 11081 11082MNG_CFLAGS="" 11083MNG_LIBS="" 11084if test x"$enable_mng" = x"yes"; then 11085 if test x"$available_jpeg" = x"yes"; then 11086 if test "${ac_cv_header_libmng_h+set}" = set; then 11087 echo "$as_me:$LINENO: checking for libmng.h" >&5 11088echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6 11089if test "${ac_cv_header_libmng_h+set}" = set; then 11090 echo $ECHO_N "(cached) $ECHO_C" >&6 11091fi 11092echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5 11093echo "${ECHO_T}$ac_cv_header_libmng_h" >&6 11094else 11095 # Is the header compilable? 11096echo "$as_me:$LINENO: checking libmng.h usability" >&5 11097echo $ECHO_N "checking libmng.h usability... $ECHO_C" >&6 11098cat >conftest.$ac_ext <<_ACEOF 11099/* confdefs.h. */ 11100_ACEOF 11101cat confdefs.h >>conftest.$ac_ext 11102cat >>conftest.$ac_ext <<_ACEOF 11103/* end confdefs.h. */ 11104$ac_includes_default 11105#include <libmng.h> 11106_ACEOF 11107rm -f conftest.$ac_objext 11108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11109 (eval $ac_compile) 2>conftest.er1 11110 ac_status=$? 11111 grep -v '^ *+' conftest.er1 >conftest.err 11112 rm -f conftest.er1 11113 cat conftest.err >&5 11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11115 (exit $ac_status); } && 11116 { ac_try='test -z "$ac_c_werror_flag" 11117 || test ! -s conftest.err' 11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11119 (eval $ac_try) 2>&5 11120 ac_status=$? 11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11122 (exit $ac_status); }; } && 11123 { ac_try='test -s conftest.$ac_objext' 11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11125 (eval $ac_try) 2>&5 11126 ac_status=$? 11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11128 (exit $ac_status); }; }; then 11129 ac_header_compiler=yes 11130else 11131 echo "$as_me: failed program was:" >&5 11132sed 's/^/| /' conftest.$ac_ext >&5 11133 11134ac_header_compiler=no 11135fi 11136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11138echo "${ECHO_T}$ac_header_compiler" >&6 11139 11140# Is the header present? 11141echo "$as_me:$LINENO: checking libmng.h presence" >&5 11142echo $ECHO_N "checking libmng.h presence... $ECHO_C" >&6 11143cat >conftest.$ac_ext <<_ACEOF 11144/* confdefs.h. */ 11145_ACEOF 11146cat confdefs.h >>conftest.$ac_ext 11147cat >>conftest.$ac_ext <<_ACEOF 11148/* end confdefs.h. */ 11149#include <libmng.h> 11150_ACEOF 11151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11153 ac_status=$? 11154 grep -v '^ *+' conftest.er1 >conftest.err 11155 rm -f conftest.er1 11156 cat conftest.err >&5 11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11158 (exit $ac_status); } >/dev/null; then 11159 if test -s conftest.err; then 11160 ac_cpp_err=$ac_c_preproc_warn_flag 11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11162 else 11163 ac_cpp_err= 11164 fi 11165else 11166 ac_cpp_err=yes 11167fi 11168if test -z "$ac_cpp_err"; then 11169 ac_header_preproc=yes 11170else 11171 echo "$as_me: failed program was:" >&5 11172sed 's/^/| /' conftest.$ac_ext >&5 11173 11174 ac_header_preproc=no 11175fi 11176rm -f conftest.err conftest.$ac_ext 11177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11178echo "${ECHO_T}$ac_header_preproc" >&6 11179 11180# So? What about this header? 11181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11182 yes:no: ) 11183 { echo "$as_me:$LINENO: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&5 11184echo "$as_me: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11185 { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the compiler's result" >&5 11186echo "$as_me: WARNING: libmng.h: proceeding with the compiler's result" >&2;} 11187 ac_header_preproc=yes 11188 ;; 11189 no:yes:* ) 11190 { echo "$as_me:$LINENO: WARNING: libmng.h: present but cannot be compiled" >&5 11191echo "$as_me: WARNING: libmng.h: present but cannot be compiled" >&2;} 11192 { echo "$as_me:$LINENO: WARNING: libmng.h: check for missing prerequisite headers?" >&5 11193echo "$as_me: WARNING: libmng.h: check for missing prerequisite headers?" >&2;} 11194 { echo "$as_me:$LINENO: WARNING: libmng.h: see the Autoconf documentation" >&5 11195echo "$as_me: WARNING: libmng.h: see the Autoconf documentation" >&2;} 11196 { echo "$as_me:$LINENO: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&5 11197echo "$as_me: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&2;} 11198 { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the preprocessor's result" >&5 11199echo "$as_me: WARNING: libmng.h: proceeding with the preprocessor's result" >&2;} 11200 { echo "$as_me:$LINENO: WARNING: libmng.h: in the future, the compiler will take precedence" >&5 11201echo "$as_me: WARNING: libmng.h: in the future, the compiler will take precedence" >&2;} 11202 ( 11203 cat <<\_ASBOX 11204## ------------------------------------------ ## 11205## Report this to the AC_PACKAGE_NAME lists. ## 11206## ------------------------------------------ ## 11207_ASBOX 11208 ) | 11209 sed "s/^/$as_me: WARNING: /" >&2 11210 ;; 11211esac 11212echo "$as_me:$LINENO: checking for libmng.h" >&5 11213echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6 11214if test "${ac_cv_header_libmng_h+set}" = set; then 11215 echo $ECHO_N "(cached) $ECHO_C" >&6 11216else 11217 ac_cv_header_libmng_h=$ac_header_preproc 11218fi 11219echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5 11220echo "${ECHO_T}$ac_cv_header_libmng_h" >&6 11221 11222fi 11223if test $ac_cv_header_libmng_h = yes; then 11224 11225 echo "$as_me:$LINENO: checking for mng_initialize in -lmng" >&5 11226echo $ECHO_N "checking for mng_initialize in -lmng... $ECHO_C" >&6 11227if test "${ac_cv_lib_mng_mng_initialize+set}" = set; then 11228 echo $ECHO_N "(cached) $ECHO_C" >&6 11229else 11230 ac_check_lib_save_LIBS=$LIBS 11231LIBS="-lmng $MNG_LIBS $LIBS" 11232cat >conftest.$ac_ext <<_ACEOF 11233/* confdefs.h. */ 11234_ACEOF 11235cat confdefs.h >>conftest.$ac_ext 11236cat >>conftest.$ac_ext <<_ACEOF 11237/* end confdefs.h. */ 11238 11239/* Override any gcc2 internal prototype to avoid an error. */ 11240#ifdef __cplusplus 11241extern "C" 11242#endif 11243/* We use char because int might match the return type of a gcc2 11244 builtin and then its argument prototype would still apply. */ 11245char mng_initialize (); 11246int 11247main () 11248{ 11249mng_initialize (); 11250 ; 11251 return 0; 11252} 11253_ACEOF 11254rm -f conftest.$ac_objext conftest$ac_exeext 11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11256 (eval $ac_link) 2>conftest.er1 11257 ac_status=$? 11258 grep -v '^ *+' conftest.er1 >conftest.err 11259 rm -f conftest.er1 11260 cat conftest.err >&5 11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11262 (exit $ac_status); } && 11263 { ac_try='test -z "$ac_c_werror_flag" 11264 || test ! -s conftest.err' 11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11266 (eval $ac_try) 2>&5 11267 ac_status=$? 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11269 (exit $ac_status); }; } && 11270 { ac_try='test -s conftest$ac_exeext' 11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11272 (eval $ac_try) 2>&5 11273 ac_status=$? 11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11275 (exit $ac_status); }; }; then 11276 ac_cv_lib_mng_mng_initialize=yes 11277else 11278 echo "$as_me: failed program was:" >&5 11279sed 's/^/| /' conftest.$ac_ext >&5 11280 11281ac_cv_lib_mng_mng_initialize=no 11282fi 11283rm -f conftest.err conftest.$ac_objext \ 11284 conftest$ac_exeext conftest.$ac_ext 11285LIBS=$ac_check_lib_save_LIBS 11286fi 11287echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_initialize" >&5 11288echo "${ECHO_T}$ac_cv_lib_mng_mng_initialize" >&6 11289if test $ac_cv_lib_mng_mng_initialize = yes; then 11290 11291 echo "$as_me:$LINENO: checking for libmng functions" >&5 11292echo $ECHO_N "checking for libmng functions... $ECHO_C" >&6 11293 cat >conftest.$ac_ext <<_ACEOF 11294/* confdefs.h. */ 11295_ACEOF 11296cat confdefs.h >>conftest.$ac_ext 11297cat >>conftest.$ac_ext <<_ACEOF 11298/* end confdefs.h. */ 11299 #include <libmng.h> 11300int 11301main () 11302{ 11303 mng_handle handle; 11304 mng_version_text(); 11305 handle = mng_initialize(NULL, NULL, NULL, MNG_NULL); 11306 mng_setcb_errorproc(handle, NULL); 11307 mng_setcb_openstream(handle, NULL); 11308 mng_setcb_closestream(handle, NULL); 11309 mng_setcb_readdata(handle, NULL); 11310 mng_setcb_gettickcount(handle, NULL); 11311 mng_setcb_settimer(handle, NULL); 11312 mng_setcb_processheader(handle, NULL); 11313 mng_setcb_getcanvasline(handle, NULL); 11314 mng_setcb_refresh(handle, NULL); 11315 mng_get_userdata(handle); 11316 mng_set_canvasstyle(handle, MNG_CANVAS_RGB8); 11317 mng_set_bgcolor(handle, 0, 0, 0); 11318 mng_readdisplay(handle); 11319 mng_readdisplay_resume(handle); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324rm -f conftest.$ac_objext 11325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11326 (eval $ac_compile) 2>conftest.er1 11327 ac_status=$? 11328 grep -v '^ *+' conftest.er1 >conftest.err 11329 rm -f conftest.er1 11330 cat conftest.err >&5 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11332 (exit $ac_status); } && 11333 { ac_try='test -z "$ac_c_werror_flag" 11334 || test ! -s conftest.err' 11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11336 (eval $ac_try) 2>&5 11337 ac_status=$? 11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11339 (exit $ac_status); }; } && 11340 { ac_try='test -s conftest.$ac_objext' 11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11342 (eval $ac_try) 2>&5 11343 ac_status=$? 11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11345 (exit $ac_status); }; }; then 11346 MNG_LIBS="$JPEG_LIBS -lz -lmng"; 11347 11348cat >>confdefs.h <<\_ACEOF 11349#define ENABLE_MNG 1 11350_ACEOF 11351 11352else 11353 echo "$as_me: failed program was:" >&5 11354sed 's/^/| /' conftest.$ac_ext >&5 11355 11356 enable_mng=no; 11357 { echo "$as_me:$LINENO: WARNING: *** MNG library (libmng) is found but it is too old ***" >&5 11358echo "$as_me: WARNING: *** MNG library (libmng) is found but it is too old ***" >&2;} 11359fi 11360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11361 echo "$as_me:$LINENO: result: $enable_mng" >&5 11362echo "${ECHO_T}$enable_mng" >&6 11363 11364else 11365 11366 enable_mng=no 11367 11368fi 11369 11370 11371else 11372 11373 enable_mng=no: 11374 11375fi 11376 11377 11378 else 11379 { echo "$as_me:$LINENO: WARNING: *** libmng requires libjpeg. MNG plugin will not be compiled." >&5 11380echo "$as_me: WARNING: *** libmng requires libjpeg. MNG plugin will not be compiled." >&2;} 11381 enable_mng=no 11382 fi 11383fi 11384 11385 11386 11387if test x"$enable_mng" = xyes; then 11388 ENABLE_MNG_TRUE= 11389 ENABLE_MNG_FALSE='#' 11390else 11391 ENABLE_MNG_TRUE='#' 11392 ENABLE_MNG_FALSE= 11393fi 11394 11395 11396 11397 11398 11399 11400# Check whether --with-librsvg or --without-librsvg was given. 11401if test "${with_librsvg+set}" = set; then 11402 withval="$with_librsvg" 11403 enable_librsvg="${withval}" 11404else 11405 enable_librsvg=yes 11406fi; 11407 11408if test x"$enable_librsvg" = xyes; then 11409 if test x"$enable_gtk2" != xno; then 11410 11411 succeeded=no 11412 11413 if test -z "$PKG_CONFIG"; then 11414 # Extract the first word of "pkg-config", so it can be a program name with args. 11415set dummy pkg-config; ac_word=$2 11416echo "$as_me:$LINENO: checking for $ac_word" >&5 11417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11418if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11419 echo $ECHO_N "(cached) $ECHO_C" >&6 11420else 11421 case $PKG_CONFIG in 11422 [\\/]* | ?:[\\/]*) 11423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11424 ;; 11425 *) 11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11427for as_dir in $PATH 11428do 11429 IFS=$as_save_IFS 11430 test -z "$as_dir" && as_dir=. 11431 for ac_exec_ext in '' $ac_executable_extensions; do 11432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11435 break 2 11436 fi 11437done 11438done 11439 11440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11441 ;; 11442esac 11443fi 11444PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11445 11446if test -n "$PKG_CONFIG"; then 11447 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11448echo "${ECHO_T}$PKG_CONFIG" >&6 11449else 11450 echo "$as_me:$LINENO: result: no" >&5 11451echo "${ECHO_T}no" >&6 11452fi 11453 11454 fi 11455 11456 if test "$PKG_CONFIG" = "no" ; then 11457 echo "*** The pkg-config script could not be found. Make sure it is" 11458 echo "*** in your path, or set the PKG_CONFIG environment variable" 11459 echo "*** to the full path to pkg-config." 11460 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 11461 else 11462 PKG_CONFIG_MIN_VERSION=0.9.0 11463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11464 echo "$as_me:$LINENO: checking for librsvg-2.0" >&5 11465echo $ECHO_N "checking for librsvg-2.0... $ECHO_C" >&6 11466 11467 if $PKG_CONFIG --exists "librsvg-2.0" ; then 11468 echo "$as_me:$LINENO: result: yes" >&5 11469echo "${ECHO_T}yes" >&6 11470 succeeded=yes 11471 11472 echo "$as_me:$LINENO: checking LIBRSVG_CFLAGS" >&5 11473echo $ECHO_N "checking LIBRSVG_CFLAGS... $ECHO_C" >&6 11474 LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0"` 11475 echo "$as_me:$LINENO: result: $LIBRSVG_CFLAGS" >&5 11476echo "${ECHO_T}$LIBRSVG_CFLAGS" >&6 11477 11478 echo "$as_me:$LINENO: checking LIBRSVG_LIBS" >&5 11479echo $ECHO_N "checking LIBRSVG_LIBS... $ECHO_C" >&6 11480 LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0"` 11481 echo "$as_me:$LINENO: result: $LIBRSVG_LIBS" >&5 11482echo "${ECHO_T}$LIBRSVG_LIBS" >&6 11483 else 11484 LIBRSVG_CFLAGS="" 11485 LIBRSVG_LIBS="" 11486 ## If we have a custom action on failure, don't print errors, but 11487 ## do set a variable so people can do so. 11488 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librsvg-2.0"` 11489 11490 fi 11491 11492 11493 11494 else 11495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 11496 echo "*** See http://www.freedesktop.org/software/pkgconfig" 11497 fi 11498 fi 11499 11500 if test $succeeded = yes; then 11501 : 11502 else 11503 11504 enable_librsvg=no; 11505 { echo "$as_me:$LINENO: WARNING: Did not find librsvg-2.0 installed" >&5 11506echo "$as_me: WARNING: Did not find librsvg-2.0 installed" >&2;} 11507 11508 fi 11509 11510 else 11511 if test x"$disable_gdk_pixbuf" = xno -a x"$have_gdk_pixbuf" = xyes; then 11512 11513# Check whether --with-gnome-prefix or --without-gnome-prefix was given. 11514if test "${with_gnome_prefix+set}" = set; then 11515 withval="$with_gnome_prefix" 11516 gnome_config_prefix="$withval" 11517else 11518 gnome_config_prefix="" 11519fi; 11520 11521# Check whether --with-gnome-exec-prefix or --without-gnome-exec-prefix was given. 11522if test "${with_gnome_exec_prefix+set}" = set; then 11523 withval="$with_gnome_exec_prefix" 11524 gnome_config_exec_prefix="$withval" 11525else 11526 gnome_config_exec_prefix="" 11527fi; 11528 11529 if test x$gnome_config_exec_prefix != x ; then 11530 gnome_config_args="$gnome_config_args --exec-prefix=$gnome_config_exec_prefix" 11531 if test x${GNOME_CONFIG+set} != xset ; then 11532 GNOME_CONFIG=$gnome_config_exec_prefix/bin/gnome-config 11533 fi 11534 fi 11535 if test x$gnome_config_prefix != x ; then 11536 gnome_config_args="$gnome_config_args --prefix=$gnome_config_prefix" 11537 if test x${GNOME_CONFIG+set} != xset ; then 11538 GNOME_CONFIG=$gnome_config_prefix/bin/gnome-config 11539 fi 11540 fi 11541 11542 # Extract the first word of "gnome-config", so it can be a program name with args. 11543set dummy gnome-config; ac_word=$2 11544echo "$as_me:$LINENO: checking for $ac_word" >&5 11545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11546if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then 11547 echo $ECHO_N "(cached) $ECHO_C" >&6 11548else 11549 case $GNOME_CONFIG in 11550 [\\/]* | ?:[\\/]*) 11551 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. 11552 ;; 11553 *) 11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11555for as_dir in $PATH 11556do 11557 IFS=$as_save_IFS 11558 test -z "$as_dir" && as_dir=. 11559 for ac_exec_ext in '' $ac_executable_extensions; do 11560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11561 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11563 break 2 11564 fi 11565done 11566done 11567 11568 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" 11569 ;; 11570esac 11571fi 11572GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG 11573 11574if test -n "$GNOME_CONFIG"; then 11575 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 11576echo "${ECHO_T}$GNOME_CONFIG" >&6 11577else 11578 echo "$as_me:$LINENO: result: no" >&5 11579echo "${ECHO_T}no" >&6 11580fi 11581 11582 min_gnome_version=1.2.8 11583 11584 echo "$as_me:$LINENO: checking for GNOME - version >= $min_gnome_version" >&5 11585echo $ECHO_N "checking for GNOME - version >= $min_gnome_version... $ECHO_C" >&6 11586 no_gnome="" 11587 if test "$GNOME_CONFIG" = "no" ; then 11588 no_gnome=yes 11589 else 11590 GNOME_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gnome`" 11591 GNOME_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gnome`" 11592 GNOMEUI_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gnomeui`" 11593 GNOMEUI_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gnomeui`" 11594 11595 gnome_config_major_version=`$GNOME_CONFIG $gnome_config_args --version | \ 11596 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 11597 gnome_config_minor_version=`$GNOME_CONFIG $gnome_config_args --version | \ 11598 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 11599 gnome_config_micro_version=`$GNOME_CONFIG $gnome_config_args --version | \ 11600 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 11601 needed_major_version=`echo $min_gnome_version | \ 11602 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 11603 needed_minor_version=`echo $min_gnome_version | \ 11604 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 11605 needed_micro_version=`echo $min_gnome_version | \ 11606 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 11607 11608 if test "$gnome_config_major_version" -lt "$needed_major_version"; then 11609 11610 enable_librsvg=no; 11611 { echo "$as_me:$LINENO: WARNING: Did not find librsvg installed" >&5 11612echo "$as_me: WARNING: Did not find librsvg installed" >&2;} 11613 11614 no_gnome=yes 11615 elif test "$gnome_config_major_version" = "$needed_major_version"; then 11616 if test -n "$needed_minor_version" -a "$gnome_config_minor_version" -lt "$needed_minor_version"; then 11617 11618 enable_librsvg=no; 11619 { echo "$as_me:$LINENO: WARNING: Did not find librsvg installed" >&5 11620echo "$as_me: WARNING: Did not find librsvg installed" >&2;} 11621 11622 no_gnome=yes 11623 elif test -n "$needed_minor_version" -a "$gnome_config_minor_version" = "$needed_minor_version"; then 11624 if test -n "$needed_micro_version" -a "$gnome_config_micro_version" -lt "$needed_micro_version"; then 11625 11626 enable_librsvg=no; 11627 { echo "$as_me:$LINENO: WARNING: Did not find librsvg installed" >&5 11628echo "$as_me: WARNING: Did not find librsvg installed" >&2;} 11629 11630 no_gnome=yes 11631 fi 11632 fi 11633 fi 11634 fi 11635 11636 11637 11638 11639 11640 if test "x$no_gnome" = x ; then 11641 echo "$as_me:$LINENO: result: yes" >&5 11642echo "${ECHO_T}yes" >&6 11643 : 11644 else 11645 echo "$as_me:$LINENO: result: no" >&5 11646echo "${ECHO_T}no" >&6 11647 if test "$GNOME_CONFIG" = "no" ; then 11648 echo "*** The gnome-config script could not be found." 11649 else 11650 : 11651 fi 11652 GNOME_CFLAGS="" 11653 GNOME_LIBS="" 11654 11655 enable_librsvg=no; 11656 { echo "$as_me:$LINENO: WARNING: Did not find librsvg installed" >&5 11657echo "$as_me: WARNING: Did not find librsvg installed" >&2;} 11658 11659 fi 11660 11661 tmp_gnome_libdir=`$GNOME_CONFIG $gnome_config_args --libdir` 11662 if test -n "xml librsvg"; then 11663 echo "$as_me:$LINENO: checking for additional GNOME modules" >&5 11664echo $ECHO_N "checking for additional GNOME modules... $ECHO_C" >&6 11665 fi 11666 for module in xml librsvg ""; do 11667 gnome_m4_notfound=no 11668 if test "$module" = zvt; then 11669 ZVT_LIBS="`$GNOME_CONFIG $gnome_config_args --libs zvt`" 11670 11671 elif test "$module" = gtk; then 11672 GTK_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gtk`" 11673 GTK_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gtk`" 11674 11675 11676 elif test "$module" = "glib"; then 11677 GLIB_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags glib`" 11678 GLIB_LIBS="`$GNOME_CONFIG $gnome_config_args --libs glib`" 11679 11680 11681 elif test "$module" = "oaf"; then 11682 OAF_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags oaf`" 11683 OAF_LIBS="`$GNOME_CONFIG $gnome_config_args --libs oaf`" 11684 11685 11686 elif test "$module" = "gnorba"; then 11687 GNORBA_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gnorba`" 11688 GNORBA_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gnorba`" 11689 11690 11691 elif test -n "$module"; then 11692 if $GNOME_CONFIG $gnome_config_args --cflags $module >/dev/null 2>&1; then 11693 tmp_bsnom=`echo $module | tr a-z A-Z` 11694 eval $tmp_bsnom'_CFLAGS'=\"`$GNOME_CONFIG $gnome_config_args --cflags $module`\" 11695 eval $tmp_bsnom'_LIBS'=\"`$GNOME_CONFIG $gnome_config_args --libs $module`\" 11696 else 11697 echo "$as_me:$LINENO: result: *** $module library is not installed" >&5 11698echo "${ECHO_T}*** $module library is not installed" >&6 11699 11700 enable_librsvg=no; 11701 { echo "$as_me:$LINENO: WARNING: Did not find librsvg installed" >&5 11702echo "$as_me: WARNING: Did not find librsvg installed" >&2;} 11703 11704 gnome_m4_notfound=yes 11705 fi 11706 fi 11707 if test "$gnome_m4_notfound" = no; then 11708 echo $ac_n " $module" 1>&6 11709 fi 11710 done 11711 if test -n "xml librsvg"; then 11712 echo "$as_me:$LINENO: result: " >&5 11713echo "${ECHO_T}" >&6 11714 fi 11715 11716 else 11717 enable_librsvg=no; 11718 fi 11719 fi 11720fi 11721 11722 11723 11724if test x"$enable_librsvg" = xyes; then 11725 ENABLE_LIBRSVG_TRUE= 11726 ENABLE_LIBRSVG_FALSE='#' 11727else 11728 ENABLE_LIBRSVG_TRUE='#' 11729 ENABLE_LIBRSVG_FALSE= 11730fi 11731 11732 11733if test x"$enable_librsvg" = xyes; then 11734 11735cat >>confdefs.h <<\_ACEOF 11736#define HAVE_LIBRSVG 1 11737_ACEOF 11738 11739 11740cat >>confdefs.h <<\_ACEOF 11741#define ENABLE_SVG 1 11742_ACEOF 11743 11744fi 11745 11746 11747 11748 11749 11750 11751 11752 11753# Check whether --with-libwmf or --without-libwmf was given. 11754if test "${with_libwmf+set}" = set; then 11755 withval="$with_libwmf" 11756 enable_libwmf="${withval}" 11757else 11758 enable_libwmf=yes 11759fi; 11760 11761if test "x$enable_libwmf" = xyes; then 11762 have_libwmf=no 11763 11764# Check whether --with-libwmf-prefix or --without-libwmf-prefix was given. 11765if test "${with_libwmf_prefix+set}" = set; then 11766 withval="$with_libwmf_prefix" 11767 libwmf_prefix="$withval" 11768else 11769 libwmf_prefix="" 11770fi; 11771 11772# Check whether --with-libwmf-exec-prefix or --without-libwmf-exec-prefix was given. 11773if test "${with_libwmf_exec_prefix+set}" = set; then 11774 withval="$with_libwmf_exec_prefix" 11775 libwmf_exec_prefix="$withval" 11776else 11777 libwmf_exec_prefix="" 11778fi; 11779# Check whether --enable-libwmftest or --disable-libwmftest was given. 11780if test "${enable_libwmftest+set}" = set; then 11781 enableval="$enable_libwmftest" 11782 11783else 11784 enable_libwmftest=yes 11785fi; 11786 11787 if test x$libwmf_exec_prefix != x ; then 11788 libwmf_args="$libwmf_args --exec-prefix=$libwmf_exec_prefix" 11789 if test x${LIBWMF_CONFIG+set} = xset ; then 11790 LIBWMF_CONFIG=$libwmf_exec_prefix/libwmf-config 11791 fi 11792 fi 11793 if test x$libwmf_prefix != x ; then 11794 libwmf_args="$libwmf_args --prefix=$libwmf_prefix" 11795 if test x${LIBWMF_CONFIG+set} = xset ; then 11796 LIBWMF_CONFIG=$libwmf_prefix/bin/libwmf-config 11797 fi 11798 fi 11799 11800 # Extract the first word of "libwmf-config", so it can be a program name with args. 11801set dummy libwmf-config; ac_word=$2 11802echo "$as_me:$LINENO: checking for $ac_word" >&5 11803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11804if test "${ac_cv_path_LIBWMF_CONFIG+set}" = set; then 11805 echo $ECHO_N "(cached) $ECHO_C" >&6 11806else 11807 case $LIBWMF_CONFIG in 11808 [\\/]* | ?:[\\/]*) 11809 ac_cv_path_LIBWMF_CONFIG="$LIBWMF_CONFIG" # Let the user override the test with a path. 11810 ;; 11811 *) 11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11813for as_dir in $PATH 11814do 11815 IFS=$as_save_IFS 11816 test -z "$as_dir" && as_dir=. 11817 for ac_exec_ext in '' $ac_executable_extensions; do 11818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11819 ac_cv_path_LIBWMF_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11821 break 2 11822 fi 11823done 11824done 11825 11826 test -z "$ac_cv_path_LIBWMF_CONFIG" && ac_cv_path_LIBWMF_CONFIG="no" 11827 ;; 11828esac 11829fi 11830LIBWMF_CONFIG=$ac_cv_path_LIBWMF_CONFIG 11831 11832if test -n "$LIBWMF_CONFIG"; then 11833 echo "$as_me:$LINENO: result: $LIBWMF_CONFIG" >&5 11834echo "${ECHO_T}$LIBWMF_CONFIG" >&6 11835else 11836 echo "$as_me:$LINENO: result: no" >&5 11837echo "${ECHO_T}no" >&6 11838fi 11839 11840 min_libwmf_version=$LIBWMF_REQUIRED 11841 echo "$as_me:$LINENO: checking for libwmf - version >= $min_libwmf_version" >&5 11842echo $ECHO_N "checking for libwmf - version >= $min_libwmf_version... $ECHO_C" >&6 11843 no_libwmf="" 11844 if test "$LIBWMF_CONFIG" = "no" ; then 11845 no_libwmf=yes 11846 else 11847 LIBWMF_CFLAGS=`$LIBWMF_CONFIG $libwmfconf_args --cflags` 11848 LIBWMF_LIBS=`$LIBWMF_CONFIG $libwmfconf_args --libs` 11849 11850 libwmf_major_version=`$LIBWMF_CONFIG $libwmf_args --version | \ 11851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 11852 libwmf_minor_version=`$LIBWMF_CONFIG $libwmf_args --version | \ 11853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 11854 libwmf_micro_version=`$LIBWMF_CONFIG $libwmf_config_args --version | \ 11855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 11856 if test "x$enable_libwmftest" = "xyes" ; then 11857 ac_save_CFLAGS="$CFLAGS" 11858 ac_save_LIBS="$LIBS" 11859 CFLAGS="$CFLAGS $LIBWMF_CFLAGS" 11860 LIBS="$LIBS $LIBWMF_LIBS" 11861 rm -f conf.libwmftest 11862 if test "$cross_compiling" = yes; then 11863 echo $ac_n "cross compiling; assumed OK... $ac_c" 11864else 11865 cat >conftest.$ac_ext <<_ACEOF 11866/* confdefs.h. */ 11867_ACEOF 11868cat confdefs.h >>conftest.$ac_ext 11869cat >>conftest.$ac_ext <<_ACEOF 11870/* end confdefs.h. */ 11871 11872#include <stdio.h> 11873#include <stdlib.h> 11874#include <string.h> 11875#include <libwmf/api.h> 11876 11877char* 11878my_strdup (char *str) 11879{ 11880 char *new_str; 11881 11882 if (str) 11883 { 11884 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 11885 strcpy (new_str, str); 11886 } 11887 else 11888 new_str = NULL; 11889 11890 return new_str; 11891} 11892 11893int main () 11894{ 11895 int major, minor, micro; 11896 char *tmp_version; 11897 11898 system ("touch conf.libwmftest"); 11899 11900 /* HP/UX 9 (%@#!) writes to sscanf strings */ 11901 tmp_version = my_strdup("$min_libwmf_version"); 11902 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 11903 printf("%s, bad version string\n", "$min_libwmf_version"); 11904 exit(1); 11905 } 11906 return 0; 11907} 11908 11909 11910_ACEOF 11911rm -f conftest$ac_exeext 11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11913 (eval $ac_link) 2>&5 11914 ac_status=$? 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11918 (eval $ac_try) 2>&5 11919 ac_status=$? 11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 (exit $ac_status); }; }; then 11922 : 11923else 11924 echo "$as_me: program exited with status $ac_status" >&5 11925echo "$as_me: failed program was:" >&5 11926sed 's/^/| /' conftest.$ac_ext >&5 11927 11928( exit $ac_status ) 11929no_libwmf=yes 11930fi 11931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11932fi 11933 CFLAGS="$ac_save_CFLAGS" 11934 LIBS="$ac_save_LIBS" 11935 fi 11936 fi 11937 if test "x$no_libwmf" = x ; then 11938 echo "$as_me:$LINENO: result: yes" >&5 11939echo "${ECHO_T}yes" >&6 11940 have_libwmf=yes 11941 else 11942 echo "$as_me:$LINENO: result: no" >&5 11943echo "${ECHO_T}no" >&6 11944 if test "$LIBWMF_CONFIG" = "no" ; then 11945 echo "*** The libwmf-config script installed by LIBWMF could not be found" 11946 echo "*** If LIBWMF was installed in PREFIX, make sure PREFIX/bin is in" 11947 echo "*** your path, or set the LIBWMF_CONFIG environment variable to the" 11948 echo "*** full path to libwmf-config." 11949 else 11950 if test -f conf.libwmftest ; then 11951 : 11952 else 11953 echo "*** Could not run LIBWMF test program, checking why..." 11954 CFLAGS="$CFLAGS $LIBWMF_CFLAGS" 11955 LIBS="$LIBS $LIBWMF_LIBS" 11956 cat >conftest.$ac_ext <<_ACEOF 11957/* confdefs.h. */ 11958_ACEOF 11959cat confdefs.h >>conftest.$ac_ext 11960cat >>conftest.$ac_ext <<_ACEOF 11961/* end confdefs.h. */ 11962 11963#include <stdio.h> 11964#include <libwmf/api.h> 11965 11966int 11967main () 11968{ 11969 return 0; 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974rm -f conftest.$ac_objext conftest$ac_exeext 11975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11976 (eval $ac_link) 2>conftest.er1 11977 ac_status=$? 11978 grep -v '^ *+' conftest.er1 >conftest.err 11979 rm -f conftest.er1 11980 cat conftest.err >&5 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); } && 11983 { ac_try='test -z "$ac_c_werror_flag" 11984 || test ! -s conftest.err' 11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11986 (eval $ac_try) 2>&5 11987 ac_status=$? 11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11989 (exit $ac_status); }; } && 11990 { ac_try='test -s conftest$ac_exeext' 11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11992 (eval $ac_try) 2>&5 11993 ac_status=$? 11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11995 (exit $ac_status); }; }; then 11996 echo "*** The test program compiled, but did not run. This usually means" 11997 echo "*** that the run-time linker is not finding LIBWMF or finding the wrong" 11998 echo "*** version of LIBWMF. If it is not finding LIBWMF, you'll need to set your" 11999 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12000 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12001 echo "*** is required on your system" 12002 echo "***" 12003 echo "*** If you have an old version installed, it is best to remove it, although" 12004 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12005else 12006 echo "$as_me: failed program was:" >&5 12007sed 's/^/| /' conftest.$ac_ext >&5 12008 12009 echo "*** The test program failed to compile or link. See the file config.log for the" 12010 echo "*** exact error that occured. This usually means LIBWMF was incorrectly installed" 12011 echo "*** or that you have moved LIBWMF since it was installed. In the latter case, you" 12012 echo "*** may want to edit the libwmf-config script: $LIBWMF_CONFIG" 12013fi 12014rm -f conftest.err conftest.$ac_objext \ 12015 conftest$ac_exeext conftest.$ac_ext 12016 CFLAGS="$ac_save_CFLAGS" 12017 LIBS="$ac_save_LIBS" 12018 fi 12019 fi 12020 LIBWMF_CFLAGS="" 12021 LIBWMF_LIBS="" 12022 have_libwmf=no 12023 fi 12024 12025 12026 rm -f conf.libwmftest 12027 12028 12029 if test "x$have_libwmf" = xyes; then 12030 12031cat >>confdefs.h <<\_ACEOF 12032#define ENABLE_WMF 1 12033_ACEOF 12034 12035 else 12036 { echo "$as_me:$LINENO: WARNING: Did not find libwmf installed" >&5 12037echo "$as_me: WARNING: Did not find libwmf installed" >&2;} 12038 enable_libwmf=no; 12039 fi 12040fi 12041 12042 12043 12044if test x"$enable_libwmf" = xyes; then 12045 ENABLE_WMF_TRUE= 12046 ENABLE_WMF_FALSE='#' 12047else 12048 ENABLE_WMF_TRUE='#' 12049 ENABLE_WMF_FALSE= 12050fi 12051 12052 12053 12054if test "$no_x" = yes; then 12055 # Not all programs may use this symbol, but it does not hurt to define it. 12056 12057cat >>confdefs.h <<\_ACEOF 12058#define X_DISPLAY_MISSING 1 12059_ACEOF 12060 12061 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 12062else 12063 if test -n "$x_includes"; then 12064 X_CFLAGS="$X_CFLAGS -I$x_includes" 12065 fi 12066 12067 # It would also be nice to do this for all -L options, not just this one. 12068 if test -n "$x_libraries"; then 12069 X_LIBS="$X_LIBS -L$x_libraries" 12070 # For Solaris; some versions of Sun CC require a space after -R and 12071 # others require no space. Words are not sufficient . . . . 12072 case `(uname -sr) 2>/dev/null` in 12073 "SunOS 5"*) 12074 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 12075echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 12076 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 12077 cat >conftest.$ac_ext <<_ACEOF 12078/* confdefs.h. */ 12079_ACEOF 12080cat confdefs.h >>conftest.$ac_ext 12081cat >>conftest.$ac_ext <<_ACEOF 12082/* end confdefs.h. */ 12083 12084int 12085main () 12086{ 12087 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092rm -f conftest.$ac_objext conftest$ac_exeext 12093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12094 (eval $ac_link) 2>conftest.er1 12095 ac_status=$? 12096 grep -v '^ *+' conftest.er1 >conftest.err 12097 rm -f conftest.er1 12098 cat conftest.err >&5 12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12100 (exit $ac_status); } && 12101 { ac_try='test -z "$ac_c_werror_flag" 12102 || test ! -s conftest.err' 12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12104 (eval $ac_try) 2>&5 12105 ac_status=$? 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 (exit $ac_status); }; } && 12108 { ac_try='test -s conftest$ac_exeext' 12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12110 (eval $ac_try) 2>&5 12111 ac_status=$? 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); }; }; then 12114 ac_R_nospace=yes 12115else 12116 echo "$as_me: failed program was:" >&5 12117sed 's/^/| /' conftest.$ac_ext >&5 12118 12119ac_R_nospace=no 12120fi 12121rm -f conftest.err conftest.$ac_objext \ 12122 conftest$ac_exeext conftest.$ac_ext 12123 if test $ac_R_nospace = yes; then 12124 echo "$as_me:$LINENO: result: no" >&5 12125echo "${ECHO_T}no" >&6 12126 X_LIBS="$X_LIBS -R$x_libraries" 12127 else 12128 LIBS="$ac_xsave_LIBS -R $x_libraries" 12129 cat >conftest.$ac_ext <<_ACEOF 12130/* confdefs.h. */ 12131_ACEOF 12132cat confdefs.h >>conftest.$ac_ext 12133cat >>conftest.$ac_ext <<_ACEOF 12134/* end confdefs.h. */ 12135 12136int 12137main () 12138{ 12139 12140 ; 12141 return 0; 12142} 12143_ACEOF 12144rm -f conftest.$ac_objext conftest$ac_exeext 12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12146 (eval $ac_link) 2>conftest.er1 12147 ac_status=$? 12148 grep -v '^ *+' conftest.er1 >conftest.err 12149 rm -f conftest.er1 12150 cat conftest.err >&5 12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12152 (exit $ac_status); } && 12153 { ac_try='test -z "$ac_c_werror_flag" 12154 || test ! -s conftest.err' 12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12156 (eval $ac_try) 2>&5 12157 ac_status=$? 12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12159 (exit $ac_status); }; } && 12160 { ac_try='test -s conftest$ac_exeext' 12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12162 (eval $ac_try) 2>&5 12163 ac_status=$? 12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12165 (exit $ac_status); }; }; then 12166 ac_R_space=yes 12167else 12168 echo "$as_me: failed program was:" >&5 12169sed 's/^/| /' conftest.$ac_ext >&5 12170 12171ac_R_space=no 12172fi 12173rm -f conftest.err conftest.$ac_objext \ 12174 conftest$ac_exeext conftest.$ac_ext 12175 if test $ac_R_space = yes; then 12176 echo "$as_me:$LINENO: result: yes" >&5 12177echo "${ECHO_T}yes" >&6 12178 X_LIBS="$X_LIBS -R $x_libraries" 12179 else 12180 echo "$as_me:$LINENO: result: neither works" >&5 12181echo "${ECHO_T}neither works" >&6 12182 fi 12183 fi 12184 LIBS=$ac_xsave_LIBS 12185 esac 12186 fi 12187 12188 # Check for system-dependent libraries X programs must link with. 12189 # Do this before checking for the system-independent R6 libraries 12190 # (-lICE), since we may need -lsocket or whatever for X linking. 12191 12192 if test "$ISC" = yes; then 12193 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 12194 else 12195 # Martyn Johnson says this is needed for Ultrix, if the X 12196 # libraries were built with DECnet support. And Karl Berry says 12197 # the Alpha needs dnet_stub (dnet does not exist). 12198 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 12199 cat >conftest.$ac_ext <<_ACEOF 12200/* confdefs.h. */ 12201_ACEOF 12202cat confdefs.h >>conftest.$ac_ext 12203cat >>conftest.$ac_ext <<_ACEOF 12204/* end confdefs.h. */ 12205 12206/* Override any gcc2 internal prototype to avoid an error. */ 12207#ifdef __cplusplus 12208extern "C" 12209#endif 12210/* We use char because int might match the return type of a gcc2 12211 builtin and then its argument prototype would still apply. */ 12212char XOpenDisplay (); 12213int 12214main () 12215{ 12216XOpenDisplay (); 12217 ; 12218 return 0; 12219} 12220_ACEOF 12221rm -f conftest.$ac_objext conftest$ac_exeext 12222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12223 (eval $ac_link) 2>conftest.er1 12224 ac_status=$? 12225 grep -v '^ *+' conftest.er1 >conftest.err 12226 rm -f conftest.er1 12227 cat conftest.err >&5 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); } && 12230 { ac_try='test -z "$ac_c_werror_flag" 12231 || test ! -s conftest.err' 12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12233 (eval $ac_try) 2>&5 12234 ac_status=$? 12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12236 (exit $ac_status); }; } && 12237 { ac_try='test -s conftest$ac_exeext' 12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12239 (eval $ac_try) 2>&5 12240 ac_status=$? 12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 (exit $ac_status); }; }; then 12243 : 12244else 12245 echo "$as_me: failed program was:" >&5 12246sed 's/^/| /' conftest.$ac_ext >&5 12247 12248echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 12249echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 12250if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 12251 echo $ECHO_N "(cached) $ECHO_C" >&6 12252else 12253 ac_check_lib_save_LIBS=$LIBS 12254LIBS="-ldnet $LIBS" 12255cat >conftest.$ac_ext <<_ACEOF 12256/* confdefs.h. */ 12257_ACEOF 12258cat confdefs.h >>conftest.$ac_ext 12259cat >>conftest.$ac_ext <<_ACEOF 12260/* end confdefs.h. */ 12261 12262/* Override any gcc2 internal prototype to avoid an error. */ 12263#ifdef __cplusplus 12264extern "C" 12265#endif 12266/* We use char because int might match the return type of a gcc2 12267 builtin and then its argument prototype would still apply. */ 12268char dnet_ntoa (); 12269int 12270main () 12271{ 12272dnet_ntoa (); 12273 ; 12274 return 0; 12275} 12276_ACEOF 12277rm -f conftest.$ac_objext conftest$ac_exeext 12278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12279 (eval $ac_link) 2>conftest.er1 12280 ac_status=$? 12281 grep -v '^ *+' conftest.er1 >conftest.err 12282 rm -f conftest.er1 12283 cat conftest.err >&5 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); } && 12286 { ac_try='test -z "$ac_c_werror_flag" 12287 || test ! -s conftest.err' 12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12289 (eval $ac_try) 2>&5 12290 ac_status=$? 12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12292 (exit $ac_status); }; } && 12293 { ac_try='test -s conftest$ac_exeext' 12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12295 (eval $ac_try) 2>&5 12296 ac_status=$? 12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12298 (exit $ac_status); }; }; then 12299 ac_cv_lib_dnet_dnet_ntoa=yes 12300else 12301 echo "$as_me: failed program was:" >&5 12302sed 's/^/| /' conftest.$ac_ext >&5 12303 12304ac_cv_lib_dnet_dnet_ntoa=no 12305fi 12306rm -f conftest.err conftest.$ac_objext \ 12307 conftest$ac_exeext conftest.$ac_ext 12308LIBS=$ac_check_lib_save_LIBS 12309fi 12310echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 12311echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 12312if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 12313 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 12314fi 12315 12316 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 12317 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 12318echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 12319if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 12320 echo $ECHO_N "(cached) $ECHO_C" >&6 12321else 12322 ac_check_lib_save_LIBS=$LIBS 12323LIBS="-ldnet_stub $LIBS" 12324cat >conftest.$ac_ext <<_ACEOF 12325/* confdefs.h. */ 12326_ACEOF 12327cat confdefs.h >>conftest.$ac_ext 12328cat >>conftest.$ac_ext <<_ACEOF 12329/* end confdefs.h. */ 12330 12331/* Override any gcc2 internal prototype to avoid an error. */ 12332#ifdef __cplusplus 12333extern "C" 12334#endif 12335/* We use char because int might match the return type of a gcc2 12336 builtin and then its argument prototype would still apply. */ 12337char dnet_ntoa (); 12338int 12339main () 12340{ 12341dnet_ntoa (); 12342 ; 12343 return 0; 12344} 12345_ACEOF 12346rm -f conftest.$ac_objext conftest$ac_exeext 12347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12348 (eval $ac_link) 2>conftest.er1 12349 ac_status=$? 12350 grep -v '^ *+' conftest.er1 >conftest.err 12351 rm -f conftest.er1 12352 cat conftest.err >&5 12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12354 (exit $ac_status); } && 12355 { ac_try='test -z "$ac_c_werror_flag" 12356 || test ! -s conftest.err' 12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12358 (eval $ac_try) 2>&5 12359 ac_status=$? 12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 (exit $ac_status); }; } && 12362 { ac_try='test -s conftest$ac_exeext' 12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12364 (eval $ac_try) 2>&5 12365 ac_status=$? 12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12367 (exit $ac_status); }; }; then 12368 ac_cv_lib_dnet_stub_dnet_ntoa=yes 12369else 12370 echo "$as_me: failed program was:" >&5 12371sed 's/^/| /' conftest.$ac_ext >&5 12372 12373ac_cv_lib_dnet_stub_dnet_ntoa=no 12374fi 12375rm -f conftest.err conftest.$ac_objext \ 12376 conftest$ac_exeext conftest.$ac_ext 12377LIBS=$ac_check_lib_save_LIBS 12378fi 12379echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 12380echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 12381if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 12382 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 12383fi 12384 12385 fi 12386fi 12387rm -f conftest.err conftest.$ac_objext \ 12388 conftest$ac_exeext conftest.$ac_ext 12389 LIBS="$ac_xsave_LIBS" 12390 12391 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 12392 # to get the SysV transport functions. 12393 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 12394 # needs -lnsl. 12395 # The nsl library prevents programs from opening the X display 12396 # on Irix 5.2, according to T.E. Dickey. 12397 # The functions gethostbyname, getservbyname, and inet_addr are 12398 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 12399 echo "$as_me:$LINENO: checking for gethostbyname" >&5 12400echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 12401if test "${ac_cv_func_gethostbyname+set}" = set; then 12402 echo $ECHO_N "(cached) $ECHO_C" >&6 12403else 12404 cat >conftest.$ac_ext <<_ACEOF 12405/* confdefs.h. */ 12406_ACEOF 12407cat confdefs.h >>conftest.$ac_ext 12408cat >>conftest.$ac_ext <<_ACEOF 12409/* end confdefs.h. */ 12410/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 12411 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12412#define gethostbyname innocuous_gethostbyname 12413 12414/* System header to define __stub macros and hopefully few prototypes, 12415 which can conflict with char gethostbyname (); below. 12416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12417 <limits.h> exists even on freestanding compilers. */ 12418 12419#ifdef __STDC__ 12420# include <limits.h> 12421#else 12422# include <assert.h> 12423#endif 12424 12425#undef gethostbyname 12426 12427/* Override any gcc2 internal prototype to avoid an error. */ 12428#ifdef __cplusplus 12429extern "C" 12430{ 12431#endif 12432/* We use char because int might match the return type of a gcc2 12433 builtin and then its argument prototype would still apply. */ 12434char gethostbyname (); 12435/* The GNU C library defines this for functions which it implements 12436 to always fail with ENOSYS. Some functions are actually named 12437 something starting with __ and the normal name is an alias. */ 12438#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 12439choke me 12440#else 12441char (*f) () = gethostbyname; 12442#endif 12443#ifdef __cplusplus 12444} 12445#endif 12446 12447int 12448main () 12449{ 12450return f != gethostbyname; 12451 ; 12452 return 0; 12453} 12454_ACEOF 12455rm -f conftest.$ac_objext conftest$ac_exeext 12456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12457 (eval $ac_link) 2>conftest.er1 12458 ac_status=$? 12459 grep -v '^ *+' conftest.er1 >conftest.err 12460 rm -f conftest.er1 12461 cat conftest.err >&5 12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12463 (exit $ac_status); } && 12464 { ac_try='test -z "$ac_c_werror_flag" 12465 || test ! -s conftest.err' 12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12467 (eval $ac_try) 2>&5 12468 ac_status=$? 12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12470 (exit $ac_status); }; } && 12471 { ac_try='test -s conftest$ac_exeext' 12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12473 (eval $ac_try) 2>&5 12474 ac_status=$? 12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12476 (exit $ac_status); }; }; then 12477 ac_cv_func_gethostbyname=yes 12478else 12479 echo "$as_me: failed program was:" >&5 12480sed 's/^/| /' conftest.$ac_ext >&5 12481 12482ac_cv_func_gethostbyname=no 12483fi 12484rm -f conftest.err conftest.$ac_objext \ 12485 conftest$ac_exeext conftest.$ac_ext 12486fi 12487echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 12488echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 12489 12490 if test $ac_cv_func_gethostbyname = no; then 12491 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 12492echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 12493if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 12494 echo $ECHO_N "(cached) $ECHO_C" >&6 12495else 12496 ac_check_lib_save_LIBS=$LIBS 12497LIBS="-lnsl $LIBS" 12498cat >conftest.$ac_ext <<_ACEOF 12499/* confdefs.h. */ 12500_ACEOF 12501cat confdefs.h >>conftest.$ac_ext 12502cat >>conftest.$ac_ext <<_ACEOF 12503/* end confdefs.h. */ 12504 12505/* Override any gcc2 internal prototype to avoid an error. */ 12506#ifdef __cplusplus 12507extern "C" 12508#endif 12509/* We use char because int might match the return type of a gcc2 12510 builtin and then its argument prototype would still apply. */ 12511char gethostbyname (); 12512int 12513main () 12514{ 12515gethostbyname (); 12516 ; 12517 return 0; 12518} 12519_ACEOF 12520rm -f conftest.$ac_objext conftest$ac_exeext 12521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12522 (eval $ac_link) 2>conftest.er1 12523 ac_status=$? 12524 grep -v '^ *+' conftest.er1 >conftest.err 12525 rm -f conftest.er1 12526 cat conftest.err >&5 12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12528 (exit $ac_status); } && 12529 { ac_try='test -z "$ac_c_werror_flag" 12530 || test ! -s conftest.err' 12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12532 (eval $ac_try) 2>&5 12533 ac_status=$? 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); }; } && 12536 { ac_try='test -s conftest$ac_exeext' 12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12538 (eval $ac_try) 2>&5 12539 ac_status=$? 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; }; then 12542 ac_cv_lib_nsl_gethostbyname=yes 12543else 12544 echo "$as_me: failed program was:" >&5 12545sed 's/^/| /' conftest.$ac_ext >&5 12546 12547ac_cv_lib_nsl_gethostbyname=no 12548fi 12549rm -f conftest.err conftest.$ac_objext \ 12550 conftest$ac_exeext conftest.$ac_ext 12551LIBS=$ac_check_lib_save_LIBS 12552fi 12553echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 12554echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 12555if test $ac_cv_lib_nsl_gethostbyname = yes; then 12556 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 12557fi 12558 12559 if test $ac_cv_lib_nsl_gethostbyname = no; then 12560 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 12561echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 12562if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 12563 echo $ECHO_N "(cached) $ECHO_C" >&6 12564else 12565 ac_check_lib_save_LIBS=$LIBS 12566LIBS="-lbsd $LIBS" 12567cat >conftest.$ac_ext <<_ACEOF 12568/* confdefs.h. */ 12569_ACEOF 12570cat confdefs.h >>conftest.$ac_ext 12571cat >>conftest.$ac_ext <<_ACEOF 12572/* end confdefs.h. */ 12573 12574/* Override any gcc2 internal prototype to avoid an error. */ 12575#ifdef __cplusplus 12576extern "C" 12577#endif 12578/* We use char because int might match the return type of a gcc2 12579 builtin and then its argument prototype would still apply. */ 12580char gethostbyname (); 12581int 12582main () 12583{ 12584gethostbyname (); 12585 ; 12586 return 0; 12587} 12588_ACEOF 12589rm -f conftest.$ac_objext conftest$ac_exeext 12590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12591 (eval $ac_link) 2>conftest.er1 12592 ac_status=$? 12593 grep -v '^ *+' conftest.er1 >conftest.err 12594 rm -f conftest.er1 12595 cat conftest.err >&5 12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12597 (exit $ac_status); } && 12598 { ac_try='test -z "$ac_c_werror_flag" 12599 || test ! -s conftest.err' 12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12601 (eval $ac_try) 2>&5 12602 ac_status=$? 12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); }; } && 12605 { ac_try='test -s conftest$ac_exeext' 12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12607 (eval $ac_try) 2>&5 12608 ac_status=$? 12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12610 (exit $ac_status); }; }; then 12611 ac_cv_lib_bsd_gethostbyname=yes 12612else 12613 echo "$as_me: failed program was:" >&5 12614sed 's/^/| /' conftest.$ac_ext >&5 12615 12616ac_cv_lib_bsd_gethostbyname=no 12617fi 12618rm -f conftest.err conftest.$ac_objext \ 12619 conftest$ac_exeext conftest.$ac_ext 12620LIBS=$ac_check_lib_save_LIBS 12621fi 12622echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 12623echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 12624if test $ac_cv_lib_bsd_gethostbyname = yes; then 12625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 12626fi 12627 12628 fi 12629 fi 12630 12631 # lieder@skyler.mavd.honeywell.com says without -lsocket, 12632 # socket/setsockopt and other routines are undefined under SCO ODT 12633 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 12634 # on later versions), says Simon Leinen: it contains gethostby* 12635 # variants that don't use the name server (or something). -lsocket 12636 # must be given before -lnsl if both are needed. We assume that 12637 # if connect needs -lnsl, so does gethostbyname. 12638 echo "$as_me:$LINENO: checking for connect" >&5 12639echo $ECHO_N "checking for connect... $ECHO_C" >&6 12640if test "${ac_cv_func_connect+set}" = set; then 12641 echo $ECHO_N "(cached) $ECHO_C" >&6 12642else 12643 cat >conftest.$ac_ext <<_ACEOF 12644/* confdefs.h. */ 12645_ACEOF 12646cat confdefs.h >>conftest.$ac_ext 12647cat >>conftest.$ac_ext <<_ACEOF 12648/* end confdefs.h. */ 12649/* Define connect to an innocuous variant, in case <limits.h> declares connect. 12650 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12651#define connect innocuous_connect 12652 12653/* System header to define __stub macros and hopefully few prototypes, 12654 which can conflict with char connect (); below. 12655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12656 <limits.h> exists even on freestanding compilers. */ 12657 12658#ifdef __STDC__ 12659# include <limits.h> 12660#else 12661# include <assert.h> 12662#endif 12663 12664#undef connect 12665 12666/* Override any gcc2 internal prototype to avoid an error. */ 12667#ifdef __cplusplus 12668extern "C" 12669{ 12670#endif 12671/* We use char because int might match the return type of a gcc2 12672 builtin and then its argument prototype would still apply. */ 12673char connect (); 12674/* The GNU C library defines this for functions which it implements 12675 to always fail with ENOSYS. Some functions are actually named 12676 something starting with __ and the normal name is an alias. */ 12677#if defined (__stub_connect) || defined (__stub___connect) 12678choke me 12679#else 12680char (*f) () = connect; 12681#endif 12682#ifdef __cplusplus 12683} 12684#endif 12685 12686int 12687main () 12688{ 12689return f != connect; 12690 ; 12691 return 0; 12692} 12693_ACEOF 12694rm -f conftest.$ac_objext conftest$ac_exeext 12695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12696 (eval $ac_link) 2>conftest.er1 12697 ac_status=$? 12698 grep -v '^ *+' conftest.er1 >conftest.err 12699 rm -f conftest.er1 12700 cat conftest.err >&5 12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12702 (exit $ac_status); } && 12703 { ac_try='test -z "$ac_c_werror_flag" 12704 || test ! -s conftest.err' 12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12706 (eval $ac_try) 2>&5 12707 ac_status=$? 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); }; } && 12710 { ac_try='test -s conftest$ac_exeext' 12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12712 (eval $ac_try) 2>&5 12713 ac_status=$? 12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12715 (exit $ac_status); }; }; then 12716 ac_cv_func_connect=yes 12717else 12718 echo "$as_me: failed program was:" >&5 12719sed 's/^/| /' conftest.$ac_ext >&5 12720 12721ac_cv_func_connect=no 12722fi 12723rm -f conftest.err conftest.$ac_objext \ 12724 conftest$ac_exeext conftest.$ac_ext 12725fi 12726echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 12727echo "${ECHO_T}$ac_cv_func_connect" >&6 12728 12729 if test $ac_cv_func_connect = no; then 12730 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 12731echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 12732if test "${ac_cv_lib_socket_connect+set}" = set; then 12733 echo $ECHO_N "(cached) $ECHO_C" >&6 12734else 12735 ac_check_lib_save_LIBS=$LIBS 12736LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 12737cat >conftest.$ac_ext <<_ACEOF 12738/* confdefs.h. */ 12739_ACEOF 12740cat confdefs.h >>conftest.$ac_ext 12741cat >>conftest.$ac_ext <<_ACEOF 12742/* end confdefs.h. */ 12743 12744/* Override any gcc2 internal prototype to avoid an error. */ 12745#ifdef __cplusplus 12746extern "C" 12747#endif 12748/* We use char because int might match the return type of a gcc2 12749 builtin and then its argument prototype would still apply. */ 12750char connect (); 12751int 12752main () 12753{ 12754connect (); 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759rm -f conftest.$ac_objext conftest$ac_exeext 12760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12761 (eval $ac_link) 2>conftest.er1 12762 ac_status=$? 12763 grep -v '^ *+' conftest.er1 >conftest.err 12764 rm -f conftest.er1 12765 cat conftest.err >&5 12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12767 (exit $ac_status); } && 12768 { ac_try='test -z "$ac_c_werror_flag" 12769 || test ! -s conftest.err' 12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12771 (eval $ac_try) 2>&5 12772 ac_status=$? 12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12774 (exit $ac_status); }; } && 12775 { ac_try='test -s conftest$ac_exeext' 12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12777 (eval $ac_try) 2>&5 12778 ac_status=$? 12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12780 (exit $ac_status); }; }; then 12781 ac_cv_lib_socket_connect=yes 12782else 12783 echo "$as_me: failed program was:" >&5 12784sed 's/^/| /' conftest.$ac_ext >&5 12785 12786ac_cv_lib_socket_connect=no 12787fi 12788rm -f conftest.err conftest.$ac_objext \ 12789 conftest$ac_exeext conftest.$ac_ext 12790LIBS=$ac_check_lib_save_LIBS 12791fi 12792echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 12793echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 12794if test $ac_cv_lib_socket_connect = yes; then 12795 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 12796fi 12797 12798 fi 12799 12800 # Guillermo Gomez says -lposix is necessary on A/UX. 12801 echo "$as_me:$LINENO: checking for remove" >&5 12802echo $ECHO_N "checking for remove... $ECHO_C" >&6 12803if test "${ac_cv_func_remove+set}" = set; then 12804 echo $ECHO_N "(cached) $ECHO_C" >&6 12805else 12806 cat >conftest.$ac_ext <<_ACEOF 12807/* confdefs.h. */ 12808_ACEOF 12809cat confdefs.h >>conftest.$ac_ext 12810cat >>conftest.$ac_ext <<_ACEOF 12811/* end confdefs.h. */ 12812/* Define remove to an innocuous variant, in case <limits.h> declares remove. 12813 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12814#define remove innocuous_remove 12815 12816/* System header to define __stub macros and hopefully few prototypes, 12817 which can conflict with char remove (); below. 12818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12819 <limits.h> exists even on freestanding compilers. */ 12820 12821#ifdef __STDC__ 12822# include <limits.h> 12823#else 12824# include <assert.h> 12825#endif 12826 12827#undef remove 12828 12829/* Override any gcc2 internal prototype to avoid an error. */ 12830#ifdef __cplusplus 12831extern "C" 12832{ 12833#endif 12834/* We use char because int might match the return type of a gcc2 12835 builtin and then its argument prototype would still apply. */ 12836char remove (); 12837/* The GNU C library defines this for functions which it implements 12838 to always fail with ENOSYS. Some functions are actually named 12839 something starting with __ and the normal name is an alias. */ 12840#if defined (__stub_remove) || defined (__stub___remove) 12841choke me 12842#else 12843char (*f) () = remove; 12844#endif 12845#ifdef __cplusplus 12846} 12847#endif 12848 12849int 12850main () 12851{ 12852return f != remove; 12853 ; 12854 return 0; 12855} 12856_ACEOF 12857rm -f conftest.$ac_objext conftest$ac_exeext 12858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12859 (eval $ac_link) 2>conftest.er1 12860 ac_status=$? 12861 grep -v '^ *+' conftest.er1 >conftest.err 12862 rm -f conftest.er1 12863 cat conftest.err >&5 12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12865 (exit $ac_status); } && 12866 { ac_try='test -z "$ac_c_werror_flag" 12867 || test ! -s conftest.err' 12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12869 (eval $ac_try) 2>&5 12870 ac_status=$? 12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12872 (exit $ac_status); }; } && 12873 { ac_try='test -s conftest$ac_exeext' 12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12875 (eval $ac_try) 2>&5 12876 ac_status=$? 12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12878 (exit $ac_status); }; }; then 12879 ac_cv_func_remove=yes 12880else 12881 echo "$as_me: failed program was:" >&5 12882sed 's/^/| /' conftest.$ac_ext >&5 12883 12884ac_cv_func_remove=no 12885fi 12886rm -f conftest.err conftest.$ac_objext \ 12887 conftest$ac_exeext conftest.$ac_ext 12888fi 12889echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 12890echo "${ECHO_T}$ac_cv_func_remove" >&6 12891 12892 if test $ac_cv_func_remove = no; then 12893 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 12894echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 12895if test "${ac_cv_lib_posix_remove+set}" = set; then 12896 echo $ECHO_N "(cached) $ECHO_C" >&6 12897else 12898 ac_check_lib_save_LIBS=$LIBS 12899LIBS="-lposix $LIBS" 12900cat >conftest.$ac_ext <<_ACEOF 12901/* confdefs.h. */ 12902_ACEOF 12903cat confdefs.h >>conftest.$ac_ext 12904cat >>conftest.$ac_ext <<_ACEOF 12905/* end confdefs.h. */ 12906 12907/* Override any gcc2 internal prototype to avoid an error. */ 12908#ifdef __cplusplus 12909extern "C" 12910#endif 12911/* We use char because int might match the return type of a gcc2 12912 builtin and then its argument prototype would still apply. */ 12913char remove (); 12914int 12915main () 12916{ 12917remove (); 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922rm -f conftest.$ac_objext conftest$ac_exeext 12923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12924 (eval $ac_link) 2>conftest.er1 12925 ac_status=$? 12926 grep -v '^ *+' conftest.er1 >conftest.err 12927 rm -f conftest.er1 12928 cat conftest.err >&5 12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12930 (exit $ac_status); } && 12931 { ac_try='test -z "$ac_c_werror_flag" 12932 || test ! -s conftest.err' 12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12934 (eval $ac_try) 2>&5 12935 ac_status=$? 12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); }; } && 12938 { ac_try='test -s conftest$ac_exeext' 12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12940 (eval $ac_try) 2>&5 12941 ac_status=$? 12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); }; }; then 12944 ac_cv_lib_posix_remove=yes 12945else 12946 echo "$as_me: failed program was:" >&5 12947sed 's/^/| /' conftest.$ac_ext >&5 12948 12949ac_cv_lib_posix_remove=no 12950fi 12951rm -f conftest.err conftest.$ac_objext \ 12952 conftest$ac_exeext conftest.$ac_ext 12953LIBS=$ac_check_lib_save_LIBS 12954fi 12955echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 12956echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 12957if test $ac_cv_lib_posix_remove = yes; then 12958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 12959fi 12960 12961 fi 12962 12963 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 12964 echo "$as_me:$LINENO: checking for shmat" >&5 12965echo $ECHO_N "checking for shmat... $ECHO_C" >&6 12966if test "${ac_cv_func_shmat+set}" = set; then 12967 echo $ECHO_N "(cached) $ECHO_C" >&6 12968else 12969 cat >conftest.$ac_ext <<_ACEOF 12970/* confdefs.h. */ 12971_ACEOF 12972cat confdefs.h >>conftest.$ac_ext 12973cat >>conftest.$ac_ext <<_ACEOF 12974/* end confdefs.h. */ 12975/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 12976 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12977#define shmat innocuous_shmat 12978 12979/* System header to define __stub macros and hopefully few prototypes, 12980 which can conflict with char shmat (); below. 12981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12982 <limits.h> exists even on freestanding compilers. */ 12983 12984#ifdef __STDC__ 12985# include <limits.h> 12986#else 12987# include <assert.h> 12988#endif 12989 12990#undef shmat 12991 12992/* Override any gcc2 internal prototype to avoid an error. */ 12993#ifdef __cplusplus 12994extern "C" 12995{ 12996#endif 12997/* We use char because int might match the return type of a gcc2 12998 builtin and then its argument prototype would still apply. */ 12999char shmat (); 13000/* The GNU C library defines this for functions which it implements 13001 to always fail with ENOSYS. Some functions are actually named 13002 something starting with __ and the normal name is an alias. */ 13003#if defined (__stub_shmat) || defined (__stub___shmat) 13004choke me 13005#else 13006char (*f) () = shmat; 13007#endif 13008#ifdef __cplusplus 13009} 13010#endif 13011 13012int 13013main () 13014{ 13015return f != shmat; 13016 ; 13017 return 0; 13018} 13019_ACEOF 13020rm -f conftest.$ac_objext conftest$ac_exeext 13021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13022 (eval $ac_link) 2>conftest.er1 13023 ac_status=$? 13024 grep -v '^ *+' conftest.er1 >conftest.err 13025 rm -f conftest.er1 13026 cat conftest.err >&5 13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13028 (exit $ac_status); } && 13029 { ac_try='test -z "$ac_c_werror_flag" 13030 || test ! -s conftest.err' 13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13032 (eval $ac_try) 2>&5 13033 ac_status=$? 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); }; } && 13036 { ac_try='test -s conftest$ac_exeext' 13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13038 (eval $ac_try) 2>&5 13039 ac_status=$? 13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13041 (exit $ac_status); }; }; then 13042 ac_cv_func_shmat=yes 13043else 13044 echo "$as_me: failed program was:" >&5 13045sed 's/^/| /' conftest.$ac_ext >&5 13046 13047ac_cv_func_shmat=no 13048fi 13049rm -f conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051fi 13052echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 13053echo "${ECHO_T}$ac_cv_func_shmat" >&6 13054 13055 if test $ac_cv_func_shmat = no; then 13056 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 13057echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 13058if test "${ac_cv_lib_ipc_shmat+set}" = set; then 13059 echo $ECHO_N "(cached) $ECHO_C" >&6 13060else 13061 ac_check_lib_save_LIBS=$LIBS 13062LIBS="-lipc $LIBS" 13063cat >conftest.$ac_ext <<_ACEOF 13064/* confdefs.h. */ 13065_ACEOF 13066cat confdefs.h >>conftest.$ac_ext 13067cat >>conftest.$ac_ext <<_ACEOF 13068/* end confdefs.h. */ 13069 13070/* Override any gcc2 internal prototype to avoid an error. */ 13071#ifdef __cplusplus 13072extern "C" 13073#endif 13074/* We use char because int might match the return type of a gcc2 13075 builtin and then its argument prototype would still apply. */ 13076char shmat (); 13077int 13078main () 13079{ 13080shmat (); 13081 ; 13082 return 0; 13083} 13084_ACEOF 13085rm -f conftest.$ac_objext conftest$ac_exeext 13086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13087 (eval $ac_link) 2>conftest.er1 13088 ac_status=$? 13089 grep -v '^ *+' conftest.er1 >conftest.err 13090 rm -f conftest.er1 13091 cat conftest.err >&5 13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13093 (exit $ac_status); } && 13094 { ac_try='test -z "$ac_c_werror_flag" 13095 || test ! -s conftest.err' 13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13097 (eval $ac_try) 2>&5 13098 ac_status=$? 13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13100 (exit $ac_status); }; } && 13101 { ac_try='test -s conftest$ac_exeext' 13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13103 (eval $ac_try) 2>&5 13104 ac_status=$? 13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13106 (exit $ac_status); }; }; then 13107 ac_cv_lib_ipc_shmat=yes 13108else 13109 echo "$as_me: failed program was:" >&5 13110sed 's/^/| /' conftest.$ac_ext >&5 13111 13112ac_cv_lib_ipc_shmat=no 13113fi 13114rm -f conftest.err conftest.$ac_objext \ 13115 conftest$ac_exeext conftest.$ac_ext 13116LIBS=$ac_check_lib_save_LIBS 13117fi 13118echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 13119echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 13120if test $ac_cv_lib_ipc_shmat = yes; then 13121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 13122fi 13123 13124 fi 13125 fi 13126 13127 # Check for libraries that X11R6 Xt/Xaw programs need. 13128 ac_save_LDFLAGS=$LDFLAGS 13129 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 13130 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 13131 # check for ICE first), but we must link in the order -lSM -lICE or 13132 # we get undefined symbols. So assume we have SM if we have ICE. 13133 # These have to be linked with before -lX11, unlike the other 13134 # libraries we check for below, so use a different variable. 13135 # John Interrante, Karl Berry 13136 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 13137echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 13138if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 13139 echo $ECHO_N "(cached) $ECHO_C" >&6 13140else 13141 ac_check_lib_save_LIBS=$LIBS 13142LIBS="-lICE $X_EXTRA_LIBS $LIBS" 13143cat >conftest.$ac_ext <<_ACEOF 13144/* confdefs.h. */ 13145_ACEOF 13146cat confdefs.h >>conftest.$ac_ext 13147cat >>conftest.$ac_ext <<_ACEOF 13148/* end confdefs.h. */ 13149 13150/* Override any gcc2 internal prototype to avoid an error. */ 13151#ifdef __cplusplus 13152extern "C" 13153#endif 13154/* We use char because int might match the return type of a gcc2 13155 builtin and then its argument prototype would still apply. */ 13156char IceConnectionNumber (); 13157int 13158main () 13159{ 13160IceConnectionNumber (); 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165rm -f conftest.$ac_objext conftest$ac_exeext 13166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13167 (eval $ac_link) 2>conftest.er1 13168 ac_status=$? 13169 grep -v '^ *+' conftest.er1 >conftest.err 13170 rm -f conftest.er1 13171 cat conftest.err >&5 13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13173 (exit $ac_status); } && 13174 { ac_try='test -z "$ac_c_werror_flag" 13175 || test ! -s conftest.err' 13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13177 (eval $ac_try) 2>&5 13178 ac_status=$? 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); }; } && 13181 { ac_try='test -s conftest$ac_exeext' 13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13183 (eval $ac_try) 2>&5 13184 ac_status=$? 13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13186 (exit $ac_status); }; }; then 13187 ac_cv_lib_ICE_IceConnectionNumber=yes 13188else 13189 echo "$as_me: failed program was:" >&5 13190sed 's/^/| /' conftest.$ac_ext >&5 13191 13192ac_cv_lib_ICE_IceConnectionNumber=no 13193fi 13194rm -f conftest.err conftest.$ac_objext \ 13195 conftest$ac_exeext conftest.$ac_ext 13196LIBS=$ac_check_lib_save_LIBS 13197fi 13198echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 13199echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 13200if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 13201 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 13202fi 13203 13204 LDFLAGS=$ac_save_LDFLAGS 13205 13206fi 13207 13208XINERAMA_LIBS="" 13209echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5 13210echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 13211if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 13212 echo $ECHO_N "(cached) $ECHO_C" >&6 13213else 13214 ac_check_lib_save_LIBS=$LIBS 13215LIBS="-lXinerama $X_LIBS -lX11 -lXext $LIBS" 13216cat >conftest.$ac_ext <<_ACEOF 13217/* confdefs.h. */ 13218_ACEOF 13219cat confdefs.h >>conftest.$ac_ext 13220cat >>conftest.$ac_ext <<_ACEOF 13221/* end confdefs.h. */ 13222 13223/* Override any gcc2 internal prototype to avoid an error. */ 13224#ifdef __cplusplus 13225extern "C" 13226#endif 13227/* We use char because int might match the return type of a gcc2 13228 builtin and then its argument prototype would still apply. */ 13229char XineramaQueryScreens (); 13230int 13231main () 13232{ 13233XineramaQueryScreens (); 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238rm -f conftest.$ac_objext conftest$ac_exeext 13239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13240 (eval $ac_link) 2>conftest.er1 13241 ac_status=$? 13242 grep -v '^ *+' conftest.er1 >conftest.err 13243 rm -f conftest.er1 13244 cat conftest.err >&5 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); } && 13247 { ac_try='test -z "$ac_c_werror_flag" 13248 || test ! -s conftest.err' 13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13250 (eval $ac_try) 2>&5 13251 ac_status=$? 13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13253 (exit $ac_status); }; } && 13254 { ac_try='test -s conftest$ac_exeext' 13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13256 (eval $ac_try) 2>&5 13257 ac_status=$? 13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13259 (exit $ac_status); }; }; then 13260 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 13261else 13262 echo "$as_me: failed program was:" >&5 13263sed 's/^/| /' conftest.$ac_ext >&5 13264 13265ac_cv_lib_Xinerama_XineramaQueryScreens=no 13266fi 13267rm -f conftest.err conftest.$ac_objext \ 13268 conftest$ac_exeext conftest.$ac_ext 13269LIBS=$ac_check_lib_save_LIBS 13270fi 13271echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 13272echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 13273if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then 13274 XINERAMA_LIBS="-lXinerama" 13275 13276for ac_header in X11/extensions/Xinerama.h 13277do 13278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13279if eval "test \"\${$as_ac_Header+set}\" = set"; then 13280 echo "$as_me:$LINENO: checking for $ac_header" >&5 13281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13282if eval "test \"\${$as_ac_Header+set}\" = set"; then 13283 echo $ECHO_N "(cached) $ECHO_C" >&6 13284fi 13285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13287else 13288 # Is the header compilable? 13289echo "$as_me:$LINENO: checking $ac_header usability" >&5 13290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13291cat >conftest.$ac_ext <<_ACEOF 13292/* confdefs.h. */ 13293_ACEOF 13294cat confdefs.h >>conftest.$ac_ext 13295cat >>conftest.$ac_ext <<_ACEOF 13296/* end confdefs.h. */ 13297$ac_includes_default 13298#include <$ac_header> 13299_ACEOF 13300rm -f conftest.$ac_objext 13301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13302 (eval $ac_compile) 2>conftest.er1 13303 ac_status=$? 13304 grep -v '^ *+' conftest.er1 >conftest.err 13305 rm -f conftest.er1 13306 cat conftest.err >&5 13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13308 (exit $ac_status); } && 13309 { ac_try='test -z "$ac_c_werror_flag" 13310 || test ! -s conftest.err' 13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13312 (eval $ac_try) 2>&5 13313 ac_status=$? 13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13315 (exit $ac_status); }; } && 13316 { ac_try='test -s conftest.$ac_objext' 13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13318 (eval $ac_try) 2>&5 13319 ac_status=$? 13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 (exit $ac_status); }; }; then 13322 ac_header_compiler=yes 13323else 13324 echo "$as_me: failed program was:" >&5 13325sed 's/^/| /' conftest.$ac_ext >&5 13326 13327ac_header_compiler=no 13328fi 13329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13331echo "${ECHO_T}$ac_header_compiler" >&6 13332 13333# Is the header present? 13334echo "$as_me:$LINENO: checking $ac_header presence" >&5 13335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13336cat >conftest.$ac_ext <<_ACEOF 13337/* confdefs.h. */ 13338_ACEOF 13339cat confdefs.h >>conftest.$ac_ext 13340cat >>conftest.$ac_ext <<_ACEOF 13341/* end confdefs.h. */ 13342#include <$ac_header> 13343_ACEOF 13344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13346 ac_status=$? 13347 grep -v '^ *+' conftest.er1 >conftest.err 13348 rm -f conftest.er1 13349 cat conftest.err >&5 13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13351 (exit $ac_status); } >/dev/null; then 13352 if test -s conftest.err; then 13353 ac_cpp_err=$ac_c_preproc_warn_flag 13354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13355 else 13356 ac_cpp_err= 13357 fi 13358else 13359 ac_cpp_err=yes 13360fi 13361if test -z "$ac_cpp_err"; then 13362 ac_header_preproc=yes 13363else 13364 echo "$as_me: failed program was:" >&5 13365sed 's/^/| /' conftest.$ac_ext >&5 13366 13367 ac_header_preproc=no 13368fi 13369rm -f conftest.err conftest.$ac_ext 13370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13371echo "${ECHO_T}$ac_header_preproc" >&6 13372 13373# So? What about this header? 13374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13375 yes:no: ) 13376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13380 ac_header_preproc=yes 13381 ;; 13382 no:yes:* ) 13383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13395 ( 13396 cat <<\_ASBOX 13397## ------------------------------------------ ## 13398## Report this to the AC_PACKAGE_NAME lists. ## 13399## ------------------------------------------ ## 13400_ASBOX 13401 ) | 13402 sed "s/^/$as_me: WARNING: /" >&2 13403 ;; 13404esac 13405echo "$as_me:$LINENO: checking for $ac_header" >&5 13406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13407if eval "test \"\${$as_ac_Header+set}\" = set"; then 13408 echo $ECHO_N "(cached) $ECHO_C" >&6 13409else 13410 eval "$as_ac_Header=\$ac_header_preproc" 13411fi 13412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13414 13415fi 13416if test `eval echo '${'$as_ac_Header'}'` = yes; then 13417 cat >>confdefs.h <<_ACEOF 13418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13419_ACEOF 13420 13421fi 13422 13423done 13424 13425fi 13426 13427 13428 13429 13430 13431movie_support="" 13432 13433 13434# Check whether --with-xine or --without-xine was given. 13435if test "${with_xine+set}" = set; then 13436 withval="$with_xine" 13437 enable_xine="${withval}" 13438else 13439 enable_xine=no 13440fi; 13441 13442if test x"$enable_xine" = xyes; then 13443 have_xine=no 13444 13445# Check whether --with-xine-prefix or --without-xine-prefix was given. 13446if test "${with_xine_prefix+set}" = set; then 13447 withval="$with_xine_prefix" 13448 xine_config_prefix="$withval" 13449else 13450 xine_config_prefix="" 13451fi; 13452 13453# Check whether --with-xine-exec-prefix or --without-xine-exec-prefix was given. 13454if test "${with_xine_exec_prefix+set}" = set; then 13455 withval="$with_xine_exec_prefix" 13456 xine_config_exec_prefix="$withval" 13457else 13458 xine_config_exec_prefix="" 13459fi; 13460# Check whether --enable-xinetest or --disable-xinetest was given. 13461if test "${enable_xinetest+set}" = set; then 13462 enableval="$enable_xinetest" 13463 13464else 13465 enable_xinetest=yes 13466fi; 13467 13468 if test x$xine_config_exec_prefix != x ; then 13469 xine_config_args="$xine_config_args --exec-prefix=$xine_config_exec_prefix" 13470 if test x${XINE_CONFIG+set} != xset ; then 13471 XINE_CONFIG=$xine_config_exec_prefix/bin/xine-config 13472 fi 13473 fi 13474 if test x$xine_config_prefix != x ; then 13475 xine_config_args="$xine_config_args --prefix=$xine_config_prefix" 13476 if test x${XINE_CONFIG+set} != xset ; then 13477 XINE_CONFIG=$xine_config_prefix/bin/xine-config 13478 fi 13479 fi 13480 13481 min_xine_version=$XINE_REQUIRED 13482 if test "x$enable_xinetest" != "xyes" ; then 13483 echo "$as_me:$LINENO: checking for XINE-LIB version >= $min_xine_version" >&5 13484echo $ECHO_N "checking for XINE-LIB version >= $min_xine_version... $ECHO_C" >&6 13485 else 13486 # Extract the first word of "xine-config", so it can be a program name with args. 13487set dummy xine-config; ac_word=$2 13488echo "$as_me:$LINENO: checking for $ac_word" >&5 13489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13490if test "${ac_cv_path_XINE_CONFIG+set}" = set; then 13491 echo $ECHO_N "(cached) $ECHO_C" >&6 13492else 13493 case $XINE_CONFIG in 13494 [\\/]* | ?:[\\/]*) 13495 ac_cv_path_XINE_CONFIG="$XINE_CONFIG" # Let the user override the test with a path. 13496 ;; 13497 *) 13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13499for as_dir in $PATH 13500do 13501 IFS=$as_save_IFS 13502 test -z "$as_dir" && as_dir=. 13503 for ac_exec_ext in '' $ac_executable_extensions; do 13504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13505 ac_cv_path_XINE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13507 break 2 13508 fi 13509done 13510done 13511 13512 test -z "$ac_cv_path_XINE_CONFIG" && ac_cv_path_XINE_CONFIG="no" 13513 ;; 13514esac 13515fi 13516XINE_CONFIG=$ac_cv_path_XINE_CONFIG 13517 13518if test -n "$XINE_CONFIG"; then 13519 echo "$as_me:$LINENO: result: $XINE_CONFIG" >&5 13520echo "${ECHO_T}$XINE_CONFIG" >&6 13521else 13522 echo "$as_me:$LINENO: result: no" >&5 13523echo "${ECHO_T}no" >&6 13524fi 13525 13526 echo "$as_me:$LINENO: checking for XINE-LIB version >= $min_xine_version" >&5 13527echo $ECHO_N "checking for XINE-LIB version >= $min_xine_version... $ECHO_C" >&6 13528 no_xine="" 13529 if test "$XINE_CONFIG" = "no" ; then 13530 no_xine=yes 13531 else 13532 XINE_CFLAGS=`$XINE_CONFIG $xine_config_args --cflags` 13533 XINE_LIBS=`$XINE_CONFIG $xine_config_args --libs` 13534 XINE_ACFLAGS=`$XINE_CONFIG $xine_config_args --acflags` 13535 xine_config_major_version=`$XINE_CONFIG $xine_config_args --version | \ 13536 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 13537 xine_config_minor_version=`$XINE_CONFIG $xine_config_args --version | \ 13538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 13539 xine_config_sub_version=`$XINE_CONFIG $xine_config_args --version | \ 13540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13541 xine_data_dir=`$XINE_CONFIG $xine_config_args --datadir` 13542 xine_script_dir=`$XINE_CONFIG $xine_config_args --scriptdir` 13543 xine_plugin_dir=`$XINE_CONFIG $xine_config_args --plugindir` 13544 xine_locale_dir=`$XINE_CONFIG $xine_config_args --localedir` 13545 ac_save_CFLAGS="$CFLAGS" 13546 ac_save_LIBS="$LIBS" 13547 CFLAGS="$CFLAGS $XINE_CFLAGS" 13548 LIBS="$XINE_LIBS $LIBS" 13549 13550 13551 ac_ext=c 13552ac_cpp='$CPP $CPPFLAGS' 13553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13555ac_compiler_gnu=$ac_cv_c_compiler_gnu 13556 13557 rm -f conf.xinetest 13558 if test "$cross_compiling" = yes; then 13559 echo $ac_n "cross compiling; assumed OK... $ac_c" 13560else 13561 cat >conftest.$ac_ext <<_ACEOF 13562/* confdefs.h. */ 13563_ACEOF 13564cat confdefs.h >>conftest.$ac_ext 13565cat >>conftest.$ac_ext <<_ACEOF 13566/* end confdefs.h. */ 13567 13568#include <xine.h> 13569#include <stdio.h> 13570#include <stdlib.h> 13571#include <string.h> 13572 13573int 13574main () 13575{ 13576 int major, minor, sub; 13577 char *tmp_version; 13578 13579 system ("touch conf.xinetest"); 13580 13581 /* HP/UX 9 (%@#!) writes to sscanf strings */ 13582 tmp_version = (char *) strdup("$min_xine_version"); 13583 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &sub) != 3) { 13584 printf("%s, bad version string\n", "$min_xine_version"); 13585 exit(1); 13586 } 13587 13588 if ((XINE_MAJOR_VERSION != $xine_config_major_version) || 13589 (XINE_MINOR_VERSION != $xine_config_minor_version) || 13590 (XINE_SUB_VERSION != $xine_config_sub_version)) 13591 { 13592 printf("\n*** 'xine-config --version' returned %d.%d.%d, but XINE (%d.%d.%d)\n", 13593 $xine_config_major_version, $xine_config_minor_version, $xine_config_sub_version, 13594 XINE_MAJOR_VERSION, XINE_MINOR_VERSION, XINE_SUB_VERSION); 13595 printf ("*** was found! If xine-config was correct, then it is best\n"); 13596 printf ("*** to remove the old version of XINE. You may also be able to fix the error\n"); 13597 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 13598 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 13599 printf("*** required on your system.\n"); 13600 printf("*** If xine-config was wrong, set the environment variable XINE_CONFIG\n"); 13601 printf("*** to point to the correct copy of xine-config, and remove the file config.cache\n"); 13602 printf("*** before re-running configure\n"); 13603 } 13604 else 13605 { 13606 if ((XINE_MAJOR_VERSION > major) || 13607 ((XINE_MAJOR_VERSION == major) && (XINE_MINOR_VERSION > minor)) || 13608 ((XINE_MAJOR_VERSION == major) && (XINE_MINOR_VERSION == minor) && (XINE_SUB_VERSION >= sub))) 13609 { 13610 return 0; 13611 } 13612 else 13613 { 13614 printf("\n*** An old version of XINE (%d.%d.%d) was found.\n", 13615 XINE_MAJOR_VERSION, XINE_MINOR_VERSION, XINE_SUB_VERSION); 13616 printf("*** You need a version of XINE newer than %d.%d.%d. The latest version of\n", 13617 major, minor, sub); 13618 printf("*** XINE is always available from:\n"); 13619 printf("*** http://xine.sourceforge.net\n"); 13620 printf("***\n"); 13621 printf("*** If you have already installed a sufficiently new version, this error\n"); 13622 printf("*** probably means that the wrong copy of the xine-config shell script is\n"); 13623 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 13624 printf("*** of XINE, but you can also set the XINE_CONFIG environment to point to the\n"); 13625 printf("*** correct copy of xine-config. (In this case, you will have to\n"); 13626 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 13627 printf("*** so that the correct libraries are found at run-time))\n"); 13628 } 13629 } 13630 return 1; 13631} 13632 13633_ACEOF 13634rm -f conftest$ac_exeext 13635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13636 (eval $ac_link) 2>&5 13637 ac_status=$? 13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13641 (eval $ac_try) 2>&5 13642 ac_status=$? 13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13644 (exit $ac_status); }; }; then 13645 : 13646else 13647 echo "$as_me: program exited with status $ac_status" >&5 13648echo "$as_me: failed program was:" >&5 13649sed 's/^/| /' conftest.$ac_ext >&5 13650 13651( exit $ac_status ) 13652no_xine=yes 13653fi 13654rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13655fi 13656 CFLAGS="$ac_save_CFLAGS" 13657 LIBS="$ac_save_LIBS" 13658 fi 13659 fi 13660 if test "x$no_xine" = x ; then 13661 echo "$as_me:$LINENO: result: yes" >&5 13662echo "${ECHO_T}yes" >&6 13663 have_xine=yes 13664 else 13665 echo "$as_me:$LINENO: result: no" >&5 13666echo "${ECHO_T}no" >&6 13667 if test "$XINE_CONFIG" = "no" ; then 13668 echo "*** The xine-config script installed by XINE could not be found" 13669 echo "*** If XINE was installed in PREFIX, make sure PREFIX/bin is in" 13670 echo "*** your path, or set the XINE_CONFIG environment variable to the" 13671 echo "*** full path to xine-config." 13672 else 13673 if test -f conf.xinetest ; then 13674 : 13675 else 13676 echo "*** Could not run XINE test program, checking why..." 13677 CFLAGS="$CFLAGS $XINE_CFLAGS" 13678 LIBS="$LIBS $XINE_LIBS" 13679 cat >conftest.$ac_ext <<_ACEOF 13680/* confdefs.h. */ 13681_ACEOF 13682cat confdefs.h >>conftest.$ac_ext 13683cat >>conftest.$ac_ext <<_ACEOF 13684/* end confdefs.h. */ 13685 13686#include <xine.h> 13687#include <stdio.h> 13688 13689int 13690main () 13691{ 13692 return ((XINE_MAJOR_VERSION) || (XINE_MINOR_VERSION) || (XINE_SUB_VERSION)); 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697rm -f conftest.$ac_objext conftest$ac_exeext 13698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13699 (eval $ac_link) 2>conftest.er1 13700 ac_status=$? 13701 grep -v '^ *+' conftest.er1 >conftest.err 13702 rm -f conftest.er1 13703 cat conftest.err >&5 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13705 (exit $ac_status); } && 13706 { ac_try='test -z "$ac_c_werror_flag" 13707 || test ! -s conftest.err' 13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13709 (eval $ac_try) 2>&5 13710 ac_status=$? 13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13712 (exit $ac_status); }; } && 13713 { ac_try='test -s conftest$ac_exeext' 13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13715 (eval $ac_try) 2>&5 13716 ac_status=$? 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 (exit $ac_status); }; }; then 13719 echo "*** The test program compiled, but did not run. This usually means" 13720 echo "*** that the run-time linker is not finding XINE or finding the wrong" 13721 echo "*** version of XINE. If it is not finding XINE, you'll need to set your" 13722 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13723 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13724 echo "*** is required on your system" 13725 echo "***" 13726 echo "*** If you have an old version installed, it is best to remove it, although" 13727 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13728 echo "***" 13729else 13730 echo "$as_me: failed program was:" >&5 13731sed 's/^/| /' conftest.$ac_ext >&5 13732 13733 echo "*** The test program failed to compile or link. See the file config.log for the" 13734 echo "*** exact error that occured. This usually means XINE was incorrectly installed" 13735 echo "*** or that you have moved XINE since it was installed. In the latter case, you" 13736 echo "*** may want to edit the xine-config script: $XINE_CONFIG" 13737fi 13738rm -f conftest.err conftest.$ac_objext \ 13739 conftest$ac_exeext conftest.$ac_ext 13740 CFLAGS="$ac_save_CFLAGS" 13741 LIBS="$ac_save_LIBS" 13742 fi 13743 fi 13744 XINE_CFLAGS="" 13745 XINE_LIBS="" 13746 have_xine=no 13747 fi 13748 13749 13750 13751 ac_ext=c 13752ac_cpp='$CPP $CPPFLAGS' 13753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13755ac_compiler_gnu=$ac_cv_c_compiler_gnu 13756 13757 rm -f conf.xinetest 13758 13759 13760 13761 13762for ac_func in strsep strpbrk setenv 13763do 13764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13765echo "$as_me:$LINENO: checking for $ac_func" >&5 13766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13767if eval "test \"\${$as_ac_var+set}\" = set"; then 13768 echo $ECHO_N "(cached) $ECHO_C" >&6 13769else 13770 cat >conftest.$ac_ext <<_ACEOF 13771/* confdefs.h. */ 13772_ACEOF 13773cat confdefs.h >>conftest.$ac_ext 13774cat >>conftest.$ac_ext <<_ACEOF 13775/* end confdefs.h. */ 13776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13778#define $ac_func innocuous_$ac_func 13779 13780/* System header to define __stub macros and hopefully few prototypes, 13781 which can conflict with char $ac_func (); below. 13782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13783 <limits.h> exists even on freestanding compilers. */ 13784 13785#ifdef __STDC__ 13786# include <limits.h> 13787#else 13788# include <assert.h> 13789#endif 13790 13791#undef $ac_func 13792 13793/* Override any gcc2 internal prototype to avoid an error. */ 13794#ifdef __cplusplus 13795extern "C" 13796{ 13797#endif 13798/* We use char because int might match the return type of a gcc2 13799 builtin and then its argument prototype would still apply. */ 13800char $ac_func (); 13801/* The GNU C library defines this for functions which it implements 13802 to always fail with ENOSYS. Some functions are actually named 13803 something starting with __ and the normal name is an alias. */ 13804#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13805choke me 13806#else 13807char (*f) () = $ac_func; 13808#endif 13809#ifdef __cplusplus 13810} 13811#endif 13812 13813int 13814main () 13815{ 13816return f != $ac_func; 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821rm -f conftest.$ac_objext conftest$ac_exeext 13822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13823 (eval $ac_link) 2>conftest.er1 13824 ac_status=$? 13825 grep -v '^ *+' conftest.er1 >conftest.err 13826 rm -f conftest.er1 13827 cat conftest.err >&5 13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13829 (exit $ac_status); } && 13830 { ac_try='test -z "$ac_c_werror_flag" 13831 || test ! -s conftest.err' 13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13833 (eval $ac_try) 2>&5 13834 ac_status=$? 13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13836 (exit $ac_status); }; } && 13837 { ac_try='test -s conftest$ac_exeext' 13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13839 (eval $ac_try) 2>&5 13840 ac_status=$? 13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13842 (exit $ac_status); }; }; then 13843 eval "$as_ac_var=yes" 13844else 13845 echo "$as_me: failed program was:" >&5 13846sed 's/^/| /' conftest.$ac_ext >&5 13847 13848eval "$as_ac_var=no" 13849fi 13850rm -f conftest.err conftest.$ac_objext \ 13851 conftest$ac_exeext conftest.$ac_ext 13852fi 13853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13855if test `eval echo '${'$as_ac_var'}'` = yes; then 13856 cat >>confdefs.h <<_ACEOF 13857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13858_ACEOF 13859 13860fi 13861done 13862 13863 13864 13865 if test x"$have_xine" = xyes; then 13866 13867cat >>confdefs.h <<\_ACEOF 13868#define ENABLE_XINE 1 13869_ACEOF 13870 13871 movie_support="Xine ${movie_support}" 13872 else 13873 { echo "$as_me:$LINENO: WARNING: Did not find xine-lib installed" >&5 13874echo "$as_me: WARNING: Did not find xine-lib installed" >&2;} 13875 enable_xine=no; 13876 fi 13877fi 13878 13879 13880 13881if test x"$enable_xine" = xyes; then 13882 ENABLE_XINE_TRUE= 13883 ENABLE_XINE_FALSE='#' 13884else 13885 ENABLE_XINE_TRUE='#' 13886 ENABLE_XINE_FALSE= 13887fi 13888 13889 13890 13891ALL_LINGUAS="fr ja" 13892if test -n "$ac_tool_prefix"; then 13893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13894set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13895echo "$as_me:$LINENO: checking for $ac_word" >&5 13896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13897if test "${ac_cv_prog_RANLIB+set}" = set; then 13898 echo $ECHO_N "(cached) $ECHO_C" >&6 13899else 13900 if test -n "$RANLIB"; then 13901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13902else 13903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13904for as_dir in $PATH 13905do 13906 IFS=$as_save_IFS 13907 test -z "$as_dir" && as_dir=. 13908 for ac_exec_ext in '' $ac_executable_extensions; do 13909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13912 break 2 13913 fi 13914done 13915done 13916 13917fi 13918fi 13919RANLIB=$ac_cv_prog_RANLIB 13920if test -n "$RANLIB"; then 13921 echo "$as_me:$LINENO: result: $RANLIB" >&5 13922echo "${ECHO_T}$RANLIB" >&6 13923else 13924 echo "$as_me:$LINENO: result: no" >&5 13925echo "${ECHO_T}no" >&6 13926fi 13927 13928fi 13929if test -z "$ac_cv_prog_RANLIB"; then 13930 ac_ct_RANLIB=$RANLIB 13931 # Extract the first word of "ranlib", so it can be a program name with args. 13932set dummy ranlib; ac_word=$2 13933echo "$as_me:$LINENO: checking for $ac_word" >&5 13934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13935if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 13936 echo $ECHO_N "(cached) $ECHO_C" >&6 13937else 13938 if test -n "$ac_ct_RANLIB"; then 13939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13940else 13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13942for as_dir in $PATH 13943do 13944 IFS=$as_save_IFS 13945 test -z "$as_dir" && as_dir=. 13946 for ac_exec_ext in '' $ac_executable_extensions; do 13947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13948 ac_cv_prog_ac_ct_RANLIB="ranlib" 13949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13950 break 2 13951 fi 13952done 13953done 13954 13955 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 13956fi 13957fi 13958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13959if test -n "$ac_ct_RANLIB"; then 13960 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 13961echo "${ECHO_T}$ac_ct_RANLIB" >&6 13962else 13963 echo "$as_me:$LINENO: result: no" >&5 13964echo "${ECHO_T}no" >&6 13965fi 13966 13967 RANLIB=$ac_ct_RANLIB 13968else 13969 RANLIB="$ac_cv_prog_RANLIB" 13970fi 13971 13972echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 13973echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 13974if test "${ac_cv_c_const+set}" = set; then 13975 echo $ECHO_N "(cached) $ECHO_C" >&6 13976else 13977 cat >conftest.$ac_ext <<_ACEOF 13978/* confdefs.h. */ 13979_ACEOF 13980cat confdefs.h >>conftest.$ac_ext 13981cat >>conftest.$ac_ext <<_ACEOF 13982/* end confdefs.h. */ 13983 13984int 13985main () 13986{ 13987/* FIXME: Include the comments suggested by Paul. */ 13988#ifndef __cplusplus 13989 /* Ultrix mips cc rejects this. */ 13990 typedef int charset[2]; 13991 const charset x; 13992 /* SunOS 4.1.1 cc rejects this. */ 13993 char const *const *ccp; 13994 char **p; 13995 /* NEC SVR4.0.2 mips cc rejects this. */ 13996 struct point {int x, y;}; 13997 static struct point const zero = {0,0}; 13998 /* AIX XL C 1.02.0.0 rejects this. 13999 It does not let you subtract one const X* pointer from another in 14000 an arm of an if-expression whose if-part is not a constant 14001 expression */ 14002 const char *g = "string"; 14003 ccp = &g + (g ? g-g : 0); 14004 /* HPUX 7.0 cc rejects these. */ 14005 ++ccp; 14006 p = (char**) ccp; 14007 ccp = (char const *const *) p; 14008 { /* SCO 3.2v4 cc rejects this. */ 14009 char *t; 14010 char const *s = 0 ? (char *) 0 : (char const *) 0; 14011 14012 *t++ = 0; 14013 } 14014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14015 int x[] = {25, 17}; 14016 const int *foo = &x[0]; 14017 ++foo; 14018 } 14019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14020 typedef const int *iptr; 14021 iptr p = 0; 14022 ++p; 14023 } 14024 { /* AIX XL C 1.02.0.0 rejects this saying 14025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14026 struct s { int j; const int *ap[3]; }; 14027 struct s *b; b->j = 5; 14028 } 14029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14030 const int foo = 10; 14031 } 14032#endif 14033 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038rm -f conftest.$ac_objext 14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14040 (eval $ac_compile) 2>conftest.er1 14041 ac_status=$? 14042 grep -v '^ *+' conftest.er1 >conftest.err 14043 rm -f conftest.er1 14044 cat conftest.err >&5 14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14046 (exit $ac_status); } && 14047 { ac_try='test -z "$ac_c_werror_flag" 14048 || test ! -s conftest.err' 14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14050 (eval $ac_try) 2>&5 14051 ac_status=$? 14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14053 (exit $ac_status); }; } && 14054 { ac_try='test -s conftest.$ac_objext' 14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14056 (eval $ac_try) 2>&5 14057 ac_status=$? 14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14059 (exit $ac_status); }; }; then 14060 ac_cv_c_const=yes 14061else 14062 echo "$as_me: failed program was:" >&5 14063sed 's/^/| /' conftest.$ac_ext >&5 14064 14065ac_cv_c_const=no 14066fi 14067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14068fi 14069echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 14070echo "${ECHO_T}$ac_cv_c_const" >&6 14071if test $ac_cv_c_const = no; then 14072 14073cat >>confdefs.h <<\_ACEOF 14074#define const 14075_ACEOF 14076 14077fi 14078 14079echo "$as_me:$LINENO: checking for inline" >&5 14080echo $ECHO_N "checking for inline... $ECHO_C" >&6 14081if test "${ac_cv_c_inline+set}" = set; then 14082 echo $ECHO_N "(cached) $ECHO_C" >&6 14083else 14084 ac_cv_c_inline=no 14085for ac_kw in inline __inline__ __inline; do 14086 cat >conftest.$ac_ext <<_ACEOF 14087/* confdefs.h. */ 14088_ACEOF 14089cat confdefs.h >>conftest.$ac_ext 14090cat >>conftest.$ac_ext <<_ACEOF 14091/* end confdefs.h. */ 14092#ifndef __cplusplus 14093typedef int foo_t; 14094static $ac_kw foo_t static_foo () {return 0; } 14095$ac_kw foo_t foo () {return 0; } 14096#endif 14097 14098_ACEOF 14099rm -f conftest.$ac_objext 14100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14101 (eval $ac_compile) 2>conftest.er1 14102 ac_status=$? 14103 grep -v '^ *+' conftest.er1 >conftest.err 14104 rm -f conftest.er1 14105 cat conftest.err >&5 14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14107 (exit $ac_status); } && 14108 { ac_try='test -z "$ac_c_werror_flag" 14109 || test ! -s conftest.err' 14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14111 (eval $ac_try) 2>&5 14112 ac_status=$? 14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14114 (exit $ac_status); }; } && 14115 { ac_try='test -s conftest.$ac_objext' 14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14117 (eval $ac_try) 2>&5 14118 ac_status=$? 14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14120 (exit $ac_status); }; }; then 14121 ac_cv_c_inline=$ac_kw; break 14122else 14123 echo "$as_me: failed program was:" >&5 14124sed 's/^/| /' conftest.$ac_ext >&5 14125 14126fi 14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14128done 14129 14130fi 14131echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 14132echo "${ECHO_T}$ac_cv_c_inline" >&6 14133 14134 14135case $ac_cv_c_inline in 14136 inline | yes) ;; 14137 *) 14138 case $ac_cv_c_inline in 14139 no) ac_val=;; 14140 *) ac_val=$ac_cv_c_inline;; 14141 esac 14142 cat >>confdefs.h <<_ACEOF 14143#ifndef __cplusplus 14144#define inline $ac_val 14145#endif 14146_ACEOF 14147 ;; 14148esac 14149 14150echo "$as_me:$LINENO: checking for off_t" >&5 14151echo $ECHO_N "checking for off_t... $ECHO_C" >&6 14152if test "${ac_cv_type_off_t+set}" = set; then 14153 echo $ECHO_N "(cached) $ECHO_C" >&6 14154else 14155 cat >conftest.$ac_ext <<_ACEOF 14156/* confdefs.h. */ 14157_ACEOF 14158cat confdefs.h >>conftest.$ac_ext 14159cat >>conftest.$ac_ext <<_ACEOF 14160/* end confdefs.h. */ 14161$ac_includes_default 14162int 14163main () 14164{ 14165if ((off_t *) 0) 14166 return 0; 14167if (sizeof (off_t)) 14168 return 0; 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173rm -f conftest.$ac_objext 14174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14175 (eval $ac_compile) 2>conftest.er1 14176 ac_status=$? 14177 grep -v '^ *+' conftest.er1 >conftest.err 14178 rm -f conftest.er1 14179 cat conftest.err >&5 14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14181 (exit $ac_status); } && 14182 { ac_try='test -z "$ac_c_werror_flag" 14183 || test ! -s conftest.err' 14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14185 (eval $ac_try) 2>&5 14186 ac_status=$? 14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14188 (exit $ac_status); }; } && 14189 { ac_try='test -s conftest.$ac_objext' 14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14191 (eval $ac_try) 2>&5 14192 ac_status=$? 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14194 (exit $ac_status); }; }; then 14195 ac_cv_type_off_t=yes 14196else 14197 echo "$as_me: failed program was:" >&5 14198sed 's/^/| /' conftest.$ac_ext >&5 14199 14200ac_cv_type_off_t=no 14201fi 14202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14203fi 14204echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 14205echo "${ECHO_T}$ac_cv_type_off_t" >&6 14206if test $ac_cv_type_off_t = yes; then 14207 : 14208else 14209 14210cat >>confdefs.h <<_ACEOF 14211#define off_t long 14212_ACEOF 14213 14214fi 14215 14216echo "$as_me:$LINENO: checking for size_t" >&5 14217echo $ECHO_N "checking for size_t... $ECHO_C" >&6 14218if test "${ac_cv_type_size_t+set}" = set; then 14219 echo $ECHO_N "(cached) $ECHO_C" >&6 14220else 14221 cat >conftest.$ac_ext <<_ACEOF 14222/* confdefs.h. */ 14223_ACEOF 14224cat confdefs.h >>conftest.$ac_ext 14225cat >>conftest.$ac_ext <<_ACEOF 14226/* end confdefs.h. */ 14227$ac_includes_default 14228int 14229main () 14230{ 14231if ((size_t *) 0) 14232 return 0; 14233if (sizeof (size_t)) 14234 return 0; 14235 ; 14236 return 0; 14237} 14238_ACEOF 14239rm -f conftest.$ac_objext 14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14241 (eval $ac_compile) 2>conftest.er1 14242 ac_status=$? 14243 grep -v '^ *+' conftest.er1 >conftest.err 14244 rm -f conftest.er1 14245 cat conftest.err >&5 14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14247 (exit $ac_status); } && 14248 { ac_try='test -z "$ac_c_werror_flag" 14249 || test ! -s conftest.err' 14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14251 (eval $ac_try) 2>&5 14252 ac_status=$? 14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14254 (exit $ac_status); }; } && 14255 { ac_try='test -s conftest.$ac_objext' 14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14257 (eval $ac_try) 2>&5 14258 ac_status=$? 14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14260 (exit $ac_status); }; }; then 14261 ac_cv_type_size_t=yes 14262else 14263 echo "$as_me: failed program was:" >&5 14264sed 's/^/| /' conftest.$ac_ext >&5 14265 14266ac_cv_type_size_t=no 14267fi 14268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14269fi 14270echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 14271echo "${ECHO_T}$ac_cv_type_size_t" >&6 14272if test $ac_cv_type_size_t = yes; then 14273 : 14274else 14275 14276cat >>confdefs.h <<_ACEOF 14277#define size_t unsigned 14278_ACEOF 14279 14280fi 14281 14282# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14283# for constant arguments. Useless! 14284echo "$as_me:$LINENO: checking for working alloca.h" >&5 14285echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 14286if test "${ac_cv_working_alloca_h+set}" = set; then 14287 echo $ECHO_N "(cached) $ECHO_C" >&6 14288else 14289 cat >conftest.$ac_ext <<_ACEOF 14290/* confdefs.h. */ 14291_ACEOF 14292cat confdefs.h >>conftest.$ac_ext 14293cat >>conftest.$ac_ext <<_ACEOF 14294/* end confdefs.h. */ 14295#include <alloca.h> 14296int 14297main () 14298{ 14299char *p = (char *) alloca (2 * sizeof (int)); 14300 ; 14301 return 0; 14302} 14303_ACEOF 14304rm -f conftest.$ac_objext conftest$ac_exeext 14305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14306 (eval $ac_link) 2>conftest.er1 14307 ac_status=$? 14308 grep -v '^ *+' conftest.er1 >conftest.err 14309 rm -f conftest.er1 14310 cat conftest.err >&5 14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14312 (exit $ac_status); } && 14313 { ac_try='test -z "$ac_c_werror_flag" 14314 || test ! -s conftest.err' 14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14316 (eval $ac_try) 2>&5 14317 ac_status=$? 14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14319 (exit $ac_status); }; } && 14320 { ac_try='test -s conftest$ac_exeext' 14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14322 (eval $ac_try) 2>&5 14323 ac_status=$? 14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14325 (exit $ac_status); }; }; then 14326 ac_cv_working_alloca_h=yes 14327else 14328 echo "$as_me: failed program was:" >&5 14329sed 's/^/| /' conftest.$ac_ext >&5 14330 14331ac_cv_working_alloca_h=no 14332fi 14333rm -f conftest.err conftest.$ac_objext \ 14334 conftest$ac_exeext conftest.$ac_ext 14335fi 14336echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 14337echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 14338if test $ac_cv_working_alloca_h = yes; then 14339 14340cat >>confdefs.h <<\_ACEOF 14341#define HAVE_ALLOCA_H 1 14342_ACEOF 14343 14344fi 14345 14346echo "$as_me:$LINENO: checking for alloca" >&5 14347echo $ECHO_N "checking for alloca... $ECHO_C" >&6 14348if test "${ac_cv_func_alloca_works+set}" = set; then 14349 echo $ECHO_N "(cached) $ECHO_C" >&6 14350else 14351 cat >conftest.$ac_ext <<_ACEOF 14352/* confdefs.h. */ 14353_ACEOF 14354cat confdefs.h >>conftest.$ac_ext 14355cat >>conftest.$ac_ext <<_ACEOF 14356/* end confdefs.h. */ 14357#ifdef __GNUC__ 14358# define alloca __builtin_alloca 14359#else 14360# ifdef _MSC_VER 14361# include <malloc.h> 14362# define alloca _alloca 14363# else 14364# if HAVE_ALLOCA_H 14365# include <alloca.h> 14366# else 14367# ifdef _AIX 14368 #pragma alloca 14369# else 14370# ifndef alloca /* predefined by HP cc +Olibcalls */ 14371char *alloca (); 14372# endif 14373# endif 14374# endif 14375# endif 14376#endif 14377 14378int 14379main () 14380{ 14381char *p = (char *) alloca (1); 14382 ; 14383 return 0; 14384} 14385_ACEOF 14386rm -f conftest.$ac_objext conftest$ac_exeext 14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14388 (eval $ac_link) 2>conftest.er1 14389 ac_status=$? 14390 grep -v '^ *+' conftest.er1 >conftest.err 14391 rm -f conftest.er1 14392 cat conftest.err >&5 14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14394 (exit $ac_status); } && 14395 { ac_try='test -z "$ac_c_werror_flag" 14396 || test ! -s conftest.err' 14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14398 (eval $ac_try) 2>&5 14399 ac_status=$? 14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14401 (exit $ac_status); }; } && 14402 { ac_try='test -s conftest$ac_exeext' 14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14404 (eval $ac_try) 2>&5 14405 ac_status=$? 14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14407 (exit $ac_status); }; }; then 14408 ac_cv_func_alloca_works=yes 14409else 14410 echo "$as_me: failed program was:" >&5 14411sed 's/^/| /' conftest.$ac_ext >&5 14412 14413ac_cv_func_alloca_works=no 14414fi 14415rm -f conftest.err conftest.$ac_objext \ 14416 conftest$ac_exeext conftest.$ac_ext 14417fi 14418echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 14419echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 14420 14421if test $ac_cv_func_alloca_works = yes; then 14422 14423cat >>confdefs.h <<\_ACEOF 14424#define HAVE_ALLOCA 1 14425_ACEOF 14426 14427else 14428 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14429# that cause trouble. Some versions do not even contain alloca or 14430# contain a buggy version. If you still want to use their alloca, 14431# use ar to extract alloca.o from them instead of compiling alloca.c. 14432 14433ALLOCA=alloca.$ac_objext 14434 14435cat >>confdefs.h <<\_ACEOF 14436#define C_ALLOCA 1 14437_ACEOF 14438 14439 14440echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 14441echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 14442if test "${ac_cv_os_cray+set}" = set; then 14443 echo $ECHO_N "(cached) $ECHO_C" >&6 14444else 14445 cat >conftest.$ac_ext <<_ACEOF 14446/* confdefs.h. */ 14447_ACEOF 14448cat confdefs.h >>conftest.$ac_ext 14449cat >>conftest.$ac_ext <<_ACEOF 14450/* end confdefs.h. */ 14451#if defined(CRAY) && ! defined(CRAY2) 14452webecray 14453#else 14454wenotbecray 14455#endif 14456 14457_ACEOF 14458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14459 $EGREP "webecray" >/dev/null 2>&1; then 14460 ac_cv_os_cray=yes 14461else 14462 ac_cv_os_cray=no 14463fi 14464rm -f conftest* 14465 14466fi 14467echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 14468echo "${ECHO_T}$ac_cv_os_cray" >&6 14469if test $ac_cv_os_cray = yes; then 14470 for ac_func in _getb67 GETB67 getb67; do 14471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14472echo "$as_me:$LINENO: checking for $ac_func" >&5 14473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14474if eval "test \"\${$as_ac_var+set}\" = set"; then 14475 echo $ECHO_N "(cached) $ECHO_C" >&6 14476else 14477 cat >conftest.$ac_ext <<_ACEOF 14478/* confdefs.h. */ 14479_ACEOF 14480cat confdefs.h >>conftest.$ac_ext 14481cat >>conftest.$ac_ext <<_ACEOF 14482/* end confdefs.h. */ 14483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14484 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14485#define $ac_func innocuous_$ac_func 14486 14487/* System header to define __stub macros and hopefully few prototypes, 14488 which can conflict with char $ac_func (); below. 14489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14490 <limits.h> exists even on freestanding compilers. */ 14491 14492#ifdef __STDC__ 14493# include <limits.h> 14494#else 14495# include <assert.h> 14496#endif 14497 14498#undef $ac_func 14499 14500/* Override any gcc2 internal prototype to avoid an error. */ 14501#ifdef __cplusplus 14502extern "C" 14503{ 14504#endif 14505/* We use char because int might match the return type of a gcc2 14506 builtin and then its argument prototype would still apply. */ 14507char $ac_func (); 14508/* The GNU C library defines this for functions which it implements 14509 to always fail with ENOSYS. Some functions are actually named 14510 something starting with __ and the normal name is an alias. */ 14511#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14512choke me 14513#else 14514char (*f) () = $ac_func; 14515#endif 14516#ifdef __cplusplus 14517} 14518#endif 14519 14520int 14521main () 14522{ 14523return f != $ac_func; 14524 ; 14525 return 0; 14526} 14527_ACEOF 14528rm -f conftest.$ac_objext conftest$ac_exeext 14529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14530 (eval $ac_link) 2>conftest.er1 14531 ac_status=$? 14532 grep -v '^ *+' conftest.er1 >conftest.err 14533 rm -f conftest.er1 14534 cat conftest.err >&5 14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14536 (exit $ac_status); } && 14537 { ac_try='test -z "$ac_c_werror_flag" 14538 || test ! -s conftest.err' 14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14540 (eval $ac_try) 2>&5 14541 ac_status=$? 14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14543 (exit $ac_status); }; } && 14544 { ac_try='test -s conftest$ac_exeext' 14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14546 (eval $ac_try) 2>&5 14547 ac_status=$? 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 (exit $ac_status); }; }; then 14550 eval "$as_ac_var=yes" 14551else 14552 echo "$as_me: failed program was:" >&5 14553sed 's/^/| /' conftest.$ac_ext >&5 14554 14555eval "$as_ac_var=no" 14556fi 14557rm -f conftest.err conftest.$ac_objext \ 14558 conftest$ac_exeext conftest.$ac_ext 14559fi 14560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14562if test `eval echo '${'$as_ac_var'}'` = yes; then 14563 14564cat >>confdefs.h <<_ACEOF 14565#define CRAY_STACKSEG_END $ac_func 14566_ACEOF 14567 14568 break 14569fi 14570 14571 done 14572fi 14573 14574echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 14575echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 14576if test "${ac_cv_c_stack_direction+set}" = set; then 14577 echo $ECHO_N "(cached) $ECHO_C" >&6 14578else 14579 if test "$cross_compiling" = yes; then 14580 ac_cv_c_stack_direction=0 14581else 14582 cat >conftest.$ac_ext <<_ACEOF 14583/* confdefs.h. */ 14584_ACEOF 14585cat confdefs.h >>conftest.$ac_ext 14586cat >>conftest.$ac_ext <<_ACEOF 14587/* end confdefs.h. */ 14588int 14589find_stack_direction () 14590{ 14591 static char *addr = 0; 14592 auto char dummy; 14593 if (addr == 0) 14594 { 14595 addr = &dummy; 14596 return find_stack_direction (); 14597 } 14598 else 14599 return (&dummy > addr) ? 1 : -1; 14600} 14601 14602int 14603main () 14604{ 14605 exit (find_stack_direction () < 0); 14606} 14607_ACEOF 14608rm -f conftest$ac_exeext 14609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14610 (eval $ac_link) 2>&5 14611 ac_status=$? 14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14615 (eval $ac_try) 2>&5 14616 ac_status=$? 14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14618 (exit $ac_status); }; }; then 14619 ac_cv_c_stack_direction=1 14620else 14621 echo "$as_me: program exited with status $ac_status" >&5 14622echo "$as_me: failed program was:" >&5 14623sed 's/^/| /' conftest.$ac_ext >&5 14624 14625( exit $ac_status ) 14626ac_cv_c_stack_direction=-1 14627fi 14628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14629fi 14630fi 14631echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 14632echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 14633 14634cat >>confdefs.h <<_ACEOF 14635#define STACK_DIRECTION $ac_cv_c_stack_direction 14636_ACEOF 14637 14638 14639fi 14640 14641 14642 14643for ac_header in stdlib.h unistd.h 14644do 14645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14646if eval "test \"\${$as_ac_Header+set}\" = set"; then 14647 echo "$as_me:$LINENO: checking for $ac_header" >&5 14648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14649if eval "test \"\${$as_ac_Header+set}\" = set"; then 14650 echo $ECHO_N "(cached) $ECHO_C" >&6 14651fi 14652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14654else 14655 # Is the header compilable? 14656echo "$as_me:$LINENO: checking $ac_header usability" >&5 14657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14658cat >conftest.$ac_ext <<_ACEOF 14659/* confdefs.h. */ 14660_ACEOF 14661cat confdefs.h >>conftest.$ac_ext 14662cat >>conftest.$ac_ext <<_ACEOF 14663/* end confdefs.h. */ 14664$ac_includes_default 14665#include <$ac_header> 14666_ACEOF 14667rm -f conftest.$ac_objext 14668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14669 (eval $ac_compile) 2>conftest.er1 14670 ac_status=$? 14671 grep -v '^ *+' conftest.er1 >conftest.err 14672 rm -f conftest.er1 14673 cat conftest.err >&5 14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14675 (exit $ac_status); } && 14676 { ac_try='test -z "$ac_c_werror_flag" 14677 || test ! -s conftest.err' 14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14679 (eval $ac_try) 2>&5 14680 ac_status=$? 14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14682 (exit $ac_status); }; } && 14683 { ac_try='test -s conftest.$ac_objext' 14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14685 (eval $ac_try) 2>&5 14686 ac_status=$? 14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14688 (exit $ac_status); }; }; then 14689 ac_header_compiler=yes 14690else 14691 echo "$as_me: failed program was:" >&5 14692sed 's/^/| /' conftest.$ac_ext >&5 14693 14694ac_header_compiler=no 14695fi 14696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14698echo "${ECHO_T}$ac_header_compiler" >&6 14699 14700# Is the header present? 14701echo "$as_me:$LINENO: checking $ac_header presence" >&5 14702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14703cat >conftest.$ac_ext <<_ACEOF 14704/* confdefs.h. */ 14705_ACEOF 14706cat confdefs.h >>conftest.$ac_ext 14707cat >>conftest.$ac_ext <<_ACEOF 14708/* end confdefs.h. */ 14709#include <$ac_header> 14710_ACEOF 14711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14713 ac_status=$? 14714 grep -v '^ *+' conftest.er1 >conftest.err 14715 rm -f conftest.er1 14716 cat conftest.err >&5 14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14718 (exit $ac_status); } >/dev/null; then 14719 if test -s conftest.err; then 14720 ac_cpp_err=$ac_c_preproc_warn_flag 14721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14722 else 14723 ac_cpp_err= 14724 fi 14725else 14726 ac_cpp_err=yes 14727fi 14728if test -z "$ac_cpp_err"; then 14729 ac_header_preproc=yes 14730else 14731 echo "$as_me: failed program was:" >&5 14732sed 's/^/| /' conftest.$ac_ext >&5 14733 14734 ac_header_preproc=no 14735fi 14736rm -f conftest.err conftest.$ac_ext 14737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14738echo "${ECHO_T}$ac_header_preproc" >&6 14739 14740# So? What about this header? 14741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14742 yes:no: ) 14743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14747 ac_header_preproc=yes 14748 ;; 14749 no:yes:* ) 14750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14762 ( 14763 cat <<\_ASBOX 14764## ------------------------------------------ ## 14765## Report this to the AC_PACKAGE_NAME lists. ## 14766## ------------------------------------------ ## 14767_ASBOX 14768 ) | 14769 sed "s/^/$as_me: WARNING: /" >&2 14770 ;; 14771esac 14772echo "$as_me:$LINENO: checking for $ac_header" >&5 14773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14774if eval "test \"\${$as_ac_Header+set}\" = set"; then 14775 echo $ECHO_N "(cached) $ECHO_C" >&6 14776else 14777 eval "$as_ac_Header=\$ac_header_preproc" 14778fi 14779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14781 14782fi 14783if test `eval echo '${'$as_ac_Header'}'` = yes; then 14784 cat >>confdefs.h <<_ACEOF 14785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14786_ACEOF 14787 14788fi 14789 14790done 14791 14792 14793for ac_func in getpagesize 14794do 14795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14796echo "$as_me:$LINENO: checking for $ac_func" >&5 14797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14798if eval "test \"\${$as_ac_var+set}\" = set"; then 14799 echo $ECHO_N "(cached) $ECHO_C" >&6 14800else 14801 cat >conftest.$ac_ext <<_ACEOF 14802/* confdefs.h. */ 14803_ACEOF 14804cat confdefs.h >>conftest.$ac_ext 14805cat >>conftest.$ac_ext <<_ACEOF 14806/* end confdefs.h. */ 14807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14809#define $ac_func innocuous_$ac_func 14810 14811/* System header to define __stub macros and hopefully few prototypes, 14812 which can conflict with char $ac_func (); below. 14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14814 <limits.h> exists even on freestanding compilers. */ 14815 14816#ifdef __STDC__ 14817# include <limits.h> 14818#else 14819# include <assert.h> 14820#endif 14821 14822#undef $ac_func 14823 14824/* Override any gcc2 internal prototype to avoid an error. */ 14825#ifdef __cplusplus 14826extern "C" 14827{ 14828#endif 14829/* We use char because int might match the return type of a gcc2 14830 builtin and then its argument prototype would still apply. */ 14831char $ac_func (); 14832/* The GNU C library defines this for functions which it implements 14833 to always fail with ENOSYS. Some functions are actually named 14834 something starting with __ and the normal name is an alias. */ 14835#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14836choke me 14837#else 14838char (*f) () = $ac_func; 14839#endif 14840#ifdef __cplusplus 14841} 14842#endif 14843 14844int 14845main () 14846{ 14847return f != $ac_func; 14848 ; 14849 return 0; 14850} 14851_ACEOF 14852rm -f conftest.$ac_objext conftest$ac_exeext 14853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14854 (eval $ac_link) 2>conftest.er1 14855 ac_status=$? 14856 grep -v '^ *+' conftest.er1 >conftest.err 14857 rm -f conftest.er1 14858 cat conftest.err >&5 14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14860 (exit $ac_status); } && 14861 { ac_try='test -z "$ac_c_werror_flag" 14862 || test ! -s conftest.err' 14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14864 (eval $ac_try) 2>&5 14865 ac_status=$? 14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14867 (exit $ac_status); }; } && 14868 { ac_try='test -s conftest$ac_exeext' 14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14870 (eval $ac_try) 2>&5 14871 ac_status=$? 14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14873 (exit $ac_status); }; }; then 14874 eval "$as_ac_var=yes" 14875else 14876 echo "$as_me: failed program was:" >&5 14877sed 's/^/| /' conftest.$ac_ext >&5 14878 14879eval "$as_ac_var=no" 14880fi 14881rm -f conftest.err conftest.$ac_objext \ 14882 conftest$ac_exeext conftest.$ac_ext 14883fi 14884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14886if test `eval echo '${'$as_ac_var'}'` = yes; then 14887 cat >>confdefs.h <<_ACEOF 14888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14889_ACEOF 14890 14891fi 14892done 14893 14894echo "$as_me:$LINENO: checking for working mmap" >&5 14895echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 14896if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 14897 echo $ECHO_N "(cached) $ECHO_C" >&6 14898else 14899 if test "$cross_compiling" = yes; then 14900 ac_cv_func_mmap_fixed_mapped=no 14901else 14902 cat >conftest.$ac_ext <<_ACEOF 14903/* confdefs.h. */ 14904_ACEOF 14905cat confdefs.h >>conftest.$ac_ext 14906cat >>conftest.$ac_ext <<_ACEOF 14907/* end confdefs.h. */ 14908$ac_includes_default 14909/* malloc might have been renamed as rpl_malloc. */ 14910#undef malloc 14911 14912/* Thanks to Mike Haertel and Jim Avera for this test. 14913 Here is a matrix of mmap possibilities: 14914 mmap private not fixed 14915 mmap private fixed at somewhere currently unmapped 14916 mmap private fixed at somewhere already mapped 14917 mmap shared not fixed 14918 mmap shared fixed at somewhere currently unmapped 14919 mmap shared fixed at somewhere already mapped 14920 For private mappings, we should verify that changes cannot be read() 14921 back from the file, nor mmap's back from the file at a different 14922 address. (There have been systems where private was not correctly 14923 implemented like the infamous i386 svr4.0, and systems where the 14924 VM page cache was not coherent with the file system buffer cache 14925 like early versions of FreeBSD and possibly contemporary NetBSD.) 14926 For shared mappings, we should conversely verify that changes get 14927 propagated back to all the places they're supposed to be. 14928 14929 Grep wants private fixed already mapped. 14930 The main things grep needs to know about mmap are: 14931 * does it exist and is it safe to write into the mmap'd area 14932 * how to use it (BSD variants) */ 14933 14934#include <fcntl.h> 14935#include <sys/mman.h> 14936 14937#if !STDC_HEADERS && !HAVE_STDLIB_H 14938char *malloc (); 14939#endif 14940 14941/* This mess was copied from the GNU getpagesize.h. */ 14942#if !HAVE_GETPAGESIZE 14943/* Assume that all systems that can run configure have sys/param.h. */ 14944# if !HAVE_SYS_PARAM_H 14945# define HAVE_SYS_PARAM_H 1 14946# endif 14947 14948# ifdef _SC_PAGESIZE 14949# define getpagesize() sysconf(_SC_PAGESIZE) 14950# else /* no _SC_PAGESIZE */ 14951# if HAVE_SYS_PARAM_H 14952# include <sys/param.h> 14953# ifdef EXEC_PAGESIZE 14954# define getpagesize() EXEC_PAGESIZE 14955# else /* no EXEC_PAGESIZE */ 14956# ifdef NBPG 14957# define getpagesize() NBPG * CLSIZE 14958# ifndef CLSIZE 14959# define CLSIZE 1 14960# endif /* no CLSIZE */ 14961# else /* no NBPG */ 14962# ifdef NBPC 14963# define getpagesize() NBPC 14964# else /* no NBPC */ 14965# ifdef PAGESIZE 14966# define getpagesize() PAGESIZE 14967# endif /* PAGESIZE */ 14968# endif /* no NBPC */ 14969# endif /* no NBPG */ 14970# endif /* no EXEC_PAGESIZE */ 14971# else /* no HAVE_SYS_PARAM_H */ 14972# define getpagesize() 8192 /* punt totally */ 14973# endif /* no HAVE_SYS_PARAM_H */ 14974# endif /* no _SC_PAGESIZE */ 14975 14976#endif /* no HAVE_GETPAGESIZE */ 14977 14978int 14979main () 14980{ 14981 char *data, *data2, *data3; 14982 int i, pagesize; 14983 int fd; 14984 14985 pagesize = getpagesize (); 14986 14987 /* First, make a file with some known garbage in it. */ 14988 data = (char *) malloc (pagesize); 14989 if (!data) 14990 exit (1); 14991 for (i = 0; i < pagesize; ++i) 14992 *(data + i) = rand (); 14993 umask (0); 14994 fd = creat ("conftest.mmap", 0600); 14995 if (fd < 0) 14996 exit (1); 14997 if (write (fd, data, pagesize) != pagesize) 14998 exit (1); 14999 close (fd); 15000 15001 /* Next, try to mmap the file at a fixed address which already has 15002 something else allocated at it. If we can, also make sure that 15003 we see the same garbage. */ 15004 fd = open ("conftest.mmap", O_RDWR); 15005 if (fd < 0) 15006 exit (1); 15007 data2 = (char *) malloc (2 * pagesize); 15008 if (!data2) 15009 exit (1); 15010 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 15011 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15012 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15013 exit (1); 15014 for (i = 0; i < pagesize; ++i) 15015 if (*(data + i) != *(data2 + i)) 15016 exit (1); 15017 15018 /* Finally, make sure that changes to the mapped area do not 15019 percolate back to the file as seen by read(). (This is a bug on 15020 some variants of i386 svr4.0.) */ 15021 for (i = 0; i < pagesize; ++i) 15022 *(data2 + i) = *(data2 + i) + 1; 15023 data3 = (char *) malloc (pagesize); 15024 if (!data3) 15025 exit (1); 15026 if (read (fd, data3, pagesize) != pagesize) 15027 exit (1); 15028 for (i = 0; i < pagesize; ++i) 15029 if (*(data + i) != *(data3 + i)) 15030 exit (1); 15031 close (fd); 15032 exit (0); 15033} 15034_ACEOF 15035rm -f conftest$ac_exeext 15036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15037 (eval $ac_link) 2>&5 15038 ac_status=$? 15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15042 (eval $ac_try) 2>&5 15043 ac_status=$? 15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15045 (exit $ac_status); }; }; then 15046 ac_cv_func_mmap_fixed_mapped=yes 15047else 15048 echo "$as_me: program exited with status $ac_status" >&5 15049echo "$as_me: failed program was:" >&5 15050sed 's/^/| /' conftest.$ac_ext >&5 15051 15052( exit $ac_status ) 15053ac_cv_func_mmap_fixed_mapped=no 15054fi 15055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15056fi 15057fi 15058echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 15059echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 15060if test $ac_cv_func_mmap_fixed_mapped = yes; then 15061 15062cat >>confdefs.h <<\_ACEOF 15063#define HAVE_MMAP 1 15064_ACEOF 15065 15066fi 15067rm -f conftest.mmap 15068 15069 15070 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 15071echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 15072if test "${ac_cv_gnu_library_2_1+set}" = set; then 15073 echo $ECHO_N "(cached) $ECHO_C" >&6 15074else 15075 cat >conftest.$ac_ext <<_ACEOF 15076/* confdefs.h. */ 15077_ACEOF 15078cat confdefs.h >>conftest.$ac_ext 15079cat >>conftest.$ac_ext <<_ACEOF 15080/* end confdefs.h. */ 15081 15082#include <features.h> 15083#ifdef __GNU_LIBRARY__ 15084 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 15085 Lucky GNU user 15086 #endif 15087#endif 15088 15089_ACEOF 15090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15091 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 15092 ac_cv_gnu_library_2_1=yes 15093else 15094 ac_cv_gnu_library_2_1=no 15095fi 15096rm -f conftest* 15097 15098 15099 15100fi 15101echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 15102echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 15103 15104cat >>confdefs.h <<\_ACEOF 15105#define HAVE_GLIBC21 1 15106_ACEOF 15107 15108 15109 GLIBC21="$ac_cv_gnu_library_2_1" 15110 15111 15112 15113 if test "X$prefix" = "XNONE"; then 15114 acl_final_prefix="$ac_default_prefix" 15115 else 15116 acl_final_prefix="$prefix" 15117 fi 15118 if test "X$exec_prefix" = "XNONE"; then 15119 acl_final_exec_prefix='${prefix}' 15120 else 15121 acl_final_exec_prefix="$exec_prefix" 15122 fi 15123 acl_save_prefix="$prefix" 15124 prefix="$acl_final_prefix" 15125 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 15126 prefix="$acl_save_prefix" 15127 15128 15129# Check whether --with-gnu-ld or --without-gnu-ld was given. 15130if test "${with_gnu_ld+set}" = set; then 15131 withval="$with_gnu_ld" 15132 test "$withval" = no || with_gnu_ld=yes 15133else 15134 with_gnu_ld=no 15135fi; 15136# Prepare PATH_SEPARATOR. 15137# The user is always right. 15138if test "${PATH_SEPARATOR+set}" != set; then 15139 echo "#! /bin/sh" >conf$$.sh 15140 echo "exit 0" >>conf$$.sh 15141 chmod +x conf$$.sh 15142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15143 PATH_SEPARATOR=';' 15144 else 15145 PATH_SEPARATOR=: 15146 fi 15147 rm -f conf$$.sh 15148fi 15149ac_prog=ld 15150if test "$GCC" = yes; then 15151 # Check if gcc -print-prog-name=ld gives a path. 15152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 15153echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 15154 case $host in 15155 *-*-mingw*) 15156 # gcc leaves a trailing carriage return which upsets mingw 15157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15158 *) 15159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15160 esac 15161 case $ac_prog in 15162 # Accept absolute paths. 15163 [\\/]* | [A-Za-z]:[\\/]*) 15164 re_direlt='/[^/][^/]*/\.\./' 15165 # Canonicalize the path of ld 15166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 15167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 15168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 15169 done 15170 test -z "$LD" && LD="$ac_prog" 15171 ;; 15172 "") 15173 # If it fails, then pretend we aren't using GCC. 15174 ac_prog=ld 15175 ;; 15176 *) 15177 # If it is relative, then search for the first ld in PATH. 15178 with_gnu_ld=unknown 15179 ;; 15180 esac 15181elif test "$with_gnu_ld" = yes; then 15182 echo "$as_me:$LINENO: checking for GNU ld" >&5 15183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 15184else 15185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 15186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 15187fi 15188if test "${acl_cv_path_LD+set}" = set; then 15189 echo $ECHO_N "(cached) $ECHO_C" >&6 15190else 15191 if test -z "$LD"; then 15192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 15193 for ac_dir in $PATH; do 15194 test -z "$ac_dir" && ac_dir=. 15195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15196 acl_cv_path_LD="$ac_dir/$ac_prog" 15197 # Check to see if the program is GNU ld. I'd rather use --version, 15198 # but apparently some GNU ld's only accept -v. 15199 # Break only if it was the GNU/non-GNU ld that we prefer. 15200 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 15201 *GNU* | *'with BFD'*) 15202 test "$with_gnu_ld" != no && break ;; 15203 *) 15204 test "$with_gnu_ld" != yes && break ;; 15205 esac 15206 fi 15207 done 15208 IFS="$ac_save_ifs" 15209else 15210 acl_cv_path_LD="$LD" # Let the user override the test with a path. 15211fi 15212fi 15213 15214LD="$acl_cv_path_LD" 15215if test -n "$LD"; then 15216 echo "$as_me:$LINENO: result: $LD" >&5 15217echo "${ECHO_T}$LD" >&6 15218else 15219 echo "$as_me:$LINENO: result: no" >&5 15220echo "${ECHO_T}no" >&6 15221fi 15222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 15223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 15224 { (exit 1); exit 1; }; } 15225echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 15226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 15227if test "${acl_cv_prog_gnu_ld+set}" = set; then 15228 echo $ECHO_N "(cached) $ECHO_C" >&6 15229else 15230 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 15231case `$LD -v 2>&1 </dev/null` in 15232*GNU* | *'with BFD'*) 15233 acl_cv_prog_gnu_ld=yes ;; 15234*) 15235 acl_cv_prog_gnu_ld=no ;; 15236esac 15237fi 15238echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 15239echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 15240with_gnu_ld=$acl_cv_prog_gnu_ld 15241 15242 15243 15244 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 15245echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 15246if test "${acl_cv_rpath+set}" = set; then 15247 echo $ECHO_N "(cached) $ECHO_C" >&6 15248else 15249 15250 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 15251 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 15252 . ./conftest.sh 15253 rm -f ./conftest.sh 15254 acl_cv_rpath=done 15255 15256fi 15257echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 15258echo "${ECHO_T}$acl_cv_rpath" >&6 15259 wl="$acl_cv_wl" 15260 libext="$acl_cv_libext" 15261 shlibext="$acl_cv_shlibext" 15262 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 15263 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 15264 hardcode_direct="$acl_cv_hardcode_direct" 15265 hardcode_minus_L="$acl_cv_hardcode_minus_L" 15266 # Check whether --enable-rpath or --disable-rpath was given. 15267if test "${enable_rpath+set}" = set; then 15268 enableval="$enable_rpath" 15269 : 15270else 15271 enable_rpath=yes 15272fi; 15273 15274 15275 15276 15277 15278 15279 15280 use_additional=yes 15281 15282 acl_save_prefix="$prefix" 15283 prefix="$acl_final_prefix" 15284 acl_save_exec_prefix="$exec_prefix" 15285 exec_prefix="$acl_final_exec_prefix" 15286 15287 eval additional_includedir=\"$includedir\" 15288 eval additional_libdir=\"$libdir\" 15289 15290 exec_prefix="$acl_save_exec_prefix" 15291 prefix="$acl_save_prefix" 15292 15293 15294# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 15295if test "${with_libiconv_prefix+set}" = set; then 15296 withval="$with_libiconv_prefix" 15297 15298 if test "X$withval" = "Xno"; then 15299 use_additional=no 15300 else 15301 if test "X$withval" = "X"; then 15302 15303 acl_save_prefix="$prefix" 15304 prefix="$acl_final_prefix" 15305 acl_save_exec_prefix="$exec_prefix" 15306 exec_prefix="$acl_final_exec_prefix" 15307 15308 eval additional_includedir=\"$includedir\" 15309 eval additional_libdir=\"$libdir\" 15310 15311 exec_prefix="$acl_save_exec_prefix" 15312 prefix="$acl_save_prefix" 15313 15314 else 15315 additional_includedir="$withval/include" 15316 additional_libdir="$withval/lib" 15317 fi 15318 fi 15319 15320fi; 15321 LIBICONV= 15322 LTLIBICONV= 15323 INCICONV= 15324 rpathdirs= 15325 ltrpathdirs= 15326 names_already_handled= 15327 names_next_round='iconv ' 15328 while test -n "$names_next_round"; do 15329 names_this_round="$names_next_round" 15330 names_next_round= 15331 for name in $names_this_round; do 15332 already_handled= 15333 for n in $names_already_handled; do 15334 if test "$n" = "$name"; then 15335 already_handled=yes 15336 break 15337 fi 15338 done 15339 if test -z "$already_handled"; then 15340 names_already_handled="$names_already_handled $name" 15341 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 15342 eval value=\"\$HAVE_LIB$uppername\" 15343 if test -n "$value"; then 15344 if test "$value" = yes; then 15345 eval value=\"\$LIB$uppername\" 15346 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 15347 eval value=\"\$LTLIB$uppername\" 15348 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 15349 else 15350 : 15351 fi 15352 else 15353 found_dir= 15354 found_la= 15355 found_so= 15356 found_a= 15357 if test $use_additional = yes; then 15358 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 15359 found_dir="$additional_libdir" 15360 found_so="$additional_libdir/lib$name.$shlibext" 15361 if test -f "$additional_libdir/lib$name.la"; then 15362 found_la="$additional_libdir/lib$name.la" 15363 fi 15364 else 15365 if test -f "$additional_libdir/lib$name.$libext"; then 15366 found_dir="$additional_libdir" 15367 found_a="$additional_libdir/lib$name.$libext" 15368 if test -f "$additional_libdir/lib$name.la"; then 15369 found_la="$additional_libdir/lib$name.la" 15370 fi 15371 fi 15372 fi 15373 fi 15374 if test "X$found_dir" = "X"; then 15375 for x in $LDFLAGS $LTLIBICONV; do 15376 15377 acl_save_prefix="$prefix" 15378 prefix="$acl_final_prefix" 15379 acl_save_exec_prefix="$exec_prefix" 15380 exec_prefix="$acl_final_exec_prefix" 15381 eval x=\"$x\" 15382 exec_prefix="$acl_save_exec_prefix" 15383 prefix="$acl_save_prefix" 15384 15385 case "$x" in 15386 -L*) 15387 dir=`echo "X$x" | sed -e 's/^X-L//'` 15388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 15389 found_dir="$dir" 15390 found_so="$dir/lib$name.$shlibext" 15391 if test -f "$dir/lib$name.la"; then 15392 found_la="$dir/lib$name.la" 15393 fi 15394 else 15395 if test -f "$dir/lib$name.$libext"; then 15396 found_dir="$dir" 15397 found_a="$dir/lib$name.$libext" 15398 if test -f "$dir/lib$name.la"; then 15399 found_la="$dir/lib$name.la" 15400 fi 15401 fi 15402 fi 15403 ;; 15404 esac 15405 if test "X$found_dir" != "X"; then 15406 break 15407 fi 15408 done 15409 fi 15410 if test "X$found_dir" != "X"; then 15411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 15412 if test "X$found_so" != "X"; then 15413 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 15414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15415 else 15416 haveit= 15417 for x in $ltrpathdirs; do 15418 if test "X$x" = "X$found_dir"; then 15419 haveit=yes 15420 break 15421 fi 15422 done 15423 if test -z "$haveit"; then 15424 ltrpathdirs="$ltrpathdirs $found_dir" 15425 fi 15426 if test "$hardcode_direct" = yes; then 15427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15428 else 15429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 15430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15431 haveit= 15432 for x in $rpathdirs; do 15433 if test "X$x" = "X$found_dir"; then 15434 haveit=yes 15435 break 15436 fi 15437 done 15438 if test -z "$haveit"; then 15439 rpathdirs="$rpathdirs $found_dir" 15440 fi 15441 else 15442 haveit= 15443 for x in $LDFLAGS $LIBICONV; do 15444 15445 acl_save_prefix="$prefix" 15446 prefix="$acl_final_prefix" 15447 acl_save_exec_prefix="$exec_prefix" 15448 exec_prefix="$acl_final_exec_prefix" 15449 eval x=\"$x\" 15450 exec_prefix="$acl_save_exec_prefix" 15451 prefix="$acl_save_prefix" 15452 15453 if test "X$x" = "X-L$found_dir"; then 15454 haveit=yes 15455 break 15456 fi 15457 done 15458 if test -z "$haveit"; then 15459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 15460 fi 15461 if test "$hardcode_minus_L" != no; then 15462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15463 else 15464 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 15465 fi 15466 fi 15467 fi 15468 fi 15469 else 15470 if test "X$found_a" != "X"; then 15471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 15472 else 15473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 15474 fi 15475 fi 15476 additional_includedir= 15477 case "$found_dir" in 15478 */lib | */lib/) 15479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 15480 additional_includedir="$basedir/include" 15481 ;; 15482 esac 15483 if test "X$additional_includedir" != "X"; then 15484 if test "X$additional_includedir" != "X/usr/include"; then 15485 haveit= 15486 if test "X$additional_includedir" = "X/usr/local/include"; then 15487 if test -n "$GCC"; then 15488 case $host_os in 15489 linux*) haveit=yes;; 15490 esac 15491 fi 15492 fi 15493 if test -z "$haveit"; then 15494 for x in $CPPFLAGS $INCICONV; do 15495 15496 acl_save_prefix="$prefix" 15497 prefix="$acl_final_prefix" 15498 acl_save_exec_prefix="$exec_prefix" 15499 exec_prefix="$acl_final_exec_prefix" 15500 eval x=\"$x\" 15501 exec_prefix="$acl_save_exec_prefix" 15502 prefix="$acl_save_prefix" 15503 15504 if test "X$x" = "X-I$additional_includedir"; then 15505 haveit=yes 15506 break 15507 fi 15508 done 15509 if test -z "$haveit"; then 15510 if test -d "$additional_includedir"; then 15511 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 15512 fi 15513 fi 15514 fi 15515 fi 15516 fi 15517 if test -n "$found_la"; then 15518 save_libdir="$libdir" 15519 case "$found_la" in 15520 */* | *\\*) . "$found_la" ;; 15521 *) . "./$found_la" ;; 15522 esac 15523 libdir="$save_libdir" 15524 for dep in $dependency_libs; do 15525 case "$dep" in 15526 -L*) 15527 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 15528 if test "X$additional_libdir" != "X/usr/lib"; then 15529 haveit= 15530 if test "X$additional_libdir" = "X/usr/local/lib"; then 15531 if test -n "$GCC"; then 15532 case $host_os in 15533 linux*) haveit=yes;; 15534 esac 15535 fi 15536 fi 15537 if test -z "$haveit"; then 15538 haveit= 15539 for x in $LDFLAGS $LIBICONV; do 15540 15541 acl_save_prefix="$prefix" 15542 prefix="$acl_final_prefix" 15543 acl_save_exec_prefix="$exec_prefix" 15544 exec_prefix="$acl_final_exec_prefix" 15545 eval x=\"$x\" 15546 exec_prefix="$acl_save_exec_prefix" 15547 prefix="$acl_save_prefix" 15548 15549 if test "X$x" = "X-L$additional_libdir"; then 15550 haveit=yes 15551 break 15552 fi 15553 done 15554 if test -z "$haveit"; then 15555 if test -d "$additional_libdir"; then 15556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 15557 fi 15558 fi 15559 haveit= 15560 for x in $LDFLAGS $LTLIBICONV; do 15561 15562 acl_save_prefix="$prefix" 15563 prefix="$acl_final_prefix" 15564 acl_save_exec_prefix="$exec_prefix" 15565 exec_prefix="$acl_final_exec_prefix" 15566 eval x=\"$x\" 15567 exec_prefix="$acl_save_exec_prefix" 15568 prefix="$acl_save_prefix" 15569 15570 if test "X$x" = "X-L$additional_libdir"; then 15571 haveit=yes 15572 break 15573 fi 15574 done 15575 if test -z "$haveit"; then 15576 if test -d "$additional_libdir"; then 15577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 15578 fi 15579 fi 15580 fi 15581 fi 15582 ;; 15583 -R*) 15584 dir=`echo "X$dep" | sed -e 's/^X-R//'` 15585 if test "$enable_rpath" != no; then 15586 haveit= 15587 for x in $rpathdirs; do 15588 if test "X$x" = "X$dir"; then 15589 haveit=yes 15590 break 15591 fi 15592 done 15593 if test -z "$haveit"; then 15594 rpathdirs="$rpathdirs $dir" 15595 fi 15596 haveit= 15597 for x in $ltrpathdirs; do 15598 if test "X$x" = "X$dir"; then 15599 haveit=yes 15600 break 15601 fi 15602 done 15603 if test -z "$haveit"; then 15604 ltrpathdirs="$ltrpathdirs $dir" 15605 fi 15606 fi 15607 ;; 15608 -l*) 15609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 15610 ;; 15611 *.la) 15612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 15613 ;; 15614 *) 15615 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 15616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 15617 ;; 15618 esac 15619 done 15620 fi 15621 else 15622 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 15623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 15624 fi 15625 fi 15626 fi 15627 done 15628 done 15629 if test "X$rpathdirs" != "X"; then 15630 if test -n "$hardcode_libdir_separator"; then 15631 alldirs= 15632 for found_dir in $rpathdirs; do 15633 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 15634 done 15635 acl_save_libdir="$libdir" 15636 libdir="$alldirs" 15637 eval flag=\"$hardcode_libdir_flag_spec\" 15638 libdir="$acl_save_libdir" 15639 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 15640 else 15641 for found_dir in $rpathdirs; do 15642 acl_save_libdir="$libdir" 15643 libdir="$found_dir" 15644 eval flag=\"$hardcode_libdir_flag_spec\" 15645 libdir="$acl_save_libdir" 15646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 15647 done 15648 fi 15649 fi 15650 if test "X$ltrpathdirs" != "X"; then 15651 for found_dir in $ltrpathdirs; do 15652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 15653 done 15654 fi 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 15669stdlib.h string.h unistd.h sys/param.h 15670do 15671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15672if eval "test \"\${$as_ac_Header+set}\" = set"; then 15673 echo "$as_me:$LINENO: checking for $ac_header" >&5 15674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15675if eval "test \"\${$as_ac_Header+set}\" = set"; then 15676 echo $ECHO_N "(cached) $ECHO_C" >&6 15677fi 15678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15680else 15681 # Is the header compilable? 15682echo "$as_me:$LINENO: checking $ac_header usability" >&5 15683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15684cat >conftest.$ac_ext <<_ACEOF 15685/* confdefs.h. */ 15686_ACEOF 15687cat confdefs.h >>conftest.$ac_ext 15688cat >>conftest.$ac_ext <<_ACEOF 15689/* end confdefs.h. */ 15690$ac_includes_default 15691#include <$ac_header> 15692_ACEOF 15693rm -f conftest.$ac_objext 15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15695 (eval $ac_compile) 2>conftest.er1 15696 ac_status=$? 15697 grep -v '^ *+' conftest.er1 >conftest.err 15698 rm -f conftest.er1 15699 cat conftest.err >&5 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15701 (exit $ac_status); } && 15702 { ac_try='test -z "$ac_c_werror_flag" 15703 || test ! -s conftest.err' 15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15705 (eval $ac_try) 2>&5 15706 ac_status=$? 15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15708 (exit $ac_status); }; } && 15709 { ac_try='test -s conftest.$ac_objext' 15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15711 (eval $ac_try) 2>&5 15712 ac_status=$? 15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15714 (exit $ac_status); }; }; then 15715 ac_header_compiler=yes 15716else 15717 echo "$as_me: failed program was:" >&5 15718sed 's/^/| /' conftest.$ac_ext >&5 15719 15720ac_header_compiler=no 15721fi 15722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15724echo "${ECHO_T}$ac_header_compiler" >&6 15725 15726# Is the header present? 15727echo "$as_me:$LINENO: checking $ac_header presence" >&5 15728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15729cat >conftest.$ac_ext <<_ACEOF 15730/* confdefs.h. */ 15731_ACEOF 15732cat confdefs.h >>conftest.$ac_ext 15733cat >>conftest.$ac_ext <<_ACEOF 15734/* end confdefs.h. */ 15735#include <$ac_header> 15736_ACEOF 15737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15739 ac_status=$? 15740 grep -v '^ *+' conftest.er1 >conftest.err 15741 rm -f conftest.er1 15742 cat conftest.err >&5 15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15744 (exit $ac_status); } >/dev/null; then 15745 if test -s conftest.err; then 15746 ac_cpp_err=$ac_c_preproc_warn_flag 15747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15748 else 15749 ac_cpp_err= 15750 fi 15751else 15752 ac_cpp_err=yes 15753fi 15754if test -z "$ac_cpp_err"; then 15755 ac_header_preproc=yes 15756else 15757 echo "$as_me: failed program was:" >&5 15758sed 's/^/| /' conftest.$ac_ext >&5 15759 15760 ac_header_preproc=no 15761fi 15762rm -f conftest.err conftest.$ac_ext 15763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15764echo "${ECHO_T}$ac_header_preproc" >&6 15765 15766# So? What about this header? 15767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15768 yes:no: ) 15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15773 ac_header_preproc=yes 15774 ;; 15775 no:yes:* ) 15776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15788 ( 15789 cat <<\_ASBOX 15790## ------------------------------------------ ## 15791## Report this to the AC_PACKAGE_NAME lists. ## 15792## ------------------------------------------ ## 15793_ASBOX 15794 ) | 15795 sed "s/^/$as_me: WARNING: /" >&2 15796 ;; 15797esac 15798echo "$as_me:$LINENO: checking for $ac_header" >&5 15799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15800if eval "test \"\${$as_ac_Header+set}\" = set"; then 15801 echo $ECHO_N "(cached) $ECHO_C" >&6 15802else 15803 eval "$as_ac_Header=\$ac_header_preproc" 15804fi 15805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15807 15808fi 15809if test `eval echo '${'$as_ac_Header'}'` = yes; then 15810 cat >>confdefs.h <<_ACEOF 15811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15812_ACEOF 15813 15814fi 15815 15816done 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ 15840getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ 15841strdup strtoul tsearch __argz_count __argz_stringify __argz_next 15842do 15843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15844echo "$as_me:$LINENO: checking for $ac_func" >&5 15845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15846if eval "test \"\${$as_ac_var+set}\" = set"; then 15847 echo $ECHO_N "(cached) $ECHO_C" >&6 15848else 15849 cat >conftest.$ac_ext <<_ACEOF 15850/* confdefs.h. */ 15851_ACEOF 15852cat confdefs.h >>conftest.$ac_ext 15853cat >>conftest.$ac_ext <<_ACEOF 15854/* end confdefs.h. */ 15855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15857#define $ac_func innocuous_$ac_func 15858 15859/* System header to define __stub macros and hopefully few prototypes, 15860 which can conflict with char $ac_func (); below. 15861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15862 <limits.h> exists even on freestanding compilers. */ 15863 15864#ifdef __STDC__ 15865# include <limits.h> 15866#else 15867# include <assert.h> 15868#endif 15869 15870#undef $ac_func 15871 15872/* Override any gcc2 internal prototype to avoid an error. */ 15873#ifdef __cplusplus 15874extern "C" 15875{ 15876#endif 15877/* We use char because int might match the return type of a gcc2 15878 builtin and then its argument prototype would still apply. */ 15879char $ac_func (); 15880/* The GNU C library defines this for functions which it implements 15881 to always fail with ENOSYS. Some functions are actually named 15882 something starting with __ and the normal name is an alias. */ 15883#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15884choke me 15885#else 15886char (*f) () = $ac_func; 15887#endif 15888#ifdef __cplusplus 15889} 15890#endif 15891 15892int 15893main () 15894{ 15895return f != $ac_func; 15896 ; 15897 return 0; 15898} 15899_ACEOF 15900rm -f conftest.$ac_objext conftest$ac_exeext 15901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15902 (eval $ac_link) 2>conftest.er1 15903 ac_status=$? 15904 grep -v '^ *+' conftest.er1 >conftest.err 15905 rm -f conftest.er1 15906 cat conftest.err >&5 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15908 (exit $ac_status); } && 15909 { ac_try='test -z "$ac_c_werror_flag" 15910 || test ! -s conftest.err' 15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15912 (eval $ac_try) 2>&5 15913 ac_status=$? 15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15915 (exit $ac_status); }; } && 15916 { ac_try='test -s conftest$ac_exeext' 15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15918 (eval $ac_try) 2>&5 15919 ac_status=$? 15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15921 (exit $ac_status); }; }; then 15922 eval "$as_ac_var=yes" 15923else 15924 echo "$as_me: failed program was:" >&5 15925sed 's/^/| /' conftest.$ac_ext >&5 15926 15927eval "$as_ac_var=no" 15928fi 15929rm -f conftest.err conftest.$ac_objext \ 15930 conftest$ac_exeext conftest.$ac_ext 15931fi 15932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15933echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15934if test `eval echo '${'$as_ac_var'}'` = yes; then 15935 cat >>confdefs.h <<_ACEOF 15936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15937_ACEOF 15938 15939fi 15940done 15941 15942 15943 15944 15945 15946 15947 15948 am_save_CPPFLAGS="$CPPFLAGS" 15949 15950 for element in $INCICONV; do 15951 haveit= 15952 for x in $CPPFLAGS; do 15953 15954 acl_save_prefix="$prefix" 15955 prefix="$acl_final_prefix" 15956 acl_save_exec_prefix="$exec_prefix" 15957 exec_prefix="$acl_final_exec_prefix" 15958 eval x=\"$x\" 15959 exec_prefix="$acl_save_exec_prefix" 15960 prefix="$acl_save_prefix" 15961 15962 if test "X$x" = "X$element"; then 15963 haveit=yes 15964 break 15965 fi 15966 done 15967 if test -z "$haveit"; then 15968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15969 fi 15970 done 15971 15972 15973 echo "$as_me:$LINENO: checking for iconv" >&5 15974echo $ECHO_N "checking for iconv... $ECHO_C" >&6 15975if test "${am_cv_func_iconv+set}" = set; then 15976 echo $ECHO_N "(cached) $ECHO_C" >&6 15977else 15978 15979 am_cv_func_iconv="no, consider installing GNU libiconv" 15980 am_cv_lib_iconv=no 15981 cat >conftest.$ac_ext <<_ACEOF 15982/* confdefs.h. */ 15983_ACEOF 15984cat confdefs.h >>conftest.$ac_ext 15985cat >>conftest.$ac_ext <<_ACEOF 15986/* end confdefs.h. */ 15987#include <stdlib.h> 15988#include <iconv.h> 15989int 15990main () 15991{ 15992iconv_t cd = iconv_open("",""); 15993 iconv(cd,NULL,NULL,NULL,NULL); 15994 iconv_close(cd); 15995 ; 15996 return 0; 15997} 15998_ACEOF 15999rm -f conftest.$ac_objext conftest$ac_exeext 16000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16001 (eval $ac_link) 2>conftest.er1 16002 ac_status=$? 16003 grep -v '^ *+' conftest.er1 >conftest.err 16004 rm -f conftest.er1 16005 cat conftest.err >&5 16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16007 (exit $ac_status); } && 16008 { ac_try='test -z "$ac_c_werror_flag" 16009 || test ! -s conftest.err' 16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16011 (eval $ac_try) 2>&5 16012 ac_status=$? 16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16014 (exit $ac_status); }; } && 16015 { ac_try='test -s conftest$ac_exeext' 16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16017 (eval $ac_try) 2>&5 16018 ac_status=$? 16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16020 (exit $ac_status); }; }; then 16021 am_cv_func_iconv=yes 16022else 16023 echo "$as_me: failed program was:" >&5 16024sed 's/^/| /' conftest.$ac_ext >&5 16025 16026fi 16027rm -f conftest.err conftest.$ac_objext \ 16028 conftest$ac_exeext conftest.$ac_ext 16029 if test "$am_cv_func_iconv" != yes; then 16030 am_save_LIBS="$LIBS" 16031 LIBS="$LIBS $LIBICONV" 16032 cat >conftest.$ac_ext <<_ACEOF 16033/* confdefs.h. */ 16034_ACEOF 16035cat confdefs.h >>conftest.$ac_ext 16036cat >>conftest.$ac_ext <<_ACEOF 16037/* end confdefs.h. */ 16038#include <stdlib.h> 16039#include <iconv.h> 16040int 16041main () 16042{ 16043iconv_t cd = iconv_open("",""); 16044 iconv(cd,NULL,NULL,NULL,NULL); 16045 iconv_close(cd); 16046 ; 16047 return 0; 16048} 16049_ACEOF 16050rm -f conftest.$ac_objext conftest$ac_exeext 16051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16052 (eval $ac_link) 2>conftest.er1 16053 ac_status=$? 16054 grep -v '^ *+' conftest.er1 >conftest.err 16055 rm -f conftest.er1 16056 cat conftest.err >&5 16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16058 (exit $ac_status); } && 16059 { ac_try='test -z "$ac_c_werror_flag" 16060 || test ! -s conftest.err' 16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16062 (eval $ac_try) 2>&5 16063 ac_status=$? 16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16065 (exit $ac_status); }; } && 16066 { ac_try='test -s conftest$ac_exeext' 16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16068 (eval $ac_try) 2>&5 16069 ac_status=$? 16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16071 (exit $ac_status); }; }; then 16072 am_cv_lib_iconv=yes 16073 am_cv_func_iconv=yes 16074else 16075 echo "$as_me: failed program was:" >&5 16076sed 's/^/| /' conftest.$ac_ext >&5 16077 16078fi 16079rm -f conftest.err conftest.$ac_objext \ 16080 conftest$ac_exeext conftest.$ac_ext 16081 LIBS="$am_save_LIBS" 16082 fi 16083 16084fi 16085echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 16086echo "${ECHO_T}$am_cv_func_iconv" >&6 16087 if test "$am_cv_func_iconv" = yes; then 16088 16089cat >>confdefs.h <<\_ACEOF 16090#define HAVE_ICONV 1 16091_ACEOF 16092 16093 fi 16094 if test "$am_cv_lib_iconv" = yes; then 16095 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 16096echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 16097 echo "$as_me:$LINENO: result: $LIBICONV" >&5 16098echo "${ECHO_T}$LIBICONV" >&6 16099 else 16100 CPPFLAGS="$am_save_CPPFLAGS" 16101 LIBICONV= 16102 LTLIBICONV= 16103 fi 16104 16105 16106 16107 if test "$am_cv_func_iconv" = yes; then 16108 echo "$as_me:$LINENO: checking for iconv declaration" >&5 16109echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 16110 if test "${am_cv_proto_iconv+set}" = set; then 16111 echo $ECHO_N "(cached) $ECHO_C" >&6 16112else 16113 16114 cat >conftest.$ac_ext <<_ACEOF 16115/* confdefs.h. */ 16116_ACEOF 16117cat confdefs.h >>conftest.$ac_ext 16118cat >>conftest.$ac_ext <<_ACEOF 16119/* end confdefs.h. */ 16120 16121#include <stdlib.h> 16122#include <iconv.h> 16123extern 16124#ifdef __cplusplus 16125"C" 16126#endif 16127#if defined(__STDC__) || defined(__cplusplus) 16128size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 16129#else 16130size_t iconv(); 16131#endif 16132 16133int 16134main () 16135{ 16136 16137 ; 16138 return 0; 16139} 16140_ACEOF 16141rm -f conftest.$ac_objext 16142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16143 (eval $ac_compile) 2>conftest.er1 16144 ac_status=$? 16145 grep -v '^ *+' conftest.er1 >conftest.err 16146 rm -f conftest.er1 16147 cat conftest.err >&5 16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16149 (exit $ac_status); } && 16150 { ac_try='test -z "$ac_c_werror_flag" 16151 || test ! -s conftest.err' 16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16153 (eval $ac_try) 2>&5 16154 ac_status=$? 16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16156 (exit $ac_status); }; } && 16157 { ac_try='test -s conftest.$ac_objext' 16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16159 (eval $ac_try) 2>&5 16160 ac_status=$? 16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16162 (exit $ac_status); }; }; then 16163 am_cv_proto_iconv_arg1="" 16164else 16165 echo "$as_me: failed program was:" >&5 16166sed 's/^/| /' conftest.$ac_ext >&5 16167 16168am_cv_proto_iconv_arg1="const" 16169fi 16170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16171 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 16172fi 16173 16174 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 16175 echo "$as_me:$LINENO: result: ${ac_t:- 16176 }$am_cv_proto_iconv" >&5 16177echo "${ECHO_T}${ac_t:- 16178 }$am_cv_proto_iconv" >&6 16179 16180cat >>confdefs.h <<_ACEOF 16181#define ICONV_CONST $am_cv_proto_iconv_arg1 16182_ACEOF 16183 16184 fi 16185 16186 16187 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 16188echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 16189if test "${am_cv_langinfo_codeset+set}" = set; then 16190 echo $ECHO_N "(cached) $ECHO_C" >&6 16191else 16192 cat >conftest.$ac_ext <<_ACEOF 16193/* confdefs.h. */ 16194_ACEOF 16195cat confdefs.h >>conftest.$ac_ext 16196cat >>conftest.$ac_ext <<_ACEOF 16197/* end confdefs.h. */ 16198#include <langinfo.h> 16199int 16200main () 16201{ 16202char* cs = nl_langinfo(CODESET); 16203 ; 16204 return 0; 16205} 16206_ACEOF 16207rm -f conftest.$ac_objext conftest$ac_exeext 16208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16209 (eval $ac_link) 2>conftest.er1 16210 ac_status=$? 16211 grep -v '^ *+' conftest.er1 >conftest.err 16212 rm -f conftest.er1 16213 cat conftest.err >&5 16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16215 (exit $ac_status); } && 16216 { ac_try='test -z "$ac_c_werror_flag" 16217 || test ! -s conftest.err' 16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16219 (eval $ac_try) 2>&5 16220 ac_status=$? 16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16222 (exit $ac_status); }; } && 16223 { ac_try='test -s conftest$ac_exeext' 16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16225 (eval $ac_try) 2>&5 16226 ac_status=$? 16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16228 (exit $ac_status); }; }; then 16229 am_cv_langinfo_codeset=yes 16230else 16231 echo "$as_me: failed program was:" >&5 16232sed 's/^/| /' conftest.$ac_ext >&5 16233 16234am_cv_langinfo_codeset=no 16235fi 16236rm -f conftest.err conftest.$ac_objext \ 16237 conftest$ac_exeext conftest.$ac_ext 16238 16239fi 16240echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 16241echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 16242 if test $am_cv_langinfo_codeset = yes; then 16243 16244cat >>confdefs.h <<\_ACEOF 16245#define HAVE_LANGINFO_CODESET 1 16246_ACEOF 16247 16248 fi 16249 16250 if test $ac_cv_header_locale_h = yes; then 16251 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 16252echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 16253if test "${am_cv_val_LC_MESSAGES+set}" = set; then 16254 echo $ECHO_N "(cached) $ECHO_C" >&6 16255else 16256 cat >conftest.$ac_ext <<_ACEOF 16257/* confdefs.h. */ 16258_ACEOF 16259cat confdefs.h >>conftest.$ac_ext 16260cat >>conftest.$ac_ext <<_ACEOF 16261/* end confdefs.h. */ 16262#include <locale.h> 16263int 16264main () 16265{ 16266return LC_MESSAGES 16267 ; 16268 return 0; 16269} 16270_ACEOF 16271rm -f conftest.$ac_objext conftest$ac_exeext 16272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16273 (eval $ac_link) 2>conftest.er1 16274 ac_status=$? 16275 grep -v '^ *+' conftest.er1 >conftest.err 16276 rm -f conftest.er1 16277 cat conftest.err >&5 16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16279 (exit $ac_status); } && 16280 { ac_try='test -z "$ac_c_werror_flag" 16281 || test ! -s conftest.err' 16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16283 (eval $ac_try) 2>&5 16284 ac_status=$? 16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16286 (exit $ac_status); }; } && 16287 { ac_try='test -s conftest$ac_exeext' 16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16289 (eval $ac_try) 2>&5 16290 ac_status=$? 16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16292 (exit $ac_status); }; }; then 16293 am_cv_val_LC_MESSAGES=yes 16294else 16295 echo "$as_me: failed program was:" >&5 16296sed 's/^/| /' conftest.$ac_ext >&5 16297 16298am_cv_val_LC_MESSAGES=no 16299fi 16300rm -f conftest.err conftest.$ac_objext \ 16301 conftest$ac_exeext conftest.$ac_ext 16302fi 16303echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 16304echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 16305 if test $am_cv_val_LC_MESSAGES = yes; then 16306 16307cat >>confdefs.h <<\_ACEOF 16308#define HAVE_LC_MESSAGES 1 16309_ACEOF 16310 16311 fi 16312 fi 16313 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 16314echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 16315 # Check whether --enable-nls or --disable-nls was given. 16316if test "${enable_nls+set}" = set; then 16317 enableval="$enable_nls" 16318 USE_NLS=$enableval 16319else 16320 USE_NLS=yes 16321fi; 16322 echo "$as_me:$LINENO: result: $USE_NLS" >&5 16323echo "${ECHO_T}$USE_NLS" >&6 16324 16325 16326 BUILD_INCLUDED_LIBINTL=no 16327 USE_INCLUDED_LIBINTL=no 16328 INTLLIBS= 16329 16330 if test "$USE_NLS" = "yes"; then 16331 16332cat >>confdefs.h <<\_ACEOF 16333#define ENABLE_NLS 1 16334_ACEOF 16335 16336 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 16337echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 16338 16339# Check whether --with-included-gettext or --without-included-gettext was given. 16340if test "${with_included_gettext+set}" = set; then 16341 withval="$with_included_gettext" 16342 nls_cv_force_use_gnu_gettext=$withval 16343else 16344 nls_cv_force_use_gnu_gettext=no 16345fi; 16346 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 16347echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 16348 16349 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 16350 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 16351 CATOBJEXT=NONE 16352 16353 16354 16355 16356 if test "${ac_cv_header_libintl_h+set}" = set; then 16357 echo "$as_me:$LINENO: checking for libintl.h" >&5 16358echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 16359if test "${ac_cv_header_libintl_h+set}" = set; then 16360 echo $ECHO_N "(cached) $ECHO_C" >&6 16361fi 16362echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 16363echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 16364else 16365 # Is the header compilable? 16366echo "$as_me:$LINENO: checking libintl.h usability" >&5 16367echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 16368cat >conftest.$ac_ext <<_ACEOF 16369/* confdefs.h. */ 16370_ACEOF 16371cat confdefs.h >>conftest.$ac_ext 16372cat >>conftest.$ac_ext <<_ACEOF 16373/* end confdefs.h. */ 16374$ac_includes_default 16375#include <libintl.h> 16376_ACEOF 16377rm -f conftest.$ac_objext 16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16379 (eval $ac_compile) 2>conftest.er1 16380 ac_status=$? 16381 grep -v '^ *+' conftest.er1 >conftest.err 16382 rm -f conftest.er1 16383 cat conftest.err >&5 16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16385 (exit $ac_status); } && 16386 { ac_try='test -z "$ac_c_werror_flag" 16387 || test ! -s conftest.err' 16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16389 (eval $ac_try) 2>&5 16390 ac_status=$? 16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16392 (exit $ac_status); }; } && 16393 { ac_try='test -s conftest.$ac_objext' 16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16395 (eval $ac_try) 2>&5 16396 ac_status=$? 16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16398 (exit $ac_status); }; }; then 16399 ac_header_compiler=yes 16400else 16401 echo "$as_me: failed program was:" >&5 16402sed 's/^/| /' conftest.$ac_ext >&5 16403 16404ac_header_compiler=no 16405fi 16406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16408echo "${ECHO_T}$ac_header_compiler" >&6 16409 16410# Is the header present? 16411echo "$as_me:$LINENO: checking libintl.h presence" >&5 16412echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 16413cat >conftest.$ac_ext <<_ACEOF 16414/* confdefs.h. */ 16415_ACEOF 16416cat confdefs.h >>conftest.$ac_ext 16417cat >>conftest.$ac_ext <<_ACEOF 16418/* end confdefs.h. */ 16419#include <libintl.h> 16420_ACEOF 16421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16423 ac_status=$? 16424 grep -v '^ *+' conftest.er1 >conftest.err 16425 rm -f conftest.er1 16426 cat conftest.err >&5 16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16428 (exit $ac_status); } >/dev/null; then 16429 if test -s conftest.err; then 16430 ac_cpp_err=$ac_c_preproc_warn_flag 16431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16432 else 16433 ac_cpp_err= 16434 fi 16435else 16436 ac_cpp_err=yes 16437fi 16438if test -z "$ac_cpp_err"; then 16439 ac_header_preproc=yes 16440else 16441 echo "$as_me: failed program was:" >&5 16442sed 's/^/| /' conftest.$ac_ext >&5 16443 16444 ac_header_preproc=no 16445fi 16446rm -f conftest.err conftest.$ac_ext 16447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16448echo "${ECHO_T}$ac_header_preproc" >&6 16449 16450# So? What about this header? 16451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16452 yes:no: ) 16453 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 16454echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 16455 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 16456echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 16457 ac_header_preproc=yes 16458 ;; 16459 no:yes:* ) 16460 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 16461echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 16462 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 16463echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 16464 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 16465echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 16466 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 16467echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 16468 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 16469echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 16470 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 16471echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 16472 ( 16473 cat <<\_ASBOX 16474## ------------------------------------------ ## 16475## Report this to the AC_PACKAGE_NAME lists. ## 16476## ------------------------------------------ ## 16477_ASBOX 16478 ) | 16479 sed "s/^/$as_me: WARNING: /" >&2 16480 ;; 16481esac 16482echo "$as_me:$LINENO: checking for libintl.h" >&5 16483echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 16484if test "${ac_cv_header_libintl_h+set}" = set; then 16485 echo $ECHO_N "(cached) $ECHO_C" >&6 16486else 16487 ac_cv_header_libintl_h=$ac_header_preproc 16488fi 16489echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 16490echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 16491 16492fi 16493if test $ac_cv_header_libintl_h = yes; then 16494 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 16495echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 16496if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 16497 echo $ECHO_N "(cached) $ECHO_C" >&6 16498else 16499 cat >conftest.$ac_ext <<_ACEOF 16500/* confdefs.h. */ 16501_ACEOF 16502cat confdefs.h >>conftest.$ac_ext 16503cat >>conftest.$ac_ext <<_ACEOF 16504/* end confdefs.h. */ 16505#include <libintl.h> 16506extern int _nl_msg_cat_cntr; 16507int 16508main () 16509{ 16510bindtextdomain ("", ""); 16511return (int) gettext ("") + _nl_msg_cat_cntr 16512 ; 16513 return 0; 16514} 16515_ACEOF 16516rm -f conftest.$ac_objext conftest$ac_exeext 16517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16518 (eval $ac_link) 2>conftest.er1 16519 ac_status=$? 16520 grep -v '^ *+' conftest.er1 >conftest.err 16521 rm -f conftest.er1 16522 cat conftest.err >&5 16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16524 (exit $ac_status); } && 16525 { ac_try='test -z "$ac_c_werror_flag" 16526 || test ! -s conftest.err' 16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16528 (eval $ac_try) 2>&5 16529 ac_status=$? 16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16531 (exit $ac_status); }; } && 16532 { ac_try='test -s conftest$ac_exeext' 16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16534 (eval $ac_try) 2>&5 16535 ac_status=$? 16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16537 (exit $ac_status); }; }; then 16538 gt_cv_func_gnugettext1_libc=yes 16539else 16540 echo "$as_me: failed program was:" >&5 16541sed 's/^/| /' conftest.$ac_ext >&5 16542 16543gt_cv_func_gnugettext1_libc=no 16544fi 16545rm -f conftest.err conftest.$ac_objext \ 16546 conftest$ac_exeext conftest.$ac_ext 16547fi 16548echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 16549echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 16550 16551 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 16552 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 16553echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 16554if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 16555 echo $ECHO_N "(cached) $ECHO_C" >&6 16556else 16557 gt_save_LIBS="$LIBS" 16558 LIBS="$LIBS -lintl $LIBICONV" 16559 cat >conftest.$ac_ext <<_ACEOF 16560/* confdefs.h. */ 16561_ACEOF 16562cat confdefs.h >>conftest.$ac_ext 16563cat >>conftest.$ac_ext <<_ACEOF 16564/* end confdefs.h. */ 16565#include <libintl.h> 16566extern int _nl_msg_cat_cntr; 16567int 16568main () 16569{ 16570bindtextdomain ("", ""); 16571return (int) gettext ("") + _nl_msg_cat_cntr 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576rm -f conftest.$ac_objext conftest$ac_exeext 16577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16578 (eval $ac_link) 2>conftest.er1 16579 ac_status=$? 16580 grep -v '^ *+' conftest.er1 >conftest.err 16581 rm -f conftest.er1 16582 cat conftest.err >&5 16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16584 (exit $ac_status); } && 16585 { ac_try='test -z "$ac_c_werror_flag" 16586 || test ! -s conftest.err' 16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16588 (eval $ac_try) 2>&5 16589 ac_status=$? 16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16591 (exit $ac_status); }; } && 16592 { ac_try='test -s conftest$ac_exeext' 16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16594 (eval $ac_try) 2>&5 16595 ac_status=$? 16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16597 (exit $ac_status); }; }; then 16598 gt_cv_func_gnugettext1_libintl=yes 16599else 16600 echo "$as_me: failed program was:" >&5 16601sed 's/^/| /' conftest.$ac_ext >&5 16602 16603gt_cv_func_gnugettext1_libintl=no 16604fi 16605rm -f conftest.err conftest.$ac_objext \ 16606 conftest$ac_exeext conftest.$ac_ext 16607 LIBS="$gt_save_LIBS" 16608fi 16609echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 16610echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 16611 fi 16612 16613 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 16614 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 16615 && test "$PACKAGE" != gettext; }; then 16616 16617cat >>confdefs.h <<\_ACEOF 16618#define HAVE_GETTEXT 1 16619_ACEOF 16620 16621 16622 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 16623 INTLLIBS="-lintl $LIBICONV" 16624 fi 16625 16626 gt_save_LIBS="$LIBS" 16627 LIBS="$LIBS $INTLLIBS" 16628 16629for ac_func in dcgettext 16630do 16631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16632echo "$as_me:$LINENO: checking for $ac_func" >&5 16633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16634if eval "test \"\${$as_ac_var+set}\" = set"; then 16635 echo $ECHO_N "(cached) $ECHO_C" >&6 16636else 16637 cat >conftest.$ac_ext <<_ACEOF 16638/* confdefs.h. */ 16639_ACEOF 16640cat confdefs.h >>conftest.$ac_ext 16641cat >>conftest.$ac_ext <<_ACEOF 16642/* end confdefs.h. */ 16643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16645#define $ac_func innocuous_$ac_func 16646 16647/* System header to define __stub macros and hopefully few prototypes, 16648 which can conflict with char $ac_func (); below. 16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16650 <limits.h> exists even on freestanding compilers. */ 16651 16652#ifdef __STDC__ 16653# include <limits.h> 16654#else 16655# include <assert.h> 16656#endif 16657 16658#undef $ac_func 16659 16660/* Override any gcc2 internal prototype to avoid an error. */ 16661#ifdef __cplusplus 16662extern "C" 16663{ 16664#endif 16665/* We use char because int might match the return type of a gcc2 16666 builtin and then its argument prototype would still apply. */ 16667char $ac_func (); 16668/* The GNU C library defines this for functions which it implements 16669 to always fail with ENOSYS. Some functions are actually named 16670 something starting with __ and the normal name is an alias. */ 16671#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16672choke me 16673#else 16674char (*f) () = $ac_func; 16675#endif 16676#ifdef __cplusplus 16677} 16678#endif 16679 16680int 16681main () 16682{ 16683return f != $ac_func; 16684 ; 16685 return 0; 16686} 16687_ACEOF 16688rm -f conftest.$ac_objext conftest$ac_exeext 16689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16690 (eval $ac_link) 2>conftest.er1 16691 ac_status=$? 16692 grep -v '^ *+' conftest.er1 >conftest.err 16693 rm -f conftest.er1 16694 cat conftest.err >&5 16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16696 (exit $ac_status); } && 16697 { ac_try='test -z "$ac_c_werror_flag" 16698 || test ! -s conftest.err' 16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16700 (eval $ac_try) 2>&5 16701 ac_status=$? 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); }; } && 16704 { ac_try='test -s conftest$ac_exeext' 16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16706 (eval $ac_try) 2>&5 16707 ac_status=$? 16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16709 (exit $ac_status); }; }; then 16710 eval "$as_ac_var=yes" 16711else 16712 echo "$as_me: failed program was:" >&5 16713sed 's/^/| /' conftest.$ac_ext >&5 16714 16715eval "$as_ac_var=no" 16716fi 16717rm -f conftest.err conftest.$ac_objext \ 16718 conftest$ac_exeext conftest.$ac_ext 16719fi 16720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16722if test `eval echo '${'$as_ac_var'}'` = yes; then 16723 cat >>confdefs.h <<_ACEOF 16724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16725_ACEOF 16726 16727fi 16728done 16729 16730 LIBS="$gt_save_LIBS" 16731 16732 # Extract the first word of "msgfmt", so it can be a program name with args. 16733set dummy msgfmt; ac_word=$2 16734echo "$as_me:$LINENO: checking for $ac_word" >&5 16735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16736if test "${ac_cv_path_MSGFMT+set}" = set; then 16737 echo $ECHO_N "(cached) $ECHO_C" >&6 16738else 16739 case "$MSGFMT" in 16740 /*) 16741 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 16742 ;; 16743 *) 16744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 16745 for ac_dir in $PATH; do 16746 test -z "$ac_dir" && ac_dir=. 16747 if test -f $ac_dir/$ac_word; then 16748 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 16749 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 16750 break 16751 fi 16752 fi 16753 done 16754 IFS="$ac_save_ifs" 16755 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 16756 ;; 16757esac 16758fi 16759MSGFMT="$ac_cv_path_MSGFMT" 16760if test "$MSGFMT" != ":"; then 16761 echo "$as_me:$LINENO: result: $MSGFMT" >&5 16762echo "${ECHO_T}$MSGFMT" >&6 16763else 16764 echo "$as_me:$LINENO: result: no" >&5 16765echo "${ECHO_T}no" >&6 16766fi 16767 16768 # Extract the first word of "gmsgfmt", so it can be a program name with args. 16769set dummy gmsgfmt; ac_word=$2 16770echo "$as_me:$LINENO: checking for $ac_word" >&5 16771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16772if test "${ac_cv_path_GMSGFMT+set}" = set; then 16773 echo $ECHO_N "(cached) $ECHO_C" >&6 16774else 16775 case $GMSGFMT in 16776 [\\/]* | ?:[\\/]*) 16777 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 16778 ;; 16779 *) 16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16781for as_dir in $PATH 16782do 16783 IFS=$as_save_IFS 16784 test -z "$as_dir" && as_dir=. 16785 for ac_exec_ext in '' $ac_executable_extensions; do 16786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16787 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 16788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16789 break 2 16790 fi 16791done 16792done 16793 16794 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 16795 ;; 16796esac 16797fi 16798GMSGFMT=$ac_cv_path_GMSGFMT 16799 16800if test -n "$GMSGFMT"; then 16801 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 16802echo "${ECHO_T}$GMSGFMT" >&6 16803else 16804 echo "$as_me:$LINENO: result: no" >&5 16805echo "${ECHO_T}no" >&6 16806fi 16807 16808 16809 # Extract the first word of "xgettext", so it can be a program name with args. 16810set dummy xgettext; ac_word=$2 16811echo "$as_me:$LINENO: checking for $ac_word" >&5 16812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16813if test "${ac_cv_path_XGETTEXT+set}" = set; then 16814 echo $ECHO_N "(cached) $ECHO_C" >&6 16815else 16816 case "$XGETTEXT" in 16817 /*) 16818 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 16819 ;; 16820 *) 16821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 16822 for ac_dir in $PATH; do 16823 test -z "$ac_dir" && ac_dir=. 16824 if test -f $ac_dir/$ac_word; then 16825 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 16826 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 16827 break 16828 fi 16829 fi 16830 done 16831 IFS="$ac_save_ifs" 16832 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 16833 ;; 16834esac 16835fi 16836XGETTEXT="$ac_cv_path_XGETTEXT" 16837if test "$XGETTEXT" != ":"; then 16838 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 16839echo "${ECHO_T}$XGETTEXT" >&6 16840else 16841 echo "$as_me:$LINENO: result: no" >&5 16842echo "${ECHO_T}no" >&6 16843fi 16844 16845 16846 CATOBJEXT=.gmo 16847 fi 16848 16849fi 16850 16851 16852 16853 if test "$CATOBJEXT" = "NONE"; then 16854 nls_cv_use_gnu_gettext=yes 16855 fi 16856 fi 16857 16858 if test "$nls_cv_use_gnu_gettext" = "yes"; then 16859 INTLOBJS="\$(GETTOBJS)" 16860 # Extract the first word of "msgfmt", so it can be a program name with args. 16861set dummy msgfmt; ac_word=$2 16862echo "$as_me:$LINENO: checking for $ac_word" >&5 16863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16864if test "${ac_cv_path_MSGFMT+set}" = set; then 16865 echo $ECHO_N "(cached) $ECHO_C" >&6 16866else 16867 case "$MSGFMT" in 16868 /*) 16869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 16870 ;; 16871 *) 16872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 16873 for ac_dir in $PATH; do 16874 test -z "$ac_dir" && ac_dir=. 16875 if test -f $ac_dir/$ac_word; then 16876 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 16877 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 16878 break 16879 fi 16880 fi 16881 done 16882 IFS="$ac_save_ifs" 16883 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 16884 ;; 16885esac 16886fi 16887MSGFMT="$ac_cv_path_MSGFMT" 16888if test "$MSGFMT" != ":"; then 16889 echo "$as_me:$LINENO: result: $MSGFMT" >&5 16890echo "${ECHO_T}$MSGFMT" >&6 16891else 16892 echo "$as_me:$LINENO: result: no" >&5 16893echo "${ECHO_T}no" >&6 16894fi 16895 16896 # Extract the first word of "gmsgfmt", so it can be a program name with args. 16897set dummy gmsgfmt; ac_word=$2 16898echo "$as_me:$LINENO: checking for $ac_word" >&5 16899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16900if test "${ac_cv_path_GMSGFMT+set}" = set; then 16901 echo $ECHO_N "(cached) $ECHO_C" >&6 16902else 16903 case $GMSGFMT in 16904 [\\/]* | ?:[\\/]*) 16905 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 16906 ;; 16907 *) 16908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16909for as_dir in $PATH 16910do 16911 IFS=$as_save_IFS 16912 test -z "$as_dir" && as_dir=. 16913 for ac_exec_ext in '' $ac_executable_extensions; do 16914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16915 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 16916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16917 break 2 16918 fi 16919done 16920done 16921 16922 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 16923 ;; 16924esac 16925fi 16926GMSGFMT=$ac_cv_path_GMSGFMT 16927 16928if test -n "$GMSGFMT"; then 16929 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 16930echo "${ECHO_T}$GMSGFMT" >&6 16931else 16932 echo "$as_me:$LINENO: result: no" >&5 16933echo "${ECHO_T}no" >&6 16934fi 16935 16936 # Extract the first word of "xgettext", so it can be a program name with args. 16937set dummy xgettext; ac_word=$2 16938echo "$as_me:$LINENO: checking for $ac_word" >&5 16939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16940if test "${ac_cv_path_XGETTEXT+set}" = set; then 16941 echo $ECHO_N "(cached) $ECHO_C" >&6 16942else 16943 case "$XGETTEXT" in 16944 /*) 16945 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 16946 ;; 16947 *) 16948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 16949 for ac_dir in $PATH; do 16950 test -z "$ac_dir" && ac_dir=. 16951 if test -f $ac_dir/$ac_word; then 16952 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 16953 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 16954 break 16955 fi 16956 fi 16957 done 16958 IFS="$ac_save_ifs" 16959 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 16960 ;; 16961esac 16962fi 16963XGETTEXT="$ac_cv_path_XGETTEXT" 16964if test "$XGETTEXT" != ":"; then 16965 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 16966echo "${ECHO_T}$XGETTEXT" >&6 16967else 16968 echo "$as_me:$LINENO: result: no" >&5 16969echo "${ECHO_T}no" >&6 16970fi 16971 16972 16973 BUILD_INCLUDED_LIBINTL=yes 16974 USE_INCLUDED_LIBINTL=yes 16975 16976cat >>confdefs.h <<\_ACEOF 16977#define USE_INCLUDED_LIBINTL 1 16978_ACEOF 16979 16980 CATOBJEXT=.gmo 16981 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" 16982 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 16983 fi 16984 16985 if test "$GMSGFMT" != ":"; then 16986 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then 16987 : ; 16988 else 16989 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 16990echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 16991 GMSGFMT=":" 16992 fi 16993 fi 16994 16995 if test "$XGETTEXT" != ":"; then 16996 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then 16997 : ; 16998 else 16999 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 17000echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 17001 XGETTEXT=":" 17002 fi 17003 fi 17004 17005 POSUB=po 17006 fi 17007 ac_config_commands="$ac_config_commands default-1" 17008 17009 17010 17011 if test "$PACKAGE" = gettext; then 17012 BUILD_INCLUDED_LIBINTL=yes 17013 fi 17014 17015 for ac_prog in bison 17016do 17017 # Extract the first word of "$ac_prog", so it can be a program name with args. 17018set dummy $ac_prog; ac_word=$2 17019echo "$as_me:$LINENO: checking for $ac_word" >&5 17020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17021if test "${ac_cv_prog_INTLBISON+set}" = set; then 17022 echo $ECHO_N "(cached) $ECHO_C" >&6 17023else 17024 if test -n "$INTLBISON"; then 17025 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 17026else 17027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17028for as_dir in $PATH 17029do 17030 IFS=$as_save_IFS 17031 test -z "$as_dir" && as_dir=. 17032 for ac_exec_ext in '' $ac_executable_extensions; do 17033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17034 ac_cv_prog_INTLBISON="$ac_prog" 17035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17036 break 2 17037 fi 17038done 17039done 17040 17041fi 17042fi 17043INTLBISON=$ac_cv_prog_INTLBISON 17044if test -n "$INTLBISON"; then 17045 echo "$as_me:$LINENO: result: $INTLBISON" >&5 17046echo "${ECHO_T}$INTLBISON" >&6 17047else 17048 echo "$as_me:$LINENO: result: no" >&5 17049echo "${ECHO_T}no" >&6 17050fi 17051 17052 test -n "$INTLBISON" && break 17053done 17054 17055 if test -z "$INTLBISON"; then 17056 ac_verc_fail=yes 17057 else 17058 echo "$as_me:$LINENO: checking version of bison" >&5 17059echo $ECHO_N "checking version of bison... $ECHO_C" >&6 17060 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 17061 case $ac_prog_version in 17062 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 17063 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 17064 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 17065 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 17066 esac 17067 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 17068echo "${ECHO_T}$ac_prog_version" >&6 17069 fi 17070 if test $ac_verc_fail = yes; then 17071 INTLBISON=: 17072 fi 17073 17074 for lang in $ALL_LINGUAS; do 17075 GMOFILES="$GMOFILES $lang.gmo" 17076 POFILES="$POFILES $lang.po" 17077 done 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 nls_cv_header_intl= 17090 nls_cv_header_libgt= 17091 17092 DATADIRNAME=share 17093 17094 17095 INSTOBJEXT=.mo 17096 17097 17098 GENCAT=gencat 17099 17100 17101 17102 if test "x$CATOBJEXT" != "x"; then 17103 if test "x$ALL_LINGUAS" = "x"; then 17104 LINGUAS= 17105 else 17106 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 17107echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 17108 NEW_LINGUAS= 17109 for presentlang in $ALL_LINGUAS; do 17110 useit=no 17111 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do 17112 # Use the presentlang catalog if desiredlang is 17113 # a. equal to presentlang, or 17114 # b. a variant of presentlang (because in this case, 17115 # presentlang can be used as a fallback for messages 17116 # which are not translated in the desiredlang catalog). 17117 case "$desiredlang" in 17118 "$presentlang"*) useit=yes;; 17119 esac 17120 done 17121 if test $useit = yes; then 17122 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 17123 fi 17124 done 17125 LINGUAS=$NEW_LINGUAS 17126 echo "$as_me:$LINENO: result: $LINGUAS" >&5 17127echo "${ECHO_T}$LINGUAS" >&6 17128 fi 17129 17130 if test -n "$LINGUAS"; then 17131 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 17132 fi 17133 fi 17134 17135 MKINSTALLDIRS= 17136 if test -n "$ac_aux_dir"; then 17137 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 17138 fi 17139 if test -z "$MKINSTALLDIRS"; then 17140 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 17141 fi 17142 17143 17144 INTL_LIBTOOL_SUFFIX_PREFIX= 17145 17146 17147echo "$as_me:$LINENO: checking for gettext" >&5 17148echo $ECHO_N "checking for gettext... $ECHO_C" >&6 17149if test "${ac_cv_func_gettext+set}" = set; then 17150 echo $ECHO_N "(cached) $ECHO_C" >&6 17151else 17152 cat >conftest.$ac_ext <<_ACEOF 17153/* confdefs.h. */ 17154_ACEOF 17155cat confdefs.h >>conftest.$ac_ext 17156cat >>conftest.$ac_ext <<_ACEOF 17157/* end confdefs.h. */ 17158/* Define gettext to an innocuous variant, in case <limits.h> declares gettext. 17159 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17160#define gettext innocuous_gettext 17161 17162/* System header to define __stub macros and hopefully few prototypes, 17163 which can conflict with char gettext (); below. 17164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17165 <limits.h> exists even on freestanding compilers. */ 17166 17167#ifdef __STDC__ 17168# include <limits.h> 17169#else 17170# include <assert.h> 17171#endif 17172 17173#undef gettext 17174 17175/* Override any gcc2 internal prototype to avoid an error. */ 17176#ifdef __cplusplus 17177extern "C" 17178{ 17179#endif 17180/* We use char because int might match the return type of a gcc2 17181 builtin and then its argument prototype would still apply. */ 17182char gettext (); 17183/* The GNU C library defines this for functions which it implements 17184 to always fail with ENOSYS. Some functions are actually named 17185 something starting with __ and the normal name is an alias. */ 17186#if defined (__stub_gettext) || defined (__stub___gettext) 17187choke me 17188#else 17189char (*f) () = gettext; 17190#endif 17191#ifdef __cplusplus 17192} 17193#endif 17194 17195int 17196main () 17197{ 17198return f != gettext; 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203rm -f conftest.$ac_objext conftest$ac_exeext 17204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17205 (eval $ac_link) 2>conftest.er1 17206 ac_status=$? 17207 grep -v '^ *+' conftest.er1 >conftest.err 17208 rm -f conftest.er1 17209 cat conftest.err >&5 17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17211 (exit $ac_status); } && 17212 { ac_try='test -z "$ac_c_werror_flag" 17213 || test ! -s conftest.err' 17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17215 (eval $ac_try) 2>&5 17216 ac_status=$? 17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17218 (exit $ac_status); }; } && 17219 { ac_try='test -s conftest$ac_exeext' 17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17221 (eval $ac_try) 2>&5 17222 ac_status=$? 17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17224 (exit $ac_status); }; }; then 17225 ac_cv_func_gettext=yes 17226else 17227 echo "$as_me: failed program was:" >&5 17228sed 's/^/| /' conftest.$ac_ext >&5 17229 17230ac_cv_func_gettext=no 17231fi 17232rm -f conftest.err conftest.$ac_objext \ 17233 conftest$ac_exeext conftest.$ac_ext 17234fi 17235echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5 17236echo "${ECHO_T}$ac_cv_func_gettext" >&6 17237if test $ac_cv_func_gettext = yes; then 17238 : 17239else 17240 17241echo "$as_me:$LINENO: checking for gettext in -lintl" >&5 17242echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6 17243if test "${ac_cv_lib_intl_gettext+set}" = set; then 17244 echo $ECHO_N "(cached) $ECHO_C" >&6 17245else 17246 ac_check_lib_save_LIBS=$LIBS 17247LIBS="-lintl $LIBS" 17248cat >conftest.$ac_ext <<_ACEOF 17249/* confdefs.h. */ 17250_ACEOF 17251cat confdefs.h >>conftest.$ac_ext 17252cat >>conftest.$ac_ext <<_ACEOF 17253/* end confdefs.h. */ 17254 17255/* Override any gcc2 internal prototype to avoid an error. */ 17256#ifdef __cplusplus 17257extern "C" 17258#endif 17259/* We use char because int might match the return type of a gcc2 17260 builtin and then its argument prototype would still apply. */ 17261char gettext (); 17262int 17263main () 17264{ 17265gettext (); 17266 ; 17267 return 0; 17268} 17269_ACEOF 17270rm -f conftest.$ac_objext conftest$ac_exeext 17271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17272 (eval $ac_link) 2>conftest.er1 17273 ac_status=$? 17274 grep -v '^ *+' conftest.er1 >conftest.err 17275 rm -f conftest.er1 17276 cat conftest.err >&5 17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17278 (exit $ac_status); } && 17279 { ac_try='test -z "$ac_c_werror_flag" 17280 || test ! -s conftest.err' 17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17282 (eval $ac_try) 2>&5 17283 ac_status=$? 17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17285 (exit $ac_status); }; } && 17286 { ac_try='test -s conftest$ac_exeext' 17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17288 (eval $ac_try) 2>&5 17289 ac_status=$? 17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17291 (exit $ac_status); }; }; then 17292 ac_cv_lib_intl_gettext=yes 17293else 17294 echo "$as_me: failed program was:" >&5 17295sed 's/^/| /' conftest.$ac_ext >&5 17296 17297ac_cv_lib_intl_gettext=no 17298fi 17299rm -f conftest.err conftest.$ac_objext \ 17300 conftest$ac_exeext conftest.$ac_ext 17301LIBS=$ac_check_lib_save_LIBS 17302fi 17303echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5 17304echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6 17305if test $ac_cv_lib_intl_gettext = yes; then 17306 cat >>confdefs.h <<_ACEOF 17307#define HAVE_LIBINTL 1 17308_ACEOF 17309 17310 LIBS="-lintl $LIBS" 17311 17312fi 17313 17314fi 17315 17316localedir="\${datadir}/locale" 17317 17318 17319 17320gimv_save_LIBS=$LIBS 17321LIBS="$LIBS $GTK_LIBS" 17322 17323for ac_func in bind_textdomain_codeset 17324do 17325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17326echo "$as_me:$LINENO: checking for $ac_func" >&5 17327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17328if eval "test \"\${$as_ac_var+set}\" = set"; then 17329 echo $ECHO_N "(cached) $ECHO_C" >&6 17330else 17331 cat >conftest.$ac_ext <<_ACEOF 17332/* confdefs.h. */ 17333_ACEOF 17334cat confdefs.h >>conftest.$ac_ext 17335cat >>conftest.$ac_ext <<_ACEOF 17336/* end confdefs.h. */ 17337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17338 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17339#define $ac_func innocuous_$ac_func 17340 17341/* System header to define __stub macros and hopefully few prototypes, 17342 which can conflict with char $ac_func (); below. 17343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17344 <limits.h> exists even on freestanding compilers. */ 17345 17346#ifdef __STDC__ 17347# include <limits.h> 17348#else 17349# include <assert.h> 17350#endif 17351 17352#undef $ac_func 17353 17354/* Override any gcc2 internal prototype to avoid an error. */ 17355#ifdef __cplusplus 17356extern "C" 17357{ 17358#endif 17359/* We use char because int might match the return type of a gcc2 17360 builtin and then its argument prototype would still apply. */ 17361char $ac_func (); 17362/* The GNU C library defines this for functions which it implements 17363 to always fail with ENOSYS. Some functions are actually named 17364 something starting with __ and the normal name is an alias. */ 17365#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17366choke me 17367#else 17368char (*f) () = $ac_func; 17369#endif 17370#ifdef __cplusplus 17371} 17372#endif 17373 17374int 17375main () 17376{ 17377return f != $ac_func; 17378 ; 17379 return 0; 17380} 17381_ACEOF 17382rm -f conftest.$ac_objext conftest$ac_exeext 17383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17384 (eval $ac_link) 2>conftest.er1 17385 ac_status=$? 17386 grep -v '^ *+' conftest.er1 >conftest.err 17387 rm -f conftest.er1 17388 cat conftest.err >&5 17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17390 (exit $ac_status); } && 17391 { ac_try='test -z "$ac_c_werror_flag" 17392 || test ! -s conftest.err' 17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17394 (eval $ac_try) 2>&5 17395 ac_status=$? 17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17397 (exit $ac_status); }; } && 17398 { ac_try='test -s conftest$ac_exeext' 17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17400 (eval $ac_try) 2>&5 17401 ac_status=$? 17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17403 (exit $ac_status); }; }; then 17404 eval "$as_ac_var=yes" 17405else 17406 echo "$as_me: failed program was:" >&5 17407sed 's/^/| /' conftest.$ac_ext >&5 17408 17409eval "$as_ac_var=no" 17410fi 17411rm -f conftest.err conftest.$ac_objext \ 17412 conftest$ac_exeext conftest.$ac_ext 17413fi 17414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17416if test `eval echo '${'$as_ac_var'}'` = yes; then 17417 cat >>confdefs.h <<_ACEOF 17418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17419_ACEOF 17420 17421fi 17422done 17423 17424LIBS=$gimv_save_LIBS 17425 17426 17427 17428 17429# Check whether --with-libcharset-prefix or --without-libcharset-prefix was given. 17430if test "${with_libcharset_prefix+set}" = set; then 17431 withval="$with_libcharset_prefix" 17432 17433 for dir in `echo "$withval" | tr : ' '`; do 17434 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi 17435 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi 17436 done 17437 17438fi; 17439 17440 echo "$as_me:$LINENO: checking for libcharset" >&5 17441echo $ECHO_N "checking for libcharset... $ECHO_C" >&6 17442if test "${am_cv_libcharset+set}" = set; then 17443 echo $ECHO_N "(cached) $ECHO_C" >&6 17444else 17445 17446 am_cv_libcharset=no 17447 am_save_LIBS="$LIBS" 17448 LIBS="$LIBS -lcharset" 17449 cat >conftest.$ac_ext <<_ACEOF 17450/* confdefs.h. */ 17451_ACEOF 17452cat confdefs.h >>conftest.$ac_ext 17453cat >>conftest.$ac_ext <<_ACEOF 17454/* end confdefs.h. */ 17455#include <libcharset.h> 17456int 17457main () 17458{ 17459const char *charset = locale_charset (); 17460 ; 17461 return 0; 17462} 17463_ACEOF 17464rm -f conftest.$ac_objext conftest$ac_exeext 17465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17466 (eval $ac_link) 2>conftest.er1 17467 ac_status=$? 17468 grep -v '^ *+' conftest.er1 >conftest.err 17469 rm -f conftest.er1 17470 cat conftest.err >&5 17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17472 (exit $ac_status); } && 17473 { ac_try='test -z "$ac_c_werror_flag" 17474 || test ! -s conftest.err' 17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17476 (eval $ac_try) 2>&5 17477 ac_status=$? 17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17479 (exit $ac_status); }; } && 17480 { ac_try='test -s conftest$ac_exeext' 17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17482 (eval $ac_try) 2>&5 17483 ac_status=$? 17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17485 (exit $ac_status); }; }; then 17486 am_cv_libcharset=yes 17487else 17488 echo "$as_me: failed program was:" >&5 17489sed 's/^/| /' conftest.$ac_ext >&5 17490 17491fi 17492rm -f conftest.err conftest.$ac_objext \ 17493 conftest$ac_exeext conftest.$ac_ext 17494 LIBS="$am_save_LIBS" 17495 17496fi 17497echo "$as_me:$LINENO: result: $am_cv_libcharset" >&5 17498echo "${ECHO_T}$am_cv_libcharset" >&6 17499 17500 LIBCHARSET= 17501 if test "$am_cv_libcharset" = yes; then 17502 17503cat >>confdefs.h <<\_ACEOF 17504#define HAVE_LIBCHARSET 1 17505_ACEOF 17506 17507 LIBCHARSET="-lcharset" 17508 fi 17509 17510 17511 17512 17513 17514 17515if test -n ""; then 17516 echo "$as_me:$LINENO: checking for intltool >= " >&5 17517echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6 17518 17519 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'` 17520 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${srcdir}/intltool-update.in` 17521 17522 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${srcdir}/intltool-update.in` 17523 17524 17525 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then 17526 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 17527echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6 17528 else 17529 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5 17530echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6 17531 exit 1 17532 fi 17533fi 17534 17535 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17536INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17537 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache' 17538 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17539 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p' 17540 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' 17541 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache' 17542 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' 17543INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17544 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' 17545 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' 17546 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17547 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache' 17548 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565# Use the tools built into the package, not the ones that are installed. 17566 17567INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 17568INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 17569INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 17570 17571 17572 17573 17574 17575# Extract the first word of "perl", so it can be a program name with args. 17576set dummy perl; ac_word=$2 17577echo "$as_me:$LINENO: checking for $ac_word" >&5 17578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17579if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then 17580 echo $ECHO_N "(cached) $ECHO_C" >&6 17581else 17582 case $INTLTOOL_PERL in 17583 [\\/]* | ?:[\\/]*) 17584 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 17585 ;; 17586 *) 17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17588for as_dir in $PATH 17589do 17590 IFS=$as_save_IFS 17591 test -z "$as_dir" && as_dir=. 17592 for ac_exec_ext in '' $ac_executable_extensions; do 17593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17594 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 17595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17596 break 2 17597 fi 17598done 17599done 17600 17601 ;; 17602esac 17603fi 17604INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 17605 17606if test -n "$INTLTOOL_PERL"; then 17607 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 17608echo "${ECHO_T}$INTLTOOL_PERL" >&6 17609else 17610 echo "$as_me:$LINENO: result: no" >&5 17611echo "${ECHO_T}no" >&6 17612fi 17613 17614if test -z "$INTLTOOL_PERL"; then 17615 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 17616echo "$as_me: error: perl not found; required for intltool" >&2;} 17617 { (exit 1); exit 1; }; } 17618fi 17619if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 17620 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 17621echo "$as_me: error: perl 5.x required for intltool" >&2;} 17622 { (exit 1); exit 1; }; } 17623fi 17624 17625# Remove file type tags (using []) from po/POTFILES. 17626 17627 17628 17629 17630 17631 17632 17633# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. 17634 17635 ac_config_commands="$ac_config_commands default-2" 17636 17637 17638 17639 17640 17641# Check whether --enable-exif or --disable-exif was given. 17642if test "${enable_exif+set}" = set; then 17643 enableval="$enable_exif" 17644 enable_exif="${enableval}" 17645else 17646 enable_exif=yes 17647fi; 17648 17649 17650if test x"$enable_exif" = xyes; then 17651 ENABLE_EXIF_TRUE= 17652 ENABLE_EXIF_FALSE='#' 17653else 17654 ENABLE_EXIF_TRUE='#' 17655 ENABLE_EXIF_FALSE= 17656fi 17657 17658if test x"$enable_exif" = xyes; then 17659 17660cat >>confdefs.h <<\_ACEOF 17661#define ENABLE_EXIF 1 17662_ACEOF 17663 17664 EXIF_CFLAGS="-I\$(top_srcdir)/lib" 17665 EXIF_LIBS="\$(top_builddir)/lib/libexif/libexif.la" 17666 17667 17668fi 17669 17670 17671# Check whether --enable-spi or --disable-spi was given. 17672if test "${enable_spi+set}" = set; then 17673 enableval="$enable_spi" 17674 enable_spi="${enableval}" 17675else 17676 enable_spi=no 17677fi; 17678 17679 17680if test x"$enable_spi" = xyes; then 17681 ENABLE_SPI_TRUE= 17682 ENABLE_SPI_FALSE='#' 17683else 17684 ENABLE_SPI_TRUE='#' 17685 ENABLE_SPI_FALSE= 17686fi 17687 17688 17689if test x"$enable_spi" = xyes; then 17690 17691cat >>confdefs.h <<\_ACEOF 17692#define ENABLE_SPI 1 17693_ACEOF 17694 17695 if test x"$platform_win32" = xno; then 17696 DLLLOADER_CFLAGS="-I\$(top_srcdir)/lib -I\$(top_srcdir)/lib/dllloader" 17697 DLLLOADER_LIBS="\$(top_builddir)/lib/dllloader/libdllloader.la" 17698 17699 17700 fi 17701fi 17702 17703 17704# Check whether --enable-splash or --disable-splash was given. 17705if test "${enable_splash+set}" = set; then 17706 enableval="$enable_splash" 17707 enable_splash="${enableval}" 17708else 17709 enable_splash=yes 17710fi; 17711if test x"$enable_splash" = xyes; then 17712 17713cat >>confdefs.h <<\_ACEOF 17714#define ENABLE_SPLASH 1 17715_ACEOF 17716 17717fi 17718 17719 17720# Check whether --enable-mplayer or --disable-mplayer was given. 17721if test "${enable_mplayer+set}" = set; then 17722 enableval="$enable_mplayer" 17723 enable_mplayer="${enableval}" 17724else 17725 enable_mplayer=no 17726fi; 17727if test x"$enable_mplayer" = xyes; then 17728 17729cat >>confdefs.h <<\_ACEOF 17730#define ENABLE_MPLAYER 1 17731_ACEOF 17732 17733 movie_support="MPlayer ${movie_support}" 17734fi 17735 17736 17737 17738if test x"$enable_mplayer" = x"yes"; then 17739 ENABLE_MPLAYER_TRUE= 17740 ENABLE_MPLAYER_FALSE='#' 17741else 17742 ENABLE_MPLAYER_TRUE='#' 17743 ENABLE_MPLAYER_FALSE= 17744fi 17745 17746 17747 17748if test x"$movie_support" = x; then 17749 movie_support=no 17750else 17751 17752cat >>confdefs.h <<\_ACEOF 17753#define ENABLE_MOVIE 1 17754_ACEOF 17755 17756fi 17757 17758 17759 17760 17761 17762 17763 17764ac_header_dirent=no 17765for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17766 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17767echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 17768echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 17769if eval "test \"\${$as_ac_Header+set}\" = set"; then 17770 echo $ECHO_N "(cached) $ECHO_C" >&6 17771else 17772 cat >conftest.$ac_ext <<_ACEOF 17773/* confdefs.h. */ 17774_ACEOF 17775cat confdefs.h >>conftest.$ac_ext 17776cat >>conftest.$ac_ext <<_ACEOF 17777/* end confdefs.h. */ 17778#include <sys/types.h> 17779#include <$ac_hdr> 17780 17781int 17782main () 17783{ 17784if ((DIR *) 0) 17785return 0; 17786 ; 17787 return 0; 17788} 17789_ACEOF 17790rm -f conftest.$ac_objext 17791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17792 (eval $ac_compile) 2>conftest.er1 17793 ac_status=$? 17794 grep -v '^ *+' conftest.er1 >conftest.err 17795 rm -f conftest.er1 17796 cat conftest.err >&5 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); } && 17799 { ac_try='test -z "$ac_c_werror_flag" 17800 || test ! -s conftest.err' 17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17802 (eval $ac_try) 2>&5 17803 ac_status=$? 17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17805 (exit $ac_status); }; } && 17806 { ac_try='test -s conftest.$ac_objext' 17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17808 (eval $ac_try) 2>&5 17809 ac_status=$? 17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17811 (exit $ac_status); }; }; then 17812 eval "$as_ac_Header=yes" 17813else 17814 echo "$as_me: failed program was:" >&5 17815sed 's/^/| /' conftest.$ac_ext >&5 17816 17817eval "$as_ac_Header=no" 17818fi 17819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17820fi 17821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 17822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17823if test `eval echo '${'$as_ac_Header'}'` = yes; then 17824 cat >>confdefs.h <<_ACEOF 17825#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17826_ACEOF 17827 17828ac_header_dirent=$ac_hdr; break 17829fi 17830 17831done 17832# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17833if test $ac_header_dirent = dirent.h; then 17834 echo "$as_me:$LINENO: checking for library containing opendir" >&5 17835echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 17836if test "${ac_cv_search_opendir+set}" = set; then 17837 echo $ECHO_N "(cached) $ECHO_C" >&6 17838else 17839 ac_func_search_save_LIBS=$LIBS 17840ac_cv_search_opendir=no 17841cat >conftest.$ac_ext <<_ACEOF 17842/* confdefs.h. */ 17843_ACEOF 17844cat confdefs.h >>conftest.$ac_ext 17845cat >>conftest.$ac_ext <<_ACEOF 17846/* end confdefs.h. */ 17847 17848/* Override any gcc2 internal prototype to avoid an error. */ 17849#ifdef __cplusplus 17850extern "C" 17851#endif 17852/* We use char because int might match the return type of a gcc2 17853 builtin and then its argument prototype would still apply. */ 17854char opendir (); 17855int 17856main () 17857{ 17858opendir (); 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863rm -f conftest.$ac_objext conftest$ac_exeext 17864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17865 (eval $ac_link) 2>conftest.er1 17866 ac_status=$? 17867 grep -v '^ *+' conftest.er1 >conftest.err 17868 rm -f conftest.er1 17869 cat conftest.err >&5 17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17871 (exit $ac_status); } && 17872 { ac_try='test -z "$ac_c_werror_flag" 17873 || test ! -s conftest.err' 17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17875 (eval $ac_try) 2>&5 17876 ac_status=$? 17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17878 (exit $ac_status); }; } && 17879 { ac_try='test -s conftest$ac_exeext' 17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17881 (eval $ac_try) 2>&5 17882 ac_status=$? 17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17884 (exit $ac_status); }; }; then 17885 ac_cv_search_opendir="none required" 17886else 17887 echo "$as_me: failed program was:" >&5 17888sed 's/^/| /' conftest.$ac_ext >&5 17889 17890fi 17891rm -f conftest.err conftest.$ac_objext \ 17892 conftest$ac_exeext conftest.$ac_ext 17893if test "$ac_cv_search_opendir" = no; then 17894 for ac_lib in dir; do 17895 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17896 cat >conftest.$ac_ext <<_ACEOF 17897/* confdefs.h. */ 17898_ACEOF 17899cat confdefs.h >>conftest.$ac_ext 17900cat >>conftest.$ac_ext <<_ACEOF 17901/* end confdefs.h. */ 17902 17903/* Override any gcc2 internal prototype to avoid an error. */ 17904#ifdef __cplusplus 17905extern "C" 17906#endif 17907/* We use char because int might match the return type of a gcc2 17908 builtin and then its argument prototype would still apply. */ 17909char opendir (); 17910int 17911main () 17912{ 17913opendir (); 17914 ; 17915 return 0; 17916} 17917_ACEOF 17918rm -f conftest.$ac_objext conftest$ac_exeext 17919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17920 (eval $ac_link) 2>conftest.er1 17921 ac_status=$? 17922 grep -v '^ *+' conftest.er1 >conftest.err 17923 rm -f conftest.er1 17924 cat conftest.err >&5 17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17926 (exit $ac_status); } && 17927 { ac_try='test -z "$ac_c_werror_flag" 17928 || test ! -s conftest.err' 17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17930 (eval $ac_try) 2>&5 17931 ac_status=$? 17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17933 (exit $ac_status); }; } && 17934 { ac_try='test -s conftest$ac_exeext' 17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17936 (eval $ac_try) 2>&5 17937 ac_status=$? 17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17939 (exit $ac_status); }; }; then 17940 ac_cv_search_opendir="-l$ac_lib" 17941break 17942else 17943 echo "$as_me: failed program was:" >&5 17944sed 's/^/| /' conftest.$ac_ext >&5 17945 17946fi 17947rm -f conftest.err conftest.$ac_objext \ 17948 conftest$ac_exeext conftest.$ac_ext 17949 done 17950fi 17951LIBS=$ac_func_search_save_LIBS 17952fi 17953echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 17954echo "${ECHO_T}$ac_cv_search_opendir" >&6 17955if test "$ac_cv_search_opendir" != no; then 17956 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 17957 17958fi 17959 17960else 17961 echo "$as_me:$LINENO: checking for library containing opendir" >&5 17962echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 17963if test "${ac_cv_search_opendir+set}" = set; then 17964 echo $ECHO_N "(cached) $ECHO_C" >&6 17965else 17966 ac_func_search_save_LIBS=$LIBS 17967ac_cv_search_opendir=no 17968cat >conftest.$ac_ext <<_ACEOF 17969/* confdefs.h. */ 17970_ACEOF 17971cat confdefs.h >>conftest.$ac_ext 17972cat >>conftest.$ac_ext <<_ACEOF 17973/* end confdefs.h. */ 17974 17975/* Override any gcc2 internal prototype to avoid an error. */ 17976#ifdef __cplusplus 17977extern "C" 17978#endif 17979/* We use char because int might match the return type of a gcc2 17980 builtin and then its argument prototype would still apply. */ 17981char opendir (); 17982int 17983main () 17984{ 17985opendir (); 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990rm -f conftest.$ac_objext conftest$ac_exeext 17991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17992 (eval $ac_link) 2>conftest.er1 17993 ac_status=$? 17994 grep -v '^ *+' conftest.er1 >conftest.err 17995 rm -f conftest.er1 17996 cat conftest.err >&5 17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17998 (exit $ac_status); } && 17999 { ac_try='test -z "$ac_c_werror_flag" 18000 || test ! -s conftest.err' 18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18002 (eval $ac_try) 2>&5 18003 ac_status=$? 18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18005 (exit $ac_status); }; } && 18006 { ac_try='test -s conftest$ac_exeext' 18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18008 (eval $ac_try) 2>&5 18009 ac_status=$? 18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18011 (exit $ac_status); }; }; then 18012 ac_cv_search_opendir="none required" 18013else 18014 echo "$as_me: failed program was:" >&5 18015sed 's/^/| /' conftest.$ac_ext >&5 18016 18017fi 18018rm -f conftest.err conftest.$ac_objext \ 18019 conftest$ac_exeext conftest.$ac_ext 18020if test "$ac_cv_search_opendir" = no; then 18021 for ac_lib in x; do 18022 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18023 cat >conftest.$ac_ext <<_ACEOF 18024/* confdefs.h. */ 18025_ACEOF 18026cat confdefs.h >>conftest.$ac_ext 18027cat >>conftest.$ac_ext <<_ACEOF 18028/* end confdefs.h. */ 18029 18030/* Override any gcc2 internal prototype to avoid an error. */ 18031#ifdef __cplusplus 18032extern "C" 18033#endif 18034/* We use char because int might match the return type of a gcc2 18035 builtin and then its argument prototype would still apply. */ 18036char opendir (); 18037int 18038main () 18039{ 18040opendir (); 18041 ; 18042 return 0; 18043} 18044_ACEOF 18045rm -f conftest.$ac_objext conftest$ac_exeext 18046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18047 (eval $ac_link) 2>conftest.er1 18048 ac_status=$? 18049 grep -v '^ *+' conftest.er1 >conftest.err 18050 rm -f conftest.er1 18051 cat conftest.err >&5 18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18053 (exit $ac_status); } && 18054 { ac_try='test -z "$ac_c_werror_flag" 18055 || test ! -s conftest.err' 18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18057 (eval $ac_try) 2>&5 18058 ac_status=$? 18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18060 (exit $ac_status); }; } && 18061 { ac_try='test -s conftest$ac_exeext' 18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18063 (eval $ac_try) 2>&5 18064 ac_status=$? 18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18066 (exit $ac_status); }; }; then 18067 ac_cv_search_opendir="-l$ac_lib" 18068break 18069else 18070 echo "$as_me: failed program was:" >&5 18071sed 's/^/| /' conftest.$ac_ext >&5 18072 18073fi 18074rm -f conftest.err conftest.$ac_objext \ 18075 conftest$ac_exeext conftest.$ac_ext 18076 done 18077fi 18078LIBS=$ac_func_search_save_LIBS 18079fi 18080echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 18081echo "${ECHO_T}$ac_cv_search_opendir" >&6 18082if test "$ac_cv_search_opendir" != no; then 18083 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 18084 18085fi 18086 18087fi 18088 18089echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18091if test "${ac_cv_header_stdc+set}" = set; then 18092 echo $ECHO_N "(cached) $ECHO_C" >&6 18093else 18094 cat >conftest.$ac_ext <<_ACEOF 18095/* confdefs.h. */ 18096_ACEOF 18097cat confdefs.h >>conftest.$ac_ext 18098cat >>conftest.$ac_ext <<_ACEOF 18099/* end confdefs.h. */ 18100#include <stdlib.h> 18101#include <stdarg.h> 18102#include <string.h> 18103#include <float.h> 18104 18105int 18106main () 18107{ 18108 18109 ; 18110 return 0; 18111} 18112_ACEOF 18113rm -f conftest.$ac_objext 18114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18115 (eval $ac_compile) 2>conftest.er1 18116 ac_status=$? 18117 grep -v '^ *+' conftest.er1 >conftest.err 18118 rm -f conftest.er1 18119 cat conftest.err >&5 18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18121 (exit $ac_status); } && 18122 { ac_try='test -z "$ac_c_werror_flag" 18123 || test ! -s conftest.err' 18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18125 (eval $ac_try) 2>&5 18126 ac_status=$? 18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18128 (exit $ac_status); }; } && 18129 { ac_try='test -s conftest.$ac_objext' 18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18131 (eval $ac_try) 2>&5 18132 ac_status=$? 18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18134 (exit $ac_status); }; }; then 18135 ac_cv_header_stdc=yes 18136else 18137 echo "$as_me: failed program was:" >&5 18138sed 's/^/| /' conftest.$ac_ext >&5 18139 18140ac_cv_header_stdc=no 18141fi 18142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18143 18144if test $ac_cv_header_stdc = yes; then 18145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18146 cat >conftest.$ac_ext <<_ACEOF 18147/* confdefs.h. */ 18148_ACEOF 18149cat confdefs.h >>conftest.$ac_ext 18150cat >>conftest.$ac_ext <<_ACEOF 18151/* end confdefs.h. */ 18152#include <string.h> 18153 18154_ACEOF 18155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18156 $EGREP "memchr" >/dev/null 2>&1; then 18157 : 18158else 18159 ac_cv_header_stdc=no 18160fi 18161rm -f conftest* 18162 18163fi 18164 18165if test $ac_cv_header_stdc = yes; then 18166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18167 cat >conftest.$ac_ext <<_ACEOF 18168/* confdefs.h. */ 18169_ACEOF 18170cat confdefs.h >>conftest.$ac_ext 18171cat >>conftest.$ac_ext <<_ACEOF 18172/* end confdefs.h. */ 18173#include <stdlib.h> 18174 18175_ACEOF 18176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18177 $EGREP "free" >/dev/null 2>&1; then 18178 : 18179else 18180 ac_cv_header_stdc=no 18181fi 18182rm -f conftest* 18183 18184fi 18185 18186if test $ac_cv_header_stdc = yes; then 18187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18188 if test "$cross_compiling" = yes; then 18189 : 18190else 18191 cat >conftest.$ac_ext <<_ACEOF 18192/* confdefs.h. */ 18193_ACEOF 18194cat confdefs.h >>conftest.$ac_ext 18195cat >>conftest.$ac_ext <<_ACEOF 18196/* end confdefs.h. */ 18197#include <ctype.h> 18198#if ((' ' & 0x0FF) == 0x020) 18199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18201#else 18202# define ISLOWER(c) \ 18203 (('a' <= (c) && (c) <= 'i') \ 18204 || ('j' <= (c) && (c) <= 'r') \ 18205 || ('s' <= (c) && (c) <= 'z')) 18206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18207#endif 18208 18209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18210int 18211main () 18212{ 18213 int i; 18214 for (i = 0; i < 256; i++) 18215 if (XOR (islower (i), ISLOWER (i)) 18216 || toupper (i) != TOUPPER (i)) 18217 exit(2); 18218 exit (0); 18219} 18220_ACEOF 18221rm -f conftest$ac_exeext 18222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18223 (eval $ac_link) 2>&5 18224 ac_status=$? 18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18228 (eval $ac_try) 2>&5 18229 ac_status=$? 18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18231 (exit $ac_status); }; }; then 18232 : 18233else 18234 echo "$as_me: program exited with status $ac_status" >&5 18235echo "$as_me: failed program was:" >&5 18236sed 's/^/| /' conftest.$ac_ext >&5 18237 18238( exit $ac_status ) 18239ac_cv_header_stdc=no 18240fi 18241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18242fi 18243fi 18244fi 18245echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18246echo "${ECHO_T}$ac_cv_header_stdc" >&6 18247if test $ac_cv_header_stdc = yes; then 18248 18249cat >>confdefs.h <<\_ACEOF 18250#define STDC_HEADERS 1 18251_ACEOF 18252 18253fi 18254 18255echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 18256echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 18257if test "${ac_cv_header_sys_wait_h+set}" = set; then 18258 echo $ECHO_N "(cached) $ECHO_C" >&6 18259else 18260 cat >conftest.$ac_ext <<_ACEOF 18261/* confdefs.h. */ 18262_ACEOF 18263cat confdefs.h >>conftest.$ac_ext 18264cat >>conftest.$ac_ext <<_ACEOF 18265/* end confdefs.h. */ 18266#include <sys/types.h> 18267#include <sys/wait.h> 18268#ifndef WEXITSTATUS 18269# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 18270#endif 18271#ifndef WIFEXITED 18272# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18273#endif 18274 18275int 18276main () 18277{ 18278 int s; 18279 wait (&s); 18280 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285rm -f conftest.$ac_objext 18286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18287 (eval $ac_compile) 2>conftest.er1 18288 ac_status=$? 18289 grep -v '^ *+' conftest.er1 >conftest.err 18290 rm -f conftest.er1 18291 cat conftest.err >&5 18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18293 (exit $ac_status); } && 18294 { ac_try='test -z "$ac_c_werror_flag" 18295 || test ! -s conftest.err' 18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18297 (eval $ac_try) 2>&5 18298 ac_status=$? 18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18300 (exit $ac_status); }; } && 18301 { ac_try='test -s conftest.$ac_objext' 18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18303 (eval $ac_try) 2>&5 18304 ac_status=$? 18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18306 (exit $ac_status); }; }; then 18307 ac_cv_header_sys_wait_h=yes 18308else 18309 echo "$as_me: failed program was:" >&5 18310sed 's/^/| /' conftest.$ac_ext >&5 18311 18312ac_cv_header_sys_wait_h=no 18313fi 18314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18315fi 18316echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 18317echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 18318if test $ac_cv_header_sys_wait_h = yes; then 18319 18320cat >>confdefs.h <<\_ACEOF 18321#define HAVE_SYS_WAIT_H 1 18322_ACEOF 18323 18324fi 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346for ac_header in \ 18347 alloca.h argz.h \ 18348 errno.h \ 18349 fcntl.h \ 18350 langinfo.h libintl.h limits.h locale.h \ 18351 malloc.h memory.h \ 18352 netinet/in.h nl_types.h \ 18353 stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h \ 18354 unistd.h utime.h \ 18355 18356do 18357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18358if eval "test \"\${$as_ac_Header+set}\" = set"; then 18359 echo "$as_me:$LINENO: checking for $ac_header" >&5 18360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18361if eval "test \"\${$as_ac_Header+set}\" = set"; then 18362 echo $ECHO_N "(cached) $ECHO_C" >&6 18363fi 18364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18366else 18367 # Is the header compilable? 18368echo "$as_me:$LINENO: checking $ac_header usability" >&5 18369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18370cat >conftest.$ac_ext <<_ACEOF 18371/* confdefs.h. */ 18372_ACEOF 18373cat confdefs.h >>conftest.$ac_ext 18374cat >>conftest.$ac_ext <<_ACEOF 18375/* end confdefs.h. */ 18376$ac_includes_default 18377#include <$ac_header> 18378_ACEOF 18379rm -f conftest.$ac_objext 18380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18381 (eval $ac_compile) 2>conftest.er1 18382 ac_status=$? 18383 grep -v '^ *+' conftest.er1 >conftest.err 18384 rm -f conftest.er1 18385 cat conftest.err >&5 18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18387 (exit $ac_status); } && 18388 { ac_try='test -z "$ac_c_werror_flag" 18389 || test ! -s conftest.err' 18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18391 (eval $ac_try) 2>&5 18392 ac_status=$? 18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18394 (exit $ac_status); }; } && 18395 { ac_try='test -s conftest.$ac_objext' 18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18397 (eval $ac_try) 2>&5 18398 ac_status=$? 18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18400 (exit $ac_status); }; }; then 18401 ac_header_compiler=yes 18402else 18403 echo "$as_me: failed program was:" >&5 18404sed 's/^/| /' conftest.$ac_ext >&5 18405 18406ac_header_compiler=no 18407fi 18408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18410echo "${ECHO_T}$ac_header_compiler" >&6 18411 18412# Is the header present? 18413echo "$as_me:$LINENO: checking $ac_header presence" >&5 18414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18415cat >conftest.$ac_ext <<_ACEOF 18416/* confdefs.h. */ 18417_ACEOF 18418cat confdefs.h >>conftest.$ac_ext 18419cat >>conftest.$ac_ext <<_ACEOF 18420/* end confdefs.h. */ 18421#include <$ac_header> 18422_ACEOF 18423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18425 ac_status=$? 18426 grep -v '^ *+' conftest.er1 >conftest.err 18427 rm -f conftest.er1 18428 cat conftest.err >&5 18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18430 (exit $ac_status); } >/dev/null; then 18431 if test -s conftest.err; then 18432 ac_cpp_err=$ac_c_preproc_warn_flag 18433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18434 else 18435 ac_cpp_err= 18436 fi 18437else 18438 ac_cpp_err=yes 18439fi 18440if test -z "$ac_cpp_err"; then 18441 ac_header_preproc=yes 18442else 18443 echo "$as_me: failed program was:" >&5 18444sed 's/^/| /' conftest.$ac_ext >&5 18445 18446 ac_header_preproc=no 18447fi 18448rm -f conftest.err conftest.$ac_ext 18449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18450echo "${ECHO_T}$ac_header_preproc" >&6 18451 18452# So? What about this header? 18453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18454 yes:no: ) 18455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18459 ac_header_preproc=yes 18460 ;; 18461 no:yes:* ) 18462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18474 ( 18475 cat <<\_ASBOX 18476## ------------------------------------------ ## 18477## Report this to the AC_PACKAGE_NAME lists. ## 18478## ------------------------------------------ ## 18479_ASBOX 18480 ) | 18481 sed "s/^/$as_me: WARNING: /" >&2 18482 ;; 18483esac 18484echo "$as_me:$LINENO: checking for $ac_header" >&5 18485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18486if eval "test \"\${$as_ac_Header+set}\" = set"; then 18487 echo $ECHO_N "(cached) $ECHO_C" >&6 18488else 18489 eval "$as_ac_Header=\$ac_header_preproc" 18490fi 18491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18493 18494fi 18495if test `eval echo '${'$as_ac_Header'}'` = yes; then 18496 cat >>confdefs.h <<_ACEOF 18497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18498_ACEOF 18499 18500fi 18501 18502done 18503 18504 18505 18506echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 18507echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 18508if test "${ac_cv_c_const+set}" = set; then 18509 echo $ECHO_N "(cached) $ECHO_C" >&6 18510else 18511 cat >conftest.$ac_ext <<_ACEOF 18512/* confdefs.h. */ 18513_ACEOF 18514cat confdefs.h >>conftest.$ac_ext 18515cat >>conftest.$ac_ext <<_ACEOF 18516/* end confdefs.h. */ 18517 18518int 18519main () 18520{ 18521/* FIXME: Include the comments suggested by Paul. */ 18522#ifndef __cplusplus 18523 /* Ultrix mips cc rejects this. */ 18524 typedef int charset[2]; 18525 const charset x; 18526 /* SunOS 4.1.1 cc rejects this. */ 18527 char const *const *ccp; 18528 char **p; 18529 /* NEC SVR4.0.2 mips cc rejects this. */ 18530 struct point {int x, y;}; 18531 static struct point const zero = {0,0}; 18532 /* AIX XL C 1.02.0.0 rejects this. 18533 It does not let you subtract one const X* pointer from another in 18534 an arm of an if-expression whose if-part is not a constant 18535 expression */ 18536 const char *g = "string"; 18537 ccp = &g + (g ? g-g : 0); 18538 /* HPUX 7.0 cc rejects these. */ 18539 ++ccp; 18540 p = (char**) ccp; 18541 ccp = (char const *const *) p; 18542 { /* SCO 3.2v4 cc rejects this. */ 18543 char *t; 18544 char const *s = 0 ? (char *) 0 : (char const *) 0; 18545 18546 *t++ = 0; 18547 } 18548 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18549 int x[] = {25, 17}; 18550 const int *foo = &x[0]; 18551 ++foo; 18552 } 18553 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18554 typedef const int *iptr; 18555 iptr p = 0; 18556 ++p; 18557 } 18558 { /* AIX XL C 1.02.0.0 rejects this saying 18559 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18560 struct s { int j; const int *ap[3]; }; 18561 struct s *b; b->j = 5; 18562 } 18563 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18564 const int foo = 10; 18565 } 18566#endif 18567 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572rm -f conftest.$ac_objext 18573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18574 (eval $ac_compile) 2>conftest.er1 18575 ac_status=$? 18576 grep -v '^ *+' conftest.er1 >conftest.err 18577 rm -f conftest.er1 18578 cat conftest.err >&5 18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18580 (exit $ac_status); } && 18581 { ac_try='test -z "$ac_c_werror_flag" 18582 || test ! -s conftest.err' 18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18584 (eval $ac_try) 2>&5 18585 ac_status=$? 18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18587 (exit $ac_status); }; } && 18588 { ac_try='test -s conftest.$ac_objext' 18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18590 (eval $ac_try) 2>&5 18591 ac_status=$? 18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18593 (exit $ac_status); }; }; then 18594 ac_cv_c_const=yes 18595else 18596 echo "$as_me: failed program was:" >&5 18597sed 's/^/| /' conftest.$ac_ext >&5 18598 18599ac_cv_c_const=no 18600fi 18601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18602fi 18603echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 18604echo "${ECHO_T}$ac_cv_c_const" >&6 18605if test $ac_cv_c_const = no; then 18606 18607cat >>confdefs.h <<\_ACEOF 18608#define const 18609_ACEOF 18610 18611fi 18612 18613echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 18614echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 18615if test "${ac_cv_type_uid_t+set}" = set; then 18616 echo $ECHO_N "(cached) $ECHO_C" >&6 18617else 18618 cat >conftest.$ac_ext <<_ACEOF 18619/* confdefs.h. */ 18620_ACEOF 18621cat confdefs.h >>conftest.$ac_ext 18622cat >>conftest.$ac_ext <<_ACEOF 18623/* end confdefs.h. */ 18624#include <sys/types.h> 18625 18626_ACEOF 18627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18628 $EGREP "uid_t" >/dev/null 2>&1; then 18629 ac_cv_type_uid_t=yes 18630else 18631 ac_cv_type_uid_t=no 18632fi 18633rm -f conftest* 18634 18635fi 18636echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 18637echo "${ECHO_T}$ac_cv_type_uid_t" >&6 18638if test $ac_cv_type_uid_t = no; then 18639 18640cat >>confdefs.h <<\_ACEOF 18641#define uid_t int 18642_ACEOF 18643 18644 18645cat >>confdefs.h <<\_ACEOF 18646#define gid_t int 18647_ACEOF 18648 18649fi 18650 18651echo "$as_me:$LINENO: checking for inline" >&5 18652echo $ECHO_N "checking for inline... $ECHO_C" >&6 18653if test "${ac_cv_c_inline+set}" = set; then 18654 echo $ECHO_N "(cached) $ECHO_C" >&6 18655else 18656 ac_cv_c_inline=no 18657for ac_kw in inline __inline__ __inline; do 18658 cat >conftest.$ac_ext <<_ACEOF 18659/* confdefs.h. */ 18660_ACEOF 18661cat confdefs.h >>conftest.$ac_ext 18662cat >>conftest.$ac_ext <<_ACEOF 18663/* end confdefs.h. */ 18664#ifndef __cplusplus 18665typedef int foo_t; 18666static $ac_kw foo_t static_foo () {return 0; } 18667$ac_kw foo_t foo () {return 0; } 18668#endif 18669 18670_ACEOF 18671rm -f conftest.$ac_objext 18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18673 (eval $ac_compile) 2>conftest.er1 18674 ac_status=$? 18675 grep -v '^ *+' conftest.er1 >conftest.err 18676 rm -f conftest.er1 18677 cat conftest.err >&5 18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18679 (exit $ac_status); } && 18680 { ac_try='test -z "$ac_c_werror_flag" 18681 || test ! -s conftest.err' 18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18683 (eval $ac_try) 2>&5 18684 ac_status=$? 18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18686 (exit $ac_status); }; } && 18687 { ac_try='test -s conftest.$ac_objext' 18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18689 (eval $ac_try) 2>&5 18690 ac_status=$? 18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18692 (exit $ac_status); }; }; then 18693 ac_cv_c_inline=$ac_kw; break 18694else 18695 echo "$as_me: failed program was:" >&5 18696sed 's/^/| /' conftest.$ac_ext >&5 18697 18698fi 18699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18700done 18701 18702fi 18703echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 18704echo "${ECHO_T}$ac_cv_c_inline" >&6 18705 18706 18707case $ac_cv_c_inline in 18708 inline | yes) ;; 18709 *) 18710 case $ac_cv_c_inline in 18711 no) ac_val=;; 18712 *) ac_val=$ac_cv_c_inline;; 18713 esac 18714 cat >>confdefs.h <<_ACEOF 18715#ifndef __cplusplus 18716#define inline $ac_val 18717#endif 18718_ACEOF 18719 ;; 18720esac 18721 18722echo "$as_me:$LINENO: checking for mode_t" >&5 18723echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 18724if test "${ac_cv_type_mode_t+set}" = set; then 18725 echo $ECHO_N "(cached) $ECHO_C" >&6 18726else 18727 cat >conftest.$ac_ext <<_ACEOF 18728/* confdefs.h. */ 18729_ACEOF 18730cat confdefs.h >>conftest.$ac_ext 18731cat >>conftest.$ac_ext <<_ACEOF 18732/* end confdefs.h. */ 18733$ac_includes_default 18734int 18735main () 18736{ 18737if ((mode_t *) 0) 18738 return 0; 18739if (sizeof (mode_t)) 18740 return 0; 18741 ; 18742 return 0; 18743} 18744_ACEOF 18745rm -f conftest.$ac_objext 18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18747 (eval $ac_compile) 2>conftest.er1 18748 ac_status=$? 18749 grep -v '^ *+' conftest.er1 >conftest.err 18750 rm -f conftest.er1 18751 cat conftest.err >&5 18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18753 (exit $ac_status); } && 18754 { ac_try='test -z "$ac_c_werror_flag" 18755 || test ! -s conftest.err' 18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18757 (eval $ac_try) 2>&5 18758 ac_status=$? 18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18760 (exit $ac_status); }; } && 18761 { ac_try='test -s conftest.$ac_objext' 18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18763 (eval $ac_try) 2>&5 18764 ac_status=$? 18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18766 (exit $ac_status); }; }; then 18767 ac_cv_type_mode_t=yes 18768else 18769 echo "$as_me: failed program was:" >&5 18770sed 's/^/| /' conftest.$ac_ext >&5 18771 18772ac_cv_type_mode_t=no 18773fi 18774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18775fi 18776echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 18777echo "${ECHO_T}$ac_cv_type_mode_t" >&6 18778if test $ac_cv_type_mode_t = yes; then 18779 : 18780else 18781 18782cat >>confdefs.h <<_ACEOF 18783#define mode_t int 18784_ACEOF 18785 18786fi 18787 18788echo "$as_me:$LINENO: checking for off_t" >&5 18789echo $ECHO_N "checking for off_t... $ECHO_C" >&6 18790if test "${ac_cv_type_off_t+set}" = set; then 18791 echo $ECHO_N "(cached) $ECHO_C" >&6 18792else 18793 cat >conftest.$ac_ext <<_ACEOF 18794/* confdefs.h. */ 18795_ACEOF 18796cat confdefs.h >>conftest.$ac_ext 18797cat >>conftest.$ac_ext <<_ACEOF 18798/* end confdefs.h. */ 18799$ac_includes_default 18800int 18801main () 18802{ 18803if ((off_t *) 0) 18804 return 0; 18805if (sizeof (off_t)) 18806 return 0; 18807 ; 18808 return 0; 18809} 18810_ACEOF 18811rm -f conftest.$ac_objext 18812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18813 (eval $ac_compile) 2>conftest.er1 18814 ac_status=$? 18815 grep -v '^ *+' conftest.er1 >conftest.err 18816 rm -f conftest.er1 18817 cat conftest.err >&5 18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18819 (exit $ac_status); } && 18820 { ac_try='test -z "$ac_c_werror_flag" 18821 || test ! -s conftest.err' 18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18823 (eval $ac_try) 2>&5 18824 ac_status=$? 18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18826 (exit $ac_status); }; } && 18827 { ac_try='test -s conftest.$ac_objext' 18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18829 (eval $ac_try) 2>&5 18830 ac_status=$? 18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18832 (exit $ac_status); }; }; then 18833 ac_cv_type_off_t=yes 18834else 18835 echo "$as_me: failed program was:" >&5 18836sed 's/^/| /' conftest.$ac_ext >&5 18837 18838ac_cv_type_off_t=no 18839fi 18840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18841fi 18842echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 18843echo "${ECHO_T}$ac_cv_type_off_t" >&6 18844if test $ac_cv_type_off_t = yes; then 18845 : 18846else 18847 18848cat >>confdefs.h <<_ACEOF 18849#define off_t long 18850_ACEOF 18851 18852fi 18853 18854echo "$as_me:$LINENO: checking for pid_t" >&5 18855echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 18856if test "${ac_cv_type_pid_t+set}" = set; then 18857 echo $ECHO_N "(cached) $ECHO_C" >&6 18858else 18859 cat >conftest.$ac_ext <<_ACEOF 18860/* confdefs.h. */ 18861_ACEOF 18862cat confdefs.h >>conftest.$ac_ext 18863cat >>conftest.$ac_ext <<_ACEOF 18864/* end confdefs.h. */ 18865$ac_includes_default 18866int 18867main () 18868{ 18869if ((pid_t *) 0) 18870 return 0; 18871if (sizeof (pid_t)) 18872 return 0; 18873 ; 18874 return 0; 18875} 18876_ACEOF 18877rm -f conftest.$ac_objext 18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18879 (eval $ac_compile) 2>conftest.er1 18880 ac_status=$? 18881 grep -v '^ *+' conftest.er1 >conftest.err 18882 rm -f conftest.er1 18883 cat conftest.err >&5 18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18885 (exit $ac_status); } && 18886 { ac_try='test -z "$ac_c_werror_flag" 18887 || test ! -s conftest.err' 18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18889 (eval $ac_try) 2>&5 18890 ac_status=$? 18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18892 (exit $ac_status); }; } && 18893 { ac_try='test -s conftest.$ac_objext' 18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18895 (eval $ac_try) 2>&5 18896 ac_status=$? 18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18898 (exit $ac_status); }; }; then 18899 ac_cv_type_pid_t=yes 18900else 18901 echo "$as_me: failed program was:" >&5 18902sed 's/^/| /' conftest.$ac_ext >&5 18903 18904ac_cv_type_pid_t=no 18905fi 18906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18907fi 18908echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 18909echo "${ECHO_T}$ac_cv_type_pid_t" >&6 18910if test $ac_cv_type_pid_t = yes; then 18911 : 18912else 18913 18914cat >>confdefs.h <<_ACEOF 18915#define pid_t int 18916_ACEOF 18917 18918fi 18919 18920echo "$as_me:$LINENO: checking for size_t" >&5 18921echo $ECHO_N "checking for size_t... $ECHO_C" >&6 18922if test "${ac_cv_type_size_t+set}" = set; then 18923 echo $ECHO_N "(cached) $ECHO_C" >&6 18924else 18925 cat >conftest.$ac_ext <<_ACEOF 18926/* confdefs.h. */ 18927_ACEOF 18928cat confdefs.h >>conftest.$ac_ext 18929cat >>conftest.$ac_ext <<_ACEOF 18930/* end confdefs.h. */ 18931$ac_includes_default 18932int 18933main () 18934{ 18935if ((size_t *) 0) 18936 return 0; 18937if (sizeof (size_t)) 18938 return 0; 18939 ; 18940 return 0; 18941} 18942_ACEOF 18943rm -f conftest.$ac_objext 18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18945 (eval $ac_compile) 2>conftest.er1 18946 ac_status=$? 18947 grep -v '^ *+' conftest.er1 >conftest.err 18948 rm -f conftest.er1 18949 cat conftest.err >&5 18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18951 (exit $ac_status); } && 18952 { ac_try='test -z "$ac_c_werror_flag" 18953 || test ! -s conftest.err' 18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18955 (eval $ac_try) 2>&5 18956 ac_status=$? 18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18958 (exit $ac_status); }; } && 18959 { ac_try='test -s conftest.$ac_objext' 18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18961 (eval $ac_try) 2>&5 18962 ac_status=$? 18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18964 (exit $ac_status); }; }; then 18965 ac_cv_type_size_t=yes 18966else 18967 echo "$as_me: failed program was:" >&5 18968sed 's/^/| /' conftest.$ac_ext >&5 18969 18970ac_cv_type_size_t=no 18971fi 18972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18973fi 18974echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 18975echo "${ECHO_T}$ac_cv_type_size_t" >&6 18976if test $ac_cv_type_size_t = yes; then 18977 : 18978else 18979 18980cat >>confdefs.h <<_ACEOF 18981#define size_t unsigned 18982_ACEOF 18983 18984fi 18985 18986echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 18987echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 18988if test "${ac_cv_struct_tm+set}" = set; then 18989 echo $ECHO_N "(cached) $ECHO_C" >&6 18990else 18991 cat >conftest.$ac_ext <<_ACEOF 18992/* confdefs.h. */ 18993_ACEOF 18994cat confdefs.h >>conftest.$ac_ext 18995cat >>conftest.$ac_ext <<_ACEOF 18996/* end confdefs.h. */ 18997#include <sys/types.h> 18998#include <time.h> 18999 19000int 19001main () 19002{ 19003struct tm *tp; tp->tm_sec; 19004 ; 19005 return 0; 19006} 19007_ACEOF 19008rm -f conftest.$ac_objext 19009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19010 (eval $ac_compile) 2>conftest.er1 19011 ac_status=$? 19012 grep -v '^ *+' conftest.er1 >conftest.err 19013 rm -f conftest.er1 19014 cat conftest.err >&5 19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19016 (exit $ac_status); } && 19017 { ac_try='test -z "$ac_c_werror_flag" 19018 || test ! -s conftest.err' 19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19020 (eval $ac_try) 2>&5 19021 ac_status=$? 19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19023 (exit $ac_status); }; } && 19024 { ac_try='test -s conftest.$ac_objext' 19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19026 (eval $ac_try) 2>&5 19027 ac_status=$? 19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19029 (exit $ac_status); }; }; then 19030 ac_cv_struct_tm=time.h 19031else 19032 echo "$as_me: failed program was:" >&5 19033sed 's/^/| /' conftest.$ac_ext >&5 19034 19035ac_cv_struct_tm=sys/time.h 19036fi 19037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19038fi 19039echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19040echo "${ECHO_T}$ac_cv_struct_tm" >&6 19041if test $ac_cv_struct_tm = sys/time.h; then 19042 19043cat >>confdefs.h <<\_ACEOF 19044#define TM_IN_SYS_TIME 1 19045_ACEOF 19046 19047fi 19048 19049echo "$as_me:$LINENO: checking for struct user_desc" >&5 19050echo $ECHO_N "checking for struct user_desc... $ECHO_C" >&6 19051if test "${ac_cv_type_struct_user_desc+set}" = set; then 19052 echo $ECHO_N "(cached) $ECHO_C" >&6 19053else 19054 cat >conftest.$ac_ext <<_ACEOF 19055/* confdefs.h. */ 19056_ACEOF 19057cat confdefs.h >>conftest.$ac_ext 19058cat >>conftest.$ac_ext <<_ACEOF 19059/* end confdefs.h. */ 19060#include <asm/ldt.h> 19061 19062int 19063main () 19064{ 19065if ((struct user_desc *) 0) 19066 return 0; 19067if (sizeof (struct user_desc)) 19068 return 0; 19069 ; 19070 return 0; 19071} 19072_ACEOF 19073rm -f conftest.$ac_objext 19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19075 (eval $ac_compile) 2>conftest.er1 19076 ac_status=$? 19077 grep -v '^ *+' conftest.er1 >conftest.err 19078 rm -f conftest.er1 19079 cat conftest.err >&5 19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19081 (exit $ac_status); } && 19082 { ac_try='test -z "$ac_c_werror_flag" 19083 || test ! -s conftest.err' 19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19085 (eval $ac_try) 2>&5 19086 ac_status=$? 19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19088 (exit $ac_status); }; } && 19089 { ac_try='test -s conftest.$ac_objext' 19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19091 (eval $ac_try) 2>&5 19092 ac_status=$? 19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19094 (exit $ac_status); }; }; then 19095 ac_cv_type_struct_user_desc=yes 19096else 19097 echo "$as_me: failed program was:" >&5 19098sed 's/^/| /' conftest.$ac_ext >&5 19099 19100ac_cv_type_struct_user_desc=no 19101fi 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19103fi 19104echo "$as_me:$LINENO: result: $ac_cv_type_struct_user_desc" >&5 19105echo "${ECHO_T}$ac_cv_type_struct_user_desc" >&6 19106if test $ac_cv_type_struct_user_desc = yes; then 19107 19108cat >>confdefs.h <<_ACEOF 19109#define HAVE_STRUCT_USER_DESC 1 19110_ACEOF 19111 19112 19113fi 19114 19115if test x$CC = xgcc; then 19116 CFLAGS="$CFLAGS -Wall" 19117fi 19118if test x"$platform_win32" = xyes; then 19119 LDFLAGS="$LDFLAGS -mwindows" 19120fi 19121 19122# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 19123# for constant arguments. Useless! 19124echo "$as_me:$LINENO: checking for working alloca.h" >&5 19125echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 19126if test "${ac_cv_working_alloca_h+set}" = set; then 19127 echo $ECHO_N "(cached) $ECHO_C" >&6 19128else 19129 cat >conftest.$ac_ext <<_ACEOF 19130/* confdefs.h. */ 19131_ACEOF 19132cat confdefs.h >>conftest.$ac_ext 19133cat >>conftest.$ac_ext <<_ACEOF 19134/* end confdefs.h. */ 19135#include <alloca.h> 19136int 19137main () 19138{ 19139char *p = (char *) alloca (2 * sizeof (int)); 19140 ; 19141 return 0; 19142} 19143_ACEOF 19144rm -f conftest.$ac_objext conftest$ac_exeext 19145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19146 (eval $ac_link) 2>conftest.er1 19147 ac_status=$? 19148 grep -v '^ *+' conftest.er1 >conftest.err 19149 rm -f conftest.er1 19150 cat conftest.err >&5 19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19152 (exit $ac_status); } && 19153 { ac_try='test -z "$ac_c_werror_flag" 19154 || test ! -s conftest.err' 19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19156 (eval $ac_try) 2>&5 19157 ac_status=$? 19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19159 (exit $ac_status); }; } && 19160 { ac_try='test -s conftest$ac_exeext' 19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19162 (eval $ac_try) 2>&5 19163 ac_status=$? 19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19165 (exit $ac_status); }; }; then 19166 ac_cv_working_alloca_h=yes 19167else 19168 echo "$as_me: failed program was:" >&5 19169sed 's/^/| /' conftest.$ac_ext >&5 19170 19171ac_cv_working_alloca_h=no 19172fi 19173rm -f conftest.err conftest.$ac_objext \ 19174 conftest$ac_exeext conftest.$ac_ext 19175fi 19176echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 19177echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 19178if test $ac_cv_working_alloca_h = yes; then 19179 19180cat >>confdefs.h <<\_ACEOF 19181#define HAVE_ALLOCA_H 1 19182_ACEOF 19183 19184fi 19185 19186echo "$as_me:$LINENO: checking for alloca" >&5 19187echo $ECHO_N "checking for alloca... $ECHO_C" >&6 19188if test "${ac_cv_func_alloca_works+set}" = set; then 19189 echo $ECHO_N "(cached) $ECHO_C" >&6 19190else 19191 cat >conftest.$ac_ext <<_ACEOF 19192/* confdefs.h. */ 19193_ACEOF 19194cat confdefs.h >>conftest.$ac_ext 19195cat >>conftest.$ac_ext <<_ACEOF 19196/* end confdefs.h. */ 19197#ifdef __GNUC__ 19198# define alloca __builtin_alloca 19199#else 19200# ifdef _MSC_VER 19201# include <malloc.h> 19202# define alloca _alloca 19203# else 19204# if HAVE_ALLOCA_H 19205# include <alloca.h> 19206# else 19207# ifdef _AIX 19208 #pragma alloca 19209# else 19210# ifndef alloca /* predefined by HP cc +Olibcalls */ 19211char *alloca (); 19212# endif 19213# endif 19214# endif 19215# endif 19216#endif 19217 19218int 19219main () 19220{ 19221char *p = (char *) alloca (1); 19222 ; 19223 return 0; 19224} 19225_ACEOF 19226rm -f conftest.$ac_objext conftest$ac_exeext 19227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19228 (eval $ac_link) 2>conftest.er1 19229 ac_status=$? 19230 grep -v '^ *+' conftest.er1 >conftest.err 19231 rm -f conftest.er1 19232 cat conftest.err >&5 19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19234 (exit $ac_status); } && 19235 { ac_try='test -z "$ac_c_werror_flag" 19236 || test ! -s conftest.err' 19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19238 (eval $ac_try) 2>&5 19239 ac_status=$? 19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19241 (exit $ac_status); }; } && 19242 { ac_try='test -s conftest$ac_exeext' 19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19244 (eval $ac_try) 2>&5 19245 ac_status=$? 19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19247 (exit $ac_status); }; }; then 19248 ac_cv_func_alloca_works=yes 19249else 19250 echo "$as_me: failed program was:" >&5 19251sed 's/^/| /' conftest.$ac_ext >&5 19252 19253ac_cv_func_alloca_works=no 19254fi 19255rm -f conftest.err conftest.$ac_objext \ 19256 conftest$ac_exeext conftest.$ac_ext 19257fi 19258echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 19259echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 19260 19261if test $ac_cv_func_alloca_works = yes; then 19262 19263cat >>confdefs.h <<\_ACEOF 19264#define HAVE_ALLOCA 1 19265_ACEOF 19266 19267else 19268 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 19269# that cause trouble. Some versions do not even contain alloca or 19270# contain a buggy version. If you still want to use their alloca, 19271# use ar to extract alloca.o from them instead of compiling alloca.c. 19272 19273ALLOCA=alloca.$ac_objext 19274 19275cat >>confdefs.h <<\_ACEOF 19276#define C_ALLOCA 1 19277_ACEOF 19278 19279 19280echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 19281echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 19282if test "${ac_cv_os_cray+set}" = set; then 19283 echo $ECHO_N "(cached) $ECHO_C" >&6 19284else 19285 cat >conftest.$ac_ext <<_ACEOF 19286/* confdefs.h. */ 19287_ACEOF 19288cat confdefs.h >>conftest.$ac_ext 19289cat >>conftest.$ac_ext <<_ACEOF 19290/* end confdefs.h. */ 19291#if defined(CRAY) && ! defined(CRAY2) 19292webecray 19293#else 19294wenotbecray 19295#endif 19296 19297_ACEOF 19298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19299 $EGREP "webecray" >/dev/null 2>&1; then 19300 ac_cv_os_cray=yes 19301else 19302 ac_cv_os_cray=no 19303fi 19304rm -f conftest* 19305 19306fi 19307echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 19308echo "${ECHO_T}$ac_cv_os_cray" >&6 19309if test $ac_cv_os_cray = yes; then 19310 for ac_func in _getb67 GETB67 getb67; do 19311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19312echo "$as_me:$LINENO: checking for $ac_func" >&5 19313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19314if eval "test \"\${$as_ac_var+set}\" = set"; then 19315 echo $ECHO_N "(cached) $ECHO_C" >&6 19316else 19317 cat >conftest.$ac_ext <<_ACEOF 19318/* confdefs.h. */ 19319_ACEOF 19320cat confdefs.h >>conftest.$ac_ext 19321cat >>conftest.$ac_ext <<_ACEOF 19322/* end confdefs.h. */ 19323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19324 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19325#define $ac_func innocuous_$ac_func 19326 19327/* System header to define __stub macros and hopefully few prototypes, 19328 which can conflict with char $ac_func (); below. 19329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19330 <limits.h> exists even on freestanding compilers. */ 19331 19332#ifdef __STDC__ 19333# include <limits.h> 19334#else 19335# include <assert.h> 19336#endif 19337 19338#undef $ac_func 19339 19340/* Override any gcc2 internal prototype to avoid an error. */ 19341#ifdef __cplusplus 19342extern "C" 19343{ 19344#endif 19345/* We use char because int might match the return type of a gcc2 19346 builtin and then its argument prototype would still apply. */ 19347char $ac_func (); 19348/* The GNU C library defines this for functions which it implements 19349 to always fail with ENOSYS. Some functions are actually named 19350 something starting with __ and the normal name is an alias. */ 19351#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19352choke me 19353#else 19354char (*f) () = $ac_func; 19355#endif 19356#ifdef __cplusplus 19357} 19358#endif 19359 19360int 19361main () 19362{ 19363return f != $ac_func; 19364 ; 19365 return 0; 19366} 19367_ACEOF 19368rm -f conftest.$ac_objext conftest$ac_exeext 19369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19370 (eval $ac_link) 2>conftest.er1 19371 ac_status=$? 19372 grep -v '^ *+' conftest.er1 >conftest.err 19373 rm -f conftest.er1 19374 cat conftest.err >&5 19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19376 (exit $ac_status); } && 19377 { ac_try='test -z "$ac_c_werror_flag" 19378 || test ! -s conftest.err' 19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19380 (eval $ac_try) 2>&5 19381 ac_status=$? 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); }; } && 19384 { ac_try='test -s conftest$ac_exeext' 19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19386 (eval $ac_try) 2>&5 19387 ac_status=$? 19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19389 (exit $ac_status); }; }; then 19390 eval "$as_ac_var=yes" 19391else 19392 echo "$as_me: failed program was:" >&5 19393sed 's/^/| /' conftest.$ac_ext >&5 19394 19395eval "$as_ac_var=no" 19396fi 19397rm -f conftest.err conftest.$ac_objext \ 19398 conftest$ac_exeext conftest.$ac_ext 19399fi 19400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19402if test `eval echo '${'$as_ac_var'}'` = yes; then 19403 19404cat >>confdefs.h <<_ACEOF 19405#define CRAY_STACKSEG_END $ac_func 19406_ACEOF 19407 19408 break 19409fi 19410 19411 done 19412fi 19413 19414echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 19415echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 19416if test "${ac_cv_c_stack_direction+set}" = set; then 19417 echo $ECHO_N "(cached) $ECHO_C" >&6 19418else 19419 if test "$cross_compiling" = yes; then 19420 ac_cv_c_stack_direction=0 19421else 19422 cat >conftest.$ac_ext <<_ACEOF 19423/* confdefs.h. */ 19424_ACEOF 19425cat confdefs.h >>conftest.$ac_ext 19426cat >>conftest.$ac_ext <<_ACEOF 19427/* end confdefs.h. */ 19428int 19429find_stack_direction () 19430{ 19431 static char *addr = 0; 19432 auto char dummy; 19433 if (addr == 0) 19434 { 19435 addr = &dummy; 19436 return find_stack_direction (); 19437 } 19438 else 19439 return (&dummy > addr) ? 1 : -1; 19440} 19441 19442int 19443main () 19444{ 19445 exit (find_stack_direction () < 0); 19446} 19447_ACEOF 19448rm -f conftest$ac_exeext 19449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19450 (eval $ac_link) 2>&5 19451 ac_status=$? 19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19455 (eval $ac_try) 2>&5 19456 ac_status=$? 19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19458 (exit $ac_status); }; }; then 19459 ac_cv_c_stack_direction=1 19460else 19461 echo "$as_me: program exited with status $ac_status" >&5 19462echo "$as_me: failed program was:" >&5 19463sed 's/^/| /' conftest.$ac_ext >&5 19464 19465( exit $ac_status ) 19466ac_cv_c_stack_direction=-1 19467fi 19468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19469fi 19470fi 19471echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 19472echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 19473 19474cat >>confdefs.h <<_ACEOF 19475#define STACK_DIRECTION $ac_cv_c_stack_direction 19476_ACEOF 19477 19478 19479fi 19480 19481echo "$as_me:$LINENO: checking for working memcmp" >&5 19482echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 19483if test "${ac_cv_func_memcmp_working+set}" = set; then 19484 echo $ECHO_N "(cached) $ECHO_C" >&6 19485else 19486 if test "$cross_compiling" = yes; then 19487 ac_cv_func_memcmp_working=no 19488else 19489 cat >conftest.$ac_ext <<_ACEOF 19490/* confdefs.h. */ 19491_ACEOF 19492cat confdefs.h >>conftest.$ac_ext 19493cat >>conftest.$ac_ext <<_ACEOF 19494/* end confdefs.h. */ 19495$ac_includes_default 19496int 19497main () 19498{ 19499 19500 /* Some versions of memcmp are not 8-bit clean. */ 19501 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 19502 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 19503 exit (1); 19504 19505 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 19506 or more and with at least one buffer not starting on a 4-byte boundary. 19507 William Lewis provided this test program. */ 19508 { 19509 char foo[21]; 19510 char bar[21]; 19511 int i; 19512 for (i = 0; i < 4; i++) 19513 { 19514 char *a = foo + i; 19515 char *b = bar + i; 19516 strcpy (a, "--------01111111"); 19517 strcpy (b, "--------10000000"); 19518 if (memcmp (a, b, 16) >= 0) 19519 exit (1); 19520 } 19521 exit (0); 19522 } 19523 19524 ; 19525 return 0; 19526} 19527_ACEOF 19528rm -f conftest$ac_exeext 19529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19530 (eval $ac_link) 2>&5 19531 ac_status=$? 19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19535 (eval $ac_try) 2>&5 19536 ac_status=$? 19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19538 (exit $ac_status); }; }; then 19539 ac_cv_func_memcmp_working=yes 19540else 19541 echo "$as_me: program exited with status $ac_status" >&5 19542echo "$as_me: failed program was:" >&5 19543sed 's/^/| /' conftest.$ac_ext >&5 19544 19545( exit $ac_status ) 19546ac_cv_func_memcmp_working=no 19547fi 19548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19549fi 19550fi 19551echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 19552echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 19553test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 19554 "memcmp.$ac_objext" | \ 19555 *" memcmp.$ac_objext" | \ 19556 "memcmp.$ac_objext "* | \ 19557 *" memcmp.$ac_objext "* ) ;; 19558 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 19559esac 19560 19561 19562 19563 19564for ac_header in stdlib.h unistd.h 19565do 19566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19567if eval "test \"\${$as_ac_Header+set}\" = set"; then 19568 echo "$as_me:$LINENO: checking for $ac_header" >&5 19569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19570if eval "test \"\${$as_ac_Header+set}\" = set"; then 19571 echo $ECHO_N "(cached) $ECHO_C" >&6 19572fi 19573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19575else 19576 # Is the header compilable? 19577echo "$as_me:$LINENO: checking $ac_header usability" >&5 19578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19579cat >conftest.$ac_ext <<_ACEOF 19580/* confdefs.h. */ 19581_ACEOF 19582cat confdefs.h >>conftest.$ac_ext 19583cat >>conftest.$ac_ext <<_ACEOF 19584/* end confdefs.h. */ 19585$ac_includes_default 19586#include <$ac_header> 19587_ACEOF 19588rm -f conftest.$ac_objext 19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19590 (eval $ac_compile) 2>conftest.er1 19591 ac_status=$? 19592 grep -v '^ *+' conftest.er1 >conftest.err 19593 rm -f conftest.er1 19594 cat conftest.err >&5 19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19596 (exit $ac_status); } && 19597 { ac_try='test -z "$ac_c_werror_flag" 19598 || test ! -s conftest.err' 19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19600 (eval $ac_try) 2>&5 19601 ac_status=$? 19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19603 (exit $ac_status); }; } && 19604 { ac_try='test -s conftest.$ac_objext' 19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19606 (eval $ac_try) 2>&5 19607 ac_status=$? 19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19609 (exit $ac_status); }; }; then 19610 ac_header_compiler=yes 19611else 19612 echo "$as_me: failed program was:" >&5 19613sed 's/^/| /' conftest.$ac_ext >&5 19614 19615ac_header_compiler=no 19616fi 19617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19619echo "${ECHO_T}$ac_header_compiler" >&6 19620 19621# Is the header present? 19622echo "$as_me:$LINENO: checking $ac_header presence" >&5 19623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19624cat >conftest.$ac_ext <<_ACEOF 19625/* confdefs.h. */ 19626_ACEOF 19627cat confdefs.h >>conftest.$ac_ext 19628cat >>conftest.$ac_ext <<_ACEOF 19629/* end confdefs.h. */ 19630#include <$ac_header> 19631_ACEOF 19632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19634 ac_status=$? 19635 grep -v '^ *+' conftest.er1 >conftest.err 19636 rm -f conftest.er1 19637 cat conftest.err >&5 19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19639 (exit $ac_status); } >/dev/null; then 19640 if test -s conftest.err; then 19641 ac_cpp_err=$ac_c_preproc_warn_flag 19642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19643 else 19644 ac_cpp_err= 19645 fi 19646else 19647 ac_cpp_err=yes 19648fi 19649if test -z "$ac_cpp_err"; then 19650 ac_header_preproc=yes 19651else 19652 echo "$as_me: failed program was:" >&5 19653sed 's/^/| /' conftest.$ac_ext >&5 19654 19655 ac_header_preproc=no 19656fi 19657rm -f conftest.err conftest.$ac_ext 19658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19659echo "${ECHO_T}$ac_header_preproc" >&6 19660 19661# So? What about this header? 19662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19663 yes:no: ) 19664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19668 ac_header_preproc=yes 19669 ;; 19670 no:yes:* ) 19671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19683 ( 19684 cat <<\_ASBOX 19685## ------------------------------------------ ## 19686## Report this to the AC_PACKAGE_NAME lists. ## 19687## ------------------------------------------ ## 19688_ASBOX 19689 ) | 19690 sed "s/^/$as_me: WARNING: /" >&2 19691 ;; 19692esac 19693echo "$as_me:$LINENO: checking for $ac_header" >&5 19694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19695if eval "test \"\${$as_ac_Header+set}\" = set"; then 19696 echo $ECHO_N "(cached) $ECHO_C" >&6 19697else 19698 eval "$as_ac_Header=\$ac_header_preproc" 19699fi 19700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19702 19703fi 19704if test `eval echo '${'$as_ac_Header'}'` = yes; then 19705 cat >>confdefs.h <<_ACEOF 19706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19707_ACEOF 19708 19709fi 19710 19711done 19712 19713 19714for ac_func in getpagesize 19715do 19716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19717echo "$as_me:$LINENO: checking for $ac_func" >&5 19718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19719if eval "test \"\${$as_ac_var+set}\" = set"; then 19720 echo $ECHO_N "(cached) $ECHO_C" >&6 19721else 19722 cat >conftest.$ac_ext <<_ACEOF 19723/* confdefs.h. */ 19724_ACEOF 19725cat confdefs.h >>conftest.$ac_ext 19726cat >>conftest.$ac_ext <<_ACEOF 19727/* end confdefs.h. */ 19728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19730#define $ac_func innocuous_$ac_func 19731 19732/* System header to define __stub macros and hopefully few prototypes, 19733 which can conflict with char $ac_func (); below. 19734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19735 <limits.h> exists even on freestanding compilers. */ 19736 19737#ifdef __STDC__ 19738# include <limits.h> 19739#else 19740# include <assert.h> 19741#endif 19742 19743#undef $ac_func 19744 19745/* Override any gcc2 internal prototype to avoid an error. */ 19746#ifdef __cplusplus 19747extern "C" 19748{ 19749#endif 19750/* We use char because int might match the return type of a gcc2 19751 builtin and then its argument prototype would still apply. */ 19752char $ac_func (); 19753/* The GNU C library defines this for functions which it implements 19754 to always fail with ENOSYS. Some functions are actually named 19755 something starting with __ and the normal name is an alias. */ 19756#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19757choke me 19758#else 19759char (*f) () = $ac_func; 19760#endif 19761#ifdef __cplusplus 19762} 19763#endif 19764 19765int 19766main () 19767{ 19768return f != $ac_func; 19769 ; 19770 return 0; 19771} 19772_ACEOF 19773rm -f conftest.$ac_objext conftest$ac_exeext 19774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19775 (eval $ac_link) 2>conftest.er1 19776 ac_status=$? 19777 grep -v '^ *+' conftest.er1 >conftest.err 19778 rm -f conftest.er1 19779 cat conftest.err >&5 19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19781 (exit $ac_status); } && 19782 { ac_try='test -z "$ac_c_werror_flag" 19783 || test ! -s conftest.err' 19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19785 (eval $ac_try) 2>&5 19786 ac_status=$? 19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19788 (exit $ac_status); }; } && 19789 { ac_try='test -s conftest$ac_exeext' 19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19791 (eval $ac_try) 2>&5 19792 ac_status=$? 19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19794 (exit $ac_status); }; }; then 19795 eval "$as_ac_var=yes" 19796else 19797 echo "$as_me: failed program was:" >&5 19798sed 's/^/| /' conftest.$ac_ext >&5 19799 19800eval "$as_ac_var=no" 19801fi 19802rm -f conftest.err conftest.$ac_objext \ 19803 conftest$ac_exeext conftest.$ac_ext 19804fi 19805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19807if test `eval echo '${'$as_ac_var'}'` = yes; then 19808 cat >>confdefs.h <<_ACEOF 19809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19810_ACEOF 19811 19812fi 19813done 19814 19815echo "$as_me:$LINENO: checking for working mmap" >&5 19816echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 19817if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 19818 echo $ECHO_N "(cached) $ECHO_C" >&6 19819else 19820 if test "$cross_compiling" = yes; then 19821 ac_cv_func_mmap_fixed_mapped=no 19822else 19823 cat >conftest.$ac_ext <<_ACEOF 19824/* confdefs.h. */ 19825_ACEOF 19826cat confdefs.h >>conftest.$ac_ext 19827cat >>conftest.$ac_ext <<_ACEOF 19828/* end confdefs.h. */ 19829$ac_includes_default 19830/* malloc might have been renamed as rpl_malloc. */ 19831#undef malloc 19832 19833/* Thanks to Mike Haertel and Jim Avera for this test. 19834 Here is a matrix of mmap possibilities: 19835 mmap private not fixed 19836 mmap private fixed at somewhere currently unmapped 19837 mmap private fixed at somewhere already mapped 19838 mmap shared not fixed 19839 mmap shared fixed at somewhere currently unmapped 19840 mmap shared fixed at somewhere already mapped 19841 For private mappings, we should verify that changes cannot be read() 19842 back from the file, nor mmap's back from the file at a different 19843 address. (There have been systems where private was not correctly 19844 implemented like the infamous i386 svr4.0, and systems where the 19845 VM page cache was not coherent with the file system buffer cache 19846 like early versions of FreeBSD and possibly contemporary NetBSD.) 19847 For shared mappings, we should conversely verify that changes get 19848 propagated back to all the places they're supposed to be. 19849 19850 Grep wants private fixed already mapped. 19851 The main things grep needs to know about mmap are: 19852 * does it exist and is it safe to write into the mmap'd area 19853 * how to use it (BSD variants) */ 19854 19855#include <fcntl.h> 19856#include <sys/mman.h> 19857 19858#if !STDC_HEADERS && !HAVE_STDLIB_H 19859char *malloc (); 19860#endif 19861 19862/* This mess was copied from the GNU getpagesize.h. */ 19863#if !HAVE_GETPAGESIZE 19864/* Assume that all systems that can run configure have sys/param.h. */ 19865# if !HAVE_SYS_PARAM_H 19866# define HAVE_SYS_PARAM_H 1 19867# endif 19868 19869# ifdef _SC_PAGESIZE 19870# define getpagesize() sysconf(_SC_PAGESIZE) 19871# else /* no _SC_PAGESIZE */ 19872# if HAVE_SYS_PARAM_H 19873# include <sys/param.h> 19874# ifdef EXEC_PAGESIZE 19875# define getpagesize() EXEC_PAGESIZE 19876# else /* no EXEC_PAGESIZE */ 19877# ifdef NBPG 19878# define getpagesize() NBPG * CLSIZE 19879# ifndef CLSIZE 19880# define CLSIZE 1 19881# endif /* no CLSIZE */ 19882# else /* no NBPG */ 19883# ifdef NBPC 19884# define getpagesize() NBPC 19885# else /* no NBPC */ 19886# ifdef PAGESIZE 19887# define getpagesize() PAGESIZE 19888# endif /* PAGESIZE */ 19889# endif /* no NBPC */ 19890# endif /* no NBPG */ 19891# endif /* no EXEC_PAGESIZE */ 19892# else /* no HAVE_SYS_PARAM_H */ 19893# define getpagesize() 8192 /* punt totally */ 19894# endif /* no HAVE_SYS_PARAM_H */ 19895# endif /* no _SC_PAGESIZE */ 19896 19897#endif /* no HAVE_GETPAGESIZE */ 19898 19899int 19900main () 19901{ 19902 char *data, *data2, *data3; 19903 int i, pagesize; 19904 int fd; 19905 19906 pagesize = getpagesize (); 19907 19908 /* First, make a file with some known garbage in it. */ 19909 data = (char *) malloc (pagesize); 19910 if (!data) 19911 exit (1); 19912 for (i = 0; i < pagesize; ++i) 19913 *(data + i) = rand (); 19914 umask (0); 19915 fd = creat ("conftest.mmap", 0600); 19916 if (fd < 0) 19917 exit (1); 19918 if (write (fd, data, pagesize) != pagesize) 19919 exit (1); 19920 close (fd); 19921 19922 /* Next, try to mmap the file at a fixed address which already has 19923 something else allocated at it. If we can, also make sure that 19924 we see the same garbage. */ 19925 fd = open ("conftest.mmap", O_RDWR); 19926 if (fd < 0) 19927 exit (1); 19928 data2 = (char *) malloc (2 * pagesize); 19929 if (!data2) 19930 exit (1); 19931 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 19932 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 19933 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 19934 exit (1); 19935 for (i = 0; i < pagesize; ++i) 19936 if (*(data + i) != *(data2 + i)) 19937 exit (1); 19938 19939 /* Finally, make sure that changes to the mapped area do not 19940 percolate back to the file as seen by read(). (This is a bug on 19941 some variants of i386 svr4.0.) */ 19942 for (i = 0; i < pagesize; ++i) 19943 *(data2 + i) = *(data2 + i) + 1; 19944 data3 = (char *) malloc (pagesize); 19945 if (!data3) 19946 exit (1); 19947 if (read (fd, data3, pagesize) != pagesize) 19948 exit (1); 19949 for (i = 0; i < pagesize; ++i) 19950 if (*(data + i) != *(data3 + i)) 19951 exit (1); 19952 close (fd); 19953 exit (0); 19954} 19955_ACEOF 19956rm -f conftest$ac_exeext 19957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19958 (eval $ac_link) 2>&5 19959 ac_status=$? 19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19963 (eval $ac_try) 2>&5 19964 ac_status=$? 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); }; }; then 19967 ac_cv_func_mmap_fixed_mapped=yes 19968else 19969 echo "$as_me: program exited with status $ac_status" >&5 19970echo "$as_me: failed program was:" >&5 19971sed 's/^/| /' conftest.$ac_ext >&5 19972 19973( exit $ac_status ) 19974ac_cv_func_mmap_fixed_mapped=no 19975fi 19976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19977fi 19978fi 19979echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 19980echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 19981if test $ac_cv_func_mmap_fixed_mapped = yes; then 19982 19983cat >>confdefs.h <<\_ACEOF 19984#define HAVE_MMAP 1 19985_ACEOF 19986 19987fi 19988rm -f conftest.mmap 19989 19990 19991for ac_func in strftime 19992do 19993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19994echo "$as_me:$LINENO: checking for $ac_func" >&5 19995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19996if eval "test \"\${$as_ac_var+set}\" = set"; then 19997 echo $ECHO_N "(cached) $ECHO_C" >&6 19998else 19999 cat >conftest.$ac_ext <<_ACEOF 20000/* confdefs.h. */ 20001_ACEOF 20002cat confdefs.h >>conftest.$ac_ext 20003cat >>conftest.$ac_ext <<_ACEOF 20004/* end confdefs.h. */ 20005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20006 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20007#define $ac_func innocuous_$ac_func 20008 20009/* System header to define __stub macros and hopefully few prototypes, 20010 which can conflict with char $ac_func (); below. 20011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20012 <limits.h> exists even on freestanding compilers. */ 20013 20014#ifdef __STDC__ 20015# include <limits.h> 20016#else 20017# include <assert.h> 20018#endif 20019 20020#undef $ac_func 20021 20022/* Override any gcc2 internal prototype to avoid an error. */ 20023#ifdef __cplusplus 20024extern "C" 20025{ 20026#endif 20027/* We use char because int might match the return type of a gcc2 20028 builtin and then its argument prototype would still apply. */ 20029char $ac_func (); 20030/* The GNU C library defines this for functions which it implements 20031 to always fail with ENOSYS. Some functions are actually named 20032 something starting with __ and the normal name is an alias. */ 20033#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20034choke me 20035#else 20036char (*f) () = $ac_func; 20037#endif 20038#ifdef __cplusplus 20039} 20040#endif 20041 20042int 20043main () 20044{ 20045return f != $ac_func; 20046 ; 20047 return 0; 20048} 20049_ACEOF 20050rm -f conftest.$ac_objext conftest$ac_exeext 20051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20052 (eval $ac_link) 2>conftest.er1 20053 ac_status=$? 20054 grep -v '^ *+' conftest.er1 >conftest.err 20055 rm -f conftest.er1 20056 cat conftest.err >&5 20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20058 (exit $ac_status); } && 20059 { ac_try='test -z "$ac_c_werror_flag" 20060 || test ! -s conftest.err' 20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20062 (eval $ac_try) 2>&5 20063 ac_status=$? 20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20065 (exit $ac_status); }; } && 20066 { ac_try='test -s conftest$ac_exeext' 20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20068 (eval $ac_try) 2>&5 20069 ac_status=$? 20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20071 (exit $ac_status); }; }; then 20072 eval "$as_ac_var=yes" 20073else 20074 echo "$as_me: failed program was:" >&5 20075sed 's/^/| /' conftest.$ac_ext >&5 20076 20077eval "$as_ac_var=no" 20078fi 20079rm -f conftest.err conftest.$ac_objext \ 20080 conftest$ac_exeext conftest.$ac_ext 20081fi 20082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20084if test `eval echo '${'$as_ac_var'}'` = yes; then 20085 cat >>confdefs.h <<_ACEOF 20086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20087_ACEOF 20088 20089else 20090 # strftime is in -lintl on SCO UNIX. 20091echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 20092echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 20093if test "${ac_cv_lib_intl_strftime+set}" = set; then 20094 echo $ECHO_N "(cached) $ECHO_C" >&6 20095else 20096 ac_check_lib_save_LIBS=$LIBS 20097LIBS="-lintl $LIBS" 20098cat >conftest.$ac_ext <<_ACEOF 20099/* confdefs.h. */ 20100_ACEOF 20101cat confdefs.h >>conftest.$ac_ext 20102cat >>conftest.$ac_ext <<_ACEOF 20103/* end confdefs.h. */ 20104 20105/* Override any gcc2 internal prototype to avoid an error. */ 20106#ifdef __cplusplus 20107extern "C" 20108#endif 20109/* We use char because int might match the return type of a gcc2 20110 builtin and then its argument prototype would still apply. */ 20111char strftime (); 20112int 20113main () 20114{ 20115strftime (); 20116 ; 20117 return 0; 20118} 20119_ACEOF 20120rm -f conftest.$ac_objext conftest$ac_exeext 20121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20122 (eval $ac_link) 2>conftest.er1 20123 ac_status=$? 20124 grep -v '^ *+' conftest.er1 >conftest.err 20125 rm -f conftest.er1 20126 cat conftest.err >&5 20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20128 (exit $ac_status); } && 20129 { ac_try='test -z "$ac_c_werror_flag" 20130 || test ! -s conftest.err' 20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20132 (eval $ac_try) 2>&5 20133 ac_status=$? 20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20135 (exit $ac_status); }; } && 20136 { ac_try='test -s conftest$ac_exeext' 20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20138 (eval $ac_try) 2>&5 20139 ac_status=$? 20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20141 (exit $ac_status); }; }; then 20142 ac_cv_lib_intl_strftime=yes 20143else 20144 echo "$as_me: failed program was:" >&5 20145sed 's/^/| /' conftest.$ac_ext >&5 20146 20147ac_cv_lib_intl_strftime=no 20148fi 20149rm -f conftest.err conftest.$ac_objext \ 20150 conftest$ac_exeext conftest.$ac_ext 20151LIBS=$ac_check_lib_save_LIBS 20152fi 20153echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 20154echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 20155if test $ac_cv_lib_intl_strftime = yes; then 20156 cat >>confdefs.h <<\_ACEOF 20157#define HAVE_STRFTIME 1 20158_ACEOF 20159 20160LIBS="-lintl $LIBS" 20161fi 20162 20163fi 20164done 20165 20166echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 20167echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6 20168if test "${ac_cv_func_utime_null+set}" = set; then 20169 echo $ECHO_N "(cached) $ECHO_C" >&6 20170else 20171 rm -f conftest.data; >conftest.data 20172# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 20173if test "$cross_compiling" = yes; then 20174 ac_cv_func_utime_null=no 20175else 20176 cat >conftest.$ac_ext <<_ACEOF 20177/* confdefs.h. */ 20178_ACEOF 20179cat confdefs.h >>conftest.$ac_ext 20180cat >>conftest.$ac_ext <<_ACEOF 20181/* end confdefs.h. */ 20182$ac_includes_default 20183int 20184main () 20185{ 20186struct stat s, t; 20187 exit (!(stat ("conftest.data", &s) == 0 20188 && utime ("conftest.data", (long *)0) == 0 20189 && stat ("conftest.data", &t) == 0 20190 && t.st_mtime >= s.st_mtime 20191 && t.st_mtime - s.st_mtime < 120)); 20192 ; 20193 return 0; 20194} 20195_ACEOF 20196rm -f conftest$ac_exeext 20197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20198 (eval $ac_link) 2>&5 20199 ac_status=$? 20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20203 (eval $ac_try) 2>&5 20204 ac_status=$? 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); }; }; then 20207 ac_cv_func_utime_null=yes 20208else 20209 echo "$as_me: program exited with status $ac_status" >&5 20210echo "$as_me: failed program was:" >&5 20211sed 's/^/| /' conftest.$ac_ext >&5 20212 20213( exit $ac_status ) 20214ac_cv_func_utime_null=no 20215fi 20216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20217fi 20218rm -f core *.core 20219fi 20220echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 20221echo "${ECHO_T}$ac_cv_func_utime_null" >&6 20222if test $ac_cv_func_utime_null = yes; then 20223 20224cat >>confdefs.h <<\_ACEOF 20225#define HAVE_UTIME_NULL 1 20226_ACEOF 20227 20228fi 20229rm -f conftest.data 20230 20231 20232for ac_func in vprintf 20233do 20234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20235echo "$as_me:$LINENO: checking for $ac_func" >&5 20236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20237if eval "test \"\${$as_ac_var+set}\" = set"; then 20238 echo $ECHO_N "(cached) $ECHO_C" >&6 20239else 20240 cat >conftest.$ac_ext <<_ACEOF 20241/* confdefs.h. */ 20242_ACEOF 20243cat confdefs.h >>conftest.$ac_ext 20244cat >>conftest.$ac_ext <<_ACEOF 20245/* end confdefs.h. */ 20246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20247 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20248#define $ac_func innocuous_$ac_func 20249 20250/* System header to define __stub macros and hopefully few prototypes, 20251 which can conflict with char $ac_func (); below. 20252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20253 <limits.h> exists even on freestanding compilers. */ 20254 20255#ifdef __STDC__ 20256# include <limits.h> 20257#else 20258# include <assert.h> 20259#endif 20260 20261#undef $ac_func 20262 20263/* Override any gcc2 internal prototype to avoid an error. */ 20264#ifdef __cplusplus 20265extern "C" 20266{ 20267#endif 20268/* We use char because int might match the return type of a gcc2 20269 builtin and then its argument prototype would still apply. */ 20270char $ac_func (); 20271/* The GNU C library defines this for functions which it implements 20272 to always fail with ENOSYS. Some functions are actually named 20273 something starting with __ and the normal name is an alias. */ 20274#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20275choke me 20276#else 20277char (*f) () = $ac_func; 20278#endif 20279#ifdef __cplusplus 20280} 20281#endif 20282 20283int 20284main () 20285{ 20286return f != $ac_func; 20287 ; 20288 return 0; 20289} 20290_ACEOF 20291rm -f conftest.$ac_objext conftest$ac_exeext 20292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20293 (eval $ac_link) 2>conftest.er1 20294 ac_status=$? 20295 grep -v '^ *+' conftest.er1 >conftest.err 20296 rm -f conftest.er1 20297 cat conftest.err >&5 20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20299 (exit $ac_status); } && 20300 { ac_try='test -z "$ac_c_werror_flag" 20301 || test ! -s conftest.err' 20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20303 (eval $ac_try) 2>&5 20304 ac_status=$? 20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20306 (exit $ac_status); }; } && 20307 { ac_try='test -s conftest$ac_exeext' 20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20309 (eval $ac_try) 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; }; then 20313 eval "$as_ac_var=yes" 20314else 20315 echo "$as_me: failed program was:" >&5 20316sed 's/^/| /' conftest.$ac_ext >&5 20317 20318eval "$as_ac_var=no" 20319fi 20320rm -f conftest.err conftest.$ac_objext \ 20321 conftest$ac_exeext conftest.$ac_ext 20322fi 20323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20325if test `eval echo '${'$as_ac_var'}'` = yes; then 20326 cat >>confdefs.h <<_ACEOF 20327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20328_ACEOF 20329 20330echo "$as_me:$LINENO: checking for _doprnt" >&5 20331echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 20332if test "${ac_cv_func__doprnt+set}" = set; then 20333 echo $ECHO_N "(cached) $ECHO_C" >&6 20334else 20335 cat >conftest.$ac_ext <<_ACEOF 20336/* confdefs.h. */ 20337_ACEOF 20338cat confdefs.h >>conftest.$ac_ext 20339cat >>conftest.$ac_ext <<_ACEOF 20340/* end confdefs.h. */ 20341/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20342 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20343#define _doprnt innocuous__doprnt 20344 20345/* System header to define __stub macros and hopefully few prototypes, 20346 which can conflict with char _doprnt (); below. 20347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20348 <limits.h> exists even on freestanding compilers. */ 20349 20350#ifdef __STDC__ 20351# include <limits.h> 20352#else 20353# include <assert.h> 20354#endif 20355 20356#undef _doprnt 20357 20358/* Override any gcc2 internal prototype to avoid an error. */ 20359#ifdef __cplusplus 20360extern "C" 20361{ 20362#endif 20363/* We use char because int might match the return type of a gcc2 20364 builtin and then its argument prototype would still apply. */ 20365char _doprnt (); 20366/* The GNU C library defines this for functions which it implements 20367 to always fail with ENOSYS. Some functions are actually named 20368 something starting with __ and the normal name is an alias. */ 20369#if defined (__stub__doprnt) || defined (__stub____doprnt) 20370choke me 20371#else 20372char (*f) () = _doprnt; 20373#endif 20374#ifdef __cplusplus 20375} 20376#endif 20377 20378int 20379main () 20380{ 20381return f != _doprnt; 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386rm -f conftest.$ac_objext conftest$ac_exeext 20387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20388 (eval $ac_link) 2>conftest.er1 20389 ac_status=$? 20390 grep -v '^ *+' conftest.er1 >conftest.err 20391 rm -f conftest.er1 20392 cat conftest.err >&5 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); } && 20395 { ac_try='test -z "$ac_c_werror_flag" 20396 || test ! -s conftest.err' 20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20398 (eval $ac_try) 2>&5 20399 ac_status=$? 20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20401 (exit $ac_status); }; } && 20402 { ac_try='test -s conftest$ac_exeext' 20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20404 (eval $ac_try) 2>&5 20405 ac_status=$? 20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20407 (exit $ac_status); }; }; then 20408 ac_cv_func__doprnt=yes 20409else 20410 echo "$as_me: failed program was:" >&5 20411sed 's/^/| /' conftest.$ac_ext >&5 20412 20413ac_cv_func__doprnt=no 20414fi 20415rm -f conftest.err conftest.$ac_objext \ 20416 conftest$ac_exeext conftest.$ac_ext 20417fi 20418echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20419echo "${ECHO_T}$ac_cv_func__doprnt" >&6 20420if test $ac_cv_func__doprnt = yes; then 20421 20422cat >>confdefs.h <<\_ACEOF 20423#define HAVE_DOPRNT 1 20424_ACEOF 20425 20426fi 20427 20428fi 20429done 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464for ac_func in \ 20465 __argz_count __argz_next __argz_stringify \ 20466 dcgettext dup2 \ 20467 endgrent endpwent \ 20468 floor \ 20469 getcwd getpagesize getwd \ 20470 memmove mempcpy memset mkdir munmap \ 20471 nl_langinfo \ 20472 pow putenv setenv \ 20473 setlocale sqrt stpcpy strcasecmp strchr strcspn \ 20474 strdup strrchr strstr strtoul \ 20475 uname utime \ 20476 20477do 20478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20479echo "$as_me:$LINENO: checking for $ac_func" >&5 20480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20481if eval "test \"\${$as_ac_var+set}\" = set"; then 20482 echo $ECHO_N "(cached) $ECHO_C" >&6 20483else 20484 cat >conftest.$ac_ext <<_ACEOF 20485/* confdefs.h. */ 20486_ACEOF 20487cat confdefs.h >>conftest.$ac_ext 20488cat >>conftest.$ac_ext <<_ACEOF 20489/* end confdefs.h. */ 20490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20491 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20492#define $ac_func innocuous_$ac_func 20493 20494/* System header to define __stub macros and hopefully few prototypes, 20495 which can conflict with char $ac_func (); below. 20496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20497 <limits.h> exists even on freestanding compilers. */ 20498 20499#ifdef __STDC__ 20500# include <limits.h> 20501#else 20502# include <assert.h> 20503#endif 20504 20505#undef $ac_func 20506 20507/* Override any gcc2 internal prototype to avoid an error. */ 20508#ifdef __cplusplus 20509extern "C" 20510{ 20511#endif 20512/* We use char because int might match the return type of a gcc2 20513 builtin and then its argument prototype would still apply. */ 20514char $ac_func (); 20515/* The GNU C library defines this for functions which it implements 20516 to always fail with ENOSYS. Some functions are actually named 20517 something starting with __ and the normal name is an alias. */ 20518#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20519choke me 20520#else 20521char (*f) () = $ac_func; 20522#endif 20523#ifdef __cplusplus 20524} 20525#endif 20526 20527int 20528main () 20529{ 20530return f != $ac_func; 20531 ; 20532 return 0; 20533} 20534_ACEOF 20535rm -f conftest.$ac_objext conftest$ac_exeext 20536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20537 (eval $ac_link) 2>conftest.er1 20538 ac_status=$? 20539 grep -v '^ *+' conftest.er1 >conftest.err 20540 rm -f conftest.er1 20541 cat conftest.err >&5 20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20543 (exit $ac_status); } && 20544 { ac_try='test -z "$ac_c_werror_flag" 20545 || test ! -s conftest.err' 20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20547 (eval $ac_try) 2>&5 20548 ac_status=$? 20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20550 (exit $ac_status); }; } && 20551 { ac_try='test -s conftest$ac_exeext' 20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20553 (eval $ac_try) 2>&5 20554 ac_status=$? 20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20556 (exit $ac_status); }; }; then 20557 eval "$as_ac_var=yes" 20558else 20559 echo "$as_me: failed program was:" >&5 20560sed 's/^/| /' conftest.$ac_ext >&5 20561 20562eval "$as_ac_var=no" 20563fi 20564rm -f conftest.err conftest.$ac_objext \ 20565 conftest$ac_exeext conftest.$ac_ext 20566fi 20567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20569if test `eval echo '${'$as_ac_var'}'` = yes; then 20570 cat >>confdefs.h <<_ACEOF 20571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20572_ACEOF 20573 20574fi 20575done 20576 20577 20578 20579gimv_datadir="\${datadir}/\${PACKAGE}" 20580docdir="\${datadir}/doc" 20581gimv_docdir="\${docdir}/\${PACKAGE}" 20582gimv_icondir="\${datadir}/\${PACKAGE}/pixmaps" 20583 20584 20585 20586 20587 20588plugindir="\${libdir}/\${PACKAGE}" 20589ARCHIVER_PLUGIN_DIR="archiver" 20590IMAGE_LOADER_PLUGIN_DIR="image_loader" 20591IMAGE_SAVER_PLUGIN_DIR="image_saver" 20592IO_STREAM_PLUGIN_DIR="io_stream" 20593IMAGE_VIEW_PLUGIN_DIR="image_view" 20594THUMBNAIL_VIEW_PLUGIN_DIR="thumbnail_view" 20595THUMBNAIL_PLUGIN_DIR="thumbnail" 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 ac_config_files="$ac_config_files Makefile doc/Makefile doc/ja/Makefile etc/Makefile m4/Makefile intl/Makefile po/Makefile.in lib/Makefile lib/dllloader/Makefile lib/libexif/Makefile plugins/Makefile plugins/archiver/Makefile plugins/image_loader/Makefile plugins/image_saver/Makefile plugins/image_view/Makefile plugins/io_stream/Makefile plugins/thumbnail/Makefile plugins/thumbnail_view/Makefile src/Makefile src/cursors/Makefile src/pixmaps/Makefile src/prefs_ui/Makefile gimageview.spec" 20608cat >confcache <<\_ACEOF 20609# This file is a shell script that caches the results of configure 20610# tests run on this system so they can be shared between configure 20611# scripts and configure runs, see configure's option --config-cache. 20612# It is not useful on other systems. If it contains results you don't 20613# want to keep, you may remove or edit it. 20614# 20615# config.status only pays attention to the cache file if you give it 20616# the --recheck option to rerun configure. 20617# 20618# `ac_cv_env_foo' variables (set or unset) will be overridden when 20619# loading this file, other *unset* `ac_cv_foo' will be assigned the 20620# following values. 20621 20622_ACEOF 20623 20624# The following way of writing the cache mishandles newlines in values, 20625# but we know of no workaround that is simple, portable, and efficient. 20626# So, don't put newlines in cache variables' values. 20627# Ultrix sh set writes to stderr and can't be redirected directly, 20628# and sets the high bit in the cache file unless we assign to the vars. 20629{ 20630 (set) 2>&1 | 20631 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20632 *ac_space=\ *) 20633 # `set' does not quote correctly, so add quotes (double-quote 20634 # substitution turns \\\\ into \\, and sed turns \\ into \). 20635 sed -n \ 20636 "s/'/'\\\\''/g; 20637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20638 ;; 20639 *) 20640 # `set' quotes correctly as required by POSIX, so do not add quotes. 20641 sed -n \ 20642 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20643 ;; 20644 esac; 20645} | 20646 sed ' 20647 t clear 20648 : clear 20649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20650 t end 20651 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20652 : end' >>confcache 20653if diff $cache_file confcache >/dev/null 2>&1; then :; else 20654 if test -w $cache_file; then 20655 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20656 cat confcache >$cache_file 20657 else 20658 echo "not updating unwritable cache $cache_file" 20659 fi 20660fi 20661rm -f confcache 20662 20663test "x$prefix" = xNONE && prefix=$ac_default_prefix 20664# Let make expand exec_prefix. 20665test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20666 20667# VPATH may cause trouble with some makes, so we remove $(srcdir), 20668# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20669# trailing colons and then remove the whole line if VPATH becomes empty 20670# (actually we leave an empty line to preserve line numbers). 20671if test "x$srcdir" = x.; then 20672 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20673s/:*\$(srcdir):*/:/; 20674s/:*\${srcdir}:*/:/; 20675s/:*@srcdir@:*/:/; 20676s/^\([^=]*=[ ]*\):*/\1/; 20677s/:*$//; 20678s/^[^=]*=[ ]*$//; 20679}' 20680fi 20681 20682DEFS=-DHAVE_CONFIG_H 20683 20684ac_libobjs= 20685ac_ltlibobjs= 20686for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20687 # 1. Remove the extension, and $U if already installed. 20688 ac_i=`echo "$ac_i" | 20689 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20690 # 2. Add them. 20691 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20692 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20693done 20694LIBOBJS=$ac_libobjs 20695 20696LTLIBOBJS=$ac_ltlibobjs 20697 20698 20699if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20700 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20701Usually this means the macro was only invoked conditionally." >&5 20702echo "$as_me: error: conditional \"AMDEP\" was never defined. 20703Usually this means the macro was only invoked conditionally." >&2;} 20704 { (exit 1); exit 1; }; } 20705fi 20706if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20707 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20708Usually this means the macro was only invoked conditionally." >&5 20709echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20710Usually this means the macro was only invoked conditionally." >&2;} 20711 { (exit 1); exit 1; }; } 20712fi 20713if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20714 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20715Usually this means the macro was only invoked conditionally." >&5 20716echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20717Usually this means the macro was only invoked conditionally." >&2;} 20718 { (exit 1); exit 1; }; } 20719fi 20720if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20721 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20722Usually this means the macro was only invoked conditionally." >&5 20723echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20724Usually this means the macro was only invoked conditionally." >&2;} 20725 { (exit 1); exit 1; }; } 20726fi 20727if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 20728 { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined. 20729Usually this means the macro was only invoked conditionally." >&5 20730echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined. 20731Usually this means the macro was only invoked conditionally." >&2;} 20732 { (exit 1); exit 1; }; } 20733fi 20734if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 20735 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined. 20736Usually this means the macro was only invoked conditionally." >&5 20737echo "$as_me: error: conditional \"OS_WIN32\" was never defined. 20738Usually this means the macro was only invoked conditionally." >&2;} 20739 { (exit 1); exit 1; }; } 20740fi 20741if test -z "${ENABLE_GDK_PIXBUF_TRUE}" && test -z "${ENABLE_GDK_PIXBUF_FALSE}"; then 20742 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GDK_PIXBUF\" was never defined. 20743Usually this means the macro was only invoked conditionally." >&5 20744echo "$as_me: error: conditional \"ENABLE_GDK_PIXBUF\" was never defined. 20745Usually this means the macro was only invoked conditionally." >&2;} 20746 { (exit 1); exit 1; }; } 20747fi 20748if test -z "${ENABLE_GDK_IMLIB_TRUE}" && test -z "${ENABLE_GDK_IMLIB_FALSE}"; then 20749 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GDK_IMLIB\" was never defined. 20750Usually this means the macro was only invoked conditionally." >&5 20751echo "$as_me: error: conditional \"ENABLE_GDK_IMLIB\" was never defined. 20752Usually this means the macro was only invoked conditionally." >&2;} 20753 { (exit 1); exit 1; }; } 20754fi 20755if test -z "${HAVE_BZLIB_TRUE}" && test -z "${HAVE_BZLIB_FALSE}"; then 20756 { { echo "$as_me:$LINENO: error: conditional \"HAVE_BZLIB\" was never defined. 20757Usually this means the macro was only invoked conditionally." >&5 20758echo "$as_me: error: conditional \"HAVE_BZLIB\" was never defined. 20759Usually this means the macro was only invoked conditionally." >&2;} 20760 { (exit 1); exit 1; }; } 20761fi 20762if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then 20763 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PNG\" was never defined. 20764Usually this means the macro was only invoked conditionally." >&5 20765echo "$as_me: error: conditional \"HAVE_PNG\" was never defined. 20766Usually this means the macro was only invoked conditionally." >&2;} 20767 { (exit 1); exit 1; }; } 20768fi 20769if test -z "${ENABLE_JPEG_TRUE}" && test -z "${ENABLE_JPEG_FALSE}"; then 20770 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_JPEG\" was never defined. 20771Usually this means the macro was only invoked conditionally." >&5 20772echo "$as_me: error: conditional \"ENABLE_JPEG\" was never defined. 20773Usually this means the macro was only invoked conditionally." >&2;} 20774 { (exit 1); exit 1; }; } 20775fi 20776if test -z "${ENABLE_MNG_TRUE}" && test -z "${ENABLE_MNG_FALSE}"; then 20777 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MNG\" was never defined. 20778Usually this means the macro was only invoked conditionally." >&5 20779echo "$as_me: error: conditional \"ENABLE_MNG\" was never defined. 20780Usually this means the macro was only invoked conditionally." >&2;} 20781 { (exit 1); exit 1; }; } 20782fi 20783if test -z "${ENABLE_LIBRSVG_TRUE}" && test -z "${ENABLE_LIBRSVG_FALSE}"; then 20784 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBRSVG\" was never defined. 20785Usually this means the macro was only invoked conditionally." >&5 20786echo "$as_me: error: conditional \"ENABLE_LIBRSVG\" was never defined. 20787Usually this means the macro was only invoked conditionally." >&2;} 20788 { (exit 1); exit 1; }; } 20789fi 20790if test -z "${ENABLE_WMF_TRUE}" && test -z "${ENABLE_WMF_FALSE}"; then 20791 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WMF\" was never defined. 20792Usually this means the macro was only invoked conditionally." >&5 20793echo "$as_me: error: conditional \"ENABLE_WMF\" was never defined. 20794Usually this means the macro was only invoked conditionally." >&2;} 20795 { (exit 1); exit 1; }; } 20796fi 20797if test -z "${ENABLE_XINE_TRUE}" && test -z "${ENABLE_XINE_FALSE}"; then 20798 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XINE\" was never defined. 20799Usually this means the macro was only invoked conditionally." >&5 20800echo "$as_me: error: conditional \"ENABLE_XINE\" was never defined. 20801Usually this means the macro was only invoked conditionally." >&2;} 20802 { (exit 1); exit 1; }; } 20803fi 20804 20805 20806 mv -f po/POTFILES po/POTFILES.tmp 20807 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 20808 rm -f po/POTFILES.tmp 20809 20810 20811if test -z "${ENABLE_EXIF_TRUE}" && test -z "${ENABLE_EXIF_FALSE}"; then 20812 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EXIF\" was never defined. 20813Usually this means the macro was only invoked conditionally." >&5 20814echo "$as_me: error: conditional \"ENABLE_EXIF\" was never defined. 20815Usually this means the macro was only invoked conditionally." >&2;} 20816 { (exit 1); exit 1; }; } 20817fi 20818if test -z "${ENABLE_SPI_TRUE}" && test -z "${ENABLE_SPI_FALSE}"; then 20819 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SPI\" was never defined. 20820Usually this means the macro was only invoked conditionally." >&5 20821echo "$as_me: error: conditional \"ENABLE_SPI\" was never defined. 20822Usually this means the macro was only invoked conditionally." >&2;} 20823 { (exit 1); exit 1; }; } 20824fi 20825if test -z "${ENABLE_MPLAYER_TRUE}" && test -z "${ENABLE_MPLAYER_FALSE}"; then 20826 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MPLAYER\" was never defined. 20827Usually this means the macro was only invoked conditionally." >&5 20828echo "$as_me: error: conditional \"ENABLE_MPLAYER\" was never defined. 20829Usually this means the macro was only invoked conditionally." >&2;} 20830 { (exit 1); exit 1; }; } 20831fi 20832 20833: ${CONFIG_STATUS=./config.status} 20834ac_clean_files_save=$ac_clean_files 20835ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20836{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20837echo "$as_me: creating $CONFIG_STATUS" >&6;} 20838cat >$CONFIG_STATUS <<_ACEOF 20839#! $SHELL 20840# Generated by $as_me. 20841# Run this file to recreate the current configuration. 20842# Compiler output produced by configure, useful for debugging 20843# configure, is in config.log if it exists. 20844 20845debug=false 20846ac_cs_recheck=false 20847ac_cs_silent=false 20848SHELL=\${CONFIG_SHELL-$SHELL} 20849_ACEOF 20850 20851cat >>$CONFIG_STATUS <<\_ACEOF 20852## --------------------- ## 20853## M4sh Initialization. ## 20854## --------------------- ## 20855 20856# Be Bourne compatible 20857if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20858 emulate sh 20859 NULLCMD=: 20860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20861 # is contrary to our usage. Disable this feature. 20862 alias -g '${1+"$@"}'='"$@"' 20863elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20864 set -o posix 20865fi 20866DUALCASE=1; export DUALCASE # for MKS sh 20867 20868# Support unset when possible. 20869if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20870 as_unset=unset 20871else 20872 as_unset=false 20873fi 20874 20875 20876# Work around bugs in pre-3.0 UWIN ksh. 20877$as_unset ENV MAIL MAILPATH 20878PS1='$ ' 20879PS2='> ' 20880PS4='+ ' 20881 20882# NLS nuisances. 20883for as_var in \ 20884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20886 LC_TELEPHONE LC_TIME 20887do 20888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20889 eval $as_var=C; export $as_var 20890 else 20891 $as_unset $as_var 20892 fi 20893done 20894 20895# Required to use basename. 20896if expr a : '\(a\)' >/dev/null 2>&1; then 20897 as_expr=expr 20898else 20899 as_expr=false 20900fi 20901 20902if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20903 as_basename=basename 20904else 20905 as_basename=false 20906fi 20907 20908 20909# Name of the executable. 20910as_me=`$as_basename "$0" || 20911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20912 X"$0" : 'X\(//\)$' \| \ 20913 X"$0" : 'X\(/\)$' \| \ 20914 . : '\(.\)' 2>/dev/null || 20915echo X/"$0" | 20916 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20917 /^X\/\(\/\/\)$/{ s//\1/; q; } 20918 /^X\/\(\/\).*/{ s//\1/; q; } 20919 s/.*/./; q'` 20920 20921 20922# PATH needs CR, and LINENO needs CR and PATH. 20923# Avoid depending upon Character Ranges. 20924as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20926as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20927as_cr_digits='0123456789' 20928as_cr_alnum=$as_cr_Letters$as_cr_digits 20929 20930# The user is always right. 20931if test "${PATH_SEPARATOR+set}" != set; then 20932 echo "#! /bin/sh" >conf$$.sh 20933 echo "exit 0" >>conf$$.sh 20934 chmod +x conf$$.sh 20935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20936 PATH_SEPARATOR=';' 20937 else 20938 PATH_SEPARATOR=: 20939 fi 20940 rm -f conf$$.sh 20941fi 20942 20943 20944 as_lineno_1=$LINENO 20945 as_lineno_2=$LINENO 20946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20947 test "x$as_lineno_1" != "x$as_lineno_2" && 20948 test "x$as_lineno_3" = "x$as_lineno_2" || { 20949 # Find who we are. Look in the path if we contain no path at all 20950 # relative or not. 20951 case $0 in 20952 *[\\/]* ) as_myself=$0 ;; 20953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20954for as_dir in $PATH 20955do 20956 IFS=$as_save_IFS 20957 test -z "$as_dir" && as_dir=. 20958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20959done 20960 20961 ;; 20962 esac 20963 # We did not find ourselves, most probably we were run as `sh COMMAND' 20964 # in which case we are not to be found in the path. 20965 if test "x$as_myself" = x; then 20966 as_myself=$0 20967 fi 20968 if test ! -f "$as_myself"; then 20969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20970echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20971 { (exit 1); exit 1; }; } 20972 fi 20973 case $CONFIG_SHELL in 20974 '') 20975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20976for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20977do 20978 IFS=$as_save_IFS 20979 test -z "$as_dir" && as_dir=. 20980 for as_base in sh bash ksh sh5; do 20981 case $as_dir in 20982 /*) 20983 if ("$as_dir/$as_base" -c ' 20984 as_lineno_1=$LINENO 20985 as_lineno_2=$LINENO 20986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20987 test "x$as_lineno_1" != "x$as_lineno_2" && 20988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20989 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20990 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20991 CONFIG_SHELL=$as_dir/$as_base 20992 export CONFIG_SHELL 20993 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20994 fi;; 20995 esac 20996 done 20997done 20998;; 20999 esac 21000 21001 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21002 # uniformly replaced by the line number. The first 'sed' inserts a 21003 # line-number line before each line; the second 'sed' does the real 21004 # work. The second script uses 'N' to pair each line-number line 21005 # with the numbered line, and appends trailing '-' during 21006 # substitution so that $LINENO is not a special case at line end. 21007 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21008 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21009 sed '=' <$as_myself | 21010 sed ' 21011 N 21012 s,$,-, 21013 : loop 21014 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21015 t loop 21016 s,-$,, 21017 s,^['$as_cr_digits']*\n,, 21018 ' >$as_me.lineno && 21019 chmod +x $as_me.lineno || 21020 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21021echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21022 { (exit 1); exit 1; }; } 21023 21024 # Don't try to exec as it changes $[0], causing all sort of problems 21025 # (the dirname of $[0] is not the place where we might find the 21026 # original and so on. Autoconf is especially sensible to this). 21027 . ./$as_me.lineno 21028 # Exit status is that of the last command. 21029 exit 21030} 21031 21032 21033case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21034 *c*,-n*) ECHO_N= ECHO_C=' 21035' ECHO_T=' ' ;; 21036 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21037 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21038esac 21039 21040if expr a : '\(a\)' >/dev/null 2>&1; then 21041 as_expr=expr 21042else 21043 as_expr=false 21044fi 21045 21046rm -f conf$$ conf$$.exe conf$$.file 21047echo >conf$$.file 21048if ln -s conf$$.file conf$$ 2>/dev/null; then 21049 # We could just check for DJGPP; but this test a) works b) is more generic 21050 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21051 if test -f conf$$.exe; then 21052 # Don't use ln at all; we don't have any links 21053 as_ln_s='cp -p' 21054 else 21055 as_ln_s='ln -s' 21056 fi 21057elif ln conf$$.file conf$$ 2>/dev/null; then 21058 as_ln_s=ln 21059else 21060 as_ln_s='cp -p' 21061fi 21062rm -f conf$$ conf$$.exe conf$$.file 21063 21064if mkdir -p . 2>/dev/null; then 21065 as_mkdir_p=: 21066else 21067 test -d ./-p && rmdir ./-p 21068 as_mkdir_p=false 21069fi 21070 21071as_executable_p="test -f" 21072 21073# Sed expression to map a string onto a valid CPP name. 21074as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21075 21076# Sed expression to map a string onto a valid variable name. 21077as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21078 21079 21080# IFS 21081# We need space, tab and new line, in precisely that order. 21082as_nl=' 21083' 21084IFS=" $as_nl" 21085 21086# CDPATH. 21087$as_unset CDPATH 21088 21089exec 6>&1 21090 21091# Open the log real soon, to keep \$[0] and so on meaningful, and to 21092# report actual input values of CONFIG_FILES etc. instead of their 21093# values after options handling. Logging --version etc. is OK. 21094exec 5>>config.log 21095{ 21096 echo 21097 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21098## Running $as_me. ## 21099_ASBOX 21100} >&5 21101cat >&5 <<_CSEOF 21102 21103This file was extended by $as_me, which was 21104generated by GNU Autoconf 2.59. Invocation command line was 21105 21106 CONFIG_FILES = $CONFIG_FILES 21107 CONFIG_HEADERS = $CONFIG_HEADERS 21108 CONFIG_LINKS = $CONFIG_LINKS 21109 CONFIG_COMMANDS = $CONFIG_COMMANDS 21110 $ $0 $@ 21111 21112_CSEOF 21113echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21114echo >&5 21115_ACEOF 21116 21117# Files that config.status was made for. 21118if test -n "$ac_config_files"; then 21119 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21120fi 21121 21122if test -n "$ac_config_headers"; then 21123 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21124fi 21125 21126if test -n "$ac_config_links"; then 21127 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21128fi 21129 21130if test -n "$ac_config_commands"; then 21131 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21132fi 21133 21134cat >>$CONFIG_STATUS <<\_ACEOF 21135 21136ac_cs_usage="\ 21137\`$as_me' instantiates files from templates according to the 21138current configuration. 21139 21140Usage: $0 [OPTIONS] [FILE]... 21141 21142 -h, --help print this help, then exit 21143 -V, --version print version number, then exit 21144 -q, --quiet do not print progress messages 21145 -d, --debug don't remove temporary files 21146 --recheck update $as_me by reconfiguring in the same conditions 21147 --file=FILE[:TEMPLATE] 21148 instantiate the configuration file FILE 21149 --header=FILE[:TEMPLATE] 21150 instantiate the configuration header FILE 21151 21152Configuration files: 21153$config_files 21154 21155Configuration headers: 21156$config_headers 21157 21158Configuration commands: 21159$config_commands 21160 21161Report bugs to <bug-autoconf@gnu.org>." 21162_ACEOF 21163 21164cat >>$CONFIG_STATUS <<_ACEOF 21165ac_cs_version="\\ 21166config.status 21167configured by $0, generated by GNU Autoconf 2.59, 21168 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21169 21170Copyright (C) 2003 Free Software Foundation, Inc. 21171This config.status script is free software; the Free Software Foundation 21172gives unlimited permission to copy, distribute and modify it." 21173srcdir=$srcdir 21174INSTALL="$INSTALL" 21175_ACEOF 21176 21177cat >>$CONFIG_STATUS <<\_ACEOF 21178# If no file are specified by the user, then we need to provide default 21179# value. By we need to know if files were specified by the user. 21180ac_need_defaults=: 21181while test $# != 0 21182do 21183 case $1 in 21184 --*=*) 21185 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21186 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21187 ac_shift=: 21188 ;; 21189 -*) 21190 ac_option=$1 21191 ac_optarg=$2 21192 ac_shift=shift 21193 ;; 21194 *) # This is not an option, so the user has probably given explicit 21195 # arguments. 21196 ac_option=$1 21197 ac_need_defaults=false;; 21198 esac 21199 21200 case $ac_option in 21201 # Handling of the options. 21202_ACEOF 21203cat >>$CONFIG_STATUS <<\_ACEOF 21204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21205 ac_cs_recheck=: ;; 21206 --version | --vers* | -V ) 21207 echo "$ac_cs_version"; exit 0 ;; 21208 --he | --h) 21209 # Conflict between --help and --header 21210 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21211Try \`$0 --help' for more information." >&5 21212echo "$as_me: error: ambiguous option: $1 21213Try \`$0 --help' for more information." >&2;} 21214 { (exit 1); exit 1; }; };; 21215 --help | --hel | -h ) 21216 echo "$ac_cs_usage"; exit 0 ;; 21217 --debug | --d* | -d ) 21218 debug=: ;; 21219 --file | --fil | --fi | --f ) 21220 $ac_shift 21221 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21222 ac_need_defaults=false;; 21223 --header | --heade | --head | --hea ) 21224 $ac_shift 21225 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21226 ac_need_defaults=false;; 21227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21228 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21229 ac_cs_silent=: ;; 21230 21231 # This is an error. 21232 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21233Try \`$0 --help' for more information." >&5 21234echo "$as_me: error: unrecognized option: $1 21235Try \`$0 --help' for more information." >&2;} 21236 { (exit 1); exit 1; }; } ;; 21237 21238 *) ac_config_targets="$ac_config_targets $1" ;; 21239 21240 esac 21241 shift 21242done 21243 21244ac_configure_extra_args= 21245 21246if $ac_cs_silent; then 21247 exec 6>/dev/null 21248 ac_configure_extra_args="$ac_configure_extra_args --silent" 21249fi 21250 21251_ACEOF 21252cat >>$CONFIG_STATUS <<_ACEOF 21253if \$ac_cs_recheck; then 21254 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21255 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21256fi 21257 21258_ACEOF 21259 21260cat >>$CONFIG_STATUS <<_ACEOF 21261# 21262# INIT-COMMANDS section. 21263# 21264 21265AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21266 21267INTLTOOL_PERL=${INTLTOOL_PERL} 21268 21269_ACEOF 21270 21271 21272 21273cat >>$CONFIG_STATUS <<\_ACEOF 21274for ac_config_target in $ac_config_targets 21275do 21276 case "$ac_config_target" in 21277 # Handling of arguments. 21278 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21279 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21280 "doc/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja/Makefile" ;; 21281 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 21282 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 21283 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 21284 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21285 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 21286 "lib/dllloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/dllloader/Makefile" ;; 21287 "lib/libexif/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/libexif/Makefile" ;; 21288 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 21289 "plugins/archiver/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/archiver/Makefile" ;; 21290 "plugins/image_loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/image_loader/Makefile" ;; 21291 "plugins/image_saver/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/image_saver/Makefile" ;; 21292 "plugins/image_view/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/image_view/Makefile" ;; 21293 "plugins/io_stream/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/io_stream/Makefile" ;; 21294 "plugins/thumbnail/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/thumbnail/Makefile" ;; 21295 "plugins/thumbnail_view/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/thumbnail_view/Makefile" ;; 21296 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21297 "src/cursors/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cursors/Makefile" ;; 21298 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; 21299 "src/prefs_ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/prefs_ui/Makefile" ;; 21300 "gimageview.spec" ) CONFIG_FILES="$CONFIG_FILES gimageview.spec" ;; 21301 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21302 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 21303 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 21304 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21305 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21306echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21307 { (exit 1); exit 1; }; };; 21308 esac 21309done 21310 21311# If the user did not use the arguments to specify the items to instantiate, 21312# then the envvar interface is used. Set only those that are not. 21313# We use the long form for the default assignment because of an extremely 21314# bizarre bug on SunOS 4.1.3. 21315if $ac_need_defaults; then 21316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21319fi 21320 21321# Have a temporary directory for convenience. Make it in the build tree 21322# simply because there is no reason to put it here, and in addition, 21323# creating and moving files from /tmp can sometimes cause problems. 21324# Create a temporary directory, and hook for its removal unless debugging. 21325$debug || 21326{ 21327 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21328 trap '{ (exit 1); exit 1; }' 1 2 13 15 21329} 21330 21331# Create a (secure) tmp directory for tmp files. 21332 21333{ 21334 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21335 test -n "$tmp" && test -d "$tmp" 21336} || 21337{ 21338 tmp=./confstat$$-$RANDOM 21339 (umask 077 && mkdir $tmp) 21340} || 21341{ 21342 echo "$me: cannot create a temporary directory in ." >&2 21343 { (exit 1); exit 1; } 21344} 21345 21346_ACEOF 21347 21348cat >>$CONFIG_STATUS <<_ACEOF 21349 21350# 21351# CONFIG_FILES section. 21352# 21353 21354# No need to generate the scripts if there are no CONFIG_FILES. 21355# This happens for instance when ./config.status config.h 21356if test -n "\$CONFIG_FILES"; then 21357 # Protect against being on the right side of a sed subst in config.status. 21358 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21359 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21360s,@SHELL@,$SHELL,;t t 21361s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21362s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21363s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21364s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21365s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21366s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21367s,@exec_prefix@,$exec_prefix,;t t 21368s,@prefix@,$prefix,;t t 21369s,@program_transform_name@,$program_transform_name,;t t 21370s,@bindir@,$bindir,;t t 21371s,@sbindir@,$sbindir,;t t 21372s,@libexecdir@,$libexecdir,;t t 21373s,@datadir@,$datadir,;t t 21374s,@sysconfdir@,$sysconfdir,;t t 21375s,@sharedstatedir@,$sharedstatedir,;t t 21376s,@localstatedir@,$localstatedir,;t t 21377s,@libdir@,$libdir,;t t 21378s,@includedir@,$includedir,;t t 21379s,@oldincludedir@,$oldincludedir,;t t 21380s,@infodir@,$infodir,;t t 21381s,@mandir@,$mandir,;t t 21382s,@build_alias@,$build_alias,;t t 21383s,@host_alias@,$host_alias,;t t 21384s,@target_alias@,$target_alias,;t t 21385s,@DEFS@,$DEFS,;t t 21386s,@ECHO_C@,$ECHO_C,;t t 21387s,@ECHO_N@,$ECHO_N,;t t 21388s,@ECHO_T@,$ECHO_T,;t t 21389s,@LIBS@,$LIBS,;t t 21390s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21391s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21392s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21393s,@CYGPATH_W@,$CYGPATH_W,;t t 21394s,@PACKAGE@,$PACKAGE,;t t 21395s,@VERSION@,$VERSION,;t t 21396s,@ACLOCAL@,$ACLOCAL,;t t 21397s,@AUTOCONF@,$AUTOCONF,;t t 21398s,@AUTOMAKE@,$AUTOMAKE,;t t 21399s,@AUTOHEADER@,$AUTOHEADER,;t t 21400s,@MAKEINFO@,$MAKEINFO,;t t 21401s,@AMTAR@,$AMTAR,;t t 21402s,@install_sh@,$install_sh,;t t 21403s,@STRIP@,$STRIP,;t t 21404s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21405s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21406s,@mkdir_p@,$mkdir_p,;t t 21407s,@AWK@,$AWK,;t t 21408s,@SET_MAKE@,$SET_MAKE,;t t 21409s,@am__leading_dot@,$am__leading_dot,;t t 21410s,@CC@,$CC,;t t 21411s,@CFLAGS@,$CFLAGS,;t t 21412s,@LDFLAGS@,$LDFLAGS,;t t 21413s,@CPPFLAGS@,$CPPFLAGS,;t t 21414s,@ac_ct_CC@,$ac_ct_CC,;t t 21415s,@EXEEXT@,$EXEEXT,;t t 21416s,@OBJEXT@,$OBJEXT,;t t 21417s,@DEPDIR@,$DEPDIR,;t t 21418s,@am__include@,$am__include,;t t 21419s,@am__quote@,$am__quote,;t t 21420s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21421s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21422s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21423s,@CCDEPMODE@,$CCDEPMODE,;t t 21424s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21425s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21426s,@CXX@,$CXX,;t t 21427s,@CXXFLAGS@,$CXXFLAGS,;t t 21428s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21429s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21430s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21431s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21432s,@LN_S@,$LN_S,;t t 21433s,@YACC@,$YACC,;t t 21434s,@CPP@,$CPP,;t t 21435s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 21436s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 21437s,@MAINT@,$MAINT,;t t 21438s,@build@,$build,;t t 21439s,@build_cpu@,$build_cpu,;t t 21440s,@build_vendor@,$build_vendor,;t t 21441s,@build_os@,$build_os,;t t 21442s,@host@,$host,;t t 21443s,@host_cpu@,$host_cpu,;t t 21444s,@host_vendor@,$host_vendor,;t t 21445s,@host_os@,$host_os,;t t 21446s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t 21447s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t 21448s,@WINDRES@,$WINDRES,;t t 21449s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t 21450s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t 21451s,@ECHO@,$ECHO,;t t 21452s,@RANLIB@,$RANLIB,;t t 21453s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21454s,@EGREP@,$EGREP,;t t 21455s,@LIBTOOL@,$LIBTOOL,;t t 21456s,@GLIB_REQUIRED@,$GLIB_REQUIRED,;t t 21457s,@GTK_REQUIRED@,$GTK_REQUIRED,;t t 21458s,@IMLIB_REQUIRED@,$IMLIB_REQUIRED,;t t 21459s,@GDK_PIXBUF_REQUIRED@,$GDK_PIXBUF_REQUIRED,;t t 21460s,@LIBRSVG_REQUIRED@,$LIBRSVG_REQUIRED,;t t 21461s,@LIBWMF_REQUIRED@,$LIBWMF_REQUIRED,;t t 21462s,@XINE_REQUIRED@,$XINE_REQUIRED,;t t 21463s,@GLIB2_REQUIRED@,$GLIB2_REQUIRED,;t t 21464s,@GMODULE2_REQUIRED@,$GMODULE2_REQUIRED,;t t 21465s,@GTK2_REQUIRED@,$GTK2_REQUIRED,;t t 21466s,@GDK_PIXBUF2_REQUIRED@,$GDK_PIXBUF2_REQUIRED,;t t 21467s,@PKG_CONFIG@,$PKG_CONFIG,;t t 21468s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 21469s,@GTK_LIBS@,$GTK_LIBS,;t t 21470s,@GTK_CONFIG@,$GTK_CONFIG,;t t 21471s,@IMLIB_CONFIG@,$IMLIB_CONFIG,;t t 21472s,@GDK_IMLIB_CFLAGS@,$GDK_IMLIB_CFLAGS,;t t 21473s,@GDK_IMLIB_LIBS@,$GDK_IMLIB_LIBS,;t t 21474s,@GDK_PIXBUF_CONFIG@,$GDK_PIXBUF_CONFIG,;t t 21475s,@GDK_PIXBUF_CFLAGS@,$GDK_PIXBUF_CFLAGS,;t t 21476s,@GDK_PIXBUF_LIBS@,$GDK_PIXBUF_LIBS,;t t 21477s,@ENABLE_GDK_PIXBUF_TRUE@,$ENABLE_GDK_PIXBUF_TRUE,;t t 21478s,@ENABLE_GDK_PIXBUF_FALSE@,$ENABLE_GDK_PIXBUF_FALSE,;t t 21479s,@ENABLE_GDK_IMLIB_TRUE@,$ENABLE_GDK_IMLIB_TRUE,;t t 21480s,@ENABLE_GDK_IMLIB_FALSE@,$ENABLE_GDK_IMLIB_FALSE,;t t 21481s,@GIMV_IMAGELIB_CFLAGS@,$GIMV_IMAGELIB_CFLAGS,;t t 21482s,@GIMV_IMAGELIB_LIBS@,$GIMV_IMAGELIB_LIBS,;t t 21483s,@ZLIB_CFLAGS@,$ZLIB_CFLAGS,;t t 21484s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t 21485s,@HAVE_BZLIB_TRUE@,$HAVE_BZLIB_TRUE,;t t 21486s,@HAVE_BZLIB_FALSE@,$HAVE_BZLIB_FALSE,;t t 21487s,@BZLIB_CFLAGS@,$BZLIB_CFLAGS,;t t 21488s,@BZLIB_LIBS@,$BZLIB_LIBS,;t t 21489s,@PNG_CFLAGS@,$PNG_CFLAGS,;t t 21490s,@PNG_LIBS@,$PNG_LIBS,;t t 21491s,@HAVE_PNG_TRUE@,$HAVE_PNG_TRUE,;t t 21492s,@HAVE_PNG_FALSE@,$HAVE_PNG_FALSE,;t t 21493s,@ENABLE_JPEG_TRUE@,$ENABLE_JPEG_TRUE,;t t 21494s,@ENABLE_JPEG_FALSE@,$ENABLE_JPEG_FALSE,;t t 21495s,@JPEG_CFLAGS@,$JPEG_CFLAGS,;t t 21496s,@JPEG_LIBS@,$JPEG_LIBS,;t t 21497s,@ENABLE_MNG_TRUE@,$ENABLE_MNG_TRUE,;t t 21498s,@ENABLE_MNG_FALSE@,$ENABLE_MNG_FALSE,;t t 21499s,@MNG_CFLAGS@,$MNG_CFLAGS,;t t 21500s,@MNG_LIBS@,$MNG_LIBS,;t t 21501s,@LIBRSVG_CFLAGS@,$LIBRSVG_CFLAGS,;t t 21502s,@LIBRSVG_LIBS@,$LIBRSVG_LIBS,;t t 21503s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t 21504s,@GNOME_CFLAGS@,$GNOME_CFLAGS,;t t 21505s,@GNOME_LIBS@,$GNOME_LIBS,;t t 21506s,@GNOMEUI_CFLAGS@,$GNOMEUI_CFLAGS,;t t 21507s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t 21508s,@ZVT_LIBS@,$ZVT_LIBS,;t t 21509s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t 21510s,@GLIB_LIBS@,$GLIB_LIBS,;t t 21511s,@OAF_CFLAGS@,$OAF_CFLAGS,;t t 21512s,@OAF_LIBS@,$OAF_LIBS,;t t 21513s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t 21514s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t 21515s,@ENABLE_LIBRSVG_TRUE@,$ENABLE_LIBRSVG_TRUE,;t t 21516s,@ENABLE_LIBRSVG_FALSE@,$ENABLE_LIBRSVG_FALSE,;t t 21517s,@XML_CFLAGS@,$XML_CFLAGS,;t t 21518s,@XML_LIBS@,$XML_LIBS,;t t 21519s,@LIBWMF_CONFIG@,$LIBWMF_CONFIG,;t t 21520s,@LIBWMF_CFLAGS@,$LIBWMF_CFLAGS,;t t 21521s,@LIBWMF_LIBS@,$LIBWMF_LIBS,;t t 21522s,@ENABLE_WMF_TRUE@,$ENABLE_WMF_TRUE,;t t 21523s,@ENABLE_WMF_FALSE@,$ENABLE_WMF_FALSE,;t t 21524s,@X_CFLAGS@,$X_CFLAGS,;t t 21525s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 21526s,@X_LIBS@,$X_LIBS,;t t 21527s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 21528s,@XINERAMA_LIBS@,$XINERAMA_LIBS,;t t 21529s,@XINE_CONFIG@,$XINE_CONFIG,;t t 21530s,@XINE_CFLAGS@,$XINE_CFLAGS,;t t 21531s,@XINE_LIBS@,$XINE_LIBS,;t t 21532s,@XINE_ACFLAGS@,$XINE_ACFLAGS,;t t 21533s,@ENABLE_XINE_TRUE@,$ENABLE_XINE_TRUE,;t t 21534s,@ENABLE_XINE_FALSE@,$ENABLE_XINE_FALSE,;t t 21535s,@ALLOCA@,$ALLOCA,;t t 21536s,@GLIBC21@,$GLIBC21,;t t 21537s,@LIBICONV@,$LIBICONV,;t t 21538s,@LTLIBICONV@,$LTLIBICONV,;t t 21539s,@USE_NLS@,$USE_NLS,;t t 21540s,@MSGFMT@,$MSGFMT,;t t 21541s,@GMSGFMT@,$GMSGFMT,;t t 21542s,@XGETTEXT@,$XGETTEXT,;t t 21543s,@INTLBISON@,$INTLBISON,;t t 21544s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 21545s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 21546s,@CATALOGS@,$CATALOGS,;t t 21547s,@CATOBJEXT@,$CATOBJEXT,;t t 21548s,@GMOFILES@,$GMOFILES,;t t 21549s,@INTLLIBS@,$INTLLIBS,;t t 21550s,@INTLOBJS@,$INTLOBJS,;t t 21551s,@POFILES@,$POFILES,;t t 21552s,@POSUB@,$POSUB,;t t 21553s,@DATADIRNAME@,$DATADIRNAME,;t t 21554s,@INSTOBJEXT@,$INSTOBJEXT,;t t 21555s,@GENCAT@,$GENCAT,;t t 21556s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 21557s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 21558s,@localedir@,$localedir,;t t 21559s,@LIBCHARSET@,$LIBCHARSET,;t t 21560s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t 21561s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t 21562s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t 21563s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t 21564s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t 21565s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t 21566s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t 21567s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t 21568s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t 21569s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t 21570s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t 21571s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t 21572s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t 21573s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t 21574s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t 21575s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t 21576s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t 21577s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t 21578s,@ENABLE_EXIF_TRUE@,$ENABLE_EXIF_TRUE,;t t 21579s,@ENABLE_EXIF_FALSE@,$ENABLE_EXIF_FALSE,;t t 21580s,@EXIF_CFLAGS@,$EXIF_CFLAGS,;t t 21581s,@EXIF_LIBS@,$EXIF_LIBS,;t t 21582s,@ENABLE_SPI_TRUE@,$ENABLE_SPI_TRUE,;t t 21583s,@ENABLE_SPI_FALSE@,$ENABLE_SPI_FALSE,;t t 21584s,@DLLLOADER_CFLAGS@,$DLLLOADER_CFLAGS,;t t 21585s,@DLLLOADER_LIBS@,$DLLLOADER_LIBS,;t t 21586s,@ENABLE_MPLAYER_TRUE@,$ENABLE_MPLAYER_TRUE,;t t 21587s,@ENABLE_MPLAYER_FALSE@,$ENABLE_MPLAYER_FALSE,;t t 21588s,@LIBOBJS@,$LIBOBJS,;t t 21589s,@docdir@,$docdir,;t t 21590s,@gimv_datadir@,$gimv_datadir,;t t 21591s,@gimv_docdir@,$gimv_docdir,;t t 21592s,@gimv_icondir@,$gimv_icondir,;t t 21593s,@plugindir@,$plugindir,;t t 21594s,@ARCHIVER_PLUGIN_DIR@,$ARCHIVER_PLUGIN_DIR,;t t 21595s,@IMAGE_LOADER_PLUGIN_DIR@,$IMAGE_LOADER_PLUGIN_DIR,;t t 21596s,@IMAGE_SAVER_PLUGIN_DIR@,$IMAGE_SAVER_PLUGIN_DIR,;t t 21597s,@IO_STREAM_PLUGIN_DIR@,$IO_STREAM_PLUGIN_DIR,;t t 21598s,@IMAGE_VIEW_PLUGIN_DIR@,$IMAGE_VIEW_PLUGIN_DIR,;t t 21599s,@THUMBNAIL_VIEW_PLUGIN_DIR@,$THUMBNAIL_VIEW_PLUGIN_DIR,;t t 21600s,@THUMBNAIL_PLUGIN_DIR@,$THUMBNAIL_PLUGIN_DIR,;t t 21601s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21602CEOF 21603 21604_ACEOF 21605 21606 cat >>$CONFIG_STATUS <<\_ACEOF 21607 # Split the substitutions into bite-sized pieces for seds with 21608 # small command number limits, like on Digital OSF/1 and HP-UX. 21609 ac_max_sed_lines=48 21610 ac_sed_frag=1 # Number of current file. 21611 ac_beg=1 # First line for current file. 21612 ac_end=$ac_max_sed_lines # Line after last line for current file. 21613 ac_more_lines=: 21614 ac_sed_cmds= 21615 while $ac_more_lines; do 21616 if test $ac_beg -gt 1; then 21617 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21618 else 21619 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21620 fi 21621 if test ! -s $tmp/subs.frag; then 21622 ac_more_lines=false 21623 else 21624 # The purpose of the label and of the branching condition is to 21625 # speed up the sed processing (if there are no `@' at all, there 21626 # is no need to browse any of the substitutions). 21627 # These are the two extra sed commands mentioned above. 21628 (echo ':t 21629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21630 if test -z "$ac_sed_cmds"; then 21631 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21632 else 21633 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21634 fi 21635 ac_sed_frag=`expr $ac_sed_frag + 1` 21636 ac_beg=$ac_end 21637 ac_end=`expr $ac_end + $ac_max_sed_lines` 21638 fi 21639 done 21640 if test -z "$ac_sed_cmds"; then 21641 ac_sed_cmds=cat 21642 fi 21643fi # test -n "$CONFIG_FILES" 21644 21645_ACEOF 21646cat >>$CONFIG_STATUS <<\_ACEOF 21647for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21649 case $ac_file in 21650 - | *:- | *:-:* ) # input from stdin 21651 cat >$tmp/stdin 21652 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21654 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21655 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21656 * ) ac_file_in=$ac_file.in ;; 21657 esac 21658 21659 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21660 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21661$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21662 X"$ac_file" : 'X\(//\)[^/]' \| \ 21663 X"$ac_file" : 'X\(//\)$' \| \ 21664 X"$ac_file" : 'X\(/\)' \| \ 21665 . : '\(.\)' 2>/dev/null || 21666echo X"$ac_file" | 21667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21668 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21669 /^X\(\/\/\)$/{ s//\1/; q; } 21670 /^X\(\/\).*/{ s//\1/; q; } 21671 s/.*/./; q'` 21672 { if $as_mkdir_p; then 21673 mkdir -p "$ac_dir" 21674 else 21675 as_dir="$ac_dir" 21676 as_dirs= 21677 while test ! -d "$as_dir"; do 21678 as_dirs="$as_dir $as_dirs" 21679 as_dir=`(dirname "$as_dir") 2>/dev/null || 21680$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21681 X"$as_dir" : 'X\(//\)[^/]' \| \ 21682 X"$as_dir" : 'X\(//\)$' \| \ 21683 X"$as_dir" : 'X\(/\)' \| \ 21684 . : '\(.\)' 2>/dev/null || 21685echo X"$as_dir" | 21686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21687 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21688 /^X\(\/\/\)$/{ s//\1/; q; } 21689 /^X\(\/\).*/{ s//\1/; q; } 21690 s/.*/./; q'` 21691 done 21692 test ! -n "$as_dirs" || mkdir $as_dirs 21693 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21694echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21695 { (exit 1); exit 1; }; }; } 21696 21697 ac_builddir=. 21698 21699if test "$ac_dir" != .; then 21700 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21701 # A "../" for each directory in $ac_dir_suffix. 21702 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21703else 21704 ac_dir_suffix= ac_top_builddir= 21705fi 21706 21707case $srcdir in 21708 .) # No --srcdir option. We are building in place. 21709 ac_srcdir=. 21710 if test -z "$ac_top_builddir"; then 21711 ac_top_srcdir=. 21712 else 21713 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21714 fi ;; 21715 [\\/]* | ?:[\\/]* ) # Absolute path. 21716 ac_srcdir=$srcdir$ac_dir_suffix; 21717 ac_top_srcdir=$srcdir ;; 21718 *) # Relative path. 21719 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21720 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21721esac 21722 21723# Do not use `cd foo && pwd` to compute absolute paths, because 21724# the directories may not exist. 21725case `pwd` in 21726.) ac_abs_builddir="$ac_dir";; 21727*) 21728 case "$ac_dir" in 21729 .) ac_abs_builddir=`pwd`;; 21730 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21731 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21732 esac;; 21733esac 21734case $ac_abs_builddir in 21735.) ac_abs_top_builddir=${ac_top_builddir}.;; 21736*) 21737 case ${ac_top_builddir}. in 21738 .) ac_abs_top_builddir=$ac_abs_builddir;; 21739 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21740 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21741 esac;; 21742esac 21743case $ac_abs_builddir in 21744.) ac_abs_srcdir=$ac_srcdir;; 21745*) 21746 case $ac_srcdir in 21747 .) ac_abs_srcdir=$ac_abs_builddir;; 21748 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21749 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21750 esac;; 21751esac 21752case $ac_abs_builddir in 21753.) ac_abs_top_srcdir=$ac_top_srcdir;; 21754*) 21755 case $ac_top_srcdir in 21756 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21757 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21758 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21759 esac;; 21760esac 21761 21762 21763 case $INSTALL in 21764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21765 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21766 esac 21767 21768 if test x"$ac_file" != x-; then 21769 { echo "$as_me:$LINENO: creating $ac_file" >&5 21770echo "$as_me: creating $ac_file" >&6;} 21771 rm -f "$ac_file" 21772 fi 21773 # Let's still pretend it is `configure' which instantiates (i.e., don't 21774 # use $as_me), people would be surprised to read: 21775 # /* config.h. Generated by config.status. */ 21776 if test x"$ac_file" = x-; then 21777 configure_input= 21778 else 21779 configure_input="$ac_file. " 21780 fi 21781 configure_input=$configure_input"Generated from `echo $ac_file_in | 21782 sed 's,.*/,,'` by configure." 21783 21784 # First look for the input files in the build tree, otherwise in the 21785 # src tree. 21786 ac_file_inputs=`IFS=: 21787 for f in $ac_file_in; do 21788 case $f in 21789 -) echo $tmp/stdin ;; 21790 [\\/$]*) 21791 # Absolute (can't be DOS-style, as IFS=:) 21792 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21793echo "$as_me: error: cannot find input file: $f" >&2;} 21794 { (exit 1); exit 1; }; } 21795 echo "$f";; 21796 *) # Relative 21797 if test -f "$f"; then 21798 # Build tree 21799 echo "$f" 21800 elif test -f "$srcdir/$f"; then 21801 # Source tree 21802 echo "$srcdir/$f" 21803 else 21804 # /dev/null tree 21805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21806echo "$as_me: error: cannot find input file: $f" >&2;} 21807 { (exit 1); exit 1; }; } 21808 fi;; 21809 esac 21810 done` || { (exit 1); exit 1; } 21811_ACEOF 21812cat >>$CONFIG_STATUS <<_ACEOF 21813 sed "$ac_vpsub 21814$extrasub 21815_ACEOF 21816cat >>$CONFIG_STATUS <<\_ACEOF 21817:t 21818/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21819s,@configure_input@,$configure_input,;t t 21820s,@srcdir@,$ac_srcdir,;t t 21821s,@abs_srcdir@,$ac_abs_srcdir,;t t 21822s,@top_srcdir@,$ac_top_srcdir,;t t 21823s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21824s,@builddir@,$ac_builddir,;t t 21825s,@abs_builddir@,$ac_abs_builddir,;t t 21826s,@top_builddir@,$ac_top_builddir,;t t 21827s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21828s,@INSTALL@,$ac_INSTALL,;t t 21829" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21830 rm -f $tmp/stdin 21831 if test x"$ac_file" != x-; then 21832 mv $tmp/out $ac_file 21833 else 21834 cat $tmp/out 21835 rm -f $tmp/out 21836 fi 21837 21838done 21839_ACEOF 21840cat >>$CONFIG_STATUS <<\_ACEOF 21841 21842# 21843# CONFIG_HEADER section. 21844# 21845 21846# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21847# NAME is the cpp macro being defined and VALUE is the value it is being given. 21848# 21849# ac_d sets the value in "#define NAME VALUE" lines. 21850ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21851ac_dB='[ ].*$,\1#\2' 21852ac_dC=' ' 21853ac_dD=',;t' 21854# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21855ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21856ac_uB='$,\1#\2define\3' 21857ac_uC=' ' 21858ac_uD=',;t' 21859 21860for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21862 case $ac_file in 21863 - | *:- | *:-:* ) # input from stdin 21864 cat >$tmp/stdin 21865 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21867 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21869 * ) ac_file_in=$ac_file.in ;; 21870 esac 21871 21872 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21873echo "$as_me: creating $ac_file" >&6;} 21874 21875 # First look for the input files in the build tree, otherwise in the 21876 # src tree. 21877 ac_file_inputs=`IFS=: 21878 for f in $ac_file_in; do 21879 case $f in 21880 -) echo $tmp/stdin ;; 21881 [\\/$]*) 21882 # Absolute (can't be DOS-style, as IFS=:) 21883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21884echo "$as_me: error: cannot find input file: $f" >&2;} 21885 { (exit 1); exit 1; }; } 21886 # Do quote $f, to prevent DOS paths from being IFS'd. 21887 echo "$f";; 21888 *) # Relative 21889 if test -f "$f"; then 21890 # Build tree 21891 echo "$f" 21892 elif test -f "$srcdir/$f"; then 21893 # Source tree 21894 echo "$srcdir/$f" 21895 else 21896 # /dev/null tree 21897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21898echo "$as_me: error: cannot find input file: $f" >&2;} 21899 { (exit 1); exit 1; }; } 21900 fi;; 21901 esac 21902 done` || { (exit 1); exit 1; } 21903 # Remove the trailing spaces. 21904 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21905 21906_ACEOF 21907 21908# Transform confdefs.h into two sed scripts, `conftest.defines' and 21909# `conftest.undefs', that substitutes the proper values into 21910# config.h.in to produce config.h. The first handles `#define' 21911# templates, and the second `#undef' templates. 21912# And first: Protect against being on the right side of a sed subst in 21913# config.status. Protect against being in an unquoted here document 21914# in config.status. 21915rm -f conftest.defines conftest.undefs 21916# Using a here document instead of a string reduces the quoting nightmare. 21917# Putting comments in sed scripts is not portable. 21918# 21919# `end' is used to avoid that the second main sed command (meant for 21920# 0-ary CPP macros) applies to n-ary macro definitions. 21921# See the Autoconf documentation for `clear'. 21922cat >confdef2sed.sed <<\_ACEOF 21923s/[\\&,]/\\&/g 21924s,[\\$`],\\&,g 21925t clear 21926: clear 21927s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21928t end 21929s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21930: end 21931_ACEOF 21932# If some macros were called several times there might be several times 21933# the same #defines, which is useless. Nevertheless, we may not want to 21934# sort them, since we want the *last* AC-DEFINE to be honored. 21935uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21936sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21937rm -f confdef2sed.sed 21938 21939# This sed command replaces #undef with comments. This is necessary, for 21940# example, in the case of _POSIX_SOURCE, which is predefined and required 21941# on some systems where configure will not decide to define it. 21942cat >>conftest.undefs <<\_ACEOF 21943s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21944_ACEOF 21945 21946# Break up conftest.defines because some shells have a limit on the size 21947# of here documents, and old seds have small limits too (100 cmds). 21948echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21949echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21950echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21951echo ' :' >>$CONFIG_STATUS 21952rm -f conftest.tail 21953while grep . conftest.defines >/dev/null 21954do 21955 # Write a limited-size here document to $tmp/defines.sed. 21956 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21957 # Speed up: don't consider the non `#define' lines. 21958 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21959 # Work around the forget-to-reset-the-flag bug. 21960 echo 't clr' >>$CONFIG_STATUS 21961 echo ': clr' >>$CONFIG_STATUS 21962 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21963 echo 'CEOF 21964 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21965 rm -f $tmp/in 21966 mv $tmp/out $tmp/in 21967' >>$CONFIG_STATUS 21968 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21969 rm -f conftest.defines 21970 mv conftest.tail conftest.defines 21971done 21972rm -f conftest.defines 21973echo ' fi # grep' >>$CONFIG_STATUS 21974echo >>$CONFIG_STATUS 21975 21976# Break up conftest.undefs because some shells have a limit on the size 21977# of here documents, and old seds have small limits too (100 cmds). 21978echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21979rm -f conftest.tail 21980while grep . conftest.undefs >/dev/null 21981do 21982 # Write a limited-size here document to $tmp/undefs.sed. 21983 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21984 # Speed up: don't consider the non `#undef' 21985 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21986 # Work around the forget-to-reset-the-flag bug. 21987 echo 't clr' >>$CONFIG_STATUS 21988 echo ': clr' >>$CONFIG_STATUS 21989 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21990 echo 'CEOF 21991 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21992 rm -f $tmp/in 21993 mv $tmp/out $tmp/in 21994' >>$CONFIG_STATUS 21995 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21996 rm -f conftest.undefs 21997 mv conftest.tail conftest.undefs 21998done 21999rm -f conftest.undefs 22000 22001cat >>$CONFIG_STATUS <<\_ACEOF 22002 # Let's still pretend it is `configure' which instantiates (i.e., don't 22003 # use $as_me), people would be surprised to read: 22004 # /* config.h. Generated by config.status. */ 22005 if test x"$ac_file" = x-; then 22006 echo "/* Generated by configure. */" >$tmp/config.h 22007 else 22008 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22009 fi 22010 cat $tmp/in >>$tmp/config.h 22011 rm -f $tmp/in 22012 if test x"$ac_file" != x-; then 22013 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22015echo "$as_me: $ac_file is unchanged" >&6;} 22016 else 22017 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22018$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22019 X"$ac_file" : 'X\(//\)[^/]' \| \ 22020 X"$ac_file" : 'X\(//\)$' \| \ 22021 X"$ac_file" : 'X\(/\)' \| \ 22022 . : '\(.\)' 2>/dev/null || 22023echo X"$ac_file" | 22024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22025 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22026 /^X\(\/\/\)$/{ s//\1/; q; } 22027 /^X\(\/\).*/{ s//\1/; q; } 22028 s/.*/./; q'` 22029 { if $as_mkdir_p; then 22030 mkdir -p "$ac_dir" 22031 else 22032 as_dir="$ac_dir" 22033 as_dirs= 22034 while test ! -d "$as_dir"; do 22035 as_dirs="$as_dir $as_dirs" 22036 as_dir=`(dirname "$as_dir") 2>/dev/null || 22037$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22038 X"$as_dir" : 'X\(//\)[^/]' \| \ 22039 X"$as_dir" : 'X\(//\)$' \| \ 22040 X"$as_dir" : 'X\(/\)' \| \ 22041 . : '\(.\)' 2>/dev/null || 22042echo X"$as_dir" | 22043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22044 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22045 /^X\(\/\/\)$/{ s//\1/; q; } 22046 /^X\(\/\).*/{ s//\1/; q; } 22047 s/.*/./; q'` 22048 done 22049 test ! -n "$as_dirs" || mkdir $as_dirs 22050 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22051echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22052 { (exit 1); exit 1; }; }; } 22053 22054 rm -f $ac_file 22055 mv $tmp/config.h $ac_file 22056 fi 22057 else 22058 cat $tmp/config.h 22059 rm -f $tmp/config.h 22060 fi 22061# Compute $ac_file's index in $config_headers. 22062_am_stamp_count=1 22063for _am_header in $config_headers :; do 22064 case $_am_header in 22065 $ac_file | $ac_file:* ) 22066 break ;; 22067 * ) 22068 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22069 esac 22070done 22071echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 22072$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22073 X$ac_file : 'X\(//\)[^/]' \| \ 22074 X$ac_file : 'X\(//\)$' \| \ 22075 X$ac_file : 'X\(/\)' \| \ 22076 . : '\(.\)' 2>/dev/null || 22077echo X$ac_file | 22078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22079 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22080 /^X\(\/\/\)$/{ s//\1/; q; } 22081 /^X\(\/\).*/{ s//\1/; q; } 22082 s/.*/./; q'`/stamp-h$_am_stamp_count 22083done 22084_ACEOF 22085cat >>$CONFIG_STATUS <<\_ACEOF 22086 22087# 22088# CONFIG_COMMANDS section. 22089# 22090for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22091 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22092 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22093 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22094$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22095 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22096 X"$ac_dest" : 'X\(//\)$' \| \ 22097 X"$ac_dest" : 'X\(/\)' \| \ 22098 . : '\(.\)' 2>/dev/null || 22099echo X"$ac_dest" | 22100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22101 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22102 /^X\(\/\/\)$/{ s//\1/; q; } 22103 /^X\(\/\).*/{ s//\1/; q; } 22104 s/.*/./; q'` 22105 { if $as_mkdir_p; then 22106 mkdir -p "$ac_dir" 22107 else 22108 as_dir="$ac_dir" 22109 as_dirs= 22110 while test ! -d "$as_dir"; do 22111 as_dirs="$as_dir $as_dirs" 22112 as_dir=`(dirname "$as_dir") 2>/dev/null || 22113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22114 X"$as_dir" : 'X\(//\)[^/]' \| \ 22115 X"$as_dir" : 'X\(//\)$' \| \ 22116 X"$as_dir" : 'X\(/\)' \| \ 22117 . : '\(.\)' 2>/dev/null || 22118echo X"$as_dir" | 22119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22120 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22121 /^X\(\/\/\)$/{ s//\1/; q; } 22122 /^X\(\/\).*/{ s//\1/; q; } 22123 s/.*/./; q'` 22124 done 22125 test ! -n "$as_dirs" || mkdir $as_dirs 22126 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22127echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22128 { (exit 1); exit 1; }; }; } 22129 22130 ac_builddir=. 22131 22132if test "$ac_dir" != .; then 22133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22134 # A "../" for each directory in $ac_dir_suffix. 22135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22136else 22137 ac_dir_suffix= ac_top_builddir= 22138fi 22139 22140case $srcdir in 22141 .) # No --srcdir option. We are building in place. 22142 ac_srcdir=. 22143 if test -z "$ac_top_builddir"; then 22144 ac_top_srcdir=. 22145 else 22146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22147 fi ;; 22148 [\\/]* | ?:[\\/]* ) # Absolute path. 22149 ac_srcdir=$srcdir$ac_dir_suffix; 22150 ac_top_srcdir=$srcdir ;; 22151 *) # Relative path. 22152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22153 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22154esac 22155 22156# Do not use `cd foo && pwd` to compute absolute paths, because 22157# the directories may not exist. 22158case `pwd` in 22159.) ac_abs_builddir="$ac_dir";; 22160*) 22161 case "$ac_dir" in 22162 .) ac_abs_builddir=`pwd`;; 22163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22164 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22165 esac;; 22166esac 22167case $ac_abs_builddir in 22168.) ac_abs_top_builddir=${ac_top_builddir}.;; 22169*) 22170 case ${ac_top_builddir}. in 22171 .) ac_abs_top_builddir=$ac_abs_builddir;; 22172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22174 esac;; 22175esac 22176case $ac_abs_builddir in 22177.) ac_abs_srcdir=$ac_srcdir;; 22178*) 22179 case $ac_srcdir in 22180 .) ac_abs_srcdir=$ac_abs_builddir;; 22181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22183 esac;; 22184esac 22185case $ac_abs_builddir in 22186.) ac_abs_top_srcdir=$ac_top_srcdir;; 22187*) 22188 case $ac_top_srcdir in 22189 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22192 esac;; 22193esac 22194 22195 22196 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22197echo "$as_me: executing $ac_dest commands" >&6;} 22198 case $ac_dest in 22199 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22200 # Strip MF so we end up with the name of the file. 22201 mf=`echo "$mf" | sed -e 's/:.*$//'` 22202 # Check whether this is an Automake generated Makefile or not. 22203 # We used to match only the files named `Makefile.in', but 22204 # some people rename them; so instead we look at the file content. 22205 # Grep'ing the first line is not enough: some people post-process 22206 # each Makefile.in and add a new line on top of each file to say so. 22207 # So let's grep whole file. 22208 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22209 dirpart=`(dirname "$mf") 2>/dev/null || 22210$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22211 X"$mf" : 'X\(//\)[^/]' \| \ 22212 X"$mf" : 'X\(//\)$' \| \ 22213 X"$mf" : 'X\(/\)' \| \ 22214 . : '\(.\)' 2>/dev/null || 22215echo X"$mf" | 22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22217 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22218 /^X\(\/\/\)$/{ s//\1/; q; } 22219 /^X\(\/\).*/{ s//\1/; q; } 22220 s/.*/./; q'` 22221 else 22222 continue 22223 fi 22224 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 22225 # Extract the definition of DEP_FILES from the Makefile without 22226 # running `make'. 22227 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22228 test -z "$DEPDIR" && continue 22229 # When using ansi2knr, U may be empty or an underscore; expand it 22230 U=`sed -n 's/^U = //p' < "$mf"` 22231 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 22232 # We invoke sed twice because it is the simplest approach to 22233 # changing $(DEPDIR) to its actual value in the expansion. 22234 for file in `sed -n ' 22235 /^DEP_FILES = .*\\\\$/ { 22236 s/^DEP_FILES = // 22237 :loop 22238 s/\\\\$// 22239 p 22240 n 22241 /\\\\$/ b loop 22242 p 22243 } 22244 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 22245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22246 # Make sure the directory exists. 22247 test -f "$dirpart/$file" && continue 22248 fdir=`(dirname "$file") 2>/dev/null || 22249$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22250 X"$file" : 'X\(//\)[^/]' \| \ 22251 X"$file" : 'X\(//\)$' \| \ 22252 X"$file" : 'X\(/\)' \| \ 22253 . : '\(.\)' 2>/dev/null || 22254echo X"$file" | 22255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22256 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22257 /^X\(\/\/\)$/{ s//\1/; q; } 22258 /^X\(\/\).*/{ s//\1/; q; } 22259 s/.*/./; q'` 22260 { if $as_mkdir_p; then 22261 mkdir -p $dirpart/$fdir 22262 else 22263 as_dir=$dirpart/$fdir 22264 as_dirs= 22265 while test ! -d "$as_dir"; do 22266 as_dirs="$as_dir $as_dirs" 22267 as_dir=`(dirname "$as_dir") 2>/dev/null || 22268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22269 X"$as_dir" : 'X\(//\)[^/]' \| \ 22270 X"$as_dir" : 'X\(//\)$' \| \ 22271 X"$as_dir" : 'X\(/\)' \| \ 22272 . : '\(.\)' 2>/dev/null || 22273echo X"$as_dir" | 22274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22275 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22276 /^X\(\/\/\)$/{ s//\1/; q; } 22277 /^X\(\/\).*/{ s//\1/; q; } 22278 s/.*/./; q'` 22279 done 22280 test ! -n "$as_dirs" || mkdir $as_dirs 22281 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 22282echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 22283 { (exit 1); exit 1; }; }; } 22284 22285 # echo "creating $dirpart/$file" 22286 echo '# dummy' > "$dirpart/$file" 22287 done 22288done 22289 ;; 22290 default-1 ) for ac_file in $CONFIG_FILES; do 22291 # Support "outfile[:infile[:infile...]]" 22292 case "$ac_file" in 22293 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 22294 esac 22295 # PO directories have a Makefile.in generated from Makefile.in.in. 22296 case "$ac_file" in */Makefile.in) 22297 # Adjust a relative srcdir. 22298 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 22299 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 22300 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 22301 # In autoconf-2.13 it is called $ac_given_srcdir. 22302 # In autoconf-2.50 it is called $srcdir. 22303 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 22304 case "$ac_given_srcdir" in 22305 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 22306 /*) top_srcdir="$ac_given_srcdir" ;; 22307 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 22308 esac 22309 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 22310 rm -f "$ac_dir/POTFILES" 22311 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 22312 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" 22313 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 22314 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 22315 fi 22316 ;; 22317 esac 22318 done ;; 22319 default-2 ) 22320 22321sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out 22322if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then 22323 rm -f intltool-extract.out 22324else 22325 mv -f intltool-extract.out intltool-extract 22326fi 22327chmod ugo+x intltool-extract 22328chmod u+w intltool-extract 22329 22330sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out 22331if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then 22332 rm -f intltool-merge.out 22333else 22334 mv -f intltool-merge.out intltool-merge 22335fi 22336chmod ugo+x intltool-merge 22337chmod u+w intltool-merge 22338 22339sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out 22340if cmp -s intltool-update intltool-update.out 2>/dev/null; then 22341 rm -f intltool-update.out 22342else 22343 mv -f intltool-update.out intltool-update 22344fi 22345chmod ugo+x intltool-update 22346chmod u+w intltool-update 22347 22348 ;; 22349 esac 22350done 22351_ACEOF 22352 22353cat >>$CONFIG_STATUS <<\_ACEOF 22354 22355{ (exit 0); exit 0; } 22356_ACEOF 22357chmod +x $CONFIG_STATUS 22358ac_clean_files=$ac_clean_files_save 22359 22360 22361# configure is writing to config.log, and then calls config.status. 22362# config.status does its own redirection, appending to config.log. 22363# Unfortunately, on DOS this fails, as config.log is still kept open 22364# by configure, so config.status won't be able to write to it; its 22365# output is simply discarded. So we exec the FD to /dev/null, 22366# effectively closing config.log, so it can be properly (re)opened and 22367# appended to by config.status. When coming back to configure, we 22368# need to make the FD available again. 22369if test "$no_create" != yes; then 22370 ac_cs_success=: 22371 ac_config_status_args= 22372 test "$silent" = yes && 22373 ac_config_status_args="$ac_config_status_args --quiet" 22374 exec 5>/dev/null 22375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22376 exec 5>>config.log 22377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22378 # would make configure fail if this is the last instruction. 22379 $ac_cs_success || { (exit 1); exit 1; } 22380fi 22381 22382 22383 22384 22385echo "$as_me:$LINENO: result: 22386Configure Result : 22387 22388 C Compiler : ${CC} ${CFLAGS} 22389 Install path : ${prefix} 22390 Gtk+-2.0 : ${enable_gtk2} 22391 Image library : ${image_library} 22392 JPEG (libjpg) : ${enable_jpeg} 22393 MNG (libmng) : ${enable_mng} 22394 SVG (librsvg): ${enable_librsvg} 22395 WMF (libwmf) : ${enable_libwmf} 22396 Movie Support : ${movie_support} 22397 EXIF : ${enable_exif} 22398 Susie plugin : ${enable_spi} 22399 Show splash : ${enable_splash} 22400" >&5 22401echo "${ECHO_T} 22402Configure Result : 22403 22404 C Compiler : ${CC} ${CFLAGS} 22405 Install path : ${prefix} 22406 Gtk+-2.0 : ${enable_gtk2} 22407 Image library : ${image_library} 22408 JPEG (libjpg) : ${enable_jpeg} 22409 MNG (libmng) : ${enable_mng} 22410 SVG (librsvg): ${enable_librsvg} 22411 WMF (libwmf) : ${enable_libwmf} 22412 Movie Support : ${movie_support} 22413 EXIF : ${enable_exif} 22414 Susie plugin : ${enable_spi} 22415 Show splash : ${enable_splash} 22416" >&6 22417