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# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="src/main.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS GETTEXT_PACKAGE PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GTK_CFLAGS GTK_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS STARTUP_NOTIFICATION_CFLAGS STARTUP_NOTIFICATION_LIBS XSS_LIBS gdkpixbufcsourcepath AR ac_ct_AR RANLIB ac_ct_RANLIB LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839X features: 840 --x-includes=DIR X include files are in DIR 841 --x-libraries=DIR X library files are in DIR 842_ACEOF 843fi 844 845if test -n "$ac_init_help"; then 846 847 cat <<\_ACEOF 848 849Optional Features: 850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 852 --disable-dependency-tracking Speeds up one-time builds 853 --enable-dependency-tracking Do not reject slow dependency extractors 854 --disable-xscreensaver compile without XScreenSaver extension 855 --disable-startup-notification compile without startup notification support 856 --disable-glibtest do not try to compile and run a test GLIB program 857 --disable-gtktest do not try to compile and run a test GTK+ program 858 859Optional Packages: 860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 862 --with-x use the X Window System 863 864Some influential environment variables: 865 CC C compiler command 866 CFLAGS C compiler flags 867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 868 nonstandard directory <lib dir> 869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 870 headers in a nonstandard directory <include dir> 871 CPP C preprocessor 872 873Use these variables to override the choices made by `configure' or to help 874it to find libraries and programs with nonstandard names/locations. 875 876_ACEOF 877fi 878 879if test "$ac_init_help" = "recursive"; then 880 # If there are subdirs, report their specific --help. 881 ac_popdir=`pwd` 882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 883 test -d $ac_dir || continue 884 ac_builddir=. 885 886if test "$ac_dir" != .; then 887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 888 # A "../" for each directory in $ac_dir_suffix. 889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 890else 891 ac_dir_suffix= ac_top_builddir= 892fi 893 894case $srcdir in 895 .) # No --srcdir option. We are building in place. 896 ac_srcdir=. 897 if test -z "$ac_top_builddir"; then 898 ac_top_srcdir=. 899 else 900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 901 fi ;; 902 [\\/]* | ?:[\\/]* ) # Absolute path. 903 ac_srcdir=$srcdir$ac_dir_suffix; 904 ac_top_srcdir=$srcdir ;; 905 *) # Relative path. 906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 907 ac_top_srcdir=$ac_top_builddir$srcdir ;; 908esac 909 910# Do not use `cd foo && pwd` to compute absolute paths, because 911# the directories may not exist. 912case `pwd` in 913.) ac_abs_builddir="$ac_dir";; 914*) 915 case "$ac_dir" in 916 .) ac_abs_builddir=`pwd`;; 917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 918 *) ac_abs_builddir=`pwd`/"$ac_dir";; 919 esac;; 920esac 921case $ac_abs_builddir in 922.) ac_abs_top_builddir=${ac_top_builddir}.;; 923*) 924 case ${ac_top_builddir}. in 925 .) ac_abs_top_builddir=$ac_abs_builddir;; 926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 928 esac;; 929esac 930case $ac_abs_builddir in 931.) ac_abs_srcdir=$ac_srcdir;; 932*) 933 case $ac_srcdir in 934 .) ac_abs_srcdir=$ac_abs_builddir;; 935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 937 esac;; 938esac 939case $ac_abs_builddir in 940.) ac_abs_top_srcdir=$ac_top_srcdir;; 941*) 942 case $ac_top_srcdir in 943 .) ac_abs_top_srcdir=$ac_abs_builddir;; 944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 946 esac;; 947esac 948 949 cd $ac_dir 950 # Check for guested configure; otherwise get Cygnus style configure. 951 if test -f $ac_srcdir/configure.gnu; then 952 echo 953 $SHELL $ac_srcdir/configure.gnu --help=recursive 954 elif test -f $ac_srcdir/configure; then 955 echo 956 $SHELL $ac_srcdir/configure --help=recursive 957 elif test -f $ac_srcdir/configure.ac || 958 test -f $ac_srcdir/configure.in; then 959 echo 960 $ac_configure --help 961 else 962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 963 fi 964 cd "$ac_popdir" 965 done 966fi 967 968test -n "$ac_init_help" && exit 0 969if $ac_init_version; then 970 cat <<\_ACEOF 971 972Copyright (C) 2003 Free Software Foundation, Inc. 973This configure script is free software; the Free Software Foundation 974gives unlimited permission to copy, distribute and modify it. 975_ACEOF 976 exit 0 977fi 978exec 5>config.log 979cat >&5 <<_ACEOF 980This file contains any messages produced by compilers while 981running configure, to aid debugging if configure makes a mistake. 982 983It was created by $as_me, which was 984generated by GNU Autoconf 2.59. Invocation command line was 985 986 $ $0 $@ 987 988_ACEOF 989{ 990cat <<_ASUNAME 991## --------- ## 992## Platform. ## 993## --------- ## 994 995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 996uname -m = `(uname -m) 2>/dev/null || echo unknown` 997uname -r = `(uname -r) 2>/dev/null || echo unknown` 998uname -s = `(uname -s) 2>/dev/null || echo unknown` 999uname -v = `(uname -v) 2>/dev/null || echo unknown` 1000 1001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1003 1004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1007hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1011 1012_ASUNAME 1013 1014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1015for as_dir in $PATH 1016do 1017 IFS=$as_save_IFS 1018 test -z "$as_dir" && as_dir=. 1019 echo "PATH: $as_dir" 1020done 1021 1022} >&5 1023 1024cat >&5 <<_ACEOF 1025 1026 1027## ----------- ## 1028## Core tests. ## 1029## ----------- ## 1030 1031_ACEOF 1032 1033 1034# Keep a trace of the command line. 1035# Strip out --no-create and --no-recursion so they do not pile up. 1036# Strip out --silent because we don't want to record it for future runs. 1037# Also quote any args containing shell meta-characters. 1038# Make two passes to allow for proper duplicate-argument suppression. 1039ac_configure_args= 1040ac_configure_args0= 1041ac_configure_args1= 1042ac_sep= 1043ac_must_keep_next=false 1044for ac_pass in 1 2 1045do 1046 for ac_arg 1047 do 1048 case $ac_arg in 1049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1051 | -silent | --silent | --silen | --sile | --sil) 1052 continue ;; 1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1055 esac 1056 case $ac_pass in 1057 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1058 2) 1059 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1060 if test $ac_must_keep_next = true; then 1061 ac_must_keep_next=false # Got value, back to normal. 1062 else 1063 case $ac_arg in 1064 *=* | --config-cache | -C | -disable-* | --disable-* \ 1065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1067 | -with-* | --with-* | -without-* | --without-* | --x) 1068 case "$ac_configure_args0 " in 1069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1070 esac 1071 ;; 1072 -* ) ac_must_keep_next=true ;; 1073 esac 1074 fi 1075 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1076 # Get rid of the leading space. 1077 ac_sep=" " 1078 ;; 1079 esac 1080 done 1081done 1082$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1083$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1084 1085# When interrupted or exit'd, cleanup temporary files, and complete 1086# config.log. We remove comments because anyway the quotes in there 1087# would cause problems or look ugly. 1088# WARNING: Be sure not to use single quotes in there, as some shells, 1089# such as our DU 5.0 friend, will then `close' the trap. 1090trap 'exit_status=$? 1091 # Save into config.log some information that might help in debugging. 1092 { 1093 echo 1094 1095 cat <<\_ASBOX 1096## ---------------- ## 1097## Cache variables. ## 1098## ---------------- ## 1099_ASBOX 1100 echo 1101 # The following way of writing the cache mishandles newlines in values, 1102{ 1103 (set) 2>&1 | 1104 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1105 *ac_space=\ *) 1106 sed -n \ 1107 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1109 ;; 1110 *) 1111 sed -n \ 1112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1113 ;; 1114 esac; 1115} 1116 echo 1117 1118 cat <<\_ASBOX 1119## ----------------- ## 1120## Output variables. ## 1121## ----------------- ## 1122_ASBOX 1123 echo 1124 for ac_var in $ac_subst_vars 1125 do 1126 eval ac_val=$`echo $ac_var` 1127 echo "$ac_var='"'"'$ac_val'"'"'" 1128 done | sort 1129 echo 1130 1131 if test -n "$ac_subst_files"; then 1132 cat <<\_ASBOX 1133## ------------- ## 1134## Output files. ## 1135## ------------- ## 1136_ASBOX 1137 echo 1138 for ac_var in $ac_subst_files 1139 do 1140 eval ac_val=$`echo $ac_var` 1141 echo "$ac_var='"'"'$ac_val'"'"'" 1142 done | sort 1143 echo 1144 fi 1145 1146 if test -s confdefs.h; then 1147 cat <<\_ASBOX 1148## ----------- ## 1149## confdefs.h. ## 1150## ----------- ## 1151_ASBOX 1152 echo 1153 sed "/^$/d" confdefs.h | sort 1154 echo 1155 fi 1156 test "$ac_signal" != 0 && 1157 echo "$as_me: caught signal $ac_signal" 1158 echo "$as_me: exit $exit_status" 1159 } >&5 1160 rm -f core *.core && 1161 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1162 exit $exit_status 1163 ' 0 1164for ac_signal in 1 2 13 15; do 1165 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1166done 1167ac_signal=0 1168 1169# confdefs.h avoids OS command line length limits that DEFS can exceed. 1170rm -rf conftest* confdefs.h 1171# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1172echo >confdefs.h 1173 1174# Predefined preprocessor variables. 1175 1176cat >>confdefs.h <<_ACEOF 1177#define PACKAGE_NAME "$PACKAGE_NAME" 1178_ACEOF 1179 1180 1181cat >>confdefs.h <<_ACEOF 1182#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1183_ACEOF 1184 1185 1186cat >>confdefs.h <<_ACEOF 1187#define PACKAGE_VERSION "$PACKAGE_VERSION" 1188_ACEOF 1189 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_STRING "$PACKAGE_STRING" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1198_ACEOF 1199 1200 1201# Let the site file select an alternate cache file if it wants to. 1202# Prefer explicitly selected file to automatically selected ones. 1203if test -z "$CONFIG_SITE"; then 1204 if test "x$prefix" != xNONE; then 1205 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1206 else 1207 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1208 fi 1209fi 1210for ac_site_file in $CONFIG_SITE; do 1211 if test -r "$ac_site_file"; then 1212 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1213echo "$as_me: loading site script $ac_site_file" >&6;} 1214 sed 's/^/| /' "$ac_site_file" >&5 1215 . "$ac_site_file" 1216 fi 1217done 1218 1219if test -r "$cache_file"; then 1220 # Some versions of bash will fail to source /dev/null (special 1221 # files actually), so we avoid doing that. 1222 if test -f "$cache_file"; then 1223 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1224echo "$as_me: loading cache $cache_file" >&6;} 1225 case $cache_file in 1226 [\\/]* | ?:[\\/]* ) . $cache_file;; 1227 *) . ./$cache_file;; 1228 esac 1229 fi 1230else 1231 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1232echo "$as_me: creating cache $cache_file" >&6;} 1233 >$cache_file 1234fi 1235 1236# Check that the precious variables saved in the cache have kept the same 1237# value. 1238ac_cache_corrupted=false 1239for ac_var in `(set) 2>&1 | 1240 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1241 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1242 eval ac_new_set=\$ac_env_${ac_var}_set 1243 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1244 eval ac_new_val="\$ac_env_${ac_var}_value" 1245 case $ac_old_set,$ac_new_set in 1246 set,) 1247 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1248echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1249 ac_cache_corrupted=: ;; 1250 ,set) 1251 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1252echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1253 ac_cache_corrupted=: ;; 1254 ,);; 1255 *) 1256 if test "x$ac_old_val" != "x$ac_new_val"; then 1257 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1258echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1259 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1260echo "$as_me: former value: $ac_old_val" >&2;} 1261 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1262echo "$as_me: current value: $ac_new_val" >&2;} 1263 ac_cache_corrupted=: 1264 fi;; 1265 esac 1266 # Pass precious variables to config.status. 1267 if test "$ac_new_set" = set; then 1268 case $ac_new_val in 1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1270 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1271 *) ac_arg=$ac_var=$ac_new_val ;; 1272 esac 1273 case " $ac_configure_args " in 1274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1275 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1276 esac 1277 fi 1278done 1279if $ac_cache_corrupted; then 1280 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1281echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1282 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1283echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1284 { (exit 1); exit 1; }; } 1285fi 1286 1287ac_ext=c 1288ac_cpp='$CPP $CPPFLAGS' 1289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1291ac_compiler_gnu=$ac_cv_c_compiler_gnu 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311am__api_version="1.6" 1312ac_aux_dir= 1313for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1314 if test -f $ac_dir/install-sh; then 1315 ac_aux_dir=$ac_dir 1316 ac_install_sh="$ac_aux_dir/install-sh -c" 1317 break 1318 elif test -f $ac_dir/install.sh; then 1319 ac_aux_dir=$ac_dir 1320 ac_install_sh="$ac_aux_dir/install.sh -c" 1321 break 1322 elif test -f $ac_dir/shtool; then 1323 ac_aux_dir=$ac_dir 1324 ac_install_sh="$ac_aux_dir/shtool install -c" 1325 break 1326 fi 1327done 1328if test -z "$ac_aux_dir"; then 1329 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1330echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1331 { (exit 1); exit 1; }; } 1332fi 1333ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1334ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1335ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1336 1337# Find a good install program. We prefer a C program (faster), 1338# so one script is as good as another. But avoid the broken or 1339# incompatible versions: 1340# SysV /etc/install, /usr/sbin/install 1341# SunOS /usr/etc/install 1342# IRIX /sbin/install 1343# AIX /bin/install 1344# AmigaOS /C/install, which installs bootblocks on floppy discs 1345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1346# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1348# OS/2's system install, which has a completely different semantic 1349# ./install, which can be erroneously created by make from ./install.sh. 1350echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1351echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1352if test -z "$INSTALL"; then 1353if test "${ac_cv_path_install+set}" = set; then 1354 echo $ECHO_N "(cached) $ECHO_C" >&6 1355else 1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1357for as_dir in $PATH 1358do 1359 IFS=$as_save_IFS 1360 test -z "$as_dir" && as_dir=. 1361 # Account for people who put trailing slashes in PATH elements. 1362case $as_dir/ in 1363 ./ | .// | /cC/* | \ 1364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1366 /usr/ucb/* ) ;; 1367 *) 1368 # OSF1 and SCO ODT 3.0 have their own names for install. 1369 # Don't use installbsd from OSF since it installs stuff as root 1370 # by default. 1371 for ac_prog in ginstall scoinst install; do 1372 for ac_exec_ext in '' $ac_executable_extensions; do 1373 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1374 if test $ac_prog = install && 1375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1376 # AIX install. It has an incompatible calling convention. 1377 : 1378 elif test $ac_prog = install && 1379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1380 # program-specific install script used by HP pwplus--don't use. 1381 : 1382 else 1383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1384 break 3 1385 fi 1386 fi 1387 done 1388 done 1389 ;; 1390esac 1391done 1392 1393 1394fi 1395 if test "${ac_cv_path_install+set}" = set; then 1396 INSTALL=$ac_cv_path_install 1397 else 1398 # As a last resort, use the slow shell script. We don't cache a 1399 # path for INSTALL within a source directory, because that will 1400 # break other packages using the cache if that directory is 1401 # removed, or if the path is relative. 1402 INSTALL=$ac_install_sh 1403 fi 1404fi 1405echo "$as_me:$LINENO: result: $INSTALL" >&5 1406echo "${ECHO_T}$INSTALL" >&6 1407 1408# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1409# It thinks the first close brace ends the variable substitution. 1410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1411 1412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1413 1414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1415 1416echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1417echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1418# Just in case 1419sleep 1 1420echo timestamp > conftest.file 1421# Do `set' in a subshell so we don't clobber the current shell's 1422# arguments. Must try -L first in case configure is actually a 1423# symlink; some systems play weird games with the mod time of symlinks 1424# (eg FreeBSD returns the mod time of the symlink's containing 1425# directory). 1426if ( 1427 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1428 if test "$*" = "X"; then 1429 # -L didn't work. 1430 set X `ls -t $srcdir/configure conftest.file` 1431 fi 1432 rm -f conftest.file 1433 if test "$*" != "X $srcdir/configure conftest.file" \ 1434 && test "$*" != "X conftest.file $srcdir/configure"; then 1435 1436 # If neither matched, then we have a broken ls. This can happen 1437 # if, for instance, CONFIG_SHELL is bash and it inherits a 1438 # broken ls alias from the environment. This has actually 1439 # happened. Such a system could not be considered "sane". 1440 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1441alias in your environment" >&5 1442echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1443alias in your environment" >&2;} 1444 { (exit 1); exit 1; }; } 1445 fi 1446 1447 test "$2" = conftest.file 1448 ) 1449then 1450 # Ok. 1451 : 1452else 1453 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1454Check your system clock" >&5 1455echo "$as_me: error: newly created file is older than distributed files! 1456Check your system clock" >&2;} 1457 { (exit 1); exit 1; }; } 1458fi 1459echo "$as_me:$LINENO: result: yes" >&5 1460echo "${ECHO_T}yes" >&6 1461test "$program_prefix" != NONE && 1462 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1463# Use a double $ so make ignores it. 1464test "$program_suffix" != NONE && 1465 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1466# Double any \ or $. echo might interpret backslashes. 1467# By default was `s,x,x', remove it if useless. 1468cat <<\_ACEOF >conftest.sed 1469s/[\\$]/&&/g;s/;s,x,x,$// 1470_ACEOF 1471program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1472rm conftest.sed 1473 1474 1475# expand $ac_aux_dir to an absolute path 1476am_aux_dir=`cd $ac_aux_dir && pwd` 1477 1478test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1479# Use eval to expand $SHELL 1480if eval "$MISSING --run true"; then 1481 am_missing_run="$MISSING --run " 1482else 1483 am_missing_run= 1484 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1485echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1486fi 1487 1488for ac_prog in gawk mawk nawk awk 1489do 1490 # Extract the first word of "$ac_prog", so it can be a program name with args. 1491set dummy $ac_prog; ac_word=$2 1492echo "$as_me:$LINENO: checking for $ac_word" >&5 1493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1494if test "${ac_cv_prog_AWK+set}" = set; then 1495 echo $ECHO_N "(cached) $ECHO_C" >&6 1496else 1497 if test -n "$AWK"; then 1498 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1499else 1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1501for as_dir in $PATH 1502do 1503 IFS=$as_save_IFS 1504 test -z "$as_dir" && as_dir=. 1505 for ac_exec_ext in '' $ac_executable_extensions; do 1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1507 ac_cv_prog_AWK="$ac_prog" 1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1509 break 2 1510 fi 1511done 1512done 1513 1514fi 1515fi 1516AWK=$ac_cv_prog_AWK 1517if test -n "$AWK"; then 1518 echo "$as_me:$LINENO: result: $AWK" >&5 1519echo "${ECHO_T}$AWK" >&6 1520else 1521 echo "$as_me:$LINENO: result: no" >&5 1522echo "${ECHO_T}no" >&6 1523fi 1524 1525 test -n "$AWK" && break 1526done 1527 1528echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1529echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1530set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1531if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1532 echo $ECHO_N "(cached) $ECHO_C" >&6 1533else 1534 cat >conftest.make <<\_ACEOF 1535all: 1536 @echo 'ac_maketemp="$(MAKE)"' 1537_ACEOF 1538# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1539eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1540if test -n "$ac_maketemp"; then 1541 eval ac_cv_prog_make_${ac_make}_set=yes 1542else 1543 eval ac_cv_prog_make_${ac_make}_set=no 1544fi 1545rm -f conftest.make 1546fi 1547if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1548 echo "$as_me:$LINENO: result: yes" >&5 1549echo "${ECHO_T}yes" >&6 1550 SET_MAKE= 1551else 1552 echo "$as_me:$LINENO: result: no" >&5 1553echo "${ECHO_T}no" >&6 1554 SET_MAKE="MAKE=${MAKE-make}" 1555fi 1556 1557 # test to see if srcdir already configured 1558if test "`cd $srcdir && pwd`" != "`pwd`" && 1559 test -f $srcdir/config.status; then 1560 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1561echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1562 { (exit 1); exit 1; }; } 1563fi 1564 1565# Define the identity of the package. 1566 PACKAGE=vqcc-gtk 1567 VERSION=0.5 1568 1569 1570cat >>confdefs.h <<_ACEOF 1571#define PACKAGE "$PACKAGE" 1572_ACEOF 1573 1574 1575cat >>confdefs.h <<_ACEOF 1576#define VERSION "$VERSION" 1577_ACEOF 1578 1579# Some tools Automake needs. 1580 1581ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1582 1583 1584AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1585 1586 1587AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1588 1589 1590AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1591 1592 1593MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1594 1595 1596AMTAR=${AMTAR-"${am_missing_run}tar"} 1597 1598install_sh=${install_sh-"$am_aux_dir/install-sh"} 1599 1600# Installed binaries are usually stripped using `strip' when the user 1601# run `make install-strip'. However `strip' might not be the right 1602# tool to use in cross-compilation environments, therefore Automake 1603# will honor the `STRIP' environment variable to overrule this program. 1604if test "$cross_compiling" != no; then 1605 if test -n "$ac_tool_prefix"; then 1606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1607set dummy ${ac_tool_prefix}strip; ac_word=$2 1608echo "$as_me:$LINENO: checking for $ac_word" >&5 1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1610if test "${ac_cv_prog_STRIP+set}" = set; then 1611 echo $ECHO_N "(cached) $ECHO_C" >&6 1612else 1613 if test -n "$STRIP"; then 1614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1615else 1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1617for as_dir in $PATH 1618do 1619 IFS=$as_save_IFS 1620 test -z "$as_dir" && as_dir=. 1621 for ac_exec_ext in '' $ac_executable_extensions; do 1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1623 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1625 break 2 1626 fi 1627done 1628done 1629 1630fi 1631fi 1632STRIP=$ac_cv_prog_STRIP 1633if test -n "$STRIP"; then 1634 echo "$as_me:$LINENO: result: $STRIP" >&5 1635echo "${ECHO_T}$STRIP" >&6 1636else 1637 echo "$as_me:$LINENO: result: no" >&5 1638echo "${ECHO_T}no" >&6 1639fi 1640 1641fi 1642if test -z "$ac_cv_prog_STRIP"; then 1643 ac_ct_STRIP=$STRIP 1644 # Extract the first word of "strip", so it can be a program name with args. 1645set dummy strip; ac_word=$2 1646echo "$as_me:$LINENO: checking for $ac_word" >&5 1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1648if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1649 echo $ECHO_N "(cached) $ECHO_C" >&6 1650else 1651 if test -n "$ac_ct_STRIP"; then 1652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1653else 1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1655for as_dir in $PATH 1656do 1657 IFS=$as_save_IFS 1658 test -z "$as_dir" && as_dir=. 1659 for ac_exec_ext in '' $ac_executable_extensions; do 1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1661 ac_cv_prog_ac_ct_STRIP="strip" 1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1663 break 2 1664 fi 1665done 1666done 1667 1668 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1669fi 1670fi 1671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1672if test -n "$ac_ct_STRIP"; then 1673 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1674echo "${ECHO_T}$ac_ct_STRIP" >&6 1675else 1676 echo "$as_me:$LINENO: result: no" >&5 1677echo "${ECHO_T}no" >&6 1678fi 1679 1680 STRIP=$ac_ct_STRIP 1681else 1682 STRIP="$ac_cv_prog_STRIP" 1683fi 1684 1685fi 1686INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1687 1688# We need awk for the "check" target. The system "awk" is bad on 1689# some platforms. 1690 1691 1692 1693# Add the stamp file to the list of files AC keeps track of, 1694# along with our hook. 1695 ac_config_headers="$ac_config_headers config.h" 1696 1697 1698 1699 1700 1701CPPFLAGS="$CPPFLAGS -I/usr/local/include" 1702LDFLAGS="$LDFLAGS -L/usr/local/lib" 1703 1704rm -f .deps 2>/dev/null 1705mkdir .deps 2>/dev/null 1706if test -d .deps; then 1707 DEPDIR=.deps 1708else 1709 # MS-DOS does not allow filenames that begin with a dot. 1710 DEPDIR=_deps 1711fi 1712rmdir .deps 2>/dev/null 1713 1714 1715 ac_config_commands="$ac_config_commands depfiles" 1716 1717 1718am_make=${MAKE-make} 1719cat > confinc << 'END' 1720doit: 1721 @echo done 1722END 1723# If we don't find an include directive, just comment out the code. 1724echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 1725echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 1726am__include="#" 1727am__quote= 1728_am_result=none 1729# First try GNU make style include. 1730echo "include confinc" > confmf 1731# We grep out `Entering directory' and `Leaving directory' 1732# messages which can occur if `w' ends up in MAKEFLAGS. 1733# In particular we don't look at `^make:' because GNU make might 1734# be invoked under some other name (usually "gmake"), in which 1735# case it prints its new name instead of `make'. 1736if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 1737 am__include=include 1738 am__quote= 1739 _am_result=GNU 1740fi 1741# Now try BSD make style include. 1742if test "$am__include" = "#"; then 1743 echo '.include "confinc"' > confmf 1744 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1745 am__include=.include 1746 am__quote="\"" 1747 _am_result=BSD 1748 fi 1749fi 1750 1751 1752echo "$as_me:$LINENO: result: $_am_result" >&5 1753echo "${ECHO_T}$_am_result" >&6 1754rm -f confinc confmf 1755 1756# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1757if test "${enable_dependency_tracking+set}" = set; then 1758 enableval="$enable_dependency_tracking" 1759 1760fi; 1761if test "x$enable_dependency_tracking" != xno; then 1762 am_depcomp="$ac_aux_dir/depcomp" 1763 AMDEPBACKSLASH='\' 1764fi 1765 1766 1767if test "x$enable_dependency_tracking" != xno; then 1768 AMDEP_TRUE= 1769 AMDEP_FALSE='#' 1770else 1771 AMDEP_TRUE='#' 1772 AMDEP_FALSE= 1773fi 1774 1775 1776 1777ac_ext=c 1778ac_cpp='$CPP $CPPFLAGS' 1779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1781ac_compiler_gnu=$ac_cv_c_compiler_gnu 1782if test -n "$ac_tool_prefix"; then 1783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1784set dummy ${ac_tool_prefix}gcc; ac_word=$2 1785echo "$as_me:$LINENO: checking for $ac_word" >&5 1786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1787if test "${ac_cv_prog_CC+set}" = set; then 1788 echo $ECHO_N "(cached) $ECHO_C" >&6 1789else 1790 if test -n "$CC"; then 1791 ac_cv_prog_CC="$CC" # Let the user override the test. 1792else 1793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1794for as_dir in $PATH 1795do 1796 IFS=$as_save_IFS 1797 test -z "$as_dir" && as_dir=. 1798 for ac_exec_ext in '' $ac_executable_extensions; do 1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1800 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1802 break 2 1803 fi 1804done 1805done 1806 1807fi 1808fi 1809CC=$ac_cv_prog_CC 1810if test -n "$CC"; then 1811 echo "$as_me:$LINENO: result: $CC" >&5 1812echo "${ECHO_T}$CC" >&6 1813else 1814 echo "$as_me:$LINENO: result: no" >&5 1815echo "${ECHO_T}no" >&6 1816fi 1817 1818fi 1819if test -z "$ac_cv_prog_CC"; then 1820 ac_ct_CC=$CC 1821 # Extract the first word of "gcc", so it can be a program name with args. 1822set dummy gcc; ac_word=$2 1823echo "$as_me:$LINENO: checking for $ac_word" >&5 1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1826 echo $ECHO_N "(cached) $ECHO_C" >&6 1827else 1828 if test -n "$ac_ct_CC"; then 1829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1830else 1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1832for as_dir in $PATH 1833do 1834 IFS=$as_save_IFS 1835 test -z "$as_dir" && as_dir=. 1836 for ac_exec_ext in '' $ac_executable_extensions; do 1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1838 ac_cv_prog_ac_ct_CC="gcc" 1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1840 break 2 1841 fi 1842done 1843done 1844 1845fi 1846fi 1847ac_ct_CC=$ac_cv_prog_ac_ct_CC 1848if test -n "$ac_ct_CC"; then 1849 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1850echo "${ECHO_T}$ac_ct_CC" >&6 1851else 1852 echo "$as_me:$LINENO: result: no" >&5 1853echo "${ECHO_T}no" >&6 1854fi 1855 1856 CC=$ac_ct_CC 1857else 1858 CC="$ac_cv_prog_CC" 1859fi 1860 1861if test -z "$CC"; then 1862 if test -n "$ac_tool_prefix"; then 1863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1864set dummy ${ac_tool_prefix}cc; ac_word=$2 1865echo "$as_me:$LINENO: checking for $ac_word" >&5 1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1867if test "${ac_cv_prog_CC+set}" = set; then 1868 echo $ECHO_N "(cached) $ECHO_C" >&6 1869else 1870 if test -n "$CC"; then 1871 ac_cv_prog_CC="$CC" # Let the user override the test. 1872else 1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1874for as_dir in $PATH 1875do 1876 IFS=$as_save_IFS 1877 test -z "$as_dir" && as_dir=. 1878 for ac_exec_ext in '' $ac_executable_extensions; do 1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1880 ac_cv_prog_CC="${ac_tool_prefix}cc" 1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1882 break 2 1883 fi 1884done 1885done 1886 1887fi 1888fi 1889CC=$ac_cv_prog_CC 1890if test -n "$CC"; then 1891 echo "$as_me:$LINENO: result: $CC" >&5 1892echo "${ECHO_T}$CC" >&6 1893else 1894 echo "$as_me:$LINENO: result: no" >&5 1895echo "${ECHO_T}no" >&6 1896fi 1897 1898fi 1899if test -z "$ac_cv_prog_CC"; then 1900 ac_ct_CC=$CC 1901 # Extract the first word of "cc", so it can be a program name with args. 1902set dummy cc; ac_word=$2 1903echo "$as_me:$LINENO: checking for $ac_word" >&5 1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1906 echo $ECHO_N "(cached) $ECHO_C" >&6 1907else 1908 if test -n "$ac_ct_CC"; then 1909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1910else 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 for ac_exec_ext in '' $ac_executable_extensions; do 1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1918 ac_cv_prog_ac_ct_CC="cc" 1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1920 break 2 1921 fi 1922done 1923done 1924 1925fi 1926fi 1927ac_ct_CC=$ac_cv_prog_ac_ct_CC 1928if test -n "$ac_ct_CC"; then 1929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1930echo "${ECHO_T}$ac_ct_CC" >&6 1931else 1932 echo "$as_me:$LINENO: result: no" >&5 1933echo "${ECHO_T}no" >&6 1934fi 1935 1936 CC=$ac_ct_CC 1937else 1938 CC="$ac_cv_prog_CC" 1939fi 1940 1941fi 1942if test -z "$CC"; then 1943 # Extract the first word of "cc", so it can be a program name with args. 1944set dummy cc; ac_word=$2 1945echo "$as_me:$LINENO: checking for $ac_word" >&5 1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1947if test "${ac_cv_prog_CC+set}" = set; then 1948 echo $ECHO_N "(cached) $ECHO_C" >&6 1949else 1950 if test -n "$CC"; then 1951 ac_cv_prog_CC="$CC" # Let the user override the test. 1952else 1953 ac_prog_rejected=no 1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955for as_dir in $PATH 1956do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 for ac_exec_ext in '' $ac_executable_extensions; do 1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1962 ac_prog_rejected=yes 1963 continue 1964 fi 1965 ac_cv_prog_CC="cc" 1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1967 break 2 1968 fi 1969done 1970done 1971 1972if test $ac_prog_rejected = yes; then 1973 # We found a bogon in the path, so make sure we never use it. 1974 set dummy $ac_cv_prog_CC 1975 shift 1976 if test $# != 0; then 1977 # We chose a different compiler from the bogus one. 1978 # However, it has the same basename, so the bogon will be chosen 1979 # first if we set CC to just the basename; use the full file name. 1980 shift 1981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1982 fi 1983fi 1984fi 1985fi 1986CC=$ac_cv_prog_CC 1987if test -n "$CC"; then 1988 echo "$as_me:$LINENO: result: $CC" >&5 1989echo "${ECHO_T}$CC" >&6 1990else 1991 echo "$as_me:$LINENO: result: no" >&5 1992echo "${ECHO_T}no" >&6 1993fi 1994 1995fi 1996if test -z "$CC"; then 1997 if test -n "$ac_tool_prefix"; then 1998 for ac_prog in cl 1999 do 2000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2001set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2002echo "$as_me:$LINENO: checking for $ac_word" >&5 2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2004if test "${ac_cv_prog_CC+set}" = set; then 2005 echo $ECHO_N "(cached) $ECHO_C" >&6 2006else 2007 if test -n "$CC"; then 2008 ac_cv_prog_CC="$CC" # Let the user override the test. 2009else 2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 for ac_exec_ext in '' $ac_executable_extensions; do 2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2019 break 2 2020 fi 2021done 2022done 2023 2024fi 2025fi 2026CC=$ac_cv_prog_CC 2027if test -n "$CC"; then 2028 echo "$as_me:$LINENO: result: $CC" >&5 2029echo "${ECHO_T}$CC" >&6 2030else 2031 echo "$as_me:$LINENO: result: no" >&5 2032echo "${ECHO_T}no" >&6 2033fi 2034 2035 test -n "$CC" && break 2036 done 2037fi 2038if test -z "$CC"; then 2039 ac_ct_CC=$CC 2040 for ac_prog in cl 2041do 2042 # Extract the first word of "$ac_prog", so it can be a program name with args. 2043set dummy $ac_prog; ac_word=$2 2044echo "$as_me:$LINENO: checking for $ac_word" >&5 2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2047 echo $ECHO_N "(cached) $ECHO_C" >&6 2048else 2049 if test -n "$ac_ct_CC"; then 2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2051else 2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2053for as_dir in $PATH 2054do 2055 IFS=$as_save_IFS 2056 test -z "$as_dir" && as_dir=. 2057 for ac_exec_ext in '' $ac_executable_extensions; do 2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2059 ac_cv_prog_ac_ct_CC="$ac_prog" 2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2061 break 2 2062 fi 2063done 2064done 2065 2066fi 2067fi 2068ac_ct_CC=$ac_cv_prog_ac_ct_CC 2069if test -n "$ac_ct_CC"; then 2070 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2071echo "${ECHO_T}$ac_ct_CC" >&6 2072else 2073 echo "$as_me:$LINENO: result: no" >&5 2074echo "${ECHO_T}no" >&6 2075fi 2076 2077 test -n "$ac_ct_CC" && break 2078done 2079 2080 CC=$ac_ct_CC 2081fi 2082 2083fi 2084 2085 2086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2087See \`config.log' for more details." >&5 2088echo "$as_me: error: no acceptable C compiler found in \$PATH 2089See \`config.log' for more details." >&2;} 2090 { (exit 1); exit 1; }; } 2091 2092# Provide some information about the compiler. 2093echo "$as_me:$LINENO:" \ 2094 "checking for C compiler version" >&5 2095ac_compiler=`set X $ac_compile; echo $2` 2096{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2097 (eval $ac_compiler --version </dev/null >&5) 2>&5 2098 ac_status=$? 2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2100 (exit $ac_status); } 2101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2102 (eval $ac_compiler -v </dev/null >&5) 2>&5 2103 ac_status=$? 2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2105 (exit $ac_status); } 2106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2107 (eval $ac_compiler -V </dev/null >&5) 2>&5 2108 ac_status=$? 2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2110 (exit $ac_status); } 2111 2112cat >conftest.$ac_ext <<_ACEOF 2113/* confdefs.h. */ 2114_ACEOF 2115cat confdefs.h >>conftest.$ac_ext 2116cat >>conftest.$ac_ext <<_ACEOF 2117/* end confdefs.h. */ 2118 2119int 2120main () 2121{ 2122 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127ac_clean_files_save=$ac_clean_files 2128ac_clean_files="$ac_clean_files a.out a.exe b.out" 2129# Try to create an executable without -o first, disregard a.out. 2130# It will help us diagnose broken compilers, and finding out an intuition 2131# of exeext. 2132echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2135if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2136 (eval $ac_link_default) 2>&5 2137 ac_status=$? 2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2139 (exit $ac_status); }; then 2140 # Find the output, starting from the most likely. This scheme is 2141# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2142# resort. 2143 2144# Be careful to initialize this variable, since it used to be cached. 2145# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2146ac_cv_exeext= 2147# b.out is created by i960 compilers. 2148for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2149do 2150 test -f "$ac_file" || continue 2151 case $ac_file in 2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2153 ;; 2154 conftest.$ac_ext ) 2155 # This is the source file. 2156 ;; 2157 [ab].out ) 2158 # We found the default executable, but exeext='' is most 2159 # certainly right. 2160 break;; 2161 *.* ) 2162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2163 # FIXME: I believe we export ac_cv_exeext for Libtool, 2164 # but it would be cool to find out if it's true. Does anybody 2165 # maintain Libtool? --akim. 2166 export ac_cv_exeext 2167 break;; 2168 * ) 2169 break;; 2170 esac 2171done 2172else 2173 echo "$as_me: failed program was:" >&5 2174sed 's/^/| /' conftest.$ac_ext >&5 2175 2176{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2177See \`config.log' for more details." >&5 2178echo "$as_me: error: C compiler cannot create executables 2179See \`config.log' for more details." >&2;} 2180 { (exit 77); exit 77; }; } 2181fi 2182 2183ac_exeext=$ac_cv_exeext 2184echo "$as_me:$LINENO: result: $ac_file" >&5 2185echo "${ECHO_T}$ac_file" >&6 2186 2187# Check the compiler produces executables we can run. If not, either 2188# the compiler is broken, or we cross compile. 2189echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2190echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2191# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2192# If not cross compiling, check that we can run a simple program. 2193if test "$cross_compiling" != yes; then 2194 if { ac_try='./$ac_file' 2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2196 (eval $ac_try) 2>&5 2197 ac_status=$? 2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2199 (exit $ac_status); }; }; then 2200 cross_compiling=no 2201 else 2202 if test "$cross_compiling" = maybe; then 2203 cross_compiling=yes 2204 else 2205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2206If you meant to cross compile, use \`--host'. 2207See \`config.log' for more details." >&5 2208echo "$as_me: error: cannot run C compiled programs. 2209If you meant to cross compile, use \`--host'. 2210See \`config.log' for more details." >&2;} 2211 { (exit 1); exit 1; }; } 2212 fi 2213 fi 2214fi 2215echo "$as_me:$LINENO: result: yes" >&5 2216echo "${ECHO_T}yes" >&6 2217 2218rm -f a.out a.exe conftest$ac_cv_exeext b.out 2219ac_clean_files=$ac_clean_files_save 2220# Check the compiler produces executables we can run. If not, either 2221# the compiler is broken, or we cross compile. 2222echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2223echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2224echo "$as_me:$LINENO: result: $cross_compiling" >&5 2225echo "${ECHO_T}$cross_compiling" >&6 2226 2227echo "$as_me:$LINENO: checking for suffix of executables" >&5 2228echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2230 (eval $ac_link) 2>&5 2231 ac_status=$? 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); }; then 2234 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2235# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2236# work properly (i.e., refer to `conftest.exe'), while it won't with 2237# `rm'. 2238for ac_file in conftest.exe conftest conftest.*; do 2239 test -f "$ac_file" || continue 2240 case $ac_file in 2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2243 export ac_cv_exeext 2244 break;; 2245 * ) break;; 2246 esac 2247done 2248else 2249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2250See \`config.log' for more details." >&5 2251echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2252See \`config.log' for more details." >&2;} 2253 { (exit 1); exit 1; }; } 2254fi 2255 2256rm -f conftest$ac_cv_exeext 2257echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2258echo "${ECHO_T}$ac_cv_exeext" >&6 2259 2260rm -f conftest.$ac_ext 2261EXEEXT=$ac_cv_exeext 2262ac_exeext=$EXEEXT 2263echo "$as_me:$LINENO: checking for suffix of object files" >&5 2264echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2265if test "${ac_cv_objext+set}" = set; then 2266 echo $ECHO_N "(cached) $ECHO_C" >&6 2267else 2268 cat >conftest.$ac_ext <<_ACEOF 2269/* confdefs.h. */ 2270_ACEOF 2271cat confdefs.h >>conftest.$ac_ext 2272cat >>conftest.$ac_ext <<_ACEOF 2273/* end confdefs.h. */ 2274 2275int 2276main () 2277{ 2278 2279 ; 2280 return 0; 2281} 2282_ACEOF 2283rm -f conftest.o conftest.obj 2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2285 (eval $ac_compile) 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); }; then 2289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2290 case $ac_file in 2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2293 break;; 2294 esac 2295done 2296else 2297 echo "$as_me: failed program was:" >&5 2298sed 's/^/| /' conftest.$ac_ext >&5 2299 2300{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2301See \`config.log' for more details." >&5 2302echo "$as_me: error: cannot compute suffix of object files: cannot compile 2303See \`config.log' for more details." >&2;} 2304 { (exit 1); exit 1; }; } 2305fi 2306 2307rm -f conftest.$ac_cv_objext conftest.$ac_ext 2308fi 2309echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2310echo "${ECHO_T}$ac_cv_objext" >&6 2311OBJEXT=$ac_cv_objext 2312ac_objext=$OBJEXT 2313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2315if test "${ac_cv_c_compiler_gnu+set}" = set; then 2316 echo $ECHO_N "(cached) $ECHO_C" >&6 2317else 2318 cat >conftest.$ac_ext <<_ACEOF 2319/* confdefs.h. */ 2320_ACEOF 2321cat confdefs.h >>conftest.$ac_ext 2322cat >>conftest.$ac_ext <<_ACEOF 2323/* end confdefs.h. */ 2324 2325int 2326main () 2327{ 2328#ifndef __GNUC__ 2329 choke me 2330#endif 2331 2332 ; 2333 return 0; 2334} 2335_ACEOF 2336rm -f conftest.$ac_objext 2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>conftest.er1 2339 ac_status=$? 2340 grep -v '^ *+' conftest.er1 >conftest.err 2341 rm -f conftest.er1 2342 cat conftest.err >&5 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); } && 2345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2347 (eval $ac_try) 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); }; } && 2351 { ac_try='test -s conftest.$ac_objext' 2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2353 (eval $ac_try) 2>&5 2354 ac_status=$? 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); }; }; then 2357 ac_compiler_gnu=yes 2358else 2359 echo "$as_me: failed program was:" >&5 2360sed 's/^/| /' conftest.$ac_ext >&5 2361 2362ac_compiler_gnu=no 2363fi 2364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2365ac_cv_c_compiler_gnu=$ac_compiler_gnu 2366 2367fi 2368echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2369echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2370GCC=`test $ac_compiler_gnu = yes && echo yes` 2371ac_test_CFLAGS=${CFLAGS+set} 2372ac_save_CFLAGS=$CFLAGS 2373CFLAGS="-g" 2374echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2375echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2376if test "${ac_cv_prog_cc_g+set}" = set; then 2377 echo $ECHO_N "(cached) $ECHO_C" >&6 2378else 2379 cat >conftest.$ac_ext <<_ACEOF 2380/* confdefs.h. */ 2381_ACEOF 2382cat confdefs.h >>conftest.$ac_ext 2383cat >>conftest.$ac_ext <<_ACEOF 2384/* end confdefs.h. */ 2385 2386int 2387main () 2388{ 2389 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394rm -f conftest.$ac_objext 2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2396 (eval $ac_compile) 2>conftest.er1 2397 ac_status=$? 2398 grep -v '^ *+' conftest.er1 >conftest.err 2399 rm -f conftest.er1 2400 cat conftest.err >&5 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } && 2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; } && 2409 { ac_try='test -s conftest.$ac_objext' 2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2411 (eval $ac_try) 2>&5 2412 ac_status=$? 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); }; }; then 2415 ac_cv_prog_cc_g=yes 2416else 2417 echo "$as_me: failed program was:" >&5 2418sed 's/^/| /' conftest.$ac_ext >&5 2419 2420ac_cv_prog_cc_g=no 2421fi 2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2423fi 2424echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2425echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2426if test "$ac_test_CFLAGS" = set; then 2427 CFLAGS=$ac_save_CFLAGS 2428elif test $ac_cv_prog_cc_g = yes; then 2429 if test "$GCC" = yes; then 2430 CFLAGS="-g -O2" 2431 else 2432 CFLAGS="-g" 2433 fi 2434else 2435 if test "$GCC" = yes; then 2436 CFLAGS="-O2" 2437 else 2438 CFLAGS= 2439 fi 2440fi 2441echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2442echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2443if test "${ac_cv_prog_cc_stdc+set}" = set; then 2444 echo $ECHO_N "(cached) $ECHO_C" >&6 2445else 2446 ac_cv_prog_cc_stdc=no 2447ac_save_CC=$CC 2448cat >conftest.$ac_ext <<_ACEOF 2449/* confdefs.h. */ 2450_ACEOF 2451cat confdefs.h >>conftest.$ac_ext 2452cat >>conftest.$ac_ext <<_ACEOF 2453/* end confdefs.h. */ 2454#include <stdarg.h> 2455#include <stdio.h> 2456#include <sys/types.h> 2457#include <sys/stat.h> 2458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2459struct buf { int x; }; 2460FILE * (*rcsopen) (struct buf *, struct stat *, int); 2461static char *e (p, i) 2462 char **p; 2463 int i; 2464{ 2465 return p[i]; 2466} 2467static char *f (char * (*g) (char **, int), char **p, ...) 2468{ 2469 char *s; 2470 va_list v; 2471 va_start (v,p); 2472 s = g (p, va_arg (v,int)); 2473 va_end (v); 2474 return s; 2475} 2476 2477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2478 function prototypes and stuff, but not '\xHH' hex character constants. 2479 These don't provoke an error unfortunately, instead are silently treated 2480 as 'x'. The following induces an error, until -std1 is added to get 2481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2482 array size at least. It's necessary to write '\x00'==0 to get something 2483 that's true only with -std1. */ 2484int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2485 2486int test (int i, double x); 2487struct s1 {int (*f) (int a);}; 2488struct s2 {int (*f) (double a);}; 2489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2490int argc; 2491char **argv; 2492int 2493main () 2494{ 2495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2496 ; 2497 return 0; 2498} 2499_ACEOF 2500# Don't try gcc -ansi; that turns off useful extensions and 2501# breaks some systems' header files. 2502# AIX -qlanglvl=ansi 2503# Ultrix and OSF/1 -std1 2504# HP-UX 10.20 and later -Ae 2505# HP-UX older versions -Aa -D_HPUX_SOURCE 2506# SVR4 -Xc -D__EXTENSIONS__ 2507for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2508do 2509 CC="$ac_save_CC $ac_arg" 2510 rm -f conftest.$ac_objext 2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2512 (eval $ac_compile) 2>conftest.er1 2513 ac_status=$? 2514 grep -v '^ *+' conftest.er1 >conftest.err 2515 rm -f conftest.er1 2516 cat conftest.err >&5 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } && 2519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2521 (eval $ac_try) 2>&5 2522 ac_status=$? 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); }; } && 2525 { ac_try='test -s conftest.$ac_objext' 2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2527 (eval $ac_try) 2>&5 2528 ac_status=$? 2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2530 (exit $ac_status); }; }; then 2531 ac_cv_prog_cc_stdc=$ac_arg 2532break 2533else 2534 echo "$as_me: failed program was:" >&5 2535sed 's/^/| /' conftest.$ac_ext >&5 2536 2537fi 2538rm -f conftest.err conftest.$ac_objext 2539done 2540rm -f conftest.$ac_ext conftest.$ac_objext 2541CC=$ac_save_CC 2542 2543fi 2544 2545case "x$ac_cv_prog_cc_stdc" in 2546 x|xno) 2547 echo "$as_me:$LINENO: result: none needed" >&5 2548echo "${ECHO_T}none needed" >&6 ;; 2549 *) 2550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2551echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2552 CC="$CC $ac_cv_prog_cc_stdc" ;; 2553esac 2554 2555# Some people use a C++ compiler to compile C. Since we use `exit', 2556# in C++ we need to declare it. In case someone uses the same compiler 2557# for both compiling C and C++ we need to have the C++ compiler decide 2558# the declaration of exit, since it's the most demanding environment. 2559cat >conftest.$ac_ext <<_ACEOF 2560#ifndef __cplusplus 2561 choke me 2562#endif 2563_ACEOF 2564rm -f conftest.$ac_objext 2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2566 (eval $ac_compile) 2>conftest.er1 2567 ac_status=$? 2568 grep -v '^ *+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } && 2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2575 (eval $ac_try) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); }; } && 2579 { ac_try='test -s conftest.$ac_objext' 2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 (eval $ac_try) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; }; then 2585 for ac_declaration in \ 2586 '' \ 2587 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2588 'extern "C" void std::exit (int); using std::exit;' \ 2589 'extern "C" void exit (int) throw ();' \ 2590 'extern "C" void exit (int);' \ 2591 'void exit (int);' 2592do 2593 cat >conftest.$ac_ext <<_ACEOF 2594/* confdefs.h. */ 2595_ACEOF 2596cat confdefs.h >>conftest.$ac_ext 2597cat >>conftest.$ac_ext <<_ACEOF 2598/* end confdefs.h. */ 2599$ac_declaration 2600#include <stdlib.h> 2601int 2602main () 2603{ 2604exit (42); 2605 ; 2606 return 0; 2607} 2608_ACEOF 2609rm -f conftest.$ac_objext 2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2611 (eval $ac_compile) 2>conftest.er1 2612 ac_status=$? 2613 grep -v '^ *+' conftest.er1 >conftest.err 2614 rm -f conftest.er1 2615 cat conftest.err >&5 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); } && 2618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2620 (eval $ac_try) 2>&5 2621 ac_status=$? 2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2623 (exit $ac_status); }; } && 2624 { ac_try='test -s conftest.$ac_objext' 2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2626 (eval $ac_try) 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; }; then 2630 : 2631else 2632 echo "$as_me: failed program was:" >&5 2633sed 's/^/| /' conftest.$ac_ext >&5 2634 2635continue 2636fi 2637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2638 cat >conftest.$ac_ext <<_ACEOF 2639/* confdefs.h. */ 2640_ACEOF 2641cat confdefs.h >>conftest.$ac_ext 2642cat >>conftest.$ac_ext <<_ACEOF 2643/* end confdefs.h. */ 2644$ac_declaration 2645int 2646main () 2647{ 2648exit (42); 2649 ; 2650 return 0; 2651} 2652_ACEOF 2653rm -f conftest.$ac_objext 2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2655 (eval $ac_compile) 2>conftest.er1 2656 ac_status=$? 2657 grep -v '^ *+' conftest.er1 >conftest.err 2658 rm -f conftest.er1 2659 cat conftest.err >&5 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2661 (exit $ac_status); } && 2662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2664 (eval $ac_try) 2>&5 2665 ac_status=$? 2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2667 (exit $ac_status); }; } && 2668 { ac_try='test -s conftest.$ac_objext' 2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2670 (eval $ac_try) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; }; then 2674 break 2675else 2676 echo "$as_me: failed program was:" >&5 2677sed 's/^/| /' conftest.$ac_ext >&5 2678 2679fi 2680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2681done 2682rm -f conftest* 2683if test -n "$ac_declaration"; then 2684 echo '#ifdef __cplusplus' >>confdefs.h 2685 echo $ac_declaration >>confdefs.h 2686 echo '#endif' >>confdefs.h 2687fi 2688 2689else 2690 echo "$as_me: failed program was:" >&5 2691sed 's/^/| /' conftest.$ac_ext >&5 2692 2693fi 2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2695ac_ext=c 2696ac_cpp='$CPP $CPPFLAGS' 2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2699ac_compiler_gnu=$ac_cv_c_compiler_gnu 2700 2701depcc="$CC" am_compiler_list= 2702 2703echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2704echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2705if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2706 echo $ECHO_N "(cached) $ECHO_C" >&6 2707else 2708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2709 # We make a subdir and do the tests there. Otherwise we can end up 2710 # making bogus files that we don't know about and never remove. For 2711 # instance it was reported that on HP-UX the gcc test will end up 2712 # making a dummy file named `D' -- because `-MD' means `put the output 2713 # in D'. 2714 mkdir conftest.dir 2715 # Copy depcomp to subdir because otherwise we won't find it if we're 2716 # using a relative directory. 2717 cp "$am_depcomp" conftest.dir 2718 cd conftest.dir 2719 2720 am_cv_CC_dependencies_compiler_type=none 2721 if test "$am_compiler_list" = ""; then 2722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2723 fi 2724 for depmode in $am_compiler_list; do 2725 # We need to recreate these files for each test, as the compiler may 2726 # overwrite some of them when testing with obscure command lines. 2727 # This happens at least with the AIX C compiler. 2728 echo '#include "conftest.h"' > conftest.c 2729 echo 'int i;' > conftest.h 2730 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2731 2732 case $depmode in 2733 nosideeffect) 2734 # after this tag, mechanisms are not by side-effect, so they'll 2735 # only be used when explicitly requested 2736 if test "x$enable_dependency_tracking" = xyes; then 2737 continue 2738 else 2739 break 2740 fi 2741 ;; 2742 none) break ;; 2743 esac 2744 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2745 # mode. It turns out that the SunPro C++ compiler does not properly 2746 # handle `-M -o', and we need to detect this. 2747 if depmode=$depmode \ 2748 source=conftest.c object=conftest.o \ 2749 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2750 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2751 grep conftest.h conftest.Po > /dev/null 2>&1 && 2752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2753 am_cv_CC_dependencies_compiler_type=$depmode 2754 break 2755 fi 2756 done 2757 2758 cd .. 2759 rm -rf conftest.dir 2760else 2761 am_cv_CC_dependencies_compiler_type=none 2762fi 2763 2764fi 2765echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2766echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2767CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2768 2769 2770 2771ac_ext=c 2772ac_cpp='$CPP $CPPFLAGS' 2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2775ac_compiler_gnu=$ac_cv_c_compiler_gnu 2776echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2777echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2778# On Suns, sometimes $CPP names a directory. 2779if test -n "$CPP" && test -d "$CPP"; then 2780 CPP= 2781fi 2782if test -z "$CPP"; then 2783 if test "${ac_cv_prog_CPP+set}" = set; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785else 2786 # Double quotes because CPP needs to be expanded 2787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2788 do 2789 ac_preproc_ok=false 2790for ac_c_preproc_warn_flag in '' yes 2791do 2792 # Use a header file that comes with gcc, so configuring glibc 2793 # with a fresh cross-compiler works. 2794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2795 # <limits.h> exists even on freestanding compilers. 2796 # On the NeXT, cc -E runs the code through the compiler's parser, 2797 # not just through cpp. "Syntax error" is here to catch this case. 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804#ifdef __STDC__ 2805# include <limits.h> 2806#else 2807# include <assert.h> 2808#endif 2809 Syntax error 2810_ACEOF 2811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2813 ac_status=$? 2814 grep -v '^ *+' conftest.er1 >conftest.err 2815 rm -f conftest.er1 2816 cat conftest.err >&5 2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2818 (exit $ac_status); } >/dev/null; then 2819 if test -s conftest.err; then 2820 ac_cpp_err=$ac_c_preproc_warn_flag 2821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2822 else 2823 ac_cpp_err= 2824 fi 2825else 2826 ac_cpp_err=yes 2827fi 2828if test -z "$ac_cpp_err"; then 2829 : 2830else 2831 echo "$as_me: failed program was:" >&5 2832sed 's/^/| /' conftest.$ac_ext >&5 2833 2834 # Broken: fails on valid input. 2835continue 2836fi 2837rm -f conftest.err conftest.$ac_ext 2838 2839 # OK, works on sane cases. Now check whether non-existent headers 2840 # can be detected and how. 2841 cat >conftest.$ac_ext <<_ACEOF 2842/* confdefs.h. */ 2843_ACEOF 2844cat confdefs.h >>conftest.$ac_ext 2845cat >>conftest.$ac_ext <<_ACEOF 2846/* end confdefs.h. */ 2847#include <ac_nonexistent.h> 2848_ACEOF 2849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2851 ac_status=$? 2852 grep -v '^ *+' conftest.er1 >conftest.err 2853 rm -f conftest.er1 2854 cat conftest.err >&5 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); } >/dev/null; then 2857 if test -s conftest.err; then 2858 ac_cpp_err=$ac_c_preproc_warn_flag 2859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2860 else 2861 ac_cpp_err= 2862 fi 2863else 2864 ac_cpp_err=yes 2865fi 2866if test -z "$ac_cpp_err"; then 2867 # Broken: success on invalid input. 2868continue 2869else 2870 echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873 # Passes both tests. 2874ac_preproc_ok=: 2875break 2876fi 2877rm -f conftest.err conftest.$ac_ext 2878 2879done 2880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2881rm -f conftest.err conftest.$ac_ext 2882if $ac_preproc_ok; then 2883 break 2884fi 2885 2886 done 2887 ac_cv_prog_CPP=$CPP 2888 2889fi 2890 CPP=$ac_cv_prog_CPP 2891else 2892 ac_cv_prog_CPP=$CPP 2893fi 2894echo "$as_me:$LINENO: result: $CPP" >&5 2895echo "${ECHO_T}$CPP" >&6 2896ac_preproc_ok=false 2897for ac_c_preproc_warn_flag in '' yes 2898do 2899 # Use a header file that comes with gcc, so configuring glibc 2900 # with a fresh cross-compiler works. 2901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2902 # <limits.h> exists even on freestanding compilers. 2903 # On the NeXT, cc -E runs the code through the compiler's parser, 2904 # not just through cpp. "Syntax error" is here to catch this case. 2905 cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911#ifdef __STDC__ 2912# include <limits.h> 2913#else 2914# include <assert.h> 2915#endif 2916 Syntax error 2917_ACEOF 2918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2920 ac_status=$? 2921 grep -v '^ *+' conftest.er1 >conftest.err 2922 rm -f conftest.er1 2923 cat conftest.err >&5 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } >/dev/null; then 2926 if test -s conftest.err; then 2927 ac_cpp_err=$ac_c_preproc_warn_flag 2928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2929 else 2930 ac_cpp_err= 2931 fi 2932else 2933 ac_cpp_err=yes 2934fi 2935if test -z "$ac_cpp_err"; then 2936 : 2937else 2938 echo "$as_me: failed program was:" >&5 2939sed 's/^/| /' conftest.$ac_ext >&5 2940 2941 # Broken: fails on valid input. 2942continue 2943fi 2944rm -f conftest.err conftest.$ac_ext 2945 2946 # OK, works on sane cases. Now check whether non-existent headers 2947 # can be detected and how. 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954#include <ac_nonexistent.h> 2955_ACEOF 2956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } >/dev/null; then 2964 if test -s conftest.err; then 2965 ac_cpp_err=$ac_c_preproc_warn_flag 2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2967 else 2968 ac_cpp_err= 2969 fi 2970else 2971 ac_cpp_err=yes 2972fi 2973if test -z "$ac_cpp_err"; then 2974 # Broken: success on invalid input. 2975continue 2976else 2977 echo "$as_me: failed program was:" >&5 2978sed 's/^/| /' conftest.$ac_ext >&5 2979 2980 # Passes both tests. 2981ac_preproc_ok=: 2982break 2983fi 2984rm -f conftest.err conftest.$ac_ext 2985 2986done 2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2988rm -f conftest.err conftest.$ac_ext 2989if $ac_preproc_ok; then 2990 : 2991else 2992 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2993See \`config.log' for more details." >&5 2994echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2995See \`config.log' for more details." >&2;} 2996 { (exit 1); exit 1; }; } 2997fi 2998 2999ac_ext=c 3000ac_cpp='$CPP $CPPFLAGS' 3001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3003ac_compiler_gnu=$ac_cv_c_compiler_gnu 3004 3005 3006echo "$as_me:$LINENO: checking for egrep" >&5 3007echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3008if test "${ac_cv_prog_egrep+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3012 then ac_cv_prog_egrep='grep -E' 3013 else ac_cv_prog_egrep='egrep' 3014 fi 3015fi 3016echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3017echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3018 EGREP=$ac_cv_prog_egrep 3019 3020 3021echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3022echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3023if test "${ac_cv_header_stdc+set}" = set; then 3024 echo $ECHO_N "(cached) $ECHO_C" >&6 3025else 3026 cat >conftest.$ac_ext <<_ACEOF 3027/* confdefs.h. */ 3028_ACEOF 3029cat confdefs.h >>conftest.$ac_ext 3030cat >>conftest.$ac_ext <<_ACEOF 3031/* end confdefs.h. */ 3032#include <stdlib.h> 3033#include <stdarg.h> 3034#include <string.h> 3035#include <float.h> 3036 3037int 3038main () 3039{ 3040 3041 ; 3042 return 0; 3043} 3044_ACEOF 3045rm -f conftest.$ac_objext 3046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3047 (eval $ac_compile) 2>conftest.er1 3048 ac_status=$? 3049 grep -v '^ *+' conftest.er1 >conftest.err 3050 rm -f conftest.er1 3051 cat conftest.err >&5 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); } && 3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3056 (eval $ac_try) 2>&5 3057 ac_status=$? 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); }; } && 3060 { ac_try='test -s conftest.$ac_objext' 3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3062 (eval $ac_try) 2>&5 3063 ac_status=$? 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; }; then 3066 ac_cv_header_stdc=yes 3067else 3068 echo "$as_me: failed program was:" >&5 3069sed 's/^/| /' conftest.$ac_ext >&5 3070 3071ac_cv_header_stdc=no 3072fi 3073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3074 3075if test $ac_cv_header_stdc = yes; then 3076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3077 cat >conftest.$ac_ext <<_ACEOF 3078/* confdefs.h. */ 3079_ACEOF 3080cat confdefs.h >>conftest.$ac_ext 3081cat >>conftest.$ac_ext <<_ACEOF 3082/* end confdefs.h. */ 3083#include <string.h> 3084 3085_ACEOF 3086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3087 $EGREP "memchr" >/dev/null 2>&1; then 3088 : 3089else 3090 ac_cv_header_stdc=no 3091fi 3092rm -f conftest* 3093 3094fi 3095 3096if test $ac_cv_header_stdc = yes; then 3097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3098 cat >conftest.$ac_ext <<_ACEOF 3099/* confdefs.h. */ 3100_ACEOF 3101cat confdefs.h >>conftest.$ac_ext 3102cat >>conftest.$ac_ext <<_ACEOF 3103/* end confdefs.h. */ 3104#include <stdlib.h> 3105 3106_ACEOF 3107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3108 $EGREP "free" >/dev/null 2>&1; then 3109 : 3110else 3111 ac_cv_header_stdc=no 3112fi 3113rm -f conftest* 3114 3115fi 3116 3117if test $ac_cv_header_stdc = yes; then 3118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3119 if test "$cross_compiling" = yes; then 3120 : 3121else 3122 cat >conftest.$ac_ext <<_ACEOF 3123/* confdefs.h. */ 3124_ACEOF 3125cat confdefs.h >>conftest.$ac_ext 3126cat >>conftest.$ac_ext <<_ACEOF 3127/* end confdefs.h. */ 3128#include <ctype.h> 3129#if ((' ' & 0x0FF) == 0x020) 3130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3132#else 3133# define ISLOWER(c) \ 3134 (('a' <= (c) && (c) <= 'i') \ 3135 || ('j' <= (c) && (c) <= 'r') \ 3136 || ('s' <= (c) && (c) <= 'z')) 3137# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3138#endif 3139 3140#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3141int 3142main () 3143{ 3144 int i; 3145 for (i = 0; i < 256; i++) 3146 if (XOR (islower (i), ISLOWER (i)) 3147 || toupper (i) != TOUPPER (i)) 3148 exit(2); 3149 exit (0); 3150} 3151_ACEOF 3152rm -f conftest$ac_exeext 3153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3154 (eval $ac_link) 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3159 (eval $ac_try) 2>&5 3160 ac_status=$? 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); }; }; then 3163 : 3164else 3165 echo "$as_me: program exited with status $ac_status" >&5 3166echo "$as_me: failed program was:" >&5 3167sed 's/^/| /' conftest.$ac_ext >&5 3168 3169( exit $ac_status ) 3170ac_cv_header_stdc=no 3171fi 3172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3173fi 3174fi 3175fi 3176echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3177echo "${ECHO_T}$ac_cv_header_stdc" >&6 3178if test $ac_cv_header_stdc = yes; then 3179 3180cat >>confdefs.h <<\_ACEOF 3181#define STDC_HEADERS 1 3182_ACEOF 3183 3184fi 3185 3186 3187# Check whether --enable-xscreensaver or --disable-xscreensaver was given. 3188if test "${enable_xscreensaver+set}" = set; then 3189 enableval="$enable_xscreensaver" 3190 3191else 3192 enable_xscreensaver=yes 3193fi; 3194# Check whether --enable-startup-notification or --disable-startup-notification was given. 3195if test "${enable_startup_notification+set}" = set; then 3196 enableval="$enable_startup_notification" 3197 3198else 3199 enable_startup_notification=yes 3200fi; 3201 3202ac_ext=c 3203ac_cpp='$CPP $CPPFLAGS' 3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3206ac_compiler_gnu=$ac_cv_c_compiler_gnu 3207if test -n "$ac_tool_prefix"; then 3208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3209set dummy ${ac_tool_prefix}gcc; ac_word=$2 3210echo "$as_me:$LINENO: checking for $ac_word" >&5 3211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3212if test "${ac_cv_prog_CC+set}" = set; then 3213 echo $ECHO_N "(cached) $ECHO_C" >&6 3214else 3215 if test -n "$CC"; then 3216 ac_cv_prog_CC="$CC" # Let the user override the test. 3217else 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3225 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230done 3231 3232fi 3233fi 3234CC=$ac_cv_prog_CC 3235if test -n "$CC"; then 3236 echo "$as_me:$LINENO: result: $CC" >&5 3237echo "${ECHO_T}$CC" >&6 3238else 3239 echo "$as_me:$LINENO: result: no" >&5 3240echo "${ECHO_T}no" >&6 3241fi 3242 3243fi 3244if test -z "$ac_cv_prog_CC"; then 3245 ac_ct_CC=$CC 3246 # Extract the first word of "gcc", so it can be a program name with args. 3247set dummy gcc; ac_word=$2 3248echo "$as_me:$LINENO: checking for $ac_word" >&5 3249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3250if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3251 echo $ECHO_N "(cached) $ECHO_C" >&6 3252else 3253 if test -n "$ac_ct_CC"; then 3254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_ac_ct_CC="gcc" 3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268done 3269 3270fi 3271fi 3272ac_ct_CC=$ac_cv_prog_ac_ct_CC 3273if test -n "$ac_ct_CC"; then 3274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3275echo "${ECHO_T}$ac_ct_CC" >&6 3276else 3277 echo "$as_me:$LINENO: result: no" >&5 3278echo "${ECHO_T}no" >&6 3279fi 3280 3281 CC=$ac_ct_CC 3282else 3283 CC="$ac_cv_prog_CC" 3284fi 3285 3286if test -z "$CC"; then 3287 if test -n "$ac_tool_prefix"; then 3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3289set dummy ${ac_tool_prefix}cc; ac_word=$2 3290echo "$as_me:$LINENO: checking for $ac_word" >&5 3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3292if test "${ac_cv_prog_CC+set}" = set; then 3293 echo $ECHO_N "(cached) $ECHO_C" >&6 3294else 3295 if test -n "$CC"; then 3296 ac_cv_prog_CC="$CC" # Let the user override the test. 3297else 3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3299for as_dir in $PATH 3300do 3301 IFS=$as_save_IFS 3302 test -z "$as_dir" && as_dir=. 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3305 ac_cv_prog_CC="${ac_tool_prefix}cc" 3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310done 3311 3312fi 3313fi 3314CC=$ac_cv_prog_CC 3315if test -n "$CC"; then 3316 echo "$as_me:$LINENO: result: $CC" >&5 3317echo "${ECHO_T}$CC" >&6 3318else 3319 echo "$as_me:$LINENO: result: no" >&5 3320echo "${ECHO_T}no" >&6 3321fi 3322 3323fi 3324if test -z "$ac_cv_prog_CC"; then 3325 ac_ct_CC=$CC 3326 # Extract the first word of "cc", so it can be a program name with args. 3327set dummy cc; ac_word=$2 3328echo "$as_me:$LINENO: checking for $ac_word" >&5 3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3331 echo $ECHO_N "(cached) $ECHO_C" >&6 3332else 3333 if test -n "$ac_ct_CC"; then 3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 test -z "$as_dir" && as_dir=. 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_ac_ct_CC="cc" 3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347done 3348done 3349 3350fi 3351fi 3352ac_ct_CC=$ac_cv_prog_ac_ct_CC 3353if test -n "$ac_ct_CC"; then 3354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3355echo "${ECHO_T}$ac_ct_CC" >&6 3356else 3357 echo "$as_me:$LINENO: result: no" >&5 3358echo "${ECHO_T}no" >&6 3359fi 3360 3361 CC=$ac_ct_CC 3362else 3363 CC="$ac_cv_prog_CC" 3364fi 3365 3366fi 3367if test -z "$CC"; then 3368 # Extract the first word of "cc", so it can be a program name with args. 3369set dummy cc; ac_word=$2 3370echo "$as_me:$LINENO: checking for $ac_word" >&5 3371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3372if test "${ac_cv_prog_CC+set}" = set; then 3373 echo $ECHO_N "(cached) $ECHO_C" >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378 ac_prog_rejected=no 3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_exec_ext in '' $ac_executable_extensions; do 3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3387 ac_prog_rejected=yes 3388 continue 3389 fi 3390 ac_cv_prog_CC="cc" 3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395done 3396 3397if test $ac_prog_rejected = yes; then 3398 # We found a bogon in the path, so make sure we never use it. 3399 set dummy $ac_cv_prog_CC 3400 shift 3401 if test $# != 0; then 3402 # We chose a different compiler from the bogus one. 3403 # However, it has the same basename, so the bogon will be chosen 3404 # first if we set CC to just the basename; use the full file name. 3405 shift 3406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3407 fi 3408fi 3409fi 3410fi 3411CC=$ac_cv_prog_CC 3412if test -n "$CC"; then 3413 echo "$as_me:$LINENO: result: $CC" >&5 3414echo "${ECHO_T}$CC" >&6 3415else 3416 echo "$as_me:$LINENO: result: no" >&5 3417echo "${ECHO_T}no" >&6 3418fi 3419 3420fi 3421if test -z "$CC"; then 3422 if test -n "$ac_tool_prefix"; then 3423 for ac_prog in cl 3424 do 3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3427echo "$as_me:$LINENO: checking for $ac_word" >&5 3428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3429if test "${ac_cv_prog_CC+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 if test -n "$CC"; then 3433 ac_cv_prog_CC="$CC" # Let the user override the test. 3434else 3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3436for as_dir in $PATH 3437do 3438 IFS=$as_save_IFS 3439 test -z "$as_dir" && as_dir=. 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3444 break 2 3445 fi 3446done 3447done 3448 3449fi 3450fi 3451CC=$ac_cv_prog_CC 3452if test -n "$CC"; then 3453 echo "$as_me:$LINENO: result: $CC" >&5 3454echo "${ECHO_T}$CC" >&6 3455else 3456 echo "$as_me:$LINENO: result: no" >&5 3457echo "${ECHO_T}no" >&6 3458fi 3459 3460 test -n "$CC" && break 3461 done 3462fi 3463if test -z "$CC"; then 3464 ac_ct_CC=$CC 3465 for ac_prog in cl 3466do 3467 # Extract the first word of "$ac_prog", so it can be a program name with args. 3468set dummy $ac_prog; ac_word=$2 3469echo "$as_me:$LINENO: checking for $ac_word" >&5 3470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3472 echo $ECHO_N "(cached) $ECHO_C" >&6 3473else 3474 if test -n "$ac_ct_CC"; then 3475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3476else 3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3478for as_dir in $PATH 3479do 3480 IFS=$as_save_IFS 3481 test -z "$as_dir" && as_dir=. 3482 for ac_exec_ext in '' $ac_executable_extensions; do 3483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3484 ac_cv_prog_ac_ct_CC="$ac_prog" 3485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3486 break 2 3487 fi 3488done 3489done 3490 3491fi 3492fi 3493ac_ct_CC=$ac_cv_prog_ac_ct_CC 3494if test -n "$ac_ct_CC"; then 3495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3496echo "${ECHO_T}$ac_ct_CC" >&6 3497else 3498 echo "$as_me:$LINENO: result: no" >&5 3499echo "${ECHO_T}no" >&6 3500fi 3501 3502 test -n "$ac_ct_CC" && break 3503done 3504 3505 CC=$ac_ct_CC 3506fi 3507 3508fi 3509 3510 3511test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3512See \`config.log' for more details." >&5 3513echo "$as_me: error: no acceptable C compiler found in \$PATH 3514See \`config.log' for more details." >&2;} 3515 { (exit 1); exit 1; }; } 3516 3517# Provide some information about the compiler. 3518echo "$as_me:$LINENO:" \ 3519 "checking for C compiler version" >&5 3520ac_compiler=`set X $ac_compile; echo $2` 3521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3522 (eval $ac_compiler --version </dev/null >&5) 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } 3526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3527 (eval $ac_compiler -v </dev/null >&5) 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); } 3531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3532 (eval $ac_compiler -V </dev/null >&5) 2>&5 3533 ac_status=$? 3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3535 (exit $ac_status); } 3536 3537echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3538echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3539if test "${ac_cv_c_compiler_gnu+set}" = set; then 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3541else 3542 cat >conftest.$ac_ext <<_ACEOF 3543/* confdefs.h. */ 3544_ACEOF 3545cat confdefs.h >>conftest.$ac_ext 3546cat >>conftest.$ac_ext <<_ACEOF 3547/* end confdefs.h. */ 3548 3549int 3550main () 3551{ 3552#ifndef __GNUC__ 3553 choke me 3554#endif 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560rm -f conftest.$ac_objext 3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3562 (eval $ac_compile) 2>conftest.er1 3563 ac_status=$? 3564 grep -v '^ *+' conftest.er1 >conftest.err 3565 rm -f conftest.er1 3566 cat conftest.err >&5 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } && 3569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3571 (eval $ac_try) 2>&5 3572 ac_status=$? 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); }; } && 3575 { ac_try='test -s conftest.$ac_objext' 3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3577 (eval $ac_try) 2>&5 3578 ac_status=$? 3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3580 (exit $ac_status); }; }; then 3581 ac_compiler_gnu=yes 3582else 3583 echo "$as_me: failed program was:" >&5 3584sed 's/^/| /' conftest.$ac_ext >&5 3585 3586ac_compiler_gnu=no 3587fi 3588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3589ac_cv_c_compiler_gnu=$ac_compiler_gnu 3590 3591fi 3592echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3593echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3594GCC=`test $ac_compiler_gnu = yes && echo yes` 3595ac_test_CFLAGS=${CFLAGS+set} 3596ac_save_CFLAGS=$CFLAGS 3597CFLAGS="-g" 3598echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3600if test "${ac_cv_prog_cc_g+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602else 3603 cat >conftest.$ac_ext <<_ACEOF 3604/* confdefs.h. */ 3605_ACEOF 3606cat confdefs.h >>conftest.$ac_ext 3607cat >>conftest.$ac_ext <<_ACEOF 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618rm -f conftest.$ac_objext 3619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3620 (eval $ac_compile) 2>conftest.er1 3621 ac_status=$? 3622 grep -v '^ *+' conftest.er1 >conftest.err 3623 rm -f conftest.er1 3624 cat conftest.err >&5 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } && 3627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3629 (eval $ac_try) 2>&5 3630 ac_status=$? 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); }; } && 3633 { ac_try='test -s conftest.$ac_objext' 3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3635 (eval $ac_try) 2>&5 3636 ac_status=$? 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); }; }; then 3639 ac_cv_prog_cc_g=yes 3640else 3641 echo "$as_me: failed program was:" >&5 3642sed 's/^/| /' conftest.$ac_ext >&5 3643 3644ac_cv_prog_cc_g=no 3645fi 3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3647fi 3648echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3650if test "$ac_test_CFLAGS" = set; then 3651 CFLAGS=$ac_save_CFLAGS 3652elif test $ac_cv_prog_cc_g = yes; then 3653 if test "$GCC" = yes; then 3654 CFLAGS="-g -O2" 3655 else 3656 CFLAGS="-g" 3657 fi 3658else 3659 if test "$GCC" = yes; then 3660 CFLAGS="-O2" 3661 else 3662 CFLAGS= 3663 fi 3664fi 3665echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3666echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3667if test "${ac_cv_prog_cc_stdc+set}" = set; then 3668 echo $ECHO_N "(cached) $ECHO_C" >&6 3669else 3670 ac_cv_prog_cc_stdc=no 3671ac_save_CC=$CC 3672cat >conftest.$ac_ext <<_ACEOF 3673/* confdefs.h. */ 3674_ACEOF 3675cat confdefs.h >>conftest.$ac_ext 3676cat >>conftest.$ac_ext <<_ACEOF 3677/* end confdefs.h. */ 3678#include <stdarg.h> 3679#include <stdio.h> 3680#include <sys/types.h> 3681#include <sys/stat.h> 3682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3683struct buf { int x; }; 3684FILE * (*rcsopen) (struct buf *, struct stat *, int); 3685static char *e (p, i) 3686 char **p; 3687 int i; 3688{ 3689 return p[i]; 3690} 3691static char *f (char * (*g) (char **, int), char **p, ...) 3692{ 3693 char *s; 3694 va_list v; 3695 va_start (v,p); 3696 s = g (p, va_arg (v,int)); 3697 va_end (v); 3698 return s; 3699} 3700 3701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3702 function prototypes and stuff, but not '\xHH' hex character constants. 3703 These don't provoke an error unfortunately, instead are silently treated 3704 as 'x'. The following induces an error, until -std1 is added to get 3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3706 array size at least. It's necessary to write '\x00'==0 to get something 3707 that's true only with -std1. */ 3708int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3709 3710int test (int i, double x); 3711struct s1 {int (*f) (int a);}; 3712struct s2 {int (*f) (double a);}; 3713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3714int argc; 3715char **argv; 3716int 3717main () 3718{ 3719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724# Don't try gcc -ansi; that turns off useful extensions and 3725# breaks some systems' header files. 3726# AIX -qlanglvl=ansi 3727# Ultrix and OSF/1 -std1 3728# HP-UX 10.20 and later -Ae 3729# HP-UX older versions -Aa -D_HPUX_SOURCE 3730# SVR4 -Xc -D__EXTENSIONS__ 3731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3732do 3733 CC="$ac_save_CC $ac_arg" 3734 rm -f conftest.$ac_objext 3735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3736 (eval $ac_compile) 2>conftest.er1 3737 ac_status=$? 3738 grep -v '^ *+' conftest.er1 >conftest.err 3739 rm -f conftest.er1 3740 cat conftest.err >&5 3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3742 (exit $ac_status); } && 3743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); }; } && 3749 { ac_try='test -s conftest.$ac_objext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 ac_cv_prog_cc_stdc=$ac_arg 3756break 3757else 3758 echo "$as_me: failed program was:" >&5 3759sed 's/^/| /' conftest.$ac_ext >&5 3760 3761fi 3762rm -f conftest.err conftest.$ac_objext 3763done 3764rm -f conftest.$ac_ext conftest.$ac_objext 3765CC=$ac_save_CC 3766 3767fi 3768 3769case "x$ac_cv_prog_cc_stdc" in 3770 x|xno) 3771 echo "$as_me:$LINENO: result: none needed" >&5 3772echo "${ECHO_T}none needed" >&6 ;; 3773 *) 3774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3775echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3776 CC="$CC $ac_cv_prog_cc_stdc" ;; 3777esac 3778 3779# Some people use a C++ compiler to compile C. Since we use `exit', 3780# in C++ we need to declare it. In case someone uses the same compiler 3781# for both compiling C and C++ we need to have the C++ compiler decide 3782# the declaration of exit, since it's the most demanding environment. 3783cat >conftest.$ac_ext <<_ACEOF 3784#ifndef __cplusplus 3785 choke me 3786#endif 3787_ACEOF 3788rm -f conftest.$ac_objext 3789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3790 (eval $ac_compile) 2>conftest.er1 3791 ac_status=$? 3792 grep -v '^ *+' conftest.er1 >conftest.err 3793 rm -f conftest.er1 3794 cat conftest.err >&5 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } && 3797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3799 (eval $ac_try) 2>&5 3800 ac_status=$? 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3802 (exit $ac_status); }; } && 3803 { ac_try='test -s conftest.$ac_objext' 3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3805 (eval $ac_try) 2>&5 3806 ac_status=$? 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); }; }; then 3809 for ac_declaration in \ 3810 '' \ 3811 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3812 'extern "C" void std::exit (int); using std::exit;' \ 3813 'extern "C" void exit (int) throw ();' \ 3814 'extern "C" void exit (int);' \ 3815 'void exit (int);' 3816do 3817 cat >conftest.$ac_ext <<_ACEOF 3818/* confdefs.h. */ 3819_ACEOF 3820cat confdefs.h >>conftest.$ac_ext 3821cat >>conftest.$ac_ext <<_ACEOF 3822/* end confdefs.h. */ 3823$ac_declaration 3824#include <stdlib.h> 3825int 3826main () 3827{ 3828exit (42); 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833rm -f conftest.$ac_objext 3834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3835 (eval $ac_compile) 2>conftest.er1 3836 ac_status=$? 3837 grep -v '^ *+' conftest.er1 >conftest.err 3838 rm -f conftest.er1 3839 cat conftest.err >&5 3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3841 (exit $ac_status); } && 3842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; } && 3848 { ac_try='test -s conftest.$ac_objext' 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 : 3855else 3856 echo "$as_me: failed program was:" >&5 3857sed 's/^/| /' conftest.$ac_ext >&5 3858 3859continue 3860fi 3861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3862 cat >conftest.$ac_ext <<_ACEOF 3863/* confdefs.h. */ 3864_ACEOF 3865cat confdefs.h >>conftest.$ac_ext 3866cat >>conftest.$ac_ext <<_ACEOF 3867/* end confdefs.h. */ 3868$ac_declaration 3869int 3870main () 3871{ 3872exit (42); 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877rm -f conftest.$ac_objext 3878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3879 (eval $ac_compile) 2>conftest.er1 3880 ac_status=$? 3881 grep -v '^ *+' conftest.er1 >conftest.err 3882 rm -f conftest.er1 3883 cat conftest.err >&5 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } && 3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3888 (eval $ac_try) 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; } && 3892 { ac_try='test -s conftest.$ac_objext' 3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3894 (eval $ac_try) 2>&5 3895 ac_status=$? 3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897 (exit $ac_status); }; }; then 3898 break 3899else 3900 echo "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903fi 3904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3905done 3906rm -f conftest* 3907if test -n "$ac_declaration"; then 3908 echo '#ifdef __cplusplus' >>confdefs.h 3909 echo $ac_declaration >>confdefs.h 3910 echo '#endif' >>confdefs.h 3911fi 3912 3913else 3914 echo "$as_me: failed program was:" >&5 3915sed 's/^/| /' conftest.$ac_ext >&5 3916 3917fi 3918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3919ac_ext=c 3920ac_cpp='$CPP $CPPFLAGS' 3921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3923ac_compiler_gnu=$ac_cv_c_compiler_gnu 3924 3925depcc="$CC" am_compiler_list= 3926 3927echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3928echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3929if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3930 echo $ECHO_N "(cached) $ECHO_C" >&6 3931else 3932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3933 # We make a subdir and do the tests there. Otherwise we can end up 3934 # making bogus files that we don't know about and never remove. For 3935 # instance it was reported that on HP-UX the gcc test will end up 3936 # making a dummy file named `D' -- because `-MD' means `put the output 3937 # in D'. 3938 mkdir conftest.dir 3939 # Copy depcomp to subdir because otherwise we won't find it if we're 3940 # using a relative directory. 3941 cp "$am_depcomp" conftest.dir 3942 cd conftest.dir 3943 3944 am_cv_CC_dependencies_compiler_type=none 3945 if test "$am_compiler_list" = ""; then 3946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3947 fi 3948 for depmode in $am_compiler_list; do 3949 # We need to recreate these files for each test, as the compiler may 3950 # overwrite some of them when testing with obscure command lines. 3951 # This happens at least with the AIX C compiler. 3952 echo '#include "conftest.h"' > conftest.c 3953 echo 'int i;' > conftest.h 3954 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3955 3956 case $depmode in 3957 nosideeffect) 3958 # after this tag, mechanisms are not by side-effect, so they'll 3959 # only be used when explicitly requested 3960 if test "x$enable_dependency_tracking" = xyes; then 3961 continue 3962 else 3963 break 3964 fi 3965 ;; 3966 none) break ;; 3967 esac 3968 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3969 # mode. It turns out that the SunPro C++ compiler does not properly 3970 # handle `-M -o', and we need to detect this. 3971 if depmode=$depmode \ 3972 source=conftest.c object=conftest.o \ 3973 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3974 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 3975 grep conftest.h conftest.Po > /dev/null 2>&1 && 3976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3977 am_cv_CC_dependencies_compiler_type=$depmode 3978 break 3979 fi 3980 done 3981 3982 cd .. 3983 rm -rf conftest.dir 3984else 3985 am_cv_CC_dependencies_compiler_type=none 3986fi 3987 3988fi 3989echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3990echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3991CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3992 3993 3994 3995ALL_LINGUAS="lt ru" 3996# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4007 inttypes.h stdint.h unistd.h 4008do 4009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4010echo "$as_me:$LINENO: checking for $ac_header" >&5 4011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4012if eval "test \"\${$as_ac_Header+set}\" = set"; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 cat >conftest.$ac_ext <<_ACEOF 4016/* confdefs.h. */ 4017_ACEOF 4018cat confdefs.h >>conftest.$ac_ext 4019cat >>conftest.$ac_ext <<_ACEOF 4020/* end confdefs.h. */ 4021$ac_includes_default 4022 4023#include <$ac_header> 4024_ACEOF 4025rm -f conftest.$ac_objext 4026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4027 (eval $ac_compile) 2>conftest.er1 4028 ac_status=$? 4029 grep -v '^ *+' conftest.er1 >conftest.err 4030 rm -f conftest.er1 4031 cat conftest.err >&5 4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4033 (exit $ac_status); } && 4034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4036 (eval $ac_try) 2>&5 4037 ac_status=$? 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4039 (exit $ac_status); }; } && 4040 { ac_try='test -s conftest.$ac_objext' 4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4042 (eval $ac_try) 2>&5 4043 ac_status=$? 4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4045 (exit $ac_status); }; }; then 4046 eval "$as_ac_Header=yes" 4047else 4048 echo "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051eval "$as_ac_Header=no" 4052fi 4053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4054fi 4055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4057if test `eval echo '${'$as_ac_Header'}'` = yes; then 4058 cat >>confdefs.h <<_ACEOF 4059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4060_ACEOF 4061 4062fi 4063 4064done 4065 4066 4067 4068 4069for ac_header in locale.h 4070do 4071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4072if eval "test \"\${$as_ac_Header+set}\" = set"; then 4073 echo "$as_me:$LINENO: checking for $ac_header" >&5 4074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4075if eval "test \"\${$as_ac_Header+set}\" = set"; then 4076 echo $ECHO_N "(cached) $ECHO_C" >&6 4077fi 4078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4080else 4081 # Is the header compilable? 4082echo "$as_me:$LINENO: checking $ac_header usability" >&5 4083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4084cat >conftest.$ac_ext <<_ACEOF 4085/* confdefs.h. */ 4086_ACEOF 4087cat confdefs.h >>conftest.$ac_ext 4088cat >>conftest.$ac_ext <<_ACEOF 4089/* end confdefs.h. */ 4090$ac_includes_default 4091#include <$ac_header> 4092_ACEOF 4093rm -f conftest.$ac_objext 4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4104 (eval $ac_try) 2>&5 4105 ac_status=$? 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); }; } && 4108 { ac_try='test -s conftest.$ac_objext' 4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4110 (eval $ac_try) 2>&5 4111 ac_status=$? 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); }; }; then 4114 ac_header_compiler=yes 4115else 4116 echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119ac_header_compiler=no 4120fi 4121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4123echo "${ECHO_T}$ac_header_compiler" >&6 4124 4125# Is the header present? 4126echo "$as_me:$LINENO: checking $ac_header presence" >&5 4127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4128cat >conftest.$ac_ext <<_ACEOF 4129/* confdefs.h. */ 4130_ACEOF 4131cat confdefs.h >>conftest.$ac_ext 4132cat >>conftest.$ac_ext <<_ACEOF 4133/* end confdefs.h. */ 4134#include <$ac_header> 4135_ACEOF 4136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4138 ac_status=$? 4139 grep -v '^ *+' conftest.er1 >conftest.err 4140 rm -f conftest.er1 4141 cat conftest.err >&5 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); } >/dev/null; then 4144 if test -s conftest.err; then 4145 ac_cpp_err=$ac_c_preproc_warn_flag 4146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4147 else 4148 ac_cpp_err= 4149 fi 4150else 4151 ac_cpp_err=yes 4152fi 4153if test -z "$ac_cpp_err"; then 4154 ac_header_preproc=yes 4155else 4156 echo "$as_me: failed program was:" >&5 4157sed 's/^/| /' conftest.$ac_ext >&5 4158 4159 ac_header_preproc=no 4160fi 4161rm -f conftest.err conftest.$ac_ext 4162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4163echo "${ECHO_T}$ac_header_preproc" >&6 4164 4165# So? What about this header? 4166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4167 yes:no: ) 4168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4172 ac_header_preproc=yes 4173 ;; 4174 no:yes:* ) 4175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4187 ( 4188 cat <<\_ASBOX 4189## ------------------------------------------ ## 4190## Report this to the AC_PACKAGE_NAME lists. ## 4191## ------------------------------------------ ## 4192_ASBOX 4193 ) | 4194 sed "s/^/$as_me: WARNING: /" >&2 4195 ;; 4196esac 4197echo "$as_me:$LINENO: checking for $ac_header" >&5 4198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4199if eval "test \"\${$as_ac_Header+set}\" = set"; then 4200 echo $ECHO_N "(cached) $ECHO_C" >&6 4201else 4202 eval "$as_ac_Header=\$ac_header_preproc" 4203fi 4204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4206 4207fi 4208if test `eval echo '${'$as_ac_Header'}'` = yes; then 4209 cat >>confdefs.h <<_ACEOF 4210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4211_ACEOF 4212 4213fi 4214 4215done 4216 4217 if test $ac_cv_header_locale_h = yes; then 4218 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 4219echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 4220if test "${am_cv_val_LC_MESSAGES+set}" = set; then 4221 echo $ECHO_N "(cached) $ECHO_C" >&6 4222else 4223 cat >conftest.$ac_ext <<_ACEOF 4224/* confdefs.h. */ 4225_ACEOF 4226cat confdefs.h >>conftest.$ac_ext 4227cat >>conftest.$ac_ext <<_ACEOF 4228/* end confdefs.h. */ 4229#include <locale.h> 4230int 4231main () 4232{ 4233return LC_MESSAGES 4234 ; 4235 return 0; 4236} 4237_ACEOF 4238rm -f conftest.$ac_objext conftest$ac_exeext 4239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4240 (eval $ac_link) 2>conftest.er1 4241 ac_status=$? 4242 grep -v '^ *+' conftest.er1 >conftest.err 4243 rm -f conftest.er1 4244 cat conftest.err >&5 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); } && 4247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; } && 4253 { ac_try='test -s conftest$ac_exeext' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; }; then 4259 am_cv_val_LC_MESSAGES=yes 4260else 4261 echo "$as_me: failed program was:" >&5 4262sed 's/^/| /' conftest.$ac_ext >&5 4263 4264am_cv_val_LC_MESSAGES=no 4265fi 4266rm -f conftest.err conftest.$ac_objext \ 4267 conftest$ac_exeext conftest.$ac_ext 4268fi 4269echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 4270echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 4271 if test $am_cv_val_LC_MESSAGES = yes; then 4272 4273cat >>confdefs.h <<\_ACEOF 4274#define HAVE_LC_MESSAGES 1 4275_ACEOF 4276 4277 fi 4278 fi 4279 USE_NLS=yes 4280 4281 4282 gt_cv_have_gettext=no 4283 4284 CATOBJEXT=NONE 4285 XGETTEXT=: 4286 INTLLIBS= 4287 4288 if test "${ac_cv_header_libintl_h+set}" = set; then 4289 echo "$as_me:$LINENO: checking for libintl.h" >&5 4290echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4291if test "${ac_cv_header_libintl_h+set}" = set; then 4292 echo $ECHO_N "(cached) $ECHO_C" >&6 4293fi 4294echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4295echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4296else 4297 # Is the header compilable? 4298echo "$as_me:$LINENO: checking libintl.h usability" >&5 4299echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 4300cat >conftest.$ac_ext <<_ACEOF 4301/* confdefs.h. */ 4302_ACEOF 4303cat confdefs.h >>conftest.$ac_ext 4304cat >>conftest.$ac_ext <<_ACEOF 4305/* end confdefs.h. */ 4306$ac_includes_default 4307#include <libintl.h> 4308_ACEOF 4309rm -f conftest.$ac_objext 4310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4311 (eval $ac_compile) 2>conftest.er1 4312 ac_status=$? 4313 grep -v '^ *+' conftest.er1 >conftest.err 4314 rm -f conftest.er1 4315 cat conftest.err >&5 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); } && 4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4320 (eval $ac_try) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); }; } && 4324 { ac_try='test -s conftest.$ac_objext' 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4326 (eval $ac_try) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); }; }; then 4330 ac_header_compiler=yes 4331else 4332 echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335ac_header_compiler=no 4336fi 4337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4339echo "${ECHO_T}$ac_header_compiler" >&6 4340 4341# Is the header present? 4342echo "$as_me:$LINENO: checking libintl.h presence" >&5 4343echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 4344cat >conftest.$ac_ext <<_ACEOF 4345/* confdefs.h. */ 4346_ACEOF 4347cat confdefs.h >>conftest.$ac_ext 4348cat >>conftest.$ac_ext <<_ACEOF 4349/* end confdefs.h. */ 4350#include <libintl.h> 4351_ACEOF 4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4354 ac_status=$? 4355 grep -v '^ *+' conftest.er1 >conftest.err 4356 rm -f conftest.er1 4357 cat conftest.err >&5 4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4359 (exit $ac_status); } >/dev/null; then 4360 if test -s conftest.err; then 4361 ac_cpp_err=$ac_c_preproc_warn_flag 4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4363 else 4364 ac_cpp_err= 4365 fi 4366else 4367 ac_cpp_err=yes 4368fi 4369if test -z "$ac_cpp_err"; then 4370 ac_header_preproc=yes 4371else 4372 echo "$as_me: failed program was:" >&5 4373sed 's/^/| /' conftest.$ac_ext >&5 4374 4375 ac_header_preproc=no 4376fi 4377rm -f conftest.err conftest.$ac_ext 4378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4379echo "${ECHO_T}$ac_header_preproc" >&6 4380 4381# So? What about this header? 4382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4383 yes:no: ) 4384 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 4385echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4386 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 4387echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 4388 ac_header_preproc=yes 4389 ;; 4390 no:yes:* ) 4391 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 4392echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 4393 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 4394echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 4395 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 4396echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 4397 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 4398echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 4399 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 4400echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 4401 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 4402echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 4403 ( 4404 cat <<\_ASBOX 4405## ------------------------------------------ ## 4406## Report this to the AC_PACKAGE_NAME lists. ## 4407## ------------------------------------------ ## 4408_ASBOX 4409 ) | 4410 sed "s/^/$as_me: WARNING: /" >&2 4411 ;; 4412esac 4413echo "$as_me:$LINENO: checking for libintl.h" >&5 4414echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4415if test "${ac_cv_header_libintl_h+set}" = set; then 4416 echo $ECHO_N "(cached) $ECHO_C" >&6 4417else 4418 ac_cv_header_libintl_h=$ac_header_preproc 4419fi 4420echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4421echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4422 4423fi 4424if test $ac_cv_header_libintl_h = yes; then 4425 gt_cv_func_dgettext_libintl="no" 4426 libintl_extra_libs="" 4427 4428 # 4429 # First check in libc 4430 # 4431 echo "$as_me:$LINENO: checking for dgettext in libc" >&5 4432echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6 4433if test "${gt_cv_func_dgettext_libc+set}" = set; then 4434 echo $ECHO_N "(cached) $ECHO_C" >&6 4435else 4436 cat >conftest.$ac_ext <<_ACEOF 4437/* confdefs.h. */ 4438_ACEOF 4439cat confdefs.h >>conftest.$ac_ext 4440cat >>conftest.$ac_ext <<_ACEOF 4441/* end confdefs.h. */ 4442 4443#include <libintl.h> 4444 4445int 4446main () 4447{ 4448return (int) dgettext ("","") 4449 ; 4450 return 0; 4451} 4452_ACEOF 4453rm -f conftest.$ac_objext conftest$ac_exeext 4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4455 (eval $ac_link) 2>conftest.er1 4456 ac_status=$? 4457 grep -v '^ *+' conftest.er1 >conftest.err 4458 rm -f conftest.er1 4459 cat conftest.err >&5 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } && 4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4464 (eval $ac_try) 2>&5 4465 ac_status=$? 4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4467 (exit $ac_status); }; } && 4468 { ac_try='test -s conftest$ac_exeext' 4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4470 (eval $ac_try) 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); }; }; then 4474 gt_cv_func_dgettext_libc=yes 4475else 4476 echo "$as_me: failed program was:" >&5 4477sed 's/^/| /' conftest.$ac_ext >&5 4478 4479gt_cv_func_dgettext_libc=no 4480fi 4481rm -f conftest.err conftest.$ac_objext \ 4482 conftest$ac_exeext conftest.$ac_ext 4483 4484fi 4485echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 4486echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6 4487 4488 if test "$gt_cv_func_dgettext_libc" = "yes" ; then 4489 4490for ac_func in bind_textdomain_codeset 4491do 4492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4493echo "$as_me:$LINENO: checking for $ac_func" >&5 4494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4495if eval "test \"\${$as_ac_var+set}\" = set"; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497else 4498 cat >conftest.$ac_ext <<_ACEOF 4499/* confdefs.h. */ 4500_ACEOF 4501cat confdefs.h >>conftest.$ac_ext 4502cat >>conftest.$ac_ext <<_ACEOF 4503/* end confdefs.h. */ 4504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4506#define $ac_func innocuous_$ac_func 4507 4508/* System header to define __stub macros and hopefully few prototypes, 4509 which can conflict with char $ac_func (); below. 4510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4511 <limits.h> exists even on freestanding compilers. */ 4512 4513#ifdef __STDC__ 4514# include <limits.h> 4515#else 4516# include <assert.h> 4517#endif 4518 4519#undef $ac_func 4520 4521/* Override any gcc2 internal prototype to avoid an error. */ 4522#ifdef __cplusplus 4523extern "C" 4524{ 4525#endif 4526/* We use char because int might match the return type of a gcc2 4527 builtin and then its argument prototype would still apply. */ 4528char $ac_func (); 4529/* The GNU C library defines this for functions which it implements 4530 to always fail with ENOSYS. Some functions are actually named 4531 something starting with __ and the normal name is an alias. */ 4532#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4533choke me 4534#else 4535char (*f) () = $ac_func; 4536#endif 4537#ifdef __cplusplus 4538} 4539#endif 4540 4541int 4542main () 4543{ 4544return f != $ac_func; 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549rm -f conftest.$ac_objext conftest$ac_exeext 4550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4551 (eval $ac_link) 2>conftest.er1 4552 ac_status=$? 4553 grep -v '^ *+' conftest.er1 >conftest.err 4554 rm -f conftest.er1 4555 cat conftest.err >&5 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } && 4558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4560 (eval $ac_try) 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; } && 4564 { ac_try='test -s conftest$ac_exeext' 4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4566 (eval $ac_try) 2>&5 4567 ac_status=$? 4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4569 (exit $ac_status); }; }; then 4570 eval "$as_ac_var=yes" 4571else 4572 echo "$as_me: failed program was:" >&5 4573sed 's/^/| /' conftest.$ac_ext >&5 4574 4575eval "$as_ac_var=no" 4576fi 4577rm -f conftest.err conftest.$ac_objext \ 4578 conftest$ac_exeext conftest.$ac_ext 4579fi 4580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4582if test `eval echo '${'$as_ac_var'}'` = yes; then 4583 cat >>confdefs.h <<_ACEOF 4584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4585_ACEOF 4586 4587fi 4588done 4589 4590 fi 4591 4592 # 4593 # If we don't have everything we want, check in libintl 4594 # 4595 if test "$gt_cv_func_dgettext_libc" != "yes" \ 4596 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 4597 4598 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 4599echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 4600if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 4601 echo $ECHO_N "(cached) $ECHO_C" >&6 4602else 4603 ac_check_lib_save_LIBS=$LIBS 4604LIBS="-lintl $LIBS" 4605cat >conftest.$ac_ext <<_ACEOF 4606/* confdefs.h. */ 4607_ACEOF 4608cat confdefs.h >>conftest.$ac_ext 4609cat >>conftest.$ac_ext <<_ACEOF 4610/* end confdefs.h. */ 4611 4612/* Override any gcc2 internal prototype to avoid an error. */ 4613#ifdef __cplusplus 4614extern "C" 4615#endif 4616/* We use char because int might match the return type of a gcc2 4617 builtin and then its argument prototype would still apply. */ 4618char bindtextdomain (); 4619int 4620main () 4621{ 4622bindtextdomain (); 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627rm -f conftest.$ac_objext conftest$ac_exeext 4628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4629 (eval $ac_link) 2>conftest.er1 4630 ac_status=$? 4631 grep -v '^ *+' conftest.er1 >conftest.err 4632 rm -f conftest.er1 4633 cat conftest.err >&5 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); } && 4636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4638 (eval $ac_try) 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); }; } && 4642 { ac_try='test -s conftest$ac_exeext' 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4644 (eval $ac_try) 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_cv_lib_intl_bindtextdomain=yes 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653ac_cv_lib_intl_bindtextdomain=no 4654fi 4655rm -f conftest.err conftest.$ac_objext \ 4656 conftest$ac_exeext conftest.$ac_ext 4657LIBS=$ac_check_lib_save_LIBS 4658fi 4659echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 4660echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 4661if test $ac_cv_lib_intl_bindtextdomain = yes; then 4662 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 4663echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 4664if test "${ac_cv_lib_intl_dgettext+set}" = set; then 4665 echo $ECHO_N "(cached) $ECHO_C" >&6 4666else 4667 ac_check_lib_save_LIBS=$LIBS 4668LIBS="-lintl $LIBS" 4669cat >conftest.$ac_ext <<_ACEOF 4670/* confdefs.h. */ 4671_ACEOF 4672cat confdefs.h >>conftest.$ac_ext 4673cat >>conftest.$ac_ext <<_ACEOF 4674/* end confdefs.h. */ 4675 4676/* Override any gcc2 internal prototype to avoid an error. */ 4677#ifdef __cplusplus 4678extern "C" 4679#endif 4680/* We use char because int might match the return type of a gcc2 4681 builtin and then its argument prototype would still apply. */ 4682char dgettext (); 4683int 4684main () 4685{ 4686dgettext (); 4687 ; 4688 return 0; 4689} 4690_ACEOF 4691rm -f conftest.$ac_objext conftest$ac_exeext 4692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4693 (eval $ac_link) 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } && 4700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4702 (eval $ac_try) 2>&5 4703 ac_status=$? 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); }; } && 4706 { ac_try='test -s conftest$ac_exeext' 4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4708 (eval $ac_try) 2>&5 4709 ac_status=$? 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); }; }; then 4712 ac_cv_lib_intl_dgettext=yes 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717ac_cv_lib_intl_dgettext=no 4718fi 4719rm -f conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721LIBS=$ac_check_lib_save_LIBS 4722fi 4723echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 4724echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 4725if test $ac_cv_lib_intl_dgettext = yes; then 4726 gt_cv_func_dgettext_libintl=yes 4727fi 4728 4729fi 4730 4731 4732 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 4733 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 4734echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6 4735 echo "$as_me:$LINENO: result: " >&5 4736echo "${ECHO_T}" >&6 4737 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 4738echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6 4739if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741else 4742 ac_check_lib_save_LIBS=$LIBS 4743LIBS="-lintl -liconv $LIBS" 4744cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750 4751/* Override any gcc2 internal prototype to avoid an error. */ 4752#ifdef __cplusplus 4753extern "C" 4754#endif 4755/* We use char because int might match the return type of a gcc2 4756 builtin and then its argument prototype would still apply. */ 4757char dcgettext (); 4758int 4759main () 4760{ 4761dcgettext (); 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766rm -f conftest.$ac_objext conftest$ac_exeext 4767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4768 (eval $ac_link) 2>conftest.er1 4769 ac_status=$? 4770 grep -v '^ *+' conftest.er1 >conftest.err 4771 rm -f conftest.er1 4772 cat conftest.err >&5 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); } && 4775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4777 (eval $ac_try) 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); }; } && 4781 { ac_try='test -s conftest$ac_exeext' 4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4783 (eval $ac_try) 2>&5 4784 ac_status=$? 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); }; }; then 4787 ac_cv_lib_intl_dcgettext=yes 4788else 4789 echo "$as_me: failed program was:" >&5 4790sed 's/^/| /' conftest.$ac_ext >&5 4791 4792ac_cv_lib_intl_dcgettext=no 4793fi 4794rm -f conftest.err conftest.$ac_objext \ 4795 conftest$ac_exeext conftest.$ac_ext 4796LIBS=$ac_check_lib_save_LIBS 4797fi 4798echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 4799echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6 4800if test $ac_cv_lib_intl_dcgettext = yes; then 4801 gt_cv_func_dgettext_libintl=yes 4802 libintl_extra_libs=-liconv 4803else 4804 : 4805fi 4806 4807 fi 4808 4809 # 4810 # If we found libintl, then check in it for bind_textdomain_codeset(); 4811 # we'll prefer libc if neither have bind_textdomain_codeset(), 4812 # and both have dgettext 4813 # 4814 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 4815 glib_save_LIBS="$LIBS" 4816 LIBS="$LIBS -lintl $libintl_extra_libs" 4817 unset ac_cv_func_bind_textdomain_codeset 4818 4819for ac_func in bind_textdomain_codeset 4820do 4821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4822echo "$as_me:$LINENO: checking for $ac_func" >&5 4823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4824if eval "test \"\${$as_ac_var+set}\" = set"; then 4825 echo $ECHO_N "(cached) $ECHO_C" >&6 4826else 4827 cat >conftest.$ac_ext <<_ACEOF 4828/* confdefs.h. */ 4829_ACEOF 4830cat confdefs.h >>conftest.$ac_ext 4831cat >>conftest.$ac_ext <<_ACEOF 4832/* end confdefs.h. */ 4833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4835#define $ac_func innocuous_$ac_func 4836 4837/* System header to define __stub macros and hopefully few prototypes, 4838 which can conflict with char $ac_func (); below. 4839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4840 <limits.h> exists even on freestanding compilers. */ 4841 4842#ifdef __STDC__ 4843# include <limits.h> 4844#else 4845# include <assert.h> 4846#endif 4847 4848#undef $ac_func 4849 4850/* Override any gcc2 internal prototype to avoid an error. */ 4851#ifdef __cplusplus 4852extern "C" 4853{ 4854#endif 4855/* We use char because int might match the return type of a gcc2 4856 builtin and then its argument prototype would still apply. */ 4857char $ac_func (); 4858/* The GNU C library defines this for functions which it implements 4859 to always fail with ENOSYS. Some functions are actually named 4860 something starting with __ and the normal name is an alias. */ 4861#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4862choke me 4863#else 4864char (*f) () = $ac_func; 4865#endif 4866#ifdef __cplusplus 4867} 4868#endif 4869 4870int 4871main () 4872{ 4873return f != $ac_func; 4874 ; 4875 return 0; 4876} 4877_ACEOF 4878rm -f conftest.$ac_objext conftest$ac_exeext 4879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4880 (eval $ac_link) 2>conftest.er1 4881 ac_status=$? 4882 grep -v '^ *+' conftest.er1 >conftest.err 4883 rm -f conftest.er1 4884 cat conftest.err >&5 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); } && 4887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4889 (eval $ac_try) 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); }; } && 4893 { ac_try='test -s conftest$ac_exeext' 4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4895 (eval $ac_try) 2>&5 4896 ac_status=$? 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); }; }; then 4899 eval "$as_ac_var=yes" 4900else 4901 echo "$as_me: failed program was:" >&5 4902sed 's/^/| /' conftest.$ac_ext >&5 4903 4904eval "$as_ac_var=no" 4905fi 4906rm -f conftest.err conftest.$ac_objext \ 4907 conftest$ac_exeext conftest.$ac_ext 4908fi 4909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4911if test `eval echo '${'$as_ac_var'}'` = yes; then 4912 cat >>confdefs.h <<_ACEOF 4913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4914_ACEOF 4915 4916fi 4917done 4918 4919 LIBS="$glib_save_LIBS" 4920 4921 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 4922 gt_cv_func_dgettext_libc=no 4923 else 4924 if test "$gt_cv_func_dgettext_libc" = "yes"; then 4925 gt_cv_func_dgettext_libintl=no 4926 fi 4927 fi 4928 fi 4929 fi 4930 4931 if test "$gt_cv_func_dgettext_libc" = "yes" \ 4932 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 4933 gt_cv_have_gettext=yes 4934 fi 4935 4936 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 4937 INTLLIBS="-lintl $libintl_extra_libs" 4938 fi 4939 4940 if test "$gt_cv_have_gettext" = "yes"; then 4941 4942cat >>confdefs.h <<\_ACEOF 4943#define HAVE_GETTEXT 1 4944_ACEOF 4945 4946 # Extract the first word of "msgfmt", so it can be a program name with args. 4947set dummy msgfmt; ac_word=$2 4948echo "$as_me:$LINENO: checking for $ac_word" >&5 4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4950if test "${ac_cv_path_MSGFMT+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 case "$MSGFMT" in 4954 /*) 4955 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4956 ;; 4957 *) 4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4959 for ac_dir in $PATH; do 4960 test -z "$ac_dir" && ac_dir=. 4961 if test -f $ac_dir/$ac_word; then 4962 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 4963 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 4964 break 4965 fi 4966 fi 4967 done 4968 IFS="$ac_save_ifs" 4969 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 4970 ;; 4971esac 4972fi 4973MSGFMT="$ac_cv_path_MSGFMT" 4974if test "$MSGFMT" != "no"; then 4975 echo "$as_me:$LINENO: result: $MSGFMT" >&5 4976echo "${ECHO_T}$MSGFMT" >&6 4977else 4978 echo "$as_me:$LINENO: result: no" >&5 4979echo "${ECHO_T}no" >&6 4980fi 4981 if test "$MSGFMT" != "no"; then 4982 glib_save_LIBS="$LIBS" 4983 LIBS="$LIBS $INTLLIBS" 4984 4985for ac_func in dcgettext 4986do 4987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4988echo "$as_me:$LINENO: checking for $ac_func" >&5 4989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4990if eval "test \"\${$as_ac_var+set}\" = set"; then 4991 echo $ECHO_N "(cached) $ECHO_C" >&6 4992else 4993 cat >conftest.$ac_ext <<_ACEOF 4994/* confdefs.h. */ 4995_ACEOF 4996cat confdefs.h >>conftest.$ac_ext 4997cat >>conftest.$ac_ext <<_ACEOF 4998/* end confdefs.h. */ 4999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5000 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5001#define $ac_func innocuous_$ac_func 5002 5003/* System header to define __stub macros and hopefully few prototypes, 5004 which can conflict with char $ac_func (); below. 5005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5006 <limits.h> exists even on freestanding compilers. */ 5007 5008#ifdef __STDC__ 5009# include <limits.h> 5010#else 5011# include <assert.h> 5012#endif 5013 5014#undef $ac_func 5015 5016/* Override any gcc2 internal prototype to avoid an error. */ 5017#ifdef __cplusplus 5018extern "C" 5019{ 5020#endif 5021/* We use char because int might match the return type of a gcc2 5022 builtin and then its argument prototype would still apply. */ 5023char $ac_func (); 5024/* The GNU C library defines this for functions which it implements 5025 to always fail with ENOSYS. Some functions are actually named 5026 something starting with __ and the normal name is an alias. */ 5027#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5028choke me 5029#else 5030char (*f) () = $ac_func; 5031#endif 5032#ifdef __cplusplus 5033} 5034#endif 5035 5036int 5037main () 5038{ 5039return f != $ac_func; 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044rm -f conftest.$ac_objext conftest$ac_exeext 5045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5046 (eval $ac_link) 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } && 5053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5055 (eval $ac_try) 2>&5 5056 ac_status=$? 5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5058 (exit $ac_status); }; } && 5059 { ac_try='test -s conftest$ac_exeext' 5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5061 (eval $ac_try) 2>&5 5062 ac_status=$? 5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); }; }; then 5065 eval "$as_ac_var=yes" 5066else 5067 echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070eval "$as_ac_var=no" 5071fi 5072rm -f conftest.err conftest.$ac_objext \ 5073 conftest$ac_exeext conftest.$ac_ext 5074fi 5075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5077if test `eval echo '${'$as_ac_var'}'` = yes; then 5078 cat >>confdefs.h <<_ACEOF 5079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5080_ACEOF 5081 5082fi 5083done 5084 5085 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5086set dummy gmsgfmt; ac_word=$2 5087echo "$as_me:$LINENO: checking for $ac_word" >&5 5088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5089if test "${ac_cv_path_GMSGFMT+set}" = set; then 5090 echo $ECHO_N "(cached) $ECHO_C" >&6 5091else 5092 case $GMSGFMT in 5093 [\\/]* | ?:[\\/]*) 5094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5095 ;; 5096 *) 5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5098for as_dir in $PATH 5099do 5100 IFS=$as_save_IFS 5101 test -z "$as_dir" && as_dir=. 5102 for ac_exec_ext in '' $ac_executable_extensions; do 5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5104 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5106 break 2 5107 fi 5108done 5109done 5110 5111 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5112 ;; 5113esac 5114fi 5115GMSGFMT=$ac_cv_path_GMSGFMT 5116 5117if test -n "$GMSGFMT"; then 5118 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 5119echo "${ECHO_T}$GMSGFMT" >&6 5120else 5121 echo "$as_me:$LINENO: result: no" >&5 5122echo "${ECHO_T}no" >&6 5123fi 5124 5125 # Extract the first word of "xgettext", so it can be a program name with args. 5126set dummy xgettext; ac_word=$2 5127echo "$as_me:$LINENO: checking for $ac_word" >&5 5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5129if test "${ac_cv_path_XGETTEXT+set}" = set; then 5130 echo $ECHO_N "(cached) $ECHO_C" >&6 5131else 5132 case "$XGETTEXT" in 5133 /*) 5134 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5135 ;; 5136 *) 5137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5138 for ac_dir in $PATH; do 5139 test -z "$ac_dir" && ac_dir=. 5140 if test -f $ac_dir/$ac_word; then 5141 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 5142 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 5143 break 5144 fi 5145 fi 5146 done 5147 IFS="$ac_save_ifs" 5148 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5149 ;; 5150esac 5151fi 5152XGETTEXT="$ac_cv_path_XGETTEXT" 5153if test "$XGETTEXT" != ":"; then 5154 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 5155echo "${ECHO_T}$XGETTEXT" >&6 5156else 5157 echo "$as_me:$LINENO: result: no" >&5 5158echo "${ECHO_T}no" >&6 5159fi 5160 5161 cat >conftest.$ac_ext <<_ACEOF 5162/* confdefs.h. */ 5163_ACEOF 5164cat confdefs.h >>conftest.$ac_ext 5165cat >>conftest.$ac_ext <<_ACEOF 5166/* end confdefs.h. */ 5167 5168int 5169main () 5170{ 5171extern int _nl_msg_cat_cntr; 5172 return _nl_msg_cat_cntr 5173 ; 5174 return 0; 5175} 5176_ACEOF 5177rm -f conftest.$ac_objext conftest$ac_exeext 5178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5179 (eval $ac_link) 2>conftest.er1 5180 ac_status=$? 5181 grep -v '^ *+' conftest.er1 >conftest.err 5182 rm -f conftest.er1 5183 cat conftest.err >&5 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); } && 5186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5188 (eval $ac_try) 2>&5 5189 ac_status=$? 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); }; } && 5192 { ac_try='test -s conftest$ac_exeext' 5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5194 (eval $ac_try) 2>&5 5195 ac_status=$? 5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5197 (exit $ac_status); }; }; then 5198 CATOBJEXT=.gmo 5199 DATADIRNAME=share 5200else 5201 echo "$as_me: failed program was:" >&5 5202sed 's/^/| /' conftest.$ac_ext >&5 5203 5204case $host in 5205 *-*-solaris*) 5206 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 5207echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6 5208if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 cat >conftest.$ac_ext <<_ACEOF 5212/* confdefs.h. */ 5213_ACEOF 5214cat confdefs.h >>conftest.$ac_ext 5215cat >>conftest.$ac_ext <<_ACEOF 5216/* end confdefs.h. */ 5217/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5219#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 5220 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char bind_textdomain_codeset (); below. 5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5224 <limits.h> exists even on freestanding compilers. */ 5225 5226#ifdef __STDC__ 5227# include <limits.h> 5228#else 5229# include <assert.h> 5230#endif 5231 5232#undef bind_textdomain_codeset 5233 5234/* Override any gcc2 internal prototype to avoid an error. */ 5235#ifdef __cplusplus 5236extern "C" 5237{ 5238#endif 5239/* We use char because int might match the return type of a gcc2 5240 builtin and then its argument prototype would still apply. */ 5241char bind_textdomain_codeset (); 5242/* The GNU C library defines this for functions which it implements 5243 to always fail with ENOSYS. Some functions are actually named 5244 something starting with __ and the normal name is an alias. */ 5245#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset) 5246choke me 5247#else 5248char (*f) () = bind_textdomain_codeset; 5249#endif 5250#ifdef __cplusplus 5251} 5252#endif 5253 5254int 5255main () 5256{ 5257return f != bind_textdomain_codeset; 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262rm -f conftest.$ac_objext conftest$ac_exeext 5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5264 (eval $ac_link) 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && 5271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5273 (eval $ac_try) 2>&5 5274 ac_status=$? 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); }; } && 5277 { ac_try='test -s conftest$ac_exeext' 5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5279 (eval $ac_try) 2>&5 5280 ac_status=$? 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); }; }; then 5283 ac_cv_func_bind_textdomain_codeset=yes 5284else 5285 echo "$as_me: failed program was:" >&5 5286sed 's/^/| /' conftest.$ac_ext >&5 5287 5288ac_cv_func_bind_textdomain_codeset=no 5289fi 5290rm -f conftest.err conftest.$ac_objext \ 5291 conftest$ac_exeext conftest.$ac_ext 5292fi 5293echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 5294echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6 5295if test $ac_cv_func_bind_textdomain_codeset = yes; then 5296 CATOBJEXT=.gmo 5297 DATADIRNAME=share 5298else 5299 CATOBJEXT=.mo 5300 DATADIRNAME=lib 5301fi 5302 5303 ;; 5304 *) 5305 CATOBJEXT=.mo 5306 DATADIRNAME=lib 5307 ;; 5308 esac 5309fi 5310rm -f conftest.err conftest.$ac_objext \ 5311 conftest$ac_exeext conftest.$ac_ext 5312 LIBS="$glib_save_LIBS" 5313 INSTOBJEXT=.mo 5314 else 5315 gt_cv_have_gettext=no 5316 fi 5317 fi 5318 5319fi 5320 5321 5322 5323 if test "$gt_cv_have_gettext" = "yes" ; then 5324 5325cat >>confdefs.h <<\_ACEOF 5326#define ENABLE_NLS 1 5327_ACEOF 5328 5329 fi 5330 5331 if test "$XGETTEXT" != ":"; then 5332 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 5333 : ; 5334 else 5335 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 5336echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 5337 XGETTEXT=":" 5338 fi 5339 fi 5340 5341 # We need to process the po/ directory. 5342 POSUB=po 5343 5344 ac_config_commands="$ac_config_commands default-1" 5345 5346 5347 for lang in $ALL_LINGUAS; do 5348 GMOFILES="$GMOFILES $lang.gmo" 5349 POFILES="$POFILES $lang.po" 5350 done 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 if test "$gt_cv_have_gettext" = "yes"; then 5365 if test "x$ALL_LINGUAS" = "x"; then 5366 LINGUAS= 5367 else 5368 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 5369echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 5370 NEW_LINGUAS= 5371 for presentlang in $ALL_LINGUAS; do 5372 useit=no 5373 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 5374 desiredlanguages="$LINGUAS" 5375 else 5376 desiredlanguages="$ALL_LINGUAS" 5377 fi 5378 for desiredlang in $desiredlanguages; do 5379 # Use the presentlang catalog if desiredlang is 5380 # a. equal to presentlang, or 5381 # b. a variant of presentlang (because in this case, 5382 # presentlang can be used as a fallback for messages 5383 # which are not translated in the desiredlang catalog). 5384 case "$desiredlang" in 5385 "$presentlang"*) useit=yes;; 5386 esac 5387 done 5388 if test $useit = yes; then 5389 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 5390 fi 5391 done 5392 LINGUAS=$NEW_LINGUAS 5393 echo "$as_me:$LINENO: result: $LINGUAS" >&5 5394echo "${ECHO_T}$LINGUAS" >&6 5395 fi 5396 5397 if test -n "$LINGUAS"; then 5398 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 5399 fi 5400 fi 5401 5402 MKINSTALLDIRS= 5403 if test -n "$ac_aux_dir"; then 5404 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 5405 fi 5406 if test -z "$MKINSTALLDIRS"; then 5407 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5408 fi 5409 5410 5411 test -d po || mkdir po 5412 if test "x$srcdir" != "x."; then 5413 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 5414 posrcprefix="$srcdir/" 5415 else 5416 posrcprefix="../$srcdir/" 5417 fi 5418 else 5419 posrcprefix="../" 5420 fi 5421 rm -f po/POTFILES 5422 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 5423 < $srcdir/po/POTFILES.in > po/POTFILES 5424 5425 5426GETTEXT_PACKAGE=$PACKAGE 5427 5428 5429cat >>confdefs.h <<_ACEOF 5430#define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}" 5431_ACEOF 5432 5433 5434# Check whether --enable-glibtest or --disable-glibtest was given. 5435if test "${enable_glibtest+set}" = set; then 5436 enableval="$enable_glibtest" 5437 5438else 5439 enable_glibtest=yes 5440fi; 5441 5442 pkg_config_args=glib-2.0 5443 for module in . 5444 do 5445 case "$module" in 5446 gmodule) 5447 pkg_config_args="$pkg_config_args gmodule-2.0" 5448 ;; 5449 gobject) 5450 pkg_config_args="$pkg_config_args gobject-2.0" 5451 ;; 5452 gthread) 5453 pkg_config_args="$pkg_config_args gthread-2.0" 5454 ;; 5455 esac 5456 done 5457 5458 # Extract the first word of "pkg-config", so it can be a program name with args. 5459set dummy pkg-config; ac_word=$2 5460echo "$as_me:$LINENO: checking for $ac_word" >&5 5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5462if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5463 echo $ECHO_N "(cached) $ECHO_C" >&6 5464else 5465 case $PKG_CONFIG in 5466 [\\/]* | ?:[\\/]*) 5467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5468 ;; 5469 *) 5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481done 5482done 5483 5484 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5485 ;; 5486esac 5487fi 5488PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5489 5490if test -n "$PKG_CONFIG"; then 5491 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5492echo "${ECHO_T}$PKG_CONFIG" >&6 5493else 5494 echo "$as_me:$LINENO: result: no" >&5 5495echo "${ECHO_T}no" >&6 5496fi 5497 5498 5499 no_glib="" 5500 5501 if test x$PKG_CONFIG != xno ; then 5502 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then 5503 : 5504 else 5505 echo *** pkg-config too old; version 0.7 or better required. 5506 no_glib=yes 5507 PKG_CONFIG=no 5508 fi 5509 else 5510 no_glib=yes 5511 fi 5512 5513 min_glib_version=2.0.0 5514 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 5515echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 5516 5517 if test x$PKG_CONFIG != xno ; then 5518 ## don't try to run the test against uninstalled libtool libs 5519 if $PKG_CONFIG --uninstalled $pkg_config_args; then 5520 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 5521 enable_glibtest=no 5522 fi 5523 5524 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 5525 : 5526 else 5527 no_glib=yes 5528 fi 5529 fi 5530 5531 if test x"$no_glib" = x ; then 5532 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 5533 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` 5534 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 5535 5536 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` 5537 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` 5538 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5540 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5542 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 5543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5544 if test "x$enable_glibtest" = "xyes" ; then 5545 ac_save_CFLAGS="$CFLAGS" 5546 ac_save_LIBS="$LIBS" 5547 CFLAGS="$CFLAGS $GLIB_CFLAGS" 5548 LIBS="$GLIB_LIBS $LIBS" 5549 rm -f conf.glibtest 5550 if test "$cross_compiling" = yes; then 5551 echo $ac_n "cross compiling; assumed OK... $ac_c" 5552else 5553 cat >conftest.$ac_ext <<_ACEOF 5554/* confdefs.h. */ 5555_ACEOF 5556cat confdefs.h >>conftest.$ac_ext 5557cat >>conftest.$ac_ext <<_ACEOF 5558/* end confdefs.h. */ 5559 5560#include <glib.h> 5561#include <stdio.h> 5562#include <stdlib.h> 5563 5564int 5565main () 5566{ 5567 int major, minor, micro; 5568 char *tmp_version; 5569 5570 system ("touch conf.glibtest"); 5571 5572 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5573 tmp_version = g_strdup("$min_glib_version"); 5574 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5575 printf("%s, bad version string\n", "$min_glib_version"); 5576 exit(1); 5577 } 5578 5579 if ((glib_major_version != $glib_config_major_version) || 5580 (glib_minor_version != $glib_config_minor_version) || 5581 (glib_micro_version != $glib_config_micro_version)) 5582 { 5583 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 5584 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 5585 glib_major_version, glib_minor_version, glib_micro_version); 5586 printf ("*** was found! If pkg-config was correct, then it is best\n"); 5587 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); 5588 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 5589 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 5590 printf("*** required on your system.\n"); 5591 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 5592 printf("*** to point to the correct configuration files\n"); 5593 } 5594 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 5595 (glib_minor_version != GLIB_MINOR_VERSION) || 5596 (glib_micro_version != GLIB_MICRO_VERSION)) 5597 { 5598 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 5599 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 5600 printf("*** library (version %d.%d.%d)\n", 5601 glib_major_version, glib_minor_version, glib_micro_version); 5602 } 5603 else 5604 { 5605 if ((glib_major_version > major) || 5606 ((glib_major_version == major) && (glib_minor_version > minor)) || 5607 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 5608 { 5609 return 0; 5610 } 5611 else 5612 { 5613 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 5614 glib_major_version, glib_minor_version, glib_micro_version); 5615 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 5616 major, minor, micro); 5617 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 5618 printf("***\n"); 5619 printf("*** If you have already installed a sufficiently new version, this error\n"); 5620 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 5621 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 5622 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); 5623 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 5624 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 5625 printf("*** so that the correct libraries are found at run-time))\n"); 5626 } 5627 } 5628 return 1; 5629} 5630 5631_ACEOF 5632rm -f conftest$ac_exeext 5633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5634 (eval $ac_link) 2>&5 5635 ac_status=$? 5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5639 (eval $ac_try) 2>&5 5640 ac_status=$? 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; }; then 5643 : 5644else 5645 echo "$as_me: program exited with status $ac_status" >&5 5646echo "$as_me: failed program was:" >&5 5647sed 's/^/| /' conftest.$ac_ext >&5 5648 5649( exit $ac_status ) 5650no_glib=yes 5651fi 5652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5653fi 5654 CFLAGS="$ac_save_CFLAGS" 5655 LIBS="$ac_save_LIBS" 5656 fi 5657 fi 5658 if test "x$no_glib" = x ; then 5659 echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 5660echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6 5661 : 5662 else 5663 echo "$as_me:$LINENO: result: no" >&5 5664echo "${ECHO_T}no" >&6 5665 if test "$PKG_CONFIG" = "no" ; then 5666 echo "*** A new enough version of pkg-config was not found." 5667 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 5668 else 5669 if test -f conf.glibtest ; then 5670 : 5671 else 5672 echo "*** Could not run GLIB test program, checking why..." 5673 ac_save_CFLAGS="$CFLAGS" 5674 ac_save_LIBS="$LIBS" 5675 CFLAGS="$CFLAGS $GLIB_CFLAGS" 5676 LIBS="$LIBS $GLIB_LIBS" 5677 cat >conftest.$ac_ext <<_ACEOF 5678/* confdefs.h. */ 5679_ACEOF 5680cat confdefs.h >>conftest.$ac_ext 5681cat >>conftest.$ac_ext <<_ACEOF 5682/* end confdefs.h. */ 5683 5684#include <glib.h> 5685#include <stdio.h> 5686 5687int 5688main () 5689{ 5690 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 5691 ; 5692 return 0; 5693} 5694_ACEOF 5695rm -f conftest.$ac_objext conftest$ac_exeext 5696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5697 (eval $ac_link) 2>conftest.er1 5698 ac_status=$? 5699 grep -v '^ *+' conftest.er1 >conftest.err 5700 rm -f conftest.er1 5701 cat conftest.err >&5 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } && 5704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5706 (eval $ac_try) 2>&5 5707 ac_status=$? 5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5709 (exit $ac_status); }; } && 5710 { ac_try='test -s conftest$ac_exeext' 5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5712 (eval $ac_try) 2>&5 5713 ac_status=$? 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); }; }; then 5716 echo "*** The test program compiled, but did not run. This usually means" 5717 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 5718 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 5719 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 5720 echo "*** to the installed location Also, make sure you have run ldconfig if that" 5721 echo "*** is required on your system" 5722 echo "***" 5723 echo "*** If you have an old version installed, it is best to remove it, although" 5724 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 5725else 5726 echo "$as_me: failed program was:" >&5 5727sed 's/^/| /' conftest.$ac_ext >&5 5728 5729 echo "*** The test program failed to compile or link. See the file config.log for the" 5730 echo "*** exact error that occured. This usually means GLIB is incorrectly installed." 5731fi 5732rm -f conftest.err conftest.$ac_objext \ 5733 conftest$ac_exeext conftest.$ac_ext 5734 CFLAGS="$ac_save_CFLAGS" 5735 LIBS="$ac_save_LIBS" 5736 fi 5737 fi 5738 GLIB_CFLAGS="" 5739 GLIB_LIBS="" 5740 GLIB_GENMARSHAL="" 5741 GOBJECT_QUERY="" 5742 GLIB_MKENUMS="" 5743 { { echo "$as_me:$LINENO: error: \"You must have GLib development package installed\"" >&5 5744echo "$as_me: error: \"You must have GLib development package installed\"" >&2;} 5745 { (exit 1); exit 1; }; } 5746 fi 5747 5748 5749 5750 5751 5752 rm -f conf.glibtest 5753 5754# Check whether --enable-gtktest or --disable-gtktest was given. 5755if test "${enable_gtktest+set}" = set; then 5756 enableval="$enable_gtktest" 5757 5758else 5759 enable_gtktest=yes 5760fi; 5761 5762 pkg_config_args=gtk+-2.0 5763 for module in . 5764 do 5765 case "$module" in 5766 gthread) 5767 pkg_config_args="$pkg_config_args gthread-2.0" 5768 ;; 5769 esac 5770 done 5771 5772 no_gtk="" 5773 5774 # Extract the first word of "pkg-config", so it can be a program name with args. 5775set dummy pkg-config; ac_word=$2 5776echo "$as_me:$LINENO: checking for $ac_word" >&5 5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5778if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5779 echo $ECHO_N "(cached) $ECHO_C" >&6 5780else 5781 case $PKG_CONFIG in 5782 [\\/]* | ?:[\\/]*) 5783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5784 ;; 5785 *) 5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787for as_dir in $PATH 5788do 5789 IFS=$as_save_IFS 5790 test -z "$as_dir" && as_dir=. 5791 for ac_exec_ext in '' $ac_executable_extensions; do 5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5795 break 2 5796 fi 5797done 5798done 5799 5800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5801 ;; 5802esac 5803fi 5804PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5805 5806if test -n "$PKG_CONFIG"; then 5807 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5808echo "${ECHO_T}$PKG_CONFIG" >&6 5809else 5810 echo "$as_me:$LINENO: result: no" >&5 5811echo "${ECHO_T}no" >&6 5812fi 5813 5814 5815 if test x$PKG_CONFIG != xno ; then 5816 if pkg-config --atleast-pkgconfig-version 0.7 ; then 5817 : 5818 else 5819 echo "*** pkg-config too old; version 0.7 or better required." 5820 no_gtk=yes 5821 PKG_CONFIG=no 5822 fi 5823 else 5824 no_gtk=yes 5825 fi 5826 5827 min_gtk_version=2.0.0 5828 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 5829echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 5830 5831 if test x$PKG_CONFIG != xno ; then 5832 ## don't try to run the test against uninstalled libtool libs 5833 if $PKG_CONFIG --uninstalled $pkg_config_args; then 5834 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 5835 enable_gtktest=no 5836 fi 5837 5838 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 5839 : 5840 else 5841 no_gtk=yes 5842 fi 5843 fi 5844 5845 if test x"$no_gtk" = x ; then 5846 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 5847 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 5848 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 5849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5850 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 5851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5852 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 5853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5854 if test "x$enable_gtktest" = "xyes" ; then 5855 ac_save_CFLAGS="$CFLAGS" 5856 ac_save_LIBS="$LIBS" 5857 CFLAGS="$CFLAGS $GTK_CFLAGS" 5858 LIBS="$GTK_LIBS $LIBS" 5859 rm -f conf.gtktest 5860 if test "$cross_compiling" = yes; then 5861 echo $ac_n "cross compiling; assumed OK... $ac_c" 5862else 5863 cat >conftest.$ac_ext <<_ACEOF 5864/* confdefs.h. */ 5865_ACEOF 5866cat confdefs.h >>conftest.$ac_ext 5867cat >>conftest.$ac_ext <<_ACEOF 5868/* end confdefs.h. */ 5869 5870#include <gtk/gtk.h> 5871#include <stdio.h> 5872#include <stdlib.h> 5873 5874int 5875main () 5876{ 5877 int major, minor, micro; 5878 char *tmp_version; 5879 5880 system ("touch conf.gtktest"); 5881 5882 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5883 tmp_version = g_strdup("$min_gtk_version"); 5884 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5885 printf("%s, bad version string\n", "$min_gtk_version"); 5886 exit(1); 5887 } 5888 5889 if ((gtk_major_version != $gtk_config_major_version) || 5890 (gtk_minor_version != $gtk_config_minor_version) || 5891 (gtk_micro_version != $gtk_config_micro_version)) 5892 { 5893 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 5894 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 5895 gtk_major_version, gtk_minor_version, gtk_micro_version); 5896 printf ("*** was found! If pkg-config was correct, then it is best\n"); 5897 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 5898 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 5899 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 5900 printf("*** required on your system.\n"); 5901 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 5902 printf("*** to point to the correct configuration files\n"); 5903 } 5904 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 5905 (gtk_minor_version != GTK_MINOR_VERSION) || 5906 (gtk_micro_version != GTK_MICRO_VERSION)) 5907 { 5908 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 5909 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 5910 printf("*** library (version %d.%d.%d)\n", 5911 gtk_major_version, gtk_minor_version, gtk_micro_version); 5912 } 5913 else 5914 { 5915 if ((gtk_major_version > major) || 5916 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 5917 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 5918 { 5919 return 0; 5920 } 5921 else 5922 { 5923 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 5924 gtk_major_version, gtk_minor_version, gtk_micro_version); 5925 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 5926 major, minor, micro); 5927 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 5928 printf("***\n"); 5929 printf("*** If you have already installed a sufficiently new version, this error\n"); 5930 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 5931 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 5932 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 5933 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 5934 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 5935 printf("*** so that the correct libraries are found at run-time))\n"); 5936 } 5937 } 5938 return 1; 5939} 5940 5941_ACEOF 5942rm -f conftest$ac_exeext 5943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5944 (eval $ac_link) 2>&5 5945 ac_status=$? 5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5949 (eval $ac_try) 2>&5 5950 ac_status=$? 5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5952 (exit $ac_status); }; }; then 5953 : 5954else 5955 echo "$as_me: program exited with status $ac_status" >&5 5956echo "$as_me: failed program was:" >&5 5957sed 's/^/| /' conftest.$ac_ext >&5 5958 5959( exit $ac_status ) 5960no_gtk=yes 5961fi 5962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5963fi 5964 CFLAGS="$ac_save_CFLAGS" 5965 LIBS="$ac_save_LIBS" 5966 fi 5967 fi 5968 if test "x$no_gtk" = x ; then 5969 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 5970echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 5971 : 5972 else 5973 echo "$as_me:$LINENO: result: no" >&5 5974echo "${ECHO_T}no" >&6 5975 if test "$PKG_CONFIG" = "no" ; then 5976 echo "*** A new enough version of pkg-config was not found." 5977 echo "*** See http://pkgconfig.sourceforge.net" 5978 else 5979 if test -f conf.gtktest ; then 5980 : 5981 else 5982 echo "*** Could not run GTK+ test program, checking why..." 5983 ac_save_CFLAGS="$CFLAGS" 5984 ac_save_LIBS="$LIBS" 5985 CFLAGS="$CFLAGS $GTK_CFLAGS" 5986 LIBS="$LIBS $GTK_LIBS" 5987 cat >conftest.$ac_ext <<_ACEOF 5988/* confdefs.h. */ 5989_ACEOF 5990cat confdefs.h >>conftest.$ac_ext 5991cat >>conftest.$ac_ext <<_ACEOF 5992/* end confdefs.h. */ 5993 5994#include <gtk/gtk.h> 5995#include <stdio.h> 5996 5997int 5998main () 5999{ 6000 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 6001 ; 6002 return 0; 6003} 6004_ACEOF 6005rm -f conftest.$ac_objext conftest$ac_exeext 6006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6007 (eval $ac_link) 2>conftest.er1 6008 ac_status=$? 6009 grep -v '^ *+' conftest.er1 >conftest.err 6010 rm -f conftest.er1 6011 cat conftest.err >&5 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6013 (exit $ac_status); } && 6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6016 (eval $ac_try) 2>&5 6017 ac_status=$? 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); }; } && 6020 { ac_try='test -s conftest$ac_exeext' 6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6022 (eval $ac_try) 2>&5 6023 ac_status=$? 6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6025 (exit $ac_status); }; }; then 6026 echo "*** The test program compiled, but did not run. This usually means" 6027 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 6028 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 6029 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 6030 echo "*** to the installed location Also, make sure you have run ldconfig if that" 6031 echo "*** is required on your system" 6032 echo "***" 6033 echo "*** If you have an old version installed, it is best to remove it, although" 6034 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 6035else 6036 echo "$as_me: failed program was:" >&5 6037sed 's/^/| /' conftest.$ac_ext >&5 6038 6039 echo "*** The test program failed to compile or link. See the file config.log for the" 6040 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." 6041fi 6042rm -f conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044 CFLAGS="$ac_save_CFLAGS" 6045 LIBS="$ac_save_LIBS" 6046 fi 6047 fi 6048 GTK_CFLAGS="" 6049 GTK_LIBS="" 6050 { { echo "$as_me:$LINENO: error: \"You must have GTK+ 2.0 development package installed\"" >&5 6051echo "$as_me: error: \"You must have GTK+ 2.0 development package installed\"" >&2;} 6052 { (exit 1); exit 1; }; } 6053 fi 6054 6055 6056 rm -f conf.gtktest 6057 6058 6059 6060 6061 6062 6063if test "x$ac_path_x_has_been_run" != xyes; then 6064 echo "$as_me:$LINENO: checking for X" >&5 6065echo $ECHO_N "checking for X... $ECHO_C" >&6 6066 6067ac_path_x_has_been_run=yes 6068 6069# Check whether --with-x or --without-x was given. 6070if test "${with_x+set}" = set; then 6071 withval="$with_x" 6072 6073fi; 6074# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6075if test "x$with_x" = xno; then 6076 # The user explicitly disabled X. 6077 have_x=disabled 6078else 6079 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 6080 # Both variables are already set. 6081 have_x=yes 6082 else 6083 if test "${ac_cv_have_x+set}" = set; then 6084 echo $ECHO_N "(cached) $ECHO_C" >&6 6085else 6086 # One or both of the vars are not set, and there is no cached value. 6087ac_x_includes=no ac_x_libraries=no 6088rm -fr conftest.dir 6089if mkdir conftest.dir; then 6090 cd conftest.dir 6091 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 6092 cat >Imakefile <<'_ACEOF' 6093acfindx: 6094 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 6095_ACEOF 6096 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 6097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6098 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 6099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6100 for ac_extension in a so sl; do 6101 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 6102 test -f $ac_im_libdir/libX11.$ac_extension; then 6103 ac_im_usrlibdir=$ac_im_libdir; break 6104 fi 6105 done 6106 # Screen out bogus values from the imake configuration. They are 6107 # bogus both because they are the default anyway, and because 6108 # using them would break gcc on systems where it needs fixed includes. 6109 case $ac_im_incroot in 6110 /usr/include) ;; 6111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6112 esac 6113 case $ac_im_usrlibdir in 6114 /usr/lib | /lib) ;; 6115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6116 esac 6117 fi 6118 cd .. 6119 rm -fr conftest.dir 6120fi 6121 6122# Standard set of common directories for X headers. 6123# Check X11 before X11Rn because it is often a symlink to the current release. 6124ac_x_header_dirs=' 6125/usr/X11/include 6126/usr/X11R6/include 6127/usr/X11R5/include 6128/usr/X11R4/include 6129 6130/usr/include/X11 6131/usr/include/X11R6 6132/usr/include/X11R5 6133/usr/include/X11R4 6134 6135/usr/local/X11/include 6136/usr/local/X11R6/include 6137/usr/local/X11R5/include 6138/usr/local/X11R4/include 6139 6140/usr/local/include/X11 6141/usr/local/include/X11R6 6142/usr/local/include/X11R5 6143/usr/local/include/X11R4 6144 6145/usr/X386/include 6146/usr/x386/include 6147/usr/XFree86/include/X11 6148 6149/usr/include 6150/usr/local/include 6151/usr/unsupported/include 6152/usr/athena/include 6153/usr/local/x11r5/include 6154/usr/lpp/Xamples/include 6155 6156/usr/openwin/include 6157/usr/openwin/share/include' 6158 6159if test "$ac_x_includes" = no; then 6160 # Guess where to find include files, by looking for a specified header file. 6161 # First, try using that file with no special directory specified. 6162 cat >conftest.$ac_ext <<_ACEOF 6163/* confdefs.h. */ 6164_ACEOF 6165cat confdefs.h >>conftest.$ac_ext 6166cat >>conftest.$ac_ext <<_ACEOF 6167/* end confdefs.h. */ 6168#include <X11/Intrinsic.h> 6169_ACEOF 6170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6172 ac_status=$? 6173 grep -v '^ *+' conftest.er1 >conftest.err 6174 rm -f conftest.er1 6175 cat conftest.err >&5 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); } >/dev/null; then 6178 if test -s conftest.err; then 6179 ac_cpp_err=$ac_c_preproc_warn_flag 6180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6181 else 6182 ac_cpp_err= 6183 fi 6184else 6185 ac_cpp_err=yes 6186fi 6187if test -z "$ac_cpp_err"; then 6188 # We can compile using X headers with no special include directory. 6189ac_x_includes= 6190else 6191 echo "$as_me: failed program was:" >&5 6192sed 's/^/| /' conftest.$ac_ext >&5 6193 6194 for ac_dir in $ac_x_header_dirs; do 6195 if test -r "$ac_dir/X11/Intrinsic.h"; then 6196 ac_x_includes=$ac_dir 6197 break 6198 fi 6199done 6200fi 6201rm -f conftest.err conftest.$ac_ext 6202fi # $ac_x_includes = no 6203 6204if test "$ac_x_libraries" = no; then 6205 # Check for the libraries. 6206 # See if we find them without any special options. 6207 # Don't add to $LIBS permanently. 6208 ac_save_LIBS=$LIBS 6209 LIBS="-lXt $LIBS" 6210 cat >conftest.$ac_ext <<_ACEOF 6211/* confdefs.h. */ 6212_ACEOF 6213cat confdefs.h >>conftest.$ac_ext 6214cat >>conftest.$ac_ext <<_ACEOF 6215/* end confdefs.h. */ 6216#include <X11/Intrinsic.h> 6217int 6218main () 6219{ 6220XtMalloc (0) 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225rm -f conftest.$ac_objext conftest$ac_exeext 6226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6227 (eval $ac_link) 2>conftest.er1 6228 ac_status=$? 6229 grep -v '^ *+' conftest.er1 >conftest.err 6230 rm -f conftest.er1 6231 cat conftest.err >&5 6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6233 (exit $ac_status); } && 6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6236 (eval $ac_try) 2>&5 6237 ac_status=$? 6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6239 (exit $ac_status); }; } && 6240 { ac_try='test -s conftest$ac_exeext' 6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6242 (eval $ac_try) 2>&5 6243 ac_status=$? 6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6245 (exit $ac_status); }; }; then 6246 LIBS=$ac_save_LIBS 6247# We can link X programs with no special library path. 6248ac_x_libraries= 6249else 6250 echo "$as_me: failed program was:" >&5 6251sed 's/^/| /' conftest.$ac_ext >&5 6252 6253LIBS=$ac_save_LIBS 6254for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6255do 6256 # Don't even attempt the hair of trying to link an X program! 6257 for ac_extension in a so sl; do 6258 if test -r $ac_dir/libXt.$ac_extension; then 6259 ac_x_libraries=$ac_dir 6260 break 2 6261 fi 6262 done 6263done 6264fi 6265rm -f conftest.err conftest.$ac_objext \ 6266 conftest$ac_exeext conftest.$ac_ext 6267fi # $ac_x_libraries = no 6268 6269if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 6270 # Didn't find X anywhere. Cache the known absence of X. 6271 ac_cv_have_x="have_x=no" 6272else 6273 # Record where we found X for the cache. 6274 ac_cv_have_x="have_x=yes \ 6275 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 6276fi 6277fi 6278 6279 fi 6280 eval "$ac_cv_have_x" 6281fi # $with_x != no 6282 6283if test "$have_x" != yes; then 6284 echo "$as_me:$LINENO: result: $have_x" >&5 6285echo "${ECHO_T}$have_x" >&6 6286 no_x=yes 6287else 6288 # If each of the values was on the command line, it overrides each guess. 6289 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6290 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6291 # Update the cache value to reflect the command line values. 6292 ac_cv_have_x="have_x=yes \ 6293 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 6294 # It might be that x_includes is empty (headers are found in the 6295 # standard search path. Then output the corresponding message 6296 ac_out_x_includes=$x_includes 6297 test "x$x_includes" = x && ac_out_x_includes="in standard search path" 6298 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 6299echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 6300fi 6301 6302fi 6303if test "$no_x" = yes; then 6304 # Not all programs may use this symbol, but it does not hurt to define it. 6305 6306cat >>confdefs.h <<\_ACEOF 6307#define X_DISPLAY_MISSING 1 6308_ACEOF 6309 6310 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6311else 6312 if test -n "$x_includes"; then 6313 X_CFLAGS="$X_CFLAGS -I$x_includes" 6314 fi 6315 6316 # It would also be nice to do this for all -L options, not just this one. 6317 if test -n "$x_libraries"; then 6318 X_LIBS="$X_LIBS -L$x_libraries" 6319 # For Solaris; some versions of Sun CC require a space after -R and 6320 # others require no space. Words are not sufficient . . . . 6321 case `(uname -sr) 2>/dev/null` in 6322 "SunOS 5"*) 6323 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 6324echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 6325 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6326 cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341rm -f conftest.$ac_objext conftest$ac_exeext 6342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6343 (eval $ac_link) 2>conftest.er1 6344 ac_status=$? 6345 grep -v '^ *+' conftest.er1 >conftest.err 6346 rm -f conftest.er1 6347 cat conftest.err >&5 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && 6350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; } && 6356 { ac_try='test -s conftest$ac_exeext' 6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6358 (eval $ac_try) 2>&5 6359 ac_status=$? 6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6361 (exit $ac_status); }; }; then 6362 ac_R_nospace=yes 6363else 6364 echo "$as_me: failed program was:" >&5 6365sed 's/^/| /' conftest.$ac_ext >&5 6366 6367ac_R_nospace=no 6368fi 6369rm -f conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371 if test $ac_R_nospace = yes; then 6372 echo "$as_me:$LINENO: result: no" >&5 6373echo "${ECHO_T}no" >&6 6374 X_LIBS="$X_LIBS -R$x_libraries" 6375 else 6376 LIBS="$ac_xsave_LIBS -R $x_libraries" 6377 cat >conftest.$ac_ext <<_ACEOF 6378/* confdefs.h. */ 6379_ACEOF 6380cat confdefs.h >>conftest.$ac_ext 6381cat >>conftest.$ac_ext <<_ACEOF 6382/* end confdefs.h. */ 6383 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392rm -f conftest.$ac_objext conftest$ac_exeext 6393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6394 (eval $ac_link) 2>conftest.er1 6395 ac_status=$? 6396 grep -v '^ *+' conftest.er1 >conftest.err 6397 rm -f conftest.er1 6398 cat conftest.err >&5 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } && 6401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6403 (eval $ac_try) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); }; } && 6407 { ac_try='test -s conftest$ac_exeext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_R_space=yes 6414else 6415 echo "$as_me: failed program was:" >&5 6416sed 's/^/| /' conftest.$ac_ext >&5 6417 6418ac_R_space=no 6419fi 6420rm -f conftest.err conftest.$ac_objext \ 6421 conftest$ac_exeext conftest.$ac_ext 6422 if test $ac_R_space = yes; then 6423 echo "$as_me:$LINENO: result: yes" >&5 6424echo "${ECHO_T}yes" >&6 6425 X_LIBS="$X_LIBS -R $x_libraries" 6426 else 6427 echo "$as_me:$LINENO: result: neither works" >&5 6428echo "${ECHO_T}neither works" >&6 6429 fi 6430 fi 6431 LIBS=$ac_xsave_LIBS 6432 esac 6433 fi 6434 6435 # Check for system-dependent libraries X programs must link with. 6436 # Do this before checking for the system-independent R6 libraries 6437 # (-lICE), since we may need -lsocket or whatever for X linking. 6438 6439 if test "$ISC" = yes; then 6440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6441 else 6442 # Martyn Johnson says this is needed for Ultrix, if the X 6443 # libraries were built with DECnet support. And Karl Berry says 6444 # the Alpha needs dnet_stub (dnet does not exist). 6445 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6446 cat >conftest.$ac_ext <<_ACEOF 6447/* confdefs.h. */ 6448_ACEOF 6449cat confdefs.h >>conftest.$ac_ext 6450cat >>conftest.$ac_ext <<_ACEOF 6451/* end confdefs.h. */ 6452 6453/* Override any gcc2 internal prototype to avoid an error. */ 6454#ifdef __cplusplus 6455extern "C" 6456#endif 6457/* We use char because int might match the return type of a gcc2 6458 builtin and then its argument prototype would still apply. */ 6459char XOpenDisplay (); 6460int 6461main () 6462{ 6463XOpenDisplay (); 6464 ; 6465 return 0; 6466} 6467_ACEOF 6468rm -f conftest.$ac_objext conftest$ac_exeext 6469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6470 (eval $ac_link) 2>conftest.er1 6471 ac_status=$? 6472 grep -v '^ *+' conftest.er1 >conftest.err 6473 rm -f conftest.er1 6474 cat conftest.err >&5 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } && 6477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6479 (eval $ac_try) 2>&5 6480 ac_status=$? 6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6482 (exit $ac_status); }; } && 6483 { ac_try='test -s conftest$ac_exeext' 6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6485 (eval $ac_try) 2>&5 6486 ac_status=$? 6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6488 (exit $ac_status); }; }; then 6489 : 6490else 6491 echo "$as_me: failed program was:" >&5 6492sed 's/^/| /' conftest.$ac_ext >&5 6493 6494echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 6495echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 6496if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6497 echo $ECHO_N "(cached) $ECHO_C" >&6 6498else 6499 ac_check_lib_save_LIBS=$LIBS 6500LIBS="-ldnet $LIBS" 6501cat >conftest.$ac_ext <<_ACEOF 6502/* confdefs.h. */ 6503_ACEOF 6504cat confdefs.h >>conftest.$ac_ext 6505cat >>conftest.$ac_ext <<_ACEOF 6506/* end confdefs.h. */ 6507 6508/* Override any gcc2 internal prototype to avoid an error. */ 6509#ifdef __cplusplus 6510extern "C" 6511#endif 6512/* We use char because int might match the return type of a gcc2 6513 builtin and then its argument prototype would still apply. */ 6514char dnet_ntoa (); 6515int 6516main () 6517{ 6518dnet_ntoa (); 6519 ; 6520 return 0; 6521} 6522_ACEOF 6523rm -f conftest.$ac_objext conftest$ac_exeext 6524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6525 (eval $ac_link) 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } && 6532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6534 (eval $ac_try) 2>&5 6535 ac_status=$? 6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6537 (exit $ac_status); }; } && 6538 { ac_try='test -s conftest$ac_exeext' 6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6540 (eval $ac_try) 2>&5 6541 ac_status=$? 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6543 (exit $ac_status); }; }; then 6544 ac_cv_lib_dnet_dnet_ntoa=yes 6545else 6546 echo "$as_me: failed program was:" >&5 6547sed 's/^/| /' conftest.$ac_ext >&5 6548 6549ac_cv_lib_dnet_dnet_ntoa=no 6550fi 6551rm -f conftest.err conftest.$ac_objext \ 6552 conftest$ac_exeext conftest.$ac_ext 6553LIBS=$ac_check_lib_save_LIBS 6554fi 6555echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6556echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 6557if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6558 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6559fi 6560 6561 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6562 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6563echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 6564if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6565 echo $ECHO_N "(cached) $ECHO_C" >&6 6566else 6567 ac_check_lib_save_LIBS=$LIBS 6568LIBS="-ldnet_stub $LIBS" 6569cat >conftest.$ac_ext <<_ACEOF 6570/* confdefs.h. */ 6571_ACEOF 6572cat confdefs.h >>conftest.$ac_ext 6573cat >>conftest.$ac_ext <<_ACEOF 6574/* end confdefs.h. */ 6575 6576/* Override any gcc2 internal prototype to avoid an error. */ 6577#ifdef __cplusplus 6578extern "C" 6579#endif 6580/* We use char because int might match the return type of a gcc2 6581 builtin and then its argument prototype would still apply. */ 6582char dnet_ntoa (); 6583int 6584main () 6585{ 6586dnet_ntoa (); 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591rm -f conftest.$ac_objext conftest$ac_exeext 6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6593 (eval $ac_link) 2>conftest.er1 6594 ac_status=$? 6595 grep -v '^ *+' conftest.er1 >conftest.err 6596 rm -f conftest.er1 6597 cat conftest.err >&5 6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6599 (exit $ac_status); } && 6600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6602 (eval $ac_try) 2>&5 6603 ac_status=$? 6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6605 (exit $ac_status); }; } && 6606 { ac_try='test -s conftest$ac_exeext' 6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6608 (eval $ac_try) 2>&5 6609 ac_status=$? 6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6611 (exit $ac_status); }; }; then 6612 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6613else 6614 echo "$as_me: failed program was:" >&5 6615sed 's/^/| /' conftest.$ac_ext >&5 6616 6617ac_cv_lib_dnet_stub_dnet_ntoa=no 6618fi 6619rm -f conftest.err conftest.$ac_objext \ 6620 conftest$ac_exeext conftest.$ac_ext 6621LIBS=$ac_check_lib_save_LIBS 6622fi 6623echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6624echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 6625if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 6626 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6627fi 6628 6629 fi 6630fi 6631rm -f conftest.err conftest.$ac_objext \ 6632 conftest$ac_exeext conftest.$ac_ext 6633 LIBS="$ac_xsave_LIBS" 6634 6635 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6636 # to get the SysV transport functions. 6637 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6638 # needs -lnsl. 6639 # The nsl library prevents programs from opening the X display 6640 # on Irix 5.2, according to T.E. Dickey. 6641 # The functions gethostbyname, getservbyname, and inet_addr are 6642 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6643 echo "$as_me:$LINENO: checking for gethostbyname" >&5 6644echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 6645if test "${ac_cv_func_gethostbyname+set}" = set; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 cat >conftest.$ac_ext <<_ACEOF 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 6655 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6656#define gethostbyname innocuous_gethostbyname 6657 6658/* System header to define __stub macros and hopefully few prototypes, 6659 which can conflict with char gethostbyname (); below. 6660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6661 <limits.h> exists even on freestanding compilers. */ 6662 6663#ifdef __STDC__ 6664# include <limits.h> 6665#else 6666# include <assert.h> 6667#endif 6668 6669#undef gethostbyname 6670 6671/* Override any gcc2 internal prototype to avoid an error. */ 6672#ifdef __cplusplus 6673extern "C" 6674{ 6675#endif 6676/* We use char because int might match the return type of a gcc2 6677 builtin and then its argument prototype would still apply. */ 6678char gethostbyname (); 6679/* The GNU C library defines this for functions which it implements 6680 to always fail with ENOSYS. Some functions are actually named 6681 something starting with __ and the normal name is an alias. */ 6682#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 6683choke me 6684#else 6685char (*f) () = gethostbyname; 6686#endif 6687#ifdef __cplusplus 6688} 6689#endif 6690 6691int 6692main () 6693{ 6694return f != gethostbyname; 6695 ; 6696 return 0; 6697} 6698_ACEOF 6699rm -f conftest.$ac_objext conftest$ac_exeext 6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6701 (eval $ac_link) 2>conftest.er1 6702 ac_status=$? 6703 grep -v '^ *+' conftest.er1 >conftest.err 6704 rm -f conftest.er1 6705 cat conftest.err >&5 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6707 (exit $ac_status); } && 6708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6710 (eval $ac_try) 2>&5 6711 ac_status=$? 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 (exit $ac_status); }; } && 6714 { ac_try='test -s conftest$ac_exeext' 6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6716 (eval $ac_try) 2>&5 6717 ac_status=$? 6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6719 (exit $ac_status); }; }; then 6720 ac_cv_func_gethostbyname=yes 6721else 6722 echo "$as_me: failed program was:" >&5 6723sed 's/^/| /' conftest.$ac_ext >&5 6724 6725ac_cv_func_gethostbyname=no 6726fi 6727rm -f conftest.err conftest.$ac_objext \ 6728 conftest$ac_exeext conftest.$ac_ext 6729fi 6730echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 6731echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 6732 6733 if test $ac_cv_func_gethostbyname = no; then 6734 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6735echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 6736if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6737 echo $ECHO_N "(cached) $ECHO_C" >&6 6738else 6739 ac_check_lib_save_LIBS=$LIBS 6740LIBS="-lnsl $LIBS" 6741cat >conftest.$ac_ext <<_ACEOF 6742/* confdefs.h. */ 6743_ACEOF 6744cat confdefs.h >>conftest.$ac_ext 6745cat >>conftest.$ac_ext <<_ACEOF 6746/* end confdefs.h. */ 6747 6748/* Override any gcc2 internal prototype to avoid an error. */ 6749#ifdef __cplusplus 6750extern "C" 6751#endif 6752/* We use char because int might match the return type of a gcc2 6753 builtin and then its argument prototype would still apply. */ 6754char gethostbyname (); 6755int 6756main () 6757{ 6758gethostbyname (); 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763rm -f conftest.$ac_objext conftest$ac_exeext 6764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6765 (eval $ac_link) 2>conftest.er1 6766 ac_status=$? 6767 grep -v '^ *+' conftest.er1 >conftest.err 6768 rm -f conftest.er1 6769 cat conftest.err >&5 6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6771 (exit $ac_status); } && 6772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6774 (eval $ac_try) 2>&5 6775 ac_status=$? 6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6777 (exit $ac_status); }; } && 6778 { ac_try='test -s conftest$ac_exeext' 6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6780 (eval $ac_try) 2>&5 6781 ac_status=$? 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); }; }; then 6784 ac_cv_lib_nsl_gethostbyname=yes 6785else 6786 echo "$as_me: failed program was:" >&5 6787sed 's/^/| /' conftest.$ac_ext >&5 6788 6789ac_cv_lib_nsl_gethostbyname=no 6790fi 6791rm -f conftest.err conftest.$ac_objext \ 6792 conftest$ac_exeext conftest.$ac_ext 6793LIBS=$ac_check_lib_save_LIBS 6794fi 6795echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6796echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 6797if test $ac_cv_lib_nsl_gethostbyname = yes; then 6798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6799fi 6800 6801 if test $ac_cv_lib_nsl_gethostbyname = no; then 6802 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6803echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 6804if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6805 echo $ECHO_N "(cached) $ECHO_C" >&6 6806else 6807 ac_check_lib_save_LIBS=$LIBS 6808LIBS="-lbsd $LIBS" 6809cat >conftest.$ac_ext <<_ACEOF 6810/* confdefs.h. */ 6811_ACEOF 6812cat confdefs.h >>conftest.$ac_ext 6813cat >>conftest.$ac_ext <<_ACEOF 6814/* end confdefs.h. */ 6815 6816/* Override any gcc2 internal prototype to avoid an error. */ 6817#ifdef __cplusplus 6818extern "C" 6819#endif 6820/* We use char because int might match the return type of a gcc2 6821 builtin and then its argument prototype would still apply. */ 6822char gethostbyname (); 6823int 6824main () 6825{ 6826gethostbyname (); 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831rm -f conftest.$ac_objext conftest$ac_exeext 6832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6833 (eval $ac_link) 2>conftest.er1 6834 ac_status=$? 6835 grep -v '^ *+' conftest.er1 >conftest.err 6836 rm -f conftest.er1 6837 cat conftest.err >&5 6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6839 (exit $ac_status); } && 6840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6842 (eval $ac_try) 2>&5 6843 ac_status=$? 6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6845 (exit $ac_status); }; } && 6846 { ac_try='test -s conftest$ac_exeext' 6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6848 (eval $ac_try) 2>&5 6849 ac_status=$? 6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6851 (exit $ac_status); }; }; then 6852 ac_cv_lib_bsd_gethostbyname=yes 6853else 6854 echo "$as_me: failed program was:" >&5 6855sed 's/^/| /' conftest.$ac_ext >&5 6856 6857ac_cv_lib_bsd_gethostbyname=no 6858fi 6859rm -f conftest.err conftest.$ac_objext \ 6860 conftest$ac_exeext conftest.$ac_ext 6861LIBS=$ac_check_lib_save_LIBS 6862fi 6863echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6864echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 6865if test $ac_cv_lib_bsd_gethostbyname = yes; then 6866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6867fi 6868 6869 fi 6870 fi 6871 6872 # lieder@skyler.mavd.honeywell.com says without -lsocket, 6873 # socket/setsockopt and other routines are undefined under SCO ODT 6874 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6875 # on later versions), says Simon Leinen: it contains gethostby* 6876 # variants that don't use the name server (or something). -lsocket 6877 # must be given before -lnsl if both are needed. We assume that 6878 # if connect needs -lnsl, so does gethostbyname. 6879 echo "$as_me:$LINENO: checking for connect" >&5 6880echo $ECHO_N "checking for connect... $ECHO_C" >&6 6881if test "${ac_cv_func_connect+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 cat >conftest.$ac_ext <<_ACEOF 6885/* confdefs.h. */ 6886_ACEOF 6887cat confdefs.h >>conftest.$ac_ext 6888cat >>conftest.$ac_ext <<_ACEOF 6889/* end confdefs.h. */ 6890/* Define connect to an innocuous variant, in case <limits.h> declares connect. 6891 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6892#define connect innocuous_connect 6893 6894/* System header to define __stub macros and hopefully few prototypes, 6895 which can conflict with char connect (); below. 6896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6897 <limits.h> exists even on freestanding compilers. */ 6898 6899#ifdef __STDC__ 6900# include <limits.h> 6901#else 6902# include <assert.h> 6903#endif 6904 6905#undef connect 6906 6907/* Override any gcc2 internal prototype to avoid an error. */ 6908#ifdef __cplusplus 6909extern "C" 6910{ 6911#endif 6912/* We use char because int might match the return type of a gcc2 6913 builtin and then its argument prototype would still apply. */ 6914char connect (); 6915/* The GNU C library defines this for functions which it implements 6916 to always fail with ENOSYS. Some functions are actually named 6917 something starting with __ and the normal name is an alias. */ 6918#if defined (__stub_connect) || defined (__stub___connect) 6919choke me 6920#else 6921char (*f) () = connect; 6922#endif 6923#ifdef __cplusplus 6924} 6925#endif 6926 6927int 6928main () 6929{ 6930return f != connect; 6931 ; 6932 return 0; 6933} 6934_ACEOF 6935rm -f conftest.$ac_objext conftest$ac_exeext 6936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6937 (eval $ac_link) 2>conftest.er1 6938 ac_status=$? 6939 grep -v '^ *+' conftest.er1 >conftest.err 6940 rm -f conftest.er1 6941 cat conftest.err >&5 6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6943 (exit $ac_status); } && 6944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6946 (eval $ac_try) 2>&5 6947 ac_status=$? 6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6949 (exit $ac_status); }; } && 6950 { ac_try='test -s conftest$ac_exeext' 6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6952 (eval $ac_try) 2>&5 6953 ac_status=$? 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); }; }; then 6956 ac_cv_func_connect=yes 6957else 6958 echo "$as_me: failed program was:" >&5 6959sed 's/^/| /' conftest.$ac_ext >&5 6960 6961ac_cv_func_connect=no 6962fi 6963rm -f conftest.err conftest.$ac_objext \ 6964 conftest$ac_exeext conftest.$ac_ext 6965fi 6966echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6967echo "${ECHO_T}$ac_cv_func_connect" >&6 6968 6969 if test $ac_cv_func_connect = no; then 6970 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6971echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 6972if test "${ac_cv_lib_socket_connect+set}" = set; then 6973 echo $ECHO_N "(cached) $ECHO_C" >&6 6974else 6975 ac_check_lib_save_LIBS=$LIBS 6976LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6977cat >conftest.$ac_ext <<_ACEOF 6978/* confdefs.h. */ 6979_ACEOF 6980cat confdefs.h >>conftest.$ac_ext 6981cat >>conftest.$ac_ext <<_ACEOF 6982/* end confdefs.h. */ 6983 6984/* Override any gcc2 internal prototype to avoid an error. */ 6985#ifdef __cplusplus 6986extern "C" 6987#endif 6988/* We use char because int might match the return type of a gcc2 6989 builtin and then its argument prototype would still apply. */ 6990char connect (); 6991int 6992main () 6993{ 6994connect (); 6995 ; 6996 return 0; 6997} 6998_ACEOF 6999rm -f conftest.$ac_objext conftest$ac_exeext 7000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7001 (eval $ac_link) 2>conftest.er1 7002 ac_status=$? 7003 grep -v '^ *+' conftest.er1 >conftest.err 7004 rm -f conftest.er1 7005 cat conftest.err >&5 7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); } && 7008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7010 (eval $ac_try) 2>&5 7011 ac_status=$? 7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7013 (exit $ac_status); }; } && 7014 { ac_try='test -s conftest$ac_exeext' 7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 (eval $ac_try) 2>&5 7017 ac_status=$? 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); }; }; then 7020 ac_cv_lib_socket_connect=yes 7021else 7022 echo "$as_me: failed program was:" >&5 7023sed 's/^/| /' conftest.$ac_ext >&5 7024 7025ac_cv_lib_socket_connect=no 7026fi 7027rm -f conftest.err conftest.$ac_objext \ 7028 conftest$ac_exeext conftest.$ac_ext 7029LIBS=$ac_check_lib_save_LIBS 7030fi 7031echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 7032echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 7033if test $ac_cv_lib_socket_connect = yes; then 7034 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7035fi 7036 7037 fi 7038 7039 # Guillermo Gomez says -lposix is necessary on A/UX. 7040 echo "$as_me:$LINENO: checking for remove" >&5 7041echo $ECHO_N "checking for remove... $ECHO_C" >&6 7042if test "${ac_cv_func_remove+set}" = set; then 7043 echo $ECHO_N "(cached) $ECHO_C" >&6 7044else 7045 cat >conftest.$ac_ext <<_ACEOF 7046/* confdefs.h. */ 7047_ACEOF 7048cat confdefs.h >>conftest.$ac_ext 7049cat >>conftest.$ac_ext <<_ACEOF 7050/* end confdefs.h. */ 7051/* Define remove to an innocuous variant, in case <limits.h> declares remove. 7052 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7053#define remove innocuous_remove 7054 7055/* System header to define __stub macros and hopefully few prototypes, 7056 which can conflict with char remove (); below. 7057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7058 <limits.h> exists even on freestanding compilers. */ 7059 7060#ifdef __STDC__ 7061# include <limits.h> 7062#else 7063# include <assert.h> 7064#endif 7065 7066#undef remove 7067 7068/* Override any gcc2 internal prototype to avoid an error. */ 7069#ifdef __cplusplus 7070extern "C" 7071{ 7072#endif 7073/* We use char because int might match the return type of a gcc2 7074 builtin and then its argument prototype would still apply. */ 7075char remove (); 7076/* The GNU C library defines this for functions which it implements 7077 to always fail with ENOSYS. Some functions are actually named 7078 something starting with __ and the normal name is an alias. */ 7079#if defined (__stub_remove) || defined (__stub___remove) 7080choke me 7081#else 7082char (*f) () = remove; 7083#endif 7084#ifdef __cplusplus 7085} 7086#endif 7087 7088int 7089main () 7090{ 7091return f != remove; 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096rm -f conftest.$ac_objext conftest$ac_exeext 7097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7098 (eval $ac_link) 2>conftest.er1 7099 ac_status=$? 7100 grep -v '^ *+' conftest.er1 >conftest.err 7101 rm -f conftest.er1 7102 cat conftest.err >&5 7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7104 (exit $ac_status); } && 7105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7107 (eval $ac_try) 2>&5 7108 ac_status=$? 7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7110 (exit $ac_status); }; } && 7111 { ac_try='test -s conftest$ac_exeext' 7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7113 (eval $ac_try) 2>&5 7114 ac_status=$? 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7116 (exit $ac_status); }; }; then 7117 ac_cv_func_remove=yes 7118else 7119 echo "$as_me: failed program was:" >&5 7120sed 's/^/| /' conftest.$ac_ext >&5 7121 7122ac_cv_func_remove=no 7123fi 7124rm -f conftest.err conftest.$ac_objext \ 7125 conftest$ac_exeext conftest.$ac_ext 7126fi 7127echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 7128echo "${ECHO_T}$ac_cv_func_remove" >&6 7129 7130 if test $ac_cv_func_remove = no; then 7131 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 7132echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 7133if test "${ac_cv_lib_posix_remove+set}" = set; then 7134 echo $ECHO_N "(cached) $ECHO_C" >&6 7135else 7136 ac_check_lib_save_LIBS=$LIBS 7137LIBS="-lposix $LIBS" 7138cat >conftest.$ac_ext <<_ACEOF 7139/* confdefs.h. */ 7140_ACEOF 7141cat confdefs.h >>conftest.$ac_ext 7142cat >>conftest.$ac_ext <<_ACEOF 7143/* end confdefs.h. */ 7144 7145/* Override any gcc2 internal prototype to avoid an error. */ 7146#ifdef __cplusplus 7147extern "C" 7148#endif 7149/* We use char because int might match the return type of a gcc2 7150 builtin and then its argument prototype would still apply. */ 7151char remove (); 7152int 7153main () 7154{ 7155remove (); 7156 ; 7157 return 0; 7158} 7159_ACEOF 7160rm -f conftest.$ac_objext conftest$ac_exeext 7161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7162 (eval $ac_link) 2>conftest.er1 7163 ac_status=$? 7164 grep -v '^ *+' conftest.er1 >conftest.err 7165 rm -f conftest.er1 7166 cat conftest.err >&5 7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7168 (exit $ac_status); } && 7169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7171 (eval $ac_try) 2>&5 7172 ac_status=$? 7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7174 (exit $ac_status); }; } && 7175 { ac_try='test -s conftest$ac_exeext' 7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7177 (eval $ac_try) 2>&5 7178 ac_status=$? 7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7180 (exit $ac_status); }; }; then 7181 ac_cv_lib_posix_remove=yes 7182else 7183 echo "$as_me: failed program was:" >&5 7184sed 's/^/| /' conftest.$ac_ext >&5 7185 7186ac_cv_lib_posix_remove=no 7187fi 7188rm -f conftest.err conftest.$ac_objext \ 7189 conftest$ac_exeext conftest.$ac_ext 7190LIBS=$ac_check_lib_save_LIBS 7191fi 7192echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 7193echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 7194if test $ac_cv_lib_posix_remove = yes; then 7195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7196fi 7197 7198 fi 7199 7200 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7201 echo "$as_me:$LINENO: checking for shmat" >&5 7202echo $ECHO_N "checking for shmat... $ECHO_C" >&6 7203if test "${ac_cv_func_shmat+set}" = set; then 7204 echo $ECHO_N "(cached) $ECHO_C" >&6 7205else 7206 cat >conftest.$ac_ext <<_ACEOF 7207/* confdefs.h. */ 7208_ACEOF 7209cat confdefs.h >>conftest.$ac_ext 7210cat >>conftest.$ac_ext <<_ACEOF 7211/* end confdefs.h. */ 7212/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 7213 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7214#define shmat innocuous_shmat 7215 7216/* System header to define __stub macros and hopefully few prototypes, 7217 which can conflict with char shmat (); below. 7218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7219 <limits.h> exists even on freestanding compilers. */ 7220 7221#ifdef __STDC__ 7222# include <limits.h> 7223#else 7224# include <assert.h> 7225#endif 7226 7227#undef shmat 7228 7229/* Override any gcc2 internal prototype to avoid an error. */ 7230#ifdef __cplusplus 7231extern "C" 7232{ 7233#endif 7234/* We use char because int might match the return type of a gcc2 7235 builtin and then its argument prototype would still apply. */ 7236char shmat (); 7237/* The GNU C library defines this for functions which it implements 7238 to always fail with ENOSYS. Some functions are actually named 7239 something starting with __ and the normal name is an alias. */ 7240#if defined (__stub_shmat) || defined (__stub___shmat) 7241choke me 7242#else 7243char (*f) () = shmat; 7244#endif 7245#ifdef __cplusplus 7246} 7247#endif 7248 7249int 7250main () 7251{ 7252return f != shmat; 7253 ; 7254 return 0; 7255} 7256_ACEOF 7257rm -f conftest.$ac_objext conftest$ac_exeext 7258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7259 (eval $ac_link) 2>conftest.er1 7260 ac_status=$? 7261 grep -v '^ *+' conftest.er1 >conftest.err 7262 rm -f conftest.er1 7263 cat conftest.err >&5 7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7265 (exit $ac_status); } && 7266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7268 (eval $ac_try) 2>&5 7269 ac_status=$? 7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7271 (exit $ac_status); }; } && 7272 { ac_try='test -s conftest$ac_exeext' 7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7274 (eval $ac_try) 2>&5 7275 ac_status=$? 7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7277 (exit $ac_status); }; }; then 7278 ac_cv_func_shmat=yes 7279else 7280 echo "$as_me: failed program was:" >&5 7281sed 's/^/| /' conftest.$ac_ext >&5 7282 7283ac_cv_func_shmat=no 7284fi 7285rm -f conftest.err conftest.$ac_objext \ 7286 conftest$ac_exeext conftest.$ac_ext 7287fi 7288echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 7289echo "${ECHO_T}$ac_cv_func_shmat" >&6 7290 7291 if test $ac_cv_func_shmat = no; then 7292 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 7293echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 7294if test "${ac_cv_lib_ipc_shmat+set}" = set; then 7295 echo $ECHO_N "(cached) $ECHO_C" >&6 7296else 7297 ac_check_lib_save_LIBS=$LIBS 7298LIBS="-lipc $LIBS" 7299cat >conftest.$ac_ext <<_ACEOF 7300/* confdefs.h. */ 7301_ACEOF 7302cat confdefs.h >>conftest.$ac_ext 7303cat >>conftest.$ac_ext <<_ACEOF 7304/* end confdefs.h. */ 7305 7306/* Override any gcc2 internal prototype to avoid an error. */ 7307#ifdef __cplusplus 7308extern "C" 7309#endif 7310/* We use char because int might match the return type of a gcc2 7311 builtin and then its argument prototype would still apply. */ 7312char shmat (); 7313int 7314main () 7315{ 7316shmat (); 7317 ; 7318 return 0; 7319} 7320_ACEOF 7321rm -f conftest.$ac_objext conftest$ac_exeext 7322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7323 (eval $ac_link) 2>conftest.er1 7324 ac_status=$? 7325 grep -v '^ *+' conftest.er1 >conftest.err 7326 rm -f conftest.er1 7327 cat conftest.err >&5 7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7329 (exit $ac_status); } && 7330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7332 (eval $ac_try) 2>&5 7333 ac_status=$? 7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7335 (exit $ac_status); }; } && 7336 { ac_try='test -s conftest$ac_exeext' 7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7338 (eval $ac_try) 2>&5 7339 ac_status=$? 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); }; }; then 7342 ac_cv_lib_ipc_shmat=yes 7343else 7344 echo "$as_me: failed program was:" >&5 7345sed 's/^/| /' conftest.$ac_ext >&5 7346 7347ac_cv_lib_ipc_shmat=no 7348fi 7349rm -f conftest.err conftest.$ac_objext \ 7350 conftest$ac_exeext conftest.$ac_ext 7351LIBS=$ac_check_lib_save_LIBS 7352fi 7353echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 7354echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 7355if test $ac_cv_lib_ipc_shmat = yes; then 7356 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7357fi 7358 7359 fi 7360 fi 7361 7362 # Check for libraries that X11R6 Xt/Xaw programs need. 7363 ac_save_LDFLAGS=$LDFLAGS 7364 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7365 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7366 # check for ICE first), but we must link in the order -lSM -lICE or 7367 # we get undefined symbols. So assume we have SM if we have ICE. 7368 # These have to be linked with before -lX11, unlike the other 7369 # libraries we check for below, so use a different variable. 7370 # John Interrante, Karl Berry 7371 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 7372echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 7373if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 7374 echo $ECHO_N "(cached) $ECHO_C" >&6 7375else 7376 ac_check_lib_save_LIBS=$LIBS 7377LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7378cat >conftest.$ac_ext <<_ACEOF 7379/* confdefs.h. */ 7380_ACEOF 7381cat confdefs.h >>conftest.$ac_ext 7382cat >>conftest.$ac_ext <<_ACEOF 7383/* end confdefs.h. */ 7384 7385/* Override any gcc2 internal prototype to avoid an error. */ 7386#ifdef __cplusplus 7387extern "C" 7388#endif 7389/* We use char because int might match the return type of a gcc2 7390 builtin and then its argument prototype would still apply. */ 7391char IceConnectionNumber (); 7392int 7393main () 7394{ 7395IceConnectionNumber (); 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400rm -f conftest.$ac_objext conftest$ac_exeext 7401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7402 (eval $ac_link) 2>conftest.er1 7403 ac_status=$? 7404 grep -v '^ *+' conftest.er1 >conftest.err 7405 rm -f conftest.er1 7406 cat conftest.err >&5 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); } && 7409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7411 (eval $ac_try) 2>&5 7412 ac_status=$? 7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7414 (exit $ac_status); }; } && 7415 { ac_try='test -s conftest$ac_exeext' 7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7417 (eval $ac_try) 2>&5 7418 ac_status=$? 7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7420 (exit $ac_status); }; }; then 7421 ac_cv_lib_ICE_IceConnectionNumber=yes 7422else 7423 echo "$as_me: failed program was:" >&5 7424sed 's/^/| /' conftest.$ac_ext >&5 7425 7426ac_cv_lib_ICE_IceConnectionNumber=no 7427fi 7428rm -f conftest.err conftest.$ac_objext \ 7429 conftest$ac_exeext conftest.$ac_ext 7430LIBS=$ac_check_lib_save_LIBS 7431fi 7432echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7433echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 7434if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 7435 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7436fi 7437 7438 LDFLAGS=$ac_save_LDFLAGS 7439 7440fi 7441 7442 7443if test x"$x_libraries" = x""; then 7444 x_libpath_add= 7445else 7446 x_libpath_add="-L$x_libraries" 7447fi 7448if test x"$x_includes" = x""; then 7449 x_incpath_add= 7450else 7451 x_incpath_add="-I$x_includes" 7452fi 7453 7454if test "x$enable_startup_notification" = "xyes"; then 7455 7456 succeeded=no 7457 7458 if test -z "$PKG_CONFIG"; then 7459 # Extract the first word of "pkg-config", so it can be a program name with args. 7460set dummy pkg-config; ac_word=$2 7461echo "$as_me:$LINENO: checking for $ac_word" >&5 7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7463if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7464 echo $ECHO_N "(cached) $ECHO_C" >&6 7465else 7466 case $PKG_CONFIG in 7467 [\\/]* | ?:[\\/]*) 7468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7469 ;; 7470 *) 7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7472for as_dir in $PATH 7473do 7474 IFS=$as_save_IFS 7475 test -z "$as_dir" && as_dir=. 7476 for ac_exec_ext in '' $ac_executable_extensions; do 7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7480 break 2 7481 fi 7482done 7483done 7484 7485 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7486 ;; 7487esac 7488fi 7489PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7490 7491if test -n "$PKG_CONFIG"; then 7492 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7493echo "${ECHO_T}$PKG_CONFIG" >&6 7494else 7495 echo "$as_me:$LINENO: result: no" >&5 7496echo "${ECHO_T}no" >&6 7497fi 7498 7499 fi 7500 7501 if test "$PKG_CONFIG" = "no" ; then 7502 echo "*** The pkg-config script could not be found. Make sure it is" 7503 echo "*** in your path, or set the PKG_CONFIG environment variable" 7504 echo "*** to the full path to pkg-config." 7505 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 7506 else 7507 PKG_CONFIG_MIN_VERSION=0.9.0 7508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 7509 echo "$as_me:$LINENO: checking for libstartup-notification-1.0 >= 0.5" >&5 7510echo $ECHO_N "checking for libstartup-notification-1.0 >= 0.5... $ECHO_C" >&6 7511 7512 if $PKG_CONFIG --exists "libstartup-notification-1.0 >= 0.5" ; then 7513 echo "$as_me:$LINENO: result: yes" >&5 7514echo "${ECHO_T}yes" >&6 7515 succeeded=yes 7516 7517 echo "$as_me:$LINENO: checking STARTUP_NOTIFICATION_CFLAGS" >&5 7518echo $ECHO_N "checking STARTUP_NOTIFICATION_CFLAGS... $ECHO_C" >&6 7519 STARTUP_NOTIFICATION_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= 0.5"` 7520 echo "$as_me:$LINENO: result: $STARTUP_NOTIFICATION_CFLAGS" >&5 7521echo "${ECHO_T}$STARTUP_NOTIFICATION_CFLAGS" >&6 7522 7523 echo "$as_me:$LINENO: checking STARTUP_NOTIFICATION_LIBS" >&5 7524echo $ECHO_N "checking STARTUP_NOTIFICATION_LIBS... $ECHO_C" >&6 7525 STARTUP_NOTIFICATION_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0 >= 0.5"` 7526 echo "$as_me:$LINENO: result: $STARTUP_NOTIFICATION_LIBS" >&5 7527echo "${ECHO_T}$STARTUP_NOTIFICATION_LIBS" >&6 7528 else 7529 STARTUP_NOTIFICATION_CFLAGS="" 7530 STARTUP_NOTIFICATION_LIBS="" 7531 ## If we have a custom action on failure, don't print errors, but 7532 ## do set a variable so people can do so. 7533 STARTUP_NOTIFICATION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libstartup-notification-1.0 >= 0.5"` 7534 7535 fi 7536 7537 7538 7539 else 7540 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 7541 echo "*** See http://www.freedesktop.org/software/pkgconfig" 7542 fi 7543 fi 7544 7545 if test $succeeded = yes; then 7546 7547cat >>confdefs.h <<\_ACEOF 7548#define HAVE_STARTUP_NOTIFICATION 1 7549_ACEOF 7550 7551 enable_startup_notification=yes 7552 7553 else 7554 enable_startup_notification=no 7555 7556 fi 7557 7558 7559 7560 7561fi 7562 7563if test "x$enable_xscreensaver" = "xyes" ; then 7564 old_LIBS="$LIBS" 7565 LIBS="$LIBS $GTK_LIBS $x_libpath_add" 7566 XSS_LIBS="no" 7567 XSS_HEADERS="no" 7568 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5 7569echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6 7570if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then 7571 echo $ECHO_N "(cached) $ECHO_C" >&6 7572else 7573 ac_check_lib_save_LIBS=$LIBS 7574LIBS="-lXext -lX11 -lXext -lm $LIBS" 7575cat >conftest.$ac_ext <<_ACEOF 7576/* confdefs.h. */ 7577_ACEOF 7578cat confdefs.h >>conftest.$ac_ext 7579cat >>conftest.$ac_ext <<_ACEOF 7580/* end confdefs.h. */ 7581 7582/* Override any gcc2 internal prototype to avoid an error. */ 7583#ifdef __cplusplus 7584extern "C" 7585#endif 7586/* We use char because int might match the return type of a gcc2 7587 builtin and then its argument prototype would still apply. */ 7588char XScreenSaverRegister (); 7589int 7590main () 7591{ 7592XScreenSaverRegister (); 7593 ; 7594 return 0; 7595} 7596_ACEOF 7597rm -f conftest.$ac_objext conftest$ac_exeext 7598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7599 (eval $ac_link) 2>conftest.er1 7600 ac_status=$? 7601 grep -v '^ *+' conftest.er1 >conftest.err 7602 rm -f conftest.er1 7603 cat conftest.err >&5 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); } && 7606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7608 (eval $ac_try) 2>&5 7609 ac_status=$? 7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7611 (exit $ac_status); }; } && 7612 { ac_try='test -s conftest$ac_exeext' 7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7614 (eval $ac_try) 2>&5 7615 ac_status=$? 7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7617 (exit $ac_status); }; }; then 7618 ac_cv_lib_Xext_XScreenSaverRegister=yes 7619else 7620 echo "$as_me: failed program was:" >&5 7621sed 's/^/| /' conftest.$ac_ext >&5 7622 7623ac_cv_lib_Xext_XScreenSaverRegister=no 7624fi 7625rm -f conftest.err conftest.$ac_objext \ 7626 conftest$ac_exeext conftest.$ac_ext 7627LIBS=$ac_check_lib_save_LIBS 7628fi 7629echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5 7630echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6 7631if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then 7632 XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS" 7633fi 7634 7635 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5 7636echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6 7637if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then 7638 echo $ECHO_N "(cached) $ECHO_C" >&6 7639else 7640 ac_check_lib_save_LIBS=$LIBS 7641LIBS="-lXss -lX11 -lXext -lm $LIBS" 7642cat >conftest.$ac_ext <<_ACEOF 7643/* confdefs.h. */ 7644_ACEOF 7645cat confdefs.h >>conftest.$ac_ext 7646cat >>conftest.$ac_ext <<_ACEOF 7647/* end confdefs.h. */ 7648 7649/* Override any gcc2 internal prototype to avoid an error. */ 7650#ifdef __cplusplus 7651extern "C" 7652#endif 7653/* We use char because int might match the return type of a gcc2 7654 builtin and then its argument prototype would still apply. */ 7655char XScreenSaverRegister (); 7656int 7657main () 7658{ 7659XScreenSaverRegister (); 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664rm -f conftest.$ac_objext conftest$ac_exeext 7665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7666 (eval $ac_link) 2>conftest.er1 7667 ac_status=$? 7668 grep -v '^ *+' conftest.er1 >conftest.err 7669 rm -f conftest.er1 7670 cat conftest.err >&5 7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672 (exit $ac_status); } && 7673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7675 (eval $ac_try) 2>&5 7676 ac_status=$? 7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7678 (exit $ac_status); }; } && 7679 { ac_try='test -s conftest$ac_exeext' 7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7681 (eval $ac_try) 2>&5 7682 ac_status=$? 7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7684 (exit $ac_status); }; }; then 7685 ac_cv_lib_Xss_XScreenSaverRegister=yes 7686else 7687 echo "$as_me: failed program was:" >&5 7688sed 's/^/| /' conftest.$ac_ext >&5 7689 7690ac_cv_lib_Xss_XScreenSaverRegister=no 7691fi 7692rm -f conftest.err conftest.$ac_objext \ 7693 conftest$ac_exeext conftest.$ac_ext 7694LIBS=$ac_check_lib_save_LIBS 7695fi 7696echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5 7697echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6 7698if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then 7699 XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss" 7700fi 7701 7702 if test \! "$XSS_LIBS" = "no"; then 7703 oldCPPFLAGS="$CPPFLAGS" 7704 CPPFLAGS="$CPPFLAGS -I$x_includes" 7705 cat >conftest.$ac_ext <<_ACEOF 7706/* confdefs.h. */ 7707_ACEOF 7708cat confdefs.h >>conftest.$ac_ext 7709cat >>conftest.$ac_ext <<_ACEOF 7710/* end confdefs.h. */ 7711 7712#include <X11/Xlib.h> 7713#include <X11/extensions/scrnsaver.h> 7714 7715int 7716main () 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723rm -f conftest.$ac_objext 7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7725 (eval $ac_compile) 2>conftest.er1 7726 ac_status=$? 7727 grep -v '^ *+' conftest.er1 >conftest.err 7728 rm -f conftest.er1 7729 cat conftest.err >&5 7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 (exit $ac_status); } && 7732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7734 (eval $ac_try) 2>&5 7735 ac_status=$? 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); }; } && 7738 { ac_try='test -s conftest.$ac_objext' 7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7740 (eval $ac_try) 2>&5 7741 ac_status=$? 7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7743 (exit $ac_status); }; }; then 7744 7745 7746cat >>confdefs.h <<\_ACEOF 7747#define USE_XSCREENSAVER 1 7748_ACEOF 7749 7750else 7751 echo "$as_me: failed program was:" >&5 7752sed 's/^/| /' conftest.$ac_ext >&5 7753 7754enable_xscreensaver=no 7755 7756fi 7757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7758 CPPFLAGS="$oldCPPFLAGS" 7759 else 7760 XSS_LIBS="" 7761 enable_xscreensaver=no 7762 fi 7763 LIBS="$old_LIBS" 7764else 7765 XSS_LIBS="" 7766 enable_xscreensaver=no 7767fi 7768 7769 7770# Extract the first word of "gdk-pixbuf-csource", so it can be a program name with args. 7771set dummy gdk-pixbuf-csource; ac_word=$2 7772echo "$as_me:$LINENO: checking for $ac_word" >&5 7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7774if test "${ac_cv_path_gdkpixbufcsourcepath+set}" = set; then 7775 echo $ECHO_N "(cached) $ECHO_C" >&6 7776else 7777 case $gdkpixbufcsourcepath in 7778 [\\/]* | ?:[\\/]*) 7779 ac_cv_path_gdkpixbufcsourcepath="$gdkpixbufcsourcepath" # Let the user override the test with a path. 7780 ;; 7781 *) 7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7783for as_dir in $PATH 7784do 7785 IFS=$as_save_IFS 7786 test -z "$as_dir" && as_dir=. 7787 for ac_exec_ext in '' $ac_executable_extensions; do 7788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7789 ac_cv_path_gdkpixbufcsourcepath="$as_dir/$ac_word$ac_exec_ext" 7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7791 break 2 7792 fi 7793done 7794done 7795 7796 ;; 7797esac 7798fi 7799gdkpixbufcsourcepath=$ac_cv_path_gdkpixbufcsourcepath 7800 7801if test -n "$gdkpixbufcsourcepath"; then 7802 echo "$as_me:$LINENO: result: $gdkpixbufcsourcepath" >&5 7803echo "${ECHO_T}$gdkpixbufcsourcepath" >&6 7804else 7805 echo "$as_me:$LINENO: result: no" >&5 7806echo "${ECHO_T}no" >&6 7807fi 7808 7809 7810if test "x$gdkpixbufcsourcepath" = "x"; then 7811 { { echo "$as_me:$LINENO: error: \"You must have GTK+ 2.0+ development package installed\"" >&5 7812echo "$as_me: error: \"You must have GTK+ 2.0+ development package installed\"" >&2;} 7813 { (exit 1); exit 1; }; } 7814fi 7815 7816if test -n "$ac_tool_prefix"; then 7817 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7818set dummy ${ac_tool_prefix}ar; ac_word=$2 7819echo "$as_me:$LINENO: checking for $ac_word" >&5 7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7821if test "${ac_cv_prog_AR+set}" = set; then 7822 echo $ECHO_N "(cached) $ECHO_C" >&6 7823else 7824 if test -n "$AR"; then 7825 ac_cv_prog_AR="$AR" # Let the user override the test. 7826else 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7828for as_dir in $PATH 7829do 7830 IFS=$as_save_IFS 7831 test -z "$as_dir" && as_dir=. 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_AR="${ac_tool_prefix}ar" 7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839done 7840 7841fi 7842fi 7843AR=$ac_cv_prog_AR 7844if test -n "$AR"; then 7845 echo "$as_me:$LINENO: result: $AR" >&5 7846echo "${ECHO_T}$AR" >&6 7847else 7848 echo "$as_me:$LINENO: result: no" >&5 7849echo "${ECHO_T}no" >&6 7850fi 7851 7852fi 7853if test -z "$ac_cv_prog_AR"; then 7854 ac_ct_AR=$AR 7855 # Extract the first word of "ar", so it can be a program name with args. 7856set dummy ar; ac_word=$2 7857echo "$as_me:$LINENO: checking for $ac_word" >&5 7858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7859if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7860 echo $ECHO_N "(cached) $ECHO_C" >&6 7861else 7862 if test -n "$ac_ct_AR"; then 7863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7864else 7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866for as_dir in $PATH 7867do 7868 IFS=$as_save_IFS 7869 test -z "$as_dir" && as_dir=. 7870 for ac_exec_ext in '' $ac_executable_extensions; do 7871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7872 ac_cv_prog_ac_ct_AR="ar" 7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7874 break 2 7875 fi 7876done 7877done 7878 7879fi 7880fi 7881ac_ct_AR=$ac_cv_prog_ac_ct_AR 7882if test -n "$ac_ct_AR"; then 7883 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7884echo "${ECHO_T}$ac_ct_AR" >&6 7885else 7886 echo "$as_me:$LINENO: result: no" >&5 7887echo "${ECHO_T}no" >&6 7888fi 7889 7890 AR=$ac_ct_AR 7891else 7892 AR="$ac_cv_prog_AR" 7893fi 7894 7895if test -n "$ac_tool_prefix"; then 7896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7897set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7898echo "$as_me:$LINENO: checking for $ac_word" >&5 7899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7900if test "${ac_cv_prog_RANLIB+set}" = set; then 7901 echo $ECHO_N "(cached) $ECHO_C" >&6 7902else 7903 if test -n "$RANLIB"; then 7904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7905else 7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907for as_dir in $PATH 7908do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917done 7918done 7919 7920fi 7921fi 7922RANLIB=$ac_cv_prog_RANLIB 7923if test -n "$RANLIB"; then 7924 echo "$as_me:$LINENO: result: $RANLIB" >&5 7925echo "${ECHO_T}$RANLIB" >&6 7926else 7927 echo "$as_me:$LINENO: result: no" >&5 7928echo "${ECHO_T}no" >&6 7929fi 7930 7931fi 7932if test -z "$ac_cv_prog_RANLIB"; then 7933 ac_ct_RANLIB=$RANLIB 7934 # Extract the first word of "ranlib", so it can be a program name with args. 7935set dummy ranlib; ac_word=$2 7936echo "$as_me:$LINENO: checking for $ac_word" >&5 7937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7938if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7939 echo $ECHO_N "(cached) $ECHO_C" >&6 7940else 7941 if test -n "$ac_ct_RANLIB"; then 7942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7943else 7944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7945for as_dir in $PATH 7946do 7947 IFS=$as_save_IFS 7948 test -z "$as_dir" && as_dir=. 7949 for ac_exec_ext in '' $ac_executable_extensions; do 7950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7951 ac_cv_prog_ac_ct_RANLIB="ranlib" 7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7953 break 2 7954 fi 7955done 7956done 7957 7958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7959fi 7960fi 7961ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7962if test -n "$ac_ct_RANLIB"; then 7963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7964echo "${ECHO_T}$ac_ct_RANLIB" >&6 7965else 7966 echo "$as_me:$LINENO: result: no" >&5 7967echo "${ECHO_T}no" >&6 7968fi 7969 7970 RANLIB=$ac_ct_RANLIB 7971else 7972 RANLIB="$ac_cv_prog_RANLIB" 7973fi 7974 7975 7976 ac_config_files="$ac_config_files Makefile pixmaps/Makefile src/Makefile src/misc/Makefile src/libqcproto/Makefile po/Makefile.in" 7977cat >confcache <<\_ACEOF 7978# This file is a shell script that caches the results of configure 7979# tests run on this system so they can be shared between configure 7980# scripts and configure runs, see configure's option --config-cache. 7981# It is not useful on other systems. If it contains results you don't 7982# want to keep, you may remove or edit it. 7983# 7984# config.status only pays attention to the cache file if you give it 7985# the --recheck option to rerun configure. 7986# 7987# `ac_cv_env_foo' variables (set or unset) will be overridden when 7988# loading this file, other *unset* `ac_cv_foo' will be assigned the 7989# following values. 7990 7991_ACEOF 7992 7993# The following way of writing the cache mishandles newlines in values, 7994# but we know of no workaround that is simple, portable, and efficient. 7995# So, don't put newlines in cache variables' values. 7996# Ultrix sh set writes to stderr and can't be redirected directly, 7997# and sets the high bit in the cache file unless we assign to the vars. 7998{ 7999 (set) 2>&1 | 8000 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8001 *ac_space=\ *) 8002 # `set' does not quote correctly, so add quotes (double-quote 8003 # substitution turns \\\\ into \\, and sed turns \\ into \). 8004 sed -n \ 8005 "s/'/'\\\\''/g; 8006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8007 ;; 8008 *) 8009 # `set' quotes correctly as required by POSIX, so do not add quotes. 8010 sed -n \ 8011 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8012 ;; 8013 esac; 8014} | 8015 sed ' 8016 t clear 8017 : clear 8018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8019 t end 8020 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8021 : end' >>confcache 8022if diff $cache_file confcache >/dev/null 2>&1; then :; else 8023 if test -w $cache_file; then 8024 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8025 cat confcache >$cache_file 8026 else 8027 echo "not updating unwritable cache $cache_file" 8028 fi 8029fi 8030rm -f confcache 8031 8032test "x$prefix" = xNONE && prefix=$ac_default_prefix 8033# Let make expand exec_prefix. 8034test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8035 8036# VPATH may cause trouble with some makes, so we remove $(srcdir), 8037# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8038# trailing colons and then remove the whole line if VPATH becomes empty 8039# (actually we leave an empty line to preserve line numbers). 8040if test "x$srcdir" = x.; then 8041 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8042s/:*\$(srcdir):*/:/; 8043s/:*\${srcdir}:*/:/; 8044s/:*@srcdir@:*/:/; 8045s/^\([^=]*=[ ]*\):*/\1/; 8046s/:*$//; 8047s/^[^=]*=[ ]*$//; 8048}' 8049fi 8050 8051DEFS=-DHAVE_CONFIG_H 8052 8053ac_libobjs= 8054ac_ltlibobjs= 8055for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8056 # 1. Remove the extension, and $U if already installed. 8057 ac_i=`echo "$ac_i" | 8058 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8059 # 2. Add them. 8060 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8061 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8062done 8063LIBOBJS=$ac_libobjs 8064 8065LTLIBOBJS=$ac_ltlibobjs 8066 8067 8068if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8069 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 8070Usually this means the macro was only invoked conditionally." >&5 8071echo "$as_me: error: conditional \"AMDEP\" was never defined. 8072Usually this means the macro was only invoked conditionally." >&2;} 8073 { (exit 1); exit 1; }; } 8074fi 8075 8076: ${CONFIG_STATUS=./config.status} 8077ac_clean_files_save=$ac_clean_files 8078ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8079{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8080echo "$as_me: creating $CONFIG_STATUS" >&6;} 8081cat >$CONFIG_STATUS <<_ACEOF 8082#! $SHELL 8083# Generated by $as_me. 8084# Run this file to recreate the current configuration. 8085# Compiler output produced by configure, useful for debugging 8086# configure, is in config.log if it exists. 8087 8088debug=false 8089ac_cs_recheck=false 8090ac_cs_silent=false 8091SHELL=\${CONFIG_SHELL-$SHELL} 8092_ACEOF 8093 8094cat >>$CONFIG_STATUS <<\_ACEOF 8095## --------------------- ## 8096## M4sh Initialization. ## 8097## --------------------- ## 8098 8099# Be Bourne compatible 8100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8101 emulate sh 8102 NULLCMD=: 8103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8104 # is contrary to our usage. Disable this feature. 8105 alias -g '${1+"$@"}'='"$@"' 8106elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8107 set -o posix 8108fi 8109DUALCASE=1; export DUALCASE # for MKS sh 8110 8111# Support unset when possible. 8112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8113 as_unset=unset 8114else 8115 as_unset=false 8116fi 8117 8118 8119# Work around bugs in pre-3.0 UWIN ksh. 8120$as_unset ENV MAIL MAILPATH 8121PS1='$ ' 8122PS2='> ' 8123PS4='+ ' 8124 8125# NLS nuisances. 8126for as_var in \ 8127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8129 LC_TELEPHONE LC_TIME 8130do 8131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8132 eval $as_var=C; export $as_var 8133 else 8134 $as_unset $as_var 8135 fi 8136done 8137 8138# Required to use basename. 8139if expr a : '\(a\)' >/dev/null 2>&1; then 8140 as_expr=expr 8141else 8142 as_expr=false 8143fi 8144 8145if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8146 as_basename=basename 8147else 8148 as_basename=false 8149fi 8150 8151 8152# Name of the executable. 8153as_me=`$as_basename "$0" || 8154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8155 X"$0" : 'X\(//\)$' \| \ 8156 X"$0" : 'X\(/\)$' \| \ 8157 . : '\(.\)' 2>/dev/null || 8158echo X/"$0" | 8159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8160 /^X\/\(\/\/\)$/{ s//\1/; q; } 8161 /^X\/\(\/\).*/{ s//\1/; q; } 8162 s/.*/./; q'` 8163 8164 8165# PATH needs CR, and LINENO needs CR and PATH. 8166# Avoid depending upon Character Ranges. 8167as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8169as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8170as_cr_digits='0123456789' 8171as_cr_alnum=$as_cr_Letters$as_cr_digits 8172 8173# The user is always right. 8174if test "${PATH_SEPARATOR+set}" != set; then 8175 echo "#! /bin/sh" >conf$$.sh 8176 echo "exit 0" >>conf$$.sh 8177 chmod +x conf$$.sh 8178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8179 PATH_SEPARATOR=';' 8180 else 8181 PATH_SEPARATOR=: 8182 fi 8183 rm -f conf$$.sh 8184fi 8185 8186 8187 as_lineno_1=$LINENO 8188 as_lineno_2=$LINENO 8189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8190 test "x$as_lineno_1" != "x$as_lineno_2" && 8191 test "x$as_lineno_3" = "x$as_lineno_2" || { 8192 # Find who we are. Look in the path if we contain no path at all 8193 # relative or not. 8194 case $0 in 8195 *[\\/]* ) as_myself=$0 ;; 8196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8197for as_dir in $PATH 8198do 8199 IFS=$as_save_IFS 8200 test -z "$as_dir" && as_dir=. 8201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8202done 8203 8204 ;; 8205 esac 8206 # We did not find ourselves, most probably we were run as `sh COMMAND' 8207 # in which case we are not to be found in the path. 8208 if test "x$as_myself" = x; then 8209 as_myself=$0 8210 fi 8211 if test ! -f "$as_myself"; then 8212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8213echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8214 { (exit 1); exit 1; }; } 8215 fi 8216 case $CONFIG_SHELL in 8217 '') 8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8220do 8221 IFS=$as_save_IFS 8222 test -z "$as_dir" && as_dir=. 8223 for as_base in sh bash ksh sh5; do 8224 case $as_dir in 8225 /*) 8226 if ("$as_dir/$as_base" -c ' 8227 as_lineno_1=$LINENO 8228 as_lineno_2=$LINENO 8229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8230 test "x$as_lineno_1" != "x$as_lineno_2" && 8231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8234 CONFIG_SHELL=$as_dir/$as_base 8235 export CONFIG_SHELL 8236 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8237 fi;; 8238 esac 8239 done 8240done 8241;; 8242 esac 8243 8244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8245 # uniformly replaced by the line number. The first 'sed' inserts a 8246 # line-number line before each line; the second 'sed' does the real 8247 # work. The second script uses 'N' to pair each line-number line 8248 # with the numbered line, and appends trailing '-' during 8249 # substitution so that $LINENO is not a special case at line end. 8250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8252 sed '=' <$as_myself | 8253 sed ' 8254 N 8255 s,$,-, 8256 : loop 8257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8258 t loop 8259 s,-$,, 8260 s,^['$as_cr_digits']*\n,, 8261 ' >$as_me.lineno && 8262 chmod +x $as_me.lineno || 8263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8264echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8265 { (exit 1); exit 1; }; } 8266 8267 # Don't try to exec as it changes $[0], causing all sort of problems 8268 # (the dirname of $[0] is not the place where we might find the 8269 # original and so on. Autoconf is especially sensible to this). 8270 . ./$as_me.lineno 8271 # Exit status is that of the last command. 8272 exit 8273} 8274 8275 8276case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8277 *c*,-n*) ECHO_N= ECHO_C=' 8278' ECHO_T=' ' ;; 8279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8281esac 8282 8283if expr a : '\(a\)' >/dev/null 2>&1; then 8284 as_expr=expr 8285else 8286 as_expr=false 8287fi 8288 8289rm -f conf$$ conf$$.exe conf$$.file 8290echo >conf$$.file 8291if ln -s conf$$.file conf$$ 2>/dev/null; then 8292 # We could just check for DJGPP; but this test a) works b) is more generic 8293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8294 if test -f conf$$.exe; then 8295 # Don't use ln at all; we don't have any links 8296 as_ln_s='cp -p' 8297 else 8298 as_ln_s='ln -s' 8299 fi 8300elif ln conf$$.file conf$$ 2>/dev/null; then 8301 as_ln_s=ln 8302else 8303 as_ln_s='cp -p' 8304fi 8305rm -f conf$$ conf$$.exe conf$$.file 8306 8307if mkdir -p . 2>/dev/null; then 8308 as_mkdir_p=: 8309else 8310 test -d ./-p && rmdir ./-p 8311 as_mkdir_p=false 8312fi 8313 8314as_executable_p="test -f" 8315 8316# Sed expression to map a string onto a valid CPP name. 8317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8318 8319# Sed expression to map a string onto a valid variable name. 8320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8321 8322 8323# IFS 8324# We need space, tab and new line, in precisely that order. 8325as_nl=' 8326' 8327IFS=" $as_nl" 8328 8329# CDPATH. 8330$as_unset CDPATH 8331 8332exec 6>&1 8333 8334# Open the log real soon, to keep \$[0] and so on meaningful, and to 8335# report actual input values of CONFIG_FILES etc. instead of their 8336# values after options handling. Logging --version etc. is OK. 8337exec 5>>config.log 8338{ 8339 echo 8340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8341## Running $as_me. ## 8342_ASBOX 8343} >&5 8344cat >&5 <<_CSEOF 8345 8346This file was extended by $as_me, which was 8347generated by GNU Autoconf 2.59. Invocation command line was 8348 8349 CONFIG_FILES = $CONFIG_FILES 8350 CONFIG_HEADERS = $CONFIG_HEADERS 8351 CONFIG_LINKS = $CONFIG_LINKS 8352 CONFIG_COMMANDS = $CONFIG_COMMANDS 8353 $ $0 $@ 8354 8355_CSEOF 8356echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8357echo >&5 8358_ACEOF 8359 8360# Files that config.status was made for. 8361if test -n "$ac_config_files"; then 8362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8363fi 8364 8365if test -n "$ac_config_headers"; then 8366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8367fi 8368 8369if test -n "$ac_config_links"; then 8370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8371fi 8372 8373if test -n "$ac_config_commands"; then 8374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8375fi 8376 8377cat >>$CONFIG_STATUS <<\_ACEOF 8378 8379ac_cs_usage="\ 8380\`$as_me' instantiates files from templates according to the 8381current configuration. 8382 8383Usage: $0 [OPTIONS] [FILE]... 8384 8385 -h, --help print this help, then exit 8386 -V, --version print version number, then exit 8387 -q, --quiet do not print progress messages 8388 -d, --debug don't remove temporary files 8389 --recheck update $as_me by reconfiguring in the same conditions 8390 --file=FILE[:TEMPLATE] 8391 instantiate the configuration file FILE 8392 --header=FILE[:TEMPLATE] 8393 instantiate the configuration header FILE 8394 8395Configuration files: 8396$config_files 8397 8398Configuration headers: 8399$config_headers 8400 8401Configuration commands: 8402$config_commands 8403 8404Report bugs to <bug-autoconf@gnu.org>." 8405_ACEOF 8406 8407cat >>$CONFIG_STATUS <<_ACEOF 8408ac_cs_version="\\ 8409config.status 8410configured by $0, generated by GNU Autoconf 2.59, 8411 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8412 8413Copyright (C) 2003 Free Software Foundation, Inc. 8414This config.status script is free software; the Free Software Foundation 8415gives unlimited permission to copy, distribute and modify it." 8416srcdir=$srcdir 8417INSTALL="$INSTALL" 8418_ACEOF 8419 8420cat >>$CONFIG_STATUS <<\_ACEOF 8421# If no file are specified by the user, then we need to provide default 8422# value. By we need to know if files were specified by the user. 8423ac_need_defaults=: 8424while test $# != 0 8425do 8426 case $1 in 8427 --*=*) 8428 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8429 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8430 ac_shift=: 8431 ;; 8432 -*) 8433 ac_option=$1 8434 ac_optarg=$2 8435 ac_shift=shift 8436 ;; 8437 *) # This is not an option, so the user has probably given explicit 8438 # arguments. 8439 ac_option=$1 8440 ac_need_defaults=false;; 8441 esac 8442 8443 case $ac_option in 8444 # Handling of the options. 8445_ACEOF 8446cat >>$CONFIG_STATUS <<\_ACEOF 8447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8448 ac_cs_recheck=: ;; 8449 --version | --vers* | -V ) 8450 echo "$ac_cs_version"; exit 0 ;; 8451 --he | --h) 8452 # Conflict between --help and --header 8453 { { echo "$as_me:$LINENO: error: ambiguous option: $1 8454Try \`$0 --help' for more information." >&5 8455echo "$as_me: error: ambiguous option: $1 8456Try \`$0 --help' for more information." >&2;} 8457 { (exit 1); exit 1; }; };; 8458 --help | --hel | -h ) 8459 echo "$ac_cs_usage"; exit 0 ;; 8460 --debug | --d* | -d ) 8461 debug=: ;; 8462 --file | --fil | --fi | --f ) 8463 $ac_shift 8464 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8465 ac_need_defaults=false;; 8466 --header | --heade | --head | --hea ) 8467 $ac_shift 8468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8469 ac_need_defaults=false;; 8470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8471 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8472 ac_cs_silent=: ;; 8473 8474 # This is an error. 8475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8476Try \`$0 --help' for more information." >&5 8477echo "$as_me: error: unrecognized option: $1 8478Try \`$0 --help' for more information." >&2;} 8479 { (exit 1); exit 1; }; } ;; 8480 8481 *) ac_config_targets="$ac_config_targets $1" ;; 8482 8483 esac 8484 shift 8485done 8486 8487ac_configure_extra_args= 8488 8489if $ac_cs_silent; then 8490 exec 6>/dev/null 8491 ac_configure_extra_args="$ac_configure_extra_args --silent" 8492fi 8493 8494_ACEOF 8495cat >>$CONFIG_STATUS <<_ACEOF 8496if \$ac_cs_recheck; then 8497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8499fi 8500 8501_ACEOF 8502 8503cat >>$CONFIG_STATUS <<_ACEOF 8504# 8505# INIT-COMMANDS section. 8506# 8507 8508AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 8509 8510 8511_ACEOF 8512 8513 8514 8515cat >>$CONFIG_STATUS <<\_ACEOF 8516for ac_config_target in $ac_config_targets 8517do 8518 case "$ac_config_target" in 8519 # Handling of arguments. 8520 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8521 "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 8522 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8523 "src/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;; 8524 "src/libqcproto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libqcproto/Makefile" ;; 8525 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 8526 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 8527 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 8528 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8529 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8530echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8531 { (exit 1); exit 1; }; };; 8532 esac 8533done 8534 8535# If the user did not use the arguments to specify the items to instantiate, 8536# then the envvar interface is used. Set only those that are not. 8537# We use the long form for the default assignment because of an extremely 8538# bizarre bug on SunOS 4.1.3. 8539if $ac_need_defaults; then 8540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8543fi 8544 8545# Have a temporary directory for convenience. Make it in the build tree 8546# simply because there is no reason to put it here, and in addition, 8547# creating and moving files from /tmp can sometimes cause problems. 8548# Create a temporary directory, and hook for its removal unless debugging. 8549$debug || 8550{ 8551 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8552 trap '{ (exit 1); exit 1; }' 1 2 13 15 8553} 8554 8555# Create a (secure) tmp directory for tmp files. 8556 8557{ 8558 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8559 test -n "$tmp" && test -d "$tmp" 8560} || 8561{ 8562 tmp=./confstat$$-$RANDOM 8563 (umask 077 && mkdir $tmp) 8564} || 8565{ 8566 echo "$me: cannot create a temporary directory in ." >&2 8567 { (exit 1); exit 1; } 8568} 8569 8570_ACEOF 8571 8572cat >>$CONFIG_STATUS <<_ACEOF 8573 8574# 8575# CONFIG_FILES section. 8576# 8577 8578# No need to generate the scripts if there are no CONFIG_FILES. 8579# This happens for instance when ./config.status config.h 8580if test -n "\$CONFIG_FILES"; then 8581 # Protect against being on the right side of a sed subst in config.status. 8582 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8583 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8584s,@SHELL@,$SHELL,;t t 8585s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8586s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8587s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8588s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 8589s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 8590s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 8591s,@exec_prefix@,$exec_prefix,;t t 8592s,@prefix@,$prefix,;t t 8593s,@program_transform_name@,$program_transform_name,;t t 8594s,@bindir@,$bindir,;t t 8595s,@sbindir@,$sbindir,;t t 8596s,@libexecdir@,$libexecdir,;t t 8597s,@datadir@,$datadir,;t t 8598s,@sysconfdir@,$sysconfdir,;t t 8599s,@sharedstatedir@,$sharedstatedir,;t t 8600s,@localstatedir@,$localstatedir,;t t 8601s,@libdir@,$libdir,;t t 8602s,@includedir@,$includedir,;t t 8603s,@oldincludedir@,$oldincludedir,;t t 8604s,@infodir@,$infodir,;t t 8605s,@mandir@,$mandir,;t t 8606s,@build_alias@,$build_alias,;t t 8607s,@host_alias@,$host_alias,;t t 8608s,@target_alias@,$target_alias,;t t 8609s,@DEFS@,$DEFS,;t t 8610s,@ECHO_C@,$ECHO_C,;t t 8611s,@ECHO_N@,$ECHO_N,;t t 8612s,@ECHO_T@,$ECHO_T,;t t 8613s,@LIBS@,$LIBS,;t t 8614s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 8615s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 8616s,@INSTALL_DATA@,$INSTALL_DATA,;t t 8617s,@PACKAGE@,$PACKAGE,;t t 8618s,@VERSION@,$VERSION,;t t 8619s,@ACLOCAL@,$ACLOCAL,;t t 8620s,@AUTOCONF@,$AUTOCONF,;t t 8621s,@AUTOMAKE@,$AUTOMAKE,;t t 8622s,@AUTOHEADER@,$AUTOHEADER,;t t 8623s,@MAKEINFO@,$MAKEINFO,;t t 8624s,@AMTAR@,$AMTAR,;t t 8625s,@install_sh@,$install_sh,;t t 8626s,@STRIP@,$STRIP,;t t 8627s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 8628s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 8629s,@AWK@,$AWK,;t t 8630s,@SET_MAKE@,$SET_MAKE,;t t 8631s,@CC@,$CC,;t t 8632s,@CFLAGS@,$CFLAGS,;t t 8633s,@LDFLAGS@,$LDFLAGS,;t t 8634s,@CPPFLAGS@,$CPPFLAGS,;t t 8635s,@ac_ct_CC@,$ac_ct_CC,;t t 8636s,@EXEEXT@,$EXEEXT,;t t 8637s,@OBJEXT@,$OBJEXT,;t t 8638s,@DEPDIR@,$DEPDIR,;t t 8639s,@am__include@,$am__include,;t t 8640s,@am__quote@,$am__quote,;t t 8641s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 8642s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 8643s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 8644s,@CCDEPMODE@,$CCDEPMODE,;t t 8645s,@CPP@,$CPP,;t t 8646s,@EGREP@,$EGREP,;t t 8647s,@USE_NLS@,$USE_NLS,;t t 8648s,@MSGFMT@,$MSGFMT,;t t 8649s,@GMSGFMT@,$GMSGFMT,;t t 8650s,@XGETTEXT@,$XGETTEXT,;t t 8651s,@CATALOGS@,$CATALOGS,;t t 8652s,@CATOBJEXT@,$CATOBJEXT,;t t 8653s,@DATADIRNAME@,$DATADIRNAME,;t t 8654s,@GMOFILES@,$GMOFILES,;t t 8655s,@INSTOBJEXT@,$INSTOBJEXT,;t t 8656s,@INTLLIBS@,$INTLLIBS,;t t 8657s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t 8658s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t 8659s,@POFILES@,$POFILES,;t t 8660s,@POSUB@,$POSUB,;t t 8661s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 8662s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 8663s,@PKG_CONFIG@,$PKG_CONFIG,;t t 8664s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t 8665s,@GLIB_LIBS@,$GLIB_LIBS,;t t 8666s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t 8667s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t 8668s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t 8669s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 8670s,@GTK_LIBS@,$GTK_LIBS,;t t 8671s,@X_CFLAGS@,$X_CFLAGS,;t t 8672s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 8673s,@X_LIBS@,$X_LIBS,;t t 8674s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 8675s,@STARTUP_NOTIFICATION_CFLAGS@,$STARTUP_NOTIFICATION_CFLAGS,;t t 8676s,@STARTUP_NOTIFICATION_LIBS@,$STARTUP_NOTIFICATION_LIBS,;t t 8677s,@XSS_LIBS@,$XSS_LIBS,;t t 8678s,@gdkpixbufcsourcepath@,$gdkpixbufcsourcepath,;t t 8679s,@AR@,$AR,;t t 8680s,@ac_ct_AR@,$ac_ct_AR,;t t 8681s,@RANLIB@,$RANLIB,;t t 8682s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 8683s,@LIBOBJS@,$LIBOBJS,;t t 8684s,@LTLIBOBJS@,$LTLIBOBJS,;t t 8685CEOF 8686 8687_ACEOF 8688 8689 cat >>$CONFIG_STATUS <<\_ACEOF 8690 # Split the substitutions into bite-sized pieces for seds with 8691 # small command number limits, like on Digital OSF/1 and HP-UX. 8692 ac_max_sed_lines=48 8693 ac_sed_frag=1 # Number of current file. 8694 ac_beg=1 # First line for current file. 8695 ac_end=$ac_max_sed_lines # Line after last line for current file. 8696 ac_more_lines=: 8697 ac_sed_cmds= 8698 while $ac_more_lines; do 8699 if test $ac_beg -gt 1; then 8700 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8701 else 8702 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8703 fi 8704 if test ! -s $tmp/subs.frag; then 8705 ac_more_lines=false 8706 else 8707 # The purpose of the label and of the branching condition is to 8708 # speed up the sed processing (if there are no `@' at all, there 8709 # is no need to browse any of the substitutions). 8710 # These are the two extra sed commands mentioned above. 8711 (echo ':t 8712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 8713 if test -z "$ac_sed_cmds"; then 8714 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 8715 else 8716 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 8717 fi 8718 ac_sed_frag=`expr $ac_sed_frag + 1` 8719 ac_beg=$ac_end 8720 ac_end=`expr $ac_end + $ac_max_sed_lines` 8721 fi 8722 done 8723 if test -z "$ac_sed_cmds"; then 8724 ac_sed_cmds=cat 8725 fi 8726fi # test -n "$CONFIG_FILES" 8727 8728_ACEOF 8729cat >>$CONFIG_STATUS <<\_ACEOF 8730for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 8731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8732 case $ac_file in 8733 - | *:- | *:-:* ) # input from stdin 8734 cat >$tmp/stdin 8735 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8737 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8739 * ) ac_file_in=$ac_file.in ;; 8740 esac 8741 8742 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 8743 ac_dir=`(dirname "$ac_file") 2>/dev/null || 8744$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8745 X"$ac_file" : 'X\(//\)[^/]' \| \ 8746 X"$ac_file" : 'X\(//\)$' \| \ 8747 X"$ac_file" : 'X\(/\)' \| \ 8748 . : '\(.\)' 2>/dev/null || 8749echo X"$ac_file" | 8750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8751 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8752 /^X\(\/\/\)$/{ s//\1/; q; } 8753 /^X\(\/\).*/{ s//\1/; q; } 8754 s/.*/./; q'` 8755 { if $as_mkdir_p; then 8756 mkdir -p "$ac_dir" 8757 else 8758 as_dir="$ac_dir" 8759 as_dirs= 8760 while test ! -d "$as_dir"; do 8761 as_dirs="$as_dir $as_dirs" 8762 as_dir=`(dirname "$as_dir") 2>/dev/null || 8763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8764 X"$as_dir" : 'X\(//\)[^/]' \| \ 8765 X"$as_dir" : 'X\(//\)$' \| \ 8766 X"$as_dir" : 'X\(/\)' \| \ 8767 . : '\(.\)' 2>/dev/null || 8768echo X"$as_dir" | 8769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8770 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8771 /^X\(\/\/\)$/{ s//\1/; q; } 8772 /^X\(\/\).*/{ s//\1/; q; } 8773 s/.*/./; q'` 8774 done 8775 test ! -n "$as_dirs" || mkdir $as_dirs 8776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8777echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8778 { (exit 1); exit 1; }; }; } 8779 8780 ac_builddir=. 8781 8782if test "$ac_dir" != .; then 8783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8784 # A "../" for each directory in $ac_dir_suffix. 8785 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 8786else 8787 ac_dir_suffix= ac_top_builddir= 8788fi 8789 8790case $srcdir in 8791 .) # No --srcdir option. We are building in place. 8792 ac_srcdir=. 8793 if test -z "$ac_top_builddir"; then 8794 ac_top_srcdir=. 8795 else 8796 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 8797 fi ;; 8798 [\\/]* | ?:[\\/]* ) # Absolute path. 8799 ac_srcdir=$srcdir$ac_dir_suffix; 8800 ac_top_srcdir=$srcdir ;; 8801 *) # Relative path. 8802 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 8803 ac_top_srcdir=$ac_top_builddir$srcdir ;; 8804esac 8805 8806# Do not use `cd foo && pwd` to compute absolute paths, because 8807# the directories may not exist. 8808case `pwd` in 8809.) ac_abs_builddir="$ac_dir";; 8810*) 8811 case "$ac_dir" in 8812 .) ac_abs_builddir=`pwd`;; 8813 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 8814 *) ac_abs_builddir=`pwd`/"$ac_dir";; 8815 esac;; 8816esac 8817case $ac_abs_builddir in 8818.) ac_abs_top_builddir=${ac_top_builddir}.;; 8819*) 8820 case ${ac_top_builddir}. in 8821 .) ac_abs_top_builddir=$ac_abs_builddir;; 8822 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 8823 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 8824 esac;; 8825esac 8826case $ac_abs_builddir in 8827.) ac_abs_srcdir=$ac_srcdir;; 8828*) 8829 case $ac_srcdir in 8830 .) ac_abs_srcdir=$ac_abs_builddir;; 8831 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 8832 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 8833 esac;; 8834esac 8835case $ac_abs_builddir in 8836.) ac_abs_top_srcdir=$ac_top_srcdir;; 8837*) 8838 case $ac_top_srcdir in 8839 .) ac_abs_top_srcdir=$ac_abs_builddir;; 8840 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 8841 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 8842 esac;; 8843esac 8844 8845 8846 case $INSTALL in 8847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8848 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 8849 esac 8850 8851 # Let's still pretend it is `configure' which instantiates (i.e., don't 8852 # use $as_me), people would be surprised to read: 8853 # /* config.h. Generated by config.status. */ 8854 if test x"$ac_file" = x-; then 8855 configure_input= 8856 else 8857 configure_input="$ac_file. " 8858 fi 8859 configure_input=$configure_input"Generated from `echo $ac_file_in | 8860 sed 's,.*/,,'` by configure." 8861 8862 # First look for the input files in the build tree, otherwise in the 8863 # src tree. 8864 ac_file_inputs=`IFS=: 8865 for f in $ac_file_in; do 8866 case $f in 8867 -) echo $tmp/stdin ;; 8868 [\\/$]*) 8869 # Absolute (can't be DOS-style, as IFS=:) 8870 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8871echo "$as_me: error: cannot find input file: $f" >&2;} 8872 { (exit 1); exit 1; }; } 8873 echo "$f";; 8874 *) # Relative 8875 if test -f "$f"; then 8876 # Build tree 8877 echo "$f" 8878 elif test -f "$srcdir/$f"; then 8879 # Source tree 8880 echo "$srcdir/$f" 8881 else 8882 # /dev/null tree 8883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8884echo "$as_me: error: cannot find input file: $f" >&2;} 8885 { (exit 1); exit 1; }; } 8886 fi;; 8887 esac 8888 done` || { (exit 1); exit 1; } 8889 8890 if test x"$ac_file" != x-; then 8891 { echo "$as_me:$LINENO: creating $ac_file" >&5 8892echo "$as_me: creating $ac_file" >&6;} 8893 rm -f "$ac_file" 8894 fi 8895_ACEOF 8896cat >>$CONFIG_STATUS <<_ACEOF 8897 sed "$ac_vpsub 8898$extrasub 8899_ACEOF 8900cat >>$CONFIG_STATUS <<\_ACEOF 8901:t 8902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8903s,@configure_input@,$configure_input,;t t 8904s,@srcdir@,$ac_srcdir,;t t 8905s,@abs_srcdir@,$ac_abs_srcdir,;t t 8906s,@top_srcdir@,$ac_top_srcdir,;t t 8907s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 8908s,@builddir@,$ac_builddir,;t t 8909s,@abs_builddir@,$ac_abs_builddir,;t t 8910s,@top_builddir@,$ac_top_builddir,;t t 8911s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 8912s,@INSTALL@,$ac_INSTALL,;t t 8913" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 8914 rm -f $tmp/stdin 8915 if test x"$ac_file" != x-; then 8916 mv $tmp/out $ac_file 8917 else 8918 cat $tmp/out 8919 rm -f $tmp/out 8920 fi 8921 8922done 8923_ACEOF 8924cat >>$CONFIG_STATUS <<\_ACEOF 8925 8926# 8927# CONFIG_HEADER section. 8928# 8929 8930# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8931# NAME is the cpp macro being defined and VALUE is the value it is being given. 8932# 8933# ac_d sets the value in "#define NAME VALUE" lines. 8934ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8935ac_dB='[ ].*$,\1#\2' 8936ac_dC=' ' 8937ac_dD=',;t' 8938# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8939ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8940ac_uB='$,\1#\2define\3' 8941ac_uC=' ' 8942ac_uD=',;t' 8943 8944for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 8945 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8946 case $ac_file in 8947 - | *:- | *:-:* ) # input from stdin 8948 cat >$tmp/stdin 8949 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8951 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8953 * ) ac_file_in=$ac_file.in ;; 8954 esac 8955 8956 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 8957echo "$as_me: creating $ac_file" >&6;} 8958 8959 # First look for the input files in the build tree, otherwise in the 8960 # src tree. 8961 ac_file_inputs=`IFS=: 8962 for f in $ac_file_in; do 8963 case $f in 8964 -) echo $tmp/stdin ;; 8965 [\\/$]*) 8966 # Absolute (can't be DOS-style, as IFS=:) 8967 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8968echo "$as_me: error: cannot find input file: $f" >&2;} 8969 { (exit 1); exit 1; }; } 8970 # Do quote $f, to prevent DOS paths from being IFS'd. 8971 echo "$f";; 8972 *) # Relative 8973 if test -f "$f"; then 8974 # Build tree 8975 echo "$f" 8976 elif test -f "$srcdir/$f"; then 8977 # Source tree 8978 echo "$srcdir/$f" 8979 else 8980 # /dev/null tree 8981 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8982echo "$as_me: error: cannot find input file: $f" >&2;} 8983 { (exit 1); exit 1; }; } 8984 fi;; 8985 esac 8986 done` || { (exit 1); exit 1; } 8987 # Remove the trailing spaces. 8988 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 8989 8990_ACEOF 8991 8992# Transform confdefs.h into two sed scripts, `conftest.defines' and 8993# `conftest.undefs', that substitutes the proper values into 8994# config.h.in to produce config.h. The first handles `#define' 8995# templates, and the second `#undef' templates. 8996# And first: Protect against being on the right side of a sed subst in 8997# config.status. Protect against being in an unquoted here document 8998# in config.status. 8999rm -f conftest.defines conftest.undefs 9000# Using a here document instead of a string reduces the quoting nightmare. 9001# Putting comments in sed scripts is not portable. 9002# 9003# `end' is used to avoid that the second main sed command (meant for 9004# 0-ary CPP macros) applies to n-ary macro definitions. 9005# See the Autoconf documentation for `clear'. 9006cat >confdef2sed.sed <<\_ACEOF 9007s/[\\&,]/\\&/g 9008s,[\\$`],\\&,g 9009t clear 9010: clear 9011s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9012t end 9013s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9014: end 9015_ACEOF 9016# If some macros were called several times there might be several times 9017# the same #defines, which is useless. Nevertheless, we may not want to 9018# sort them, since we want the *last* AC-DEFINE to be honored. 9019uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9020sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9021rm -f confdef2sed.sed 9022 9023# This sed command replaces #undef with comments. This is necessary, for 9024# example, in the case of _POSIX_SOURCE, which is predefined and required 9025# on some systems where configure will not decide to define it. 9026cat >>conftest.undefs <<\_ACEOF 9027s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9028_ACEOF 9029 9030# Break up conftest.defines because some shells have a limit on the size 9031# of here documents, and old seds have small limits too (100 cmds). 9032echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9033echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9034echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9035echo ' :' >>$CONFIG_STATUS 9036rm -f conftest.tail 9037while grep . conftest.defines >/dev/null 9038do 9039 # Write a limited-size here document to $tmp/defines.sed. 9040 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9041 # Speed up: don't consider the non `#define' lines. 9042 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9043 # Work around the forget-to-reset-the-flag bug. 9044 echo 't clr' >>$CONFIG_STATUS 9045 echo ': clr' >>$CONFIG_STATUS 9046 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9047 echo 'CEOF 9048 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9049 rm -f $tmp/in 9050 mv $tmp/out $tmp/in 9051' >>$CONFIG_STATUS 9052 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9053 rm -f conftest.defines 9054 mv conftest.tail conftest.defines 9055done 9056rm -f conftest.defines 9057echo ' fi # grep' >>$CONFIG_STATUS 9058echo >>$CONFIG_STATUS 9059 9060# Break up conftest.undefs because some shells have a limit on the size 9061# of here documents, and old seds have small limits too (100 cmds). 9062echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9063rm -f conftest.tail 9064while grep . conftest.undefs >/dev/null 9065do 9066 # Write a limited-size here document to $tmp/undefs.sed. 9067 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9068 # Speed up: don't consider the non `#undef' 9069 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9070 # Work around the forget-to-reset-the-flag bug. 9071 echo 't clr' >>$CONFIG_STATUS 9072 echo ': clr' >>$CONFIG_STATUS 9073 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9074 echo 'CEOF 9075 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9076 rm -f $tmp/in 9077 mv $tmp/out $tmp/in 9078' >>$CONFIG_STATUS 9079 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9080 rm -f conftest.undefs 9081 mv conftest.tail conftest.undefs 9082done 9083rm -f conftest.undefs 9084 9085cat >>$CONFIG_STATUS <<\_ACEOF 9086 # Let's still pretend it is `configure' which instantiates (i.e., don't 9087 # use $as_me), people would be surprised to read: 9088 # /* config.h. Generated by config.status. */ 9089 if test x"$ac_file" = x-; then 9090 echo "/* Generated by configure. */" >$tmp/config.h 9091 else 9092 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9093 fi 9094 cat $tmp/in >>$tmp/config.h 9095 rm -f $tmp/in 9096 if test x"$ac_file" != x-; then 9097 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9098 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9099echo "$as_me: $ac_file is unchanged" >&6;} 9100 else 9101 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9102$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9103 X"$ac_file" : 'X\(//\)[^/]' \| \ 9104 X"$ac_file" : 'X\(//\)$' \| \ 9105 X"$ac_file" : 'X\(/\)' \| \ 9106 . : '\(.\)' 2>/dev/null || 9107echo X"$ac_file" | 9108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9109 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9110 /^X\(\/\/\)$/{ s//\1/; q; } 9111 /^X\(\/\).*/{ s//\1/; q; } 9112 s/.*/./; q'` 9113 { if $as_mkdir_p; then 9114 mkdir -p "$ac_dir" 9115 else 9116 as_dir="$ac_dir" 9117 as_dirs= 9118 while test ! -d "$as_dir"; do 9119 as_dirs="$as_dir $as_dirs" 9120 as_dir=`(dirname "$as_dir") 2>/dev/null || 9121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9122 X"$as_dir" : 'X\(//\)[^/]' \| \ 9123 X"$as_dir" : 'X\(//\)$' \| \ 9124 X"$as_dir" : 'X\(/\)' \| \ 9125 . : '\(.\)' 2>/dev/null || 9126echo X"$as_dir" | 9127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9128 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9129 /^X\(\/\/\)$/{ s//\1/; q; } 9130 /^X\(\/\).*/{ s//\1/; q; } 9131 s/.*/./; q'` 9132 done 9133 test ! -n "$as_dirs" || mkdir $as_dirs 9134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9135echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9136 { (exit 1); exit 1; }; }; } 9137 9138 rm -f $ac_file 9139 mv $tmp/config.h $ac_file 9140 fi 9141 else 9142 cat $tmp/config.h 9143 rm -f $tmp/config.h 9144 fi 9145 # Run the commands associated with the file. 9146 case $ac_file in 9147 config.h ) # update the timestamp 9148echo 'timestamp for config.h' >"./stamp-h1" 9149 ;; 9150 esac 9151done 9152_ACEOF 9153cat >>$CONFIG_STATUS <<\_ACEOF 9154 9155# 9156# CONFIG_COMMANDS section. 9157# 9158for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 9159 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9160 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9161 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9162$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9163 X"$ac_dest" : 'X\(//\)[^/]' \| \ 9164 X"$ac_dest" : 'X\(//\)$' \| \ 9165 X"$ac_dest" : 'X\(/\)' \| \ 9166 . : '\(.\)' 2>/dev/null || 9167echo X"$ac_dest" | 9168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9169 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9170 /^X\(\/\/\)$/{ s//\1/; q; } 9171 /^X\(\/\).*/{ s//\1/; q; } 9172 s/.*/./; q'` 9173 { if $as_mkdir_p; then 9174 mkdir -p "$ac_dir" 9175 else 9176 as_dir="$ac_dir" 9177 as_dirs= 9178 while test ! -d "$as_dir"; do 9179 as_dirs="$as_dir $as_dirs" 9180 as_dir=`(dirname "$as_dir") 2>/dev/null || 9181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9182 X"$as_dir" : 'X\(//\)[^/]' \| \ 9183 X"$as_dir" : 'X\(//\)$' \| \ 9184 X"$as_dir" : 'X\(/\)' \| \ 9185 . : '\(.\)' 2>/dev/null || 9186echo X"$as_dir" | 9187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9188 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9189 /^X\(\/\/\)$/{ s//\1/; q; } 9190 /^X\(\/\).*/{ s//\1/; q; } 9191 s/.*/./; q'` 9192 done 9193 test ! -n "$as_dirs" || mkdir $as_dirs 9194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9195echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9196 { (exit 1); exit 1; }; }; } 9197 9198 ac_builddir=. 9199 9200if test "$ac_dir" != .; then 9201 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9202 # A "../" for each directory in $ac_dir_suffix. 9203 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9204else 9205 ac_dir_suffix= ac_top_builddir= 9206fi 9207 9208case $srcdir in 9209 .) # No --srcdir option. We are building in place. 9210 ac_srcdir=. 9211 if test -z "$ac_top_builddir"; then 9212 ac_top_srcdir=. 9213 else 9214 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9215 fi ;; 9216 [\\/]* | ?:[\\/]* ) # Absolute path. 9217 ac_srcdir=$srcdir$ac_dir_suffix; 9218 ac_top_srcdir=$srcdir ;; 9219 *) # Relative path. 9220 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9221 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9222esac 9223 9224# Do not use `cd foo && pwd` to compute absolute paths, because 9225# the directories may not exist. 9226case `pwd` in 9227.) ac_abs_builddir="$ac_dir";; 9228*) 9229 case "$ac_dir" in 9230 .) ac_abs_builddir=`pwd`;; 9231 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9232 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9233 esac;; 9234esac 9235case $ac_abs_builddir in 9236.) ac_abs_top_builddir=${ac_top_builddir}.;; 9237*) 9238 case ${ac_top_builddir}. in 9239 .) ac_abs_top_builddir=$ac_abs_builddir;; 9240 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9241 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9242 esac;; 9243esac 9244case $ac_abs_builddir in 9245.) ac_abs_srcdir=$ac_srcdir;; 9246*) 9247 case $ac_srcdir in 9248 .) ac_abs_srcdir=$ac_abs_builddir;; 9249 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9250 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9251 esac;; 9252esac 9253case $ac_abs_builddir in 9254.) ac_abs_top_srcdir=$ac_top_srcdir;; 9255*) 9256 case $ac_top_srcdir in 9257 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9258 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9259 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9260 esac;; 9261esac 9262 9263 9264 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 9265echo "$as_me: executing $ac_dest commands" >&6;} 9266 case $ac_dest in 9267 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 9268 # Strip MF so we end up with the name of the file. 9269 mf=`echo "$mf" | sed -e 's/:.*$//'` 9270 # Check whether this is an Automake generated Makefile or not. 9271 # We used to match only the files named `Makefile.in', but 9272 # some people rename them; so instead we look at the file content. 9273 # Grep'ing the first line is not enough: some people post-process 9274 # each Makefile.in and add a new line on top of each file to say so. 9275 # So let's grep whole file. 9276 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 9277 dirpart=`(dirname "$mf") 2>/dev/null || 9278$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9279 X"$mf" : 'X\(//\)[^/]' \| \ 9280 X"$mf" : 'X\(//\)$' \| \ 9281 X"$mf" : 'X\(/\)' \| \ 9282 . : '\(.\)' 2>/dev/null || 9283echo X"$mf" | 9284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9285 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9286 /^X\(\/\/\)$/{ s//\1/; q; } 9287 /^X\(\/\).*/{ s//\1/; q; } 9288 s/.*/./; q'` 9289 else 9290 continue 9291 fi 9292 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 9293 # Extract the definition of DEP_FILES from the Makefile without 9294 # running `make'. 9295 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 9296 test -z "$DEPDIR" && continue 9297 # When using ansi2knr, U may be empty or an underscore; expand it 9298 U=`sed -n -e '/^U = / s///p' < "$mf"` 9299 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 9300 # We invoke sed twice because it is the simplest approach to 9301 # changing $(DEPDIR) to its actual value in the expansion. 9302 for file in `sed -n -e ' 9303 /^DEP_FILES = .*\\\\$/ { 9304 s/^DEP_FILES = // 9305 :loop 9306 s/\\\\$// 9307 p 9308 n 9309 /\\\\$/ b loop 9310 p 9311 } 9312 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 9313 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9314 # Make sure the directory exists. 9315 test -f "$dirpart/$file" && continue 9316 fdir=`(dirname "$file") 2>/dev/null || 9317$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9318 X"$file" : 'X\(//\)[^/]' \| \ 9319 X"$file" : 'X\(//\)$' \| \ 9320 X"$file" : 'X\(/\)' \| \ 9321 . : '\(.\)' 2>/dev/null || 9322echo X"$file" | 9323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9324 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9325 /^X\(\/\/\)$/{ s//\1/; q; } 9326 /^X\(\/\).*/{ s//\1/; q; } 9327 s/.*/./; q'` 9328 { if $as_mkdir_p; then 9329 mkdir -p $dirpart/$fdir 9330 else 9331 as_dir=$dirpart/$fdir 9332 as_dirs= 9333 while test ! -d "$as_dir"; do 9334 as_dirs="$as_dir $as_dirs" 9335 as_dir=`(dirname "$as_dir") 2>/dev/null || 9336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9337 X"$as_dir" : 'X\(//\)[^/]' \| \ 9338 X"$as_dir" : 'X\(//\)$' \| \ 9339 X"$as_dir" : 'X\(/\)' \| \ 9340 . : '\(.\)' 2>/dev/null || 9341echo X"$as_dir" | 9342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9343 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9344 /^X\(\/\/\)$/{ s//\1/; q; } 9345 /^X\(\/\).*/{ s//\1/; q; } 9346 s/.*/./; q'` 9347 done 9348 test ! -n "$as_dirs" || mkdir $as_dirs 9349 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 9350echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 9351 { (exit 1); exit 1; }; }; } 9352 9353 # echo "creating $dirpart/$file" 9354 echo '# dummy' > "$dirpart/$file" 9355 done 9356done 9357 ;; 9358 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*) 9359 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 9360 esac ;; 9361 esac 9362done 9363_ACEOF 9364 9365cat >>$CONFIG_STATUS <<\_ACEOF 9366 9367{ (exit 0); exit 0; } 9368_ACEOF 9369chmod +x $CONFIG_STATUS 9370ac_clean_files=$ac_clean_files_save 9371 9372 9373# configure is writing to config.log, and then calls config.status. 9374# config.status does its own redirection, appending to config.log. 9375# Unfortunately, on DOS this fails, as config.log is still kept open 9376# by configure, so config.status won't be able to write to it; its 9377# output is simply discarded. So we exec the FD to /dev/null, 9378# effectively closing config.log, so it can be properly (re)opened and 9379# appended to by config.status. When coming back to configure, we 9380# need to make the FD available again. 9381if test "$no_create" != yes; then 9382 ac_cs_success=: 9383 ac_config_status_args= 9384 test "$silent" = yes && 9385 ac_config_status_args="$ac_config_status_args --quiet" 9386 exec 5>/dev/null 9387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9388 exec 5>>config.log 9389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9390 # would make configure fail if this is the last instruction. 9391 $ac_cs_success || { (exit 1); exit 1; } 9392fi 9393 9394 9395