1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-x use the X Window System" 16ac_help="$ac_help 17 --disable-nls do not use Native Language Support" 18ac_help="$ac_help 19 --with-included-gettext use the GNU gettext library included here" 20ac_help="$ac_help 21 --with-catgets use catgets functions if available" 22ac_help="$ac_help 23 --enable-scorefile=file Enables saving of high score 24" 25 26# Initialize some variables set by options. 27# The variables have the same names as the options, with 28# dashes changed to underlines. 29build=NONE 30cache_file=./config.cache 31exec_prefix=NONE 32host=NONE 33no_create= 34nonopt=NONE 35no_recursion= 36prefix=NONE 37program_prefix=NONE 38program_suffix=NONE 39program_transform_name=s,x,x, 40silent= 41site= 42srcdir= 43target=NONE 44verbose= 45x_includes=NONE 46x_libraries=NONE 47bindir='${exec_prefix}/bin' 48sbindir='${exec_prefix}/sbin' 49libexecdir='${exec_prefix}/libexec' 50datadir='${prefix}/share' 51sysconfdir='${prefix}/etc' 52sharedstatedir='${prefix}/com' 53localstatedir='${prefix}/var' 54libdir='${exec_prefix}/lib' 55includedir='${prefix}/include' 56oldincludedir='/usr/include' 57infodir='${prefix}/info' 58mandir='${prefix}/man' 59 60# Initialize some other variables. 61subdirs= 62MFLAGS= MAKEFLAGS= 63SHELL=${CONFIG_SHELL-/bin/sh} 64# Maximum number of lines to put in a shell here document. 65ac_max_here_lines=12 66 67ac_prev= 68for ac_option 69do 70 71 # If the previous option needs an argument, assign it. 72 if test -n "$ac_prev"; then 73 eval "$ac_prev=\$ac_option" 74 ac_prev= 75 continue 76 fi 77 78 case "$ac_option" in 79 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 80 *) ac_optarg= ;; 81 esac 82 83 # Accept the important Cygnus configure options, so we can diagnose typos. 84 85 case "$ac_option" in 86 87 -bindir | --bindir | --bindi | --bind | --bin | --bi) 88 ac_prev=bindir ;; 89 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 90 bindir="$ac_optarg" ;; 91 92 -build | --build | --buil | --bui | --bu) 93 ac_prev=build ;; 94 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 95 build="$ac_optarg" ;; 96 97 -cache-file | --cache-file | --cache-fil | --cache-fi \ 98 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 99 ac_prev=cache_file ;; 100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 102 cache_file="$ac_optarg" ;; 103 104 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 105 ac_prev=datadir ;; 106 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 107 | --da=*) 108 datadir="$ac_optarg" ;; 109 110 -disable-* | --disable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 eval "enable_${ac_feature}=no" ;; 118 119 -enable-* | --enable-*) 120 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 121 # Reject names that are not valid shell variable names. 122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 124 fi 125 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 126 case "$ac_option" in 127 *=*) ;; 128 *) ac_optarg=yes ;; 129 esac 130 eval "enable_${ac_feature}='$ac_optarg'" ;; 131 132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 134 | --exec | --exe | --ex) 135 ac_prev=exec_prefix ;; 136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 138 | --exec=* | --exe=* | --ex=*) 139 exec_prefix="$ac_optarg" ;; 140 141 -gas | --gas | --ga | --g) 142 # Obsolete; use --with-gas. 143 with_gas=yes ;; 144 145 -help | --help | --hel | --he) 146 # Omit some internal or obsolete options to make the list less imposing. 147 # This message is too long to be a string in the A/UX 3.1 sh. 148 cat << EOF 149Usage: configure [options] [host] 150Options: [defaults in brackets after descriptions] 151Configuration: 152 --cache-file=FILE cache test results in FILE 153 --help print this message 154 --no-create do not create output files 155 --quiet, --silent do not print \`checking...' messages 156 --version print the version of autoconf that created configure 157Directory and file names: 158 --prefix=PREFIX install architecture-independent files in PREFIX 159 [$ac_default_prefix] 160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 161 [same as prefix] 162 --bindir=DIR user executables in DIR [EPREFIX/bin] 163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 165 --datadir=DIR read-only architecture-independent data in DIR 166 [PREFIX/share] 167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 168 --sharedstatedir=DIR modifiable architecture-independent data in DIR 169 [PREFIX/com] 170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 171 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 172 --includedir=DIR C header files in DIR [PREFIX/include] 173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 174 --infodir=DIR info documentation in DIR [PREFIX/info] 175 --mandir=DIR man documentation in DIR [PREFIX/man] 176 --srcdir=DIR find the sources in DIR [configure dir or ..] 177 --program-prefix=PREFIX prepend PREFIX to installed program names 178 --program-suffix=SUFFIX append SUFFIX to installed program names 179 --program-transform-name=PROGRAM 180 run sed PROGRAM on installed program names 181EOF 182 cat << EOF 183Host type: 184 --build=BUILD configure for building on BUILD [BUILD=HOST] 185 --host=HOST configure for HOST [guessed] 186 --target=TARGET configure for TARGET [TARGET=HOST] 187Features and packages: 188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 192 --x-includes=DIR X include files are in DIR 193 --x-libraries=DIR X library files are in DIR 194EOF 195 if test -n "$ac_help"; then 196 echo "--enable and --with options recognized:$ac_help" 197 fi 198 exit 0 ;; 199 200 -host | --host | --hos | --ho) 201 ac_prev=host ;; 202 -host=* | --host=* | --hos=* | --ho=*) 203 host="$ac_optarg" ;; 204 205 -includedir | --includedir | --includedi | --included | --include \ 206 | --includ | --inclu | --incl | --inc) 207 ac_prev=includedir ;; 208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 209 | --includ=* | --inclu=* | --incl=* | --inc=*) 210 includedir="$ac_optarg" ;; 211 212 -infodir | --infodir | --infodi | --infod | --info | --inf) 213 ac_prev=infodir ;; 214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 215 infodir="$ac_optarg" ;; 216 217 -libdir | --libdir | --libdi | --libd) 218 ac_prev=libdir ;; 219 -libdir=* | --libdir=* | --libdi=* | --libd=*) 220 libdir="$ac_optarg" ;; 221 222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 223 | --libexe | --libex | --libe) 224 ac_prev=libexecdir ;; 225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 226 | --libexe=* | --libex=* | --libe=*) 227 libexecdir="$ac_optarg" ;; 228 229 -localstatedir | --localstatedir | --localstatedi | --localstated \ 230 | --localstate | --localstat | --localsta | --localst \ 231 | --locals | --local | --loca | --loc | --lo) 232 ac_prev=localstatedir ;; 233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 234 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 235 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 236 localstatedir="$ac_optarg" ;; 237 238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 239 ac_prev=mandir ;; 240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 241 mandir="$ac_optarg" ;; 242 243 -nfp | --nfp | --nf) 244 # Obsolete; use --without-fp. 245 with_fp=no ;; 246 247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 248 | --no-cr | --no-c) 249 no_create=yes ;; 250 251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 253 no_recursion=yes ;; 254 255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 257 | --oldin | --oldi | --old | --ol | --o) 258 ac_prev=oldincludedir ;; 259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 262 oldincludedir="$ac_optarg" ;; 263 264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 265 ac_prev=prefix ;; 266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 267 prefix="$ac_optarg" ;; 268 269 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 270 | --program-pre | --program-pr | --program-p) 271 ac_prev=program_prefix ;; 272 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 274 program_prefix="$ac_optarg" ;; 275 276 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 277 | --program-suf | --program-su | --program-s) 278 ac_prev=program_suffix ;; 279 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 281 program_suffix="$ac_optarg" ;; 282 283 -program-transform-name | --program-transform-name \ 284 | --program-transform-nam | --program-transform-na \ 285 | --program-transform-n | --program-transform- \ 286 | --program-transform | --program-transfor \ 287 | --program-transfo | --program-transf \ 288 | --program-trans | --program-tran \ 289 | --progr-tra | --program-tr | --program-t) 290 ac_prev=program_transform_name ;; 291 -program-transform-name=* | --program-transform-name=* \ 292 | --program-transform-nam=* | --program-transform-na=* \ 293 | --program-transform-n=* | --program-transform-=* \ 294 | --program-transform=* | --program-transfor=* \ 295 | --program-transfo=* | --program-transf=* \ 296 | --program-trans=* | --program-tran=* \ 297 | --progr-tra=* | --program-tr=* | --program-t=*) 298 program_transform_name="$ac_optarg" ;; 299 300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 301 | -silent | --silent | --silen | --sile | --sil) 302 silent=yes ;; 303 304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 305 ac_prev=sbindir ;; 306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 307 | --sbi=* | --sb=*) 308 sbindir="$ac_optarg" ;; 309 310 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 312 | --sharedst | --shareds | --shared | --share | --shar \ 313 | --sha | --sh) 314 ac_prev=sharedstatedir ;; 315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 318 | --sha=* | --sh=*) 319 sharedstatedir="$ac_optarg" ;; 320 321 -site | --site | --sit) 322 ac_prev=site ;; 323 -site=* | --site=* | --sit=*) 324 site="$ac_optarg" ;; 325 326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 327 ac_prev=srcdir ;; 328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 329 srcdir="$ac_optarg" ;; 330 331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 332 | --syscon | --sysco | --sysc | --sys | --sy) 333 ac_prev=sysconfdir ;; 334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 336 sysconfdir="$ac_optarg" ;; 337 338 -target | --target | --targe | --targ | --tar | --ta | --t) 339 ac_prev=target ;; 340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 341 target="$ac_optarg" ;; 342 343 -v | -verbose | --verbose | --verbos | --verbo | --verb) 344 verbose=yes ;; 345 346 -version | --version | --versio | --versi | --vers) 347 echo "configure generated by autoconf version 2.13" 348 exit 0 ;; 349 350 -with-* | --with-*) 351 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 352 # Reject names that are not valid shell variable names. 353 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 355 fi 356 ac_package=`echo $ac_package| sed 's/-/_/g'` 357 case "$ac_option" in 358 *=*) ;; 359 *) ac_optarg=yes ;; 360 esac 361 eval "with_${ac_package}='$ac_optarg'" ;; 362 363 -without-* | --without-*) 364 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 365 # Reject names that are not valid shell variable names. 366 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 368 fi 369 ac_package=`echo $ac_package| sed 's/-/_/g'` 370 eval "with_${ac_package}=no" ;; 371 372 --x) 373 # Obsolete; use --with-x. 374 with_x=yes ;; 375 376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 377 | --x-incl | --x-inc | --x-in | --x-i) 378 ac_prev=x_includes ;; 379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 381 x_includes="$ac_optarg" ;; 382 383 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 385 ac_prev=x_libraries ;; 386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 388 x_libraries="$ac_optarg" ;; 389 390 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 391 ;; 392 393 *) 394 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 395 echo "configure: warning: $ac_option: invalid host type" 1>&2 396 fi 397 if test "x$nonopt" != xNONE; then 398 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 399 fi 400 nonopt="$ac_option" 401 ;; 402 403 esac 404done 405 406if test -n "$ac_prev"; then 407 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 408fi 409 410trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 411 412# File descriptor usage: 413# 0 standard input 414# 1 file creation 415# 2 errors and warnings 416# 3 some systems may open it to /dev/tty 417# 4 used on the Kubota Titan 418# 6 checking for... messages and results 419# 5 compiler messages saved in config.log 420if test "$silent" = yes; then 421 exec 6>/dev/null 422else 423 exec 6>&1 424fi 425exec 5>./config.log 426 427echo "\ 428This file contains any messages produced by compilers while 429running configure, to aid debugging if configure makes a mistake. 430" 1>&5 431 432# Strip out --no-create and --no-recursion so they do not pile up. 433# Also quote any args containing shell metacharacters. 434ac_configure_args= 435for ac_arg 436do 437 case "$ac_arg" in 438 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 439 | --no-cr | --no-c) ;; 440 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 441 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 443 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 444 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 445 esac 446done 447 448# NLS nuisances. 449# Only set these to C if already set. These must not be set unconditionally 450# because not all systems understand e.g. LANG=C (notably SCO). 451# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 452# Non-C LC_CTYPE values break the ctype check. 453if test "${LANG+set}" = set; then LANG=C; export LANG; fi 454if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 455if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 456if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 457 458# confdefs.h avoids OS command line length limits that DEFS can exceed. 459rm -rf conftest* confdefs.h 460# AIX cpp loses on an empty file, so make sure it contains at least a newline. 461echo > confdefs.h 462 463# A filename unique to this package, relative to the directory that 464# configure is in, which we can look for to find out if srcdir is correct. 465ac_unique_file=me.h 466 467# Find the source files, if location was not specified. 468if test -z "$srcdir"; then 469 ac_srcdir_defaulted=yes 470 # Try the directory containing this script, then its parent. 471 ac_prog=$0 472 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 474 srcdir=$ac_confdir 475 if test ! -r $srcdir/$ac_unique_file; then 476 srcdir=.. 477 fi 478else 479 ac_srcdir_defaulted=no 480fi 481if test ! -r $srcdir/$ac_unique_file; then 482 if test "$ac_srcdir_defaulted" = yes; then 483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 484 else 485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 486 fi 487fi 488srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 489 490# Prefer explicitly selected file to automatically selected ones. 491if test -z "$CONFIG_SITE"; then 492 if test "x$prefix" != xNONE; then 493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 494 else 495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 496 fi 497fi 498for ac_site_file in $CONFIG_SITE; do 499 if test -r "$ac_site_file"; then 500 echo "loading site script $ac_site_file" 501 . "$ac_site_file" 502 fi 503done 504 505if test -r "$cache_file"; then 506 echo "loading cache $cache_file" 507 . $cache_file 508else 509 echo "creating cache $cache_file" 510 > $cache_file 511fi 512 513ac_ext=c 514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 515ac_cpp='$CPP $CPPFLAGS' 516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 518cross_compiling=$ac_cv_prog_cc_cross 519 520ac_exeext= 521ac_objext=o 522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 525 ac_n= ac_c=' 526' ac_t=' ' 527 else 528 ac_n=-n ac_c= ac_t= 529 fi 530else 531 ac_n= ac_c='\c' ac_t= 532fi 533 534 535 536ac_aux_dir= 537for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 538 if test -f $ac_dir/install-sh; then 539 ac_aux_dir=$ac_dir 540 ac_install_sh="$ac_aux_dir/install-sh -c" 541 break 542 elif test -f $ac_dir/install.sh; then 543 ac_aux_dir=$ac_dir 544 ac_install_sh="$ac_aux_dir/install.sh -c" 545 break 546 fi 547done 548if test -z "$ac_aux_dir"; then 549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 550fi 551ac_config_guess=$ac_aux_dir/config.guess 552ac_config_sub=$ac_aux_dir/config.sub 553ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 554 555# Find a good install program. We prefer a C program (faster), 556# so one script is as good as another. But avoid the broken or 557# incompatible versions: 558# SysV /etc/install, /usr/sbin/install 559# SunOS /usr/etc/install 560# IRIX /sbin/install 561# AIX /bin/install 562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 563# AFS /usr/afsws/bin/install, which mishandles nonexistent args 564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 565# ./install, which can be erroneously created by make from ./install.sh. 566echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 567echo "configure:568: checking for a BSD compatible install" >&5 568if test -z "$INSTALL"; then 569if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 570 echo $ac_n "(cached) $ac_c" 1>&6 571else 572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 573 for ac_dir in $PATH; do 574 # Account for people who put trailing slashes in PATH elements. 575 case "$ac_dir/" in 576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 577 *) 578 # OSF1 and SCO ODT 3.0 have their own names for install. 579 # Don't use installbsd from OSF since it installs stuff as root 580 # by default. 581 for ac_prog in ginstall scoinst install; do 582 if test -f $ac_dir/$ac_prog; then 583 if test $ac_prog = install && 584 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 585 # AIX install. It has an incompatible calling convention. 586 : 587 else 588 ac_cv_path_install="$ac_dir/$ac_prog -c" 589 break 2 590 fi 591 fi 592 done 593 ;; 594 esac 595 done 596 IFS="$ac_save_IFS" 597 598fi 599 if test "${ac_cv_path_install+set}" = set; then 600 INSTALL="$ac_cv_path_install" 601 else 602 # As a last resort, use the slow shell script. We don't cache a 603 # path for INSTALL within a source directory, because that will 604 # break other packages using the cache if that directory is 605 # removed, or if the path is relative. 606 INSTALL="$ac_install_sh" 607 fi 608fi 609echo "$ac_t""$INSTALL" 1>&6 610 611# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 612# It thinks the first close brace ends the variable substitution. 613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 614 615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 616 617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 618 619echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 620echo "configure:621: checking whether build environment is sane" >&5 621# Just in case 622sleep 1 623echo timestamp > conftestfile 624# Do `set' in a subshell so we don't clobber the current shell's 625# arguments. Must try -L first in case configure is actually a 626# symlink; some systems play weird games with the mod time of symlinks 627# (eg FreeBSD returns the mod time of the symlink's containing 628# directory). 629if ( 630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 631 if test "$*" = "X"; then 632 # -L didn't work. 633 set X `ls -t $srcdir/configure conftestfile` 634 fi 635 if test "$*" != "X $srcdir/configure conftestfile" \ 636 && test "$*" != "X conftestfile $srcdir/configure"; then 637 638 # If neither matched, then we have a broken ls. This can happen 639 # if, for instance, CONFIG_SHELL is bash and it inherits a 640 # broken ls alias from the environment. This has actually 641 # happened. Such a system could not be considered "sane". 642 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 643alias in your environment" 1>&2; exit 1; } 644 fi 645 646 test "$2" = conftestfile 647 ) 648then 649 # Ok. 650 : 651else 652 { echo "configure: error: newly created file is older than distributed files! 653Check your system clock" 1>&2; exit 1; } 654fi 655rm -f conftest* 656echo "$ac_t""yes" 1>&6 657if test "$program_transform_name" = s,x,x,; then 658 program_transform_name= 659else 660 # Double any \ or $. echo might interpret backslashes. 661 cat <<\EOF_SED > conftestsed 662s,\\,\\\\,g; s,\$,$$,g 663EOF_SED 664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 665 rm -f conftestsed 666fi 667test "$program_prefix" != NONE && 668 program_transform_name="s,^,${program_prefix},; $program_transform_name" 669# Use a double $ so make ignores it. 670test "$program_suffix" != NONE && 671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 672 673# sed with no file args requires a program. 674test "$program_transform_name" = "" && program_transform_name="s,x,x," 675 676echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 677echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 678set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 679if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 680 echo $ac_n "(cached) $ac_c" 1>&6 681else 682 cat > conftestmake <<\EOF 683all: 684 @echo 'ac_maketemp="${MAKE}"' 685EOF 686# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 687eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 688if test -n "$ac_maketemp"; then 689 eval ac_cv_prog_make_${ac_make}_set=yes 690else 691 eval ac_cv_prog_make_${ac_make}_set=no 692fi 693rm -f conftestmake 694fi 695if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 696 echo "$ac_t""yes" 1>&6 697 SET_MAKE= 698else 699 echo "$ac_t""no" 1>&6 700 SET_MAKE="MAKE=${MAKE-make}" 701fi 702 703 704PACKAGE=xinvaders 705 706VERSION=2.1.1 707 708if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 709 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 710fi 711cat >> confdefs.h <<EOF 712#define PACKAGE "$PACKAGE" 713EOF 714 715cat >> confdefs.h <<EOF 716#define VERSION "$VERSION" 717EOF 718 719 720 721missing_dir=`cd $ac_aux_dir && pwd` 722echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 723echo "configure:724: checking for working aclocal" >&5 724# Run test in a subshell; some versions of sh will print an error if 725# an executable is not found, even if stderr is redirected. 726# Redirect stdin to placate older versions of autoconf. Sigh. 727if (aclocal --version) < /dev/null > /dev/null 2>&1; then 728 ACLOCAL=aclocal 729 echo "$ac_t""found" 1>&6 730else 731 ACLOCAL="$missing_dir/missing aclocal" 732 echo "$ac_t""missing" 1>&6 733fi 734 735echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 736echo "configure:737: checking for working autoconf" >&5 737# Run test in a subshell; some versions of sh will print an error if 738# an executable is not found, even if stderr is redirected. 739# Redirect stdin to placate older versions of autoconf. Sigh. 740if (autoconf --version) < /dev/null > /dev/null 2>&1; then 741 AUTOCONF=autoconf 742 echo "$ac_t""found" 1>&6 743else 744 AUTOCONF="$missing_dir/missing autoconf" 745 echo "$ac_t""missing" 1>&6 746fi 747 748echo $ac_n "checking for working automake""... $ac_c" 1>&6 749echo "configure:750: checking for working automake" >&5 750# Run test in a subshell; some versions of sh will print an error if 751# an executable is not found, even if stderr is redirected. 752# Redirect stdin to placate older versions of autoconf. Sigh. 753if (automake --version) < /dev/null > /dev/null 2>&1; then 754 AUTOMAKE=automake 755 echo "$ac_t""found" 1>&6 756else 757 AUTOMAKE="$missing_dir/missing automake" 758 echo "$ac_t""missing" 1>&6 759fi 760 761echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 762echo "configure:763: checking for working autoheader" >&5 763# Run test in a subshell; some versions of sh will print an error if 764# an executable is not found, even if stderr is redirected. 765# Redirect stdin to placate older versions of autoconf. Sigh. 766if (autoheader --version) < /dev/null > /dev/null 2>&1; then 767 AUTOHEADER=autoheader 768 echo "$ac_t""found" 1>&6 769else 770 AUTOHEADER="$missing_dir/missing autoheader" 771 echo "$ac_t""missing" 1>&6 772fi 773 774echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 775echo "configure:776: checking for working makeinfo" >&5 776# Run test in a subshell; some versions of sh will print an error if 777# an executable is not found, even if stderr is redirected. 778# Redirect stdin to placate older versions of autoconf. Sigh. 779if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 780 MAKEINFO=makeinfo 781 echo "$ac_t""found" 1>&6 782else 783 MAKEINFO="$missing_dir/missing makeinfo" 784 echo "$ac_t""missing" 1>&6 785fi 786 787 788 789 790 791 792# Extract the first word of "gcc", so it can be a program name with args. 793set dummy gcc; ac_word=$2 794echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 795echo "configure:796: checking for $ac_word" >&5 796if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 797 echo $ac_n "(cached) $ac_c" 1>&6 798else 799 if test -n "$CC"; then 800 ac_cv_prog_CC="$CC" # Let the user override the test. 801else 802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 803 ac_dummy="$PATH" 804 for ac_dir in $ac_dummy; do 805 test -z "$ac_dir" && ac_dir=. 806 if test -f $ac_dir/$ac_word; then 807 ac_cv_prog_CC="gcc" 808 break 809 fi 810 done 811 IFS="$ac_save_ifs" 812fi 813fi 814CC="$ac_cv_prog_CC" 815if test -n "$CC"; then 816 echo "$ac_t""$CC" 1>&6 817else 818 echo "$ac_t""no" 1>&6 819fi 820 821if test -z "$CC"; then 822 # Extract the first word of "cc", so it can be a program name with args. 823set dummy cc; ac_word=$2 824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 825echo "configure:826: checking for $ac_word" >&5 826if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 827 echo $ac_n "(cached) $ac_c" 1>&6 828else 829 if test -n "$CC"; then 830 ac_cv_prog_CC="$CC" # Let the user override the test. 831else 832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 833 ac_prog_rejected=no 834 ac_dummy="$PATH" 835 for ac_dir in $ac_dummy; do 836 test -z "$ac_dir" && ac_dir=. 837 if test -f $ac_dir/$ac_word; then 838 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 839 ac_prog_rejected=yes 840 continue 841 fi 842 ac_cv_prog_CC="cc" 843 break 844 fi 845 done 846 IFS="$ac_save_ifs" 847if test $ac_prog_rejected = yes; then 848 # We found a bogon in the path, so make sure we never use it. 849 set dummy $ac_cv_prog_CC 850 shift 851 if test $# -gt 0; then 852 # We chose a different compiler from the bogus one. 853 # However, it has the same basename, so the bogon will be chosen 854 # first if we set CC to just the basename; use the full file name. 855 shift 856 set dummy "$ac_dir/$ac_word" "$@" 857 shift 858 ac_cv_prog_CC="$@" 859 fi 860fi 861fi 862fi 863CC="$ac_cv_prog_CC" 864if test -n "$CC"; then 865 echo "$ac_t""$CC" 1>&6 866else 867 echo "$ac_t""no" 1>&6 868fi 869 870 if test -z "$CC"; then 871 case "`uname -s`" in 872 *win32* | *WIN32*) 873 # Extract the first word of "cl", so it can be a program name with args. 874set dummy cl; ac_word=$2 875echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 876echo "configure:877: checking for $ac_word" >&5 877if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 878 echo $ac_n "(cached) $ac_c" 1>&6 879else 880 if test -n "$CC"; then 881 ac_cv_prog_CC="$CC" # Let the user override the test. 882else 883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 884 ac_dummy="$PATH" 885 for ac_dir in $ac_dummy; do 886 test -z "$ac_dir" && ac_dir=. 887 if test -f $ac_dir/$ac_word; then 888 ac_cv_prog_CC="cl" 889 break 890 fi 891 done 892 IFS="$ac_save_ifs" 893fi 894fi 895CC="$ac_cv_prog_CC" 896if test -n "$CC"; then 897 echo "$ac_t""$CC" 1>&6 898else 899 echo "$ac_t""no" 1>&6 900fi 901 ;; 902 esac 903 fi 904 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 905fi 906 907echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 908echo "configure:909: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 909 910ac_ext=c 911# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 912ac_cpp='$CPP $CPPFLAGS' 913ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 914ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 915cross_compiling=$ac_cv_prog_cc_cross 916 917cat > conftest.$ac_ext << EOF 918 919#line 920 "configure" 920#include "confdefs.h" 921 922main(){return(0);} 923EOF 924if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 925 ac_cv_prog_cc_works=yes 926 # If we can't run a trivial program, we are probably using a cross compiler. 927 if (./conftest; exit) 2>/dev/null; then 928 ac_cv_prog_cc_cross=no 929 else 930 ac_cv_prog_cc_cross=yes 931 fi 932else 933 echo "configure: failed program was:" >&5 934 cat conftest.$ac_ext >&5 935 ac_cv_prog_cc_works=no 936fi 937rm -fr conftest* 938ac_ext=c 939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 940ac_cpp='$CPP $CPPFLAGS' 941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 943cross_compiling=$ac_cv_prog_cc_cross 944 945echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 946if test $ac_cv_prog_cc_works = no; then 947 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 948fi 949echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 950echo "configure:951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 951echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 952cross_compiling=$ac_cv_prog_cc_cross 953 954echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 955echo "configure:956: checking whether we are using GNU C" >&5 956if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 957 echo $ac_n "(cached) $ac_c" 1>&6 958else 959 cat > conftest.c <<EOF 960#ifdef __GNUC__ 961 yes; 962#endif 963EOF 964if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 965 ac_cv_prog_gcc=yes 966else 967 ac_cv_prog_gcc=no 968fi 969fi 970 971echo "$ac_t""$ac_cv_prog_gcc" 1>&6 972 973if test $ac_cv_prog_gcc = yes; then 974 GCC=yes 975else 976 GCC= 977fi 978 979ac_test_CFLAGS="${CFLAGS+set}" 980ac_save_CFLAGS="$CFLAGS" 981CFLAGS= 982echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 983echo "configure:984: checking whether ${CC-cc} accepts -g" >&5 984if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 985 echo $ac_n "(cached) $ac_c" 1>&6 986else 987 echo 'void f(){}' > conftest.c 988if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 989 ac_cv_prog_cc_g=yes 990else 991 ac_cv_prog_cc_g=no 992fi 993rm -f conftest* 994 995fi 996 997echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 998if test "$ac_test_CFLAGS" = set; then 999 CFLAGS="$ac_save_CFLAGS" 1000elif test $ac_cv_prog_cc_g = yes; then 1001 if test "$GCC" = yes; then 1002 CFLAGS="-g -O2" 1003 else 1004 CFLAGS="-g" 1005 fi 1006else 1007 if test "$GCC" = yes; then 1008 CFLAGS="-O2" 1009 else 1010 CFLAGS= 1011 fi 1012fi 1013 1014echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1015echo "configure:1016: checking how to run the C preprocessor" >&5 1016# On Suns, sometimes $CPP names a directory. 1017if test -n "$CPP" && test -d "$CPP"; then 1018 CPP= 1019fi 1020if test -z "$CPP"; then 1021if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1022 echo $ac_n "(cached) $ac_c" 1>&6 1023else 1024 # This must be in double quotes, not single quotes, because CPP may get 1025 # substituted into the Makefile and "${CC-cc}" will confuse make. 1026 CPP="${CC-cc} -E" 1027 # On the NeXT, cc -E runs the code through the compiler's parser, 1028 # not just through cpp. 1029 cat > conftest.$ac_ext <<EOF 1030#line 1031 "configure" 1031#include "confdefs.h" 1032#include <assert.h> 1033Syntax Error 1034EOF 1035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1036{ (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1038if test -z "$ac_err"; then 1039 : 1040else 1041 echo "$ac_err" >&5 1042 echo "configure: failed program was:" >&5 1043 cat conftest.$ac_ext >&5 1044 rm -rf conftest* 1045 CPP="${CC-cc} -E -traditional-cpp" 1046 cat > conftest.$ac_ext <<EOF 1047#line 1048 "configure" 1048#include "confdefs.h" 1049#include <assert.h> 1050Syntax Error 1051EOF 1052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1053{ (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1055if test -z "$ac_err"; then 1056 : 1057else 1058 echo "$ac_err" >&5 1059 echo "configure: failed program was:" >&5 1060 cat conftest.$ac_ext >&5 1061 rm -rf conftest* 1062 CPP="${CC-cc} -nologo -E" 1063 cat > conftest.$ac_ext <<EOF 1064#line 1065 "configure" 1065#include "confdefs.h" 1066#include <assert.h> 1067Syntax Error 1068EOF 1069ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1070{ (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1071ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1072if test -z "$ac_err"; then 1073 : 1074else 1075 echo "$ac_err" >&5 1076 echo "configure: failed program was:" >&5 1077 cat conftest.$ac_ext >&5 1078 rm -rf conftest* 1079 CPP=/lib/cpp 1080fi 1081rm -f conftest* 1082fi 1083rm -f conftest* 1084fi 1085rm -f conftest* 1086 ac_cv_prog_CPP="$CPP" 1087fi 1088 CPP="$ac_cv_prog_CPP" 1089else 1090 ac_cv_prog_CPP="$CPP" 1091fi 1092echo "$ac_t""$CPP" 1>&6 1093 1094# Find a good install program. We prefer a C program (faster), 1095# so one script is as good as another. But avoid the broken or 1096# incompatible versions: 1097# SysV /etc/install, /usr/sbin/install 1098# SunOS /usr/etc/install 1099# IRIX /sbin/install 1100# AIX /bin/install 1101# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1102# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1103# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1104# ./install, which can be erroneously created by make from ./install.sh. 1105echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1106echo "configure:1107: checking for a BSD compatible install" >&5 1107if test -z "$INSTALL"; then 1108if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1109 echo $ac_n "(cached) $ac_c" 1>&6 1110else 1111 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1112 for ac_dir in $PATH; do 1113 # Account for people who put trailing slashes in PATH elements. 1114 case "$ac_dir/" in 1115 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1116 *) 1117 # OSF1 and SCO ODT 3.0 have their own names for install. 1118 # Don't use installbsd from OSF since it installs stuff as root 1119 # by default. 1120 for ac_prog in ginstall scoinst install; do 1121 if test -f $ac_dir/$ac_prog; then 1122 if test $ac_prog = install && 1123 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1124 # AIX install. It has an incompatible calling convention. 1125 : 1126 else 1127 ac_cv_path_install="$ac_dir/$ac_prog -c" 1128 break 2 1129 fi 1130 fi 1131 done 1132 ;; 1133 esac 1134 done 1135 IFS="$ac_save_IFS" 1136 1137fi 1138 if test "${ac_cv_path_install+set}" = set; then 1139 INSTALL="$ac_cv_path_install" 1140 else 1141 # As a last resort, use the slow shell script. We don't cache a 1142 # path for INSTALL within a source directory, because that will 1143 # break other packages using the cache if that directory is 1144 # removed, or if the path is relative. 1145 INSTALL="$ac_install_sh" 1146 fi 1147fi 1148echo "$ac_t""$INSTALL" 1>&6 1149 1150# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1151# It thinks the first close brace ends the variable substitution. 1152test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1153 1154test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1155 1156test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1157 1158echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1159echo "configure:1160: checking whether ln -s works" >&5 1160if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1161 echo $ac_n "(cached) $ac_c" 1>&6 1162else 1163 rm -f conftestdata 1164if ln -s X conftestdata 2>/dev/null 1165then 1166 rm -f conftestdata 1167 ac_cv_prog_LN_S="ln -s" 1168else 1169 ac_cv_prog_LN_S=ln 1170fi 1171fi 1172LN_S="$ac_cv_prog_LN_S" 1173if test "$ac_cv_prog_LN_S" = "ln -s"; then 1174 echo "$ac_t""yes" 1>&6 1175else 1176 echo "$ac_t""no" 1>&6 1177fi 1178 1179echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1180echo "configure:1181: checking whether ${MAKE-make} sets \${MAKE}" >&5 1181set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1182if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1183 echo $ac_n "(cached) $ac_c" 1>&6 1184else 1185 cat > conftestmake <<\EOF 1186all: 1187 @echo 'ac_maketemp="${MAKE}"' 1188EOF 1189# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1190eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1191if test -n "$ac_maketemp"; then 1192 eval ac_cv_prog_make_${ac_make}_set=yes 1193else 1194 eval ac_cv_prog_make_${ac_make}_set=no 1195fi 1196rm -f conftestmake 1197fi 1198if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1199 echo "$ac_t""yes" 1>&6 1200 SET_MAKE= 1201else 1202 echo "$ac_t""no" 1>&6 1203 SET_MAKE="MAKE=${MAKE-make}" 1204fi 1205 1206# Extract the first word of "ranlib", so it can be a program name with args. 1207set dummy ranlib; ac_word=$2 1208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1209echo "configure:1210: checking for $ac_word" >&5 1210if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1211 echo $ac_n "(cached) $ac_c" 1>&6 1212else 1213 if test -n "$RANLIB"; then 1214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1215else 1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1217 ac_dummy="$PATH" 1218 for ac_dir in $ac_dummy; do 1219 test -z "$ac_dir" && ac_dir=. 1220 if test -f $ac_dir/$ac_word; then 1221 ac_cv_prog_RANLIB="ranlib" 1222 break 1223 fi 1224 done 1225 IFS="$ac_save_ifs" 1226 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1227fi 1228fi 1229RANLIB="$ac_cv_prog_RANLIB" 1230if test -n "$RANLIB"; then 1231 echo "$ac_t""$RANLIB" 1>&6 1232else 1233 echo "$ac_t""no" 1>&6 1234fi 1235 1236 1237echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1238echo "configure:1239: checking for POSIXized ISC" >&5 1239if test -d /etc/conf/kconfig.d && 1240 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1241then 1242 echo "$ac_t""yes" 1>&6 1243 ISC=yes # If later tests want to check for ISC. 1244 cat >> confdefs.h <<\EOF 1245#define _POSIX_SOURCE 1 1246EOF 1247 1248 if test "$GCC" = yes; then 1249 CC="$CC -posix" 1250 else 1251 CC="$CC -Xp" 1252 fi 1253else 1254 echo "$ac_t""no" 1>&6 1255 ISC= 1256fi 1257 1258 1259# If we find X, set shell vars x_includes and x_libraries to the 1260# paths, otherwise set no_x=yes. 1261# Uses ac_ vars as temps to allow command line to override cache and checks. 1262# --without-x overrides everything else, but does not touch the cache. 1263echo $ac_n "checking for X""... $ac_c" 1>&6 1264echo "configure:1265: checking for X" >&5 1265 1266# Check whether --with-x or --without-x was given. 1267if test "${with_x+set}" = set; then 1268 withval="$with_x" 1269 : 1270fi 1271 1272# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1273if test "x$with_x" = xno; then 1274 # The user explicitly disabled X. 1275 have_x=disabled 1276else 1277 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 1278 # Both variables are already set. 1279 have_x=yes 1280 else 1281if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 1282 echo $ac_n "(cached) $ac_c" 1>&6 1283else 1284 # One or both of the vars are not set, and there is no cached value. 1285ac_x_includes=NO ac_x_libraries=NO 1286rm -fr conftestdir 1287if mkdir conftestdir; then 1288 cd conftestdir 1289 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 1290 cat > Imakefile <<'EOF' 1291acfindx: 1292 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 1293EOF 1294 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 1295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1296 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 1297 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 1298 for ac_extension in a so sl; do 1299 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1300 test -f $ac_im_libdir/libX11.$ac_extension; then 1301 ac_im_usrlibdir=$ac_im_libdir; break 1302 fi 1303 done 1304 # Screen out bogus values from the imake configuration. They are 1305 # bogus both because they are the default anyway, and because 1306 # using them would break gcc on systems where it needs fixed includes. 1307 case "$ac_im_incroot" in 1308 /usr/include) ;; 1309 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1310 esac 1311 case "$ac_im_usrlibdir" in 1312 /usr/lib | /lib) ;; 1313 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1314 esac 1315 fi 1316 cd .. 1317 rm -fr conftestdir 1318fi 1319 1320if test "$ac_x_includes" = NO; then 1321 # Guess where to find include files, by looking for this one X11 .h file. 1322 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1323 1324 # First, try using that file with no special directory specified. 1325cat > conftest.$ac_ext <<EOF 1326#line 1327 "configure" 1327#include "confdefs.h" 1328#include <$x_direct_test_include> 1329EOF 1330ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1331{ (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1332ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1333if test -z "$ac_err"; then 1334 rm -rf conftest* 1335 # We can compile using X headers with no special include directory. 1336ac_x_includes= 1337else 1338 echo "$ac_err" >&5 1339 echo "configure: failed program was:" >&5 1340 cat conftest.$ac_ext >&5 1341 rm -rf conftest* 1342 # Look for the header file in a standard set of common directories. 1343# Check X11 before X11Rn because it is often a symlink to the current release. 1344 for ac_dir in \ 1345 /usr/X11/include \ 1346 /usr/X11R6/include \ 1347 /usr/X11R5/include \ 1348 /usr/X11R4/include \ 1349 \ 1350 /usr/include/X11 \ 1351 /usr/include/X11R6 \ 1352 /usr/include/X11R5 \ 1353 /usr/include/X11R4 \ 1354 \ 1355 /usr/local/X11/include \ 1356 /usr/local/X11R6/include \ 1357 /usr/local/X11R5/include \ 1358 /usr/local/X11R4/include \ 1359 \ 1360 /usr/local/include/X11 \ 1361 /usr/local/include/X11R6 \ 1362 /usr/local/include/X11R5 \ 1363 /usr/local/include/X11R4 \ 1364 \ 1365 /usr/X386/include \ 1366 /usr/x386/include \ 1367 /usr/XFree86/include/X11 \ 1368 \ 1369 /usr/include \ 1370 /usr/local/include \ 1371 /usr/unsupported/include \ 1372 /usr/athena/include \ 1373 /usr/local/x11r5/include \ 1374 /usr/lpp/Xamples/include \ 1375 \ 1376 /usr/openwin/include \ 1377 /usr/openwin/share/include \ 1378 ; \ 1379 do 1380 if test -r "$ac_dir/$x_direct_test_include"; then 1381 ac_x_includes=$ac_dir 1382 break 1383 fi 1384 done 1385fi 1386rm -f conftest* 1387fi # $ac_x_includes = NO 1388 1389if test "$ac_x_libraries" = NO; then 1390 # Check for the libraries. 1391 1392 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1393 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1394 1395 # See if we find them without any special options. 1396 # Don't add to $LIBS permanently. 1397 ac_save_LIBS="$LIBS" 1398 LIBS="-l$x_direct_test_library $LIBS" 1399cat > conftest.$ac_ext <<EOF 1400#line 1401 "configure" 1401#include "confdefs.h" 1402 1403int main() { 1404${x_direct_test_function}() 1405; return 0; } 1406EOF 1407if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1408 rm -rf conftest* 1409 LIBS="$ac_save_LIBS" 1410# We can link X programs with no special library path. 1411ac_x_libraries= 1412else 1413 echo "configure: failed program was:" >&5 1414 cat conftest.$ac_ext >&5 1415 rm -rf conftest* 1416 LIBS="$ac_save_LIBS" 1417# First see if replacing the include by lib works. 1418# Check X11 before X11Rn because it is often a symlink to the current release. 1419for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1420 /usr/X11/lib \ 1421 /usr/X11R6/lib \ 1422 /usr/X11R5/lib \ 1423 /usr/X11R4/lib \ 1424 \ 1425 /usr/lib/X11 \ 1426 /usr/lib/X11R6 \ 1427 /usr/lib/X11R5 \ 1428 /usr/lib/X11R4 \ 1429 \ 1430 /usr/local/X11/lib \ 1431 /usr/local/X11R6/lib \ 1432 /usr/local/X11R5/lib \ 1433 /usr/local/X11R4/lib \ 1434 \ 1435 /usr/local/lib/X11 \ 1436 /usr/local/lib/X11R6 \ 1437 /usr/local/lib/X11R5 \ 1438 /usr/local/lib/X11R4 \ 1439 \ 1440 /usr/X386/lib \ 1441 /usr/x386/lib \ 1442 /usr/XFree86/lib/X11 \ 1443 \ 1444 /usr/lib \ 1445 /usr/local/lib \ 1446 /usr/unsupported/lib \ 1447 /usr/athena/lib \ 1448 /usr/local/x11r5/lib \ 1449 /usr/lpp/Xamples/lib \ 1450 /lib/usr/lib/X11 \ 1451 \ 1452 /usr/openwin/lib \ 1453 /usr/openwin/share/lib \ 1454 ; \ 1455do 1456 for ac_extension in a so sl; do 1457 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1458 ac_x_libraries=$ac_dir 1459 break 2 1460 fi 1461 done 1462done 1463fi 1464rm -f conftest* 1465fi # $ac_x_libraries = NO 1466 1467if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1468 # Didn't find X anywhere. Cache the known absence of X. 1469 ac_cv_have_x="have_x=no" 1470else 1471 # Record where we found X for the cache. 1472 ac_cv_have_x="have_x=yes \ 1473 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1474fi 1475fi 1476 fi 1477 eval "$ac_cv_have_x" 1478fi # $with_x != no 1479 1480if test "$have_x" != yes; then 1481 echo "$ac_t""$have_x" 1>&6 1482 no_x=yes 1483else 1484 # If each of the values was on the command line, it overrides each guess. 1485 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1486 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1487 # Update the cache value to reflect the command line values. 1488 ac_cv_have_x="have_x=yes \ 1489 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1490 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1491fi 1492 1493if test "$no_x" = yes; then 1494 # Not all programs may use this symbol, but it does not hurt to define it. 1495 cat >> confdefs.h <<\EOF 1496#define X_DISPLAY_MISSING 1 1497EOF 1498 1499 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1500else 1501 if test -n "$x_includes"; then 1502 X_CFLAGS="$X_CFLAGS -I$x_includes" 1503 fi 1504 1505 # It would also be nice to do this for all -L options, not just this one. 1506 if test -n "$x_libraries"; then 1507 X_LIBS="$X_LIBS -L$x_libraries" 1508 # For Solaris; some versions of Sun CC require a space after -R and 1509 # others require no space. Words are not sufficient . . . . 1510 case "`(uname -sr) 2>/dev/null`" in 1511 "SunOS 5"*) 1512 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1513echo "configure:1514: checking whether -R must be followed by a space" >&5 1514 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1515 cat > conftest.$ac_ext <<EOF 1516#line 1517 "configure" 1517#include "confdefs.h" 1518 1519int main() { 1520 1521; return 0; } 1522EOF 1523if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1524 rm -rf conftest* 1525 ac_R_nospace=yes 1526else 1527 echo "configure: failed program was:" >&5 1528 cat conftest.$ac_ext >&5 1529 rm -rf conftest* 1530 ac_R_nospace=no 1531fi 1532rm -f conftest* 1533 if test $ac_R_nospace = yes; then 1534 echo "$ac_t""no" 1>&6 1535 X_LIBS="$X_LIBS -R$x_libraries" 1536 else 1537 LIBS="$ac_xsave_LIBS -R $x_libraries" 1538 cat > conftest.$ac_ext <<EOF 1539#line 1540 "configure" 1540#include "confdefs.h" 1541 1542int main() { 1543 1544; return 0; } 1545EOF 1546if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1547 rm -rf conftest* 1548 ac_R_space=yes 1549else 1550 echo "configure: failed program was:" >&5 1551 cat conftest.$ac_ext >&5 1552 rm -rf conftest* 1553 ac_R_space=no 1554fi 1555rm -f conftest* 1556 if test $ac_R_space = yes; then 1557 echo "$ac_t""yes" 1>&6 1558 X_LIBS="$X_LIBS -R $x_libraries" 1559 else 1560 echo "$ac_t""neither works" 1>&6 1561 fi 1562 fi 1563 LIBS="$ac_xsave_LIBS" 1564 esac 1565 fi 1566 1567 # Check for system-dependent libraries X programs must link with. 1568 # Do this before checking for the system-independent R6 libraries 1569 # (-lICE), since we may need -lsocket or whatever for X linking. 1570 1571 if test "$ISC" = yes; then 1572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1573 else 1574 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1575 # libraries were built with DECnet support. And karl@cs.umb.edu says 1576 # the Alpha needs dnet_stub (dnet does not exist). 1577 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1578echo "configure:1579: checking for dnet_ntoa in -ldnet" >&5 1579ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1581 echo $ac_n "(cached) $ac_c" 1>&6 1582else 1583 ac_save_LIBS="$LIBS" 1584LIBS="-ldnet $LIBS" 1585cat > conftest.$ac_ext <<EOF 1586#line 1587 "configure" 1587#include "confdefs.h" 1588/* Override any gcc2 internal prototype to avoid an error. */ 1589/* We use char because int might match the return type of a gcc2 1590 builtin and then its argument prototype would still apply. */ 1591char dnet_ntoa(); 1592 1593int main() { 1594dnet_ntoa() 1595; return 0; } 1596EOF 1597if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1598 rm -rf conftest* 1599 eval "ac_cv_lib_$ac_lib_var=yes" 1600else 1601 echo "configure: failed program was:" >&5 1602 cat conftest.$ac_ext >&5 1603 rm -rf conftest* 1604 eval "ac_cv_lib_$ac_lib_var=no" 1605fi 1606rm -f conftest* 1607LIBS="$ac_save_LIBS" 1608 1609fi 1610if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1611 echo "$ac_t""yes" 1>&6 1612 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1613else 1614 echo "$ac_t""no" 1>&6 1615fi 1616 1617 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1618 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1619echo "configure:1620: checking for dnet_ntoa in -ldnet_stub" >&5 1620ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1621if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1622 echo $ac_n "(cached) $ac_c" 1>&6 1623else 1624 ac_save_LIBS="$LIBS" 1625LIBS="-ldnet_stub $LIBS" 1626cat > conftest.$ac_ext <<EOF 1627#line 1628 "configure" 1628#include "confdefs.h" 1629/* Override any gcc2 internal prototype to avoid an error. */ 1630/* We use char because int might match the return type of a gcc2 1631 builtin and then its argument prototype would still apply. */ 1632char dnet_ntoa(); 1633 1634int main() { 1635dnet_ntoa() 1636; return 0; } 1637EOF 1638if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1639 rm -rf conftest* 1640 eval "ac_cv_lib_$ac_lib_var=yes" 1641else 1642 echo "configure: failed program was:" >&5 1643 cat conftest.$ac_ext >&5 1644 rm -rf conftest* 1645 eval "ac_cv_lib_$ac_lib_var=no" 1646fi 1647rm -f conftest* 1648LIBS="$ac_save_LIBS" 1649 1650fi 1651if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1652 echo "$ac_t""yes" 1>&6 1653 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1654else 1655 echo "$ac_t""no" 1>&6 1656fi 1657 1658 fi 1659 1660 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1661 # to get the SysV transport functions. 1662 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1663 # needs -lnsl. 1664 # The nsl library prevents programs from opening the X display 1665 # on Irix 5.2, according to dickey@clark.net. 1666 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1667echo "configure:1668: checking for gethostbyname" >&5 1668if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1669 echo $ac_n "(cached) $ac_c" 1>&6 1670else 1671 cat > conftest.$ac_ext <<EOF 1672#line 1673 "configure" 1673#include "confdefs.h" 1674/* System header to define __stub macros and hopefully few prototypes, 1675 which can conflict with char gethostbyname(); below. */ 1676#include <assert.h> 1677/* Override any gcc2 internal prototype to avoid an error. */ 1678/* We use char because int might match the return type of a gcc2 1679 builtin and then its argument prototype would still apply. */ 1680char gethostbyname(); 1681 1682int main() { 1683 1684/* The GNU C library defines this for functions which it implements 1685 to always fail with ENOSYS. Some functions are actually named 1686 something starting with __ and the normal name is an alias. */ 1687#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1688choke me 1689#else 1690gethostbyname(); 1691#endif 1692 1693; return 0; } 1694EOF 1695if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1696 rm -rf conftest* 1697 eval "ac_cv_func_gethostbyname=yes" 1698else 1699 echo "configure: failed program was:" >&5 1700 cat conftest.$ac_ext >&5 1701 rm -rf conftest* 1702 eval "ac_cv_func_gethostbyname=no" 1703fi 1704rm -f conftest* 1705fi 1706 1707if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1708 echo "$ac_t""yes" 1>&6 1709 : 1710else 1711 echo "$ac_t""no" 1>&6 1712fi 1713 1714 if test $ac_cv_func_gethostbyname = no; then 1715 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1716echo "configure:1717: checking for gethostbyname in -lnsl" >&5 1717ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1719 echo $ac_n "(cached) $ac_c" 1>&6 1720else 1721 ac_save_LIBS="$LIBS" 1722LIBS="-lnsl $LIBS" 1723cat > conftest.$ac_ext <<EOF 1724#line 1725 "configure" 1725#include "confdefs.h" 1726/* Override any gcc2 internal prototype to avoid an error. */ 1727/* We use char because int might match the return type of a gcc2 1728 builtin and then its argument prototype would still apply. */ 1729char gethostbyname(); 1730 1731int main() { 1732gethostbyname() 1733; return 0; } 1734EOF 1735if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1736 rm -rf conftest* 1737 eval "ac_cv_lib_$ac_lib_var=yes" 1738else 1739 echo "configure: failed program was:" >&5 1740 cat conftest.$ac_ext >&5 1741 rm -rf conftest* 1742 eval "ac_cv_lib_$ac_lib_var=no" 1743fi 1744rm -f conftest* 1745LIBS="$ac_save_LIBS" 1746 1747fi 1748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1749 echo "$ac_t""yes" 1>&6 1750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 1751else 1752 echo "$ac_t""no" 1>&6 1753fi 1754 1755 fi 1756 1757 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1758 # socket/setsockopt and other routines are undefined under SCO ODT 1759 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 1760 # on later versions), says simon@lia.di.epfl.ch: it contains 1761 # gethostby* variants that don't use the nameserver (or something). 1762 # -lsocket must be given before -lnsl if both are needed. 1763 # We assume that if connect needs -lnsl, so does gethostbyname. 1764 echo $ac_n "checking for connect""... $ac_c" 1>&6 1765echo "configure:1766: checking for connect" >&5 1766if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 1767 echo $ac_n "(cached) $ac_c" 1>&6 1768else 1769 cat > conftest.$ac_ext <<EOF 1770#line 1771 "configure" 1771#include "confdefs.h" 1772/* System header to define __stub macros and hopefully few prototypes, 1773 which can conflict with char connect(); below. */ 1774#include <assert.h> 1775/* Override any gcc2 internal prototype to avoid an error. */ 1776/* We use char because int might match the return type of a gcc2 1777 builtin and then its argument prototype would still apply. */ 1778char connect(); 1779 1780int main() { 1781 1782/* The GNU C library defines this for functions which it implements 1783 to always fail with ENOSYS. Some functions are actually named 1784 something starting with __ and the normal name is an alias. */ 1785#if defined (__stub_connect) || defined (__stub___connect) 1786choke me 1787#else 1788connect(); 1789#endif 1790 1791; return 0; } 1792EOF 1793if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1794 rm -rf conftest* 1795 eval "ac_cv_func_connect=yes" 1796else 1797 echo "configure: failed program was:" >&5 1798 cat conftest.$ac_ext >&5 1799 rm -rf conftest* 1800 eval "ac_cv_func_connect=no" 1801fi 1802rm -f conftest* 1803fi 1804 1805if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 1806 echo "$ac_t""yes" 1>&6 1807 : 1808else 1809 echo "$ac_t""no" 1>&6 1810fi 1811 1812 if test $ac_cv_func_connect = no; then 1813 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 1814echo "configure:1815: checking for connect in -lsocket" >&5 1815ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 1816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1817 echo $ac_n "(cached) $ac_c" 1>&6 1818else 1819 ac_save_LIBS="$LIBS" 1820LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 1821cat > conftest.$ac_ext <<EOF 1822#line 1823 "configure" 1823#include "confdefs.h" 1824/* Override any gcc2 internal prototype to avoid an error. */ 1825/* We use char because int might match the return type of a gcc2 1826 builtin and then its argument prototype would still apply. */ 1827char connect(); 1828 1829int main() { 1830connect() 1831; return 0; } 1832EOF 1833if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1834 rm -rf conftest* 1835 eval "ac_cv_lib_$ac_lib_var=yes" 1836else 1837 echo "configure: failed program was:" >&5 1838 cat conftest.$ac_ext >&5 1839 rm -rf conftest* 1840 eval "ac_cv_lib_$ac_lib_var=no" 1841fi 1842rm -f conftest* 1843LIBS="$ac_save_LIBS" 1844 1845fi 1846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1847 echo "$ac_t""yes" 1>&6 1848 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 1849else 1850 echo "$ac_t""no" 1>&6 1851fi 1852 1853 fi 1854 1855 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 1856 echo $ac_n "checking for remove""... $ac_c" 1>&6 1857echo "configure:1858: checking for remove" >&5 1858if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 1859 echo $ac_n "(cached) $ac_c" 1>&6 1860else 1861 cat > conftest.$ac_ext <<EOF 1862#line 1863 "configure" 1863#include "confdefs.h" 1864/* System header to define __stub macros and hopefully few prototypes, 1865 which can conflict with char remove(); below. */ 1866#include <assert.h> 1867/* Override any gcc2 internal prototype to avoid an error. */ 1868/* We use char because int might match the return type of a gcc2 1869 builtin and then its argument prototype would still apply. */ 1870char remove(); 1871 1872int main() { 1873 1874/* The GNU C library defines this for functions which it implements 1875 to always fail with ENOSYS. Some functions are actually named 1876 something starting with __ and the normal name is an alias. */ 1877#if defined (__stub_remove) || defined (__stub___remove) 1878choke me 1879#else 1880remove(); 1881#endif 1882 1883; return 0; } 1884EOF 1885if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1886 rm -rf conftest* 1887 eval "ac_cv_func_remove=yes" 1888else 1889 echo "configure: failed program was:" >&5 1890 cat conftest.$ac_ext >&5 1891 rm -rf conftest* 1892 eval "ac_cv_func_remove=no" 1893fi 1894rm -f conftest* 1895fi 1896 1897if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 1898 echo "$ac_t""yes" 1>&6 1899 : 1900else 1901 echo "$ac_t""no" 1>&6 1902fi 1903 1904 if test $ac_cv_func_remove = no; then 1905 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 1906echo "configure:1907: checking for remove in -lposix" >&5 1907ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 1908if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1909 echo $ac_n "(cached) $ac_c" 1>&6 1910else 1911 ac_save_LIBS="$LIBS" 1912LIBS="-lposix $LIBS" 1913cat > conftest.$ac_ext <<EOF 1914#line 1915 "configure" 1915#include "confdefs.h" 1916/* Override any gcc2 internal prototype to avoid an error. */ 1917/* We use char because int might match the return type of a gcc2 1918 builtin and then its argument prototype would still apply. */ 1919char remove(); 1920 1921int main() { 1922remove() 1923; return 0; } 1924EOF 1925if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1926 rm -rf conftest* 1927 eval "ac_cv_lib_$ac_lib_var=yes" 1928else 1929 echo "configure: failed program was:" >&5 1930 cat conftest.$ac_ext >&5 1931 rm -rf conftest* 1932 eval "ac_cv_lib_$ac_lib_var=no" 1933fi 1934rm -f conftest* 1935LIBS="$ac_save_LIBS" 1936 1937fi 1938if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1939 echo "$ac_t""yes" 1>&6 1940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 1941else 1942 echo "$ac_t""no" 1>&6 1943fi 1944 1945 fi 1946 1947 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 1948 echo $ac_n "checking for shmat""... $ac_c" 1>&6 1949echo "configure:1950: checking for shmat" >&5 1950if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 1951 echo $ac_n "(cached) $ac_c" 1>&6 1952else 1953 cat > conftest.$ac_ext <<EOF 1954#line 1955 "configure" 1955#include "confdefs.h" 1956/* System header to define __stub macros and hopefully few prototypes, 1957 which can conflict with char shmat(); below. */ 1958#include <assert.h> 1959/* Override any gcc2 internal prototype to avoid an error. */ 1960/* We use char because int might match the return type of a gcc2 1961 builtin and then its argument prototype would still apply. */ 1962char shmat(); 1963 1964int main() { 1965 1966/* The GNU C library defines this for functions which it implements 1967 to always fail with ENOSYS. Some functions are actually named 1968 something starting with __ and the normal name is an alias. */ 1969#if defined (__stub_shmat) || defined (__stub___shmat) 1970choke me 1971#else 1972shmat(); 1973#endif 1974 1975; return 0; } 1976EOF 1977if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1978 rm -rf conftest* 1979 eval "ac_cv_func_shmat=yes" 1980else 1981 echo "configure: failed program was:" >&5 1982 cat conftest.$ac_ext >&5 1983 rm -rf conftest* 1984 eval "ac_cv_func_shmat=no" 1985fi 1986rm -f conftest* 1987fi 1988 1989if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 1990 echo "$ac_t""yes" 1>&6 1991 : 1992else 1993 echo "$ac_t""no" 1>&6 1994fi 1995 1996 if test $ac_cv_func_shmat = no; then 1997 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 1998echo "configure:1999: checking for shmat in -lipc" >&5 1999ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 2000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2001 echo $ac_n "(cached) $ac_c" 1>&6 2002else 2003 ac_save_LIBS="$LIBS" 2004LIBS="-lipc $LIBS" 2005cat > conftest.$ac_ext <<EOF 2006#line 2007 "configure" 2007#include "confdefs.h" 2008/* Override any gcc2 internal prototype to avoid an error. */ 2009/* We use char because int might match the return type of a gcc2 2010 builtin and then its argument prototype would still apply. */ 2011char shmat(); 2012 2013int main() { 2014shmat() 2015; return 0; } 2016EOF 2017if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2018 rm -rf conftest* 2019 eval "ac_cv_lib_$ac_lib_var=yes" 2020else 2021 echo "configure: failed program was:" >&5 2022 cat conftest.$ac_ext >&5 2023 rm -rf conftest* 2024 eval "ac_cv_lib_$ac_lib_var=no" 2025fi 2026rm -f conftest* 2027LIBS="$ac_save_LIBS" 2028 2029fi 2030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2031 echo "$ac_t""yes" 1>&6 2032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 2033else 2034 echo "$ac_t""no" 1>&6 2035fi 2036 2037 fi 2038 fi 2039 2040 # Check for libraries that X11R6 Xt/Xaw programs need. 2041 ac_save_LDFLAGS="$LDFLAGS" 2042 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 2043 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 2044 # check for ICE first), but we must link in the order -lSM -lICE or 2045 # we get undefined symbols. So assume we have SM if we have ICE. 2046 # These have to be linked with before -lX11, unlike the other 2047 # libraries we check for below, so use a different variable. 2048 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 2049 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 2050echo "configure:2051: checking for IceConnectionNumber in -lICE" >&5 2051ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 2052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2053 echo $ac_n "(cached) $ac_c" 1>&6 2054else 2055 ac_save_LIBS="$LIBS" 2056LIBS="-lICE $X_EXTRA_LIBS $LIBS" 2057cat > conftest.$ac_ext <<EOF 2058#line 2059 "configure" 2059#include "confdefs.h" 2060/* Override any gcc2 internal prototype to avoid an error. */ 2061/* We use char because int might match the return type of a gcc2 2062 builtin and then its argument prototype would still apply. */ 2063char IceConnectionNumber(); 2064 2065int main() { 2066IceConnectionNumber() 2067; return 0; } 2068EOF 2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2070 rm -rf conftest* 2071 eval "ac_cv_lib_$ac_lib_var=yes" 2072else 2073 echo "configure: failed program was:" >&5 2074 cat conftest.$ac_ext >&5 2075 rm -rf conftest* 2076 eval "ac_cv_lib_$ac_lib_var=no" 2077fi 2078rm -f conftest* 2079LIBS="$ac_save_LIBS" 2080 2081fi 2082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2083 echo "$ac_t""yes" 1>&6 2084 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 2085else 2086 echo "$ac_t""no" 1>&6 2087fi 2088 2089 LDFLAGS="$ac_save_LDFLAGS" 2090 2091fi 2092 2093echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2094echo "configure:2095: checking for ANSI C header files" >&5 2095if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2096 echo $ac_n "(cached) $ac_c" 1>&6 2097else 2098 cat > conftest.$ac_ext <<EOF 2099#line 2100 "configure" 2100#include "confdefs.h" 2101#include <stdlib.h> 2102#include <stdarg.h> 2103#include <string.h> 2104#include <float.h> 2105EOF 2106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2107{ (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2108ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2109if test -z "$ac_err"; then 2110 rm -rf conftest* 2111 ac_cv_header_stdc=yes 2112else 2113 echo "$ac_err" >&5 2114 echo "configure: failed program was:" >&5 2115 cat conftest.$ac_ext >&5 2116 rm -rf conftest* 2117 ac_cv_header_stdc=no 2118fi 2119rm -f conftest* 2120 2121if test $ac_cv_header_stdc = yes; then 2122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2123cat > conftest.$ac_ext <<EOF 2124#line 2125 "configure" 2125#include "confdefs.h" 2126#include <string.h> 2127EOF 2128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2129 egrep "memchr" >/dev/null 2>&1; then 2130 : 2131else 2132 rm -rf conftest* 2133 ac_cv_header_stdc=no 2134fi 2135rm -f conftest* 2136 2137fi 2138 2139if test $ac_cv_header_stdc = yes; then 2140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2141cat > conftest.$ac_ext <<EOF 2142#line 2143 "configure" 2143#include "confdefs.h" 2144#include <stdlib.h> 2145EOF 2146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2147 egrep "free" >/dev/null 2>&1; then 2148 : 2149else 2150 rm -rf conftest* 2151 ac_cv_header_stdc=no 2152fi 2153rm -f conftest* 2154 2155fi 2156 2157if test $ac_cv_header_stdc = yes; then 2158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2159if test "$cross_compiling" = yes; then 2160 : 2161else 2162 cat > conftest.$ac_ext <<EOF 2163#line 2164 "configure" 2164#include "confdefs.h" 2165#include <ctype.h> 2166#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2167#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2169int main () { int i; for (i = 0; i < 256; i++) 2170if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2171exit (0); } 2172 2173EOF 2174if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2175then 2176 : 2177else 2178 echo "configure: failed program was:" >&5 2179 cat conftest.$ac_ext >&5 2180 rm -fr conftest* 2181 ac_cv_header_stdc=no 2182fi 2183rm -fr conftest* 2184fi 2185 2186fi 2187fi 2188 2189echo "$ac_t""$ac_cv_header_stdc" 1>&6 2190if test $ac_cv_header_stdc = yes; then 2191 cat >> confdefs.h <<\EOF 2192#define STDC_HEADERS 1 2193EOF 2194 2195fi 2196 2197 2198ALL_LINGUAS="es" 2199echo $ac_n "checking for working const""... $ac_c" 1>&6 2200echo "configure:2201: checking for working const" >&5 2201if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2202 echo $ac_n "(cached) $ac_c" 1>&6 2203else 2204 cat > conftest.$ac_ext <<EOF 2205#line 2206 "configure" 2206#include "confdefs.h" 2207 2208int main() { 2209 2210/* Ultrix mips cc rejects this. */ 2211typedef int charset[2]; const charset x = {0,0}; 2212/* SunOS 4.1.1 cc rejects this. */ 2213char const *const *ccp; 2214char **p; 2215/* NEC SVR4.0.2 mips cc rejects this. */ 2216struct point {int x, y;}; 2217static struct point const zero = {0,0}; 2218/* AIX XL C 1.02.0.0 rejects this. 2219 It does not let you subtract one const X* pointer from another in an arm 2220 of an if-expression whose if-part is not a constant expression */ 2221const char *g = "string"; 2222ccp = &g + (g ? g-g : 0); 2223/* HPUX 7.0 cc rejects these. */ 2224++ccp; 2225p = (char**) ccp; 2226ccp = (char const *const *) p; 2227{ /* SCO 3.2v4 cc rejects this. */ 2228 char *t; 2229 char const *s = 0 ? (char *) 0 : (char const *) 0; 2230 2231 *t++ = 0; 2232} 2233{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2234 int x[] = {25, 17}; 2235 const int *foo = &x[0]; 2236 ++foo; 2237} 2238{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2239 typedef const int *iptr; 2240 iptr p = 0; 2241 ++p; 2242} 2243{ /* AIX XL C 1.02.0.0 rejects this saying 2244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2245 struct s { int j; const int *ap[3]; }; 2246 struct s *b; b->j = 5; 2247} 2248{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2249 const int foo = 10; 2250} 2251 2252; return 0; } 2253EOF 2254if { (eval echo configure:2255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2255 rm -rf conftest* 2256 ac_cv_c_const=yes 2257else 2258 echo "configure: failed program was:" >&5 2259 cat conftest.$ac_ext >&5 2260 rm -rf conftest* 2261 ac_cv_c_const=no 2262fi 2263rm -f conftest* 2264fi 2265 2266echo "$ac_t""$ac_cv_c_const" 1>&6 2267if test $ac_cv_c_const = no; then 2268 cat >> confdefs.h <<\EOF 2269#define const 2270EOF 2271 2272fi 2273 2274echo $ac_n "checking for inline""... $ac_c" 1>&6 2275echo "configure:2276: checking for inline" >&5 2276if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2277 echo $ac_n "(cached) $ac_c" 1>&6 2278else 2279 ac_cv_c_inline=no 2280for ac_kw in inline __inline__ __inline; do 2281 cat > conftest.$ac_ext <<EOF 2282#line 2283 "configure" 2283#include "confdefs.h" 2284 2285int main() { 2286} int $ac_kw foo() { 2287; return 0; } 2288EOF 2289if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2290 rm -rf conftest* 2291 ac_cv_c_inline=$ac_kw; break 2292else 2293 echo "configure: failed program was:" >&5 2294 cat conftest.$ac_ext >&5 2295fi 2296rm -f conftest* 2297done 2298 2299fi 2300 2301echo "$ac_t""$ac_cv_c_inline" 1>&6 2302case "$ac_cv_c_inline" in 2303 inline | yes) ;; 2304 no) cat >> confdefs.h <<\EOF 2305#define inline 2306EOF 2307 ;; 2308 *) cat >> confdefs.h <<EOF 2309#define inline $ac_cv_c_inline 2310EOF 2311 ;; 2312esac 2313 2314echo $ac_n "checking for off_t""... $ac_c" 1>&6 2315echo "configure:2316: checking for off_t" >&5 2316if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 2317 echo $ac_n "(cached) $ac_c" 1>&6 2318else 2319 cat > conftest.$ac_ext <<EOF 2320#line 2321 "configure" 2321#include "confdefs.h" 2322#include <sys/types.h> 2323#if STDC_HEADERS 2324#include <stdlib.h> 2325#include <stddef.h> 2326#endif 2327EOF 2328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2329 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2330 rm -rf conftest* 2331 ac_cv_type_off_t=yes 2332else 2333 rm -rf conftest* 2334 ac_cv_type_off_t=no 2335fi 2336rm -f conftest* 2337 2338fi 2339echo "$ac_t""$ac_cv_type_off_t" 1>&6 2340if test $ac_cv_type_off_t = no; then 2341 cat >> confdefs.h <<\EOF 2342#define off_t long 2343EOF 2344 2345fi 2346 2347echo $ac_n "checking for size_t""... $ac_c" 1>&6 2348echo "configure:2349: checking for size_t" >&5 2349if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2350 echo $ac_n "(cached) $ac_c" 1>&6 2351else 2352 cat > conftest.$ac_ext <<EOF 2353#line 2354 "configure" 2354#include "confdefs.h" 2355#include <sys/types.h> 2356#if STDC_HEADERS 2357#include <stdlib.h> 2358#include <stddef.h> 2359#endif 2360EOF 2361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2362 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2363 rm -rf conftest* 2364 ac_cv_type_size_t=yes 2365else 2366 rm -rf conftest* 2367 ac_cv_type_size_t=no 2368fi 2369rm -f conftest* 2370 2371fi 2372echo "$ac_t""$ac_cv_type_size_t" 1>&6 2373if test $ac_cv_type_size_t = no; then 2374 cat >> confdefs.h <<\EOF 2375#define size_t unsigned 2376EOF 2377 2378fi 2379 2380# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2381# for constant arguments. Useless! 2382echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2383echo "configure:2384: checking for working alloca.h" >&5 2384if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2385 echo $ac_n "(cached) $ac_c" 1>&6 2386else 2387 cat > conftest.$ac_ext <<EOF 2388#line 2389 "configure" 2389#include "confdefs.h" 2390#include <alloca.h> 2391int main() { 2392void *p = alloca(2 * sizeof(int)); 2393; return 0; } 2394EOF 2395if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2396 rm -rf conftest* 2397 ac_cv_header_alloca_h=yes 2398else 2399 echo "configure: failed program was:" >&5 2400 cat conftest.$ac_ext >&5 2401 rm -rf conftest* 2402 ac_cv_header_alloca_h=no 2403fi 2404rm -f conftest* 2405fi 2406 2407echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2408if test $ac_cv_header_alloca_h = yes; then 2409 cat >> confdefs.h <<\EOF 2410#define HAVE_ALLOCA_H 1 2411EOF 2412 2413fi 2414 2415echo $ac_n "checking for alloca""... $ac_c" 1>&6 2416echo "configure:2417: checking for alloca" >&5 2417if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2418 echo $ac_n "(cached) $ac_c" 1>&6 2419else 2420 cat > conftest.$ac_ext <<EOF 2421#line 2422 "configure" 2422#include "confdefs.h" 2423 2424#ifdef __GNUC__ 2425# define alloca __builtin_alloca 2426#else 2427# ifdef _MSC_VER 2428# include <malloc.h> 2429# define alloca _alloca 2430# else 2431# if HAVE_ALLOCA_H 2432# include <alloca.h> 2433# else 2434# ifdef _AIX 2435 #pragma alloca 2436# else 2437# ifndef alloca /* predefined by HP cc +Olibcalls */ 2438char *alloca (); 2439# endif 2440# endif 2441# endif 2442# endif 2443#endif 2444 2445int main() { 2446char *p = (char *) alloca(1); 2447; return 0; } 2448EOF 2449if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2450 rm -rf conftest* 2451 ac_cv_func_alloca_works=yes 2452else 2453 echo "configure: failed program was:" >&5 2454 cat conftest.$ac_ext >&5 2455 rm -rf conftest* 2456 ac_cv_func_alloca_works=no 2457fi 2458rm -f conftest* 2459fi 2460 2461echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2462if test $ac_cv_func_alloca_works = yes; then 2463 cat >> confdefs.h <<\EOF 2464#define HAVE_ALLOCA 1 2465EOF 2466 2467fi 2468 2469if test $ac_cv_func_alloca_works = no; then 2470 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2471 # that cause trouble. Some versions do not even contain alloca or 2472 # contain a buggy version. If you still want to use their alloca, 2473 # use ar to extract alloca.o from them instead of compiling alloca.c. 2474 ALLOCA=alloca.${ac_objext} 2475 cat >> confdefs.h <<\EOF 2476#define C_ALLOCA 1 2477EOF 2478 2479 2480echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2481echo "configure:2482: checking whether alloca needs Cray hooks" >&5 2482if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2483 echo $ac_n "(cached) $ac_c" 1>&6 2484else 2485 cat > conftest.$ac_ext <<EOF 2486#line 2487 "configure" 2487#include "confdefs.h" 2488#if defined(CRAY) && ! defined(CRAY2) 2489webecray 2490#else 2491wenotbecray 2492#endif 2493 2494EOF 2495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2496 egrep "webecray" >/dev/null 2>&1; then 2497 rm -rf conftest* 2498 ac_cv_os_cray=yes 2499else 2500 rm -rf conftest* 2501 ac_cv_os_cray=no 2502fi 2503rm -f conftest* 2504 2505fi 2506 2507echo "$ac_t""$ac_cv_os_cray" 1>&6 2508if test $ac_cv_os_cray = yes; then 2509for ac_func in _getb67 GETB67 getb67; do 2510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2511echo "configure:2512: checking for $ac_func" >&5 2512if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2513 echo $ac_n "(cached) $ac_c" 1>&6 2514else 2515 cat > conftest.$ac_ext <<EOF 2516#line 2517 "configure" 2517#include "confdefs.h" 2518/* System header to define __stub macros and hopefully few prototypes, 2519 which can conflict with char $ac_func(); below. */ 2520#include <assert.h> 2521/* Override any gcc2 internal prototype to avoid an error. */ 2522/* We use char because int might match the return type of a gcc2 2523 builtin and then its argument prototype would still apply. */ 2524char $ac_func(); 2525 2526int main() { 2527 2528/* The GNU C library defines this for functions which it implements 2529 to always fail with ENOSYS. Some functions are actually named 2530 something starting with __ and the normal name is an alias. */ 2531#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2532choke me 2533#else 2534$ac_func(); 2535#endif 2536 2537; return 0; } 2538EOF 2539if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2540 rm -rf conftest* 2541 eval "ac_cv_func_$ac_func=yes" 2542else 2543 echo "configure: failed program was:" >&5 2544 cat conftest.$ac_ext >&5 2545 rm -rf conftest* 2546 eval "ac_cv_func_$ac_func=no" 2547fi 2548rm -f conftest* 2549fi 2550 2551if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2552 echo "$ac_t""yes" 1>&6 2553 cat >> confdefs.h <<EOF 2554#define CRAY_STACKSEG_END $ac_func 2555EOF 2556 2557 break 2558else 2559 echo "$ac_t""no" 1>&6 2560fi 2561 2562done 2563fi 2564 2565echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2566echo "configure:2567: checking stack direction for C alloca" >&5 2567if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2568 echo $ac_n "(cached) $ac_c" 1>&6 2569else 2570 if test "$cross_compiling" = yes; then 2571 ac_cv_c_stack_direction=0 2572else 2573 cat > conftest.$ac_ext <<EOF 2574#line 2575 "configure" 2575#include "confdefs.h" 2576find_stack_direction () 2577{ 2578 static char *addr = 0; 2579 auto char dummy; 2580 if (addr == 0) 2581 { 2582 addr = &dummy; 2583 return find_stack_direction (); 2584 } 2585 else 2586 return (&dummy > addr) ? 1 : -1; 2587} 2588main () 2589{ 2590 exit (find_stack_direction() < 0); 2591} 2592EOF 2593if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2594then 2595 ac_cv_c_stack_direction=1 2596else 2597 echo "configure: failed program was:" >&5 2598 cat conftest.$ac_ext >&5 2599 rm -fr conftest* 2600 ac_cv_c_stack_direction=-1 2601fi 2602rm -fr conftest* 2603fi 2604 2605fi 2606 2607echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2608cat >> confdefs.h <<EOF 2609#define STACK_DIRECTION $ac_cv_c_stack_direction 2610EOF 2611 2612fi 2613 2614for ac_hdr in unistd.h 2615do 2616ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2617echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2618echo "configure:2619: checking for $ac_hdr" >&5 2619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2620 echo $ac_n "(cached) $ac_c" 1>&6 2621else 2622 cat > conftest.$ac_ext <<EOF 2623#line 2624 "configure" 2624#include "confdefs.h" 2625#include <$ac_hdr> 2626EOF 2627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2628{ (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2630if test -z "$ac_err"; then 2631 rm -rf conftest* 2632 eval "ac_cv_header_$ac_safe=yes" 2633else 2634 echo "$ac_err" >&5 2635 echo "configure: failed program was:" >&5 2636 cat conftest.$ac_ext >&5 2637 rm -rf conftest* 2638 eval "ac_cv_header_$ac_safe=no" 2639fi 2640rm -f conftest* 2641fi 2642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2643 echo "$ac_t""yes" 1>&6 2644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2645 cat >> confdefs.h <<EOF 2646#define $ac_tr_hdr 1 2647EOF 2648 2649else 2650 echo "$ac_t""no" 1>&6 2651fi 2652done 2653 2654for ac_func in getpagesize 2655do 2656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2657echo "configure:2658: checking for $ac_func" >&5 2658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2659 echo $ac_n "(cached) $ac_c" 1>&6 2660else 2661 cat > conftest.$ac_ext <<EOF 2662#line 2663 "configure" 2663#include "confdefs.h" 2664/* System header to define __stub macros and hopefully few prototypes, 2665 which can conflict with char $ac_func(); below. */ 2666#include <assert.h> 2667/* Override any gcc2 internal prototype to avoid an error. */ 2668/* We use char because int might match the return type of a gcc2 2669 builtin and then its argument prototype would still apply. */ 2670char $ac_func(); 2671 2672int main() { 2673 2674/* The GNU C library defines this for functions which it implements 2675 to always fail with ENOSYS. Some functions are actually named 2676 something starting with __ and the normal name is an alias. */ 2677#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2678choke me 2679#else 2680$ac_func(); 2681#endif 2682 2683; return 0; } 2684EOF 2685if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2686 rm -rf conftest* 2687 eval "ac_cv_func_$ac_func=yes" 2688else 2689 echo "configure: failed program was:" >&5 2690 cat conftest.$ac_ext >&5 2691 rm -rf conftest* 2692 eval "ac_cv_func_$ac_func=no" 2693fi 2694rm -f conftest* 2695fi 2696 2697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2698 echo "$ac_t""yes" 1>&6 2699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2700 cat >> confdefs.h <<EOF 2701#define $ac_tr_func 1 2702EOF 2703 2704else 2705 echo "$ac_t""no" 1>&6 2706fi 2707done 2708 2709echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2710echo "configure:2711: checking for working mmap" >&5 2711if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2712 echo $ac_n "(cached) $ac_c" 1>&6 2713else 2714 if test "$cross_compiling" = yes; then 2715 ac_cv_func_mmap_fixed_mapped=no 2716else 2717 cat > conftest.$ac_ext <<EOF 2718#line 2719 "configure" 2719#include "confdefs.h" 2720 2721/* Thanks to Mike Haertel and Jim Avera for this test. 2722 Here is a matrix of mmap possibilities: 2723 mmap private not fixed 2724 mmap private fixed at somewhere currently unmapped 2725 mmap private fixed at somewhere already mapped 2726 mmap shared not fixed 2727 mmap shared fixed at somewhere currently unmapped 2728 mmap shared fixed at somewhere already mapped 2729 For private mappings, we should verify that changes cannot be read() 2730 back from the file, nor mmap's back from the file at a different 2731 address. (There have been systems where private was not correctly 2732 implemented like the infamous i386 svr4.0, and systems where the 2733 VM page cache was not coherent with the filesystem buffer cache 2734 like early versions of FreeBSD and possibly contemporary NetBSD.) 2735 For shared mappings, we should conversely verify that changes get 2736 propogated back to all the places they're supposed to be. 2737 2738 Grep wants private fixed already mapped. 2739 The main things grep needs to know about mmap are: 2740 * does it exist and is it safe to write into the mmap'd area 2741 * how to use it (BSD variants) */ 2742#include <sys/types.h> 2743#include <fcntl.h> 2744#include <sys/mman.h> 2745#include <stdlib.h> 2746#include <sys/stat.h> 2747 2748#ifdef HAVE_UNISTD_H 2749# include <unistd.h> 2750#endif 2751 2752/* This mess was copied from the GNU getpagesize.h. */ 2753#ifndef HAVE_GETPAGESIZE 2754 2755/* Assume that all systems that can run configure have sys/param.h. */ 2756# ifndef HAVE_SYS_PARAM_H 2757# define HAVE_SYS_PARAM_H 1 2758# endif 2759 2760# ifdef _SC_PAGESIZE 2761# define getpagesize() sysconf(_SC_PAGESIZE) 2762# else /* no _SC_PAGESIZE */ 2763# ifdef HAVE_SYS_PARAM_H 2764# include <sys/param.h> 2765# ifdef EXEC_PAGESIZE 2766# define getpagesize() EXEC_PAGESIZE 2767# else /* no EXEC_PAGESIZE */ 2768# ifdef NBPG 2769# define getpagesize() NBPG * CLSIZE 2770# ifndef CLSIZE 2771# define CLSIZE 1 2772# endif /* no CLSIZE */ 2773# else /* no NBPG */ 2774# ifdef NBPC 2775# define getpagesize() NBPC 2776# else /* no NBPC */ 2777# ifdef PAGESIZE 2778# define getpagesize() PAGESIZE 2779# endif /* PAGESIZE */ 2780# endif /* no NBPC */ 2781# endif /* no NBPG */ 2782# endif /* no EXEC_PAGESIZE */ 2783# else /* no HAVE_SYS_PARAM_H */ 2784# define getpagesize() 8192 /* punt totally */ 2785# endif /* no HAVE_SYS_PARAM_H */ 2786# endif /* no _SC_PAGESIZE */ 2787 2788#endif /* no HAVE_GETPAGESIZE */ 2789 2790#ifdef __cplusplus 2791extern "C" { void *malloc(unsigned); } 2792#else 2793char *malloc(); 2794#endif 2795 2796int 2797main() 2798{ 2799 char *data, *data2, *data3; 2800 int i, pagesize; 2801 int fd; 2802 2803 pagesize = getpagesize(); 2804 2805 /* 2806 * First, make a file with some known garbage in it. 2807 */ 2808 data = (char*)malloc(pagesize); 2809 if (!data) 2810 exit(1); 2811 for (i = 0; i < pagesize; ++i) 2812 *(data + i) = rand(); 2813 umask(0); 2814 fd = creat("conftestmmap", 0600); 2815 if (fd < 0) 2816 exit(1); 2817 if (write(fd, data, pagesize) != pagesize) 2818 exit(1); 2819 close(fd); 2820 2821 /* 2822 * Next, try to mmap the file at a fixed address which 2823 * already has something else allocated at it. If we can, 2824 * also make sure that we see the same garbage. 2825 */ 2826 fd = open("conftestmmap", O_RDWR); 2827 if (fd < 0) 2828 exit(1); 2829 data2 = (char*)malloc(2 * pagesize); 2830 if (!data2) 2831 exit(1); 2832 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 2833 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 2834 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 2835 exit(1); 2836 for (i = 0; i < pagesize; ++i) 2837 if (*(data + i) != *(data2 + i)) 2838 exit(1); 2839 2840 /* 2841 * Finally, make sure that changes to the mapped area 2842 * do not percolate back to the file as seen by read(). 2843 * (This is a bug on some variants of i386 svr4.0.) 2844 */ 2845 for (i = 0; i < pagesize; ++i) 2846 *(data2 + i) = *(data2 + i) + 1; 2847 data3 = (char*)malloc(pagesize); 2848 if (!data3) 2849 exit(1); 2850 if (read(fd, data3, pagesize) != pagesize) 2851 exit(1); 2852 for (i = 0; i < pagesize; ++i) 2853 if (*(data + i) != *(data3 + i)) 2854 exit(1); 2855 close(fd); 2856 unlink("conftestmmap"); 2857 exit(0); 2858} 2859 2860EOF 2861if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2862then 2863 ac_cv_func_mmap_fixed_mapped=yes 2864else 2865 echo "configure: failed program was:" >&5 2866 cat conftest.$ac_ext >&5 2867 rm -fr conftest* 2868 ac_cv_func_mmap_fixed_mapped=no 2869fi 2870rm -fr conftest* 2871fi 2872 2873fi 2874 2875echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 2876if test $ac_cv_func_mmap_fixed_mapped = yes; then 2877 cat >> confdefs.h <<\EOF 2878#define HAVE_MMAP 1 2879EOF 2880 2881fi 2882 2883 2884 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 2885unistd.h sys/param.h 2886do 2887ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2888echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2889echo "configure:2890: checking for $ac_hdr" >&5 2890if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2891 echo $ac_n "(cached) $ac_c" 1>&6 2892else 2893 cat > conftest.$ac_ext <<EOF 2894#line 2895 "configure" 2895#include "confdefs.h" 2896#include <$ac_hdr> 2897EOF 2898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2899{ (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2901if test -z "$ac_err"; then 2902 rm -rf conftest* 2903 eval "ac_cv_header_$ac_safe=yes" 2904else 2905 echo "$ac_err" >&5 2906 echo "configure: failed program was:" >&5 2907 cat conftest.$ac_ext >&5 2908 rm -rf conftest* 2909 eval "ac_cv_header_$ac_safe=no" 2910fi 2911rm -f conftest* 2912fi 2913if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2914 echo "$ac_t""yes" 1>&6 2915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2916 cat >> confdefs.h <<EOF 2917#define $ac_tr_hdr 1 2918EOF 2919 2920else 2921 echo "$ac_t""no" 1>&6 2922fi 2923done 2924 2925 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 2926strdup __argz_count __argz_stringify __argz_next 2927do 2928echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2929echo "configure:2930: checking for $ac_func" >&5 2930if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2931 echo $ac_n "(cached) $ac_c" 1>&6 2932else 2933 cat > conftest.$ac_ext <<EOF 2934#line 2935 "configure" 2935#include "confdefs.h" 2936/* System header to define __stub macros and hopefully few prototypes, 2937 which can conflict with char $ac_func(); below. */ 2938#include <assert.h> 2939/* Override any gcc2 internal prototype to avoid an error. */ 2940/* We use char because int might match the return type of a gcc2 2941 builtin and then its argument prototype would still apply. */ 2942char $ac_func(); 2943 2944int main() { 2945 2946/* The GNU C library defines this for functions which it implements 2947 to always fail with ENOSYS. Some functions are actually named 2948 something starting with __ and the normal name is an alias. */ 2949#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2950choke me 2951#else 2952$ac_func(); 2953#endif 2954 2955; return 0; } 2956EOF 2957if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2958 rm -rf conftest* 2959 eval "ac_cv_func_$ac_func=yes" 2960else 2961 echo "configure: failed program was:" >&5 2962 cat conftest.$ac_ext >&5 2963 rm -rf conftest* 2964 eval "ac_cv_func_$ac_func=no" 2965fi 2966rm -f conftest* 2967fi 2968 2969if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2970 echo "$ac_t""yes" 1>&6 2971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2972 cat >> confdefs.h <<EOF 2973#define $ac_tr_func 1 2974EOF 2975 2976else 2977 echo "$ac_t""no" 1>&6 2978fi 2979done 2980 2981 2982 if test "${ac_cv_func_stpcpy+set}" != "set"; then 2983 for ac_func in stpcpy 2984do 2985echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2986echo "configure:2987: checking for $ac_func" >&5 2987if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2988 echo $ac_n "(cached) $ac_c" 1>&6 2989else 2990 cat > conftest.$ac_ext <<EOF 2991#line 2992 "configure" 2992#include "confdefs.h" 2993/* System header to define __stub macros and hopefully few prototypes, 2994 which can conflict with char $ac_func(); below. */ 2995#include <assert.h> 2996/* Override any gcc2 internal prototype to avoid an error. */ 2997/* We use char because int might match the return type of a gcc2 2998 builtin and then its argument prototype would still apply. */ 2999char $ac_func(); 3000 3001int main() { 3002 3003/* The GNU C library defines this for functions which it implements 3004 to always fail with ENOSYS. Some functions are actually named 3005 something starting with __ and the normal name is an alias. */ 3006#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3007choke me 3008#else 3009$ac_func(); 3010#endif 3011 3012; return 0; } 3013EOF 3014if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3015 rm -rf conftest* 3016 eval "ac_cv_func_$ac_func=yes" 3017else 3018 echo "configure: failed program was:" >&5 3019 cat conftest.$ac_ext >&5 3020 rm -rf conftest* 3021 eval "ac_cv_func_$ac_func=no" 3022fi 3023rm -f conftest* 3024fi 3025 3026if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3027 echo "$ac_t""yes" 1>&6 3028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3029 cat >> confdefs.h <<EOF 3030#define $ac_tr_func 1 3031EOF 3032 3033else 3034 echo "$ac_t""no" 1>&6 3035fi 3036done 3037 3038 fi 3039 if test "${ac_cv_func_stpcpy}" = "yes"; then 3040 cat >> confdefs.h <<\EOF 3041#define HAVE_STPCPY 1 3042EOF 3043 3044 fi 3045 3046 if test $ac_cv_header_locale_h = yes; then 3047 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 3048echo "configure:3049: checking for LC_MESSAGES" >&5 3049if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 3050 echo $ac_n "(cached) $ac_c" 1>&6 3051else 3052 cat > conftest.$ac_ext <<EOF 3053#line 3054 "configure" 3054#include "confdefs.h" 3055#include <locale.h> 3056int main() { 3057return LC_MESSAGES 3058; return 0; } 3059EOF 3060if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3061 rm -rf conftest* 3062 am_cv_val_LC_MESSAGES=yes 3063else 3064 echo "configure: failed program was:" >&5 3065 cat conftest.$ac_ext >&5 3066 rm -rf conftest* 3067 am_cv_val_LC_MESSAGES=no 3068fi 3069rm -f conftest* 3070fi 3071 3072echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 3073 if test $am_cv_val_LC_MESSAGES = yes; then 3074 cat >> confdefs.h <<\EOF 3075#define HAVE_LC_MESSAGES 1 3076EOF 3077 3078 fi 3079 fi 3080 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 3081echo "configure:3082: checking whether NLS is requested" >&5 3082 # Check whether --enable-nls or --disable-nls was given. 3083if test "${enable_nls+set}" = set; then 3084 enableval="$enable_nls" 3085 USE_NLS=$enableval 3086else 3087 USE_NLS=yes 3088fi 3089 3090 echo "$ac_t""$USE_NLS" 1>&6 3091 3092 3093 USE_INCLUDED_LIBINTL=no 3094 3095 if test "$USE_NLS" = "yes"; then 3096 cat >> confdefs.h <<\EOF 3097#define ENABLE_NLS 1 3098EOF 3099 3100 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 3101echo "configure:3102: checking whether included gettext is requested" >&5 3102 # Check whether --with-included-gettext or --without-included-gettext was given. 3103if test "${with_included_gettext+set}" = set; then 3104 withval="$with_included_gettext" 3105 nls_cv_force_use_gnu_gettext=$withval 3106else 3107 nls_cv_force_use_gnu_gettext=no 3108fi 3109 3110 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 3111 3112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 3113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 3114 nls_cv_header_intl= 3115 nls_cv_header_libgt= 3116 CATOBJEXT=NONE 3117 3118 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 3119echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 3120echo "configure:3121: checking for libintl.h" >&5 3121if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3122 echo $ac_n "(cached) $ac_c" 1>&6 3123else 3124 cat > conftest.$ac_ext <<EOF 3125#line 3126 "configure" 3126#include "confdefs.h" 3127#include <libintl.h> 3128EOF 3129ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3130{ (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3131ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3132if test -z "$ac_err"; then 3133 rm -rf conftest* 3134 eval "ac_cv_header_$ac_safe=yes" 3135else 3136 echo "$ac_err" >&5 3137 echo "configure: failed program was:" >&5 3138 cat conftest.$ac_ext >&5 3139 rm -rf conftest* 3140 eval "ac_cv_header_$ac_safe=no" 3141fi 3142rm -f conftest* 3143fi 3144if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3145 echo "$ac_t""yes" 1>&6 3146 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 3147echo "configure:3148: checking for gettext in libc" >&5 3148if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 3149 echo $ac_n "(cached) $ac_c" 1>&6 3150else 3151 cat > conftest.$ac_ext <<EOF 3152#line 3153 "configure" 3153#include "confdefs.h" 3154#include <libintl.h> 3155int main() { 3156return (int) gettext ("") 3157; return 0; } 3158EOF 3159if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3160 rm -rf conftest* 3161 gt_cv_func_gettext_libc=yes 3162else 3163 echo "configure: failed program was:" >&5 3164 cat conftest.$ac_ext >&5 3165 rm -rf conftest* 3166 gt_cv_func_gettext_libc=no 3167fi 3168rm -f conftest* 3169fi 3170 3171echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 3172 3173 if test "$gt_cv_func_gettext_libc" != "yes"; then 3174 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 3175echo "configure:3176: checking for bindtextdomain in -lintl" >&5 3176ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 3177if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3178 echo $ac_n "(cached) $ac_c" 1>&6 3179else 3180 ac_save_LIBS="$LIBS" 3181LIBS="-lintl $LIBS" 3182cat > conftest.$ac_ext <<EOF 3183#line 3184 "configure" 3184#include "confdefs.h" 3185/* Override any gcc2 internal prototype to avoid an error. */ 3186/* We use char because int might match the return type of a gcc2 3187 builtin and then its argument prototype would still apply. */ 3188char bindtextdomain(); 3189 3190int main() { 3191bindtextdomain() 3192; return 0; } 3193EOF 3194if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3195 rm -rf conftest* 3196 eval "ac_cv_lib_$ac_lib_var=yes" 3197else 3198 echo "configure: failed program was:" >&5 3199 cat conftest.$ac_ext >&5 3200 rm -rf conftest* 3201 eval "ac_cv_lib_$ac_lib_var=no" 3202fi 3203rm -f conftest* 3204LIBS="$ac_save_LIBS" 3205 3206fi 3207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3208 echo "$ac_t""yes" 1>&6 3209 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 3210echo "configure:3211: checking for gettext in libintl" >&5 3211if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 3212 echo $ac_n "(cached) $ac_c" 1>&6 3213else 3214 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 3215echo "configure:3216: checking for gettext in -lintl" >&5 3216ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` 3217if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3218 echo $ac_n "(cached) $ac_c" 1>&6 3219else 3220 ac_save_LIBS="$LIBS" 3221LIBS="-lintl $LIBS" 3222cat > conftest.$ac_ext <<EOF 3223#line 3224 "configure" 3224#include "confdefs.h" 3225/* Override any gcc2 internal prototype to avoid an error. */ 3226/* We use char because int might match the return type of a gcc2 3227 builtin and then its argument prototype would still apply. */ 3228char gettext(); 3229 3230int main() { 3231gettext() 3232; return 0; } 3233EOF 3234if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3235 rm -rf conftest* 3236 eval "ac_cv_lib_$ac_lib_var=yes" 3237else 3238 echo "configure: failed program was:" >&5 3239 cat conftest.$ac_ext >&5 3240 rm -rf conftest* 3241 eval "ac_cv_lib_$ac_lib_var=no" 3242fi 3243rm -f conftest* 3244LIBS="$ac_save_LIBS" 3245 3246fi 3247if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3248 echo "$ac_t""yes" 1>&6 3249 gt_cv_func_gettext_libintl=yes 3250else 3251 echo "$ac_t""no" 1>&6 3252gt_cv_func_gettext_libintl=no 3253fi 3254 3255fi 3256 3257echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 3258else 3259 echo "$ac_t""no" 1>&6 3260fi 3261 3262 fi 3263 3264 if test "$gt_cv_func_gettext_libc" = "yes" \ 3265 || test "$gt_cv_func_gettext_libintl" = "yes"; then 3266 cat >> confdefs.h <<\EOF 3267#define HAVE_GETTEXT 1 3268EOF 3269 3270 # Extract the first word of "msgfmt", so it can be a program name with args. 3271set dummy msgfmt; ac_word=$2 3272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3273echo "configure:3274: checking for $ac_word" >&5 3274if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3275 echo $ac_n "(cached) $ac_c" 1>&6 3276else 3277 case "$MSGFMT" in 3278 /*) 3279 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3280 ;; 3281 *) 3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3283 for ac_dir in $PATH; do 3284 test -z "$ac_dir" && ac_dir=. 3285 if test -f $ac_dir/$ac_word; then 3286 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3287 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3288 break 3289 fi 3290 fi 3291 done 3292 IFS="$ac_save_ifs" 3293 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 3294 ;; 3295esac 3296fi 3297MSGFMT="$ac_cv_path_MSGFMT" 3298if test -n "$MSGFMT"; then 3299 echo "$ac_t""$MSGFMT" 1>&6 3300else 3301 echo "$ac_t""no" 1>&6 3302fi 3303 if test "$MSGFMT" != "no"; then 3304 for ac_func in dcgettext 3305do 3306echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3307echo "configure:3308: checking for $ac_func" >&5 3308if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3309 echo $ac_n "(cached) $ac_c" 1>&6 3310else 3311 cat > conftest.$ac_ext <<EOF 3312#line 3313 "configure" 3313#include "confdefs.h" 3314/* System header to define __stub macros and hopefully few prototypes, 3315 which can conflict with char $ac_func(); below. */ 3316#include <assert.h> 3317/* Override any gcc2 internal prototype to avoid an error. */ 3318/* We use char because int might match the return type of a gcc2 3319 builtin and then its argument prototype would still apply. */ 3320char $ac_func(); 3321 3322int main() { 3323 3324/* The GNU C library defines this for functions which it implements 3325 to always fail with ENOSYS. Some functions are actually named 3326 something starting with __ and the normal name is an alias. */ 3327#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3328choke me 3329#else 3330$ac_func(); 3331#endif 3332 3333; return 0; } 3334EOF 3335if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3336 rm -rf conftest* 3337 eval "ac_cv_func_$ac_func=yes" 3338else 3339 echo "configure: failed program was:" >&5 3340 cat conftest.$ac_ext >&5 3341 rm -rf conftest* 3342 eval "ac_cv_func_$ac_func=no" 3343fi 3344rm -f conftest* 3345fi 3346 3347if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3348 echo "$ac_t""yes" 1>&6 3349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3350 cat >> confdefs.h <<EOF 3351#define $ac_tr_func 1 3352EOF 3353 3354else 3355 echo "$ac_t""no" 1>&6 3356fi 3357done 3358 3359 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3360set dummy gmsgfmt; ac_word=$2 3361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3362echo "configure:3363: checking for $ac_word" >&5 3363if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3364 echo $ac_n "(cached) $ac_c" 1>&6 3365else 3366 case "$GMSGFMT" in 3367 /*) 3368 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3369 ;; 3370 ?:/*) 3371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3372 ;; 3373 *) 3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3375 ac_dummy="$PATH" 3376 for ac_dir in $ac_dummy; do 3377 test -z "$ac_dir" && ac_dir=. 3378 if test -f $ac_dir/$ac_word; then 3379 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3380 break 3381 fi 3382 done 3383 IFS="$ac_save_ifs" 3384 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3385 ;; 3386esac 3387fi 3388GMSGFMT="$ac_cv_path_GMSGFMT" 3389if test -n "$GMSGFMT"; then 3390 echo "$ac_t""$GMSGFMT" 1>&6 3391else 3392 echo "$ac_t""no" 1>&6 3393fi 3394 3395 # Extract the first word of "xgettext", so it can be a program name with args. 3396set dummy xgettext; ac_word=$2 3397echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3398echo "configure:3399: checking for $ac_word" >&5 3399if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3400 echo $ac_n "(cached) $ac_c" 1>&6 3401else 3402 case "$XGETTEXT" in 3403 /*) 3404 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3405 ;; 3406 *) 3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3408 for ac_dir in $PATH; do 3409 test -z "$ac_dir" && ac_dir=. 3410 if test -f $ac_dir/$ac_word; then 3411 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3412 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3413 break 3414 fi 3415 fi 3416 done 3417 IFS="$ac_save_ifs" 3418 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3419 ;; 3420esac 3421fi 3422XGETTEXT="$ac_cv_path_XGETTEXT" 3423if test -n "$XGETTEXT"; then 3424 echo "$ac_t""$XGETTEXT" 1>&6 3425else 3426 echo "$ac_t""no" 1>&6 3427fi 3428 3429 cat > conftest.$ac_ext <<EOF 3430#line 3431 "configure" 3431#include "confdefs.h" 3432 3433int main() { 3434extern int _nl_msg_cat_cntr; 3435 return _nl_msg_cat_cntr 3436; return 0; } 3437EOF 3438if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3439 rm -rf conftest* 3440 CATOBJEXT=.gmo 3441 DATADIRNAME=share 3442else 3443 echo "configure: failed program was:" >&5 3444 cat conftest.$ac_ext >&5 3445 rm -rf conftest* 3446 CATOBJEXT=.mo 3447 DATADIRNAME=lib 3448fi 3449rm -f conftest* 3450 INSTOBJEXT=.mo 3451 fi 3452 fi 3453 3454else 3455 echo "$ac_t""no" 1>&6 3456fi 3457 3458 3459 if test "$CATOBJEXT" = "NONE"; then 3460 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 3461echo "configure:3462: checking whether catgets can be used" >&5 3462 # Check whether --with-catgets or --without-catgets was given. 3463if test "${with_catgets+set}" = set; then 3464 withval="$with_catgets" 3465 nls_cv_use_catgets=$withval 3466else 3467 nls_cv_use_catgets=no 3468fi 3469 3470 echo "$ac_t""$nls_cv_use_catgets" 1>&6 3471 3472 if test "$nls_cv_use_catgets" = "yes"; then 3473 echo $ac_n "checking for main in -li""... $ac_c" 1>&6 3474echo "configure:3475: checking for main in -li" >&5 3475ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` 3476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3477 echo $ac_n "(cached) $ac_c" 1>&6 3478else 3479 ac_save_LIBS="$LIBS" 3480LIBS="-li $LIBS" 3481cat > conftest.$ac_ext <<EOF 3482#line 3483 "configure" 3483#include "confdefs.h" 3484 3485int main() { 3486main() 3487; return 0; } 3488EOF 3489if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3490 rm -rf conftest* 3491 eval "ac_cv_lib_$ac_lib_var=yes" 3492else 3493 echo "configure: failed program was:" >&5 3494 cat conftest.$ac_ext >&5 3495 rm -rf conftest* 3496 eval "ac_cv_lib_$ac_lib_var=no" 3497fi 3498rm -f conftest* 3499LIBS="$ac_save_LIBS" 3500 3501fi 3502if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3503 echo "$ac_t""yes" 1>&6 3504 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3506 cat >> confdefs.h <<EOF 3507#define $ac_tr_lib 1 3508EOF 3509 3510 LIBS="-li $LIBS" 3511 3512else 3513 echo "$ac_t""no" 1>&6 3514fi 3515 3516 echo $ac_n "checking for catgets""... $ac_c" 1>&6 3517echo "configure:3518: checking for catgets" >&5 3518if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then 3519 echo $ac_n "(cached) $ac_c" 1>&6 3520else 3521 cat > conftest.$ac_ext <<EOF 3522#line 3523 "configure" 3523#include "confdefs.h" 3524/* System header to define __stub macros and hopefully few prototypes, 3525 which can conflict with char catgets(); below. */ 3526#include <assert.h> 3527/* Override any gcc2 internal prototype to avoid an error. */ 3528/* We use char because int might match the return type of a gcc2 3529 builtin and then its argument prototype would still apply. */ 3530char catgets(); 3531 3532int main() { 3533 3534/* The GNU C library defines this for functions which it implements 3535 to always fail with ENOSYS. Some functions are actually named 3536 something starting with __ and the normal name is an alias. */ 3537#if defined (__stub_catgets) || defined (__stub___catgets) 3538choke me 3539#else 3540catgets(); 3541#endif 3542 3543; return 0; } 3544EOF 3545if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3546 rm -rf conftest* 3547 eval "ac_cv_func_catgets=yes" 3548else 3549 echo "configure: failed program was:" >&5 3550 cat conftest.$ac_ext >&5 3551 rm -rf conftest* 3552 eval "ac_cv_func_catgets=no" 3553fi 3554rm -f conftest* 3555fi 3556 3557if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then 3558 echo "$ac_t""yes" 1>&6 3559 cat >> confdefs.h <<\EOF 3560#define HAVE_CATGETS 1 3561EOF 3562 3563 INTLOBJS="\$(CATOBJS)" 3564 # Extract the first word of "gencat", so it can be a program name with args. 3565set dummy gencat; ac_word=$2 3566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3567echo "configure:3568: checking for $ac_word" >&5 3568if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then 3569 echo $ac_n "(cached) $ac_c" 1>&6 3570else 3571 case "$GENCAT" in 3572 /*) 3573 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. 3574 ;; 3575 ?:/*) 3576 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. 3577 ;; 3578 *) 3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3580 ac_dummy="$PATH" 3581 for ac_dir in $ac_dummy; do 3582 test -z "$ac_dir" && ac_dir=. 3583 if test -f $ac_dir/$ac_word; then 3584 ac_cv_path_GENCAT="$ac_dir/$ac_word" 3585 break 3586 fi 3587 done 3588 IFS="$ac_save_ifs" 3589 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" 3590 ;; 3591esac 3592fi 3593GENCAT="$ac_cv_path_GENCAT" 3594if test -n "$GENCAT"; then 3595 echo "$ac_t""$GENCAT" 1>&6 3596else 3597 echo "$ac_t""no" 1>&6 3598fi 3599 if test "$GENCAT" != "no"; then 3600 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3601set dummy gmsgfmt; ac_word=$2 3602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3603echo "configure:3604: checking for $ac_word" >&5 3604if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3605 echo $ac_n "(cached) $ac_c" 1>&6 3606else 3607 case "$GMSGFMT" in 3608 /*) 3609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3610 ;; 3611 ?:/*) 3612 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3613 ;; 3614 *) 3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3616 ac_dummy="$PATH" 3617 for ac_dir in $ac_dummy; do 3618 test -z "$ac_dir" && ac_dir=. 3619 if test -f $ac_dir/$ac_word; then 3620 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3621 break 3622 fi 3623 done 3624 IFS="$ac_save_ifs" 3625 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 3626 ;; 3627esac 3628fi 3629GMSGFMT="$ac_cv_path_GMSGFMT" 3630if test -n "$GMSGFMT"; then 3631 echo "$ac_t""$GMSGFMT" 1>&6 3632else 3633 echo "$ac_t""no" 1>&6 3634fi 3635 3636 if test "$GMSGFMT" = "no"; then 3637 # Extract the first word of "msgfmt", so it can be a program name with args. 3638set dummy msgfmt; ac_word=$2 3639echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3640echo "configure:3641: checking for $ac_word" >&5 3641if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3642 echo $ac_n "(cached) $ac_c" 1>&6 3643else 3644 case "$GMSGFMT" in 3645 /*) 3646 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3647 ;; 3648 *) 3649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3650 for ac_dir in $PATH; do 3651 test -z "$ac_dir" && ac_dir=. 3652 if test -f $ac_dir/$ac_word; then 3653 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3654 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3655 break 3656 fi 3657 fi 3658 done 3659 IFS="$ac_save_ifs" 3660 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 3661 ;; 3662esac 3663fi 3664GMSGFMT="$ac_cv_path_GMSGFMT" 3665if test -n "$GMSGFMT"; then 3666 echo "$ac_t""$GMSGFMT" 1>&6 3667else 3668 echo "$ac_t""no" 1>&6 3669fi 3670 3671 fi 3672 # Extract the first word of "xgettext", so it can be a program name with args. 3673set dummy xgettext; ac_word=$2 3674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3675echo "configure:3676: checking for $ac_word" >&5 3676if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3677 echo $ac_n "(cached) $ac_c" 1>&6 3678else 3679 case "$XGETTEXT" in 3680 /*) 3681 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3682 ;; 3683 *) 3684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3685 for ac_dir in $PATH; do 3686 test -z "$ac_dir" && ac_dir=. 3687 if test -f $ac_dir/$ac_word; then 3688 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3689 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3690 break 3691 fi 3692 fi 3693 done 3694 IFS="$ac_save_ifs" 3695 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3696 ;; 3697esac 3698fi 3699XGETTEXT="$ac_cv_path_XGETTEXT" 3700if test -n "$XGETTEXT"; then 3701 echo "$ac_t""$XGETTEXT" 1>&6 3702else 3703 echo "$ac_t""no" 1>&6 3704fi 3705 3706 USE_INCLUDED_LIBINTL=yes 3707 CATOBJEXT=.cat 3708 INSTOBJEXT=.cat 3709 DATADIRNAME=lib 3710 INTLDEPS='$(top_builddir)/intl/libintl.a' 3711 INTLLIBS=$INTLDEPS 3712 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 3713 nls_cv_header_intl=intl/libintl.h 3714 nls_cv_header_libgt=intl/libgettext.h 3715 fi 3716else 3717 echo "$ac_t""no" 1>&6 3718fi 3719 3720 fi 3721 fi 3722 3723 if test "$CATOBJEXT" = "NONE"; then 3724 nls_cv_use_gnu_gettext=yes 3725 fi 3726 fi 3727 3728 if test "$nls_cv_use_gnu_gettext" = "yes"; then 3729 INTLOBJS="\$(GETTOBJS)" 3730 # Extract the first word of "msgfmt", so it can be a program name with args. 3731set dummy msgfmt; ac_word=$2 3732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3733echo "configure:3734: checking for $ac_word" >&5 3734if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3735 echo $ac_n "(cached) $ac_c" 1>&6 3736else 3737 case "$MSGFMT" in 3738 /*) 3739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3740 ;; 3741 *) 3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3743 for ac_dir in $PATH; do 3744 test -z "$ac_dir" && ac_dir=. 3745 if test -f $ac_dir/$ac_word; then 3746 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3747 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3748 break 3749 fi 3750 fi 3751 done 3752 IFS="$ac_save_ifs" 3753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 3754 ;; 3755esac 3756fi 3757MSGFMT="$ac_cv_path_MSGFMT" 3758if test -n "$MSGFMT"; then 3759 echo "$ac_t""$MSGFMT" 1>&6 3760else 3761 echo "$ac_t""no" 1>&6 3762fi 3763 3764 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3765set dummy gmsgfmt; ac_word=$2 3766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3767echo "configure:3768: checking for $ac_word" >&5 3768if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3769 echo $ac_n "(cached) $ac_c" 1>&6 3770else 3771 case "$GMSGFMT" in 3772 /*) 3773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3774 ;; 3775 ?:/*) 3776 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3777 ;; 3778 *) 3779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3780 ac_dummy="$PATH" 3781 for ac_dir in $ac_dummy; do 3782 test -z "$ac_dir" && ac_dir=. 3783 if test -f $ac_dir/$ac_word; then 3784 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3785 break 3786 fi 3787 done 3788 IFS="$ac_save_ifs" 3789 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3790 ;; 3791esac 3792fi 3793GMSGFMT="$ac_cv_path_GMSGFMT" 3794if test -n "$GMSGFMT"; then 3795 echo "$ac_t""$GMSGFMT" 1>&6 3796else 3797 echo "$ac_t""no" 1>&6 3798fi 3799 3800 # Extract the first word of "xgettext", so it can be a program name with args. 3801set dummy xgettext; ac_word=$2 3802echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3803echo "configure:3804: checking for $ac_word" >&5 3804if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3805 echo $ac_n "(cached) $ac_c" 1>&6 3806else 3807 case "$XGETTEXT" in 3808 /*) 3809 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3810 ;; 3811 *) 3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3813 for ac_dir in $PATH; do 3814 test -z "$ac_dir" && ac_dir=. 3815 if test -f $ac_dir/$ac_word; then 3816 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3818 break 3819 fi 3820 fi 3821 done 3822 IFS="$ac_save_ifs" 3823 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3824 ;; 3825esac 3826fi 3827XGETTEXT="$ac_cv_path_XGETTEXT" 3828if test -n "$XGETTEXT"; then 3829 echo "$ac_t""$XGETTEXT" 1>&6 3830else 3831 echo "$ac_t""no" 1>&6 3832fi 3833 3834 3835 USE_INCLUDED_LIBINTL=yes 3836 CATOBJEXT=.gmo 3837 INSTOBJEXT=.mo 3838 DATADIRNAME=share 3839 INTLDEPS='$(top_builddir)/intl/libintl.a' 3840 INTLLIBS=$INTLDEPS 3841 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 3842 nls_cv_header_intl=intl/libintl.h 3843 nls_cv_header_libgt=intl/libgettext.h 3844 fi 3845 3846 if test "$XGETTEXT" != ":"; then 3847 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 3848 : ; 3849 else 3850 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 3851 XGETTEXT=":" 3852 fi 3853 fi 3854 3855 # We need to process the po/ directory. 3856 POSUB=po 3857 else 3858 DATADIRNAME=share 3859 nls_cv_header_intl=intl/libintl.h 3860 nls_cv_header_libgt=intl/libgettext.h 3861 fi 3862 3863 3864 3865 3866 # If this is used in GNU gettext we have to set USE_NLS to `yes' 3867 # because some of the sources are only built for this goal. 3868 if test "$PACKAGE" = gettext; then 3869 USE_NLS=yes 3870 USE_INCLUDED_LIBINTL=yes 3871 fi 3872 3873 for lang in $ALL_LINGUAS; do 3874 GMOFILES="$GMOFILES $lang.gmo" 3875 POFILES="$POFILES $lang.po" 3876 done 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 if test "x$CATOBJEXT" != "x"; then 3892 if test "x$ALL_LINGUAS" = "x"; then 3893 LINGUAS= 3894 else 3895 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 3896echo "configure:3897: checking for catalogs to be installed" >&5 3897 NEW_LINGUAS= 3898 for lang in ${LINGUAS=$ALL_LINGUAS}; do 3899 case "$ALL_LINGUAS" in 3900 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 3901 esac 3902 done 3903 LINGUAS=$NEW_LINGUAS 3904 echo "$ac_t""$LINGUAS" 1>&6 3905 fi 3906 3907 if test -n "$LINGUAS"; then 3908 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 3909 fi 3910 fi 3911 3912 if test $ac_cv_header_locale_h = yes; then 3913 INCLUDE_LOCALE_H="#include <locale.h>" 3914 else 3915 INCLUDE_LOCALE_H="\ 3916/* The system does not provide the header <locale.h>. Take care yourself. */" 3917 fi 3918 3919 3920 test -d intl || mkdir intl 3921 if test "$CATOBJEXT" = ".cat"; then 3922 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 3923echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 3924echo "configure:3925: checking for linux/version.h" >&5 3925if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3926 echo $ac_n "(cached) $ac_c" 1>&6 3927else 3928 cat > conftest.$ac_ext <<EOF 3929#line 3930 "configure" 3930#include "confdefs.h" 3931#include <linux/version.h> 3932EOF 3933ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3934{ (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3935ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3936if test -z "$ac_err"; then 3937 rm -rf conftest* 3938 eval "ac_cv_header_$ac_safe=yes" 3939else 3940 echo "$ac_err" >&5 3941 echo "configure: failed program was:" >&5 3942 cat conftest.$ac_ext >&5 3943 rm -rf conftest* 3944 eval "ac_cv_header_$ac_safe=no" 3945fi 3946rm -f conftest* 3947fi 3948if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3949 echo "$ac_t""yes" 1>&6 3950 msgformat=linux 3951else 3952 echo "$ac_t""no" 1>&6 3953msgformat=xopen 3954fi 3955 3956 3957 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed 3958 fi 3959 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 3960 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed 3961 3962 if test "$PACKAGE" = "gettext"; then 3963 GT_NO="#NO#" 3964 GT_YES= 3965 else 3966 GT_NO= 3967 GT_YES="#YES#" 3968 fi 3969 3970 3971 3972 MKINSTALLDIRS= 3973 if test -n "$ac_aux_dir"; then 3974 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 3975 fi 3976 if test -z "$MKINSTALLDIRS"; then 3977 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3978 fi 3979 3980 3981 l= 3982 3983 3984 test -d po || mkdir po 3985 if test "x$srcdir" != "x."; then 3986 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 3987 posrcprefix="$srcdir/" 3988 else 3989 posrcprefix="../$srcdir/" 3990 fi 3991 else 3992 posrcprefix="../" 3993 fi 3994 rm -f po/POTFILES 3995 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 3996 < $srcdir/po/POTFILES.in > po/POTFILES 3997 3998 3999LIBS="$LIBS $X_LIBS" 4000CFLAGS="$CFLAGS $X_CFLAGS" 4001 4002echo $ac_n "checking for XDrawString in -lX11""... $ac_c" 1>&6 4003echo "configure:4004: checking for XDrawString in -lX11" >&5 4004ac_lib_var=`echo X11'_'XDrawString | sed 'y%./+-%__p_%'` 4005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4006 echo $ac_n "(cached) $ac_c" 1>&6 4007else 4008 ac_save_LIBS="$LIBS" 4009LIBS="-lX11 $LIBS" 4010cat > conftest.$ac_ext <<EOF 4011#line 4012 "configure" 4012#include "confdefs.h" 4013/* Override any gcc2 internal prototype to avoid an error. */ 4014/* We use char because int might match the return type of a gcc2 4015 builtin and then its argument prototype would still apply. */ 4016char XDrawString(); 4017 4018int main() { 4019XDrawString() 4020; return 0; } 4021EOF 4022if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4023 rm -rf conftest* 4024 eval "ac_cv_lib_$ac_lib_var=yes" 4025else 4026 echo "configure: failed program was:" >&5 4027 cat conftest.$ac_ext >&5 4028 rm -rf conftest* 4029 eval "ac_cv_lib_$ac_lib_var=no" 4030fi 4031rm -f conftest* 4032LIBS="$ac_save_LIBS" 4033 4034fi 4035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4036 echo "$ac_t""yes" 1>&6 4037 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4039 cat >> confdefs.h <<EOF 4040#define $ac_tr_lib 1 4041EOF 4042 4043 LIBS="-lX11 $LIBS" 4044 4045else 4046 echo "$ac_t""no" 1>&6 4047fi 4048 4049echo $ac_n "checking for XtInitialize in -lXt""... $ac_c" 1>&6 4050echo "configure:4051: checking for XtInitialize in -lXt" >&5 4051ac_lib_var=`echo Xt'_'XtInitialize | sed 'y%./+-%__p_%'` 4052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4053 echo $ac_n "(cached) $ac_c" 1>&6 4054else 4055 ac_save_LIBS="$LIBS" 4056LIBS="-lXt $LIBS" 4057cat > conftest.$ac_ext <<EOF 4058#line 4059 "configure" 4059#include "confdefs.h" 4060/* Override any gcc2 internal prototype to avoid an error. */ 4061/* We use char because int might match the return type of a gcc2 4062 builtin and then its argument prototype would still apply. */ 4063char XtInitialize(); 4064 4065int main() { 4066XtInitialize() 4067; return 0; } 4068EOF 4069if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4070 rm -rf conftest* 4071 eval "ac_cv_lib_$ac_lib_var=yes" 4072else 4073 echo "configure: failed program was:" >&5 4074 cat conftest.$ac_ext >&5 4075 rm -rf conftest* 4076 eval "ac_cv_lib_$ac_lib_var=no" 4077fi 4078rm -f conftest* 4079LIBS="$ac_save_LIBS" 4080 4081fi 4082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4083 echo "$ac_t""yes" 1>&6 4084 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4086 cat >> confdefs.h <<EOF 4087#define $ac_tr_lib 1 4088EOF 4089 4090 LIBS="-lXt $LIBS" 4091 4092else 4093 echo "$ac_t""no" 1>&6 4094fi 4095 4096echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6 4097echo "configure:4098: checking for main in -lXmu" >&5 4098ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'` 4099if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4100 echo $ac_n "(cached) $ac_c" 1>&6 4101else 4102 ac_save_LIBS="$LIBS" 4103LIBS="-lXmu $LIBS" 4104cat > conftest.$ac_ext <<EOF 4105#line 4106 "configure" 4106#include "confdefs.h" 4107 4108int main() { 4109main() 4110; return 0; } 4111EOF 4112if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4113 rm -rf conftest* 4114 eval "ac_cv_lib_$ac_lib_var=yes" 4115else 4116 echo "configure: failed program was:" >&5 4117 cat conftest.$ac_ext >&5 4118 rm -rf conftest* 4119 eval "ac_cv_lib_$ac_lib_var=no" 4120fi 4121rm -f conftest* 4122LIBS="$ac_save_LIBS" 4123 4124fi 4125if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4126 echo "$ac_t""yes" 1>&6 4127 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4129 cat >> confdefs.h <<EOF 4130#define $ac_tr_lib 1 4131EOF 4132 4133 LIBS="-lXmu $LIBS" 4134 4135else 4136 echo "$ac_t""no" 1>&6 4137fi 4138 4139echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6 4140echo "configure:4141: checking for main in -lXaw" >&5 4141ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'` 4142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4143 echo $ac_n "(cached) $ac_c" 1>&6 4144else 4145 ac_save_LIBS="$LIBS" 4146LIBS="-lXaw $LIBS" 4147cat > conftest.$ac_ext <<EOF 4148#line 4149 "configure" 4149#include "confdefs.h" 4150 4151int main() { 4152main() 4153; return 0; } 4154EOF 4155if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4156 rm -rf conftest* 4157 eval "ac_cv_lib_$ac_lib_var=yes" 4158else 4159 echo "configure: failed program was:" >&5 4160 cat conftest.$ac_ext >&5 4161 rm -rf conftest* 4162 eval "ac_cv_lib_$ac_lib_var=no" 4163fi 4164rm -f conftest* 4165LIBS="$ac_save_LIBS" 4166 4167fi 4168if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4169 echo "$ac_t""yes" 1>&6 4170 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4172 cat >> confdefs.h <<EOF 4173#define $ac_tr_lib 1 4174EOF 4175 4176 LIBS="-lXaw $LIBS" 4177 4178else 4179 echo "$ac_t""no" 1>&6 4180fi 4181 4182 4183SCOREFILE=unset 4184 4185# Check whether --enable-scorefile or --disable-scorefile was given. 4186if test "${enable_scorefile+set}" = set; then 4187 enableval="$enable_scorefile" 4188 4189if [ -n $enableval -a ! $enableval = yes ] ; then 4190 SCOREFILE=$enableval 4191fi 4192 4193fi 4194 4195 4196if [ $SCOREFILE = unset ] ; then 4197 if [ $prefix = NONE ]; then 4198 prefix=$ac_default_prefix SCOREFILE=`eval echo ${localstatedir}/${PACKAGE}` 4199 else 4200 SCOREFILE=`eval echo ${localstatedir}/${PACKAGE}` 4201 fi 4202fi 4203 4204if [ ! $SCOREFILE = no ] ; then 4205cat >> confdefs.h <<EOF 4206#define SCOREFILE "$SCOREFILE" 4207EOF 4208 4209fi 4210 4211 4212 4213 4214for ac_func in putenv strdup 4215do 4216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4217echo "configure:4218: checking for $ac_func" >&5 4218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4219 echo $ac_n "(cached) $ac_c" 1>&6 4220else 4221 cat > conftest.$ac_ext <<EOF 4222#line 4223 "configure" 4223#include "confdefs.h" 4224/* System header to define __stub macros and hopefully few prototypes, 4225 which can conflict with char $ac_func(); below. */ 4226#include <assert.h> 4227/* Override any gcc2 internal prototype to avoid an error. */ 4228/* We use char because int might match the return type of a gcc2 4229 builtin and then its argument prototype would still apply. */ 4230char $ac_func(); 4231 4232int main() { 4233 4234/* The GNU C library defines this for functions which it implements 4235 to always fail with ENOSYS. Some functions are actually named 4236 something starting with __ and the normal name is an alias. */ 4237#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4238choke me 4239#else 4240$ac_func(); 4241#endif 4242 4243; return 0; } 4244EOF 4245if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4246 rm -rf conftest* 4247 eval "ac_cv_func_$ac_func=yes" 4248else 4249 echo "configure: failed program was:" >&5 4250 cat conftest.$ac_ext >&5 4251 rm -rf conftest* 4252 eval "ac_cv_func_$ac_func=no" 4253fi 4254rm -f conftest* 4255fi 4256 4257if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4258 echo "$ac_t""yes" 1>&6 4259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4260 cat >> confdefs.h <<EOF 4261#define $ac_tr_func 1 4262EOF 4263 4264else 4265 echo "$ac_t""no" 1>&6 4266fi 4267done 4268 4269 4270trap '' 1 2 15 4271cat > confcache <<\EOF 4272# This file is a shell script that caches the results of configure 4273# tests run on this system so they can be shared between configure 4274# scripts and configure runs. It is not useful on other systems. 4275# If it contains results you don't want to keep, you may remove or edit it. 4276# 4277# By default, configure uses ./config.cache as the cache file, 4278# creating it if it does not exist already. You can give configure 4279# the --cache-file=FILE option to use a different cache file; that is 4280# what configure does when it calls configure scripts in 4281# subdirectories, so they share the cache. 4282# Giving --cache-file=/dev/null disables caching, for debugging configure. 4283# config.status only pays attention to the cache file if you give it the 4284# --recheck option to rerun configure. 4285# 4286EOF 4287# The following way of writing the cache mishandles newlines in values, 4288# but we know of no workaround that is simple, portable, and efficient. 4289# So, don't put newlines in cache variables' values. 4290# Ultrix sh set writes to stderr and can't be redirected directly, 4291# and sets the high bit in the cache file unless we assign to the vars. 4292(set) 2>&1 | 4293 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4294 *ac_space=\ *) 4295 # `set' does not quote correctly, so add quotes (double-quote substitution 4296 # turns \\\\ into \\, and sed turns \\ into \). 4297 sed -n \ 4298 -e "s/'/'\\\\''/g" \ 4299 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4300 ;; 4301 *) 4302 # `set' quotes correctly as required by POSIX, so do not add quotes. 4303 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4304 ;; 4305 esac >> confcache 4306if cmp -s $cache_file confcache; then 4307 : 4308else 4309 if test -w $cache_file; then 4310 echo "updating cache $cache_file" 4311 cat confcache > $cache_file 4312 else 4313 echo "not updating unwritable cache $cache_file" 4314 fi 4315fi 4316rm -f confcache 4317 4318trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4319 4320test "x$prefix" = xNONE && prefix=$ac_default_prefix 4321# Let make expand exec_prefix. 4322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4323 4324# Any assignment to VPATH causes Sun make to only execute 4325# the first set of double-colon rules, so remove it if not needed. 4326# If there is a colon in the path, we need to keep it. 4327if test "x$srcdir" = x.; then 4328 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4329fi 4330 4331trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4332 4333DEFS=-DHAVE_CONFIG_H 4334 4335# Without the "./", some shells look in PATH for config.status. 4336: ${CONFIG_STATUS=./config.status} 4337 4338echo creating $CONFIG_STATUS 4339rm -f $CONFIG_STATUS 4340cat > $CONFIG_STATUS <<EOF 4341#! /bin/sh 4342# Generated automatically by configure. 4343# Run this file to recreate the current configuration. 4344# This directory was configured as follows, 4345# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4346# 4347# $0 $ac_configure_args 4348# 4349# Compiler output produced by configure, useful for debugging 4350# configure, is in ./config.log if it exists. 4351 4352ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4353for ac_option 4354do 4355 case "\$ac_option" in 4356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4357 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4358 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4359 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4360 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4361 exit 0 ;; 4362 -help | --help | --hel | --he | --h) 4363 echo "\$ac_cs_usage"; exit 0 ;; 4364 *) echo "\$ac_cs_usage"; exit 1 ;; 4365 esac 4366done 4367 4368ac_given_srcdir=$srcdir 4369ac_given_INSTALL="$INSTALL" 4370 4371trap 'rm -fr `echo "Makefile intl/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4372EOF 4373cat >> $CONFIG_STATUS <<EOF 4374 4375# Protect against being on the right side of a sed subst in config.status. 4376sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4377 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4378$ac_vpsub 4379$extrasub 4380s%@SHELL@%$SHELL%g 4381s%@CFLAGS@%$CFLAGS%g 4382s%@CPPFLAGS@%$CPPFLAGS%g 4383s%@CXXFLAGS@%$CXXFLAGS%g 4384s%@FFLAGS@%$FFLAGS%g 4385s%@DEFS@%$DEFS%g 4386s%@LDFLAGS@%$LDFLAGS%g 4387s%@LIBS@%$LIBS%g 4388s%@exec_prefix@%$exec_prefix%g 4389s%@prefix@%$prefix%g 4390s%@program_transform_name@%$program_transform_name%g 4391s%@bindir@%$bindir%g 4392s%@sbindir@%$sbindir%g 4393s%@libexecdir@%$libexecdir%g 4394s%@datadir@%$datadir%g 4395s%@sysconfdir@%$sysconfdir%g 4396s%@sharedstatedir@%$sharedstatedir%g 4397s%@localstatedir@%$localstatedir%g 4398s%@libdir@%$libdir%g 4399s%@includedir@%$includedir%g 4400s%@oldincludedir@%$oldincludedir%g 4401s%@infodir@%$infodir%g 4402s%@mandir@%$mandir%g 4403s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4404s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4405s%@INSTALL_DATA@%$INSTALL_DATA%g 4406s%@PACKAGE@%$PACKAGE%g 4407s%@VERSION@%$VERSION%g 4408s%@ACLOCAL@%$ACLOCAL%g 4409s%@AUTOCONF@%$AUTOCONF%g 4410s%@AUTOMAKE@%$AUTOMAKE%g 4411s%@AUTOHEADER@%$AUTOHEADER%g 4412s%@MAKEINFO@%$MAKEINFO%g 4413s%@SET_MAKE@%$SET_MAKE%g 4414s%@CC@%$CC%g 4415s%@CPP@%$CPP%g 4416s%@LN_S@%$LN_S%g 4417s%@RANLIB@%$RANLIB%g 4418s%@X_CFLAGS@%$X_CFLAGS%g 4419s%@X_PRE_LIBS@%$X_PRE_LIBS%g 4420s%@X_LIBS@%$X_LIBS%g 4421s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 4422s%@ALLOCA@%$ALLOCA%g 4423s%@USE_NLS@%$USE_NLS%g 4424s%@MSGFMT@%$MSGFMT%g 4425s%@GMSGFMT@%$GMSGFMT%g 4426s%@XGETTEXT@%$XGETTEXT%g 4427s%@GENCAT@%$GENCAT%g 4428s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 4429s%@CATALOGS@%$CATALOGS%g 4430s%@CATOBJEXT@%$CATOBJEXT%g 4431s%@DATADIRNAME@%$DATADIRNAME%g 4432s%@GMOFILES@%$GMOFILES%g 4433s%@INSTOBJEXT@%$INSTOBJEXT%g 4434s%@INTLDEPS@%$INTLDEPS%g 4435s%@INTLLIBS@%$INTLLIBS%g 4436s%@INTLOBJS@%$INTLOBJS%g 4437s%@POFILES@%$POFILES%g 4438s%@POSUB@%$POSUB%g 4439s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 4440s%@GT_NO@%$GT_NO%g 4441s%@GT_YES@%$GT_YES%g 4442s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 4443s%@l@%$l%g 4444s%@SCOREFILE@%$SCOREFILE%g 4445 4446CEOF 4447EOF 4448 4449cat >> $CONFIG_STATUS <<\EOF 4450 4451# Split the substitutions into bite-sized pieces for seds with 4452# small command number limits, like on Digital OSF/1 and HP-UX. 4453ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4454ac_file=1 # Number of current file. 4455ac_beg=1 # First line for current file. 4456ac_end=$ac_max_sed_cmds # Line after last line for current file. 4457ac_more_lines=: 4458ac_sed_cmds="" 4459while $ac_more_lines; do 4460 if test $ac_beg -gt 1; then 4461 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4462 else 4463 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4464 fi 4465 if test ! -s conftest.s$ac_file; then 4466 ac_more_lines=false 4467 rm -f conftest.s$ac_file 4468 else 4469 if test -z "$ac_sed_cmds"; then 4470 ac_sed_cmds="sed -f conftest.s$ac_file" 4471 else 4472 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4473 fi 4474 ac_file=`expr $ac_file + 1` 4475 ac_beg=$ac_end 4476 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4477 fi 4478done 4479if test -z "$ac_sed_cmds"; then 4480 ac_sed_cmds=cat 4481fi 4482EOF 4483 4484cat >> $CONFIG_STATUS <<EOF 4485 4486CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile po/Makefile.in"} 4487EOF 4488cat >> $CONFIG_STATUS <<\EOF 4489for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4491 case "$ac_file" in 4492 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4493 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4494 *) ac_file_in="${ac_file}.in" ;; 4495 esac 4496 4497 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4498 4499 # Remove last slash and all that follows it. Not all systems have dirname. 4500 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4502 # The file is in a subdirectory. 4503 test ! -d "$ac_dir" && mkdir "$ac_dir" 4504 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4505 # A "../" for each directory in $ac_dir_suffix. 4506 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4507 else 4508 ac_dir_suffix= ac_dots= 4509 fi 4510 4511 case "$ac_given_srcdir" in 4512 .) srcdir=. 4513 if test -z "$ac_dots"; then top_srcdir=. 4514 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4515 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4516 *) # Relative path. 4517 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4518 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4519 esac 4520 4521 case "$ac_given_INSTALL" in 4522 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4523 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4524 esac 4525 4526 echo creating "$ac_file" 4527 rm -f "$ac_file" 4528 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4529 case "$ac_file" in 4530 *Makefile*) ac_comsub="1i\\ 4531# $configure_input" ;; 4532 *) ac_comsub= ;; 4533 esac 4534 4535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4536 sed -e "$ac_comsub 4537s%@configure_input@%$configure_input%g 4538s%@srcdir@%$srcdir%g 4539s%@top_srcdir@%$top_srcdir%g 4540s%@INSTALL@%$INSTALL%g 4541" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4542fi; done 4543rm -f conftest.s* 4544 4545# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4546# NAME is the cpp macro being defined and VALUE is the value it is being given. 4547# 4548# ac_d sets the value in "#define NAME VALUE" lines. 4549ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4550ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4551ac_dC='\3' 4552ac_dD='%g' 4553# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4554ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4555ac_uB='\([ ]\)%\1#\2define\3' 4556ac_uC=' ' 4557ac_uD='\4%g' 4558# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4559ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4560ac_eB='$%\1#\2define\3' 4561ac_eC=' ' 4562ac_eD='%g' 4563 4564if test "${CONFIG_HEADERS+set}" != set; then 4565EOF 4566cat >> $CONFIG_STATUS <<EOF 4567 CONFIG_HEADERS="config.h" 4568EOF 4569cat >> $CONFIG_STATUS <<\EOF 4570fi 4571for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4573 case "$ac_file" in 4574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4576 *) ac_file_in="${ac_file}.in" ;; 4577 esac 4578 4579 echo creating $ac_file 4580 4581 rm -f conftest.frag conftest.in conftest.out 4582 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4583 cat $ac_file_inputs > conftest.in 4584 4585EOF 4586 4587# Transform confdefs.h into a sed script conftest.vals that substitutes 4588# the proper values into config.h.in to produce config.h. And first: 4589# Protect against being on the right side of a sed subst in config.status. 4590# Protect against being in an unquoted here document in config.status. 4591rm -f conftest.vals 4592cat > conftest.hdr <<\EOF 4593s/[\\&%]/\\&/g 4594s%[\\$`]%\\&%g 4595s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4596s%ac_d%ac_u%gp 4597s%ac_u%ac_e%gp 4598EOF 4599sed -n -f conftest.hdr confdefs.h > conftest.vals 4600rm -f conftest.hdr 4601 4602# This sed command replaces #undef with comments. This is necessary, for 4603# example, in the case of _POSIX_SOURCE, which is predefined and required 4604# on some systems where configure will not decide to define it. 4605cat >> conftest.vals <<\EOF 4606s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4607EOF 4608 4609# Break up conftest.vals because some shells have a limit on 4610# the size of here documents, and old seds have small limits too. 4611 4612rm -f conftest.tail 4613while : 4614do 4615 ac_lines=`grep -c . conftest.vals` 4616 # grep -c gives empty output for an empty file on some AIX systems. 4617 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4618 # Write a limited-size here document to conftest.frag. 4619 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4620 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4621 echo 'CEOF 4622 sed -f conftest.frag conftest.in > conftest.out 4623 rm -f conftest.in 4624 mv conftest.out conftest.in 4625' >> $CONFIG_STATUS 4626 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4627 rm -f conftest.vals 4628 mv conftest.tail conftest.vals 4629done 4630rm -f conftest.vals 4631 4632cat >> $CONFIG_STATUS <<\EOF 4633 rm -f conftest.frag conftest.h 4634 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4635 cat conftest.in >> conftest.h 4636 rm -f conftest.in 4637 if cmp -s $ac_file conftest.h 2>/dev/null; then 4638 echo "$ac_file is unchanged" 4639 rm -f conftest.h 4640 else 4641 # Remove last slash and all that follows it. Not all systems have dirname. 4642 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4643 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4644 # The file is in a subdirectory. 4645 test ! -d "$ac_dir" && mkdir "$ac_dir" 4646 fi 4647 rm -f $ac_file 4648 mv conftest.h $ac_file 4649 fi 4650fi; done 4651 4652EOF 4653 4654cat >> $CONFIG_STATUS <<EOF 4655ac_sources="$nls_cv_header_libgt" 4656ac_dests="$nls_cv_header_intl" 4657EOF 4658 4659cat >> $CONFIG_STATUS <<\EOF 4660srcdir=$ac_given_srcdir 4661while test -n "$ac_sources"; do 4662 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 4663 set $ac_sources; ac_source=$1; shift; ac_sources=$* 4664 4665 echo "linking $srcdir/$ac_source to $ac_dest" 4666 4667 if test ! -r $srcdir/$ac_source; then 4668 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } 4669 fi 4670 rm -f $ac_dest 4671 4672 # Make relative symlinks. 4673 # Remove last slash and all that follows it. Not all systems have dirname. 4674 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` 4675 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then 4676 # The dest file is in a subdirectory. 4677 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" 4678 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" 4679 # A "../" for each directory in $ac_dest_dir_suffix. 4680 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` 4681 else 4682 ac_dest_dir_suffix= ac_dots= 4683 fi 4684 4685 case "$srcdir" in 4686 [/$]*) ac_rel_source="$srcdir/$ac_source" ;; 4687 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; 4688 esac 4689 4690 # Make a symlink if possible; otherwise try a hard link. 4691 if ln -s $ac_rel_source $ac_dest 2>/dev/null || 4692 ln $srcdir/$ac_source $ac_dest; then : 4693 else 4694 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } 4695 fi 4696done 4697EOF 4698cat >> $CONFIG_STATUS <<EOF 4699 4700 4701 4702EOF 4703cat >> $CONFIG_STATUS <<\EOF 4704test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 4705case "$CONFIG_FILES" in *po/Makefile.in*) 4706 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 4707 esac 4708 4709exit 0 4710EOF 4711chmod +x $CONFIG_STATUS 4712rm -fr confdefs* $ac_clean_files 4713test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4714 4715