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