| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by Autoconf 2.52. |
| 4 |
# |
| 5 |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 |
# Free Software Foundation, Inc. |
| 7 |
# This configure script is free software; the Free Software Foundation |
| 8 |
# gives unlimited permission to copy, distribute and modify it. |
| 9 |
|
| 10 |
# Avoid depending upon Character Ranges. |
| 11 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14 |
as_cr_digits='0123456789' |
| 15 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16 |
|
| 17 |
# Sed expression to map a string onto a valid variable name. |
| 18 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19 |
|
| 20 |
# Sed expression to map a string onto a valid CPP name. |
| 21 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22 |
|
| 23 |
# Be Bourne compatible |
| 24 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25 |
emulate sh |
| 26 |
NULLCMD=: |
| 27 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 28 |
set -o posix |
| 29 |
fi |
| 30 |
|
| 31 |
# Name of the executable. |
| 32 |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 33 |
|
| 34 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 35 |
as_expr=expr |
| 36 |
else |
| 37 |
as_expr=false |
| 38 |
fi |
| 39 |
|
| 40 |
rm -f conf$$ conf$$.exe conf$$.file |
| 41 |
echo >conf$$.file |
| 42 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 43 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 44 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 45 |
if test -f conf$$.exe; then |
| 46 |
# Don't use ln at all; we don't have any links |
| 47 |
as_ln_s='cp -p' |
| 48 |
else |
| 49 |
as_ln_s='ln -s' |
| 50 |
fi |
| 51 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 52 |
as_ln_s=ln |
| 53 |
else |
| 54 |
as_ln_s='cp -p' |
| 55 |
fi |
| 56 |
rm -f conf$$ conf$$.exe conf$$.file |
| 57 |
|
| 58 |
as_executable_p="test -f" |
| 59 |
|
| 60 |
# Support unset when possible. |
| 61 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 62 |
as_unset=unset |
| 63 |
else |
| 64 |
as_unset=false |
| 65 |
fi |
| 66 |
|
| 67 |
# NLS nuisances. |
| 68 |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 69 |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 70 |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 71 |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 72 |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 73 |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 74 |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 75 |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 76 |
|
| 77 |
# IFS |
| 78 |
# We need space, tab and new line, in precisely that order. |
| 79 |
as_nl=' |
| 80 |
' |
| 81 |
IFS=" $as_nl" |
| 82 |
|
| 83 |
# CDPATH. |
| 84 |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 85 |
|
| 86 |
# Name of the host. |
| 87 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 88 |
# so uname gets run too. |
| 89 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 90 |
|
| 91 |
exec 6>&1 |
| 92 |
|
| 93 |
# |
| 94 |
# Initializations. |
| 95 |
# |
| 96 |
ac_default_prefix=/usr/local |
| 97 |
cross_compiling=no |
| 98 |
subdirs= |
| 99 |
MFLAGS= MAKEFLAGS= |
| 100 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 101 |
|
| 102 |
# Maximum number of lines to put in a shell here document. |
| 103 |
# This variable seems obsolete. It should probably be removed, and |
| 104 |
# only ac_max_sed_lines should be used. |
| 105 |
: ${ac_max_here_lines=38} |
| 106 |
|
| 107 |
ac_unique_file="src/ball.cc" |
| 108 |
# Factoring default headers for most tests. |
| 109 |
ac_includes_default="\ |
| 110 |
#include <stdio.h> |
| 111 |
#if HAVE_SYS_TYPES_H |
| 112 |
# include <sys/types.h> |
| 113 |
#endif |
| 114 |
#if HAVE_SYS_STAT_H |
| 115 |
# include <sys/stat.h> |
| 116 |
#endif |
| 117 |
#if STDC_HEADERS |
| 118 |
# include <stdlib.h> |
| 119 |
# include <stddef.h> |
| 120 |
#else |
| 121 |
# if HAVE_STDLIB_H |
| 122 |
# include <stdlib.h> |
| 123 |
# endif |
| 124 |
#endif |
| 125 |
#if HAVE_STRING_H |
| 126 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
| 127 |
# include <memory.h> |
| 128 |
# endif |
| 129 |
# include <string.h> |
| 130 |
#endif |
| 131 |
#if HAVE_STRINGS_H |
| 132 |
# include <strings.h> |
| 133 |
#endif |
| 134 |
#if HAVE_INTTYPES_H |
| 135 |
# include <inttypes.h> |
| 136 |
#else |
| 137 |
# if HAVE_STDINT_H |
| 138 |
# include <stdint.h> |
| 139 |
# endif |
| 140 |
#endif |
| 141 |
#if HAVE_UNISTD_H |
| 142 |
# include <unistd.h> |
| 143 |
#endif" |
| 144 |
|
| 145 |
# Initialize some variables set by options. |
| 146 |
ac_init_help= |
| 147 |
ac_init_version=false |
| 148 |
# The variables have the same names as the options, with |
| 149 |
# dashes changed to underlines. |
| 150 |
cache_file=/dev/null |
| 151 |
exec_prefix=NONE |
| 152 |
no_create= |
| 153 |
no_recursion= |
| 154 |
prefix=NONE |
| 155 |
program_prefix=NONE |
| 156 |
program_suffix=NONE |
| 157 |
program_transform_name=s,x,x, |
| 158 |
silent= |
| 159 |
site= |
| 160 |
srcdir= |
| 161 |
verbose= |
| 162 |
x_includes=NONE |
| 163 |
x_libraries=NONE |
| 164 |
|
| 165 |
# Installation directory options. |
| 166 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 167 |
# and all the variables that are supposed to be based on exec_prefix |
| 168 |
# by default will actually change. |
| 169 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 170 |
bindir='${exec_prefix}/bin' |
| 171 |
sbindir='${exec_prefix}/sbin' |
| 172 |
libexecdir='${exec_prefix}/libexec' |
| 173 |
datadir='${prefix}/share' |
| 174 |
sysconfdir='${prefix}/etc' |
| 175 |
sharedstatedir='${prefix}/com' |
| 176 |
localstatedir='${prefix}/var' |
| 177 |
libdir='${exec_prefix}/lib' |
| 178 |
includedir='${prefix}/include' |
| 179 |
oldincludedir='/usr/include' |
| 180 |
infodir='${prefix}/info' |
| 181 |
mandir='${prefix}/man' |
| 182 |
|
| 183 |
# Identity of this package. |
| 184 |
PACKAGE_NAME= |
| 185 |
PACKAGE_TARNAME= |
| 186 |
PACKAGE_VERSION= |
| 187 |
PACKAGE_STRING= |
| 188 |
PACKAGE_BUGREPORT= |
| 189 |
|
| 190 |
ac_prev= |
| 191 |
for ac_option |
| 192 |
do |
| 193 |
# If the previous option needs an argument, assign it. |
| 194 |
if test -n "$ac_prev"; then |
| 195 |
eval "$ac_prev=\$ac_option" |
| 196 |
ac_prev= |
| 197 |
continue |
| 198 |
fi |
| 199 |
|
| 200 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 201 |
|
| 202 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 203 |
|
| 204 |
case $ac_option in |
| 205 |
|
| 206 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 207 |
ac_prev=bindir ;; |
| 208 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 209 |
bindir=$ac_optarg ;; |
| 210 |
|
| 211 |
-build | --build | --buil | --bui | --bu) |
| 212 |
ac_prev=build_alias ;; |
| 213 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 214 |
build_alias=$ac_optarg ;; |
| 215 |
|
| 216 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 217 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 218 |
ac_prev=cache_file ;; |
| 219 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 220 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 221 |
cache_file=$ac_optarg ;; |
| 222 |
|
| 223 |
--config-cache | -C) |
| 224 |
cache_file=config.cache ;; |
| 225 |
|
| 226 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 227 |
ac_prev=datadir ;; |
| 228 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 229 |
| --da=*) |
| 230 |
datadir=$ac_optarg ;; |
| 231 |
|
| 232 |
-disable-* | --disable-*) |
| 233 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 234 |
# Reject names that are not valid shell variable names. |
| 235 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 236 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 237 |
{ (exit 1); exit 1; }; } |
| 238 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 239 |
eval "enable_$ac_feature=no" ;; |
| 240 |
|
| 241 |
-enable-* | --enable-*) |
| 242 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 243 |
# Reject names that are not valid shell variable names. |
| 244 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 245 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 246 |
{ (exit 1); exit 1; }; } |
| 247 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 248 |
case $ac_option in |
| 249 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 250 |
*) ac_optarg=yes ;; |
| 251 |
esac |
| 252 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
| 253 |
|
| 254 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 255 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 256 |
| --exec | --exe | --ex) |
| 257 |
ac_prev=exec_prefix ;; |
| 258 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 259 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 260 |
| --exec=* | --exe=* | --ex=*) |
| 261 |
exec_prefix=$ac_optarg ;; |
| 262 |
|
| 263 |
-gas | --gas | --ga | --g) |
| 264 |
# Obsolete; use --with-gas. |
| 265 |
with_gas=yes ;; |
| 266 |
|
| 267 |
-help | --help | --hel | --he | -h) |
| 268 |
ac_init_help=long ;; |
| 269 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 270 |
ac_init_help=recursive ;; |
| 271 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 272 |
ac_init_help=short ;; |
| 273 |
|
| 274 |
-host | --host | --hos | --ho) |
| 275 |
ac_prev=host_alias ;; |
| 276 |
-host=* | --host=* | --hos=* | --ho=*) |
| 277 |
host_alias=$ac_optarg ;; |
| 278 |
|
| 279 |
-includedir | --includedir | --includedi | --included | --include \ |
| 280 |
| --includ | --inclu | --incl | --inc) |
| 281 |
ac_prev=includedir ;; |
| 282 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 283 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 284 |
includedir=$ac_optarg ;; |
| 285 |
|
| 286 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 287 |
ac_prev=infodir ;; |
| 288 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 289 |
infodir=$ac_optarg ;; |
| 290 |
|
| 291 |
-libdir | --libdir | --libdi | --libd) |
| 292 |
ac_prev=libdir ;; |
| 293 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 294 |
libdir=$ac_optarg ;; |
| 295 |
|
| 296 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 297 |
| --libexe | --libex | --libe) |
| 298 |
ac_prev=libexecdir ;; |
| 299 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 300 |
| --libexe=* | --libex=* | --libe=*) |
| 301 |
libexecdir=$ac_optarg ;; |
| 302 |
|
| 303 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 304 |
| --localstate | --localstat | --localsta | --localst \ |
| 305 |
| --locals | --local | --loca | --loc | --lo) |
| 306 |
ac_prev=localstatedir ;; |
| 307 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 308 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 309 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 310 |
localstatedir=$ac_optarg ;; |
| 311 |
|
| 312 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 313 |
ac_prev=mandir ;; |
| 314 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 315 |
mandir=$ac_optarg ;; |
| 316 |
|
| 317 |
-nfp | --nfp | --nf) |
| 318 |
# Obsolete; use --without-fp. |
| 319 |
with_fp=no ;; |
| 320 |
|
| 321 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 322 |
| --no-cr | --no-c) |
| 323 |
no_create=yes ;; |
| 324 |
|
| 325 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 326 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 327 |
no_recursion=yes ;; |
| 328 |
|
| 329 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 330 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 331 |
| --oldin | --oldi | --old | --ol | --o) |
| 332 |
ac_prev=oldincludedir ;; |
| 333 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 334 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 335 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 336 |
oldincludedir=$ac_optarg ;; |
| 337 |
|
| 338 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 339 |
ac_prev=prefix ;; |
| 340 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 341 |
prefix=$ac_optarg ;; |
| 342 |
|
| 343 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 344 |
| --program-pre | --program-pr | --program-p) |
| 345 |
ac_prev=program_prefix ;; |
| 346 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 347 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 348 |
program_prefix=$ac_optarg ;; |
| 349 |
|
| 350 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 351 |
| --program-suf | --program-su | --program-s) |
| 352 |
ac_prev=program_suffix ;; |
| 353 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 354 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 355 |
program_suffix=$ac_optarg ;; |
| 356 |
|
| 357 |
-program-transform-name | --program-transform-name \ |
| 358 |
| --program-transform-nam | --program-transform-na \ |
| 359 |
| --program-transform-n | --program-transform- \ |
| 360 |
| --program-transform | --program-transfor \ |
| 361 |
| --program-transfo | --program-transf \ |
| 362 |
| --program-trans | --program-tran \ |
| 363 |
| --progr-tra | --program-tr | --program-t) |
| 364 |
ac_prev=program_transform_name ;; |
| 365 |
-program-transform-name=* | --program-transform-name=* \ |
| 366 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 367 |
| --program-transform-n=* | --program-transform-=* \ |
| 368 |
| --program-transform=* | --program-transfor=* \ |
| 369 |
| --program-transfo=* | --program-transf=* \ |
| 370 |
| --program-trans=* | --program-tran=* \ |
| 371 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 372 |
program_transform_name=$ac_optarg ;; |
| 373 |
|
| 374 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 375 |
| -silent | --silent | --silen | --sile | --sil) |
| 376 |
silent=yes ;; |
| 377 |
|
| 378 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 379 |
ac_prev=sbindir ;; |
| 380 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 381 |
| --sbi=* | --sb=*) |
| 382 |
sbindir=$ac_optarg ;; |
| 383 |
|
| 384 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 385 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 386 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 387 |
| --sha | --sh) |
| 388 |
ac_prev=sharedstatedir ;; |
| 389 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 390 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 391 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 392 |
| --sha=* | --sh=*) |
| 393 |
sharedstatedir=$ac_optarg ;; |
| 394 |
|
| 395 |
-site | --site | --sit) |
| 396 |
ac_prev=site ;; |
| 397 |
-site=* | --site=* | --sit=*) |
| 398 |
site=$ac_optarg ;; |
| 399 |
|
| 400 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 401 |
ac_prev=srcdir ;; |
| 402 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 403 |
srcdir=$ac_optarg ;; |
| 404 |
|
| 405 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 406 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 407 |
ac_prev=sysconfdir ;; |
| 408 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 409 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 410 |
sysconfdir=$ac_optarg ;; |
| 411 |
|
| 412 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 413 |
ac_prev=target_alias ;; |
| 414 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 415 |
target_alias=$ac_optarg ;; |
| 416 |
|
| 417 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 418 |
verbose=yes ;; |
| 419 |
|
| 420 |
-version | --version | --versio | --versi | --vers | -V) |
| 421 |
ac_init_version=: ;; |
| 422 |
|
| 423 |
-with-* | --with-*) |
| 424 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 425 |
# Reject names that are not valid shell variable names. |
| 426 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 427 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 428 |
{ (exit 1); exit 1; }; } |
| 429 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 430 |
case $ac_option in |
| 431 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 432 |
*) ac_optarg=yes ;; |
| 433 |
esac |
| 434 |
eval "with_$ac_package='$ac_optarg'" ;; |
| 435 |
|
| 436 |
-without-* | --without-*) |
| 437 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 438 |
# Reject names that are not valid shell variable names. |
| 439 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 440 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 441 |
{ (exit 1); exit 1; }; } |
| 442 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 443 |
eval "with_$ac_package=no" ;; |
| 444 |
|
| 445 |
--x) |
| 446 |
# Obsolete; use --with-x. |
| 447 |
with_x=yes ;; |
| 448 |
|
| 449 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 450 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 451 |
ac_prev=x_includes ;; |
| 452 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 453 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 454 |
x_includes=$ac_optarg ;; |
| 455 |
|
| 456 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 457 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 458 |
ac_prev=x_libraries ;; |
| 459 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 460 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 461 |
x_libraries=$ac_optarg ;; |
| 462 |
|
| 463 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
| 464 |
Try \`$0 --help' for more information." >&2 |
| 465 |
{ (exit 1); exit 1; }; } |
| 466 |
;; |
| 467 |
|
| 468 |
*=*) |
| 469 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 470 |
# Reject names that are not valid shell variable names. |
| 471 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 472 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 473 |
{ (exit 1); exit 1; }; } |
| 474 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 475 |
eval "$ac_envvar='$ac_optarg'" |
| 476 |
export $ac_envvar ;; |
| 477 |
|
| 478 |
*) |
| 479 |
# FIXME: should be removed in autoconf 3.0. |
| 480 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 481 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 482 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 483 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 484 |
;; |
| 485 |
|
| 486 |
esac |
| 487 |
done |
| 488 |
|
| 489 |
if test -n "$ac_prev"; then |
| 490 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 491 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
| 492 |
{ (exit 1); exit 1; }; } |
| 493 |
fi |
| 494 |
|
| 495 |
# Be sure to have absolute paths. |
| 496 |
for ac_var in exec_prefix prefix |
| 497 |
do |
| 498 |
eval ac_val=$`echo $ac_var` |
| 499 |
case $ac_val in |
| 500 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 501 |
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 502 |
{ (exit 1); exit 1; }; };; |
| 503 |
esac |
| 504 |
done |
| 505 |
|
| 506 |
# Be sure to have absolute paths. |
| 507 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 508 |
localstatedir libdir includedir oldincludedir infodir mandir |
| 509 |
do |
| 510 |
eval ac_val=$`echo $ac_var` |
| 511 |
case $ac_val in |
| 512 |
[\\/$]* | ?:[\\/]* ) ;; |
| 513 |
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 514 |
{ (exit 1); exit 1; }; };; |
| 515 |
esac |
| 516 |
done |
| 517 |
|
| 518 |
# There might be people who depend on the old broken behavior: `$host' |
| 519 |
# used to hold the argument of --host etc. |
| 520 |
build=$build_alias |
| 521 |
host=$host_alias |
| 522 |
target=$target_alias |
| 523 |
|
| 524 |
# FIXME: should be removed in autoconf 3.0. |
| 525 |
if test "x$host_alias" != x; then |
| 526 |
if test "x$build_alias" = x; then |
| 527 |
cross_compiling=maybe |
| 528 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 529 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| 530 |
elif test "x$build_alias" != "x$host_alias"; then |
| 531 |
cross_compiling=yes |
| 532 |
fi |
| 533 |
fi |
| 534 |
|
| 535 |
ac_tool_prefix= |
| 536 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 537 |
|
| 538 |
test "$silent" = yes && exec 6>/dev/null |
| 539 |
|
| 540 |
# Find the source files, if location was not specified. |
| 541 |
if test -z "$srcdir"; then |
| 542 |
ac_srcdir_defaulted=yes |
| 543 |
# Try the directory containing this script, then its parent. |
| 544 |
ac_prog=$0 |
| 545 |
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
| 546 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 547 |
srcdir=$ac_confdir |
| 548 |
if test ! -r $srcdir/$ac_unique_file; then |
| 549 |
srcdir=.. |
| 550 |
fi |
| 551 |
else |
| 552 |
ac_srcdir_defaulted=no |
| 553 |
fi |
| 554 |
if test ! -r $srcdir/$ac_unique_file; then |
| 555 |
if test "$ac_srcdir_defaulted" = yes; then |
| 556 |
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| 557 |
{ (exit 1); exit 1; }; } |
| 558 |
else |
| 559 |
{ echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| 560 |
{ (exit 1); exit 1; }; } |
| 561 |
fi |
| 562 |
fi |
| 563 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 564 |
ac_env_build_alias_set=${build_alias+set} |
| 565 |
ac_env_build_alias_value=$build_alias |
| 566 |
ac_cv_env_build_alias_set=${build_alias+set} |
| 567 |
ac_cv_env_build_alias_value=$build_alias |
| 568 |
ac_env_host_alias_set=${host_alias+set} |
| 569 |
ac_env_host_alias_value=$host_alias |
| 570 |
ac_cv_env_host_alias_set=${host_alias+set} |
| 571 |
ac_cv_env_host_alias_value=$host_alias |
| 572 |
ac_env_target_alias_set=${target_alias+set} |
| 573 |
ac_env_target_alias_value=$target_alias |
| 574 |
ac_cv_env_target_alias_set=${target_alias+set} |
| 575 |
ac_cv_env_target_alias_value=$target_alias |
| 576 |
ac_env_CC_set=${CC+set} |
| 577 |
ac_env_CC_value=$CC |
| 578 |
ac_cv_env_CC_set=${CC+set} |
| 579 |
ac_cv_env_CC_value=$CC |
| 580 |
ac_env_CFLAGS_set=${CFLAGS+set} |
| 581 |
ac_env_CFLAGS_value=$CFLAGS |
| 582 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 583 |
ac_cv_env_CFLAGS_value=$CFLAGS |
| 584 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 585 |
ac_env_LDFLAGS_value=$LDFLAGS |
| 586 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 587 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 588 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 589 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
| 590 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 591 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 592 |
ac_env_CPP_set=${CPP+set} |
| 593 |
ac_env_CPP_value=$CPP |
| 594 |
ac_cv_env_CPP_set=${CPP+set} |
| 595 |
ac_cv_env_CPP_value=$CPP |
| 596 |
ac_env_CXX_set=${CXX+set} |
| 597 |
ac_env_CXX_value=$CXX |
| 598 |
ac_cv_env_CXX_set=${CXX+set} |
| 599 |
ac_cv_env_CXX_value=$CXX |
| 600 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 601 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
| 602 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 603 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 604 |
|
| 605 |
# |
| 606 |
# Report the --help message. |
| 607 |
# |
| 608 |
if test "$ac_init_help" = "long"; then |
| 609 |
# Omit some internal or obsolete options to make the list less imposing. |
| 610 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 611 |
cat <<EOF |
| 612 |
\`configure' configures this package to adapt to many kinds of systems. |
| 613 |
|
| 614 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 615 |
|
| 616 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 617 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 618 |
|
| 619 |
Defaults for the options are specified in brackets. |
| 620 |
|
| 621 |
Configuration: |
| 622 |
-h, --help display this help and exit |
| 623 |
--help=short display options specific to this package |
| 624 |
--help=recursive display the short help of all the included packages |
| 625 |
-V, --version display version information and exit |
| 626 |
-q, --quiet, --silent do not print \`checking...' messages |
| 627 |
--cache-file=FILE cache test results in FILE [disabled] |
| 628 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 629 |
-n, --no-create do not create output files |
| 630 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 631 |
|
| 632 |
EOF |
| 633 |
|
| 634 |
cat <<EOF |
| 635 |
Installation directories: |
| 636 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 637 |
[$ac_default_prefix] |
| 638 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 639 |
[PREFIX] |
| 640 |
|
| 641 |
By default, \`make install' will install all the files in |
| 642 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 643 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 644 |
for instance \`--prefix=\$HOME'. |
| 645 |
|
| 646 |
For better control, use the options below. |
| 647 |
|
| 648 |
Fine tuning of the installation directories: |
| 649 |
--bindir=DIR user executables [EPREFIX/bin] |
| 650 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 651 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 652 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 653 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 654 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 655 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 656 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 657 |
--includedir=DIR C header files [PREFIX/include] |
| 658 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 659 |
--infodir=DIR info documentation [PREFIX/info] |
| 660 |
--mandir=DIR man documentation [PREFIX/man] |
| 661 |
EOF |
| 662 |
|
| 663 |
cat <<\EOF |
| 664 |
|
| 665 |
Program names: |
| 666 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 667 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 668 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 669 |
|
| 670 |
System types: |
| 671 |
--build=BUILD configure for building on BUILD [guessed] |
| 672 |
--host=HOST build programs to run on HOST [BUILD] |
| 673 |
EOF |
| 674 |
fi |
| 675 |
|
| 676 |
if test -n "$ac_init_help"; then |
| 677 |
|
| 678 |
cat <<\EOF |
| 679 |
|
| 680 |
Optional Features: |
| 681 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 682 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 683 |
--disable-dependency-tracking Speeds up one-time builds |
| 684 |
--enable-dependency-tracking Do not reject slow dependency extractors |
| 685 |
--disable-nls do not use Native Language Support |
| 686 |
--disable-glibtest do not try to compile and run a test GLIB program |
| 687 |
--disable-gtktest do not try to compile and run a test GTK+ program |
| 688 |
|
| 689 |
Optional Packages: |
| 690 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 691 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 692 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
| 693 |
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
| 694 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 695 |
--with-included-gettext use the GNU gettext library included here |
| 696 |
--with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
| 697 |
--without-libintl-prefix don't search for libintl in includedir and libdir |
| 698 |
|
| 699 |
Some influential environment variables: |
| 700 |
CC C compiler command |
| 701 |
CFLAGS C compiler flags |
| 702 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 703 |
nonstandard directory <lib dir> |
| 704 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 705 |
headers in a nonstandard directory <include dir> |
| 706 |
CPP C preprocessor |
| 707 |
CXX C++ compiler command |
| 708 |
CXXFLAGS C++ compiler flags |
| 709 |
|
| 710 |
Use these variables to override the choices made by `configure' or to help |
| 711 |
it to find libraries and programs with nonstandard names/locations. |
| 712 |
|
| 713 |
EOF |
| 714 |
fi |
| 715 |
|
| 716 |
if test "$ac_init_help" = "recursive"; then |
| 717 |
# If there are subdirs, report their specific --help. |
| 718 |
ac_popdir=`pwd` |
| 719 |
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
| 720 |
cd $ac_subdir |
| 721 |
# A "../" for each directory in /$ac_subdir. |
| 722 |
ac_dots=`echo $ac_subdir | |
| 723 |
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
| 724 |
|
| 725 |
case $srcdir in |
| 726 |
.) # No --srcdir option. We are building in place. |
| 727 |
ac_sub_srcdir=$srcdir ;; |
| 728 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 729 |
ac_sub_srcdir=$srcdir/$ac_subdir ;; |
| 730 |
*) # Relative path. |
| 731 |
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
| 732 |
esac |
| 733 |
|
| 734 |
# Check for guested configure; otherwise get Cygnus style configure. |
| 735 |
if test -f $ac_sub_srcdir/configure.gnu; then |
| 736 |
echo |
| 737 |
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
| 738 |
elif test -f $ac_sub_srcdir/configure; then |
| 739 |
echo |
| 740 |
$SHELL $ac_sub_srcdir/configure --help=recursive |
| 741 |
elif test -f $ac_sub_srcdir/configure.ac || |
| 742 |
test -f $ac_sub_srcdir/configure.in; then |
| 743 |
echo |
| 744 |
$ac_configure --help |
| 745 |
else |
| 746 |
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
| 747 |
fi |
| 748 |
cd $ac_popdir |
| 749 |
done |
| 750 |
fi |
| 751 |
|
| 752 |
test -n "$ac_init_help" && exit 0 |
| 753 |
if $ac_init_version; then |
| 754 |
cat <<\EOF |
| 755 |
|
| 756 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 757 |
Free Software Foundation, Inc. |
| 758 |
This configure script is free software; the Free Software Foundation |
| 759 |
gives unlimited permission to copy, distribute and modify it. |
| 760 |
EOF |
| 761 |
exit 0 |
| 762 |
fi |
| 763 |
exec 5>config.log |
| 764 |
cat >&5 <<EOF |
| 765 |
This file contains any messages produced by compilers while |
| 766 |
running configure, to aid debugging if configure makes a mistake. |
| 767 |
|
| 768 |
It was created by $as_me, which was |
| 769 |
generated by GNU Autoconf 2.52. Invocation command line was |
| 770 |
|
| 771 |
$ $0 $@ |
| 772 |
|
| 773 |
EOF |
| 774 |
{ |
| 775 |
cat <<_ASUNAME |
| 776 |
## ---------- ## |
| 777 |
## Platform. ## |
| 778 |
## ---------- ## |
| 779 |
|
| 780 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 781 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 782 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 783 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 784 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 785 |
|
| 786 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 787 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 788 |
|
| 789 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 790 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 791 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 792 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 793 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 794 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 795 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 796 |
|
| 797 |
PATH = $PATH |
| 798 |
|
| 799 |
_ASUNAME |
| 800 |
} >&5 |
| 801 |
|
| 802 |
cat >&5 <<EOF |
| 803 |
## ------------ ## |
| 804 |
## Core tests. ## |
| 805 |
## ------------ ## |
| 806 |
|
| 807 |
EOF |
| 808 |
|
| 809 |
# Keep a trace of the command line. |
| 810 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 811 |
# Also quote any args containing shell meta-characters. |
| 812 |
ac_configure_args= |
| 813 |
ac_sep= |
| 814 |
for ac_arg |
| 815 |
do |
| 816 |
case $ac_arg in |
| 817 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 818 |
| --no-cr | --no-c) ;; |
| 819 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 820 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 821 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 822 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| 823 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 824 |
ac_sep=" " ;; |
| 825 |
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| 826 |
ac_sep=" " ;; |
| 827 |
esac |
| 828 |
# Get rid of the leading space. |
| 829 |
done |
| 830 |
|
| 831 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 832 |
# config.log. We remove comments because anyway the quotes in there |
| 833 |
# would cause problems or look ugly. |
| 834 |
trap 'exit_status=$? |
| 835 |
# Save into config.log some information that might help in debugging. |
| 836 |
echo >&5 |
| 837 |
echo "## ----------------- ##" >&5 |
| 838 |
echo "## Cache variables. ##" >&5 |
| 839 |
echo "## ----------------- ##" >&5 |
| 840 |
echo >&5 |
| 841 |
# The following way of writing the cache mishandles newlines in values, |
| 842 |
{ |
| 843 |
(set) 2>&1 | |
| 844 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 845 |
*ac_space=\ *) |
| 846 |
sed -n \ |
| 847 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 848 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 849 |
;; |
| 850 |
*) |
| 851 |
sed -n \ |
| 852 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 853 |
;; |
| 854 |
esac; |
| 855 |
} >&5 |
| 856 |
sed "/^$/d" confdefs.h >conftest.log |
| 857 |
if test -s conftest.log; then |
| 858 |
echo >&5 |
| 859 |
echo "## ------------ ##" >&5 |
| 860 |
echo "## confdefs.h. ##" >&5 |
| 861 |
echo "## ------------ ##" >&5 |
| 862 |
echo >&5 |
| 863 |
cat conftest.log >&5 |
| 864 |
fi |
| 865 |
(echo; echo) >&5 |
| 866 |
test "$ac_signal" != 0 && |
| 867 |
echo "$as_me: caught signal $ac_signal" >&5 |
| 868 |
echo "$as_me: exit $exit_status" >&5 |
| 869 |
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
| 870 |
exit $exit_status |
| 871 |
' 0 |
| 872 |
for ac_signal in 1 2 13 15; do |
| 873 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 874 |
done |
| 875 |
ac_signal=0 |
| 876 |
|
| 877 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 878 |
rm -rf conftest* confdefs.h |
| 879 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 880 |
echo >confdefs.h |
| 881 |
|
| 882 |
# Let the site file select an alternate cache file if it wants to. |
| 883 |
# Prefer explicitly selected file to automatically selected ones. |
| 884 |
if test -z "$CONFIG_SITE"; then |
| 885 |
if test "x$prefix" != xNONE; then |
| 886 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 887 |
else |
| 888 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 889 |
fi |
| 890 |
fi |
| 891 |
for ac_site_file in $CONFIG_SITE; do |
| 892 |
if test -r "$ac_site_file"; then |
| 893 |
{ echo "$as_me:893: loading site script $ac_site_file" >&5 |
| 894 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
| 895 |
cat "$ac_site_file" >&5 |
| 896 |
. "$ac_site_file" |
| 897 |
fi |
| 898 |
done |
| 899 |
|
| 900 |
if test -r "$cache_file"; then |
| 901 |
# Some versions of bash will fail to source /dev/null (special |
| 902 |
# files actually), so we avoid doing that. |
| 903 |
if test -f "$cache_file"; then |
| 904 |
{ echo "$as_me:904: loading cache $cache_file" >&5 |
| 905 |
echo "$as_me: loading cache $cache_file" >&6;} |
| 906 |
case $cache_file in |
| 907 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
| 908 |
*) . ./$cache_file;; |
| 909 |
esac |
| 910 |
fi |
| 911 |
else |
| 912 |
{ echo "$as_me:912: creating cache $cache_file" >&5 |
| 913 |
echo "$as_me: creating cache $cache_file" >&6;} |
| 914 |
>$cache_file |
| 915 |
fi |
| 916 |
|
| 917 |
# Check that the precious variables saved in the cache have kept the same |
| 918 |
# value. |
| 919 |
ac_cache_corrupted=false |
| 920 |
for ac_var in `(set) 2>&1 | |
| 921 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 922 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 923 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 924 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 925 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
| 926 |
case $ac_old_set,$ac_new_set in |
| 927 |
set,) |
| 928 |
{ echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 929 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 930 |
ac_cache_corrupted=: ;; |
| 931 |
,set) |
| 932 |
{ echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5 |
| 933 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 934 |
ac_cache_corrupted=: ;; |
| 935 |
,);; |
| 936 |
*) |
| 937 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 938 |
{ echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5 |
| 939 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 940 |
{ echo "$as_me:940: former value: $ac_old_val" >&5 |
| 941 |
echo "$as_me: former value: $ac_old_val" >&2;} |
| 942 |
{ echo "$as_me:942: current value: $ac_new_val" >&5 |
| 943 |
echo "$as_me: current value: $ac_new_val" >&2;} |
| 944 |
ac_cache_corrupted=: |
| 945 |
fi;; |
| 946 |
esac |
| 947 |
# Pass precious variables to config.status. It doesn't matter if |
| 948 |
# we pass some twice (in addition to the command line arguments). |
| 949 |
if test "$ac_new_set" = set; then |
| 950 |
case $ac_new_val in |
| 951 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 952 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| 953 |
ac_configure_args="$ac_configure_args '$ac_arg'" |
| 954 |
;; |
| 955 |
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| 956 |
;; |
| 957 |
esac |
| 958 |
fi |
| 959 |
done |
| 960 |
if $ac_cache_corrupted; then |
| 961 |
{ echo "$as_me:961: error: changes in the environment can compromise the build" >&5 |
| 962 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 963 |
{ { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 964 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 965 |
{ (exit 1); exit 1; }; } |
| 966 |
fi |
| 967 |
|
| 968 |
ac_ext=c |
| 969 |
ac_cpp='$CPP $CPPFLAGS' |
| 970 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 971 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 972 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 973 |
|
| 974 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 975 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 976 |
' ECHO_T=' ' ;; |
| 977 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 978 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 979 |
esac |
| 980 |
echo "#! $SHELL" >conftest.sh |
| 981 |
echo "exit 0" >>conftest.sh |
| 982 |
chmod +x conftest.sh |
| 983 |
if { (echo "$as_me:983: PATH=\".;.\"; conftest.sh") >&5 |
| 984 |
(PATH=".;."; conftest.sh) 2>&5 |
| 985 |
ac_status=$? |
| 986 |
echo "$as_me:986: \$? = $ac_status" >&5 |
| 987 |
(exit $ac_status); }; then |
| 988 |
ac_path_separator=';' |
| 989 |
else |
| 990 |
ac_path_separator=: |
| 991 |
fi |
| 992 |
PATH_SEPARATOR="$ac_path_separator" |
| 993 |
rm -f conftest.sh |
| 994 |
|
| 995 |
am__api_version="1.6" |
| 996 |
ac_aux_dir= |
| 997 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 998 |
if test -f $ac_dir/install-sh; then |
| 999 |
ac_aux_dir=$ac_dir |
| 1000 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1001 |
break |
| 1002 |
elif test -f $ac_dir/install.sh; then |
| 1003 |
ac_aux_dir=$ac_dir |
| 1004 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1005 |
break |
| 1006 |
elif test -f $ac_dir/shtool; then |
| 1007 |
ac_aux_dir=$ac_dir |
| 1008 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1009 |
break |
| 1010 |
fi |
| 1011 |
done |
| 1012 |
if test -z "$ac_aux_dir"; then |
| 1013 |
{ { echo "$as_me:1013: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1014 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1015 |
{ (exit 1); exit 1; }; } |
| 1016 |
fi |
| 1017 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1018 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1019 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1020 |
|
| 1021 |
# Find a good install program. We prefer a C program (faster), |
| 1022 |
# so one script is as good as another. But avoid the broken or |
| 1023 |
# incompatible versions: |
| 1024 |
# SysV /etc/install, /usr/sbin/install |
| 1025 |
# SunOS /usr/etc/install |
| 1026 |
# IRIX /sbin/install |
| 1027 |
# AIX /bin/install |
| 1028 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1029 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1030 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1031 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1032 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 1033 |
echo "$as_me:1033: checking for a BSD compatible install" >&5 |
| 1034 |
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
| 1035 |
if test -z "$INSTALL"; then |
| 1036 |
if test "${ac_cv_path_install+set}" = set; then |
| 1037 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1038 |
else |
| 1039 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1040 |
for ac_dir in $PATH; do |
| 1041 |
IFS=$ac_save_IFS |
| 1042 |
# Account for people who put trailing slashes in PATH elements. |
| 1043 |
case $ac_dir/ in |
| 1044 |
/ | ./ | .// | /cC/* \ |
| 1045 |
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| 1046 |
| /usr/ucb/* ) ;; |
| 1047 |
*) |
| 1048 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 1049 |
# Don't use installbsd from OSF since it installs stuff as root |
| 1050 |
# by default. |
| 1051 |
for ac_prog in ginstall scoinst install; do |
| 1052 |
if $as_executable_p "$ac_dir/$ac_prog"; then |
| 1053 |
if test $ac_prog = install && |
| 1054 |
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 1055 |
# AIX install. It has an incompatible calling convention. |
| 1056 |
: |
| 1057 |
elif test $ac_prog = install && |
| 1058 |
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 1059 |
# program-specific install script used by HP pwplus--don't use. |
| 1060 |
: |
| 1061 |
else |
| 1062 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1063 |
break 2 |
| 1064 |
fi |
| 1065 |
fi |
| 1066 |
done |
| 1067 |
;; |
| 1068 |
esac |
| 1069 |
done |
| 1070 |
|
| 1071 |
fi |
| 1072 |
if test "${ac_cv_path_install+set}" = set; then |
| 1073 |
INSTALL=$ac_cv_path_install |
| 1074 |
else |
| 1075 |
# As a last resort, use the slow shell script. We don't cache a |
| 1076 |
# path for INSTALL within a source directory, because that will |
| 1077 |
# break other packages using the cache if that directory is |
| 1078 |
# removed, or if the path is relative. |
| 1079 |
INSTALL=$ac_install_sh |
| 1080 |
fi |
| 1081 |
fi |
| 1082 |
echo "$as_me:1082: result: $INSTALL" >&5 |
| 1083 |
echo "${ECHO_T}$INSTALL" >&6 |
| 1084 |
|
| 1085 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1086 |
# It thinks the first close brace ends the variable substitution. |
| 1087 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1088 |
|
| 1089 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1090 |
|
| 1091 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1092 |
|
| 1093 |
echo "$as_me:1093: checking whether build environment is sane" >&5 |
| 1094 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1095 |
# Just in case |
| 1096 |
sleep 1 |
| 1097 |
echo timestamp > conftest.file |
| 1098 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 1099 |
# arguments. Must try -L first in case configure is actually a |
| 1100 |
# symlink; some systems play weird games with the mod time of symlinks |
| 1101 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 1102 |
# directory). |
| 1103 |
if ( |
| 1104 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1105 |
if test "$*" = "X"; then |
| 1106 |
# -L didn't work. |
| 1107 |
set X `ls -t $srcdir/configure conftest.file` |
| 1108 |
fi |
| 1109 |
rm -f conftest.file |
| 1110 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1111 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 1112 |
|
| 1113 |
# If neither matched, then we have a broken ls. This can happen |
| 1114 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1115 |
# broken ls alias from the environment. This has actually |
| 1116 |
# happened. Such a system could not be considered "sane". |
| 1117 |
{ { echo "$as_me:1117: error: ls -t appears to fail. Make sure there is not a broken |
| 1118 |
alias in your environment" >&5 |
| 1119 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1120 |
alias in your environment" >&2;} |
| 1121 |
{ (exit 1); exit 1; }; } |
| 1122 |
fi |
| 1123 |
|
| 1124 |
test "$2" = conftest.file |
| 1125 |
) |
| 1126 |
then |
| 1127 |
# Ok. |
| 1128 |
: |
| 1129 |
else |
| 1130 |
{ { echo "$as_me:1130: error: newly created file is older than distributed files! |
| 1131 |
Check your system clock" >&5 |
| 1132 |
echo "$as_me: error: newly created file is older than distributed files! |
| 1133 |
Check your system clock" >&2;} |
| 1134 |
{ (exit 1); exit 1; }; } |
| 1135 |
fi |
| 1136 |
echo "$as_me:1136: result: yes" >&5 |
| 1137 |
echo "${ECHO_T}yes" >&6 |
| 1138 |
test "$program_prefix" != NONE && |
| 1139 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1140 |
# Use a double $ so make ignores it. |
| 1141 |
test "$program_suffix" != NONE && |
| 1142 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1143 |
# Double any \ or $. echo might interpret backslashes. |
| 1144 |
# By default was `s,x,x', remove it if useless. |
| 1145 |
cat <<\_ACEOF >conftest.sed |
| 1146 |
s/[\\$]/&&/g;s/;s,x,x,$// |
| 1147 |
_ACEOF |
| 1148 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1149 |
rm conftest.sed |
| 1150 |
|
| 1151 |
# expand $ac_aux_dir to an absolute path |
| 1152 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1153 |
|
| 1154 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1155 |
# Use eval to expand $SHELL |
| 1156 |
if eval "$MISSING --run true"; then |
| 1157 |
am_missing_run="$MISSING --run " |
| 1158 |
else |
| 1159 |
am_missing_run= |
| 1160 |
{ echo "$as_me:1160: WARNING: \`missing' script is too old or missing" >&5 |
| 1161 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1162 |
fi |
| 1163 |
|
| 1164 |
for ac_prog in mawk gawk nawk awk |
| 1165 |
do |
| 1166 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1167 |
set dummy $ac_prog; ac_word=$2 |
| 1168 |
echo "$as_me:1168: checking for $ac_word" >&5 |
| 1169 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1170 |
if test "${ac_cv_prog_AWK+set}" = set; then |
| 1171 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1172 |
else |
| 1173 |
if test -n "$AWK"; then |
| 1174 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1175 |
else |
| 1176 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1177 |
ac_dummy="$PATH" |
| 1178 |
for ac_dir in $ac_dummy; do |
| 1179 |
IFS=$ac_save_IFS |
| 1180 |
test -z "$ac_dir" && ac_dir=. |
| 1181 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1182 |
ac_cv_prog_AWK="$ac_prog" |
| 1183 |
echo "$as_me:1183: found $ac_dir/$ac_word" >&5 |
| 1184 |
break |
| 1185 |
done |
| 1186 |
|
| 1187 |
fi |
| 1188 |
fi |
| 1189 |
AWK=$ac_cv_prog_AWK |
| 1190 |
if test -n "$AWK"; then |
| 1191 |
echo "$as_me:1191: result: $AWK" >&5 |
| 1192 |
echo "${ECHO_T}$AWK" >&6 |
| 1193 |
else |
| 1194 |
echo "$as_me:1194: result: no" >&5 |
| 1195 |
echo "${ECHO_T}no" >&6 |
| 1196 |
fi |
| 1197 |
|
| 1198 |
test -n "$AWK" && break |
| 1199 |
done |
| 1200 |
|
| 1201 |
echo "$as_me:1201: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1202 |
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1203 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1204 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1205 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1206 |
else |
| 1207 |
cat >conftest.make <<\EOF |
| 1208 |
all: |
| 1209 |
@echo 'ac_maketemp="${MAKE}"' |
| 1210 |
EOF |
| 1211 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1212 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1213 |
if test -n "$ac_maketemp"; then |
| 1214 |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 1215 |
else |
| 1216 |
eval ac_cv_prog_make_${ac_make}_set=no |
| 1217 |
fi |
| 1218 |
rm -f conftest.make |
| 1219 |
fi |
| 1220 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1221 |
echo "$as_me:1221: result: yes" >&5 |
| 1222 |
echo "${ECHO_T}yes" >&6 |
| 1223 |
SET_MAKE= |
| 1224 |
else |
| 1225 |
echo "$as_me:1225: result: no" >&5 |
| 1226 |
echo "${ECHO_T}no" >&6 |
| 1227 |
SET_MAKE="MAKE=${MAKE-make}" |
| 1228 |
fi |
| 1229 |
|
| 1230 |
# test to see if srcdir already configured |
| 1231 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1232 |
test -f $srcdir/config.status; then |
| 1233 |
{ { echo "$as_me:1233: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1234 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1235 |
{ (exit 1); exit 1; }; } |
| 1236 |
fi |
| 1237 |
|
| 1238 |
# Define the identity of the package. |
| 1239 |
PACKAGE=groundhog |
| 1240 |
VERSION=1.4 |
| 1241 |
|
| 1242 |
cat >>confdefs.h <<EOF |
| 1243 |
#define PACKAGE "$PACKAGE" |
| 1244 |
EOF |
| 1245 |
|
| 1246 |
cat >>confdefs.h <<EOF |
| 1247 |
#define VERSION "$VERSION" |
| 1248 |
EOF |
| 1249 |
|
| 1250 |
# Some tools Automake needs. |
| 1251 |
|
| 1252 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1253 |
|
| 1254 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1255 |
|
| 1256 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1257 |
|
| 1258 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1259 |
|
| 1260 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1261 |
|
| 1262 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1263 |
|
| 1264 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1265 |
|
| 1266 |
# Installed binaries are usually stripped using `strip' when the user |
| 1267 |
# run `make install-strip'. However `strip' might not be the right |
| 1268 |
# tool to use in cross-compilation environments, therefore Automake |
| 1269 |
# will honor the `STRIP' environment variable to overrule this program. |
| 1270 |
if test "$cross_compiling" != no; then |
| 1271 |
if test -n "$ac_tool_prefix"; then |
| 1272 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1273 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1274 |
echo "$as_me:1274: checking for $ac_word" >&5 |
| 1275 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1276 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1277 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1278 |
else |
| 1279 |
if test -n "$STRIP"; then |
| 1280 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1281 |
else |
| 1282 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1283 |
ac_dummy="$PATH" |
| 1284 |
for ac_dir in $ac_dummy; do |
| 1285 |
IFS=$ac_save_IFS |
| 1286 |
test -z "$ac_dir" && ac_dir=. |
| 1287 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1288 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1289 |
echo "$as_me:1289: found $ac_dir/$ac_word" >&5 |
| 1290 |
break |
| 1291 |
done |
| 1292 |
|
| 1293 |
fi |
| 1294 |
fi |
| 1295 |
STRIP=$ac_cv_prog_STRIP |
| 1296 |
if test -n "$STRIP"; then |
| 1297 |
echo "$as_me:1297: result: $STRIP" >&5 |
| 1298 |
echo "${ECHO_T}$STRIP" >&6 |
| 1299 |
else |
| 1300 |
echo "$as_me:1300: result: no" >&5 |
| 1301 |
echo "${ECHO_T}no" >&6 |
| 1302 |
fi |
| 1303 |
|
| 1304 |
fi |
| 1305 |
if test -z "$ac_cv_prog_STRIP"; then |
| 1306 |
ac_ct_STRIP=$STRIP |
| 1307 |
# Extract the first word of "strip", so it can be a program name with args. |
| 1308 |
set dummy strip; ac_word=$2 |
| 1309 |
echo "$as_me:1309: checking for $ac_word" >&5 |
| 1310 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1311 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1312 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1313 |
else |
| 1314 |
if test -n "$ac_ct_STRIP"; then |
| 1315 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1316 |
else |
| 1317 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1318 |
ac_dummy="$PATH" |
| 1319 |
for ac_dir in $ac_dummy; do |
| 1320 |
IFS=$ac_save_IFS |
| 1321 |
test -z "$ac_dir" && ac_dir=. |
| 1322 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1323 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 1324 |
echo "$as_me:1324: found $ac_dir/$ac_word" >&5 |
| 1325 |
break |
| 1326 |
done |
| 1327 |
|
| 1328 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1329 |
fi |
| 1330 |
fi |
| 1331 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1332 |
if test -n "$ac_ct_STRIP"; then |
| 1333 |
echo "$as_me:1333: result: $ac_ct_STRIP" >&5 |
| 1334 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1335 |
else |
| 1336 |
echo "$as_me:1336: result: no" >&5 |
| 1337 |
echo "${ECHO_T}no" >&6 |
| 1338 |
fi |
| 1339 |
|
| 1340 |
STRIP=$ac_ct_STRIP |
| 1341 |
else |
| 1342 |
STRIP="$ac_cv_prog_STRIP" |
| 1343 |
fi |
| 1344 |
|
| 1345 |
fi |
| 1346 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1347 |
|
| 1348 |
# We need awk for the "check" target. The system "awk" is bad on |
| 1349 |
# some platforms. |
| 1350 |
|
| 1351 |
# Add the stamp file to the list of files AC keeps track of, |
| 1352 |
# along with our hook. |
| 1353 |
ac_config_headers="$ac_config_headers config.h" |
| 1354 |
|
| 1355 |
GLIB_REQUIRED_VERSION=2.0.0 |
| 1356 |
GTK_REQUIRED_VERSION=$GLIB_REQUIRED_VERSION |
| 1357 |
|
| 1358 |
ALL_LINGUAS="nl fr" |
| 1359 |
|
| 1360 |
MKINSTALLDIRS= |
| 1361 |
if test -n "$ac_aux_dir"; then |
| 1362 |
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1363 |
fi |
| 1364 |
if test -z "$MKINSTALLDIRS"; then |
| 1365 |
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1366 |
fi |
| 1367 |
|
| 1368 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
| 1369 |
set dummy msgfmt; ac_word=$2 |
| 1370 |
echo "$as_me:1370: checking for $ac_word" >&5 |
| 1371 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1372 |
if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 1373 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1374 |
else |
| 1375 |
case "$MSGFMT" in |
| 1376 |
/*) |
| 1377 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 1378 |
;; |
| 1379 |
*) |
| 1380 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1381 |
for ac_dir in $PATH; do |
| 1382 |
test -z "$ac_dir" && ac_dir=. |
| 1383 |
if test -f $ac_dir/$ac_word; then |
| 1384 |
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 1385 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 1386 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 1387 |
break |
| 1388 |
fi |
| 1389 |
fi |
| 1390 |
done |
| 1391 |
IFS="$ac_save_ifs" |
| 1392 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 1393 |
;; |
| 1394 |
esac |
| 1395 |
fi |
| 1396 |
MSGFMT="$ac_cv_path_MSGFMT" |
| 1397 |
if test "$MSGFMT" != ":"; then |
| 1398 |
echo "$as_me:1398: result: $MSGFMT" >&5 |
| 1399 |
echo "${ECHO_T}$MSGFMT" >&6 |
| 1400 |
else |
| 1401 |
echo "$as_me:1401: result: no" >&5 |
| 1402 |
echo "${ECHO_T}no" >&6 |
| 1403 |
fi |
| 1404 |
|
| 1405 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 1406 |
set dummy gmsgfmt; ac_word=$2 |
| 1407 |
echo "$as_me:1407: checking for $ac_word" >&5 |
| 1408 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1409 |
if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 1410 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1411 |
else |
| 1412 |
case $GMSGFMT in |
| 1413 |
[\\/]* | ?:[\\/]*) |
| 1414 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 1415 |
;; |
| 1416 |
*) |
| 1417 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1418 |
ac_dummy="$PATH" |
| 1419 |
for ac_dir in $ac_dummy; do |
| 1420 |
IFS=$ac_save_IFS |
| 1421 |
test -z "$ac_dir" && ac_dir=. |
| 1422 |
if $as_executable_p "$ac_dir/$ac_word"; then |
| 1423 |
ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 1424 |
echo "$as_me:1424: found $ac_dir/$ac_word" >&5 |
| 1425 |
break |
| 1426 |
fi |
| 1427 |
done |
| 1428 |
|
| 1429 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 1430 |
;; |
| 1431 |
esac |
| 1432 |
fi |
| 1433 |
GMSGFMT=$ac_cv_path_GMSGFMT |
| 1434 |
|
| 1435 |
if test -n "$GMSGFMT"; then |
| 1436 |
echo "$as_me:1436: result: $GMSGFMT" >&5 |
| 1437 |
echo "${ECHO_T}$GMSGFMT" >&6 |
| 1438 |
else |
| 1439 |
echo "$as_me:1439: result: no" >&5 |
| 1440 |
echo "${ECHO_T}no" >&6 |
| 1441 |
fi |
| 1442 |
|
| 1443 |
# Extract the first word of "xgettext", so it can be a program name with args. |
| 1444 |
set dummy xgettext; ac_word=$2 |
| 1445 |
echo "$as_me:1445: checking for $ac_word" >&5 |
| 1446 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1447 |
if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 1448 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1449 |
else |
| 1450 |
case "$XGETTEXT" in |
| 1451 |
/*) |
| 1452 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 1453 |
;; |
| 1454 |
*) |
| 1455 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1456 |
for ac_dir in $PATH; do |
| 1457 |
test -z "$ac_dir" && ac_dir=. |
| 1458 |
if test -f $ac_dir/$ac_word; then |
| 1459 |
if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 1460 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 1461 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 1462 |
break |
| 1463 |
fi |
| 1464 |
fi |
| 1465 |
done |
| 1466 |
IFS="$ac_save_ifs" |
| 1467 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 1468 |
;; |
| 1469 |
esac |
| 1470 |
fi |
| 1471 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
| 1472 |
if test "$XGETTEXT" != ":"; then |
| 1473 |
echo "$as_me:1473: result: $XGETTEXT" >&5 |
| 1474 |
echo "${ECHO_T}$XGETTEXT" >&6 |
| 1475 |
else |
| 1476 |
echo "$as_me:1476: result: no" >&5 |
| 1477 |
echo "${ECHO_T}no" >&6 |
| 1478 |
fi |
| 1479 |
|
| 1480 |
rm -f messages.po |
| 1481 |
|
| 1482 |
# Extract the first word of "msgmerge", so it can be a program name with args. |
| 1483 |
set dummy msgmerge; ac_word=$2 |
| 1484 |
echo "$as_me:1484: checking for $ac_word" >&5 |
| 1485 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1486 |
if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 1487 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1488 |
else |
| 1489 |
case "$MSGMERGE" in |
| 1490 |
/*) |
| 1491 |
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 1492 |
;; |
| 1493 |
*) |
| 1494 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1495 |
for ac_dir in $PATH; do |
| 1496 |
test -z "$ac_dir" && ac_dir=. |
| 1497 |
if test -f $ac_dir/$ac_word; then |
| 1498 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 1499 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 1500 |
break |
| 1501 |
fi |
| 1502 |
fi |
| 1503 |
done |
| 1504 |
IFS="$ac_save_ifs" |
| 1505 |
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 1506 |
;; |
| 1507 |
esac |
| 1508 |
fi |
| 1509 |
MSGMERGE="$ac_cv_path_MSGMERGE" |
| 1510 |
if test "$MSGMERGE" != ":"; then |
| 1511 |
echo "$as_me:1511: result: $MSGMERGE" >&5 |
| 1512 |
echo "${ECHO_T}$MSGMERGE" >&6 |
| 1513 |
else |
| 1514 |
echo "$as_me:1514: result: no" >&5 |
| 1515 |
echo "${ECHO_T}no" >&6 |
| 1516 |
fi |
| 1517 |
|
| 1518 |
if test "$GMSGFMT" != ":"; then |
| 1519 |
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 1520 |
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 1521 |
: ; |
| 1522 |
else |
| 1523 |
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 1524 |
echo "$as_me:1524: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 1525 |
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
| 1526 |
GMSGFMT=":" |
| 1527 |
fi |
| 1528 |
fi |
| 1529 |
|
| 1530 |
if test "$XGETTEXT" != ":"; then |
| 1531 |
if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 1532 |
(if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 1533 |
: ; |
| 1534 |
else |
| 1535 |
echo "$as_me:1535: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 1536 |
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
| 1537 |
XGETTEXT=":" |
| 1538 |
fi |
| 1539 |
rm -f messages.po |
| 1540 |
fi |
| 1541 |
|
| 1542 |
ac_config_commands="$ac_config_commands default-1" |
| 1543 |
|
| 1544 |
rm -f .deps 2>/dev/null |
| 1545 |
mkdir .deps 2>/dev/null |
| 1546 |
if test -d .deps; then |
| 1547 |
DEPDIR=.deps |
| 1548 |
else |
| 1549 |
# MS-DOS does not allow filenames that begin with a dot. |
| 1550 |
DEPDIR=_deps |
| 1551 |
fi |
| 1552 |
rmdir .deps 2>/dev/null |
| 1553 |
|
| 1554 |
ac_config_commands="$ac_config_commands depfiles" |
| 1555 |
|
| 1556 |
am_make=${MAKE-make} |
| 1557 |
cat > confinc << 'END' |
| 1558 |
doit: |
| 1559 |
@echo done |
| 1560 |
END |
| 1561 |
# If we don't find an include directive, just comment out the code. |
| 1562 |
echo "$as_me:1562: checking for style of include used by $am_make" >&5 |
| 1563 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 1564 |
am__include="#" |
| 1565 |
am__quote= |
| 1566 |
_am_result=none |
| 1567 |
# First try GNU make style include. |
| 1568 |
echo "include confinc" > confmf |
| 1569 |
# We grep out `Entering directory' and `Leaving directory' |
| 1570 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
| 1571 |
# In particular we don't look at `^make:' because GNU make might |
| 1572 |
# be invoked under some other name (usually "gmake"), in which |
| 1573 |
# case it prints its new name instead of `make'. |
| 1574 |
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 1575 |
am__include=include |
| 1576 |
am__quote= |
| 1577 |
_am_result=GNU |
| 1578 |
fi |
| 1579 |
# Now try BSD make style include. |
| 1580 |
if test "$am__include" = "#"; then |
| 1581 |
echo '.include "confinc"' > confmf |
| 1582 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 1583 |
am__include=.include |
| 1584 |
am__quote="\"" |
| 1585 |
_am_result=BSD |
| 1586 |
fi |
| 1587 |
fi |
| 1588 |
|
| 1589 |
echo "$as_me:1589: result: $_am_result" >&5 |
| 1590 |
echo "${ECHO_T}$_am_result" >&6 |
| 1591 |
rm -f confinc confmf |
| 1592 |
|
| 1593 |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 1594 |
if test "${enable_dependency_tracking+set}" = set; then |
| 1595 |
enableval="$enable_dependency_tracking" |
| 1596 |
|
| 1597 |
fi; |
| 1598 |
if test "x$enable_dependency_tracking" != xno; then |
| 1599 |
am_depcomp="$ac_aux_dir/depcomp" |
| 1600 |
AMDEPBACKSLASH='\' |
| 1601 |
fi |
| 1602 |
|
| 1603 |
if test "x$enable_dependency_tracking" != xno; then |
| 1604 |
AMDEP_TRUE= |
| 1605 |
AMDEP_FALSE='#' |
| 1606 |
else |
| 1607 |
AMDEP_TRUE='#' |
| 1608 |
AMDEP_FALSE= |
| 1609 |
fi |
| 1610 |
|
| 1611 |
ac_ext=c |
| 1612 |
ac_cpp='$CPP $CPPFLAGS' |
| 1613 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1614 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1615 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1616 |
if test -n "$ac_tool_prefix"; then |
| 1617 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1618 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1619 |
echo "$as_me:1619: checking for $ac_word" >&5 |
| 1620 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1621 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1622 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1623 |
else |
| 1624 |
if test -n "$CC"; then |
| 1625 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1626 |
else |
| 1627 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1628 |
ac_dummy="$PATH" |
| 1629 |
for ac_dir in $ac_dummy; do |
| 1630 |
IFS=$ac_save_IFS |
| 1631 |
test -z "$ac_dir" && ac_dir=. |
| 1632 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1633 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1634 |
echo "$as_me:1634: found $ac_dir/$ac_word" >&5 |
| 1635 |
break |
| 1636 |
done |
| 1637 |
|
| 1638 |
fi |
| 1639 |
fi |
| 1640 |
CC=$ac_cv_prog_CC |
| 1641 |
if test -n "$CC"; then |
| 1642 |
echo "$as_me:1642: result: $CC" >&5 |
| 1643 |
echo "${ECHO_T}$CC" >&6 |
| 1644 |
else |
| 1645 |
echo "$as_me:1645: result: no" >&5 |
| 1646 |
echo "${ECHO_T}no" >&6 |
| 1647 |
fi |
| 1648 |
|
| 1649 |
fi |
| 1650 |
if test -z "$ac_cv_prog_CC"; then |
| 1651 |
ac_ct_CC=$CC |
| 1652 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1653 |
set dummy gcc; ac_word=$2 |
| 1654 |
echo "$as_me:1654: checking for $ac_word" >&5 |
| 1655 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1656 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1657 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1658 |
else |
| 1659 |
if test -n "$ac_ct_CC"; then |
| 1660 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1661 |
else |
| 1662 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1663 |
ac_dummy="$PATH" |
| 1664 |
for ac_dir in $ac_dummy; do |
| 1665 |
IFS=$ac_save_IFS |
| 1666 |
test -z "$ac_dir" && ac_dir=. |
| 1667 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1668 |
ac_cv_prog_ac_ct_CC="gcc" |
| 1669 |
echo "$as_me:1669: found $ac_dir/$ac_word" >&5 |
| 1670 |
break |
| 1671 |
done |
| 1672 |
|
| 1673 |
fi |
| 1674 |
fi |
| 1675 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1676 |
if test -n "$ac_ct_CC"; then |
| 1677 |
echo "$as_me:1677: result: $ac_ct_CC" >&5 |
| 1678 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1679 |
else |
| 1680 |
echo "$as_me:1680: result: no" >&5 |
| 1681 |
echo "${ECHO_T}no" >&6 |
| 1682 |
fi |
| 1683 |
|
| 1684 |
CC=$ac_ct_CC |
| 1685 |
else |
| 1686 |
CC="$ac_cv_prog_CC" |
| 1687 |
fi |
| 1688 |
|
| 1689 |
if test -z "$CC"; then |
| 1690 |
if test -n "$ac_tool_prefix"; then |
| 1691 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1692 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1693 |
echo "$as_me:1693: checking for $ac_word" >&5 |
| 1694 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1695 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1696 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1697 |
else |
| 1698 |
if test -n "$CC"; then |
| 1699 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1700 |
else |
| 1701 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1702 |
ac_dummy="$PATH" |
| 1703 |
for ac_dir in $ac_dummy; do |
| 1704 |
IFS=$ac_save_IFS |
| 1705 |
test -z "$ac_dir" && ac_dir=. |
| 1706 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1707 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1708 |
echo "$as_me:1708: found $ac_dir/$ac_word" >&5 |
| 1709 |
break |
| 1710 |
done |
| 1711 |
|
| 1712 |
fi |
| 1713 |
fi |
| 1714 |
CC=$ac_cv_prog_CC |
| 1715 |
if test -n "$CC"; then |
| 1716 |
echo "$as_me:1716: result: $CC" >&5 |
| 1717 |
echo "${ECHO_T}$CC" >&6 |
| 1718 |
else |
| 1719 |
echo "$as_me:1719: result: no" >&5 |
| 1720 |
echo "${ECHO_T}no" >&6 |
| 1721 |
fi |
| 1722 |
|
| 1723 |
fi |
| 1724 |
if test -z "$ac_cv_prog_CC"; then |
| 1725 |
ac_ct_CC=$CC |
| 1726 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1727 |
set dummy cc; ac_word=$2 |
| 1728 |
echo "$as_me:1728: checking for $ac_word" >&5 |
| 1729 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1730 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1731 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1732 |
else |
| 1733 |
if test -n "$ac_ct_CC"; then |
| 1734 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1735 |
else |
| 1736 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1737 |
ac_dummy="$PATH" |
| 1738 |
for ac_dir in $ac_dummy; do |
| 1739 |
IFS=$ac_save_IFS |
| 1740 |
test -z "$ac_dir" && ac_dir=. |
| 1741 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1742 |
ac_cv_prog_ac_ct_CC="cc" |
| 1743 |
echo "$as_me:1743: found $ac_dir/$ac_word" >&5 |
| 1744 |
break |
| 1745 |
done |
| 1746 |
|
| 1747 |
fi |
| 1748 |
fi |
| 1749 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1750 |
if test -n "$ac_ct_CC"; then |
| 1751 |
echo "$as_me:1751: result: $ac_ct_CC" >&5 |
| 1752 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1753 |
else |
| 1754 |
echo "$as_me:1754: result: no" >&5 |
| 1755 |
echo "${ECHO_T}no" >&6 |
| 1756 |
fi |
| 1757 |
|
| 1758 |
CC=$ac_ct_CC |
| 1759 |
else |
| 1760 |
CC="$ac_cv_prog_CC" |
| 1761 |
fi |
| 1762 |
|
| 1763 |
fi |
| 1764 |
if test -z "$CC"; then |
| 1765 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1766 |
set dummy cc; ac_word=$2 |
| 1767 |
echo "$as_me:1767: checking for $ac_word" >&5 |
| 1768 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1769 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1770 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1771 |
else |
| 1772 |
if test -n "$CC"; then |
| 1773 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1774 |
else |
| 1775 |
ac_prog_rejected=no |
| 1776 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1777 |
ac_dummy="$PATH" |
| 1778 |
for ac_dir in $ac_dummy; do |
| 1779 |
IFS=$ac_save_IFS |
| 1780 |
test -z "$ac_dir" && ac_dir=. |
| 1781 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1782 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1783 |
ac_prog_rejected=yes |
| 1784 |
continue |
| 1785 |
fi |
| 1786 |
ac_cv_prog_CC="cc" |
| 1787 |
echo "$as_me:1787: found $ac_dir/$ac_word" >&5 |
| 1788 |
break |
| 1789 |
done |
| 1790 |
|
| 1791 |
if test $ac_prog_rejected = yes; then |
| 1792 |
# We found a bogon in the path, so make sure we never use it. |
| 1793 |
set dummy $ac_cv_prog_CC |
| 1794 |
shift |
| 1795 |
if test $# != 0; then |
| 1796 |
# We chose a different compiler from the bogus one. |
| 1797 |
# However, it has the same basename, so the bogon will be chosen |
| 1798 |
# first if we set CC to just the basename; use the full file name. |
| 1799 |
shift |
| 1800 |
set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| 1801 |
shift |
| 1802 |
ac_cv_prog_CC="$@" |
| 1803 |
fi |
| 1804 |
fi |
| 1805 |
fi |
| 1806 |
fi |
| 1807 |
CC=$ac_cv_prog_CC |
| 1808 |
if test -n "$CC"; then |
| 1809 |
echo "$as_me:1809: result: $CC" >&5 |
| 1810 |
echo "${ECHO_T}$CC" >&6 |
| 1811 |
else |
| 1812 |
echo "$as_me:1812: result: no" >&5 |
| 1813 |
echo "${ECHO_T}no" >&6 |
| 1814 |
fi |
| 1815 |
|
| 1816 |
fi |
| 1817 |
if test -z "$CC"; then |
| 1818 |
if test -n "$ac_tool_prefix"; then |
| 1819 |
for ac_prog in cl |
| 1820 |
do |
| 1821 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1822 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1823 |
echo "$as_me:1823: checking for $ac_word" >&5 |
| 1824 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1825 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1826 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1827 |
else |
| 1828 |
if test -n "$CC"; then |
| 1829 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1830 |
else |
| 1831 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1832 |
ac_dummy="$PATH" |
| 1833 |
for ac_dir in $ac_dummy; do |
| 1834 |
IFS=$ac_save_IFS |
| 1835 |
test -z "$ac_dir" && ac_dir=. |
| 1836 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1837 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1838 |
echo "$as_me:1838: found $ac_dir/$ac_word" >&5 |
| 1839 |
break |
| 1840 |
done |
| 1841 |
|
| 1842 |
fi |
| 1843 |
fi |
| 1844 |
CC=$ac_cv_prog_CC |
| 1845 |
if test -n "$CC"; then |
| 1846 |
echo "$as_me:1846: result: $CC" >&5 |
| 1847 |
echo "${ECHO_T}$CC" >&6 |
| 1848 |
else |
| 1849 |
echo "$as_me:1849: result: no" >&5 |
| 1850 |
echo "${ECHO_T}no" >&6 |
| 1851 |
fi |
| 1852 |
|
| 1853 |
test -n "$CC" && break |
| 1854 |
done |
| 1855 |
fi |
| 1856 |
if test -z "$CC"; then |
| 1857 |
ac_ct_CC=$CC |
| 1858 |
for ac_prog in cl |
| 1859 |
do |
| 1860 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1861 |
set dummy $ac_prog; ac_word=$2 |
| 1862 |
echo "$as_me:1862: checking for $ac_word" >&5 |
| 1863 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1864 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1865 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1866 |
else |
| 1867 |
if test -n "$ac_ct_CC"; then |
| 1868 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1869 |
else |
| 1870 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1871 |
ac_dummy="$PATH" |
| 1872 |
for ac_dir in $ac_dummy; do |
| 1873 |
IFS=$ac_save_IFS |
| 1874 |
test -z "$ac_dir" && ac_dir=. |
| 1875 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 1876 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1877 |
echo "$as_me:1877: found $ac_dir/$ac_word" >&5 |
| 1878 |
break |
| 1879 |
done |
| 1880 |
|
| 1881 |
fi |
| 1882 |
fi |
| 1883 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1884 |
if test -n "$ac_ct_CC"; then |
| 1885 |
echo "$as_me:1885: result: $ac_ct_CC" >&5 |
| 1886 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1887 |
else |
| 1888 |
echo "$as_me:1888: result: no" >&5 |
| 1889 |
echo "${ECHO_T}no" >&6 |
| 1890 |
fi |
| 1891 |
|
| 1892 |
test -n "$ac_ct_CC" && break |
| 1893 |
done |
| 1894 |
|
| 1895 |
CC=$ac_ct_CC |
| 1896 |
fi |
| 1897 |
|
| 1898 |
fi |
| 1899 |
|
| 1900 |
test -z "$CC" && { { echo "$as_me:1900: error: no acceptable cc found in \$PATH" >&5 |
| 1901 |
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 1902 |
{ (exit 1); exit 1; }; } |
| 1903 |
|
| 1904 |
# Provide some information about the compiler. |
| 1905 |
echo "$as_me:1905:" \ |
| 1906 |
"checking for C compiler version" >&5 |
| 1907 |
ac_compiler=`set X $ac_compile; echo $2` |
| 1908 |
{ (eval echo "$as_me:1908: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1909 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1910 |
ac_status=$? |
| 1911 |
echo "$as_me:1911: \$? = $ac_status" >&5 |
| 1912 |
(exit $ac_status); } |
| 1913 |
{ (eval echo "$as_me:1913: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1914 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1915 |
ac_status=$? |
| 1916 |
echo "$as_me:1916: \$? = $ac_status" >&5 |
| 1917 |
(exit $ac_status); } |
| 1918 |
{ (eval echo "$as_me:1918: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1919 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1920 |
ac_status=$? |
| 1921 |
echo "$as_me:1921: \$? = $ac_status" >&5 |
| 1922 |
(exit $ac_status); } |
| 1923 |
|
| 1924 |
cat >conftest.$ac_ext <<_ACEOF |
| 1925 |
#line 1925 "configure" |
| 1926 |
#include "confdefs.h" |
| 1927 |
|
| 1928 |
int |
| 1929 |
main () |
| 1930 |
{ |
| 1931 |
|
| 1932 |
; |
| 1933 |
return 0; |
| 1934 |
} |
| 1935 |
_ACEOF |
| 1936 |
ac_clean_files_save=$ac_clean_files |
| 1937 |
ac_clean_files="$ac_clean_files a.out a.exe" |
| 1938 |
# Try to create an executable without -o first, disregard a.out. |
| 1939 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 1940 |
# of exeext. |
| 1941 |
echo "$as_me:1941: checking for C compiler default output" >&5 |
| 1942 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1943 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1944 |
if { (eval echo "$as_me:1944: \"$ac_link_default\"") >&5 |
| 1945 |
(eval $ac_link_default) 2>&5 |
| 1946 |
ac_status=$? |
| 1947 |
echo "$as_me:1947: \$? = $ac_status" >&5 |
| 1948 |
(exit $ac_status); }; then |
| 1949 |
# Find the output, starting from the most likely. This scheme is |
| 1950 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1951 |
# resort. |
| 1952 |
for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| 1953 |
ls a.out conftest 2>/dev/null; |
| 1954 |
ls a.* conftest.* 2>/dev/null`; do |
| 1955 |
case $ac_file in |
| 1956 |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1957 |
a.out ) # We found the default executable, but exeext='' is most |
| 1958 |
# certainly right. |
| 1959 |
break;; |
| 1960 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1961 |
# FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1962 |
export ac_cv_exeext |
| 1963 |
break;; |
| 1964 |
* ) break;; |
| 1965 |
esac |
| 1966 |
done |
| 1967 |
else |
| 1968 |
echo "$as_me: failed program was:" >&5 |
| 1969 |
cat conftest.$ac_ext >&5 |
| 1970 |
{ { echo "$as_me:1970: error: C compiler cannot create executables" >&5 |
| 1971 |
echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1972 |
{ (exit 77); exit 77; }; } |
| 1973 |
fi |
| 1974 |
|
| 1975 |
ac_exeext=$ac_cv_exeext |
| 1976 |
echo "$as_me:1976: result: $ac_file" >&5 |
| 1977 |
echo "${ECHO_T}$ac_file" >&6 |
| 1978 |
|
| 1979 |
# Check the compiler produces executables we can run. If not, either |
| 1980 |
# the compiler is broken, or we cross compile. |
| 1981 |
echo "$as_me:1981: checking whether the C compiler works" >&5 |
| 1982 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1983 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1984 |
# If not cross compiling, check that we can run a simple program. |
| 1985 |
if test "$cross_compiling" != yes; then |
| 1986 |
if { ac_try='./$ac_file' |
| 1987 |
{ (eval echo "$as_me:1987: \"$ac_try\"") >&5 |
| 1988 |
(eval $ac_try) 2>&5 |
| 1989 |
ac_status=$? |
| 1990 |
echo "$as_me:1990: \$? = $ac_status" >&5 |
| 1991 |
(exit $ac_status); }; }; then |
| 1992 |
cross_compiling=no |
| 1993 |
else |
| 1994 |
if test "$cross_compiling" = maybe; then |
| 1995 |
cross_compiling=yes |
| 1996 |
else |
| 1997 |
{ { echo "$as_me:1997: error: cannot run C compiled programs. |
| 1998 |
If you meant to cross compile, use \`--host'." >&5 |
| 1999 |
echo "$as_me: error: cannot run C compiled programs. |
| 2000 |
If you meant to cross compile, use \`--host'." >&2;} |
| 2001 |
{ (exit 1); exit 1; }; } |
| 2002 |
fi |
| 2003 |
fi |
| 2004 |
fi |
| 2005 |
echo "$as_me:2005: result: yes" >&5 |
| 2006 |
echo "${ECHO_T}yes" >&6 |
| 2007 |
|
| 2008 |
rm -f a.out a.exe conftest$ac_cv_exeext |
| 2009 |
ac_clean_files=$ac_clean_files_save |
| 2010 |
# Check the compiler produces executables we can run. If not, either |
| 2011 |
# the compiler is broken, or we cross compile. |
| 2012 |
echo "$as_me:2012: checking whether we are cross compiling" >&5 |
| 2013 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2014 |
echo "$as_me:2014: result: $cross_compiling" >&5 |
| 2015 |
echo "${ECHO_T}$cross_compiling" >&6 |
| 2016 |
|
| 2017 |
echo "$as_me:2017: checking for executable suffix" >&5 |
| 2018 |
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 2019 |
if { (eval echo "$as_me:2019: \"$ac_link\"") >&5 |
| 2020 |
(eval $ac_link) 2>&5 |
| 2021 |
ac_status=$? |
| 2022 |
echo "$as_me:2022: \$? = $ac_status" >&5 |
| 2023 |
(exit $ac_status); }; then |
| 2024 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2025 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2026 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2027 |
# `rm'. |
| 2028 |
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2029 |
case $ac_file in |
| 2030 |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2031 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2032 |
export ac_cv_exeext |
| 2033 |
break;; |
| 2034 |
* ) break;; |
| 2035 |
esac |
| 2036 |
done |
| 2037 |
else |
| 2038 |
{ { echo "$as_me:2038: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 2039 |
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 2040 |
{ (exit 1); exit 1; }; } |
| 2041 |
fi |
| 2042 |
|
| 2043 |
rm -f conftest$ac_cv_exeext |
| 2044 |
echo "$as_me:2044: result: $ac_cv_exeext" >&5 |
| 2045 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2046 |
|
| 2047 |
rm -f conftest.$ac_ext |
| 2048 |
EXEEXT=$ac_cv_exeext |
| 2049 |
ac_exeext=$EXEEXT |
| 2050 |
echo "$as_me:2050: checking for object suffix" >&5 |
| 2051 |
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 2052 |
if test "${ac_cv_objext+set}" = set; then |
| 2053 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2054 |
else |
| 2055 |
cat >conftest.$ac_ext <<_ACEOF |
| 2056 |
#line 2056 "configure" |
| 2057 |
#include "confdefs.h" |
| 2058 |
|
| 2059 |
int |
| 2060 |
main () |
| 2061 |
{ |
| 2062 |
|
| 2063 |
; |
| 2064 |
return 0; |
| 2065 |
} |
| 2066 |
_ACEOF |
| 2067 |
rm -f conftest.o conftest.obj |
| 2068 |
if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5 |
| 2069 |
(eval $ac_compile) 2>&5 |
| 2070 |
ac_status=$? |
| 2071 |
echo "$as_me:2071: \$? = $ac_status" >&5 |
| 2072 |
(exit $ac_status); }; then |
| 2073 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2074 |
case $ac_file in |
| 2075 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2076 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2077 |
break;; |
| 2078 |
esac |
| 2079 |
done |
| 2080 |
else |
| 2081 |
echo "$as_me: failed program was:" >&5 |
| 2082 |
cat conftest.$ac_ext >&5 |
| 2083 |
{ { echo "$as_me:2083: error: cannot compute OBJEXT: cannot compile" >&5 |
| 2084 |
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| 2085 |
{ (exit 1); exit 1; }; } |
| 2086 |
fi |
| 2087 |
|
| 2088 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2089 |
fi |
| 2090 |
echo "$as_me:2090: result: $ac_cv_objext" >&5 |
| 2091 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2092 |
OBJEXT=$ac_cv_objext |
| 2093 |
ac_objext=$OBJEXT |
| 2094 |
echo "$as_me:2094: checking whether we are using the GNU C compiler" >&5 |
| 2095 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2096 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2097 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2098 |
else |
| 2099 |
cat >conftest.$ac_ext <<_ACEOF |
| 2100 |
#line 2100 "configure" |
| 2101 |
#include "confdefs.h" |
| 2102 |
|
| 2103 |
int |
| 2104 |
main () |
| 2105 |
{ |
| 2106 |
#ifndef __GNUC__ |
| 2107 |
choke me |
| 2108 |
#endif |
| 2109 |
|
| 2110 |
; |
| 2111 |
return 0; |
| 2112 |
} |
| 2113 |
_ACEOF |
| 2114 |
rm -f conftest.$ac_objext |
| 2115 |
if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5 |
| 2116 |
(eval $ac_compile) 2>&5 |
| 2117 |
ac_status=$? |
| 2118 |
echo "$as_me:2118: \$? = $ac_status" >&5 |
| 2119 |
(exit $ac_status); } && |
| 2120 |
{ ac_try='test -s conftest.$ac_objext' |
| 2121 |
{ (eval echo "$as_me:2121: \"$ac_try\"") >&5 |
| 2122 |
(eval $ac_try) 2>&5 |
| 2123 |
ac_status=$? |
| 2124 |
echo "$as_me:2124: \$? = $ac_status" >&5 |
| 2125 |
(exit $ac_status); }; }; then |
| 2126 |
ac_compiler_gnu=yes |
| 2127 |
else |
| 2128 |
echo "$as_me: failed program was:" >&5 |
| 2129 |
cat conftest.$ac_ext >&5 |
| 2130 |
ac_compiler_gnu=no |
| 2131 |
fi |
| 2132 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 2133 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2134 |
|
| 2135 |
fi |
| 2136 |
echo "$as_me:2136: result: $ac_cv_c_compiler_gnu" >&5 |
| 2137 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2138 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2139 |
ac_test_CFLAGS=${CFLAGS+set} |
| 2140 |
ac_save_CFLAGS=$CFLAGS |
| 2141 |
CFLAGS="-g" |
| 2142 |
echo "$as_me:2142: checking whether $CC accepts -g" >&5 |
| 2143 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2144 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2145 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2146 |
else |
| 2147 |
cat >conftest.$ac_ext <<_ACEOF |
| 2148 |
#line 2148 "configure" |
| 2149 |
#include "confdefs.h" |
| 2150 |
|
| 2151 |
int |
| 2152 |
main () |
| 2153 |
{ |
| 2154 |
|
| 2155 |
; |
| 2156 |
return 0; |
| 2157 |
} |
| 2158 |
_ACEOF |
| 2159 |
rm -f conftest.$ac_objext |
| 2160 |
if { (eval echo "$as_me:2160: \"$ac_compile\"") >&5 |
| 2161 |
(eval $ac_compile) 2>&5 |
| 2162 |
ac_status=$? |
| 2163 |
echo "$as_me:2163: \$? = $ac_status" >&5 |
| 2164 |
(exit $ac_status); } && |
| 2165 |
{ ac_try='test -s conftest.$ac_objext' |
| 2166 |
{ (eval echo "$as_me:2166: \"$ac_try\"") >&5 |
| 2167 |
(eval $ac_try) 2>&5 |
| 2168 |
ac_status=$? |
| 2169 |
echo "$as_me:2169: \$? = $ac_status" >&5 |
| 2170 |
(exit $ac_status); }; }; then |
| 2171 |
ac_cv_prog_cc_g=yes |
| 2172 |
else |
| 2173 |
echo "$as_me: failed program was:" >&5 |
| 2174 |
cat conftest.$ac_ext >&5 |
| 2175 |
ac_cv_prog_cc_g=no |
| 2176 |
fi |
| 2177 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 2178 |
fi |
| 2179 |
echo "$as_me:2179: result: $ac_cv_prog_cc_g" >&5 |
| 2180 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2181 |
if test "$ac_test_CFLAGS" = set; then |
| 2182 |
CFLAGS=$ac_save_CFLAGS |
| 2183 |
elif test $ac_cv_prog_cc_g = yes; then |
| 2184 |
if test "$GCC" = yes; then |
| 2185 |
CFLAGS="-g -O2" |
| 2186 |
else |
| 2187 |
CFLAGS="-g" |
| 2188 |
fi |
| 2189 |
else |
| 2190 |
if test "$GCC" = yes; then |
| 2191 |
CFLAGS="-O2" |
| 2192 |
else |
| 2193 |
CFLAGS= |
| 2194 |
fi |
| 2195 |
fi |
| 2196 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| 2197 |
# in C++ we need to declare it. In case someone uses the same compiler |
| 2198 |
# for both compiling C and C++ we need to have the C++ compiler decide |
| 2199 |
# the declaration of exit, since it's the most demanding environment. |
| 2200 |
cat >conftest.$ac_ext <<_ACEOF |
| 2201 |
#ifndef __cplusplus |
| 2202 |
choke me |
| 2203 |
#endif |
| 2204 |
_ACEOF |
| 2205 |
rm -f conftest.$ac_objext |
| 2206 |
if { (eval echo "$as_me:2206: \"$ac_compile\"") >&5 |
| 2207 |
(eval $ac_compile) 2>&5 |
| 2208 |
ac_status=$? |
| 2209 |
echo "$as_me:2209: \$? = $ac_status" >&5 |
| 2210 |
(exit $ac_status); } && |
| 2211 |
{ ac_try='test -s conftest.$ac_objext' |
| 2212 |
{ (eval echo "$as_me:2212: \"$ac_try\"") >&5 |
| 2213 |
(eval $ac_try) 2>&5 |
| 2214 |
ac_status=$? |
| 2215 |
echo "$as_me:2215: \$? = $ac_status" >&5 |
| 2216 |
(exit $ac_status); }; }; then |
| 2217 |
for ac_declaration in \ |
| 2218 |
''\ |
| 2219 |
'#include <stdlib.h>' \ |
| 2220 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2221 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 2222 |
'extern "C" void exit (int) throw ();' \ |
| 2223 |
'extern "C" void exit (int);' \ |
| 2224 |
'void exit (int);' |
| 2225 |
do |
| 2226 |
cat >conftest.$ac_ext <<_ACEOF |
| 2227 |
#line 2227 "configure" |
| 2228 |
#include "confdefs.h" |
| 2229 |
#include <stdlib.h> |
| 2230 |
$ac_declaration |
| 2231 |
int |
| 2232 |
main () |
| 2233 |
{ |
| 2234 |
exit (42); |
| 2235 |
; |
| 2236 |
return 0; |
| 2237 |
} |
| 2238 |
_ACEOF |
| 2239 |
rm -f conftest.$ac_objext |
| 2240 |
if { (eval echo "$as_me:2240: \"$ac_compile\"") >&5 |
| 2241 |
(eval $ac_compile) 2>&5 |
| 2242 |
ac_status=$? |
| 2243 |
echo "$as_me:2243: \$? = $ac_status" >&5 |
| 2244 |
(exit $ac_status); } && |
| 2245 |
{ ac_try='test -s conftest.$ac_objext' |
| 2246 |
{ (eval echo "$as_me:2246: \"$ac_try\"") >&5 |
| 2247 |
(eval $ac_try) 2>&5 |
| 2248 |
ac_status=$? |
| 2249 |
echo "$as_me:2249: \$? = $ac_status" >&5 |
| 2250 |
(exit $ac_status); }; }; then |
| 2251 |
: |
| 2252 |
else |
| 2253 |
echo "$as_me: failed program was:" >&5 |
| 2254 |
cat conftest.$ac_ext >&5 |
| 2255 |
continue |
| 2256 |
fi |
| 2257 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 2258 |
cat >conftest.$ac_ext <<_ACEOF |
| 2259 |
#line 2259 "configure" |
| 2260 |
#include "confdefs.h" |
| 2261 |
$ac_declaration |
| 2262 |
int |
| 2263 |
main () |
| 2264 |
{ |
| 2265 |
exit (42); |
| 2266 |
; |
| 2267 |
return 0; |
| 2268 |
} |
| 2269 |
_ACEOF |
| 2270 |
rm -f conftest.$ac_objext |
| 2271 |
if { (eval echo "$as_me:2271: \"$ac_compile\"") >&5 |
| 2272 |
(eval $ac_compile) 2>&5 |
| 2273 |
ac_status=$? |
| 2274 |
echo "$as_me:2274: \$? = $ac_status" >&5 |
| 2275 |
(exit $ac_status); } && |
| 2276 |
{ ac_try='test -s conftest.$ac_objext' |
| 2277 |
{ (eval echo "$as_me:2277: \"$ac_try\"") >&5 |
| 2278 |
(eval $ac_try) 2>&5 |
| 2279 |
ac_status=$? |
| 2280 |
echo "$as_me:2280: \$? = $ac_status" >&5 |
| 2281 |
(exit $ac_status); }; }; then |
| 2282 |
break |
| 2283 |
else |
| 2284 |
echo "$as_me: failed program was:" >&5 |
| 2285 |
cat conftest.$ac_ext >&5 |
| 2286 |
fi |
| 2287 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 2288 |
done |
| 2289 |
rm -f conftest* |
| 2290 |
if test -n "$ac_declaration"; then |
| 2291 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 2292 |
echo $ac_declaration >>confdefs.h |
| 2293 |
echo '#endif' >>confdefs.h |
| 2294 |
fi |
| 2295 |
|
| 2296 |
else |
| 2297 |
echo "$as_me: failed program was:" >&5 |
| 2298 |
cat conftest.$ac_ext >&5 |
| 2299 |
fi |
| 2300 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 2301 |
ac_ext=c |
| 2302 |
ac_cpp='$CPP $CPPFLAGS' |
| 2303 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2304 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2305 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2306 |
|
| 2307 |
depcc="$CC" am_compiler_list= |
| 2308 |
|
| 2309 |
echo "$as_me:2309: checking dependency style of $depcc" >&5 |
| 2310 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2311 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2312 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2313 |
else |
| 2314 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2315 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 2316 |
# making bogus files that we don't know about and never remove. For |
| 2317 |
# instance it was reported that on HP-UX the gcc test will end up |
| 2318 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 2319 |
# in D'. |
| 2320 |
mkdir conftest.dir |
| 2321 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 2322 |
# using a relative directory. |
| 2323 |
cp "$am_depcomp" conftest.dir |
| 2324 |
cd conftest.dir |
| 2325 |
|
| 2326 |
am_cv_CC_dependencies_compiler_type=none |
| 2327 |
if test "$am_compiler_list" = ""; then |
| 2328 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2329 |
fi |
| 2330 |
for depmode in $am_compiler_list; do |
| 2331 |
# We need to recreate these files for each test, as the compiler may |
| 2332 |
# overwrite some of them when testing with obscure command lines. |
| 2333 |
# This happens at least with the AIX C compiler. |
| 2334 |
echo '#include "conftest.h"' > conftest.c |
| 2335 |
echo 'int i;' > conftest.h |
| 2336 |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2337 |
|
| 2338 |
case $depmode in |
| 2339 |
nosideeffect) |
| 2340 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 2341 |
# only be used when explicitly requested |
| 2342 |
if test "x$enable_dependency_tracking" = xyes; then |
| 2343 |
continue |
| 2344 |
else |
| 2345 |
break |
| 2346 |
fi |
| 2347 |
;; |
| 2348 |
none) break ;; |
| 2349 |
esac |
| 2350 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2351 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 2352 |
# handle `-M -o', and we need to detect this. |
| 2353 |
if depmode=$depmode \ |
| 2354 |
source=conftest.c object=conftest.o \ |
| 2355 |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2356 |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2357 |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2358 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2359 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 2360 |
break |
| 2361 |
fi |
| 2362 |
done |
| 2363 |
|
| 2364 |
cd .. |
| 2365 |
rm -rf conftest.dir |
| 2366 |
else |
| 2367 |
am_cv_CC_dependencies_compiler_type=none |
| 2368 |
fi |
| 2369 |
|
| 2370 |
fi |
| 2371 |
echo "$as_me:2371: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2372 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2373 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2374 |
|
| 2375 |
# Make sure we can run config.sub. |
| 2376 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
| 2377 |
{ { echo "$as_me:2377: error: cannot run $ac_config_sub" >&5 |
| 2378 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2379 |
{ (exit 1); exit 1; }; } |
| 2380 |
|
| 2381 |
echo "$as_me:2381: checking build system type" >&5 |
| 2382 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2383 |
if test "${ac_cv_build+set}" = set; then |
| 2384 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2385 |
else |
| 2386 |
ac_cv_build_alias=$build_alias |
| 2387 |
test -z "$ac_cv_build_alias" && |
| 2388 |
ac_cv_build_alias=`$ac_config_guess` |
| 2389 |
test -z "$ac_cv_build_alias" && |
| 2390 |
{ { echo "$as_me:2390: error: cannot guess build type; you must specify one" >&5 |
| 2391 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2392 |
{ (exit 1); exit 1; }; } |
| 2393 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2394 |
{ { echo "$as_me:2394: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| 2395 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| 2396 |
{ (exit 1); exit 1; }; } |
| 2397 |
|
| 2398 |
fi |
| 2399 |
echo "$as_me:2399: result: $ac_cv_build" >&5 |
| 2400 |
echo "${ECHO_T}$ac_cv_build" >&6 |
| 2401 |
build=$ac_cv_build |
| 2402 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2403 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2404 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2405 |
|
| 2406 |
echo "$as_me:2406: checking host system type" >&5 |
| 2407 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 2408 |
if test "${ac_cv_host+set}" = set; then |
| 2409 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2410 |
else |
| 2411 |
ac_cv_host_alias=$host_alias |
| 2412 |
test -z "$ac_cv_host_alias" && |
| 2413 |
ac_cv_host_alias=$ac_cv_build_alias |
| 2414 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 2415 |
{ { echo "$as_me:2415: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 2416 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 2417 |
{ (exit 1); exit 1; }; } |
| 2418 |
|
| 2419 |
fi |
| 2420 |
echo "$as_me:2420: result: $ac_cv_host" >&5 |
| 2421 |
echo "${ECHO_T}$ac_cv_host" >&6 |
| 2422 |
host=$ac_cv_host |
| 2423 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2424 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2425 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2426 |
|
| 2427 |
if test -n "$ac_tool_prefix"; then |
| 2428 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2429 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2430 |
echo "$as_me:2430: checking for $ac_word" >&5 |
| 2431 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2432 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2433 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2434 |
else |
| 2435 |
if test -n "$RANLIB"; then |
| 2436 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2437 |
else |
| 2438 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2439 |
ac_dummy="$PATH" |
| 2440 |
for ac_dir in $ac_dummy; do |
| 2441 |
IFS=$ac_save_IFS |
| 2442 |
test -z "$ac_dir" && ac_dir=. |
| 2443 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 2444 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2445 |
echo "$as_me:2445: found $ac_dir/$ac_word" >&5 |
| 2446 |
break |
| 2447 |
done |
| 2448 |
|
| 2449 |
fi |
| 2450 |
fi |
| 2451 |
RANLIB=$ac_cv_prog_RANLIB |
| 2452 |
if test -n "$RANLIB"; then |
| 2453 |
echo "$as_me:2453: result: $RANLIB" >&5 |
| 2454 |
echo "${ECHO_T}$RANLIB" >&6 |
| 2455 |
else |
| 2456 |
echo "$as_me:2456: result: no" >&5 |
| 2457 |
echo "${ECHO_T}no" >&6 |
| 2458 |
fi |
| 2459 |
|
| 2460 |
fi |
| 2461 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 2462 |
ac_ct_RANLIB=$RANLIB |
| 2463 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 2464 |
set dummy ranlib; ac_word=$2 |
| 2465 |
echo "$as_me:2465: checking for $ac_word" >&5 |
| 2466 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2467 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2468 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2469 |
else |
| 2470 |
if test -n "$ac_ct_RANLIB"; then |
| 2471 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2472 |
else |
| 2473 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2474 |
ac_dummy="$PATH" |
| 2475 |
for ac_dir in $ac_dummy; do |
| 2476 |
IFS=$ac_save_IFS |
| 2477 |
test -z "$ac_dir" && ac_dir=. |
| 2478 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 2479 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2480 |
echo "$as_me:2480: found $ac_dir/$ac_word" >&5 |
| 2481 |
break |
| 2482 |
done |
| 2483 |
|
| 2484 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2485 |
fi |
| 2486 |
fi |
| 2487 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2488 |
if test -n "$ac_ct_RANLIB"; then |
| 2489 |
echo "$as_me:2489: result: $ac_ct_RANLIB" >&5 |
| 2490 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2491 |
else |
| 2492 |
echo "$as_me:2492: result: no" >&5 |
| 2493 |
echo "${ECHO_T}no" >&6 |
| 2494 |
fi |
| 2495 |
|
| 2496 |
RANLIB=$ac_ct_RANLIB |
| 2497 |
else |
| 2498 |
RANLIB="$ac_cv_prog_RANLIB" |
| 2499 |
fi |
| 2500 |
|
| 2501 |
echo "$as_me:2501: checking for strerror in -lcposix" >&5 |
| 2502 |
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
| 2503 |
if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 2504 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2505 |
else |
| 2506 |
ac_check_lib_save_LIBS=$LIBS |
| 2507 |
LIBS="-lcposix $LIBS" |
| 2508 |
cat >conftest.$ac_ext <<_ACEOF |
| 2509 |
#line 2509 "configure" |
| 2510 |
#include "confdefs.h" |
| 2511 |
|
| 2512 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2513 |
#ifdef __cplusplus |
| 2514 |
extern "C" |
| 2515 |
#endif |
| 2516 |
/* We use char because int might match the return type of a gcc2 |
| 2517 |
builtin and then its argument prototype would still apply. */ |
| 2518 |
char strerror (); |
| 2519 |
int |
| 2520 |
main () |
| 2521 |
{ |
| 2522 |
strerror (); |
| 2523 |
; |
| 2524 |
return 0; |
| 2525 |
} |
| 2526 |
_ACEOF |
| 2527 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2528 |
if { (eval echo "$as_me:2528: \"$ac_link\"") >&5 |
| 2529 |
(eval $ac_link) 2>&5 |
| 2530 |
ac_status=$? |
| 2531 |
echo "$as_me:2531: \$? = $ac_status" >&5 |
| 2532 |
(exit $ac_status); } && |
| 2533 |
{ ac_try='test -s conftest$ac_exeext' |
| 2534 |
{ (eval echo "$as_me:2534: \"$ac_try\"") >&5 |
| 2535 |
(eval $ac_try) 2>&5 |
| 2536 |
ac_status=$? |
| 2537 |
echo "$as_me:2537: \$? = $ac_status" >&5 |
| 2538 |
(exit $ac_status); }; }; then |
| 2539 |
ac_cv_lib_cposix_strerror=yes |
| 2540 |
else |
| 2541 |
echo "$as_me: failed program was:" >&5 |
| 2542 |
cat conftest.$ac_ext >&5 |
| 2543 |
ac_cv_lib_cposix_strerror=no |
| 2544 |
fi |
| 2545 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2546 |
LIBS=$ac_check_lib_save_LIBS |
| 2547 |
fi |
| 2548 |
echo "$as_me:2548: result: $ac_cv_lib_cposix_strerror" >&5 |
| 2549 |
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
| 2550 |
if test $ac_cv_lib_cposix_strerror = yes; then |
| 2551 |
LIBS="$LIBS -lcposix" |
| 2552 |
fi |
| 2553 |
|
| 2554 |
ac_ext=c |
| 2555 |
ac_cpp='$CPP $CPPFLAGS' |
| 2556 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2557 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2558 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2559 |
echo "$as_me:2559: checking how to run the C preprocessor" >&5 |
| 2560 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2561 |
# On Suns, sometimes $CPP names a directory. |
| 2562 |
if test -n "$CPP" && test -d "$CPP"; then |
| 2563 |
CPP= |
| 2564 |
fi |
| 2565 |
if test -z "$CPP"; then |
| 2566 |
if test "${ac_cv_prog_CPP+set}" = set; then |
| 2567 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2568 |
else |
| 2569 |
# Double quotes because CPP needs to be expanded |
| 2570 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2571 |
do |
| 2572 |
ac_preproc_ok=false |
| 2573 |
for ac_c_preproc_warn_flag in '' yes |
| 2574 |
do |
| 2575 |
# Use a header file that comes with gcc, so configuring glibc |
| 2576 |
# with a fresh cross-compiler works. |
| 2577 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 2578 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 2579 |
cat >conftest.$ac_ext <<_ACEOF |
| 2580 |
#line 2580 "configure" |
| 2581 |
#include "confdefs.h" |
| 2582 |
#include <assert.h> |
| 2583 |
Syntax error |
| 2584 |
_ACEOF |
| 2585 |
if { (eval echo "$as_me:2585: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2586 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2587 |
ac_status=$? |
| 2588 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2589 |
rm -f conftest.er1 |
| 2590 |
cat conftest.err >&5 |
| 2591 |
echo "$as_me:2591: \$? = $ac_status" >&5 |
| 2592 |
(exit $ac_status); } >/dev/null; then |
| 2593 |
if test -s conftest.err; then |
| 2594 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 2595 |
else |
| 2596 |
ac_cpp_err= |
| 2597 |
fi |
| 2598 |
else |
| 2599 |
ac_cpp_err=yes |
| 2600 |
fi |
| 2601 |
if test -z "$ac_cpp_err"; then |
| 2602 |
: |
| 2603 |
else |
| 2604 |
echo "$as_me: failed program was:" >&5 |
| 2605 |
cat conftest.$ac_ext >&5 |
| 2606 |
# Broken: fails on valid input. |
| 2607 |
continue |
| 2608 |
fi |
| 2609 |
rm -f conftest.err conftest.$ac_ext |
| 2610 |
|
| 2611 |
# OK, works on sane cases. Now check whether non-existent headers |
| 2612 |
# can be detected and how. |
| 2613 |
cat >conftest.$ac_ext <<_ACEOF |
| 2614 |
#line 2614 "configure" |
| 2615 |
#include "confdefs.h" |
| 2616 |
#include <ac_nonexistent.h> |
| 2617 |
_ACEOF |
| 2618 |
if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2619 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2620 |
ac_status=$? |
| 2621 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2622 |
rm -f conftest.er1 |
| 2623 |
cat conftest.err >&5 |
| 2624 |
echo "$as_me:2624: \$? = $ac_status" >&5 |
| 2625 |
(exit $ac_status); } >/dev/null; then |
| 2626 |
if test -s conftest.err; then |
| 2627 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 2628 |
else |
| 2629 |
ac_cpp_err= |
| 2630 |
fi |
| 2631 |
else |
| 2632 |
ac_cpp_err=yes |
| 2633 |
fi |
| 2634 |
if test -z "$ac_cpp_err"; then |
| 2635 |
# Broken: success on invalid input. |
| 2636 |
continue |
| 2637 |
else |
| 2638 |
echo "$as_me: failed program was:" >&5 |
| 2639 |
cat conftest.$ac_ext >&5 |
| 2640 |
# Passes both tests. |
| 2641 |
ac_preproc_ok=: |
| 2642 |
break |
| 2643 |
fi |
| 2644 |
rm -f conftest.err conftest.$ac_ext |
| 2645 |
|
| 2646 |
done |
| 2647 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2648 |
rm -f conftest.err conftest.$ac_ext |
| 2649 |
if $ac_preproc_ok; then |
| 2650 |
break |
| 2651 |
fi |
| 2652 |
|
| 2653 |
done |
| 2654 |
ac_cv_prog_CPP=$CPP |
| 2655 |
|
| 2656 |
fi |
| 2657 |
CPP=$ac_cv_prog_CPP |
| 2658 |
else |
| 2659 |
ac_cv_prog_CPP=$CPP |
| 2660 |
fi |
| 2661 |
echo "$as_me:2661: result: $CPP" >&5 |
| 2662 |
echo "${ECHO_T}$CPP" >&6 |
| 2663 |
ac_preproc_ok=false |
| 2664 |
for ac_c_preproc_warn_flag in '' yes |
| 2665 |
do |
| 2666 |
# Use a header file that comes with gcc, so configuring glibc |
| 2667 |
# with a fresh cross-compiler works. |
| 2668 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 2669 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 2670 |
cat >conftest.$ac_ext <<_ACEOF |
| 2671 |
#line 2671 "configure" |
| 2672 |
#include "confdefs.h" |
| 2673 |
#include <assert.h> |
| 2674 |
Syntax error |
| 2675 |
_ACEOF |
| 2676 |
if { (eval echo "$as_me:2676: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2677 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2678 |
ac_status=$? |
| 2679 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2680 |
rm -f conftest.er1 |
| 2681 |
cat conftest.err >&5 |
| 2682 |
echo "$as_me:2682: \$? = $ac_status" >&5 |
| 2683 |
(exit $ac_status); } >/dev/null; then |
| 2684 |
if test -s conftest.err; then |
| 2685 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 2686 |
else |
| 2687 |
ac_cpp_err= |
| 2688 |
fi |
| 2689 |
else |
| 2690 |
ac_cpp_err=yes |
| 2691 |
fi |
| 2692 |
if test -z "$ac_cpp_err"; then |
| 2693 |
: |
| 2694 |
else |
| 2695 |
echo "$as_me: failed program was:" >&5 |
| 2696 |
cat conftest.$ac_ext >&5 |
| 2697 |
# Broken: fails on valid input. |
| 2698 |
continue |
| 2699 |
fi |
| 2700 |
rm -f conftest.err conftest.$ac_ext |
| 2701 |
|
| 2702 |
# OK, works on sane cases. Now check whether non-existent headers |
| 2703 |
# can be detected and how. |
| 2704 |
cat >conftest.$ac_ext <<_ACEOF |
| 2705 |
#line 2705 "configure" |
| 2706 |
#include "confdefs.h" |
| 2707 |
#include <ac_nonexistent.h> |
| 2708 |
_ACEOF |
| 2709 |
if { (eval echo "$as_me:2709: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2710 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2711 |
ac_status=$? |
| 2712 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2713 |
rm -f conftest.er1 |
| 2714 |
cat conftest.err >&5 |
| 2715 |
echo "$as_me:2715: \$? = $ac_status" >&5 |
| 2716 |
(exit $ac_status); } >/dev/null; then |
| 2717 |
if test -s conftest.err; then |
| 2718 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 2719 |
else |
| 2720 |
ac_cpp_err= |
| 2721 |
fi |
| 2722 |
else |
| 2723 |
ac_cpp_err=yes |
| 2724 |
fi |
| 2725 |
if test -z "$ac_cpp_err"; then |
| 2726 |
# Broken: success on invalid input. |
| 2727 |
continue |
| 2728 |
else |
| 2729 |
echo "$as_me: failed program was:" >&5 |
| 2730 |
cat conftest.$ac_ext >&5 |
| 2731 |
# Passes both tests. |
| 2732 |
ac_preproc_ok=: |
| 2733 |
break |
| 2734 |
fi |
| 2735 |
rm -f conftest.err conftest.$ac_ext |
| 2736 |
|
| 2737 |
done |
| 2738 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2739 |
rm -f conftest.err conftest.$ac_ext |
| 2740 |
if $ac_preproc_ok; then |
| 2741 |
: |
| 2742 |
else |
| 2743 |
{ { echo "$as_me:2743: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2744 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2745 |
{ (exit 1); exit 1; }; } |
| 2746 |
fi |
| 2747 |
|
| 2748 |
ac_ext=c |
| 2749 |
ac_cpp='$CPP $CPPFLAGS' |
| 2750 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2751 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2752 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2753 |
|
| 2754 |
echo "$as_me:2754: checking for ANSI C header files" >&5 |
| 2755 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2756 |
if test "${ac_cv_header_stdc+set}" = set; then |
| 2757 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2758 |
else |
| 2759 |
cat >conftest.$ac_ext <<_ACEOF |
| 2760 |
#line 2760 "configure" |
| 2761 |
#include "confdefs.h" |
| 2762 |
#include <stdlib.h> |
| 2763 |
#include <stdarg.h> |
| 2764 |
#include <string.h> |
| 2765 |
#include <float.h> |
| 2766 |
|
| 2767 |
_ACEOF |
| 2768 |
if { (eval echo "$as_me:2768: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2769 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2770 |
ac_status=$? |
| 2771 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2772 |
rm -f conftest.er1 |
| 2773 |
cat conftest.err >&5 |
| 2774 |
echo "$as_me:2774: \$? = $ac_status" >&5 |
| 2775 |
(exit $ac_status); } >/dev/null; then |
| 2776 |
if test -s conftest.err; then |
| 2777 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 2778 |
else |
| 2779 |
ac_cpp_err= |
| 2780 |
fi |
| 2781 |
else |
| 2782 |
ac_cpp_err=yes |
| 2783 |
fi |
| 2784 |
if test -z "$ac_cpp_err"; then |
| 2785 |
ac_cv_header_stdc=yes |
| 2786 |
else |
| 2787 |
echo "$as_me: failed program was:" >&5 |
| 2788 |
cat conftest.$ac_ext >&5 |
| 2789 |
ac_cv_header_stdc=no |
| 2790 |
fi |
| 2791 |
rm -f conftest.err conftest.$ac_ext |
| 2792 |
|
| 2793 |
if test $ac_cv_header_stdc = yes; then |
| 2794 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2795 |
cat >conftest.$ac_ext <<_ACEOF |
| 2796 |
#line 2796 "configure" |
| 2797 |
#include "confdefs.h" |
| 2798 |
#include <string.h> |
| 2799 |
|
| 2800 |
_ACEOF |
| 2801 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2802 |
egrep "memchr" >/dev/null 2>&1; then |
| 2803 |
: |
| 2804 |
else |
| 2805 |
ac_cv_header_stdc=no |
| 2806 |
fi |
| 2807 |
rm -f conftest* |
| 2808 |
|
| 2809 |
fi |
| 2810 |
|
| 2811 |
if test $ac_cv_header_stdc = yes; then |
| 2812 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2813 |
cat >conftest.$ac_ext <<_ACEOF |
| 2814 |
#line 2814 "configure" |
| 2815 |
#include "confdefs.h" |
| 2816 |
#include <stdlib.h> |
| 2817 |
|
| 2818 |
_ACEOF |
| 2819 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2820 |
egrep "free" >/dev/null 2>&1; then |
| 2821 |
: |
| 2822 |
else |
| 2823 |
ac_cv_header_stdc=no |
| 2824 |
fi |
| 2825 |
rm -f conftest* |
| 2826 |
|
| 2827 |
fi |
| 2828 |
|
| 2829 |
if test $ac_cv_header_stdc = yes; then |
| 2830 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2831 |
if test "$cross_compiling" = yes; then |
| 2832 |
: |
| 2833 |
else |
| 2834 |
cat >conftest.$ac_ext <<_ACEOF |
| 2835 |
#line 2835 "configure" |
| 2836 |
#include "confdefs.h" |
| 2837 |
#include <ctype.h> |
| 2838 |
#if ((' ' & 0x0FF) == 0x020) |
| 2839 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2840 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2841 |
#else |
| 2842 |
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2843 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 2844 |
|| ('s' <= (c) && (c) <= 'z')) |
| 2845 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2846 |
#endif |
| 2847 |
|
| 2848 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2849 |
int |
| 2850 |
main () |
| 2851 |
{ |
| 2852 |
int i; |
| 2853 |
for (i = 0; i < 256; i++) |
| 2854 |
if (XOR (islower (i), ISLOWER (i)) |
| 2855 |
|| toupper (i) != TOUPPER (i)) |
| 2856 |
exit(2); |
| 2857 |
exit (0); |
| 2858 |
} |
| 2859 |
_ACEOF |
| 2860 |
rm -f conftest$ac_exeext |
| 2861 |
if { (eval echo "$as_me:2861: \"$ac_link\"") >&5 |
| 2862 |
(eval $ac_link) 2>&5 |
| 2863 |
ac_status=$? |
| 2864 |
echo "$as_me:2864: \$? = $ac_status" >&5 |
| 2865 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2866 |
{ (eval echo "$as_me:2866: \"$ac_try\"") >&5 |
| 2867 |
(eval $ac_try) 2>&5 |
| 2868 |
ac_status=$? |
| 2869 |
echo "$as_me:2869: \$? = $ac_status" >&5 |
| 2870 |
(exit $ac_status); }; }; then |
| 2871 |
: |
| 2872 |
else |
| 2873 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 2874 |
echo "$as_me: failed program was:" >&5 |
| 2875 |
cat conftest.$ac_ext >&5 |
| 2876 |
ac_cv_header_stdc=no |
| 2877 |
fi |
| 2878 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2879 |
fi |
| 2880 |
fi |
| 2881 |
fi |
| 2882 |
echo "$as_me:2882: result: $ac_cv_header_stdc" >&5 |
| 2883 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2884 |
if test $ac_cv_header_stdc = yes; then |
| 2885 |
|
| 2886 |
cat >>confdefs.h <<\EOF |
| 2887 |
#define STDC_HEADERS 1 |
| 2888 |
EOF |
| 2889 |
|
| 2890 |
fi |
| 2891 |
|
| 2892 |
echo "$as_me:2892: checking for $CC option to accept ANSI C" >&5 |
| 2893 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2894 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2895 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2896 |
else |
| 2897 |
ac_cv_prog_cc_stdc=no |
| 2898 |
ac_save_CC=$CC |
| 2899 |
cat >conftest.$ac_ext <<_ACEOF |
| 2900 |
#line 2900 "configure" |
| 2901 |
#include "confdefs.h" |
| 2902 |
#include <stdarg.h> |
| 2903 |
#include <stdio.h> |
| 2904 |
#include <sys/types.h> |
| 2905 |
#include <sys/stat.h> |
| 2906 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2907 |
struct buf { int x; }; |
| 2908 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2909 |
static char *e (p, i) |
| 2910 |
char **p; |
| 2911 |
int i; |
| 2912 |
{ |
| 2913 |
return p[i]; |
| 2914 |
} |
| 2915 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2916 |
{ |
| 2917 |
char *s; |
| 2918 |
va_list v; |
| 2919 |
va_start (v,p); |
| 2920 |
s = g (p, va_arg (v,int)); |
| 2921 |
va_end (v); |
| 2922 |
return s; |
| 2923 |
} |
| 2924 |
int test (int i, double x); |
| 2925 |
struct s1 {int (*f) (int a);}; |
| 2926 |
struct s2 {int (*f) (double a);}; |
| 2927 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2928 |
int argc; |
| 2929 |
char **argv; |
| 2930 |
int |
| 2931 |
main () |
| 2932 |
{ |
| 2933 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2934 |
; |
| 2935 |
return 0; |
| 2936 |
} |
| 2937 |
_ACEOF |
| 2938 |
# Don't try gcc -ansi; that turns off useful extensions and |
| 2939 |
# breaks some systems' header files. |
| 2940 |
# AIX -qlanglvl=ansi |
| 2941 |
# Ultrix and OSF/1 -std1 |
| 2942 |
# HP-UX 10.20 and later -Ae |
| 2943 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2944 |
# SVR4 -Xc -D__EXTENSIONS__ |
| 2945 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2946 |
do |
| 2947 |
CC="$ac_save_CC $ac_arg" |
| 2948 |
rm -f conftest.$ac_objext |
| 2949 |
if { (eval echo "$as_me:2949: \"$ac_compile\"") >&5 |
| 2950 |
(eval $ac_compile) 2>&5 |
| 2951 |
ac_status=$? |
| 2952 |
echo "$as_me:2952: \$? = $ac_status" >&5 |
| 2953 |
(exit $ac_status); } && |
| 2954 |
{ ac_try='test -s conftest.$ac_objext' |
| 2955 |
{ (eval echo "$as_me:2955: \"$ac_try\"") >&5 |
| 2956 |
(eval $ac_try) 2>&5 |
| 2957 |
ac_status=$? |
| 2958 |
echo "$as_me:2958: \$? = $ac_status" >&5 |
| 2959 |
(exit $ac_status); }; }; then |
| 2960 |
ac_cv_prog_cc_stdc=$ac_arg |
| 2961 |
break |
| 2962 |
else |
| 2963 |
echo "$as_me: failed program was:" >&5 |
| 2964 |
cat conftest.$ac_ext >&5 |
| 2965 |
fi |
| 2966 |
rm -f conftest.$ac_objext |
| 2967 |
done |
| 2968 |
rm -f conftest.$ac_ext conftest.$ac_objext |
| 2969 |
CC=$ac_save_CC |
| 2970 |
|
| 2971 |
fi |
| 2972 |
|
| 2973 |
case "x$ac_cv_prog_cc_stdc" in |
| 2974 |
x|xno) |
| 2975 |
echo "$as_me:2975: result: none needed" >&5 |
| 2976 |
echo "${ECHO_T}none needed" >&6 ;; |
| 2977 |
*) |
| 2978 |
echo "$as_me:2978: result: $ac_cv_prog_cc_stdc" >&5 |
| 2979 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2980 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2981 |
esac |
| 2982 |
|
| 2983 |
echo "$as_me:2983: checking for an ANSI C-conforming const" >&5 |
| 2984 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 2985 |
if test "${ac_cv_c_const+set}" = set; then |
| 2986 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2987 |
else |
| 2988 |
cat >conftest.$ac_ext <<_ACEOF |
| 2989 |
#line 2989 "configure" |
| 2990 |
#include "confdefs.h" |
| 2991 |
|
| 2992 |
int |
| 2993 |
main () |
| 2994 |
{ |
| 2995 |
/* FIXME: Include the comments suggested by Paul. */ |
| 2996 |
#ifndef __cplusplus |
| 2997 |
/* Ultrix mips cc rejects this. */ |
| 2998 |
typedef int charset[2]; |
| 2999 |
const charset x; |
| 3000 |
/* SunOS 4.1.1 cc rejects this. */ |
| 3001 |
char const *const *ccp; |
| 3002 |
char **p; |
| 3003 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 3004 |
struct point {int x, y;}; |
| 3005 |
static struct point const zero = {0,0}; |
| 3006 |
/* AIX XL C 1.02.0.0 rejects this. |
| 3007 |
It does not let you subtract one const X* pointer from another in |
| 3008 |
an arm of an if-expression whose if-part is not a constant |
| 3009 |
expression */ |
| 3010 |
const char *g = "string"; |
| 3011 |
ccp = &g + (g ? g-g : 0); |
| 3012 |
/* HPUX 7.0 cc rejects these. */ |
| 3013 |
++ccp; |
| 3014 |
p = (char**) ccp; |
| 3015 |
ccp = (char const *const *) p; |
| 3016 |
{ /* SCO 3.2v4 cc rejects this. */ |
| 3017 |
char *t; |
| 3018 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3019 |
|
| 3020 |
*t++ = 0; |
| 3021 |
} |
| 3022 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3023 |
int x[] = {25, 17}; |
| 3024 |
const int *foo = &x[0]; |
| 3025 |
++foo; |
| 3026 |
} |
| 3027 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3028 |
typedef const int *iptr; |
| 3029 |
iptr p = 0; |
| 3030 |
++p; |
| 3031 |
} |
| 3032 |
{ /* AIX XL C 1.02.0.0 rejects this saying |
| 3033 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3034 |
struct s { int j; const int *ap[3]; }; |
| 3035 |
struct s *b; b->j = 5; |
| 3036 |
} |
| 3037 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3038 |
const int foo = 10; |
| 3039 |
} |
| 3040 |
#endif |
| 3041 |
|
| 3042 |
; |
| 3043 |
return 0; |
| 3044 |
} |
| 3045 |
_ACEOF |
| 3046 |
rm -f conftest.$ac_objext |
| 3047 |
if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5 |
| 3048 |
(eval $ac_compile) 2>&5 |
| 3049 |
ac_status=$? |
| 3050 |
echo "$as_me:3050: \$? = $ac_status" >&5 |
| 3051 |
(exit $ac_status); } && |
| 3052 |
{ ac_try='test -s conftest.$ac_objext' |
| 3053 |
{ (eval echo "$as_me:3053: \"$ac_try\"") >&5 |
| 3054 |
(eval $ac_try) 2>&5 |
| 3055 |
ac_status=$? |
| 3056 |
echo "$as_me:3056: \$? = $ac_status" >&5 |
| 3057 |
(exit $ac_status); }; }; then |
| 3058 |
ac_cv_c_const=yes |
| 3059 |
else |
| 3060 |
echo "$as_me: failed program was:" >&5 |
| 3061 |
cat conftest.$ac_ext >&5 |
| 3062 |
ac_cv_c_const=no |
| 3063 |
fi |
| 3064 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 3065 |
fi |
| 3066 |
echo "$as_me:3066: result: $ac_cv_c_const" >&5 |
| 3067 |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3068 |
if test $ac_cv_c_const = no; then |
| 3069 |
|
| 3070 |
cat >>confdefs.h <<\EOF |
| 3071 |
#define const |
| 3072 |
EOF |
| 3073 |
|
| 3074 |
fi |
| 3075 |
|
| 3076 |
echo "$as_me:3076: checking for inline" >&5 |
| 3077 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 3078 |
if test "${ac_cv_c_inline+set}" = set; then |
| 3079 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3080 |
else |
| 3081 |
ac_cv_c_inline=no |
| 3082 |
for ac_kw in inline __inline__ __inline; do |
| 3083 |
cat >conftest.$ac_ext <<_ACEOF |
| 3084 |
#line 3084 "configure" |
| 3085 |
#include "confdefs.h" |
| 3086 |
#ifndef __cplusplus |
| 3087 |
static $ac_kw int static_foo () {return 0; } |
| 3088 |
$ac_kw int foo () {return 0; } |
| 3089 |
#endif |
| 3090 |
|
| 3091 |
_ACEOF |
| 3092 |
rm -f conftest.$ac_objext |
| 3093 |
if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5 |
| 3094 |
(eval $ac_compile) 2>&5 |
| 3095 |
ac_status=$? |
| 3096 |
echo "$as_me:3096: \$? = $ac_status" >&5 |
| 3097 |
(exit $ac_status); } && |
| 3098 |
{ ac_try='test -s conftest.$ac_objext' |
| 3099 |
{ (eval echo "$as_me:3099: \"$ac_try\"") >&5 |
| 3100 |
(eval $ac_try) 2>&5 |
| 3101 |
ac_status=$? |
| 3102 |
echo "$as_me:3102: \$? = $ac_status" >&5 |
| 3103 |
(exit $ac_status); }; }; then |
| 3104 |
ac_cv_c_inline=$ac_kw; break |
| 3105 |
else |
| 3106 |
echo "$as_me: failed program was:" >&5 |
| 3107 |
cat conftest.$ac_ext >&5 |
| 3108 |
fi |
| 3109 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 3110 |
done |
| 3111 |
|
| 3112 |
fi |
| 3113 |
echo "$as_me:3113: result: $ac_cv_c_inline" >&5 |
| 3114 |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 3115 |
case $ac_cv_c_inline in |
| 3116 |
inline | yes) ;; |
| 3117 |
no) |
| 3118 |
cat >>confdefs.h <<\EOF |
| 3119 |
#define inline |
| 3120 |
EOF |
| 3121 |
;; |
| 3122 |
*) cat >>confdefs.h <<EOF |
| 3123 |
#define inline $ac_cv_c_inline |
| 3124 |
EOF |
| 3125 |
;; |
| 3126 |
esac |
| 3127 |
|
| 3128 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3129 |
|
| 3130 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3131 |
inttypes.h stdint.h unistd.h |
| 3132 |
do |
| 3133 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3134 |
echo "$as_me:3134: checking for $ac_header" >&5 |
| 3135 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3136 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3137 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3138 |
else |
| 3139 |
cat >conftest.$ac_ext <<_ACEOF |
| 3140 |
#line 3140 "configure" |
| 3141 |
#include "confdefs.h" |
| 3142 |
$ac_includes_default |
| 3143 |
#include <$ac_header> |
| 3144 |
_ACEOF |
| 3145 |
rm -f conftest.$ac_objext |
| 3146 |
if { (eval echo "$as_me:3146: \"$ac_compile\"") >&5 |
| 3147 |
(eval $ac_compile) 2>&5 |
| 3148 |
ac_status=$? |
| 3149 |
echo "$as_me:3149: \$? = $ac_status" >&5 |
| 3150 |
(exit $ac_status); } && |
| 3151 |
{ ac_try='test -s conftest.$ac_objext' |
| 3152 |
{ (eval echo "$as_me:3152: \"$ac_try\"") >&5 |
| 3153 |
(eval $ac_try) 2>&5 |
| 3154 |
ac_status=$? |
| 3155 |
echo "$as_me:3155: \$? = $ac_status" >&5 |
| 3156 |
(exit $ac_status); }; }; then |
| 3157 |
eval "$as_ac_Header=yes" |
| 3158 |
else |
| 3159 |
echo "$as_me: failed program was:" >&5 |
| 3160 |
cat conftest.$ac_ext >&5 |
| 3161 |
eval "$as_ac_Header=no" |
| 3162 |
fi |
| 3163 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 3164 |
fi |
| 3165 |
echo "$as_me:3165: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3166 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3167 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3168 |
cat >>confdefs.h <<EOF |
| 3169 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3170 |
EOF |
| 3171 |
|
| 3172 |
fi |
| 3173 |
done |
| 3174 |
|
| 3175 |
echo "$as_me:3175: checking for off_t" >&5 |
| 3176 |
echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 3177 |
if test "${ac_cv_type_off_t+set}" = set; then |
| 3178 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3179 |
else |
| 3180 |
cat >conftest.$ac_ext <<_ACEOF |
| 3181 |
#line 3181 "configure" |
| 3182 |
#include "confdefs.h" |
| 3183 |
$ac_includes_default |
| 3184 |
int |
| 3185 |
main () |
| 3186 |
{ |
| 3187 |
if ((off_t *) 0) |
| 3188 |
return 0; |
| 3189 |
if (sizeof (off_t)) |
| 3190 |
return 0; |
| 3191 |
; |
| 3192 |
return 0; |
| 3193 |
} |
| 3194 |
_ACEOF |
| 3195 |
rm -f conftest.$ac_objext |
| 3196 |
if { (eval echo "$as_me:3196: \"$ac_compile\"") >&5 |
| 3197 |
(eval $ac_compile) 2>&5 |
| 3198 |
ac_status=$? |
| 3199 |
echo "$as_me:3199: \$? = $ac_status" >&5 |
| 3200 |
(exit $ac_status); } && |
| 3201 |
{ ac_try='test -s conftest.$ac_objext' |
| 3202 |
{ (eval echo "$as_me:3202: \"$ac_try\"") >&5 |
| 3203 |
(eval $ac_try) 2>&5 |
| 3204 |
ac_status=$? |
| 3205 |
echo "$as_me:3205: \$? = $ac_status" >&5 |
| 3206 |
(exit $ac_status); }; }; then |
| 3207 |
ac_cv_type_off_t=yes |
| 3208 |
else |
| 3209 |
echo "$as_me: failed program was:" >&5 |
| 3210 |
cat conftest.$ac_ext >&5 |
| 3211 |
ac_cv_type_off_t=no |
| 3212 |
fi |
| 3213 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 3214 |
fi |
| 3215 |
echo "$as_me:3215: result: $ac_cv_type_off_t" >&5 |
| 3216 |
echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 3217 |
if test $ac_cv_type_off_t = yes; then |
| 3218 |
: |
| 3219 |
else |
| 3220 |
|
| 3221 |
cat >>confdefs.h <<EOF |
| 3222 |
#define off_t long |
| 3223 |
EOF |
| 3224 |
|
| 3225 |
fi |
| 3226 |
|
| 3227 |
echo "$as_me:3227: checking for size_t" >&5 |
| 3228 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 3229 |
if test "${ac_cv_type_size_t+set}" = set; then |
| 3230 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3231 |
else |
| 3232 |
cat >conftest.$ac_ext <<_ACEOF |
| 3233 |
#line 3233 "configure" |
| 3234 |
#include "confdefs.h" |
| 3235 |
$ac_includes_default |
| 3236 |
int |
| 3237 |
main () |
| 3238 |
{ |
| 3239 |
if ((size_t *) 0) |
| 3240 |
return 0; |
| 3241 |
if (sizeof (size_t)) |
| 3242 |
return 0; |
| 3243 |
; |
| 3244 |
return 0; |
| 3245 |
} |
| 3246 |
_ACEOF |
| 3247 |
rm -f conftest.$ac_objext |
| 3248 |
if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5 |
| 3249 |
(eval $ac_compile) 2>&5 |
| 3250 |
ac_status=$? |
| 3251 |
echo "$as_me:3251: \$? = $ac_status" >&5 |
| 3252 |
(exit $ac_status); } && |
| 3253 |
{ ac_try='test -s conftest.$ac_objext' |
| 3254 |
{ (eval echo "$as_me:3254: \"$ac_try\"") >&5 |
| 3255 |
(eval $ac_try) 2>&5 |
| 3256 |
ac_status=$? |
| 3257 |
echo "$as_me:3257: \$? = $ac_status" >&5 |
| 3258 |
(exit $ac_status); }; }; then |
| 3259 |
ac_cv_type_size_t=yes |
| 3260 |
else |
| 3261 |
echo "$as_me: failed program was:" >&5 |
| 3262 |
cat conftest.$ac_ext >&5 |
| 3263 |
ac_cv_type_size_t=no |
| 3264 |
fi |
| 3265 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 3266 |
fi |
| 3267 |
echo "$as_me:3267: result: $ac_cv_type_size_t" >&5 |
| 3268 |
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 3269 |
if test $ac_cv_type_size_t = yes; then |
| 3270 |
: |
| 3271 |
else |
| 3272 |
|
| 3273 |
cat >>confdefs.h <<EOF |
| 3274 |
#define size_t unsigned |
| 3275 |
EOF |
| 3276 |
|
| 3277 |
fi |
| 3278 |
|
| 3279 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 3280 |
# for constant arguments. Useless! |
| 3281 |
echo "$as_me:3281: checking for working alloca.h" >&5 |
| 3282 |
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 3283 |
if test "${ac_cv_working_alloca_h+set}" = set; then |
| 3284 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3285 |
else |
| 3286 |
cat >conftest.$ac_ext <<_ACEOF |
| 3287 |
#line 3287 "configure" |
| 3288 |
#include "confdefs.h" |
| 3289 |
#include <alloca.h> |
| 3290 |
int |
| 3291 |
main () |
| 3292 |
{ |
| 3293 |
char *p = (char *) alloca (2 * sizeof (int)); |
| 3294 |
; |
| 3295 |
return 0; |
| 3296 |
} |
| 3297 |
_ACEOF |
| 3298 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3299 |
if { (eval echo "$as_me:3299: \"$ac_link\"") >&5 |
| 3300 |
(eval $ac_link) 2>&5 |
| 3301 |
ac_status=$? |
| 3302 |
echo "$as_me:3302: \$? = $ac_status" >&5 |
| 3303 |
(exit $ac_status); } && |
| 3304 |
{ ac_try='test -s conftest$ac_exeext' |
| 3305 |
{ (eval echo "$as_me:3305: \"$ac_try\"") >&5 |
| 3306 |
(eval $ac_try) 2>&5 |
| 3307 |
ac_status=$? |
| 3308 |
echo "$as_me:3308: \$? = $ac_status" >&5 |
| 3309 |
(exit $ac_status); }; }; then |
| 3310 |
ac_cv_working_alloca_h=yes |
| 3311 |
else |
| 3312 |
echo "$as_me: failed program was:" >&5 |
| 3313 |
cat conftest.$ac_ext >&5 |
| 3314 |
ac_cv_working_alloca_h=no |
| 3315 |
fi |
| 3316 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3317 |
fi |
| 3318 |
echo "$as_me:3318: result: $ac_cv_working_alloca_h" >&5 |
| 3319 |
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 3320 |
if test $ac_cv_working_alloca_h = yes; then |
| 3321 |
|
| 3322 |
cat >>confdefs.h <<\EOF |
| 3323 |
#define HAVE_ALLOCA_H 1 |
| 3324 |
EOF |
| 3325 |
|
| 3326 |
fi |
| 3327 |
|
| 3328 |
echo "$as_me:3328: checking for alloca" >&5 |
| 3329 |
echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 3330 |
if test "${ac_cv_func_alloca_works+set}" = set; then |
| 3331 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3332 |
else |
| 3333 |
cat >conftest.$ac_ext <<_ACEOF |
| 3334 |
#line 3334 "configure" |
| 3335 |
#include "confdefs.h" |
| 3336 |
#ifdef __GNUC__ |
| 3337 |
# define alloca __builtin_alloca |
| 3338 |
#else |
| 3339 |
# ifdef _MSC_VER |
| 3340 |
# include <malloc.h> |
| 3341 |
# define alloca _alloca |
| 3342 |
# else |
| 3343 |
# if HAVE_ALLOCA_H |
| 3344 |
# include <alloca.h> |
| 3345 |
# else |
| 3346 |
# ifdef _AIX |
| 3347 |
#pragma alloca |
| 3348 |
# else |
| 3349 |
# ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 3350 |
char *alloca (); |
| 3351 |
# endif |
| 3352 |
# endif |
| 3353 |
# endif |
| 3354 |
# endif |
| 3355 |
#endif |
| 3356 |
|
| 3357 |
int |
| 3358 |
main () |
| 3359 |
{ |
| 3360 |
char *p = (char *) alloca (1); |
| 3361 |
; |
| 3362 |
return 0; |
| 3363 |
} |
| 3364 |
_ACEOF |
| 3365 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3366 |
if { (eval echo "$as_me:3366: \"$ac_link\"") >&5 |
| 3367 |
(eval $ac_link) 2>&5 |
| 3368 |
ac_status=$? |
| 3369 |
echo "$as_me:3369: \$? = $ac_status" >&5 |
| 3370 |
(exit $ac_status); } && |
| 3371 |
{ ac_try='test -s conftest$ac_exeext' |
| 3372 |
{ (eval echo "$as_me:3372: \"$ac_try\"") >&5 |
| 3373 |
(eval $ac_try) 2>&5 |
| 3374 |
ac_status=$? |
| 3375 |
echo "$as_me:3375: \$? = $ac_status" >&5 |
| 3376 |
(exit $ac_status); }; }; then |
| 3377 |
ac_cv_func_alloca_works=yes |
| 3378 |
else |
| 3379 |
echo "$as_me: failed program was:" >&5 |
| 3380 |
cat conftest.$ac_ext >&5 |
| 3381 |
ac_cv_func_alloca_works=no |
| 3382 |
fi |
| 3383 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3384 |
fi |
| 3385 |
echo "$as_me:3385: result: $ac_cv_func_alloca_works" >&5 |
| 3386 |
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 3387 |
|
| 3388 |
if test $ac_cv_func_alloca_works = yes; then |
| 3389 |
|
| 3390 |
cat >>confdefs.h <<\EOF |
| 3391 |
#define HAVE_ALLOCA 1 |
| 3392 |
EOF |
| 3393 |
|
| 3394 |
else |
| 3395 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 3396 |
# that cause trouble. Some versions do not even contain alloca or |
| 3397 |
# contain a buggy version. If you still want to use their alloca, |
| 3398 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
| 3399 |
|
| 3400 |
ALLOCA=alloca.$ac_objext |
| 3401 |
|
| 3402 |
cat >>confdefs.h <<\EOF |
| 3403 |
#define C_ALLOCA 1 |
| 3404 |
EOF |
| 3405 |
|
| 3406 |
echo "$as_me:3406: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 3407 |
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 3408 |
if test "${ac_cv_os_cray+set}" = set; then |
| 3409 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3410 |
else |
| 3411 |
cat >conftest.$ac_ext <<_ACEOF |
| 3412 |
#line 3412 "configure" |
| 3413 |
#include "confdefs.h" |
| 3414 |
#if defined(CRAY) && ! defined(CRAY2) |
| 3415 |
webecray |
| 3416 |
#else |
| 3417 |
wenotbecray |
| 3418 |
#endif |
| 3419 |
|
| 3420 |
_ACEOF |
| 3421 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3422 |
egrep "webecray" >/dev/null 2>&1; then |
| 3423 |
ac_cv_os_cray=yes |
| 3424 |
else |
| 3425 |
ac_cv_os_cray=no |
| 3426 |
fi |
| 3427 |
rm -f conftest* |
| 3428 |
|
| 3429 |
fi |
| 3430 |
echo "$as_me:3430: result: $ac_cv_os_cray" >&5 |
| 3431 |
echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 3432 |
if test $ac_cv_os_cray = yes; then |
| 3433 |
for ac_func in _getb67 GETB67 getb67; do |
| 3434 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3435 |
echo "$as_me:3435: checking for $ac_func" >&5 |
| 3436 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3437 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3438 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3439 |
else |
| 3440 |
cat >conftest.$ac_ext <<_ACEOF |
| 3441 |
#line 3441 "configure" |
| 3442 |
#include "confdefs.h" |
| 3443 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3444 |
which can conflict with char $ac_func (); below. */ |
| 3445 |
#include <assert.h> |
| 3446 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3447 |
#ifdef __cplusplus |
| 3448 |
extern "C" |
| 3449 |
#endif |
| 3450 |
/* We use char because int might match the return type of a gcc2 |
| 3451 |
builtin and then its argument prototype would still apply. */ |
| 3452 |
char $ac_func (); |
| 3453 |
char (*f) (); |
| 3454 |
|
| 3455 |
int |
| 3456 |
main () |
| 3457 |
{ |
| 3458 |
/* The GNU C library defines this for functions which it implements |
| 3459 |
to always fail with ENOSYS. Some functions are actually named |
| 3460 |
something starting with __ and the normal name is an alias. */ |
| 3461 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3462 |
choke me |
| 3463 |
#else |
| 3464 |
f = $ac_func; |
| 3465 |
#endif |
| 3466 |
|
| 3467 |
; |
| 3468 |
return 0; |
| 3469 |
} |
| 3470 |
_ACEOF |
| 3471 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3472 |
if { (eval echo "$as_me:3472: \"$ac_link\"") >&5 |
| 3473 |
(eval $ac_link) 2>&5 |
| 3474 |
ac_status=$? |
| 3475 |
echo "$as_me:3475: \$? = $ac_status" >&5 |
| 3476 |
(exit $ac_status); } && |
| 3477 |
{ ac_try='test -s conftest$ac_exeext' |
| 3478 |
{ (eval echo "$as_me:3478: \"$ac_try\"") >&5 |
| 3479 |
(eval $ac_try) 2>&5 |
| 3480 |
ac_status=$? |
| 3481 |
echo "$as_me:3481: \$? = $ac_status" >&5 |
| 3482 |
(exit $ac_status); }; }; then |
| 3483 |
eval "$as_ac_var=yes" |
| 3484 |
else |
| 3485 |
echo "$as_me: failed program was:" >&5 |
| 3486 |
cat conftest.$ac_ext >&5 |
| 3487 |
eval "$as_ac_var=no" |
| 3488 |
fi |
| 3489 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3490 |
fi |
| 3491 |
echo "$as_me:3491: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 3492 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 3493 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 3494 |
|
| 3495 |
cat >>confdefs.h <<EOF |
| 3496 |
#define CRAY_STACKSEG_END $ac_func |
| 3497 |
EOF |
| 3498 |
|
| 3499 |
break |
| 3500 |
fi |
| 3501 |
|
| 3502 |
done |
| 3503 |
fi |
| 3504 |
|
| 3505 |
echo "$as_me:3505: checking stack direction for C alloca" >&5 |
| 3506 |
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 3507 |
if test "${ac_cv_c_stack_direction+set}" = set; then |
| 3508 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3509 |
else |
| 3510 |
if test "$cross_compiling" = yes; then |
| 3511 |
ac_cv_c_stack_direction=0 |
| 3512 |
else |
| 3513 |
cat >conftest.$ac_ext <<_ACEOF |
| 3514 |
#line 3514 "configure" |
| 3515 |
#include "confdefs.h" |
| 3516 |
int |
| 3517 |
find_stack_direction () |
| 3518 |
{ |
| 3519 |
static char *addr = 0; |
| 3520 |
auto char dummy; |
| 3521 |
if (addr == 0) |
| 3522 |
{ |
| 3523 |
addr = &dummy; |
| 3524 |
return find_stack_direction (); |
| 3525 |
} |
| 3526 |
else |
| 3527 |
return (&dummy > addr) ? 1 : -1; |
| 3528 |
} |
| 3529 |
|
| 3530 |
int |
| 3531 |
main () |
| 3532 |
{ |
| 3533 |
exit (find_stack_direction () < 0); |
| 3534 |
} |
| 3535 |
_ACEOF |
| 3536 |
rm -f conftest$ac_exeext |
| 3537 |
if { (eval echo "$as_me:3537: \"$ac_link\"") >&5 |
| 3538 |
(eval $ac_link) 2>&5 |
| 3539 |
ac_status=$? |
| 3540 |
echo "$as_me:3540: \$? = $ac_status" >&5 |
| 3541 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3542 |
{ (eval echo "$as_me:3542: \"$ac_try\"") >&5 |
| 3543 |
(eval $ac_try) 2>&5 |
| 3544 |
ac_status=$? |
| 3545 |
echo "$as_me:3545: \$? = $ac_status" >&5 |
| 3546 |
(exit $ac_status); }; }; then |
| 3547 |
ac_cv_c_stack_direction=1 |
| 3548 |
else |
| 3549 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 3550 |
echo "$as_me: failed program was:" >&5 |
| 3551 |
cat conftest.$ac_ext >&5 |
| 3552 |
ac_cv_c_stack_direction=-1 |
| 3553 |
fi |
| 3554 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3555 |
fi |
| 3556 |
fi |
| 3557 |
echo "$as_me:3557: result: $ac_cv_c_stack_direction" >&5 |
| 3558 |
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 3559 |
|
| 3560 |
cat >>confdefs.h <<EOF |
| 3561 |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
| 3562 |
EOF |
| 3563 |
|
| 3564 |
fi |
| 3565 |
|
| 3566 |
for ac_header in stdlib.h unistd.h |
| 3567 |
do |
| 3568 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3569 |
echo "$as_me:3569: checking for $ac_header" >&5 |
| 3570 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3571 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3572 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3573 |
else |
| 3574 |
cat >conftest.$ac_ext <<_ACEOF |
| 3575 |
#line 3575 "configure" |
| 3576 |
#include "confdefs.h" |
| 3577 |
#include <$ac_header> |
| 3578 |
_ACEOF |
| 3579 |
if { (eval echo "$as_me:3579: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3580 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3581 |
ac_status=$? |
| 3582 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3583 |
rm -f conftest.er1 |
| 3584 |
cat conftest.err >&5 |
| 3585 |
echo "$as_me:3585: \$? = $ac_status" >&5 |
| 3586 |
(exit $ac_status); } >/dev/null; then |
| 3587 |
if test -s conftest.err; then |
| 3588 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3589 |
else |
| 3590 |
ac_cpp_err= |
| 3591 |
fi |
| 3592 |
else |
| 3593 |
ac_cpp_err=yes |
| 3594 |
fi |
| 3595 |
if test -z "$ac_cpp_err"; then |
| 3596 |
eval "$as_ac_Header=yes" |
| 3597 |
else |
| 3598 |
echo "$as_me: failed program was:" >&5 |
| 3599 |
cat conftest.$ac_ext >&5 |
| 3600 |
eval "$as_ac_Header=no" |
| 3601 |
fi |
| 3602 |
rm -f conftest.err conftest.$ac_ext |
| 3603 |
fi |
| 3604 |
echo "$as_me:3604: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3605 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3606 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3607 |
cat >>confdefs.h <<EOF |
| 3608 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3609 |
EOF |
| 3610 |
|
| 3611 |
fi |
| 3612 |
done |
| 3613 |
|
| 3614 |
for ac_func in getpagesize |
| 3615 |
do |
| 3616 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3617 |
echo "$as_me:3617: checking for $ac_func" >&5 |
| 3618 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3619 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3620 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3621 |
else |
| 3622 |
cat >conftest.$ac_ext <<_ACEOF |
| 3623 |
#line 3623 "configure" |
| 3624 |
#include "confdefs.h" |
| 3625 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3626 |
which can conflict with char $ac_func (); below. */ |
| 3627 |
#include <assert.h> |
| 3628 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3629 |
#ifdef __cplusplus |
| 3630 |
extern "C" |
| 3631 |
#endif |
| 3632 |
/* We use char because int might match the return type of a gcc2 |
| 3633 |
builtin and then its argument prototype would still apply. */ |
| 3634 |
char $ac_func (); |
| 3635 |
char (*f) (); |
| 3636 |
|
| 3637 |
int |
| 3638 |
main () |
| 3639 |
{ |
| 3640 |
/* The GNU C library defines this for functions which it implements |
| 3641 |
to always fail with ENOSYS. Some functions are actually named |
| 3642 |
something starting with __ and the normal name is an alias. */ |
| 3643 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3644 |
choke me |
| 3645 |
#else |
| 3646 |
f = $ac_func; |
| 3647 |
#endif |
| 3648 |
|
| 3649 |
; |
| 3650 |
return 0; |
| 3651 |
} |
| 3652 |
_ACEOF |
| 3653 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3654 |
if { (eval echo "$as_me:3654: \"$ac_link\"") >&5 |
| 3655 |
(eval $ac_link) 2>&5 |
| 3656 |
ac_status=$? |
| 3657 |
echo "$as_me:3657: \$? = $ac_status" >&5 |
| 3658 |
(exit $ac_status); } && |
| 3659 |
{ ac_try='test -s conftest$ac_exeext' |
| 3660 |
{ (eval echo "$as_me:3660: \"$ac_try\"") >&5 |
| 3661 |
(eval $ac_try) 2>&5 |
| 3662 |
ac_status=$? |
| 3663 |
echo "$as_me:3663: \$? = $ac_status" >&5 |
| 3664 |
(exit $ac_status); }; }; then |
| 3665 |
eval "$as_ac_var=yes" |
| 3666 |
else |
| 3667 |
echo "$as_me: failed program was:" >&5 |
| 3668 |
cat conftest.$ac_ext >&5 |
| 3669 |
eval "$as_ac_var=no" |
| 3670 |
fi |
| 3671 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3672 |
fi |
| 3673 |
echo "$as_me:3673: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 3674 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 3675 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 3676 |
cat >>confdefs.h <<EOF |
| 3677 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 3678 |
EOF |
| 3679 |
|
| 3680 |
fi |
| 3681 |
done |
| 3682 |
|
| 3683 |
echo "$as_me:3683: checking for working mmap" >&5 |
| 3684 |
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 3685 |
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 3686 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3687 |
else |
| 3688 |
if test "$cross_compiling" = yes; then |
| 3689 |
ac_cv_func_mmap_fixed_mapped=no |
| 3690 |
else |
| 3691 |
cat >conftest.$ac_ext <<_ACEOF |
| 3692 |
#line 3692 "configure" |
| 3693 |
#include "confdefs.h" |
| 3694 |
$ac_includes_default |
| 3695 |
/* Thanks to Mike Haertel and Jim Avera for this test. |
| 3696 |
Here is a matrix of mmap possibilities: |
| 3697 |
mmap private not fixed |
| 3698 |
mmap private fixed at somewhere currently unmapped |
| 3699 |
mmap private fixed at somewhere already mapped |
| 3700 |
mmap shared not fixed |
| 3701 |
mmap shared fixed at somewhere currently unmapped |
| 3702 |
mmap shared fixed at somewhere already mapped |
| 3703 |
For private mappings, we should verify that changes cannot be read() |
| 3704 |
back from the file, nor mmap's back from the file at a different |
| 3705 |
address. (There have been systems where private was not correctly |
| 3706 |
implemented like the infamous i386 svr4.0, and systems where the |
| 3707 |
VM page cache was not coherent with the file system buffer cache |
| 3708 |
like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 3709 |
For shared mappings, we should conversely verify that changes get |
| 3710 |
propogated back to all the places they're supposed to be. |
| 3711 |
|
| 3712 |
Grep wants private fixed already mapped. |
| 3713 |
The main things grep needs to know about mmap are: |
| 3714 |
* does it exist and is it safe to write into the mmap'd area |
| 3715 |
* how to use it (BSD variants) */ |
| 3716 |
|
| 3717 |
#include <fcntl.h> |
| 3718 |
#include <sys/mman.h> |
| 3719 |
|
| 3720 |
#if !STDC_HEADERS && !HAVE_STDLIB_H |
| 3721 |
char *malloc (); |
| 3722 |
#endif |
| 3723 |
|
| 3724 |
/* This mess was copied from the GNU getpagesize.h. */ |
| 3725 |
#if !HAVE_GETPAGESIZE |
| 3726 |
/* Assume that all systems that can run configure have sys/param.h. */ |
| 3727 |
# if !HAVE_SYS_PARAM_H |
| 3728 |
# define HAVE_SYS_PARAM_H 1 |
| 3729 |
# endif |
| 3730 |
|
| 3731 |
# ifdef _SC_PAGESIZE |
| 3732 |
# define getpagesize() sysconf(_SC_PAGESIZE) |
| 3733 |
# else /* no _SC_PAGESIZE */ |
| 3734 |
# if HAVE_SYS_PARAM_H |
| 3735 |
# include <sys/param.h> |
| 3736 |
# ifdef EXEC_PAGESIZE |
| 3737 |
# define getpagesize() EXEC_PAGESIZE |
| 3738 |
# else /* no EXEC_PAGESIZE */ |
| 3739 |
# ifdef NBPG |
| 3740 |
# define getpagesize() NBPG * CLSIZE |
| 3741 |
# ifndef CLSIZE |
| 3742 |
# define CLSIZE 1 |
| 3743 |
# endif /* no CLSIZE */ |
| 3744 |
# else /* no NBPG */ |
| 3745 |
# ifdef NBPC |
| 3746 |
# define getpagesize() NBPC |
| 3747 |
# else /* no NBPC */ |
| 3748 |
# ifdef PAGESIZE |
| 3749 |
# define getpagesize() PAGESIZE |
| 3750 |
# endif /* PAGESIZE */ |
| 3751 |
# endif /* no NBPC */ |
| 3752 |
# endif /* no NBPG */ |
| 3753 |
# endif /* no EXEC_PAGESIZE */ |
| 3754 |
# else /* no HAVE_SYS_PARAM_H */ |
| 3755 |
# define getpagesize() 8192 /* punt totally */ |
| 3756 |
# endif /* no HAVE_SYS_PARAM_H */ |
| 3757 |
# endif /* no _SC_PAGESIZE */ |
| 3758 |
|
| 3759 |
#endif /* no HAVE_GETPAGESIZE */ |
| 3760 |
|
| 3761 |
int |
| 3762 |
main () |
| 3763 |
{ |
| 3764 |
char *data, *data2, *data3; |
| 3765 |
int i, pagesize; |
| 3766 |
int fd; |
| 3767 |
|
| 3768 |
pagesize = getpagesize (); |
| 3769 |
|
| 3770 |
/* First, make a file with some known garbage in it. */ |
| 3771 |
data = (char *) malloc (pagesize); |
| 3772 |
if (!data) |
| 3773 |
exit (1); |
| 3774 |
for (i = 0; i < pagesize; ++i) |
| 3775 |
*(data + i) = rand (); |
| 3776 |
umask (0); |
| 3777 |
fd = creat ("conftest.mmap", 0600); |
| 3778 |
if (fd < 0) |
| 3779 |
exit (1); |
| 3780 |
if (write (fd, data, pagesize) != pagesize) |
| 3781 |
exit (1); |
| 3782 |
close (fd); |
| 3783 |
|
| 3784 |
/* Next, try to mmap the file at a fixed address which already has |
| 3785 |
something else allocated at it. If we can, also make sure that |
| 3786 |
we see the same garbage. */ |
| 3787 |
fd = open ("conftest.mmap", O_RDWR); |
| 3788 |
if (fd < 0) |
| 3789 |
exit (1); |
| 3790 |
data2 = (char *) malloc (2 * pagesize); |
| 3791 |
if (!data2) |
| 3792 |
exit (1); |
| 3793 |
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 3794 |
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 3795 |
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 3796 |
exit (1); |
| 3797 |
for (i = 0; i < pagesize; ++i) |
| 3798 |
if (*(data + i) != *(data2 + i)) |
| 3799 |
exit (1); |
| 3800 |
|
| 3801 |
/* Finally, make sure that changes to the mapped area do not |
| 3802 |
percolate back to the file as seen by read(). (This is a bug on |
| 3803 |
some variants of i386 svr4.0.) */ |
| 3804 |
for (i = 0; i < pagesize; ++i) |
| 3805 |
*(data2 + i) = *(data2 + i) + 1; |
| 3806 |
data3 = (char *) malloc (pagesize); |
| 3807 |
if (!data3) |
| 3808 |
exit (1); |
| 3809 |
if (read (fd, data3, pagesize) != pagesize) |
| 3810 |
exit (1); |
| 3811 |
for (i = 0; i < pagesize; ++i) |
| 3812 |
if (*(data + i) != *(data3 + i)) |
| 3813 |
exit (1); |
| 3814 |
close (fd); |
| 3815 |
exit (0); |
| 3816 |
} |
| 3817 |
_ACEOF |
| 3818 |
rm -f conftest$ac_exeext |
| 3819 |
if { (eval echo "$as_me:3819: \"$ac_link\"") >&5 |
| 3820 |
(eval $ac_link) 2>&5 |
| 3821 |
ac_status=$? |
| 3822 |
echo "$as_me:3822: \$? = $ac_status" >&5 |
| 3823 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3824 |
{ (eval echo "$as_me:3824: \"$ac_try\"") >&5 |
| 3825 |
(eval $ac_try) 2>&5 |
| 3826 |
ac_status=$? |
| 3827 |
echo "$as_me:3827: \$? = $ac_status" >&5 |
| 3828 |
(exit $ac_status); }; }; then |
| 3829 |
ac_cv_func_mmap_fixed_mapped=yes |
| 3830 |
else |
| 3831 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 3832 |
echo "$as_me: failed program was:" >&5 |
| 3833 |
cat conftest.$ac_ext >&5 |
| 3834 |
ac_cv_func_mmap_fixed_mapped=no |
| 3835 |
fi |
| 3836 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3837 |
fi |
| 3838 |
fi |
| 3839 |
echo "$as_me:3839: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 3840 |
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 3841 |
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 3842 |
|
| 3843 |
cat >>confdefs.h <<\EOF |
| 3844 |
#define HAVE_MMAP 1 |
| 3845 |
EOF |
| 3846 |
|
| 3847 |
fi |
| 3848 |
rm -f conftest.mmap |
| 3849 |
|
| 3850 |
echo "$as_me:3850: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 3851 |
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
| 3852 |
if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 3853 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3854 |
else |
| 3855 |
cat >conftest.$ac_ext <<_ACEOF |
| 3856 |
#line 3856 "configure" |
| 3857 |
#include "confdefs.h" |
| 3858 |
|
| 3859 |
#include <features.h> |
| 3860 |
#ifdef __GNU_LIBRARY__ |
| 3861 |
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 3862 |
Lucky GNU user |
| 3863 |
#endif |
| 3864 |
#endif |
| 3865 |
|
| 3866 |
_ACEOF |
| 3867 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3868 |
egrep "Lucky GNU user" >/dev/null 2>&1; then |
| 3869 |
ac_cv_gnu_library_2_1=yes |
| 3870 |
else |
| 3871 |
ac_cv_gnu_library_2_1=no |
| 3872 |
fi |
| 3873 |
rm -f conftest* |
| 3874 |
|
| 3875 |
fi |
| 3876 |
echo "$as_me:3876: result: $ac_cv_gnu_library_2_1" >&5 |
| 3877 |
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
| 3878 |
|
| 3879 |
GLIBC21="$ac_cv_gnu_library_2_1" |
| 3880 |
|
| 3881 |
if test "X$prefix" = "XNONE"; then |
| 3882 |
acl_final_prefix="$ac_default_prefix" |
| 3883 |
else |
| 3884 |
acl_final_prefix="$prefix" |
| 3885 |
fi |
| 3886 |
if test "X$exec_prefix" = "XNONE"; then |
| 3887 |
acl_final_exec_prefix='${prefix}' |
| 3888 |
else |
| 3889 |
acl_final_exec_prefix="$exec_prefix" |
| 3890 |
fi |
| 3891 |
acl_save_prefix="$prefix" |
| 3892 |
prefix="$acl_final_prefix" |
| 3893 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 3894 |
prefix="$acl_save_prefix" |
| 3895 |
|
| 3896 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3897 |
if test "${with_gnu_ld+set}" = set; then |
| 3898 |
withval="$with_gnu_ld" |
| 3899 |
test "$withval" = no || with_gnu_ld=yes |
| 3900 |
else |
| 3901 |
with_gnu_ld=no |
| 3902 |
fi; |
| 3903 |
ac_prog=ld |
| 3904 |
if test "$GCC" = yes; then |
| 3905 |
# Check if gcc -print-prog-name=ld gives a path. |
| 3906 |
echo "$as_me:3906: checking for ld used by GCC" >&5 |
| 3907 |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3908 |
case $host in |
| 3909 |
*-*-mingw*) |
| 3910 |
# gcc leaves a trailing carriage return which upsets mingw |
| 3911 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3912 |
*) |
| 3913 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3914 |
esac |
| 3915 |
case $ac_prog in |
| 3916 |
# Accept absolute paths. |
| 3917 |
[\\/]* | [A-Za-z]:[\\/]*) |
| 3918 |
re_direlt='/[^/][^/]*/\.\./' |
| 3919 |
# Canonicalize the path of ld |
| 3920 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3921 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3922 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3923 |
done |
| 3924 |
test -z "$LD" && LD="$ac_prog" |
| 3925 |
;; |
| 3926 |
"") |
| 3927 |
# If it fails, then pretend we aren't using GCC. |
| 3928 |
ac_prog=ld |
| 3929 |
;; |
| 3930 |
*) |
| 3931 |
# If it is relative, then search for the first ld in PATH. |
| 3932 |
with_gnu_ld=unknown |
| 3933 |
;; |
| 3934 |
esac |
| 3935 |
elif test "$with_gnu_ld" = yes; then |
| 3936 |
echo "$as_me:3936: checking for GNU ld" >&5 |
| 3937 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3938 |
else |
| 3939 |
echo "$as_me:3939: checking for non-GNU ld" >&5 |
| 3940 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3941 |
fi |
| 3942 |
if test "${acl_cv_path_LD+set}" = set; then |
| 3943 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3944 |
else |
| 3945 |
if test -z "$LD"; then |
| 3946 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 3947 |
for ac_dir in $PATH; do |
| 3948 |
test -z "$ac_dir" && ac_dir=. |
| 3949 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3950 |
acl_cv_path_LD="$ac_dir/$ac_prog" |
| 3951 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 3952 |
# but apparently some GNU ld's only accept -v. |
| 3953 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 3954 |
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 3955 |
test "$with_gnu_ld" != no && break |
| 3956 |
else |
| 3957 |
test "$with_gnu_ld" != yes && break |
| 3958 |
fi |
| 3959 |
fi |
| 3960 |
done |
| 3961 |
IFS="$ac_save_ifs" |
| 3962 |
else |
| 3963 |
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3964 |
fi |
| 3965 |
fi |
| 3966 |
|
| 3967 |
LD="$acl_cv_path_LD" |
| 3968 |
if test -n "$LD"; then |
| 3969 |
echo "$as_me:3969: result: $LD" >&5 |
| 3970 |
echo "${ECHO_T}$LD" >&6 |
| 3971 |
else |
| 3972 |
echo "$as_me:3972: result: no" >&5 |
| 3973 |
echo "${ECHO_T}no" >&6 |
| 3974 |
fi |
| 3975 |
test -z "$LD" && { { echo "$as_me:3975: error: no acceptable ld found in \$PATH" >&5 |
| 3976 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3977 |
{ (exit 1); exit 1; }; } |
| 3978 |
echo "$as_me:3978: checking if the linker ($LD) is GNU ld" >&5 |
| 3979 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3980 |
if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 3981 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3982 |
else |
| 3983 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3984 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 3985 |
acl_cv_prog_gnu_ld=yes |
| 3986 |
else |
| 3987 |
acl_cv_prog_gnu_ld=no |
| 3988 |
fi |
| 3989 |
fi |
| 3990 |
echo "$as_me:3990: result: $acl_cv_prog_gnu_ld" >&5 |
| 3991 |
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 3992 |
with_gnu_ld=$acl_cv_prog_gnu_ld |
| 3993 |
|
| 3994 |
echo "$as_me:3994: checking for shared library run path origin" >&5 |
| 3995 |
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 3996 |
if test "${acl_cv_rpath+set}" = set; then |
| 3997 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3998 |
else |
| 3999 |
|
| 4000 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 4001 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 4002 |
. ./conftest.sh |
| 4003 |
rm -f ./conftest.sh |
| 4004 |
acl_cv_rpath=done |
| 4005 |
|
| 4006 |
fi |
| 4007 |
echo "$as_me:4007: result: $acl_cv_rpath" >&5 |
| 4008 |
echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 4009 |
wl="$acl_cv_wl" |
| 4010 |
libext="$acl_cv_libext" |
| 4011 |
shlibext="$acl_cv_shlibext" |
| 4012 |
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 4013 |
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 4014 |
hardcode_direct="$acl_cv_hardcode_direct" |
| 4015 |
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 4016 |
sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 4017 |
sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 4018 |
|
| 4019 |
use_additional=yes |
| 4020 |
|
| 4021 |
acl_save_prefix="$prefix" |
| 4022 |
prefix="$acl_final_prefix" |
| 4023 |
acl_save_exec_prefix="$exec_prefix" |
| 4024 |
exec_prefix="$acl_final_exec_prefix" |
| 4025 |
|
| 4026 |
eval additional_includedir=\"$includedir\" |
| 4027 |
eval additional_libdir=\"$libdir\" |
| 4028 |
|
| 4029 |
exec_prefix="$acl_save_exec_prefix" |
| 4030 |
prefix="$acl_save_prefix" |
| 4031 |
|
| 4032 |
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 4033 |
if test "${with_libiconv_prefix+set}" = set; then |
| 4034 |
withval="$with_libiconv_prefix" |
| 4035 |
|
| 4036 |
if test "X$withval" = "Xno"; then |
| 4037 |
use_additional=no |
| 4038 |
else |
| 4039 |
if test "X$withval" = "X"; then |
| 4040 |
|
| 4041 |
acl_save_prefix="$prefix" |
| 4042 |
prefix="$acl_final_prefix" |
| 4043 |
acl_save_exec_prefix="$exec_prefix" |
| 4044 |
exec_prefix="$acl_final_exec_prefix" |
| 4045 |
|
| 4046 |
eval additional_includedir=\"$includedir\" |
| 4047 |
eval additional_libdir=\"$libdir\" |
| 4048 |
|
| 4049 |
exec_prefix="$acl_save_exec_prefix" |
| 4050 |
prefix="$acl_save_prefix" |
| 4051 |
|
| 4052 |
else |
| 4053 |
additional_includedir="$withval/include" |
| 4054 |
additional_libdir="$withval/lib" |
| 4055 |
fi |
| 4056 |
fi |
| 4057 |
|
| 4058 |
fi; |
| 4059 |
LIBICONV= |
| 4060 |
LTLIBICONV= |
| 4061 |
INCICONV= |
| 4062 |
rpathdirs= |
| 4063 |
ltrpathdirs= |
| 4064 |
names_already_handled= |
| 4065 |
names_next_round='iconv ' |
| 4066 |
while test -n "$names_next_round"; do |
| 4067 |
names_this_round="$names_next_round" |
| 4068 |
names_next_round= |
| 4069 |
for name in $names_this_round; do |
| 4070 |
already_handled= |
| 4071 |
for n in $names_already_handled; do |
| 4072 |
if test "$n" = "$name"; then |
| 4073 |
already_handled=yes |
| 4074 |
break |
| 4075 |
fi |
| 4076 |
done |
| 4077 |
if test -z "$already_handled"; then |
| 4078 |
names_already_handled="$names_already_handled $name" |
| 4079 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4080 |
eval value=\"\$HAVE_LIB$uppername\" |
| 4081 |
if test -n "$value"; then |
| 4082 |
if test "$value" = yes; then |
| 4083 |
eval value=\"\$LIB$uppername\" |
| 4084 |
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 4085 |
eval value=\"\$LTLIB$uppername\" |
| 4086 |
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 4087 |
else |
| 4088 |
: |
| 4089 |
fi |
| 4090 |
else |
| 4091 |
found_dir= |
| 4092 |
found_la= |
| 4093 |
found_so= |
| 4094 |
found_a= |
| 4095 |
if test $use_additional = yes; then |
| 4096 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4097 |
found_dir="$additional_libdir" |
| 4098 |
found_so="$additional_libdir/lib$name.$shlibext" |
| 4099 |
if test -f "$additional_libdir/lib$name.la"; then |
| 4100 |
found_la="$additional_libdir/lib$name.la" |
| 4101 |
fi |
| 4102 |
else |
| 4103 |
if test -f "$additional_libdir/lib$name.$libext"; then |
| 4104 |
found_dir="$additional_libdir" |
| 4105 |
found_a="$additional_libdir/lib$name.$libext" |
| 4106 |
if test -f "$additional_libdir/lib$name.la"; then |
| 4107 |
found_la="$additional_libdir/lib$name.la" |
| 4108 |
fi |
| 4109 |
fi |
| 4110 |
fi |
| 4111 |
fi |
| 4112 |
if test "X$found_dir" = "X"; then |
| 4113 |
for x in $LDFLAGS $LTLIBICONV; do |
| 4114 |
|
| 4115 |
acl_save_prefix="$prefix" |
| 4116 |
prefix="$acl_final_prefix" |
| 4117 |
acl_save_exec_prefix="$exec_prefix" |
| 4118 |
exec_prefix="$acl_final_exec_prefix" |
| 4119 |
eval x=\"$x\" |
| 4120 |
exec_prefix="$acl_save_exec_prefix" |
| 4121 |
prefix="$acl_save_prefix" |
| 4122 |
|
| 4123 |
case "$x" in |
| 4124 |
-L*) |
| 4125 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4126 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4127 |
found_dir="$dir" |
| 4128 |
found_so="$dir/lib$name.$shlibext" |
| 4129 |
if test -f "$dir/lib$name.la"; then |
| 4130 |
found_la="$dir/lib$name.la" |
| 4131 |
fi |
| 4132 |
else |
| 4133 |
if test -f "$dir/lib$name.$libext"; then |
| 4134 |
found_dir="$dir" |
| 4135 |
found_a="$dir/lib$name.$libext" |
| 4136 |
if test -f "$dir/lib$name.la"; then |
| 4137 |
found_la="$dir/lib$name.la" |
| 4138 |
fi |
| 4139 |
fi |
| 4140 |
fi |
| 4141 |
;; |
| 4142 |
esac |
| 4143 |
if test "X$found_dir" != "X"; then |
| 4144 |
break |
| 4145 |
fi |
| 4146 |
done |
| 4147 |
fi |
| 4148 |
if test "X$found_dir" != "X"; then |
| 4149 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 4150 |
if test "X$found_so" != "X"; then |
| 4151 |
if test "X$found_dir" = "X/usr/lib"; then |
| 4152 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 4153 |
else |
| 4154 |
haveit= |
| 4155 |
for x in $ltrpathdirs; do |
| 4156 |
if test "X$x" = "X$found_dir"; then |
| 4157 |
haveit=yes |
| 4158 |
break |
| 4159 |
fi |
| 4160 |
done |
| 4161 |
if test -z "$haveit"; then |
| 4162 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 4163 |
fi |
| 4164 |
if test "$hardcode_direct" = yes; then |
| 4165 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 4166 |
else |
| 4167 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4168 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 4169 |
haveit= |
| 4170 |
for x in $rpathdirs; do |
| 4171 |
if test "X$x" = "X$found_dir"; then |
| 4172 |
haveit=yes |
| 4173 |
break |
| 4174 |
fi |
| 4175 |
done |
| 4176 |
if test -z "$haveit"; then |
| 4177 |
rpathdirs="$rpathdirs $found_dir" |
| 4178 |
fi |
| 4179 |
else |
| 4180 |
haveit= |
| 4181 |
for x in $LDFLAGS $LIBICONV; do |
| 4182 |
|
| 4183 |
acl_save_prefix="$prefix" |
| 4184 |
prefix="$acl_final_prefix" |
| 4185 |
acl_save_exec_prefix="$exec_prefix" |
| 4186 |
exec_prefix="$acl_final_exec_prefix" |
| 4187 |
eval x=\"$x\" |
| 4188 |
exec_prefix="$acl_save_exec_prefix" |
| 4189 |
prefix="$acl_save_prefix" |
| 4190 |
|
| 4191 |
if test "X$x" = "X-L$found_dir"; then |
| 4192 |
haveit=yes |
| 4193 |
break |
| 4194 |
fi |
| 4195 |
done |
| 4196 |
if test -z "$haveit"; then |
| 4197 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 4198 |
fi |
| 4199 |
if test "$hardcode_minus_L" != no; then |
| 4200 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 4201 |
else |
| 4202 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 4203 |
fi |
| 4204 |
fi |
| 4205 |
fi |
| 4206 |
fi |
| 4207 |
else |
| 4208 |
if test "X$found_a" != "X"; then |
| 4209 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 4210 |
else |
| 4211 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 4212 |
fi |
| 4213 |
fi |
| 4214 |
additional_includedir= |
| 4215 |
case "$found_dir" in |
| 4216 |
*/lib | */lib/) |
| 4217 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4218 |
additional_includedir="$basedir/include" |
| 4219 |
;; |
| 4220 |
esac |
| 4221 |
if test "X$additional_includedir" != "X"; then |
| 4222 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 4223 |
haveit= |
| 4224 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4225 |
if test -n "$GCC"; then |
| 4226 |
case $host_os in |
| 4227 |
linux*) haveit=yes;; |
| 4228 |
esac |
| 4229 |
fi |
| 4230 |
fi |
| 4231 |
if test -z "$haveit"; then |
| 4232 |
for x in $CPPFLAGS $INCICONV; do |
| 4233 |
|
| 4234 |
acl_save_prefix="$prefix" |
| 4235 |
prefix="$acl_final_prefix" |
| 4236 |
acl_save_exec_prefix="$exec_prefix" |
| 4237 |
exec_prefix="$acl_final_exec_prefix" |
| 4238 |
eval x=\"$x\" |
| 4239 |
exec_prefix="$acl_save_exec_prefix" |
| 4240 |
prefix="$acl_save_prefix" |
| 4241 |
|
| 4242 |
if test "X$x" = "X-I$additional_includedir"; then |
| 4243 |
haveit=yes |
| 4244 |
break |
| 4245 |
fi |
| 4246 |
done |
| 4247 |
if test -z "$haveit"; then |
| 4248 |
if test -d "$additional_includedir"; then |
| 4249 |
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 4250 |
fi |
| 4251 |
fi |
| 4252 |
fi |
| 4253 |
fi |
| 4254 |
fi |
| 4255 |
if test -n "$found_la"; then |
| 4256 |
save_libdir="$libdir" |
| 4257 |
case "$found_la" in |
| 4258 |
*/* | *\\*) . "$found_la" ;; |
| 4259 |
*) . "./$found_la" ;; |
| 4260 |
esac |
| 4261 |
libdir="$save_libdir" |
| 4262 |
for dep in $dependency_libs; do |
| 4263 |
case "$dep" in |
| 4264 |
-L*) |
| 4265 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4266 |
if test "X$additional_libdir" != "X/usr/lib"; then |
| 4267 |
haveit= |
| 4268 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4269 |
if test -n "$GCC"; then |
| 4270 |
case $host_os in |
| 4271 |
linux*) haveit=yes;; |
| 4272 |
esac |
| 4273 |
fi |
| 4274 |
fi |
| 4275 |
if test -z "$haveit"; then |
| 4276 |
haveit= |
| 4277 |
for x in $LDFLAGS $LIBICONV; do |
| 4278 |
|
| 4279 |
acl_save_prefix="$prefix" |
| 4280 |
prefix="$acl_final_prefix" |
| 4281 |
acl_save_exec_prefix="$exec_prefix" |
| 4282 |
exec_prefix="$acl_final_exec_prefix" |
| 4283 |
eval x=\"$x\" |
| 4284 |
exec_prefix="$acl_save_exec_prefix" |
| 4285 |
prefix="$acl_save_prefix" |
| 4286 |
|
| 4287 |
if test "X$x" = "X-L$additional_libdir"; then |
| 4288 |
haveit=yes |
| 4289 |
break |
| 4290 |
fi |
| 4291 |
done |
| 4292 |
if test -z "$haveit"; then |
| 4293 |
if test -d "$additional_libdir"; then |
| 4294 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 4295 |
fi |
| 4296 |
fi |
| 4297 |
haveit= |
| 4298 |
for x in $LDFLAGS $LTLIBICONV; do |
| 4299 |
|
| 4300 |
acl_save_prefix="$prefix" |
| 4301 |
prefix="$acl_final_prefix" |
| 4302 |
acl_save_exec_prefix="$exec_prefix" |
| 4303 |
exec_prefix="$acl_final_exec_prefix" |
| 4304 |
eval x=\"$x\" |
| 4305 |
exec_prefix="$acl_save_exec_prefix" |
| 4306 |
prefix="$acl_save_prefix" |
| 4307 |
|
| 4308 |
if test "X$x" = "X-L$additional_libdir"; then |
| 4309 |
haveit=yes |
| 4310 |
break |
| 4311 |
fi |
| 4312 |
done |
| 4313 |
if test -z "$haveit"; then |
| 4314 |
if test -d "$additional_libdir"; then |
| 4315 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 4316 |
fi |
| 4317 |
fi |
| 4318 |
fi |
| 4319 |
fi |
| 4320 |
;; |
| 4321 |
-R*) |
| 4322 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4323 |
haveit= |
| 4324 |
for x in $rpathdirs; do |
| 4325 |
if test "X$x" = "X$dir"; then |
| 4326 |
haveit=yes |
| 4327 |
break |
| 4328 |
fi |
| 4329 |
done |
| 4330 |
if test -z "$haveit"; then |
| 4331 |
rpathdirs="$rpathdirs $dir" |
| 4332 |
fi |
| 4333 |
haveit= |
| 4334 |
for x in $ltrpathdirs; do |
| 4335 |
if test "X$x" = "X$dir"; then |
| 4336 |
haveit=yes |
| 4337 |
break |
| 4338 |
fi |
| 4339 |
done |
| 4340 |
if test -z "$haveit"; then |
| 4341 |
ltrpathdirs="$ltrpathdirs $dir" |
| 4342 |
fi |
| 4343 |
;; |
| 4344 |
-l*) |
| 4345 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4346 |
;; |
| 4347 |
*.la) |
| 4348 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4349 |
;; |
| 4350 |
*) |
| 4351 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 4352 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 4353 |
;; |
| 4354 |
esac |
| 4355 |
done |
| 4356 |
fi |
| 4357 |
else |
| 4358 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 4359 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 4360 |
fi |
| 4361 |
fi |
| 4362 |
fi |
| 4363 |
done |
| 4364 |
done |
| 4365 |
if test "X$rpathdirs" != "X"; then |
| 4366 |
if test -n "$hardcode_libdir_separator"; then |
| 4367 |
alldirs= |
| 4368 |
for found_dir in $rpathdirs; do |
| 4369 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4370 |
done |
| 4371 |
acl_save_libdir="$libdir" |
| 4372 |
libdir="$alldirs" |
| 4373 |
eval flag=\"$hardcode_libdir_flag_spec\" |
| 4374 |
libdir="$acl_save_libdir" |
| 4375 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 4376 |
else |
| 4377 |
for found_dir in $rpathdirs; do |
| 4378 |
acl_save_libdir="$libdir" |
| 4379 |
libdir="$found_dir" |
| 4380 |
eval flag=\"$hardcode_libdir_flag_spec\" |
| 4381 |
libdir="$acl_save_libdir" |
| 4382 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 4383 |
done |
| 4384 |
fi |
| 4385 |
fi |
| 4386 |
if test "X$ltrpathdirs" != "X"; then |
| 4387 |
for found_dir in $ltrpathdirs; do |
| 4388 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 4389 |
done |
| 4390 |
fi |
| 4391 |
|
| 4392 |
am_save_CPPFLAGS="$CPPFLAGS" |
| 4393 |
|
| 4394 |
for element in $INCICONV; do |
| 4395 |
haveit= |
| 4396 |
for x in $CPPFLAGS; do |
| 4397 |
|
| 4398 |
acl_save_prefix="$prefix" |
| 4399 |
prefix="$acl_final_prefix" |
| 4400 |
acl_save_exec_prefix="$exec_prefix" |
| 4401 |
exec_prefix="$acl_final_exec_prefix" |
| 4402 |
eval x=\"$x\" |
| 4403 |
exec_prefix="$acl_save_exec_prefix" |
| 4404 |
prefix="$acl_save_prefix" |
| 4405 |
|
| 4406 |
if test "X$x" = "X$element"; then |
| 4407 |
haveit=yes |
| 4408 |
break |
| 4409 |
fi |
| 4410 |
done |
| 4411 |
if test -z "$haveit"; then |
| 4412 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4413 |
fi |
| 4414 |
done |
| 4415 |
|
| 4416 |
echo "$as_me:4416: checking for iconv" >&5 |
| 4417 |
echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 4418 |
if test "${am_cv_func_iconv+set}" = set; then |
| 4419 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4420 |
else |
| 4421 |
|
| 4422 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
| 4423 |
am_cv_lib_iconv=no |
| 4424 |
cat >conftest.$ac_ext <<_ACEOF |
| 4425 |
#line 4425 "configure" |
| 4426 |
#include "confdefs.h" |
| 4427 |
#include <stdlib.h> |
| 4428 |
#include <iconv.h> |
| 4429 |
int |
| 4430 |
main () |
| 4431 |
{ |
| 4432 |
iconv_t cd = iconv_open("",""); |
| 4433 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 4434 |
iconv_close(cd); |
| 4435 |
; |
| 4436 |
return 0; |
| 4437 |
} |
| 4438 |
_ACEOF |
| 4439 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4440 |
if { (eval echo "$as_me:4440: \"$ac_link\"") >&5 |
| 4441 |
(eval $ac_link) 2>&5 |
| 4442 |
ac_status=$? |
| 4443 |
echo "$as_me:4443: \$? = $ac_status" >&5 |
| 4444 |
(exit $ac_status); } && |
| 4445 |
{ ac_try='test -s conftest$ac_exeext' |
| 4446 |
{ (eval echo "$as_me:4446: \"$ac_try\"") >&5 |
| 4447 |
(eval $ac_try) 2>&5 |
| 4448 |
ac_status=$? |
| 4449 |
echo "$as_me:4449: \$? = $ac_status" >&5 |
| 4450 |
(exit $ac_status); }; }; then |
| 4451 |
am_cv_func_iconv=yes |
| 4452 |
else |
| 4453 |
echo "$as_me: failed program was:" >&5 |
| 4454 |
cat conftest.$ac_ext >&5 |
| 4455 |
fi |
| 4456 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4457 |
if test "$am_cv_func_iconv" != yes; then |
| 4458 |
am_save_LIBS="$LIBS" |
| 4459 |
LIBS="$LIBS $LIBICONV" |
| 4460 |
cat >conftest.$ac_ext <<_ACEOF |
| 4461 |
#line 4461 "configure" |
| 4462 |
#include "confdefs.h" |
| 4463 |
#include <stdlib.h> |
| 4464 |
#include <iconv.h> |
| 4465 |
int |
| 4466 |
main () |
| 4467 |
{ |
| 4468 |
iconv_t cd = iconv_open("",""); |
| 4469 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 4470 |
iconv_close(cd); |
| 4471 |
; |
| 4472 |
return 0; |
| 4473 |
} |
| 4474 |
_ACEOF |
| 4475 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4476 |
if { (eval echo "$as_me:4476: \"$ac_link\"") >&5 |
| 4477 |
(eval $ac_link) 2>&5 |
| 4478 |
ac_status=$? |
| 4479 |
echo "$as_me:4479: \$? = $ac_status" >&5 |
| 4480 |
(exit $ac_status); } && |
| 4481 |
{ ac_try='test -s conftest$ac_exeext' |
| 4482 |
{ (eval echo "$as_me:4482: \"$ac_try\"") >&5 |
| 4483 |
(eval $ac_try) 2>&5 |
| 4484 |
ac_status=$? |
| 4485 |
echo "$as_me:4485: \$? = $ac_status" >&5 |
| 4486 |
(exit $ac_status); }; }; then |
| 4487 |
am_cv_lib_iconv=yes |
| 4488 |
am_cv_func_iconv=yes |
| 4489 |
else |
| 4490 |
echo "$as_me: failed program was:" >&5 |
| 4491 |
cat conftest.$ac_ext >&5 |
| 4492 |
fi |
| 4493 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4494 |
LIBS="$am_save_LIBS" |
| 4495 |
fi |
| 4496 |
|
| 4497 |
fi |
| 4498 |
echo "$as_me:4498: result: $am_cv_func_iconv" >&5 |
| 4499 |
echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 4500 |
if test "$am_cv_func_iconv" = yes; then |
| 4501 |
|
| 4502 |
cat >>confdefs.h <<\EOF |
| 4503 |
#define HAVE_ICONV 1 |
| 4504 |
EOF |
| 4505 |
|
| 4506 |
fi |
| 4507 |
if test "$am_cv_lib_iconv" = yes; then |
| 4508 |
echo "$as_me:4508: checking how to link with libiconv" >&5 |
| 4509 |
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
| 4510 |
echo "$as_me:4510: result: $LIBICONV" >&5 |
| 4511 |
echo "${ECHO_T}$LIBICONV" >&6 |
| 4512 |
else |
| 4513 |
CPPFLAGS="$am_save_CPPFLAGS" |
| 4514 |
LIBICONV= |
| 4515 |
LTLIBICONV= |
| 4516 |
fi |
| 4517 |
|
| 4518 |
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
| 4519 |
stdlib.h string.h unistd.h sys/param.h |
| 4520 |
do |
| 4521 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4522 |
echo "$as_me:4522: checking for $ac_header" >&5 |
| 4523 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4524 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4525 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4526 |
else |
| 4527 |
cat >conftest.$ac_ext <<_ACEOF |
| 4528 |
#line 4528 "configure" |
| 4529 |
#include "confdefs.h" |
| 4530 |
#include <$ac_header> |
| 4531 |
_ACEOF |
| 4532 |
if { (eval echo "$as_me:4532: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4533 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4534 |
ac_status=$? |
| 4535 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4536 |
rm -f conftest.er1 |
| 4537 |
cat conftest.err >&5 |
| 4538 |
echo "$as_me:4538: \$? = $ac_status" >&5 |
| 4539 |
(exit $ac_status); } >/dev/null; then |
| 4540 |
if test -s conftest.err; then |
| 4541 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4542 |
else |
| 4543 |
ac_cpp_err= |
| 4544 |
fi |
| 4545 |
else |
| 4546 |
ac_cpp_err=yes |
| 4547 |
fi |
| 4548 |
if test -z "$ac_cpp_err"; then |
| 4549 |
eval "$as_ac_Header=yes" |
| 4550 |
else |
| 4551 |
echo "$as_me: failed program was:" >&5 |
| 4552 |
cat conftest.$ac_ext >&5 |
| 4553 |
eval "$as_ac_Header=no" |
| 4554 |
fi |
| 4555 |
rm -f conftest.err conftest.$ac_ext |
| 4556 |
fi |
| 4557 |
echo "$as_me:4557: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4558 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4559 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4560 |
cat >>confdefs.h <<EOF |
| 4561 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4562 |
EOF |
| 4563 |
|
| 4564 |
fi |
| 4565 |
done |
| 4566 |
|
| 4567 |
for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
| 4568 |
geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 4569 |
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
| 4570 |
do |
| 4571 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4572 |
echo "$as_me:4572: checking for $ac_func" >&5 |
| 4573 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4574 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4575 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4576 |
else |
| 4577 |
cat >conftest.$ac_ext <<_ACEOF |
| 4578 |
#line 4578 "configure" |
| 4579 |
#include "confdefs.h" |
| 4580 |
/* System header to define __stub macros and hopefully few prototypes, |
| 4581 |
which can conflict with char $ac_func (); below. */ |
| 4582 |
#include <assert.h> |
| 4583 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4584 |
#ifdef __cplusplus |
| 4585 |
extern "C" |
| 4586 |
#endif |
| 4587 |
/* We use char because int might match the return type of a gcc2 |
| 4588 |
builtin and then its argument prototype would still apply. */ |
| 4589 |
char $ac_func (); |
| 4590 |
char (*f) (); |
| 4591 |
|
| 4592 |
int |
| 4593 |
main () |
| 4594 |
{ |
| 4595 |
/* The GNU C library defines this for functions which it implements |
| 4596 |
to always fail with ENOSYS. Some functions are actually named |
| 4597 |
something starting with __ and the normal name is an alias. */ |
| 4598 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4599 |
choke me |
| 4600 |
#else |
| 4601 |
f = $ac_func; |
| 4602 |
#endif |
| 4603 |
|
| 4604 |
; |
| 4605 |
return 0; |
| 4606 |
} |
| 4607 |
_ACEOF |
| 4608 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4609 |
if { (eval echo "$as_me:4609: \"$ac_link\"") >&5 |
| 4610 |
(eval $ac_link) 2>&5 |
| 4611 |
ac_status=$? |
| 4612 |
echo "$as_me:4612: \$? = $ac_status" >&5 |
| 4613 |
(exit $ac_status); } && |
| 4614 |
{ ac_try='test -s conftest$ac_exeext' |
| 4615 |
{ (eval echo "$as_me:4615: \"$ac_try\"") >&5 |
| 4616 |
(eval $ac_try) 2>&5 |
| 4617 |
ac_status=$? |
| 4618 |
echo "$as_me:4618: \$? = $ac_status" >&5 |
| 4619 |
(exit $ac_status); }; }; then |
| 4620 |
eval "$as_ac_var=yes" |
| 4621 |
else |
| 4622 |
echo "$as_me: failed program was:" >&5 |
| 4623 |
cat conftest.$ac_ext >&5 |
| 4624 |
eval "$as_ac_var=no" |
| 4625 |
fi |
| 4626 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4627 |
fi |
| 4628 |
echo "$as_me:4628: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4629 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4630 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4631 |
cat >>confdefs.h <<EOF |
| 4632 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4633 |
EOF |
| 4634 |
|
| 4635 |
fi |
| 4636 |
done |
| 4637 |
|
| 4638 |
if test "$am_cv_func_iconv" = yes; then |
| 4639 |
echo "$as_me:4639: checking for iconv declaration" >&5 |
| 4640 |
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 4641 |
if test "${am_cv_proto_iconv+set}" = set; then |
| 4642 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4643 |
else |
| 4644 |
|
| 4645 |
cat >conftest.$ac_ext <<_ACEOF |
| 4646 |
#line 4646 "configure" |
| 4647 |
#include "confdefs.h" |
| 4648 |
|
| 4649 |
#include <stdlib.h> |
| 4650 |
#include <iconv.h> |
| 4651 |
extern |
| 4652 |
#ifdef __cplusplus |
| 4653 |
"C" |
| 4654 |
#endif |
| 4655 |
#if defined(__STDC__) || defined(__cplusplus) |
| 4656 |
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 4657 |
#else |
| 4658 |
size_t iconv(); |
| 4659 |
#endif |
| 4660 |
|
| 4661 |
int |
| 4662 |
main () |
| 4663 |
{ |
| 4664 |
|
| 4665 |
; |
| 4666 |
return 0; |
| 4667 |
} |
| 4668 |
_ACEOF |
| 4669 |
rm -f conftest.$ac_objext |
| 4670 |
if { (eval echo "$as_me:4670: \"$ac_compile\"") >&5 |
| 4671 |
(eval $ac_compile) 2>&5 |
| 4672 |
ac_status=$? |
| 4673 |
echo "$as_me:4673: \$? = $ac_status" >&5 |
| 4674 |
(exit $ac_status); } && |
| 4675 |
{ ac_try='test -s conftest.$ac_objext' |
| 4676 |
{ (eval echo "$as_me:4676: \"$ac_try\"") >&5 |
| 4677 |
(eval $ac_try) 2>&5 |
| 4678 |
ac_status=$? |
| 4679 |
echo "$as_me:4679: \$? = $ac_status" >&5 |
| 4680 |
(exit $ac_status); }; }; then |
| 4681 |
am_cv_proto_iconv_arg1="" |
| 4682 |
else |
| 4683 |
echo "$as_me: failed program was:" >&5 |
| 4684 |
cat conftest.$ac_ext >&5 |
| 4685 |
am_cv_proto_iconv_arg1="const" |
| 4686 |
fi |
| 4687 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4688 |
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 4689 |
fi |
| 4690 |
|
| 4691 |
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 4692 |
echo "$as_me:4692: result: ${ac_t:- |
| 4693 |
}$am_cv_proto_iconv" >&5 |
| 4694 |
echo "${ECHO_T}${ac_t:- |
| 4695 |
}$am_cv_proto_iconv" >&6 |
| 4696 |
|
| 4697 |
cat >>confdefs.h <<EOF |
| 4698 |
#define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 4699 |
EOF |
| 4700 |
|
| 4701 |
fi |
| 4702 |
|
| 4703 |
echo "$as_me:4703: checking for nl_langinfo and CODESET" >&5 |
| 4704 |
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 4705 |
if test "${am_cv_langinfo_codeset+set}" = set; then |
| 4706 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4707 |
else |
| 4708 |
cat >conftest.$ac_ext <<_ACEOF |
| 4709 |
#line 4709 "configure" |
| 4710 |
#include "confdefs.h" |
| 4711 |
#include <langinfo.h> |
| 4712 |
int |
| 4713 |
main () |
| 4714 |
{ |
| 4715 |
char* cs = nl_langinfo(CODESET); |
| 4716 |
; |
| 4717 |
return 0; |
| 4718 |
} |
| 4719 |
_ACEOF |
| 4720 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4721 |
if { (eval echo "$as_me:4721: \"$ac_link\"") >&5 |
| 4722 |
(eval $ac_link) 2>&5 |
| 4723 |
ac_status=$? |
| 4724 |
echo "$as_me:4724: \$? = $ac_status" >&5 |
| 4725 |
(exit $ac_status); } && |
| 4726 |
{ ac_try='test -s conftest$ac_exeext' |
| 4727 |
{ (eval echo "$as_me:4727: \"$ac_try\"") >&5 |
| 4728 |
(eval $ac_try) 2>&5 |
| 4729 |
ac_status=$? |
| 4730 |
echo "$as_me:4730: \$? = $ac_status" >&5 |
| 4731 |
(exit $ac_status); }; }; then |
| 4732 |
am_cv_langinfo_codeset=yes |
| 4733 |
else |
| 4734 |
echo "$as_me: failed program was:" >&5 |
| 4735 |
cat conftest.$ac_ext >&5 |
| 4736 |
am_cv_langinfo_codeset=no |
| 4737 |
fi |
| 4738 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4739 |
|
| 4740 |
fi |
| 4741 |
echo "$as_me:4741: result: $am_cv_langinfo_codeset" >&5 |
| 4742 |
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
| 4743 |
if test $am_cv_langinfo_codeset = yes; then |
| 4744 |
|
| 4745 |
cat >>confdefs.h <<\EOF |
| 4746 |
#define HAVE_LANGINFO_CODESET 1 |
| 4747 |
EOF |
| 4748 |
|
| 4749 |
fi |
| 4750 |
|
| 4751 |
if test $ac_cv_header_locale_h = yes; then |
| 4752 |
echo "$as_me:4752: checking for LC_MESSAGES" >&5 |
| 4753 |
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
| 4754 |
if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 4755 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4756 |
else |
| 4757 |
cat >conftest.$ac_ext <<_ACEOF |
| 4758 |
#line 4758 "configure" |
| 4759 |
#include "confdefs.h" |
| 4760 |
#include <locale.h> |
| 4761 |
int |
| 4762 |
main () |
| 4763 |
{ |
| 4764 |
return LC_MESSAGES |
| 4765 |
; |
| 4766 |
return 0; |
| 4767 |
} |
| 4768 |
_ACEOF |
| 4769 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4770 |
if { (eval echo "$as_me:4770: \"$ac_link\"") >&5 |
| 4771 |
(eval $ac_link) 2>&5 |
| 4772 |
ac_status=$? |
| 4773 |
echo "$as_me:4773: \$? = $ac_status" >&5 |
| 4774 |
(exit $ac_status); } && |
| 4775 |
{ ac_try='test -s conftest$ac_exeext' |
| 4776 |
{ (eval echo "$as_me:4776: \"$ac_try\"") >&5 |
| 4777 |
(eval $ac_try) 2>&5 |
| 4778 |
ac_status=$? |
| 4779 |
echo "$as_me:4779: \$? = $ac_status" >&5 |
| 4780 |
(exit $ac_status); }; }; then |
| 4781 |
am_cv_val_LC_MESSAGES=yes |
| 4782 |
else |
| 4783 |
echo "$as_me: failed program was:" >&5 |
| 4784 |
cat conftest.$ac_ext >&5 |
| 4785 |
am_cv_val_LC_MESSAGES=no |
| 4786 |
fi |
| 4787 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4788 |
fi |
| 4789 |
echo "$as_me:4789: result: $am_cv_val_LC_MESSAGES" >&5 |
| 4790 |
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
| 4791 |
if test $am_cv_val_LC_MESSAGES = yes; then |
| 4792 |
|
| 4793 |
cat >>confdefs.h <<\EOF |
| 4794 |
#define HAVE_LC_MESSAGES 1 |
| 4795 |
EOF |
| 4796 |
|
| 4797 |
fi |
| 4798 |
fi |
| 4799 |
|
| 4800 |
for ac_prog in bison |
| 4801 |
do |
| 4802 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4803 |
set dummy $ac_prog; ac_word=$2 |
| 4804 |
echo "$as_me:4804: checking for $ac_word" >&5 |
| 4805 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4806 |
if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 4807 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4808 |
else |
| 4809 |
if test -n "$INTLBISON"; then |
| 4810 |
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 4811 |
else |
| 4812 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 4813 |
ac_dummy="$PATH" |
| 4814 |
for ac_dir in $ac_dummy; do |
| 4815 |
IFS=$ac_save_IFS |
| 4816 |
test -z "$ac_dir" && ac_dir=. |
| 4817 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 4818 |
ac_cv_prog_INTLBISON="$ac_prog" |
| 4819 |
echo "$as_me:4819: found $ac_dir/$ac_word" >&5 |
| 4820 |
break |
| 4821 |
done |
| 4822 |
|
| 4823 |
fi |
| 4824 |
fi |
| 4825 |
INTLBISON=$ac_cv_prog_INTLBISON |
| 4826 |
if test -n "$INTLBISON"; then |
| 4827 |
echo "$as_me:4827: result: $INTLBISON" >&5 |
| 4828 |
echo "${ECHO_T}$INTLBISON" >&6 |
| 4829 |
else |
| 4830 |
echo "$as_me:4830: result: no" >&5 |
| 4831 |
echo "${ECHO_T}no" >&6 |
| 4832 |
fi |
| 4833 |
|
| 4834 |
test -n "$INTLBISON" && break |
| 4835 |
done |
| 4836 |
|
| 4837 |
if test -z "$INTLBISON"; then |
| 4838 |
ac_verc_fail=yes |
| 4839 |
else |
| 4840 |
echo "$as_me:4840: checking version of bison" >&5 |
| 4841 |
echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
| 4842 |
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 4843 |
case $ac_prog_version in |
| 4844 |
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 4845 |
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 4846 |
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 4847 |
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 4848 |
esac |
| 4849 |
echo "$as_me:4849: result: $ac_prog_version" >&5 |
| 4850 |
echo "${ECHO_T}$ac_prog_version" >&6 |
| 4851 |
fi |
| 4852 |
if test $ac_verc_fail = yes; then |
| 4853 |
INTLBISON=: |
| 4854 |
fi |
| 4855 |
|
| 4856 |
echo "$as_me:4856: checking whether NLS is requested" >&5 |
| 4857 |
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 4858 |
# Check whether --enable-nls or --disable-nls was given. |
| 4859 |
if test "${enable_nls+set}" = set; then |
| 4860 |
enableval="$enable_nls" |
| 4861 |
USE_NLS=$enableval |
| 4862 |
else |
| 4863 |
USE_NLS=yes |
| 4864 |
fi; |
| 4865 |
echo "$as_me:4865: result: $USE_NLS" >&5 |
| 4866 |
echo "${ECHO_T}$USE_NLS" >&6 |
| 4867 |
|
| 4868 |
BUILD_INCLUDED_LIBINTL=no |
| 4869 |
USE_INCLUDED_LIBINTL=no |
| 4870 |
|
| 4871 |
LIBINTL= |
| 4872 |
LTLIBINTL= |
| 4873 |
POSUB= |
| 4874 |
|
| 4875 |
if test "$USE_NLS" = "yes"; then |
| 4876 |
gt_use_preinstalled_gnugettext=no |
| 4877 |
|
| 4878 |
echo "$as_me:4878: checking whether included gettext is requested" >&5 |
| 4879 |
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
| 4880 |
|
| 4881 |
# Check whether --with-included-gettext or --without-included-gettext was given. |
| 4882 |
if test "${with_included_gettext+set}" = set; then |
| 4883 |
withval="$with_included_gettext" |
| 4884 |
nls_cv_force_use_gnu_gettext=$withval |
| 4885 |
else |
| 4886 |
nls_cv_force_use_gnu_gettext=no |
| 4887 |
fi; |
| 4888 |
echo "$as_me:4888: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 4889 |
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
| 4890 |
|
| 4891 |
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 4892 |
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 4893 |
|
| 4894 |
echo "$as_me:4894: checking for GNU gettext in libc" >&5 |
| 4895 |
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
| 4896 |
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 4897 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4898 |
else |
| 4899 |
cat >conftest.$ac_ext <<_ACEOF |
| 4900 |
#line 4900 "configure" |
| 4901 |
#include "confdefs.h" |
| 4902 |
#include <libintl.h> |
| 4903 |
extern int _nl_msg_cat_cntr; |
| 4904 |
extern int *_nl_domain_bindings; |
| 4905 |
int |
| 4906 |
main () |
| 4907 |
{ |
| 4908 |
bindtextdomain ("", ""); |
| 4909 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 4910 |
; |
| 4911 |
return 0; |
| 4912 |
} |
| 4913 |
_ACEOF |
| 4914 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4915 |
if { (eval echo "$as_me:4915: \"$ac_link\"") >&5 |
| 4916 |
(eval $ac_link) 2>&5 |
| 4917 |
ac_status=$? |
| 4918 |
echo "$as_me:4918: \$? = $ac_status" >&5 |
| 4919 |
(exit $ac_status); } && |
| 4920 |
{ ac_try='test -s conftest$ac_exeext' |
| 4921 |
{ (eval echo "$as_me:4921: \"$ac_try\"") >&5 |
| 4922 |
(eval $ac_try) 2>&5 |
| 4923 |
ac_status=$? |
| 4924 |
echo "$as_me:4924: \$? = $ac_status" >&5 |
| 4925 |
(exit $ac_status); }; }; then |
| 4926 |
gt_cv_func_gnugettext1_libc=yes |
| 4927 |
else |
| 4928 |
echo "$as_me: failed program was:" >&5 |
| 4929 |
cat conftest.$ac_ext >&5 |
| 4930 |
gt_cv_func_gnugettext1_libc=no |
| 4931 |
fi |
| 4932 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4933 |
fi |
| 4934 |
echo "$as_me:4934: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 4935 |
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 |
| 4936 |
|
| 4937 |
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 4938 |
|
| 4939 |
use_additional=yes |
| 4940 |
|
| 4941 |
acl_save_prefix="$prefix" |
| 4942 |
prefix="$acl_final_prefix" |
| 4943 |
acl_save_exec_prefix="$exec_prefix" |
| 4944 |
exec_prefix="$acl_final_exec_prefix" |
| 4945 |
|
| 4946 |
eval additional_includedir=\"$includedir\" |
| 4947 |
eval additional_libdir=\"$libdir\" |
| 4948 |
|
| 4949 |
exec_prefix="$acl_save_exec_prefix" |
| 4950 |
prefix="$acl_save_prefix" |
| 4951 |
|
| 4952 |
# Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
| 4953 |
if test "${with_libintl_prefix+set}" = set; then |
| 4954 |
withval="$with_libintl_prefix" |
| 4955 |
|
| 4956 |
if test "X$withval" = "Xno"; then |
| 4957 |
use_additional=no |
| 4958 |
else |
| 4959 |
if test "X$withval" = "X"; then |
| 4960 |
|
| 4961 |
acl_save_prefix="$prefix" |
| 4962 |
prefix="$acl_final_prefix" |
| 4963 |
acl_save_exec_prefix="$exec_prefix" |
| 4964 |
exec_prefix="$acl_final_exec_prefix" |
| 4965 |
|
| 4966 |
eval additional_includedir=\"$includedir\" |
| 4967 |
eval additional_libdir=\"$libdir\" |
| 4968 |
|
| 4969 |
exec_prefix="$acl_save_exec_prefix" |
| 4970 |
prefix="$acl_save_prefix" |
| 4971 |
|
| 4972 |
else |
| 4973 |
additional_includedir="$withval/include" |
| 4974 |
additional_libdir="$withval/lib" |
| 4975 |
fi |
| 4976 |
fi |
| 4977 |
|
| 4978 |
fi; |
| 4979 |
LIBINTL= |
| 4980 |
LTLIBINTL= |
| 4981 |
INCINTL= |
| 4982 |
rpathdirs= |
| 4983 |
ltrpathdirs= |
| 4984 |
names_already_handled= |
| 4985 |
names_next_round='intl ' |
| 4986 |
while test -n "$names_next_round"; do |
| 4987 |
names_this_round="$names_next_round" |
| 4988 |
names_next_round= |
| 4989 |
for name in $names_this_round; do |
| 4990 |
already_handled= |
| 4991 |
for n in $names_already_handled; do |
| 4992 |
if test "$n" = "$name"; then |
| 4993 |
already_handled=yes |
| 4994 |
break |
| 4995 |
fi |
| 4996 |
done |
| 4997 |
if test -z "$already_handled"; then |
| 4998 |
names_already_handled="$names_already_handled $name" |
| 4999 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 5000 |
eval value=\"\$HAVE_LIB$uppername\" |
| 5001 |
if test -n "$value"; then |
| 5002 |
if test "$value" = yes; then |
| 5003 |
eval value=\"\$LIB$uppername\" |
| 5004 |
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 5005 |
eval value=\"\$LTLIB$uppername\" |
| 5006 |
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 5007 |
else |
| 5008 |
: |
| 5009 |
fi |
| 5010 |
else |
| 5011 |
found_dir= |
| 5012 |
found_la= |
| 5013 |
found_so= |
| 5014 |
found_a= |
| 5015 |
if test $use_additional = yes; then |
| 5016 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 5017 |
found_dir="$additional_libdir" |
| 5018 |
found_so="$additional_libdir/lib$name.$shlibext" |
| 5019 |
if test -f "$additional_libdir/lib$name.la"; then |
| 5020 |
found_la="$additional_libdir/lib$name.la" |
| 5021 |
fi |
| 5022 |
else |
| 5023 |
if test -f "$additional_libdir/lib$name.$libext"; then |
| 5024 |
found_dir="$additional_libdir" |
| 5025 |
found_a="$additional_libdir/lib$name.$libext" |
| 5026 |
if test -f "$additional_libdir/lib$name.la"; then |
| 5027 |
found_la="$additional_libdir/lib$name.la" |
| 5028 |
fi |
| 5029 |
fi |
| 5030 |
fi |
| 5031 |
fi |
| 5032 |
if test "X$found_dir" = "X"; then |
| 5033 |
for x in $LDFLAGS $LTLIBINTL; do |
| 5034 |
|
| 5035 |
acl_save_prefix="$prefix" |
| 5036 |
prefix="$acl_final_prefix" |
| 5037 |
acl_save_exec_prefix="$exec_prefix" |
| 5038 |
exec_prefix="$acl_final_exec_prefix" |
| 5039 |
eval x=\"$x\" |
| 5040 |
exec_prefix="$acl_save_exec_prefix" |
| 5041 |
prefix="$acl_save_prefix" |
| 5042 |
|
| 5043 |
case "$x" in |
| 5044 |
-L*) |
| 5045 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 5046 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 5047 |
found_dir="$dir" |
| 5048 |
found_so="$dir/lib$name.$shlibext" |
| 5049 |
if test -f "$dir/lib$name.la"; then |
| 5050 |
found_la="$dir/lib$name.la" |
| 5051 |
fi |
| 5052 |
else |
| 5053 |
if test -f "$dir/lib$name.$libext"; then |
| 5054 |
found_dir="$dir" |
| 5055 |
found_a="$dir/lib$name.$libext" |
| 5056 |
if test -f "$dir/lib$name.la"; then |
| 5057 |
found_la="$dir/lib$name.la" |
| 5058 |
fi |
| 5059 |
fi |
| 5060 |
fi |
| 5061 |
;; |
| 5062 |
esac |
| 5063 |
if test "X$found_dir" != "X"; then |
| 5064 |
break |
| 5065 |
fi |
| 5066 |
done |
| 5067 |
fi |
| 5068 |
if test "X$found_dir" != "X"; then |
| 5069 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 5070 |
if test "X$found_so" != "X"; then |
| 5071 |
if test "X$found_dir" = "X/usr/lib"; then |
| 5072 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 5073 |
else |
| 5074 |
haveit= |
| 5075 |
for x in $ltrpathdirs; do |
| 5076 |
if test "X$x" = "X$found_dir"; then |
| 5077 |
haveit=yes |
| 5078 |
break |
| 5079 |
fi |
| 5080 |
done |
| 5081 |
if test -z "$haveit"; then |
| 5082 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 5083 |
fi |
| 5084 |
if test "$hardcode_direct" = yes; then |
| 5085 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 5086 |
else |
| 5087 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 5088 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 5089 |
haveit= |
| 5090 |
for x in $rpathdirs; do |
| 5091 |
if test "X$x" = "X$found_dir"; then |
| 5092 |
haveit=yes |
| 5093 |
break |
| 5094 |
fi |
| 5095 |
done |
| 5096 |
if test -z "$haveit"; then |
| 5097 |
rpathdirs="$rpathdirs $found_dir" |
| 5098 |
fi |
| 5099 |
else |
| 5100 |
haveit= |
| 5101 |
for x in $LDFLAGS $LIBINTL; do |
| 5102 |
|
| 5103 |
acl_save_prefix="$prefix" |
| 5104 |
prefix="$acl_final_prefix" |
| 5105 |
acl_save_exec_prefix="$exec_prefix" |
| 5106 |
exec_prefix="$acl_final_exec_prefix" |
| 5107 |
eval x=\"$x\" |
| 5108 |
exec_prefix="$acl_save_exec_prefix" |
| 5109 |
prefix="$acl_save_prefix" |
| 5110 |
|
| 5111 |
if test "X$x" = "X-L$found_dir"; then |
| 5112 |
haveit=yes |
| 5113 |
break |
| 5114 |
fi |
| 5115 |
done |
| 5116 |
if test -z "$haveit"; then |
| 5117 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 5118 |
fi |
| 5119 |
if test "$hardcode_minus_L" != no; then |
| 5120 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 5121 |
else |
| 5122 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 5123 |
fi |
| 5124 |
fi |
| 5125 |
fi |
| 5126 |
fi |
| 5127 |
else |
| 5128 |
if test "X$found_a" != "X"; then |
| 5129 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 5130 |
else |
| 5131 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 5132 |
fi |
| 5133 |
fi |
| 5134 |
additional_includedir= |
| 5135 |
case "$found_dir" in |
| 5136 |
*/lib | */lib/) |
| 5137 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 5138 |
additional_includedir="$basedir/include" |
| 5139 |
;; |
| 5140 |
esac |
| 5141 |
if test "X$additional_includedir" != "X"; then |
| 5142 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 5143 |
haveit= |
| 5144 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 5145 |
if test -n "$GCC"; then |
| 5146 |
case $host_os in |
| 5147 |
linux*) haveit=yes;; |
| 5148 |
esac |
| 5149 |
fi |
| 5150 |
fi |
| 5151 |
if test -z "$haveit"; then |
| 5152 |
for x in $CPPFLAGS $INCINTL; do |
| 5153 |
|
| 5154 |
acl_save_prefix="$prefix" |
| 5155 |
prefix="$acl_final_prefix" |
| 5156 |
acl_save_exec_prefix="$exec_prefix" |
| 5157 |
exec_prefix="$acl_final_exec_prefix" |
| 5158 |
eval x=\"$x\" |
| 5159 |
exec_prefix="$acl_save_exec_prefix" |
| 5160 |
prefix="$acl_save_prefix" |
| 5161 |
|
| 5162 |
if test "X$x" = "X-I$additional_includedir"; then |
| 5163 |
haveit=yes |
| 5164 |
break |
| 5165 |
fi |
| 5166 |
done |
| 5167 |
if test -z "$haveit"; then |
| 5168 |
if test -d "$additional_includedir"; then |
| 5169 |
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 5170 |
fi |
| 5171 |
fi |
| 5172 |
fi |
| 5173 |
fi |
| 5174 |
fi |
| 5175 |
if test -n "$found_la"; then |
| 5176 |
save_libdir="$libdir" |
| 5177 |
case "$found_la" in |
| 5178 |
*/* | *\\*) . "$found_la" ;; |
| 5179 |
*) . "./$found_la" ;; |
| 5180 |
esac |
| 5181 |
libdir="$save_libdir" |
| 5182 |
for dep in $dependency_libs; do |
| 5183 |
case "$dep" in |
| 5184 |
-L*) |
| 5185 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 5186 |
if test "X$additional_libdir" != "X/usr/lib"; then |
| 5187 |
haveit= |
| 5188 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 5189 |
if test -n "$GCC"; then |
| 5190 |
case $host_os in |
| 5191 |
linux*) haveit=yes;; |
| 5192 |
esac |
| 5193 |
fi |
| 5194 |
fi |
| 5195 |
if test -z "$haveit"; then |
| 5196 |
haveit= |
| 5197 |
for x in $LDFLAGS $LIBINTL; do |
| 5198 |
|
| 5199 |
acl_save_prefix="$prefix" |
| 5200 |
prefix="$acl_final_prefix" |
| 5201 |
acl_save_exec_prefix="$exec_prefix" |
| 5202 |
exec_prefix="$acl_final_exec_prefix" |
| 5203 |
eval x=\"$x\" |
| 5204 |
exec_prefix="$acl_save_exec_prefix" |
| 5205 |
prefix="$acl_save_prefix" |
| 5206 |
|
| 5207 |
if test "X$x" = "X-L$additional_libdir"; then |
| 5208 |
haveit=yes |
| 5209 |
break |
| 5210 |
fi |
| 5211 |
done |
| 5212 |
if test -z "$haveit"; then |
| 5213 |
if test -d "$additional_libdir"; then |
| 5214 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 5215 |
fi |
| 5216 |
fi |
| 5217 |
haveit= |
| 5218 |
for x in $LDFLAGS $LTLIBINTL; do |
| 5219 |
|
| 5220 |
acl_save_prefix="$prefix" |
| 5221 |
prefix="$acl_final_prefix" |
| 5222 |
acl_save_exec_prefix="$exec_prefix" |
| 5223 |
exec_prefix="$acl_final_exec_prefix" |
| 5224 |
eval x=\"$x\" |
| 5225 |
exec_prefix="$acl_save_exec_prefix" |
| 5226 |
prefix="$acl_save_prefix" |
| 5227 |
|
| 5228 |
if test "X$x" = "X-L$additional_libdir"; then |
| 5229 |
haveit=yes |
| 5230 |
break |
| 5231 |
fi |
| 5232 |
done |
| 5233 |
if test -z "$haveit"; then |
| 5234 |
if test -d "$additional_libdir"; then |
| 5235 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 5236 |
fi |
| 5237 |
fi |
| 5238 |
fi |
| 5239 |
fi |
| 5240 |
;; |
| 5241 |
-R*) |
| 5242 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 5243 |
haveit= |
| 5244 |
for x in $rpathdirs; do |
| 5245 |
if test "X$x" = "X$dir"; then |
| 5246 |
haveit=yes |
| 5247 |
break |
| 5248 |
fi |
| 5249 |
done |
| 5250 |
if test -z "$haveit"; then |
| 5251 |
rpathdirs="$rpathdirs $dir" |
| 5252 |
fi |
| 5253 |
haveit= |
| 5254 |
for x in $ltrpathdirs; do |
| 5255 |
if test "X$x" = "X$dir"; then |
| 5256 |
haveit=yes |
| 5257 |
break |
| 5258 |
fi |
| 5259 |
done |
| 5260 |
if test -z "$haveit"; then |
| 5261 |
ltrpathdirs="$ltrpathdirs $dir" |
| 5262 |
fi |
| 5263 |
;; |
| 5264 |
-l*) |
| 5265 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 5266 |
;; |
| 5267 |
*.la) |
| 5268 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 5269 |
;; |
| 5270 |
*) |
| 5271 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 5272 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 5273 |
;; |
| 5274 |
esac |
| 5275 |
done |
| 5276 |
fi |
| 5277 |
else |
| 5278 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 5279 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 5280 |
fi |
| 5281 |
fi |
| 5282 |
fi |
| 5283 |
done |
| 5284 |
done |
| 5285 |
if test "X$rpathdirs" != "X"; then |
| 5286 |
if test -n "$hardcode_libdir_separator"; then |
| 5287 |
alldirs= |
| 5288 |
for found_dir in $rpathdirs; do |
| 5289 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 5290 |
done |
| 5291 |
acl_save_libdir="$libdir" |
| 5292 |
libdir="$alldirs" |
| 5293 |
eval flag=\"$hardcode_libdir_flag_spec\" |
| 5294 |
libdir="$acl_save_libdir" |
| 5295 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 5296 |
else |
| 5297 |
for found_dir in $rpathdirs; do |
| 5298 |
acl_save_libdir="$libdir" |
| 5299 |
libdir="$found_dir" |
| 5300 |
eval flag=\"$hardcode_libdir_flag_spec\" |
| 5301 |
libdir="$acl_save_libdir" |
| 5302 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 5303 |
done |
| 5304 |
fi |
| 5305 |
fi |
| 5306 |
if test "X$ltrpathdirs" != "X"; then |
| 5307 |
for found_dir in $ltrpathdirs; do |
| 5308 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 5309 |
done |
| 5310 |
fi |
| 5311 |
|
| 5312 |
echo "$as_me:5312: checking for GNU gettext in libintl" >&5 |
| 5313 |
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
| 5314 |
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 5315 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5316 |
else |
| 5317 |
gt_save_CPPFLAGS="$CPPFLAGS" |
| 5318 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
| 5319 |
gt_save_LIBS="$LIBS" |
| 5320 |
LIBS="$LIBS $LIBINTL" |
| 5321 |
cat >conftest.$ac_ext <<_ACEOF |
| 5322 |
#line 5322 "configure" |
| 5323 |
#include "confdefs.h" |
| 5324 |
#include <libintl.h> |
| 5325 |
extern int _nl_msg_cat_cntr; |
| 5326 |
extern |
| 5327 |
#ifdef __cplusplus |
| 5328 |
"C" |
| 5329 |
#endif |
| 5330 |
const char *_nl_expand_alias (); |
| 5331 |
int |
| 5332 |
main () |
| 5333 |
{ |
| 5334 |
bindtextdomain ("", ""); |
| 5335 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 5336 |
; |
| 5337 |
return 0; |
| 5338 |
} |
| 5339 |
_ACEOF |
| 5340 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5341 |
if { (eval echo "$as_me:5341: \"$ac_link\"") >&5 |
| 5342 |
(eval $ac_link) 2>&5 |
| 5343 |
ac_status=$? |
| 5344 |
echo "$as_me:5344: \$? = $ac_status" >&5 |
| 5345 |
(exit $ac_status); } && |
| 5346 |
{ ac_try='test -s conftest$ac_exeext' |
| 5347 |
{ (eval echo "$as_me:5347: \"$ac_try\"") >&5 |
| 5348 |
(eval $ac_try) 2>&5 |
| 5349 |
ac_status=$? |
| 5350 |
echo "$as_me:5350: \$? = $ac_status" >&5 |
| 5351 |
(exit $ac_status); }; }; then |
| 5352 |
gt_cv_func_gnugettext1_libintl=yes |
| 5353 |
else |
| 5354 |
echo "$as_me: failed program was:" >&5 |
| 5355 |
cat conftest.$ac_ext >&5 |
| 5356 |
gt_cv_func_gnugettext1_libintl=no |
| 5357 |
fi |
| 5358 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5359 |
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 5360 |
LIBS="$LIBS $LIBICONV" |
| 5361 |
cat >conftest.$ac_ext <<_ACEOF |
| 5362 |
#line 5362 "configure" |
| 5363 |
#include "confdefs.h" |
| 5364 |
#include <libintl.h> |
| 5365 |
extern int _nl_msg_cat_cntr; |
| 5366 |
extern |
| 5367 |
#ifdef __cplusplus |
| 5368 |
"C" |
| 5369 |
#endif |
| 5370 |
const char *_nl_expand_alias (); |
| 5371 |
int |
| 5372 |
main () |
| 5373 |
{ |
| 5374 |
bindtextdomain ("", ""); |
| 5375 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 5376 |
; |
| 5377 |
return 0; |
| 5378 |
} |
| 5379 |
_ACEOF |
| 5380 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5381 |
if { (eval echo "$as_me:5381: \"$ac_link\"") >&5 |
| 5382 |
(eval $ac_link) 2>&5 |
| 5383 |
ac_status=$? |
| 5384 |
echo "$as_me:5384: \$? = $ac_status" >&5 |
| 5385 |
(exit $ac_status); } && |
| 5386 |
{ ac_try='test -s conftest$ac_exeext' |
| 5387 |
{ (eval echo "$as_me:5387: \"$ac_try\"") >&5 |
| 5388 |
(eval $ac_try) 2>&5 |
| 5389 |
ac_status=$? |
| 5390 |
echo "$as_me:5390: \$? = $ac_status" >&5 |
| 5391 |
(exit $ac_status); }; }; then |
| 5392 |
LIBINTL="$LIBINTL $LIBICONV" |
| 5393 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 5394 |
gt_cv_func_gnugettext1_libintl=yes |
| 5395 |
|
| 5396 |
else |
| 5397 |
echo "$as_me: failed program was:" >&5 |
| 5398 |
cat conftest.$ac_ext >&5 |
| 5399 |
fi |
| 5400 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5401 |
fi |
| 5402 |
CPPFLAGS="$gt_save_CPPFLAGS" |
| 5403 |
LIBS="$gt_save_LIBS" |
| 5404 |
fi |
| 5405 |
echo "$as_me:5405: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 5406 |
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 |
| 5407 |
fi |
| 5408 |
|
| 5409 |
if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 5410 |
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 5411 |
&& test "$PACKAGE" != gettext; }; then |
| 5412 |
gt_use_preinstalled_gnugettext=yes |
| 5413 |
else |
| 5414 |
LIBINTL= |
| 5415 |
LTLIBINTL= |
| 5416 |
INCINTL= |
| 5417 |
fi |
| 5418 |
|
| 5419 |
if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 5420 |
nls_cv_use_gnu_gettext=yes |
| 5421 |
fi |
| 5422 |
fi |
| 5423 |
|
| 5424 |
if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 5425 |
INTLOBJS="\$(GETTOBJS)" |
| 5426 |
BUILD_INCLUDED_LIBINTL=yes |
| 5427 |
USE_INCLUDED_LIBINTL=yes |
| 5428 |
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 5429 |
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 5430 |
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
| 5431 |
fi |
| 5432 |
|
| 5433 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 5434 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 5435 |
CATOBJEXT=.gmo |
| 5436 |
fi |
| 5437 |
|
| 5438 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 5439 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 5440 |
|
| 5441 |
cat >>confdefs.h <<\EOF |
| 5442 |
#define ENABLE_NLS 1 |
| 5443 |
EOF |
| 5444 |
|
| 5445 |
else |
| 5446 |
USE_NLS=no |
| 5447 |
fi |
| 5448 |
fi |
| 5449 |
|
| 5450 |
if test "$USE_NLS" = "yes"; then |
| 5451 |
|
| 5452 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 5453 |
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 5454 |
echo "$as_me:5454: checking how to link with libintl" >&5 |
| 5455 |
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 |
| 5456 |
echo "$as_me:5456: result: $LIBINTL" >&5 |
| 5457 |
echo "${ECHO_T}$LIBINTL" >&6 |
| 5458 |
|
| 5459 |
for element in $INCINTL; do |
| 5460 |
haveit= |
| 5461 |
for x in $CPPFLAGS; do |
| 5462 |
|
| 5463 |
acl_save_prefix="$prefix" |
| 5464 |
prefix="$acl_final_prefix" |
| 5465 |
acl_save_exec_prefix="$exec_prefix" |
| 5466 |
exec_prefix="$acl_final_exec_prefix" |
| 5467 |
eval x=\"$x\" |
| 5468 |
exec_prefix="$acl_save_exec_prefix" |
| 5469 |
prefix="$acl_save_prefix" |
| 5470 |
|
| 5471 |
if test "X$x" = "X$element"; then |
| 5472 |
haveit=yes |
| 5473 |
break |
| 5474 |
fi |
| 5475 |
done |
| 5476 |
if test -z "$haveit"; then |
| 5477 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 5478 |
fi |
| 5479 |
done |
| 5480 |
|
| 5481 |
fi |
| 5482 |
|
| 5483 |
cat >>confdefs.h <<\EOF |
| 5484 |
#define HAVE_GETTEXT 1 |
| 5485 |
EOF |
| 5486 |
|
| 5487 |
cat >>confdefs.h <<\EOF |
| 5488 |
#define HAVE_DCGETTEXT 1 |
| 5489 |
EOF |
| 5490 |
|
| 5491 |
fi |
| 5492 |
|
| 5493 |
POSUB=po |
| 5494 |
fi |
| 5495 |
|
| 5496 |
if test "$PACKAGE" = gettext; then |
| 5497 |
BUILD_INCLUDED_LIBINTL=yes |
| 5498 |
fi |
| 5499 |
|
| 5500 |
nls_cv_header_intl= |
| 5501 |
nls_cv_header_libgt= |
| 5502 |
|
| 5503 |
DATADIRNAME=share |
| 5504 |
|
| 5505 |
INSTOBJEXT=.mo |
| 5506 |
|
| 5507 |
GENCAT=gencat |
| 5508 |
|
| 5509 |
INTL_LIBTOOL_SUFFIX_PREFIX= |
| 5510 |
|
| 5511 |
INTLLIBS="$LIBINTL" |
| 5512 |
|
| 5513 |
if test "x${prefix}" = "xNONE"; then |
| 5514 |
cat >>confdefs.h <<EOF |
| 5515 |
#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" |
| 5516 |
EOF |
| 5517 |
|
| 5518 |
else |
| 5519 |
cat >>confdefs.h <<EOF |
| 5520 |
#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" |
| 5521 |
EOF |
| 5522 |
|
| 5523 |
fi |
| 5524 |
|
| 5525 |
if test "x${datadir}" = 'x${prefix}/share'; then |
| 5526 |
if test "x${prefix}" = "xNONE"; then |
| 5527 |
cat >>confdefs.h <<EOF |
| 5528 |
#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}" |
| 5529 |
EOF |
| 5530 |
|
| 5531 |
else |
| 5532 |
cat >>confdefs.h <<EOF |
| 5533 |
#define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}" |
| 5534 |
EOF |
| 5535 |
|
| 5536 |
fi |
| 5537 |
else |
| 5538 |
cat >>confdefs.h <<EOF |
| 5539 |
#define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}" |
| 5540 |
EOF |
| 5541 |
|
| 5542 |
fi |
| 5543 |
|
| 5544 |
packagesrcdir=`cd $srcdir && pwd` |
| 5545 |
cat >>confdefs.h <<EOF |
| 5546 |
#define PACKAGE_SOURCE_DIR "${packagesrcdir}" |
| 5547 |
EOF |
| 5548 |
|
| 5549 |
ac_ext=cc |
| 5550 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5551 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5552 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5553 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5554 |
if test -n "$ac_tool_prefix"; then |
| 5555 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 5556 |
do |
| 5557 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5558 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5559 |
echo "$as_me:5559: checking for $ac_word" >&5 |
| 5560 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5561 |
if test "${ac_cv_prog_CXX+set}" = set; then |
| 5562 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5563 |
else |
| 5564 |
if test -n "$CXX"; then |
| 5565 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5566 |
else |
| 5567 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 5568 |
ac_dummy="$PATH" |
| 5569 |
for ac_dir in $ac_dummy; do |
| 5570 |
IFS=$ac_save_IFS |
| 5571 |
test -z "$ac_dir" && ac_dir=. |
| 5572 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 5573 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5574 |
echo "$as_me:5574: found $ac_dir/$ac_word" >&5 |
| 5575 |
break |
| 5576 |
done |
| 5577 |
|
| 5578 |
fi |
| 5579 |
fi |
| 5580 |
CXX=$ac_cv_prog_CXX |
| 5581 |
if test -n "$CXX"; then |
| 5582 |
echo "$as_me:5582: result: $CXX" >&5 |
| 5583 |
echo "${ECHO_T}$CXX" >&6 |
| 5584 |
else |
| 5585 |
echo "$as_me:5585: result: no" >&5 |
| 5586 |
echo "${ECHO_T}no" >&6 |
| 5587 |
fi |
| 5588 |
|
| 5589 |
test -n "$CXX" && break |
| 5590 |
done |
| 5591 |
fi |
| 5592 |
if test -z "$CXX"; then |
| 5593 |
ac_ct_CXX=$CXX |
| 5594 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 5595 |
do |
| 5596 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5597 |
set dummy $ac_prog; ac_word=$2 |
| 5598 |
echo "$as_me:5598: checking for $ac_word" >&5 |
| 5599 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5600 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5601 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5602 |
else |
| 5603 |
if test -n "$ac_ct_CXX"; then |
| 5604 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5605 |
else |
| 5606 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 5607 |
ac_dummy="$PATH" |
| 5608 |
for ac_dir in $ac_dummy; do |
| 5609 |
IFS=$ac_save_IFS |
| 5610 |
test -z "$ac_dir" && ac_dir=. |
| 5611 |
$as_executable_p "$ac_dir/$ac_word" || continue |
| 5612 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5613 |
echo "$as_me:5613: found $ac_dir/$ac_word" >&5 |
| 5614 |
break |
| 5615 |
done |
| 5616 |
|
| 5617 |
fi |
| 5618 |
fi |
| 5619 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5620 |
if test -n "$ac_ct_CXX"; then |
| 5621 |
echo "$as_me:5621: result: $ac_ct_CXX" >&5 |
| 5622 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 5623 |
else |
| 5624 |
echo "$as_me:5624: result: no" >&5 |
| 5625 |
echo "${ECHO_T}no" >&6 |
| 5626 |
fi |
| 5627 |
|
| 5628 |
test -n "$ac_ct_CXX" && break |
| 5629 |
done |
| 5630 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 5631 |
|
| 5632 |
CXX=$ac_ct_CXX |
| 5633 |
fi |
| 5634 |
|
| 5635 |
# Provide some information about the compiler. |
| 5636 |
echo "$as_me:5636:" \ |
| 5637 |
"checking for C++ compiler version" >&5 |
| 5638 |
ac_compiler=`set X $ac_compile; echo $2` |
| 5639 |
{ (eval echo "$as_me:5639: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5640 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5641 |
ac_status=$? |
| 5642 |
echo "$as_me:5642: \$? = $ac_status" >&5 |
| 5643 |
(exit $ac_status); } |
| 5644 |
{ (eval echo "$as_me:5644: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5645 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5646 |
ac_status=$? |
| 5647 |
echo "$as_me:5647: \$? = $ac_status" >&5 |
| 5648 |
(exit $ac_status); } |
| 5649 |
{ (eval echo "$as_me:5649: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5650 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5651 |
ac_status=$? |
| 5652 |
echo "$as_me:5652: \$? = $ac_status" >&5 |
| 5653 |
(exit $ac_status); } |
| 5654 |
|
| 5655 |
echo "$as_me:5655: checking whether we are using the GNU C++ compiler" >&5 |
| 5656 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 5657 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5658 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5659 |
else |
| 5660 |
cat >conftest.$ac_ext <<_ACEOF |
| 5661 |
#line 5661 "configure" |
| 5662 |
#include "confdefs.h" |
| 5663 |
|
| 5664 |
int |
| 5665 |
main () |
| 5666 |
{ |
| 5667 |
#ifndef __GNUC__ |
| 5668 |
choke me |
| 5669 |
#endif |
| 5670 |
|
| 5671 |
; |
| 5672 |
return 0; |
| 5673 |
} |
| 5674 |
_ACEOF |
| 5675 |
rm -f conftest.$ac_objext |
| 5676 |
if { (eval echo "$as_me:5676: \"$ac_compile\"") >&5 |
| 5677 |
(eval $ac_compile) 2>&5 |
| 5678 |
ac_status=$? |
| 5679 |
echo "$as_me:5679: \$? = $ac_status" >&5 |
| 5680 |
(exit $ac_status); } && |
| 5681 |
{ ac_try='test -s conftest.$ac_objext' |
| 5682 |
{ (eval echo "$as_me:5682: \"$ac_try\"") >&5 |
| 5683 |
(eval $ac_try) 2>&5 |
| 5684 |
ac_status=$? |
| 5685 |
echo "$as_me:5685: \$? = $ac_status" >&5 |
| 5686 |
(exit $ac_status); }; }; then |
| 5687 |
ac_compiler_gnu=yes |
| 5688 |
else |
| 5689 |
echo "$as_me: failed program was:" >&5 |
| 5690 |
cat conftest.$ac_ext >&5 |
| 5691 |
ac_compiler_gnu=no |
| 5692 |
fi |
| 5693 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 5694 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5695 |
|
| 5696 |
fi |
| 5697 |
echo "$as_me:5697: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5698 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 5699 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5700 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5701 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 5702 |
CXXFLAGS="-g" |
| 5703 |
echo "$as_me:5703: checking whether $CXX accepts -g" >&5 |
| 5704 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 5705 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5706 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5707 |
else |
| 5708 |
cat >conftest.$ac_ext <<_ACEOF |
| 5709 |
#line 5709 "configure" |
| 5710 |
#include "confdefs.h" |
| 5711 |
|
| 5712 |
int |
| 5713 |
main () |
| 5714 |
{ |
| 5715 |
|
| 5716 |
; |
| 5717 |
return 0; |
| 5718 |
} |
| 5719 |
_ACEOF |
| 5720 |
rm -f conftest.$ac_objext |
| 5721 |
if { (eval echo "$as_me:5721: \"$ac_compile\"") >&5 |
| 5722 |
(eval $ac_compile) 2>&5 |
| 5723 |
ac_status=$? |
| 5724 |
echo "$as_me:5724: \$? = $ac_status" >&5 |
| 5725 |
(exit $ac_status); } && |
| 5726 |
{ ac_try='test -s conftest.$ac_objext' |
| 5727 |
{ (eval echo "$as_me:5727: \"$ac_try\"") >&5 |
| 5728 |
(eval $ac_try) 2>&5 |
| 5729 |
ac_status=$? |
| 5730 |
echo "$as_me:5730: \$? = $ac_status" >&5 |
| 5731 |
(exit $ac_status); }; }; then |
| 5732 |
ac_cv_prog_cxx_g=yes |
| 5733 |
else |
| 5734 |
echo "$as_me: failed program was:" >&5 |
| 5735 |
cat conftest.$ac_ext >&5 |
| 5736 |
ac_cv_prog_cxx_g=no |
| 5737 |
fi |
| 5738 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 5739 |
fi |
| 5740 |
echo "$as_me:5740: result: $ac_cv_prog_cxx_g" >&5 |
| 5741 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 5742 |
if test "$ac_test_CXXFLAGS" = set; then |
| 5743 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 5744 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 5745 |
if test "$GXX" = yes; then |
| 5746 |
CXXFLAGS="-g -O2" |
| 5747 |
else |
| 5748 |
CXXFLAGS="-g" |
| 5749 |
fi |
| 5750 |
else |
| 5751 |
if test "$GXX" = yes; then |
| 5752 |
CXXFLAGS="-O2" |
| 5753 |
else |
| 5754 |
CXXFLAGS= |
| 5755 |
fi |
| 5756 |
fi |
| 5757 |
for ac_declaration in \ |
| 5758 |
''\ |
| 5759 |
'#include <stdlib.h>' \ |
| 5760 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 5761 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 5762 |
'extern "C" void exit (int) throw ();' \ |
| 5763 |
'extern "C" void exit (int);' \ |
| 5764 |
'void exit (int);' |
| 5765 |
do |
| 5766 |
cat >conftest.$ac_ext <<_ACEOF |
| 5767 |
#line 5767 "configure" |
| 5768 |
#include "confdefs.h" |
| 5769 |
#include <stdlib.h> |
| 5770 |
$ac_declaration |
| 5771 |
int |
| 5772 |
main () |
| 5773 |
{ |
| 5774 |
exit (42); |
| 5775 |
; |
| 5776 |
return 0; |
| 5777 |
} |
| 5778 |
_ACEOF |
| 5779 |
rm -f conftest.$ac_objext |
| 5780 |
if { (eval echo "$as_me:5780: \"$ac_compile\"") >&5 |
| 5781 |
(eval $ac_compile) 2>&5 |
| 5782 |
ac_status=$? |
| 5783 |
echo "$as_me:5783: \$? = $ac_status" >&5 |
| 5784 |
(exit $ac_status); } && |
| 5785 |
{ ac_try='test -s conftest.$ac_objext' |
| 5786 |
{ (eval echo "$as_me:5786: \"$ac_try\"") >&5 |
| 5787 |
(eval $ac_try) 2>&5 |
| 5788 |
ac_status=$? |
| 5789 |
echo "$as_me:5789: \$? = $ac_status" >&5 |
| 5790 |
(exit $ac_status); }; }; then |
| 5791 |
: |
| 5792 |
else |
| 5793 |
echo "$as_me: failed program was:" >&5 |
| 5794 |
cat conftest.$ac_ext >&5 |
| 5795 |
continue |
| 5796 |
fi |
| 5797 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 5798 |
cat >conftest.$ac_ext <<_ACEOF |
| 5799 |
#line 5799 "configure" |
| 5800 |
#include "confdefs.h" |
| 5801 |
$ac_declaration |
| 5802 |
int |
| 5803 |
main () |
| 5804 |
{ |
| 5805 |
exit (42); |
| 5806 |
; |
| 5807 |
return 0; |
| 5808 |
} |
| 5809 |
_ACEOF |
| 5810 |
rm -f conftest.$ac_objext |
| 5811 |
if { (eval echo "$as_me:5811: \"$ac_compile\"") >&5 |
| 5812 |
(eval $ac_compile) 2>&5 |
| 5813 |
ac_status=$? |
| 5814 |
echo "$as_me:5814: \$? = $ac_status" >&5 |
| 5815 |
(exit $ac_status); } && |
| 5816 |
{ ac_try='test -s conftest.$ac_objext' |
| 5817 |
{ (eval echo "$as_me:5817: \"$ac_try\"") >&5 |
| 5818 |
(eval $ac_try) 2>&5 |
| 5819 |
ac_status=$? |
| 5820 |
echo "$as_me:5820: \$? = $ac_status" >&5 |
| 5821 |
(exit $ac_status); }; }; then |
| 5822 |
break |
| 5823 |
else |
| 5824 |
echo "$as_me: failed program was:" >&5 |
| 5825 |
cat conftest.$ac_ext >&5 |
| 5826 |
fi |
| 5827 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 5828 |
done |
| 5829 |
rm -f conftest* |
| 5830 |
if test -n "$ac_declaration"; then |
| 5831 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 5832 |
echo $ac_declaration >>confdefs.h |
| 5833 |
echo '#endif' >>confdefs.h |
| 5834 |
fi |
| 5835 |
|
| 5836 |
ac_ext=c |
| 5837 |
ac_cpp='$CPP $CPPFLAGS' |
| 5838 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5839 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5840 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5841 |
|
| 5842 |
depcc="$CXX" am_compiler_list= |
| 5843 |
|
| 5844 |
echo "$as_me:5844: checking dependency style of $depcc" >&5 |
| 5845 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 5846 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 5847 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5848 |
else |
| 5849 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5850 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5851 |
# making bogus files that we don't know about and never remove. For |
| 5852 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5853 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 5854 |
# in D'. |
| 5855 |
mkdir conftest.dir |
| 5856 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5857 |
# using a relative directory. |
| 5858 |
cp "$am_depcomp" conftest.dir |
| 5859 |
cd conftest.dir |
| 5860 |
|
| 5861 |
am_cv_CXX_dependencies_compiler_type=none |
| 5862 |
if test "$am_compiler_list" = ""; then |
| 5863 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5864 |
fi |
| 5865 |
for depmode in $am_compiler_list; do |
| 5866 |
# We need to recreate these files for each test, as the compiler may |
| 5867 |
# overwrite some of them when testing with obscure command lines. |
| 5868 |
# This happens at least with the AIX C compiler. |
| 5869 |
echo '#include "conftest.h"' > conftest.c |
| 5870 |
echo 'int i;' > conftest.h |
| 5871 |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 5872 |
|
| 5873 |
case $depmode in |
| 5874 |
nosideeffect) |
| 5875 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 5876 |
# only be used when explicitly requested |
| 5877 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5878 |
continue |
| 5879 |
else |
| 5880 |
break |
| 5881 |
fi |
| 5882 |
;; |
| 5883 |
none) break ;; |
| 5884 |
esac |
| 5885 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5886 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5887 |
# handle `-M -o', and we need to detect this. |
| 5888 |
if depmode=$depmode \ |
| 5889 |
source=conftest.c object=conftest.o \ |
| 5890 |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 5891 |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 5892 |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 5893 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5894 |
am_cv_CXX_dependencies_compiler_type=$depmode |
| 5895 |
break |
| 5896 |
fi |
| 5897 |
done |
| 5898 |
|
| 5899 |
cd .. |
| 5900 |
rm -rf conftest.dir |
| 5901 |
else |
| 5902 |
am_cv_CXX_dependencies_compiler_type=none |
| 5903 |
fi |
| 5904 |
|
| 5905 |
fi |
| 5906 |
echo "$as_me:5906: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5907 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 5908 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5909 |
|
| 5910 |
# Check whether --enable-glibtest or --disable-glibtest was given. |
| 5911 |
if test "${enable_glibtest+set}" = set; then |
| 5912 |
enableval="$enable_glibtest" |
| 5913 |
|
| 5914 |
else |
| 5915 |
enable_glibtest=yes |
| 5916 |
fi; |
| 5917 |
|
| 5918 |
pkg_config_args=glib-2.0 |
| 5919 |
for module in . gobject |
| 5920 |
do |
| 5921 |
case "$module" in |
| 5922 |
gmodule) |
| 5923 |
pkg_config_args="$pkg_config_args gmodule-2.0" |
| 5924 |
;; |
| 5925 |
gobject) |
| 5926 |
pkg_config_args="$pkg_config_args gobject-2.0" |
| 5927 |
;; |
| 5928 |
gthread) |
| 5929 |
pkg_config_args="$pkg_config_args gthread-2.0" |
| 5930 |
;; |
| 5931 |
esac |
| 5932 |
done |
| 5933 |
|
| 5934 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 5935 |
set dummy pkg-config; ac_word=$2 |
| 5936 |
echo "$as_me:5936: checking for $ac_word" >&5 |
| 5937 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5938 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 5939 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5940 |
else |
| 5941 |
case $PKG_CONFIG in |
| 5942 |
[\\/]* | ?:[\\/]*) |
| 5943 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5944 |
;; |
| 5945 |
*) |
| 5946 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 5947 |
ac_dummy="$PATH" |
| 5948 |
for ac_dir in $ac_dummy; do |
| 5949 |
IFS=$ac_save_IFS |
| 5950 |
test -z "$ac_dir" && ac_dir=. |
| 5951 |
if $as_executable_p "$ac_dir/$ac_word"; then |
| 5952 |
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
| 5953 |
echo "$as_me:5953: found $ac_dir/$ac_word" >&5 |
| 5954 |
break |
| 5955 |
fi |
| 5956 |
done |
| 5957 |
|
| 5958 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 5959 |
;; |
| 5960 |
esac |
| 5961 |
fi |
| 5962 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5963 |
|
| 5964 |
if test -n "$PKG_CONFIG"; then |
| 5965 |
echo "$as_me:5965: result: $PKG_CONFIG" >&5 |
| 5966 |
echo "${ECHO_T}$PKG_CONFIG" >&6 |
| 5967 |
else |
| 5968 |
echo "$as_me:5968: result: no" >&5 |
| 5969 |
echo "${ECHO_T}no" >&6 |
| 5970 |
fi |
| 5971 |
|
| 5972 |
no_glib="" |
| 5973 |
|
| 5974 |
if test x$PKG_CONFIG != xno ; then |
| 5975 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then |
| 5976 |
: |
| 5977 |
else |
| 5978 |
echo *** pkg-config too old; version 0.7 or better required. |
| 5979 |
no_glib=yes |
| 5980 |
PKG_CONFIG=no |
| 5981 |
fi |
| 5982 |
else |
| 5983 |
no_glib=yes |
| 5984 |
fi |
| 5985 |
|
| 5986 |
min_glib_version=$GLIB_REQUIRED_VERSION |
| 5987 |
echo "$as_me:5987: checking for GLIB - version >= $min_glib_version" >&5 |
| 5988 |
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 |
| 5989 |
|
| 5990 |
if test x$PKG_CONFIG != xno ; then |
| 5991 |
## don't try to run the test against uninstalled libtool libs |
| 5992 |
if $PKG_CONFIG --uninstalled $pkg_config_args; then |
| 5993 |
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" |
| 5994 |
enable_glibtest=no |
| 5995 |
fi |
| 5996 |
|
| 5997 |
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then |
| 5998 |
: |
| 5999 |
else |
| 6000 |
no_glib=yes |
| 6001 |
fi |
| 6002 |
fi |
| 6003 |
|
| 6004 |
if test x"$no_glib" = x ; then |
| 6005 |
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` |
| 6006 |
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` |
| 6007 |
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
| 6008 |
|
| 6009 |
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` |
| 6010 |
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` |
| 6011 |
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 6012 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
| 6013 |
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 6014 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
| 6015 |
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
| 6016 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
| 6017 |
if test "x$enable_glibtest" = "xyes" ; then |
| 6018 |
ac_save_CFLAGS="$CFLAGS" |
| 6019 |
ac_save_LIBS="$LIBS" |
| 6020 |
CFLAGS="$CFLAGS $GLIB_CFLAGS" |
| 6021 |
LIBS="$GLIB_LIBS $LIBS" |
| 6022 |
rm -f conf.glibtest |
| 6023 |
if test "$cross_compiling" = yes; then |
| 6024 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 6025 |
else |
| 6026 |
cat >conftest.$ac_ext <<_ACEOF |
| 6027 |
#line 6027 "configure" |
| 6028 |
#include "confdefs.h" |
| 6029 |
|
| 6030 |
#include <glib.h> |
| 6031 |
#include <stdio.h> |
| 6032 |
#include <stdlib.h> |
| 6033 |
|
| 6034 |
int |
| 6035 |
main () |
| 6036 |
{ |
| 6037 |
int major, minor, micro; |
| 6038 |
char *tmp_version; |
| 6039 |
|
| 6040 |
system ("touch conf.glibtest"); |
| 6041 |
|
| 6042 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 6043 |
tmp_version = g_strdup("$min_glib_version"); |
| 6044 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 6045 |
printf("%s, bad version string\n", "$min_glib_version"); |
| 6046 |
exit(1); |
| 6047 |
} |
| 6048 |
|
| 6049 |
if ((glib_major_version != $glib_config_major_version) || |
| 6050 |
(glib_minor_version != $glib_config_minor_version) || |
| 6051 |
(glib_micro_version != $glib_config_micro_version)) |
| 6052 |
{ |
| 6053 |
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", |
| 6054 |
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, |
| 6055 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 6056 |
printf ("*** was found! If pkg-config was correct, then it is best\n"); |
| 6057 |
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); |
| 6058 |
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
| 6059 |
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
| 6060 |
printf("*** required on your system.\n"); |
| 6061 |
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
| 6062 |
printf("*** to point to the correct configuration files\n"); |
| 6063 |
} |
| 6064 |
else if ((glib_major_version != GLIB_MAJOR_VERSION) || |
| 6065 |
(glib_minor_version != GLIB_MINOR_VERSION) || |
| 6066 |
(glib_micro_version != GLIB_MICRO_VERSION)) |
| 6067 |
{ |
| 6068 |
printf("*** GLIB header files (version %d.%d.%d) do not match\n", |
| 6069 |
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); |
| 6070 |
printf("*** library (version %d.%d.%d)\n", |
| 6071 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 6072 |
} |
| 6073 |
else |
| 6074 |
{ |
| 6075 |
if ((glib_major_version > major) || |
| 6076 |
((glib_major_version == major) && (glib_minor_version > minor)) || |
| 6077 |
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) |
| 6078 |
{ |
| 6079 |
return 0; |
| 6080 |
} |
| 6081 |
else |
| 6082 |
{ |
| 6083 |
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", |
| 6084 |
glib_major_version, glib_minor_version, glib_micro_version); |
| 6085 |
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", |
| 6086 |
major, minor, micro); |
| 6087 |
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
| 6088 |
printf("***\n"); |
| 6089 |
printf("*** If you have already installed a sufficiently new version, this error\n"); |
| 6090 |
printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
| 6091 |
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
| 6092 |
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); |
| 6093 |
printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
| 6094 |
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
| 6095 |
printf("*** so that the correct libraries are found at run-time))\n"); |
| 6096 |
} |
| 6097 |
} |
| 6098 |
return 1; |
| 6099 |
} |
| 6100 |
|
| 6101 |
_ACEOF |
| 6102 |
rm -f conftest$ac_exeext |
| 6103 |
if { (eval echo "$as_me:6103: \"$ac_link\"") >&5 |
| 6104 |
(eval $ac_link) 2>&5 |
| 6105 |
ac_status=$? |
| 6106 |
echo "$as_me:6106: \$? = $ac_status" >&5 |
| 6107 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6108 |
{ (eval echo "$as_me:6108: \"$ac_try\"") >&5 |
| 6109 |
(eval $ac_try) 2>&5 |
| 6110 |
ac_status=$? |
| 6111 |
echo "$as_me:6111: \$? = $ac_status" >&5 |
| 6112 |
(exit $ac_status); }; }; then |
| 6113 |
: |
| 6114 |
else |
| 6115 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 6116 |
echo "$as_me: failed program was:" >&5 |
| 6117 |
cat conftest.$ac_ext >&5 |
| 6118 |
no_glib=yes |
| 6119 |
fi |
| 6120 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6121 |
fi |
| 6122 |
CFLAGS="$ac_save_CFLAGS" |
| 6123 |
LIBS="$ac_save_LIBS" |
| 6124 |
fi |
| 6125 |
fi |
| 6126 |
if test "x$no_glib" = x ; then |
| 6127 |
echo "$as_me:6127: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 |
| 6128 |
echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6 |
| 6129 |
: |
| 6130 |
else |
| 6131 |
echo "$as_me:6131: result: no" >&5 |
| 6132 |
echo "${ECHO_T}no" >&6 |
| 6133 |
if test "$PKG_CONFIG" = "no" ; then |
| 6134 |
echo "*** A new enough version of pkg-config was not found." |
| 6135 |
echo "*** See http://www.freedesktop.org/software/pkgconfig/" |
| 6136 |
else |
| 6137 |
if test -f conf.glibtest ; then |
| 6138 |
: |
| 6139 |
else |
| 6140 |
echo "*** Could not run GLIB test program, checking why..." |
| 6141 |
CFLAGS="$CFLAGS $GLIB_CFLAGS" |
| 6142 |
LIBS="$LIBS $GLIB_LIBS" |
| 6143 |
cat >conftest.$ac_ext <<_ACEOF |
| 6144 |
#line 6144 "configure" |
| 6145 |
#include "confdefs.h" |
| 6146 |
|
| 6147 |
#include <glib.h> |
| 6148 |
#include <stdio.h> |
| 6149 |
|
| 6150 |
int |
| 6151 |
main () |
| 6152 |
{ |
| 6153 |
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); |
| 6154 |
; |
| 6155 |
return 0; |
| 6156 |
} |
| 6157 |
_ACEOF |
| 6158 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6159 |
if { (eval echo "$as_me:6159: \"$ac_link\"") >&5 |
| 6160 |
(eval $ac_link) 2>&5 |
| 6161 |
ac_status=$? |
| 6162 |
echo "$as_me:6162: \$? = $ac_status" >&5 |
| 6163 |
(exit $ac_status); } && |
| 6164 |
{ ac_try='test -s conftest$ac_exeext' |
| 6165 |
{ (eval echo "$as_me:6165: \"$ac_try\"") >&5 |
| 6166 |
(eval $ac_try) 2>&5 |
| 6167 |
ac_status=$? |
| 6168 |
echo "$as_me:6168: \$? = $ac_status" >&5 |
| 6169 |
(exit $ac_status); }; }; then |
| 6170 |
echo "*** The test program compiled, but did not run. This usually means" |
| 6171 |
echo "*** that the run-time linker is not finding GLIB or finding the wrong" |
| 6172 |
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" |
| 6173 |
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 6174 |
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 6175 |
echo "*** is required on your system" |
| 6176 |
echo "***" |
| 6177 |
echo "*** If you have an old version installed, it is best to remove it, although" |
| 6178 |
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
| 6179 |
else |
| 6180 |
echo "$as_me: failed program was:" >&5 |
| 6181 |
cat conftest.$ac_ext >&5 |
| 6182 |
echo "*** The test program failed to compile or link. See the file config.log for the" |
| 6183 |
echo "*** exact error that occured. This usually means GLIB was incorrectly installed" |
| 6184 |
echo "*** or that you have moved GLIB since it was installed. In the latter case, you" |
| 6185 |
echo "*** may want to edit the pkg-config script: $PKG_CONFIG" |
| 6186 |
fi |
| 6187 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6188 |
CFLAGS="$ac_save_CFLAGS" |
| 6189 |
LIBS="$ac_save_LIBS" |
| 6190 |
fi |
| 6191 |
fi |
| 6192 |
GLIB_CFLAGS="" |
| 6193 |
GLIB_LIBS="" |
| 6194 |
GLIB_GENMARSHAL="" |
| 6195 |
GOBJECT_QUERY="" |
| 6196 |
GLIB_MKENUMS="" |
| 6197 |
{ { echo "$as_me:6197: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5 |
| 6198 |
echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;} |
| 6199 |
{ (exit 1); exit 1; }; } |
| 6200 |
fi |
| 6201 |
|
| 6202 |
rm -f conf.glibtest |
| 6203 |
|
| 6204 |
# Check whether --enable-gtktest or --disable-gtktest was given. |
| 6205 |
if test "${enable_gtktest+set}" = set; then |
| 6206 |
enableval="$enable_gtktest" |
| 6207 |
|
| 6208 |
else |
| 6209 |
enable_gtktest=yes |
| 6210 |
fi; |
| 6211 |
|
| 6212 |
pkg_config_args=gtk+-2.0 |
| 6213 |
for module in . |
| 6214 |
do |
| 6215 |
case "$module" in |
| 6216 |
gthread) |
| 6217 |
pkg_config_args="$pkg_config_args gthread-2.0" |
| 6218 |
;; |
| 6219 |
esac |
| 6220 |
done |
| 6221 |
|
| 6222 |
no_gtk="" |
| 6223 |
|
| 6224 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 6225 |
set dummy pkg-config; ac_word=$2 |
| 6226 |
echo "$as_me:6226: checking for $ac_word" >&5 |
| 6227 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6228 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 6229 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6230 |
else |
| 6231 |
case $PKG_CONFIG in |
| 6232 |
[\\/]* | ?:[\\/]*) |
| 6233 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 6234 |
;; |
| 6235 |
*) |
| 6236 |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 6237 |
ac_dummy="$PATH" |
| 6238 |
for ac_dir in $ac_dummy; do |
| 6239 |
IFS=$ac_save_IFS |
| 6240 |
test -z "$ac_dir" && ac_dir=. |
| 6241 |
if $as_executable_p "$ac_dir/$ac_word"; then |
| 6242 |
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
| 6243 |
echo "$as_me:6243: found $ac_dir/$ac_word" >&5 |
| 6244 |
break |
| 6245 |
fi |
| 6246 |
done |
| 6247 |
|
| 6248 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 6249 |
;; |
| 6250 |
esac |
| 6251 |
fi |
| 6252 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 6253 |
|
| 6254 |
if test -n "$PKG_CONFIG"; then |
| 6255 |
echo "$as_me:6255: result: $PKG_CONFIG" >&5 |
| 6256 |
echo "${ECHO_T}$PKG_CONFIG" >&6 |
| 6257 |
else |
| 6258 |
echo "$as_me:6258: result: no" >&5 |
| 6259 |
echo "${ECHO_T}no" >&6 |
| 6260 |
fi |
| 6261 |
|
| 6262 |
if test x$PKG_CONFIG != xno ; then |
| 6263 |
if pkg-config --atleast-pkgconfig-version 0.7 ; then |
| 6264 |
: |
| 6265 |
else |
| 6266 |
echo *** pkg-config too old; version 0.7 or better required. |
| 6267 |
no_gtk=yes |
| 6268 |
PKG_CONFIG=no |
| 6269 |
fi |
| 6270 |
else |
| 6271 |
no_gtk=yes |
| 6272 |
fi |
| 6273 |
|
| 6274 |
min_gtk_version=$GTK_REQUIRED_VERSION |
| 6275 |
echo "$as_me:6275: checking for GTK+ - version >= $min_gtk_version" >&5 |
| 6276 |
echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 |
| 6277 |
|
| 6278 |
if test x$PKG_CONFIG != xno ; then |
| 6279 |
## don't try to run the test against uninstalled libtool libs |
| 6280 |
if $PKG_CONFIG --uninstalled $pkg_config_args; then |
| 6281 |
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" |
| 6282 |
enable_gtktest=no |
| 6283 |
fi |
| 6284 |
|
| 6285 |
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
| 6286 |
: |
| 6287 |
else |
| 6288 |
no_gtk=yes |
| 6289 |
fi |
| 6290 |
fi |
| 6291 |
|
| 6292 |
if test x"$no_gtk" = x ; then |
| 6293 |
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` |
| 6294 |
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` |
| 6295 |
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 6296 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
| 6297 |
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 6298 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
| 6299 |
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 6300 |
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
| 6301 |
if test "x$enable_gtktest" = "xyes" ; then |
| 6302 |
ac_save_CFLAGS="$CFLAGS" |
| 6303 |
ac_save_LIBS="$LIBS" |
| 6304 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 6305 |
LIBS="$GTK_LIBS $LIBS" |
| 6306 |
rm -f conf.gtktest |
| 6307 |
if test "$cross_compiling" = yes; then |
| 6308 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 6309 |
else |
| 6310 |
cat >conftest.$ac_ext <<_ACEOF |
| 6311 |
#line 6311 "configure" |
| 6312 |
#include "confdefs.h" |
| 6313 |
|
| 6314 |
#include <gtk/gtk.h> |
| 6315 |
#include <stdio.h> |
| 6316 |
#include <stdlib.h> |
| 6317 |
|
| 6318 |
int |
| 6319 |
main () |
| 6320 |
{ |
| 6321 |
int major, minor, micro; |
| 6322 |
char *tmp_version; |
| 6323 |
|
| 6324 |
system ("touch conf.gtktest"); |
| 6325 |
|
| 6326 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 6327 |
tmp_version = g_strdup("$min_gtk_version"); |
| 6328 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 6329 |
printf("%s, bad version string\n", "$min_gtk_version"); |
| 6330 |
exit(1); |
| 6331 |
} |
| 6332 |
|
| 6333 |
if ((gtk_major_version != $gtk_config_major_version) || |
| 6334 |
(gtk_minor_version != $gtk_config_minor_version) || |
| 6335 |
(gtk_micro_version != $gtk_config_micro_version)) |
| 6336 |
{ |
| 6337 |
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
| 6338 |
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
| 6339 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 6340 |
printf ("*** was found! If pkg-config was correct, then it is best\n"); |
| 6341 |
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
| 6342 |
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
| 6343 |
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
| 6344 |
printf("*** required on your system.\n"); |
| 6345 |
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
| 6346 |
printf("*** to point to the correct configuration files\n"); |
| 6347 |
} |
| 6348 |
else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
| 6349 |
(gtk_minor_version != GTK_MINOR_VERSION) || |
| 6350 |
(gtk_micro_version != GTK_MICRO_VERSION)) |
| 6351 |
{ |
| 6352 |
printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
| 6353 |
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 6354 |
printf("*** library (version %d.%d.%d)\n", |
| 6355 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 6356 |
} |
| 6357 |
else |
| 6358 |
{ |
| 6359 |
if ((gtk_major_version > major) || |
| 6360 |
((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 6361 |
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
| 6362 |
{ |
| 6363 |
return 0; |
| 6364 |
} |
| 6365 |
else |
| 6366 |
{ |
| 6367 |
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
| 6368 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 6369 |
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
| 6370 |
major, minor, micro); |
| 6371 |
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
| 6372 |
printf("***\n"); |
| 6373 |
printf("*** If you have already installed a sufficiently new version, this error\n"); |
| 6374 |
printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
| 6375 |
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
| 6376 |
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
| 6377 |
printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
| 6378 |
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
| 6379 |
printf("*** so that the correct libraries are found at run-time))\n"); |
| 6380 |
} |
| 6381 |
} |
| 6382 |
return 1; |
| 6383 |
} |
| 6384 |
|
| 6385 |
_ACEOF |
| 6386 |
rm -f conftest$ac_exeext |
| 6387 |
if { (eval echo "$as_me:6387: \"$ac_link\"") >&5 |
| 6388 |
(eval $ac_link) 2>&5 |
| 6389 |
ac_status=$? |
| 6390 |
echo "$as_me:6390: \$? = $ac_status" >&5 |
| 6391 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6392 |
{ (eval echo "$as_me:6392: \"$ac_try\"") >&5 |
| 6393 |
(eval $ac_try) 2>&5 |
| 6394 |
ac_status=$? |
| 6395 |
echo "$as_me:6395: \$? = $ac_status" >&5 |
| 6396 |
(exit $ac_status); }; }; then |
| 6397 |
: |
| 6398 |
else |
| 6399 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 6400 |
echo "$as_me: failed program was:" >&5 |
| 6401 |
cat conftest.$ac_ext >&5 |
| 6402 |
no_gtk=yes |
| 6403 |
fi |
| 6404 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6405 |
fi |
| 6406 |
CFLAGS="$ac_save_CFLAGS" |
| 6407 |
LIBS="$ac_save_LIBS" |
| 6408 |
fi |
| 6409 |
fi |
| 6410 |
if test "x$no_gtk" = x ; then |
| 6411 |
echo "$as_me:6411: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
| 6412 |
echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 |
| 6413 |
: |
| 6414 |
else |
| 6415 |
echo "$as_me:6415: result: no" >&5 |
| 6416 |
echo "${ECHO_T}no" >&6 |
| 6417 |
if test "$PKG_CONFIG" = "no" ; then |
| 6418 |
echo "*** A new enough version of pkg-config was not found." |
| 6419 |
echo "*** See http://pkgconfig.sourceforge.net" |
| 6420 |
else |
| 6421 |
if test -f conf.gtktest ; then |
| 6422 |
: |
| 6423 |
else |
| 6424 |
echo "*** Could not run GTK+ test program, checking why..." |
| 6425 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 6426 |
LIBS="$LIBS $GTK_LIBS" |
| 6427 |
cat >conftest.$ac_ext <<_ACEOF |
| 6428 |
#line 6428 "configure" |
| 6429 |
#include "confdefs.h" |
| 6430 |
|
| 6431 |
#include <gtk/gtk.h> |
| 6432 |
#include <stdio.h> |
| 6433 |
|
| 6434 |
int |
| 6435 |
main () |
| 6436 |
{ |
| 6437 |
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
| 6438 |
; |
| 6439 |
return 0; |
| 6440 |
} |
| 6441 |
_ACEOF |
| 6442 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6443 |
if { (eval echo "$as_me:6443: \"$ac_link\"") >&5 |
| 6444 |
(eval $ac_link) 2>&5 |
| 6445 |
ac_status=$? |
| 6446 |
echo "$as_me:6446: \$? = $ac_status" >&5 |
| 6447 |
(exit $ac_status); } && |
| 6448 |
{ ac_try='test -s conftest$ac_exeext' |
| 6449 |
{ (eval echo "$as_me:6449: \"$ac_try\"") >&5 |
| 6450 |
(eval $ac_try) 2>&5 |
| 6451 |
ac_status=$? |
| 6452 |
echo "$as_me:6452: \$? = $ac_status" >&5 |
| 6453 |
(exit $ac_status); }; }; then |
| 6454 |
echo "*** The test program compiled, but did not run. This usually means" |
| 6455 |
echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
| 6456 |
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" |
| 6457 |
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 6458 |
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 6459 |
echo "*** is required on your system" |
| 6460 |
echo "***" |
| 6461 |
echo "*** If you have an old version installed, it is best to remove it, although" |
| 6462 |
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
| 6463 |
else |
| 6464 |
echo "$as_me: failed program was:" >&5 |
| 6465 |
cat conftest.$ac_ext >&5 |
| 6466 |
echo "*** The test program failed to compile or link. See the file config.log for the" |
| 6467 |
echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" |
| 6468 |
echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" |
| 6469 |
echo "*** may want to edit the pkg-config script: $PKG_CONFIG" |
| 6470 |
fi |
| 6471 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6472 |
CFLAGS="$ac_save_CFLAGS" |
| 6473 |
LIBS="$ac_save_LIBS" |
| 6474 |
fi |
| 6475 |
fi |
| 6476 |
GTK_CFLAGS="" |
| 6477 |
GTK_LIBS="" |
| 6478 |
{ { echo "$as_me:6478: error: Test for GTK failed. See the file 'INSTALL' for help." >&5 |
| 6479 |
echo "$as_me: error: Test for GTK failed. See the file 'INSTALL' for help." >&2;} |
| 6480 |
{ (exit 1); exit 1; }; } |
| 6481 |
fi |
| 6482 |
|
| 6483 |
rm -f conf.gtktest |
| 6484 |
|
| 6485 |
CXXFLAGS="-O2 -Wall" |
| 6486 |
|
| 6487 |
for ac_header in unistd.h |
| 6488 |
do |
| 6489 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6490 |
echo "$as_me:6490: checking for $ac_header" >&5 |
| 6491 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6492 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6493 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6494 |
else |
| 6495 |
cat >conftest.$ac_ext <<_ACEOF |
| 6496 |
#line 6496 "configure" |
| 6497 |
#include "confdefs.h" |
| 6498 |
#include <$ac_header> |
| 6499 |
_ACEOF |
| 6500 |
if { (eval echo "$as_me:6500: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6501 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6502 |
ac_status=$? |
| 6503 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6504 |
rm -f conftest.er1 |
| 6505 |
cat conftest.err >&5 |
| 6506 |
echo "$as_me:6506: \$? = $ac_status" >&5 |
| 6507 |
(exit $ac_status); } >/dev/null; then |
| 6508 |
if test -s conftest.err; then |
| 6509 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6510 |
else |
| 6511 |
ac_cpp_err= |
| 6512 |
fi |
| 6513 |
else |
| 6514 |
ac_cpp_err=yes |
| 6515 |
fi |
| 6516 |
if test -z "$ac_cpp_err"; then |
| 6517 |
eval "$as_ac_Header=yes" |
| 6518 |
else |
| 6519 |
echo "$as_me: failed program was:" >&5 |
| 6520 |
cat conftest.$ac_ext >&5 |
| 6521 |
eval "$as_ac_Header=no" |
| 6522 |
fi |
| 6523 |
rm -f conftest.err conftest.$ac_ext |
| 6524 |
fi |
| 6525 |
echo "$as_me:6525: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6526 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6527 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6528 |
cat >>confdefs.h <<EOF |
| 6529 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6530 |
EOF |
| 6531 |
|
| 6532 |
fi |
| 6533 |
done |
| 6534 |
|
| 6535 |
echo "$as_me:6535: checking for an ANSI C-conforming const" >&5 |
| 6536 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 6537 |
if test "${ac_cv_c_const+set}" = set; then |
| 6538 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6539 |
else |
| 6540 |
cat >conftest.$ac_ext <<_ACEOF |
| 6541 |
#line 6541 "configure" |
| 6542 |
#include "confdefs.h" |
| 6543 |
|
| 6544 |
int |
| 6545 |
main () |
| 6546 |
{ |
| 6547 |
/* FIXME: Include the comments suggested by Paul. */ |
| 6548 |
#ifndef __cplusplus |
| 6549 |
/* Ultrix mips cc rejects this. */ |
| 6550 |
typedef int charset[2]; |
| 6551 |
const charset x; |
| 6552 |
/* SunOS 4.1.1 cc rejects this. */ |
| 6553 |
char const *const *ccp; |
| 6554 |
char **p; |
| 6555 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 6556 |
struct point {int x, y;}; |
| 6557 |
static struct point const zero = {0,0}; |
| 6558 |
/* AIX XL C 1.02.0.0 rejects this. |
| 6559 |
It does not let you subtract one const X* pointer from another in |
| 6560 |
an arm of an if-expression whose if-part is not a constant |
| 6561 |
expression */ |
| 6562 |
const char *g = "string"; |
| 6563 |
ccp = &g + (g ? g-g : 0); |
| 6564 |
/* HPUX 7.0 cc rejects these. */ |
| 6565 |
++ccp; |
| 6566 |
p = (char**) ccp; |
| 6567 |
ccp = (char const *const *) p; |
| 6568 |
{ /* SCO 3.2v4 cc rejects this. */ |
| 6569 |
char *t; |
| 6570 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6571 |
|
| 6572 |
*t++ = 0; |
| 6573 |
} |
| 6574 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6575 |
int x[] = {25, 17}; |
| 6576 |
const int *foo = &x[0]; |
| 6577 |
++foo; |
| 6578 |
} |
| 6579 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6580 |
typedef const int *iptr; |
| 6581 |
iptr p = 0; |
| 6582 |
++p; |
| 6583 |
} |
| 6584 |
{ /* AIX XL C 1.02.0.0 rejects this saying |
| 6585 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6586 |
struct s { int j; const int *ap[3]; }; |
| 6587 |
struct s *b; b->j = 5; |
| 6588 |
} |
| 6589 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6590 |
const int foo = 10; |
| 6591 |
} |
| 6592 |
#endif |
| 6593 |
|
| 6594 |
; |
| 6595 |
return 0; |
| 6596 |
} |
| 6597 |
_ACEOF |
| 6598 |
rm -f conftest.$ac_objext |
| 6599 |
if { (eval echo "$as_me:6599: \"$ac_compile\"") >&5 |
| 6600 |
(eval $ac_compile) 2>&5 |
| 6601 |
ac_status=$? |
| 6602 |
echo "$as_me:6602: \$? = $ac_status" >&5 |
| 6603 |
(exit $ac_status); } && |
| 6604 |
{ ac_try='test -s conftest.$ac_objext' |
| 6605 |
{ (eval echo "$as_me:6605: \"$ac_try\"") >&5 |
| 6606 |
(eval $ac_try) 2>&5 |
| 6607 |
ac_status=$? |
| 6608 |
echo "$as_me:6608: \$? = $ac_status" >&5 |
| 6609 |
(exit $ac_status); }; }; then |
| 6610 |
ac_cv_c_const=yes |
| 6611 |
else |
| 6612 |
echo "$as_me: failed program was:" >&5 |
| 6613 |
cat conftest.$ac_ext >&5 |
| 6614 |
ac_cv_c_const=no |
| 6615 |
fi |
| 6616 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 6617 |
fi |
| 6618 |
echo "$as_me:6618: result: $ac_cv_c_const" >&5 |
| 6619 |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 6620 |
if test $ac_cv_c_const = no; then |
| 6621 |
|
| 6622 |
cat >>confdefs.h <<\EOF |
| 6623 |
#define const |
| 6624 |
EOF |
| 6625 |
|
| 6626 |
fi |
| 6627 |
|
| 6628 |
echo "$as_me:6628: checking for size_t" >&5 |
| 6629 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6630 |
if test "${ac_cv_type_size_t+set}" = set; then |
| 6631 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6632 |
else |
| 6633 |
cat >conftest.$ac_ext <<_ACEOF |
| 6634 |
#line 6634 "configure" |
| 6635 |
#include "confdefs.h" |
| 6636 |
$ac_includes_default |
| 6637 |
int |
| 6638 |
main () |
| 6639 |
{ |
| 6640 |
if ((size_t *) 0) |
| 6641 |
return 0; |
| 6642 |
if (sizeof (size_t)) |
| 6643 |
return 0; |
| 6644 |
; |
| 6645 |
return 0; |
| 6646 |
} |
| 6647 |
_ACEOF |
| 6648 |
rm -f conftest.$ac_objext |
| 6649 |
if { (eval echo "$as_me:6649: \"$ac_compile\"") >&5 |
| 6650 |
(eval $ac_compile) 2>&5 |
| 6651 |
ac_status=$? |
| 6652 |
echo "$as_me:6652: \$? = $ac_status" >&5 |
| 6653 |
(exit $ac_status); } && |
| 6654 |
{ ac_try='test -s conftest.$ac_objext' |
| 6655 |
{ (eval echo "$as_me:6655: \"$ac_try\"") >&5 |
| 6656 |
(eval $ac_try) 2>&5 |
| 6657 |
ac_status=$? |
| 6658 |
echo "$as_me:6658: \$? = $ac_status" >&5 |
| 6659 |
(exit $ac_status); }; }; then |
| 6660 |
ac_cv_type_size_t=yes |
| 6661 |
else |
| 6662 |
echo "$as_me: failed program was:" >&5 |
| 6663 |
cat conftest.$ac_ext >&5 |
| 6664 |
ac_cv_type_size_t=no |
| 6665 |
fi |
| 6666 |
rm -f conftest.$ac_objext conftest.$ac_ext |
| 6667 |
fi |
| 6668 |
echo "$as_me:6668: result: $ac_cv_type_size_t" >&5 |
| 6669 |
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6670 |
if test $ac_cv_type_size_t = yes; then |
| 6671 |
: |
| 6672 |
else |
| 6673 |
|
| 6674 |
cat >>confdefs.h <<EOF |
| 6675 |
#define size_t unsigned |
| 6676 |
EOF |
| 6677 |
|
| 6678 |
fi |
| 6679 |
|
| 6680 |
if test "x$GCC" = "xyes"; then |
| 6681 |
case " $CFLAGS " in |
| 6682 |
*[\ \ ]-Wall[\ \ ]*) ;; |
| 6683 |
*) CFLAGS="$CFLAGS -Wall" ;; |
| 6684 |
esac |
| 6685 |
fi |
| 6686 |
|
| 6687 |
ac_config_files="$ac_config_files m4/Makefile intl/Makefile intl/Makefile Makefile src/Makefile po/Makefile.in" |
| 6688 |
cat >confcache <<\_ACEOF |
| 6689 |
# This file is a shell script that caches the results of configure |
| 6690 |
# tests run on this system so they can be shared between configure |
| 6691 |
# scripts and configure runs, see configure's option --config-cache. |
| 6692 |
# It is not useful on other systems. If it contains results you don't |
| 6693 |
# want to keep, you may remove or edit it. |
| 6694 |
# |
| 6695 |
# config.status only pays attention to the cache file if you give it |
| 6696 |
# the --recheck option to rerun configure. |
| 6697 |
# |
| 6698 |
# `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 6699 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6700 |
# following values. |
| 6701 |
|
| 6702 |
_ACEOF |
| 6703 |
|
| 6704 |
# The following way of writing the cache mishandles newlines in values, |
| 6705 |
# but we know of no workaround that is simple, portable, and efficient. |
| 6706 |
# So, don't put newlines in cache variables' values. |
| 6707 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 6708 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 6709 |
{ |
| 6710 |
(set) 2>&1 | |
| 6711 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6712 |
*ac_space=\ *) |
| 6713 |
# `set' does not quote correctly, so add quotes (double-quote |
| 6714 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 6715 |
sed -n \ |
| 6716 |
"s/'/'\\\\''/g; |
| 6717 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 6718 |
;; |
| 6719 |
*) |
| 6720 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6721 |
sed -n \ |
| 6722 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 6723 |
;; |
| 6724 |
esac; |
| 6725 |
} | |
| 6726 |
sed ' |
| 6727 |
t clear |
| 6728 |
: clear |
| 6729 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6730 |
t end |
| 6731 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6732 |
: end' >>confcache |
| 6733 |
if cmp -s $cache_file confcache; then :; else |
| 6734 |
if test -w $cache_file; then |
| 6735 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 6736 |
cat confcache >$cache_file |
| 6737 |
else |
| 6738 |
echo "not updating unwritable cache $cache_file" |
| 6739 |
fi |
| 6740 |
fi |
| 6741 |
rm -f confcache |
| 6742 |
|
| 6743 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6744 |
# Let make expand exec_prefix. |
| 6745 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6746 |
|
| 6747 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 6748 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 6749 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 6750 |
# (actually we leave an empty line to preserve line numbers). |
| 6751 |
if test "x$srcdir" = x.; then |
| 6752 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 6753 |
s/:*\$(srcdir):*/:/; |
| 6754 |
s/:*\${srcdir}:*/:/; |
| 6755 |
s/:*@srcdir@:*/:/; |
| 6756 |
s/^\([^=]*=[ ]*\):*/\1/; |
| 6757 |
s/:*$//; |
| 6758 |
s/^[^=]*=[ ]*$//; |
| 6759 |
}' |
| 6760 |
fi |
| 6761 |
|
| 6762 |
DEFS=-DHAVE_CONFIG_H |
| 6763 |
|
| 6764 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 6765 |
{ { echo "$as_me:6765: error: conditional \"AMDEP\" was never defined. |
| 6766 |
Usually this means the macro was only invoked conditionally." >&5 |
| 6767 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 6768 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 6769 |
{ (exit 1); exit 1; }; } |
| 6770 |
fi |
| 6771 |
|
| 6772 |
: ${CONFIG_STATUS=./config.status} |
| 6773 |
ac_clean_files_save=$ac_clean_files |
| 6774 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 6775 |
{ echo "$as_me:6775: creating $CONFIG_STATUS" >&5 |
| 6776 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6777 |
cat >$CONFIG_STATUS <<_ACEOF |
| 6778 |
#! $SHELL |
| 6779 |
# Generated automatically by configure. |
| 6780 |
# Run this file to recreate the current configuration. |
| 6781 |
# Compiler output produced by configure, useful for debugging |
| 6782 |
# configure, is in config.log if it exists. |
| 6783 |
|
| 6784 |
debug=false |
| 6785 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 6786 |
ac_cs_invocation="\$0 \$@" |
| 6787 |
|
| 6788 |
_ACEOF |
| 6789 |
|
| 6790 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 6791 |
# Be Bourne compatible |
| 6792 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 6793 |
emulate sh |
| 6794 |
NULLCMD=: |
| 6795 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 6796 |
set -o posix |
| 6797 |
fi |
| 6798 |
|
| 6799 |
# Name of the executable. |
| 6800 |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 6801 |
|
| 6802 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 6803 |
as_expr=expr |
| 6804 |
else |
| 6805 |
as_expr=false |
| 6806 |
fi |
| 6807 |
|
| 6808 |
rm -f conf$$ conf$$.exe conf$$.file |
| 6809 |
echo >conf$$.file |
| 6810 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6811 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 6812 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 6813 |
if test -f conf$$.exe; then |
| 6814 |
# Don't use ln at all; we don't have any links |
| 6815 |
as_ln_s='cp -p' |
| 6816 |
else |
| 6817 |
as_ln_s='ln -s' |
| 6818 |
fi |
| 6819 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6820 |
as_ln_s=ln |
| 6821 |
else |
| 6822 |
as_ln_s='cp -p' |
| 6823 |
fi |
| 6824 |
rm -f conf$$ conf$$.exe conf$$.file |
| 6825 |
|
| 6826 |
as_executable_p="test -f" |
| 6827 |
|
| 6828 |
# Support unset when possible. |
| 6829 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 6830 |
as_unset=unset |
| 6831 |
else |
| 6832 |
as_unset=false |
| 6833 |
fi |
| 6834 |
|
| 6835 |
# NLS nuisances. |
| 6836 |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 6837 |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 6838 |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 6839 |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 6840 |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 6841 |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 6842 |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 6843 |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 6844 |
|
| 6845 |
# IFS |
| 6846 |
# We need space, tab and new line, in precisely that order. |
| 6847 |
as_nl=' |
| 6848 |
' |
| 6849 |
IFS=" $as_nl" |
| 6850 |
|
| 6851 |
# CDPATH. |
| 6852 |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 6853 |
|
| 6854 |
exec 6>&1 |
| 6855 |
|
| 6856 |
_ACEOF |
| 6857 |
|
| 6858 |
# Files that config.status was made for. |
| 6859 |
if test -n "$ac_config_files"; then |
| 6860 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 6861 |
fi |
| 6862 |
|
| 6863 |
if test -n "$ac_config_headers"; then |
| 6864 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 6865 |
fi |
| 6866 |
|
| 6867 |
if test -n "$ac_config_links"; then |
| 6868 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 6869 |
fi |
| 6870 |
|
| 6871 |
if test -n "$ac_config_commands"; then |
| 6872 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 6873 |
fi |
| 6874 |
|
| 6875 |
cat >>$CONFIG_STATUS <<\EOF |
| 6876 |
|
| 6877 |
ac_cs_usage="\ |
| 6878 |
\`$as_me' instantiates files from templates according to the |
| 6879 |
current configuration. |
| 6880 |
|
| 6881 |
Usage: $0 [OPTIONS] [FILE]... |
| 6882 |
|
| 6883 |
-h, --help print this help, then exit |
| 6884 |
-V, --version print version number, then exit |
| 6885 |
-d, --debug don't remove temporary files |
| 6886 |
--recheck update $as_me by reconfiguring in the same conditions |
| 6887 |
--file=FILE[:TEMPLATE] |
| 6888 |
instantiate the configuration file FILE |
| 6889 |
--header=FILE[:TEMPLATE] |
| 6890 |
instantiate the configuration header FILE |
| 6891 |
|
| 6892 |
Configuration files: |
| 6893 |
$config_files |
| 6894 |
|
| 6895 |
Configuration headers: |
| 6896 |
$config_headers |
| 6897 |
|
| 6898 |
Configuration commands: |
| 6899 |
$config_commands |
| 6900 |
|
| 6901 |
Report bugs to <[email protected]>." |
| 6902 |
EOF |
| 6903 |
|
| 6904 |
cat >>$CONFIG_STATUS <<EOF |
| 6905 |
ac_cs_version="\\ |
| 6906 |
config.status |
| 6907 |
configured by $0, generated by GNU Autoconf 2.52, |
| 6908 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 6909 |
|
| 6910 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6911 |
Free Software Foundation, Inc. |
| 6912 |
This config.status script is free software; the Free Software Foundation |
| 6913 |
gives unlimited permission to copy, distribute and modify it." |
| 6914 |
srcdir=$srcdir |
| 6915 |
INSTALL="$INSTALL" |
| 6916 |
EOF |
| 6917 |
|
| 6918 |
cat >>$CONFIG_STATUS <<\EOF |
| 6919 |
# If no file are specified by the user, then we need to provide default |
| 6920 |
# value. By we need to know if files were specified by the user. |
| 6921 |
ac_need_defaults=: |
| 6922 |
while test $# != 0 |
| 6923 |
do |
| 6924 |
case $1 in |
| 6925 |
--*=*) |
| 6926 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 6927 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 6928 |
shift |
| 6929 |
set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 6930 |
shift |
| 6931 |
;; |
| 6932 |
-*);; |
| 6933 |
*) # This is not an option, so the user has probably given explicit |
| 6934 |
# arguments. |
| 6935 |
ac_need_defaults=false;; |
| 6936 |
esac |
| 6937 |
|
| 6938 |
case $1 in |
| 6939 |
# Handling of the options. |
| 6940 |
EOF |
| 6941 |
cat >>$CONFIG_STATUS <<EOF |
| 6942 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6943 |
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 6944 |
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 6945 |
EOF |
| 6946 |
cat >>$CONFIG_STATUS <<\EOF |
| 6947 |
--version | --vers* | -V ) |
| 6948 |
echo "$ac_cs_version"; exit 0 ;; |
| 6949 |
--he | --h) |
| 6950 |
# Conflict between --help and --header |
| 6951 |
{ { echo "$as_me:6951: error: ambiguous option: $1 |
| 6952 |
Try \`$0 --help' for more information." >&5 |
| 6953 |
echo "$as_me: error: ambiguous option: $1 |
| 6954 |
Try \`$0 --help' for more information." >&2;} |
| 6955 |
{ (exit 1); exit 1; }; };; |
| 6956 |
--help | --hel | -h ) |
| 6957 |
echo "$ac_cs_usage"; exit 0 ;; |
| 6958 |
--debug | --d* | -d ) |
| 6959 |
debug=: ;; |
| 6960 |
--file | --fil | --fi | --f ) |
| 6961 |
shift |
| 6962 |
CONFIG_FILES="$CONFIG_FILES $1" |
| 6963 |
ac_need_defaults=false;; |
| 6964 |
--header | --heade | --head | --hea ) |
| 6965 |
shift |
| 6966 |
CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 6967 |
ac_need_defaults=false;; |
| 6968 |
|
| 6969 |
# This is an error. |
| 6970 |
-*) { { echo "$as_me:6970: error: unrecognized option: $1 |
| 6971 |
Try \`$0 --help' for more information." >&5 |
| 6972 |
echo "$as_me: error: unrecognized option: $1 |
| 6973 |
Try \`$0 --help' for more information." >&2;} |
| 6974 |
{ (exit 1); exit 1; }; } ;; |
| 6975 |
|
| 6976 |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 6977 |
|
| 6978 |
esac |
| 6979 |
shift |
| 6980 |
done |
| 6981 |
|
| 6982 |
exec 5>>config.log |
| 6983 |
cat >&5 << _ACEOF |
| 6984 |
|
| 6985 |
## ----------------------- ## |
| 6986 |
## Running config.status. ## |
| 6987 |
## ----------------------- ## |
| 6988 |
|
| 6989 |
This file was extended by $as_me 2.52, executed with |
| 6990 |
CONFIG_FILES = $CONFIG_FILES |
| 6991 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 6992 |
CONFIG_LINKS = $CONFIG_LINKS |
| 6993 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6994 |
> $ac_cs_invocation |
| 6995 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6996 |
|
| 6997 |
_ACEOF |
| 6998 |
EOF |
| 6999 |
|
| 7000 |
cat >>$CONFIG_STATUS <<EOF |
| 7001 |
# |
| 7002 |
# INIT-COMMANDS section. |
| 7003 |
# |
| 7004 |
|
| 7005 |
# Capture the value of obsolete $ALL_LINGUAS because we need it to compute |
| 7006 |
# POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 7007 |
# from automake. |
| 7008 |
eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 7009 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 7010 |
LINGUAS="${LINGUAS-%UNSET%}" |
| 7011 |
|
| 7012 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7013 |
|
| 7014 |
EOF |
| 7015 |
|
| 7016 |
cat >>$CONFIG_STATUS <<\EOF |
| 7017 |
for ac_config_target in $ac_config_targets |
| 7018 |
do |
| 7019 |
case "$ac_config_target" in |
| 7020 |
# Handling of arguments. |
| 7021 |
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 7022 |
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 7023 |
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 7024 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7025 |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 7026 |
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 7027 |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 7028 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7029 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7030 |
*) { { echo "$as_me:7030: error: invalid argument: $ac_config_target" >&5 |
| 7031 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7032 |
{ (exit 1); exit 1; }; };; |
| 7033 |
esac |
| 7034 |
done |
| 7035 |
|
| 7036 |
# If the user did not use the arguments to specify the items to instantiate, |
| 7037 |
# then the envvar interface is used. Set only those that are not. |
| 7038 |
# We use the long form for the default assignment because of an extremely |
| 7039 |
# bizarre bug on SunOS 4.1.3. |
| 7040 |
if $ac_need_defaults; then |
| 7041 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7042 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7043 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7044 |
fi |
| 7045 |
|
| 7046 |
# Create a temporary directory, and hook for its removal unless debugging. |
| 7047 |
$debug || |
| 7048 |
{ |
| 7049 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7050 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7051 |
} |
| 7052 |
|
| 7053 |
# Create a (secure) tmp directory for tmp files. |
| 7054 |
: ${TMPDIR=/tmp} |
| 7055 |
{ |
| 7056 |
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 7057 |
test -n "$tmp" && test -d "$tmp" |
| 7058 |
} || |
| 7059 |
{ |
| 7060 |
tmp=$TMPDIR/cs$$-$RANDOM |
| 7061 |
(umask 077 && mkdir $tmp) |
| 7062 |
} || |
| 7063 |
{ |
| 7064 |
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 7065 |
{ (exit 1); exit 1; } |
| 7066 |
} |
| 7067 |
|
| 7068 |
EOF |
| 7069 |
|
| 7070 |
cat >>$CONFIG_STATUS <<EOF |
| 7071 |
|
| 7072 |
# |
| 7073 |
# CONFIG_FILES section. |
| 7074 |
# |
| 7075 |
|
| 7076 |
# No need to generate the scripts if there are no CONFIG_FILES. |
| 7077 |
# This happens for instance when ./config.status config.h |
| 7078 |
if test -n "\$CONFIG_FILES"; then |
| 7079 |
# Protect against being on the right side of a sed subst in config.status. |
| 7080 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7081 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7082 |
s,@SHELL@,$SHELL,;t t |
| 7083 |
s,@exec_prefix@,$exec_prefix,;t t |
| 7084 |
s,@prefix@,$prefix,;t t |
| 7085 |
s,@program_transform_name@,$program_transform_name,;t t |
| 7086 |
s,@bindir@,$bindir,;t t |
| 7087 |
s,@sbindir@,$sbindir,;t t |
| 7088 |
s,@libexecdir@,$libexecdir,;t t |
| 7089 |
s,@datadir@,$datadir,;t t |
| 7090 |
s,@sysconfdir@,$sysconfdir,;t t |
| 7091 |
s,@sharedstatedir@,$sharedstatedir,;t t |
| 7092 |
s,@localstatedir@,$localstatedir,;t t |
| 7093 |
s,@libdir@,$libdir,;t t |
| 7094 |
s,@includedir@,$includedir,;t t |
| 7095 |
s,@oldincludedir@,$oldincludedir,;t t |
| 7096 |
s,@infodir@,$infodir,;t t |
| 7097 |
s,@mandir@,$mandir,;t t |
| 7098 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7099 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7100 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7101 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7102 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7103 |
s,@build_alias@,$build_alias,;t t |
| 7104 |
s,@host_alias@,$host_alias,;t t |
| 7105 |
s,@target_alias@,$target_alias,;t t |
| 7106 |
s,@ECHO_C@,$ECHO_C,;t t |
| 7107 |
s,@ECHO_N@,$ECHO_N,;t t |
| 7108 |
s,@ECHO_T@,$ECHO_T,;t t |
| 7109 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7110 |
s,@DEFS@,$DEFS,;t t |
| 7111 |
s,@LIBS@,$LIBS,;t t |
| 7112 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7113 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7114 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 7115 |
s,@PACKAGE@,$PACKAGE,;t t |
| 7116 |
s,@VERSION@,$VERSION,;t t |
| 7117 |
s,@ACLOCAL@,$ACLOCAL,;t t |
| 7118 |
s,@AUTOCONF@,$AUTOCONF,;t t |
| 7119 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7120 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7121 |
s,@MAKEINFO@,$MAKEINFO,;t t |
| 7122 |
s,@AMTAR@,$AMTAR,;t t |
| 7123 |
s,@install_sh@,$install_sh,;t t |
| 7124 |
s,@STRIP@,$STRIP,;t t |
| 7125 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 7126 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7127 |
s,@AWK@,$AWK,;t t |
| 7128 |
s,@SET_MAKE@,$SET_MAKE,;t t |
| 7129 |
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 7130 |
s,@MSGFMT@,$MSGFMT,;t t |
| 7131 |
s,@GMSGFMT@,$GMSGFMT,;t t |
| 7132 |
s,@XGETTEXT@,$XGETTEXT,;t t |
| 7133 |
s,@MSGMERGE@,$MSGMERGE,;t t |
| 7134 |
s,@CC@,$CC,;t t |
| 7135 |
s,@CFLAGS@,$CFLAGS,;t t |
| 7136 |
s,@LDFLAGS@,$LDFLAGS,;t t |
| 7137 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7138 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7139 |
s,@EXEEXT@,$EXEEXT,;t t |
| 7140 |
s,@OBJEXT@,$OBJEXT,;t t |
| 7141 |
s,@DEPDIR@,$DEPDIR,;t t |
| 7142 |
s,@am__include@,$am__include,;t t |
| 7143 |
s,@am__quote@,$am__quote,;t t |
| 7144 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7145 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7146 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7147 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 7148 |
s,@build@,$build,;t t |
| 7149 |
s,@build_cpu@,$build_cpu,;t t |
| 7150 |
s,@build_vendor@,$build_vendor,;t t |
| 7151 |
s,@build_os@,$build_os,;t t |
| 7152 |
s,@host@,$host,;t t |
| 7153 |
s,@host_cpu@,$host_cpu,;t t |
| 7154 |
s,@host_vendor@,$host_vendor,;t t |
| 7155 |
s,@host_os@,$host_os,;t t |
| 7156 |
s,@RANLIB@,$RANLIB,;t t |
| 7157 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 7158 |
s,@CPP@,$CPP,;t t |
| 7159 |
s,@ALLOCA@,$ALLOCA,;t t |
| 7160 |
s,@GLIBC21@,$GLIBC21,;t t |
| 7161 |
s,@LIBICONV@,$LIBICONV,;t t |
| 7162 |
s,@LTLIBICONV@,$LTLIBICONV,;t t |
| 7163 |
s,@INTLBISON@,$INTLBISON,;t t |
| 7164 |
s,@USE_NLS@,$USE_NLS,;t t |
| 7165 |
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t |
| 7166 |
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
| 7167 |
s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 7168 |
s,@INTLOBJS@,$INTLOBJS,;t t |
| 7169 |
s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 7170 |
s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 7171 |
s,@GENCAT@,$GENCAT,;t t |
| 7172 |
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
| 7173 |
s,@INTLLIBS@,$INTLLIBS,;t t |
| 7174 |
s,@LIBINTL@,$LIBINTL,;t t |
| 7175 |
s,@LTLIBINTL@,$LTLIBINTL,;t t |
| 7176 |
s,@POSUB@,$POSUB,;t t |
| 7177 |
s,@CXX@,$CXX,;t t |
| 7178 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 7179 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 7180 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 7181 |
s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 7182 |
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t |
| 7183 |
s,@GLIB_LIBS@,$GLIB_LIBS,;t t |
| 7184 |
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t |
| 7185 |
s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t |
| 7186 |
s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t |
| 7187 |
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 7188 |
s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 7189 |
CEOF |
| 7190 |
|
| 7191 |
EOF |
| 7192 |
|
| 7193 |
cat >>$CONFIG_STATUS <<\EOF |
| 7194 |
# Split the substitutions into bite-sized pieces for seds with |
| 7195 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 7196 |
ac_max_sed_lines=48 |
| 7197 |
ac_sed_frag=1 # Number of current file. |
| 7198 |
ac_beg=1 # First line for current file. |
| 7199 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7200 |
ac_more_lines=: |
| 7201 |
ac_sed_cmds= |
| 7202 |
while $ac_more_lines; do |
| 7203 |
if test $ac_beg -gt 1; then |
| 7204 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7205 |
else |
| 7206 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7207 |
fi |
| 7208 |
if test ! -s $tmp/subs.frag; then |
| 7209 |
ac_more_lines=false |
| 7210 |
else |
| 7211 |
# The purpose of the label and of the branching condition is to |
| 7212 |
# speed up the sed processing (if there are no `@' at all, there |
| 7213 |
# is no need to browse any of the substitutions). |
| 7214 |
# These are the two extra sed commands mentioned above. |
| 7215 |
(echo ':t |
| 7216 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7217 |
if test -z "$ac_sed_cmds"; then |
| 7218 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7219 |
else |
| 7220 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7221 |
fi |
| 7222 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7223 |
ac_beg=$ac_end |
| 7224 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7225 |
fi |
| 7226 |
done |
| 7227 |
if test -z "$ac_sed_cmds"; then |
| 7228 |
ac_sed_cmds=cat |
| 7229 |
fi |
| 7230 |
fi # test -n "$CONFIG_FILES" |
| 7231 |
|
| 7232 |
EOF |
| 7233 |
cat >>$CONFIG_STATUS <<\EOF |
| 7234 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7235 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7236 |
case $ac_file in |
| 7237 |
- | *:- | *:-:* ) # input from stdin |
| 7238 |
cat >$tmp/stdin |
| 7239 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7240 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7241 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7242 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7243 |
* ) ac_file_in=$ac_file.in ;; |
| 7244 |
esac |
| 7245 |
|
| 7246 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7247 |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7248 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7249 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 7250 |
X"$ac_file" : 'X\(/\)' \| \ |
| 7251 |
. : '\(.\)' 2>/dev/null || |
| 7252 |
echo X"$ac_file" | |
| 7253 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7254 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7255 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 7256 |
/^X\(\/\).*/{ s//\1/; q; } |
| 7257 |
s/.*/./; q'` |
| 7258 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7259 |
{ case "$ac_dir" in |
| 7260 |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7261 |
*) as_incr_dir=.;; |
| 7262 |
esac |
| 7263 |
as_dummy="$ac_dir" |
| 7264 |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7265 |
case $as_mkdir_dir in |
| 7266 |
# Skip DOS drivespec |
| 7267 |
?:) as_incr_dir=$as_mkdir_dir ;; |
| 7268 |
*) |
| 7269 |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7270 |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 7271 |
;; |
| 7272 |
esac |
| 7273 |
done; } |
| 7274 |
|
| 7275 |
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
| 7276 |
# A "../" for each directory in $ac_dir_suffix. |
| 7277 |
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 7278 |
else |
| 7279 |
ac_dir_suffix= ac_dots= |
| 7280 |
fi |
| 7281 |
|
| 7282 |
case $srcdir in |
| 7283 |
.) ac_srcdir=. |
| 7284 |
if test -z "$ac_dots"; then |
| 7285 |
ac_top_srcdir=. |
| 7286 |
else |
| 7287 |
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
| 7288 |
fi ;; |
| 7289 |
[\\/]* | ?:[\\/]* ) |
| 7290 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 7291 |
ac_top_srcdir=$srcdir ;; |
| 7292 |
*) # Relative path. |
| 7293 |
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 7294 |
ac_top_srcdir=$ac_dots$srcdir ;; |
| 7295 |
esac |
| 7296 |
|
| 7297 |
case $INSTALL in |
| 7298 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7299 |
*) ac_INSTALL=$ac_dots$INSTALL ;; |
| 7300 |
esac |
| 7301 |
|
| 7302 |
if test x"$ac_file" != x-; then |
| 7303 |
{ echo "$as_me:7303: creating $ac_file" >&5 |
| 7304 |
echo "$as_me: creating $ac_file" >&6;} |
| 7305 |
rm -f "$ac_file" |
| 7306 |
fi |
| 7307 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7308 |
# use $as_me), people would be surprised to read: |
| 7309 |
# /* config.h. Generated automatically by config.status. */ |
| 7310 |
configure_input="Generated automatically from `echo $ac_file_in | |
| 7311 |
sed 's,.*/,,'` by configure." |
| 7312 |
|
| 7313 |
# First look for the input files in the build tree, otherwise in the |
| 7314 |
# src tree. |
| 7315 |
ac_file_inputs=`IFS=: |
| 7316 |
for f in $ac_file_in; do |
| 7317 |
case $f in |
| 7318 |
-) echo $tmp/stdin ;; |
| 7319 |
[\\/$]*) |
| 7320 |
# Absolute (can't be DOS-style, as IFS=:) |
| 7321 |
test -f "$f" || { { echo "$as_me:7321: error: cannot find input file: $f" >&5 |
| 7322 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7323 |
{ (exit 1); exit 1; }; } |
| 7324 |
echo $f;; |
| 7325 |
*) # Relative |
| 7326 |
if test -f "$f"; then |
| 7327 |
# Build tree |
| 7328 |
echo $f |
| 7329 |
elif test -f "$srcdir/$f"; then |
| 7330 |
# Source tree |
| 7331 |
echo $srcdir/$f |
| 7332 |
else |
| 7333 |
# /dev/null tree |
| 7334 |
{ { echo "$as_me:7334: error: cannot find input file: $f" >&5 |
| 7335 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7336 |
{ (exit 1); exit 1; }; } |
| 7337 |
fi;; |
| 7338 |
esac |
| 7339 |
done` || { (exit 1); exit 1; } |
| 7340 |
EOF |
| 7341 |
cat >>$CONFIG_STATUS <<EOF |
| 7342 |
sed "$ac_vpsub |
| 7343 |
$extrasub |
| 7344 |
EOF |
| 7345 |
cat >>$CONFIG_STATUS <<\EOF |
| 7346 |
:t |
| 7347 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7348 |
s,@configure_input@,$configure_input,;t t |
| 7349 |
s,@srcdir@,$ac_srcdir,;t t |
| 7350 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7351 |
s,@INSTALL@,$ac_INSTALL,;t t |
| 7352 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7353 |
rm -f $tmp/stdin |
| 7354 |
if test x"$ac_file" != x-; then |
| 7355 |
mv $tmp/out $ac_file |
| 7356 |
else |
| 7357 |
cat $tmp/out |
| 7358 |
rm -f $tmp/out |
| 7359 |
fi |
| 7360 |
|
| 7361 |
done |
| 7362 |
EOF |
| 7363 |
cat >>$CONFIG_STATUS <<\EOF |
| 7364 |
|
| 7365 |
# |
| 7366 |
# CONFIG_HEADER section. |
| 7367 |
# |
| 7368 |
|
| 7369 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7370 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7371 |
# |
| 7372 |
# ac_d sets the value in "#define NAME VALUE" lines. |
| 7373 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7374 |
ac_dB='[ ].*$,\1#\2' |
| 7375 |
ac_dC=' ' |
| 7376 |
ac_dD=',;t' |
| 7377 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7378 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7379 |
ac_uB='$,\1#\2define\3' |
| 7380 |
ac_uC=' ' |
| 7381 |
ac_uD=',;t' |
| 7382 |
|
| 7383 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 7384 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7385 |
case $ac_file in |
| 7386 |
- | *:- | *:-:* ) # input from stdin |
| 7387 |
cat >$tmp/stdin |
| 7388 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7389 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7390 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7391 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7392 |
* ) ac_file_in=$ac_file.in ;; |
| 7393 |
esac |
| 7394 |
|
| 7395 |
test x"$ac_file" != x- && { echo "$as_me:7395: creating $ac_file" >&5 |
| 7396 |
echo "$as_me: creating $ac_file" >&6;} |
| 7397 |
|
| 7398 |
# First look for the input files in the build tree, otherwise in the |
| 7399 |
# src tree. |
| 7400 |
ac_file_inputs=`IFS=: |
| 7401 |
for f in $ac_file_in; do |
| 7402 |
case $f in |
| 7403 |
-) echo $tmp/stdin ;; |
| 7404 |
[\\/$]*) |
| 7405 |
# Absolute (can't be DOS-style, as IFS=:) |
| 7406 |
test -f "$f" || { { echo "$as_me:7406: error: cannot find input file: $f" >&5 |
| 7407 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7408 |
{ (exit 1); exit 1; }; } |
| 7409 |
echo $f;; |
| 7410 |
*) # Relative |
| 7411 |
if test -f "$f"; then |
| 7412 |
# Build tree |
| 7413 |
echo $f |
| 7414 |
elif test -f "$srcdir/$f"; then |
| 7415 |
# Source tree |
| 7416 |
echo $srcdir/$f |
| 7417 |
else |
| 7418 |
# /dev/null tree |
| 7419 |
{ { echo "$as_me:7419: error: cannot find input file: $f" >&5 |
| 7420 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7421 |
{ (exit 1); exit 1; }; } |
| 7422 |
fi;; |
| 7423 |
esac |
| 7424 |
done` || { (exit 1); exit 1; } |
| 7425 |
# Remove the trailing spaces. |
| 7426 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 7427 |
|
| 7428 |
EOF |
| 7429 |
|
| 7430 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7431 |
# `conftest.undefs', that substitutes the proper values into |
| 7432 |
# config.h.in to produce config.h. The first handles `#define' |
| 7433 |
# templates, and the second `#undef' templates. |
| 7434 |
# And first: Protect against being on the right side of a sed subst in |
| 7435 |
# config.status. Protect against being in an unquoted here document |
| 7436 |
# in config.status. |
| 7437 |
rm -f conftest.defines conftest.undefs |
| 7438 |
# Using a here document instead of a string reduces the quoting nightmare. |
| 7439 |
# Putting comments in sed scripts is not portable. |
| 7440 |
# |
| 7441 |
# `end' is used to avoid that the second main sed command (meant for |
| 7442 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
| 7443 |
# See the Autoconf documentation for `clear'. |
| 7444 |
cat >confdef2sed.sed <<\EOF |
| 7445 |
s/[\\&,]/\\&/g |
| 7446 |
s,[\\$`],\\&,g |
| 7447 |
t clear |
| 7448 |
: clear |
| 7449 |
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
| 7450 |
t end |
| 7451 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7452 |
: end |
| 7453 |
EOF |
| 7454 |
# If some macros were called several times there might be several times |
| 7455 |
# the same #defines, which is useless. Nevertheless, we may not want to |
| 7456 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
| 7457 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7458 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7459 |
rm -f confdef2sed.sed |
| 7460 |
|
| 7461 |
# This sed command replaces #undef with comments. This is necessary, for |
| 7462 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7463 |
# on some systems where configure will not decide to define it. |
| 7464 |
cat >>conftest.undefs <<\EOF |
| 7465 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7466 |
EOF |
| 7467 |
|
| 7468 |
# Break up conftest.defines because some shells have a limit on the size |
| 7469 |
# of here documents, and old seds have small limits too (100 cmds). |
| 7470 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 7471 |
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 7472 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7473 |
echo ' :' >>$CONFIG_STATUS |
| 7474 |
rm -f conftest.tail |
| 7475 |
while grep . conftest.defines >/dev/null |
| 7476 |
do |
| 7477 |
# Write a limited-size here document to $tmp/defines.sed. |
| 7478 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7479 |
# Speed up: don't consider the non `#define' lines. |
| 7480 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7481 |
# Work around the forget-to-reset-the-flag bug. |
| 7482 |
echo 't clr' >>$CONFIG_STATUS |
| 7483 |
echo ': clr' >>$CONFIG_STATUS |
| 7484 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 7485 |
echo 'CEOF |
| 7486 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7487 |
rm -f $tmp/in |
| 7488 |
mv $tmp/out $tmp/in |
| 7489 |
' >>$CONFIG_STATUS |
| 7490 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 7491 |
rm -f conftest.defines |
| 7492 |
mv conftest.tail conftest.defines |
| 7493 |
done |
| 7494 |
rm -f conftest.defines |
| 7495 |
echo ' fi # egrep' >>$CONFIG_STATUS |
| 7496 |
echo >>$CONFIG_STATUS |
| 7497 |
|
| 7498 |
# Break up conftest.undefs because some shells have a limit on the size |
| 7499 |
# of here documents, and old seds have small limits too (100 cmds). |
| 7500 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 7501 |
rm -f conftest.tail |
| 7502 |
while grep . conftest.undefs >/dev/null |
| 7503 |
do |
| 7504 |
# Write a limited-size here document to $tmp/undefs.sed. |
| 7505 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 7506 |
# Speed up: don't consider the non `#undef' |
| 7507 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 7508 |
# Work around the forget-to-reset-the-flag bug. |
| 7509 |
echo 't clr' >>$CONFIG_STATUS |
| 7510 |
echo ': clr' >>$CONFIG_STATUS |
| 7511 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 7512 |
echo 'CEOF |
| 7513 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 7514 |
rm -f $tmp/in |
| 7515 |
mv $tmp/out $tmp/in |
| 7516 |
' >>$CONFIG_STATUS |
| 7517 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 7518 |
rm -f conftest.undefs |
| 7519 |
mv conftest.tail conftest.undefs |
| 7520 |
done |
| 7521 |
rm -f conftest.undefs |
| 7522 |
|
| 7523 |
cat >>$CONFIG_STATUS <<\EOF |
| 7524 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7525 |
# use $as_me), people would be surprised to read: |
| 7526 |
# /* config.h. Generated automatically by config.status. */ |
| 7527 |
if test x"$ac_file" = x-; then |
| 7528 |
echo "/* Generated automatically by configure. */" >$tmp/config.h |
| 7529 |
else |
| 7530 |
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
| 7531 |
fi |
| 7532 |
cat $tmp/in >>$tmp/config.h |
| 7533 |
rm -f $tmp/in |
| 7534 |
if test x"$ac_file" != x-; then |
| 7535 |
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 7536 |
{ echo "$as_me:7536: $ac_file is unchanged" >&5 |
| 7537 |
echo "$as_me: $ac_file is unchanged" >&6;} |
| 7538 |
else |
| 7539 |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7540 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7541 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 7542 |
X"$ac_file" : 'X\(/\)' \| \ |
| 7543 |
. : '\(.\)' 2>/dev/null || |
| 7544 |
echo X"$ac_file" | |
| 7545 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7546 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7547 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 7548 |
/^X\(\/\).*/{ s//\1/; q; } |
| 7549 |
s/.*/./; q'` |
| 7550 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7551 |
{ case "$ac_dir" in |
| 7552 |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7553 |
*) as_incr_dir=.;; |
| 7554 |
esac |
| 7555 |
as_dummy="$ac_dir" |
| 7556 |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7557 |
case $as_mkdir_dir in |
| 7558 |
# Skip DOS drivespec |
| 7559 |
?:) as_incr_dir=$as_mkdir_dir ;; |
| 7560 |
*) |
| 7561 |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7562 |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 7563 |
;; |
| 7564 |
esac |
| 7565 |
done; } |
| 7566 |
|
| 7567 |
fi |
| 7568 |
rm -f $ac_file |
| 7569 |
mv $tmp/config.h $ac_file |
| 7570 |
fi |
| 7571 |
else |
| 7572 |
cat $tmp/config.h |
| 7573 |
rm -f $tmp/config.h |
| 7574 |
fi |
| 7575 |
# Run the commands associated with the file. |
| 7576 |
case $ac_file in |
| 7577 |
config.h ) # update the timestamp |
| 7578 |
echo 'timestamp for config.h' >"./stamp-h1" |
| 7579 |
;; |
| 7580 |
esac |
| 7581 |
done |
| 7582 |
EOF |
| 7583 |
cat >>$CONFIG_STATUS <<\EOF |
| 7584 |
|
| 7585 |
# |
| 7586 |
# CONFIG_COMMANDS section. |
| 7587 |
# |
| 7588 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 7589 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 7590 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7591 |
|
| 7592 |
case $ac_dest in |
| 7593 |
default-1 ) |
| 7594 |
for ac_file in $CONFIG_FILES; do |
| 7595 |
# Support "outfile[:infile[:infile...]]" |
| 7596 |
case "$ac_file" in |
| 7597 |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7598 |
esac |
| 7599 |
# PO directories have a Makefile.in generated from Makefile.in.in. |
| 7600 |
case "$ac_file" in */Makefile.in) |
| 7601 |
# Adjust a relative srcdir. |
| 7602 |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 7603 |
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 7604 |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 7605 |
# In autoconf-2.13 it is called $ac_given_srcdir. |
| 7606 |
# In autoconf-2.50 it is called $srcdir. |
| 7607 |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 7608 |
case "$ac_given_srcdir" in |
| 7609 |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 7610 |
/*) top_srcdir="$ac_given_srcdir" ;; |
| 7611 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7612 |
esac |
| 7613 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 7614 |
rm -f "$ac_dir/POTFILES" |
| 7615 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 7616 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 7617 |
# ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 7618 |
# on $ac_dir but don't depend on user-specified configuration |
| 7619 |
# parameters. |
| 7620 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 7621 |
# The LINGUAS file contains the set of available languages. |
| 7622 |
if test -n "$ALL_LINGUAS"; then |
| 7623 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 7624 |
fi |
| 7625 |
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 7626 |
# Hide the ALL_LINGUAS assigment from automake. |
| 7627 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 7628 |
fi |
| 7629 |
case "$ac_given_srcdir" in |
| 7630 |
.) srcdirpre= ;; |
| 7631 |
*) srcdirpre='$(srcdir)/' ;; |
| 7632 |
esac |
| 7633 |
POFILES= |
| 7634 |
GMOFILES= |
| 7635 |
UPDATEPOFILES= |
| 7636 |
DUMMYPOFILES= |
| 7637 |
for lang in $ALL_LINGUAS; do |
| 7638 |
POFILES="$POFILES $srcdirpre$lang.po" |
| 7639 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 7640 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 7641 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 7642 |
done |
| 7643 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 7644 |
# environment variable. |
| 7645 |
INST_LINGUAS= |
| 7646 |
if test -n "$ALL_LINGUAS"; then |
| 7647 |
for presentlang in $ALL_LINGUAS; do |
| 7648 |
useit=no |
| 7649 |
if test "%UNSET%" != "$LINGUAS"; then |
| 7650 |
desiredlanguages="$LINGUAS" |
| 7651 |
else |
| 7652 |
desiredlanguages="$ALL_LINGUAS" |
| 7653 |
fi |
| 7654 |
for desiredlang in $desiredlanguages; do |
| 7655 |
# Use the presentlang catalog if desiredlang is |
| 7656 |
# a. equal to presentlang, or |
| 7657 |
# b. a variant of presentlang (because in this case, |
| 7658 |
# presentlang can be used as a fallback for messages |
| 7659 |
# which are not translated in the desiredlang catalog). |
| 7660 |
case "$desiredlang" in |
| 7661 |
"$presentlang"*) useit=yes;; |
| 7662 |
esac |
| 7663 |
done |
| 7664 |
if test $useit = yes; then |
| 7665 |
INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 7666 |
fi |
| 7667 |
done |
| 7668 |
fi |
| 7669 |
CATALOGS= |
| 7670 |
if test -n "$INST_LINGUAS"; then |
| 7671 |
for lang in $INST_LINGUAS; do |
| 7672 |
CATALOGS="$CATALOGS $lang.gmo" |
| 7673 |
done |
| 7674 |
fi |
| 7675 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 7676 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 7677 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 7678 |
if test -f "$f"; then |
| 7679 |
case "$f" in |
| 7680 |
*.orig | *.bak | *~) ;; |
| 7681 |
*) cat "$f" >> "$ac_dir/Makefile" ;; |
| 7682 |
esac |
| 7683 |
fi |
| 7684 |
done |
| 7685 |
fi |
| 7686 |
;; |
| 7687 |
esac |
| 7688 |
done ;; |
| 7689 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 7690 |
# Strip MF so we end up with the name of the file. |
| 7691 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 7692 |
if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then |
| 7693 |
dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7694 |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 7695 |
X"$mf" : 'X\(//\)$' \| \ |
| 7696 |
X"$mf" : 'X\(/\)' \| \ |
| 7697 |
. : '\(.\)' 2>/dev/null || |
| 7698 |
echo X"$mf" | |
| 7699 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7700 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7701 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 7702 |
/^X\(\/\).*/{ s//\1/; q; } |
| 7703 |
s/.*/./; q'` |
| 7704 |
else |
| 7705 |
continue |
| 7706 |
fi |
| 7707 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 7708 |
# Extract the definition of DEP_FILES from the Makefile without |
| 7709 |
# running `make'. |
| 7710 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 7711 |
test -z "$DEPDIR" && continue |
| 7712 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 7713 |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 7714 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 7715 |
# We invoke sed twice because it is the simplest approach to |
| 7716 |
# changing $(DEPDIR) to its actual value in the expansion. |
| 7717 |
for file in `sed -n -e ' |
| 7718 |
/^DEP_FILES = .*\\\\$/ { |
| 7719 |
s/^DEP_FILES = // |
| 7720 |
:loop |
| 7721 |
s/\\\\$// |
| 7722 |
p |
| 7723 |
n |
| 7724 |
/\\\\$/ b loop |
| 7725 |
p |
| 7726 |
} |
| 7727 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 7728 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 7729 |
# Make sure the directory exists. |
| 7730 |
test -f "$dirpart/$file" && continue |
| 7731 |
fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7732 |
X"$file" : 'X\(//\)[^/]' \| \ |
| 7733 |
X"$file" : 'X\(//\)$' \| \ |
| 7734 |
X"$file" : 'X\(/\)' \| \ |
| 7735 |
. : '\(.\)' 2>/dev/null || |
| 7736 |
echo X"$file" | |
| 7737 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7738 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7739 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 7740 |
/^X\(\/\).*/{ s//\1/; q; } |
| 7741 |
s/.*/./; q'` |
| 7742 |
{ case $dirpart/$fdir in |
| 7743 |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7744 |
*) as_incr_dir=.;; |
| 7745 |
esac |
| 7746 |
as_dummy=$dirpart/$fdir |
| 7747 |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7748 |
case $as_mkdir_dir in |
| 7749 |
# Skip DOS drivespec |
| 7750 |
?:) as_incr_dir=$as_mkdir_dir ;; |
| 7751 |
*) |
| 7752 |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7753 |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 7754 |
;; |
| 7755 |
esac |
| 7756 |
done; } |
| 7757 |
|
| 7758 |
# echo "creating $dirpart/$file" |
| 7759 |
echo '# dummy' > "$dirpart/$file" |
| 7760 |
done |
| 7761 |
done |
| 7762 |
;; |
| 7763 |
esac |
| 7764 |
done |
| 7765 |
EOF |
| 7766 |
|
| 7767 |
cat >>$CONFIG_STATUS <<\EOF |
| 7768 |
|
| 7769 |
{ (exit 0); exit 0; } |
| 7770 |
EOF |
| 7771 |
chmod +x $CONFIG_STATUS |
| 7772 |
ac_clean_files=$ac_clean_files_save |
| 7773 |
|
| 7774 |
# configure is writing to config.log, and then calls config.status. |
| 7775 |
# config.status does its own redirection, appending to config.log. |
| 7776 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 7777 |
# by configure, so config.status won't be able to write to it; its |
| 7778 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 7779 |
# effectively closing config.log, so it can be properly (re)opened and |
| 7780 |
# appended to by config.status. When coming back to configure, we |
| 7781 |
# need to make the FD available again. |
| 7782 |
if test "$no_create" != yes; then |
| 7783 |
ac_cs_success=: |
| 7784 |
exec 5>/dev/null |
| 7785 |
$SHELL $CONFIG_STATUS || ac_cs_success=false |
| 7786 |
exec 5>>config.log |
| 7787 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7788 |
# would make configure fail if this is the last instruction. |
| 7789 |
$ac_cs_success || { (exit 1); exit 1; } |
| 7790 |
fi |
| 7791 |
|