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: 14 15# Initialize some variables set by options. 16# The variables have the same names as the options, with 17# dashes changed to underlines. 18build=NONE 19cache_file=./config.cache 20exec_prefix=NONE 21host=NONE 22no_create= 23nonopt=NONE 24no_recursion= 25prefix=NONE 26program_prefix=NONE 27program_suffix=NONE 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE 36bindir='${exec_prefix}/bin' 37sbindir='${exec_prefix}/sbin' 38libexecdir='${exec_prefix}/libexec' 39datadir='${prefix}/share' 40sysconfdir='${prefix}/etc' 41sharedstatedir='${prefix}/com' 42localstatedir='${prefix}/var' 43libdir='${exec_prefix}/lib' 44includedir='${prefix}/include' 45oldincludedir='/usr/include' 46infodir='${prefix}/info' 47mandir='${prefix}/man' 48 49# Initialize some other variables. 50subdirs= 51MFLAGS= MAKEFLAGS= 52SHELL=${CONFIG_SHELL-/bin/sh} 53# Maximum number of lines to put in a shell here document. 54ac_max_here_lines=12 55 56ac_prev= 57for ac_option 58do 59 60 # If the previous option needs an argument, assign it. 61 if test -n "$ac_prev"; then 62 eval "$ac_prev=\$ac_option" 63 ac_prev= 64 continue 65 fi 66 67 case "$ac_option" in 68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 69 *) ac_optarg= ;; 70 esac 71 72 # Accept the important Cygnus configure options, so we can diagnose typos. 73 74 case "$ac_option" in 75 76 -bindir | --bindir | --bindi | --bind | --bin | --bi) 77 ac_prev=bindir ;; 78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 79 bindir="$ac_optarg" ;; 80 81 -build | --build | --buil | --bui | --bu) 82 ac_prev=build ;; 83 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 84 build="$ac_optarg" ;; 85 86 -cache-file | --cache-file | --cache-fil | --cache-fi \ 87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88 ac_prev=cache_file ;; 89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 91 cache_file="$ac_optarg" ;; 92 93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 94 ac_prev=datadir ;; 95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 96 | --da=*) 97 datadir="$ac_optarg" ;; 98 99 -disable-* | --disable-*) 100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 101 # Reject names that are not valid shell variable names. 102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 104 fi 105 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 106 eval "enable_${ac_feature}=no" ;; 107 108 -enable-* | --enable-*) 109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 110 # Reject names that are not valid shell variable names. 111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 113 fi 114 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 115 case "$ac_option" in 116 *=*) ;; 117 *) ac_optarg=yes ;; 118 esac 119 eval "enable_${ac_feature}='$ac_optarg'" ;; 120 121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 123 | --exec | --exe | --ex) 124 ac_prev=exec_prefix ;; 125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 127 | --exec=* | --exe=* | --ex=*) 128 exec_prefix="$ac_optarg" ;; 129 130 -gas | --gas | --ga | --g) 131 # Obsolete; use --with-gas. 132 with_gas=yes ;; 133 134 -help | --help | --hel | --he) 135 # Omit some internal or obsolete options to make the list less imposing. 136 # This message is too long to be a string in the A/UX 3.1 sh. 137 cat << EOF 138Usage: configure [options] [host] 139Options: [defaults in brackets after descriptions] 140Configuration: 141 --cache-file=FILE cache test results in FILE 142 --help print this message 143 --no-create do not create output files 144 --quiet, --silent do not print \`checking...' messages 145 --version print the version of autoconf that created configure 146Directory and file names: 147 --prefix=PREFIX install architecture-independent files in PREFIX 148 [$ac_default_prefix] 149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 150 [same as prefix] 151 --bindir=DIR user executables in DIR [EPREFIX/bin] 152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 154 --datadir=DIR read-only architecture-independent data in DIR 155 [PREFIX/share] 156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 157 --sharedstatedir=DIR modifiable architecture-independent data in DIR 158 [PREFIX/com] 159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 160 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 161 --includedir=DIR C header files in DIR [PREFIX/include] 162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 163 --infodir=DIR info documentation in DIR [PREFIX/info] 164 --mandir=DIR man documentation in DIR [PREFIX/man] 165 --srcdir=DIR find the sources in DIR [configure dir or ..] 166 --program-prefix=PREFIX prepend PREFIX to installed program names 167 --program-suffix=SUFFIX append SUFFIX to installed program names 168 --program-transform-name=PROGRAM 169 run sed PROGRAM on installed program names 170EOF 171 cat << EOF 172Host type: 173 --build=BUILD configure for building on BUILD [BUILD=HOST] 174 --host=HOST configure for HOST [guessed] 175 --target=TARGET configure for TARGET [TARGET=HOST] 176Features and packages: 177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 181 --x-includes=DIR X include files are in DIR 182 --x-libraries=DIR X library files are in DIR 183EOF 184 if test -n "$ac_help"; then 185 echo "--enable and --with options recognized:$ac_help" 186 fi 187 exit 0 ;; 188 189 -host | --host | --hos | --ho) 190 ac_prev=host ;; 191 -host=* | --host=* | --hos=* | --ho=*) 192 host="$ac_optarg" ;; 193 194 -includedir | --includedir | --includedi | --included | --include \ 195 | --includ | --inclu | --incl | --inc) 196 ac_prev=includedir ;; 197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 198 | --includ=* | --inclu=* | --incl=* | --inc=*) 199 includedir="$ac_optarg" ;; 200 201 -infodir | --infodir | --infodi | --infod | --info | --inf) 202 ac_prev=infodir ;; 203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 204 infodir="$ac_optarg" ;; 205 206 -libdir | --libdir | --libdi | --libd) 207 ac_prev=libdir ;; 208 -libdir=* | --libdir=* | --libdi=* | --libd=*) 209 libdir="$ac_optarg" ;; 210 211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 212 | --libexe | --libex | --libe) 213 ac_prev=libexecdir ;; 214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 215 | --libexe=* | --libex=* | --libe=*) 216 libexecdir="$ac_optarg" ;; 217 218 -localstatedir | --localstatedir | --localstatedi | --localstated \ 219 | --localstate | --localstat | --localsta | --localst \ 220 | --locals | --local | --loca | --loc | --lo) 221 ac_prev=localstatedir ;; 222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 225 localstatedir="$ac_optarg" ;; 226 227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 228 ac_prev=mandir ;; 229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 230 mandir="$ac_optarg" ;; 231 232 -nfp | --nfp | --nf) 233 # Obsolete; use --without-fp. 234 with_fp=no ;; 235 236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 237 | --no-cr | --no-c) 238 no_create=yes ;; 239 240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 242 no_recursion=yes ;; 243 244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 246 | --oldin | --oldi | --old | --ol | --o) 247 ac_prev=oldincludedir ;; 248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 251 oldincludedir="$ac_optarg" ;; 252 253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 254 ac_prev=prefix ;; 255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 256 prefix="$ac_optarg" ;; 257 258 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 259 | --program-pre | --program-pr | --program-p) 260 ac_prev=program_prefix ;; 261 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 263 program_prefix="$ac_optarg" ;; 264 265 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 266 | --program-suf | --program-su | --program-s) 267 ac_prev=program_suffix ;; 268 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 270 program_suffix="$ac_optarg" ;; 271 272 -program-transform-name | --program-transform-name \ 273 | --program-transform-nam | --program-transform-na \ 274 | --program-transform-n | --program-transform- \ 275 | --program-transform | --program-transfor \ 276 | --program-transfo | --program-transf \ 277 | --program-trans | --program-tran \ 278 | --progr-tra | --program-tr | --program-t) 279 ac_prev=program_transform_name ;; 280 -program-transform-name=* | --program-transform-name=* \ 281 | --program-transform-nam=* | --program-transform-na=* \ 282 | --program-transform-n=* | --program-transform-=* \ 283 | --program-transform=* | --program-transfor=* \ 284 | --program-transfo=* | --program-transf=* \ 285 | --program-trans=* | --program-tran=* \ 286 | --progr-tra=* | --program-tr=* | --program-t=*) 287 program_transform_name="$ac_optarg" ;; 288 289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 290 | -silent | --silent | --silen | --sile | --sil) 291 silent=yes ;; 292 293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 294 ac_prev=sbindir ;; 295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 296 | --sbi=* | --sb=*) 297 sbindir="$ac_optarg" ;; 298 299 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 301 | --sharedst | --shareds | --shared | --share | --shar \ 302 | --sha | --sh) 303 ac_prev=sharedstatedir ;; 304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 307 | --sha=* | --sh=*) 308 sharedstatedir="$ac_optarg" ;; 309 310 -site | --site | --sit) 311 ac_prev=site ;; 312 -site=* | --site=* | --sit=*) 313 site="$ac_optarg" ;; 314 315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 316 ac_prev=srcdir ;; 317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 318 srcdir="$ac_optarg" ;; 319 320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 321 | --syscon | --sysco | --sysc | --sys | --sy) 322 ac_prev=sysconfdir ;; 323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 325 sysconfdir="$ac_optarg" ;; 326 327 -target | --target | --targe | --targ | --tar | --ta | --t) 328 ac_prev=target ;; 329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 330 target="$ac_optarg" ;; 331 332 -v | -verbose | --verbose | --verbos | --verbo | --verb) 333 verbose=yes ;; 334 335 -version | --version | --versio | --versi | --vers) 336 echo "configure generated by autoconf version 2.13" 337 exit 0 ;; 338 339 -with-* | --with-*) 340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 341 # Reject names that are not valid shell variable names. 342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 344 fi 345 ac_package=`echo $ac_package| sed 's/-/_/g'` 346 case "$ac_option" in 347 *=*) ;; 348 *) ac_optarg=yes ;; 349 esac 350 eval "with_${ac_package}='$ac_optarg'" ;; 351 352 -without-* | --without-*) 353 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 354 # Reject names that are not valid shell variable names. 355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 357 fi 358 ac_package=`echo $ac_package| sed 's/-/_/g'` 359 eval "with_${ac_package}=no" ;; 360 361 --x) 362 # Obsolete; use --with-x. 363 with_x=yes ;; 364 365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 366 | --x-incl | --x-inc | --x-in | --x-i) 367 ac_prev=x_includes ;; 368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 370 x_includes="$ac_optarg" ;; 371 372 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 374 ac_prev=x_libraries ;; 375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 377 x_libraries="$ac_optarg" ;; 378 379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 380 ;; 381 382 *) 383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 384 echo "configure: warning: $ac_option: invalid host type" 1>&2 385 fi 386 if test "x$nonopt" != xNONE; then 387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 388 fi 389 nonopt="$ac_option" 390 ;; 391 392 esac 393done 394 395if test -n "$ac_prev"; then 396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 397fi 398 399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 400 401# File descriptor usage: 402# 0 standard input 403# 1 file creation 404# 2 errors and warnings 405# 3 some systems may open it to /dev/tty 406# 4 used on the Kubota Titan 407# 6 checking for... messages and results 408# 5 compiler messages saved in config.log 409if test "$silent" = yes; then 410 exec 6>/dev/null 411else 412 exec 6>&1 413fi 414exec 5>./config.log 415 416echo "\ 417This file contains any messages produced by compilers while 418running configure, to aid debugging if configure makes a mistake. 419" 1>&5 420 421# Strip out --no-create and --no-recursion so they do not pile up. 422# Also quote any args containing shell metacharacters. 423ac_configure_args= 424for ac_arg 425do 426 case "$ac_arg" in 427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 428 | --no-cr | --no-c) ;; 429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 432 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 433 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 434 esac 435done 436 437# NLS nuisances. 438# Only set these to C if already set. These must not be set unconditionally 439# because not all systems understand e.g. LANG=C (notably SCO). 440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 441# Non-C LC_CTYPE values break the ctype check. 442if test "${LANG+set}" = set; then LANG=C; export LANG; fi 443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 445if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 446 447# confdefs.h avoids OS command line length limits that DEFS can exceed. 448rm -rf conftest* confdefs.h 449# AIX cpp loses on an empty file, so make sure it contains at least a newline. 450echo > confdefs.h 451 452# A filename unique to this package, relative to the directory that 453# configure is in, which we can look for to find out if srcdir is correct. 454ac_unique_file=apps/splay.cc 455 456# Find the source files, if location was not specified. 457if test -z "$srcdir"; then 458 ac_srcdir_defaulted=yes 459 # Try the directory containing this script, then its parent. 460 ac_prog=$0 461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 463 srcdir=$ac_confdir 464 if test ! -r $srcdir/$ac_unique_file; then 465 srcdir=.. 466 fi 467else 468 ac_srcdir_defaulted=no 469fi 470if test ! -r $srcdir/$ac_unique_file; then 471 if test "$ac_srcdir_defaulted" = yes; then 472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 473 else 474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 475 fi 476fi 477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 478 479# Prefer explicitly selected file to automatically selected ones. 480if test -z "$CONFIG_SITE"; then 481 if test "x$prefix" != xNONE; then 482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 483 else 484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 485 fi 486fi 487for ac_site_file in $CONFIG_SITE; do 488 if test -r "$ac_site_file"; then 489 echo "loading site script $ac_site_file" 490 . "$ac_site_file" 491 fi 492done 493 494if test -r "$cache_file"; then 495 echo "loading cache $cache_file" 496 . $cache_file 497else 498 echo "creating cache $cache_file" 499 > $cache_file 500fi 501 502ac_ext=c 503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 504ac_cpp='$CPP $CPPFLAGS' 505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 507cross_compiling=$ac_cv_prog_cc_cross 508 509ac_exeext= 510ac_objext=o 511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 514 ac_n= ac_c=' 515' ac_t=' ' 516 else 517 ac_n=-n ac_c= ac_t= 518 fi 519else 520 ac_n= ac_c='\c' ac_t= 521fi 522 523 524ac_aux_dir= 525for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 526 if test -f $ac_dir/install-sh; then 527 ac_aux_dir=$ac_dir 528 ac_install_sh="$ac_aux_dir/install-sh -c" 529 break 530 elif test -f $ac_dir/install.sh; then 531 ac_aux_dir=$ac_dir 532 ac_install_sh="$ac_aux_dir/install.sh -c" 533 break 534 fi 535done 536if test -z "$ac_aux_dir"; then 537 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 538fi 539ac_config_guess=$ac_aux_dir/config.guess 540ac_config_sub=$ac_aux_dir/config.sub 541ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 542 543# Find a good install program. We prefer a C program (faster), 544# so one script is as good as another. But avoid the broken or 545# incompatible versions: 546# SysV /etc/install, /usr/sbin/install 547# SunOS /usr/etc/install 548# IRIX /sbin/install 549# AIX /bin/install 550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 551# AFS /usr/afsws/bin/install, which mishandles nonexistent args 552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 553# ./install, which can be erroneously created by make from ./install.sh. 554echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 555echo "configure:556: checking for a BSD compatible install" >&5 556if test -z "$INSTALL"; then 557if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 558 echo $ac_n "(cached) $ac_c" 1>&6 559else 560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 561 for ac_dir in $PATH; do 562 # Account for people who put trailing slashes in PATH elements. 563 case "$ac_dir/" in 564 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 565 *) 566 # OSF1 and SCO ODT 3.0 have their own names for install. 567 # Don't use installbsd from OSF since it installs stuff as root 568 # by default. 569 for ac_prog in ginstall scoinst install; do 570 if test -f $ac_dir/$ac_prog; then 571 if test $ac_prog = install && 572 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 573 # AIX install. It has an incompatible calling convention. 574 : 575 else 576 ac_cv_path_install="$ac_dir/$ac_prog -c" 577 break 2 578 fi 579 fi 580 done 581 ;; 582 esac 583 done 584 IFS="$ac_save_IFS" 585 586fi 587 if test "${ac_cv_path_install+set}" = set; then 588 INSTALL="$ac_cv_path_install" 589 else 590 # As a last resort, use the slow shell script. We don't cache a 591 # path for INSTALL within a source directory, because that will 592 # break other packages using the cache if that directory is 593 # removed, or if the path is relative. 594 INSTALL="$ac_install_sh" 595 fi 596fi 597echo "$ac_t""$INSTALL" 1>&6 598 599# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 600# It thinks the first close brace ends the variable substitution. 601test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 602 603test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 604 605test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 606 607echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 608echo "configure:609: checking whether build environment is sane" >&5 609# Just in case 610sleep 1 611echo timestamp > conftestfile 612# Do `set' in a subshell so we don't clobber the current shell's 613# arguments. Must try -L first in case configure is actually a 614# symlink; some systems play weird games with the mod time of symlinks 615# (eg FreeBSD returns the mod time of the symlink's containing 616# directory). 617if ( 618 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 619 if test "$*" = "X"; then 620 # -L didn't work. 621 set X `ls -t $srcdir/configure conftestfile` 622 fi 623 if test "$*" != "X $srcdir/configure conftestfile" \ 624 && test "$*" != "X conftestfile $srcdir/configure"; then 625 626 # If neither matched, then we have a broken ls. This can happen 627 # if, for instance, CONFIG_SHELL is bash and it inherits a 628 # broken ls alias from the environment. This has actually 629 # happened. Such a system could not be considered "sane". 630 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 631alias in your environment" 1>&2; exit 1; } 632 fi 633 634 test "$2" = conftestfile 635 ) 636then 637 # Ok. 638 : 639else 640 { echo "configure: error: newly created file is older than distributed files! 641Check your system clock" 1>&2; exit 1; } 642fi 643rm -f conftest* 644echo "$ac_t""yes" 1>&6 645if test "$program_transform_name" = s,x,x,; then 646 program_transform_name= 647else 648 # Double any \ or $. echo might interpret backslashes. 649 cat <<\EOF_SED > conftestsed 650s,\\,\\\\,g; s,\$,$$,g 651EOF_SED 652 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 653 rm -f conftestsed 654fi 655test "$program_prefix" != NONE && 656 program_transform_name="s,^,${program_prefix},; $program_transform_name" 657# Use a double $ so make ignores it. 658test "$program_suffix" != NONE && 659 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 660 661# sed with no file args requires a program. 662test "$program_transform_name" = "" && program_transform_name="s,x,x," 663 664echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 665echo "configure:666: checking whether ${MAKE-make} sets \${MAKE}" >&5 666set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 667if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 668 echo $ac_n "(cached) $ac_c" 1>&6 669else 670 cat > conftestmake <<\EOF 671all: 672 @echo 'ac_maketemp="${MAKE}"' 673EOF 674# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 675eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 676if test -n "$ac_maketemp"; then 677 eval ac_cv_prog_make_${ac_make}_set=yes 678else 679 eval ac_cv_prog_make_${ac_make}_set=no 680fi 681rm -f conftestmake 682fi 683if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 684 echo "$ac_t""yes" 1>&6 685 SET_MAKE= 686else 687 echo "$ac_t""no" 1>&6 688 SET_MAKE="MAKE=${MAKE-make}" 689fi 690 691 692PACKAGE=splay 693 694VERSION=0.9.5.2 695 696if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 697 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 698fi 699cat >> confdefs.h <<EOF 700#define PACKAGE "$PACKAGE" 701EOF 702 703cat >> confdefs.h <<EOF 704#define VERSION "$VERSION" 705EOF 706 707 708 709missing_dir=`cd $ac_aux_dir && pwd` 710echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 711echo "configure:712: checking for working aclocal" >&5 712# Run test in a subshell; some versions of sh will print an error if 713# an executable is not found, even if stderr is redirected. 714# Redirect stdin to placate older versions of autoconf. Sigh. 715if (aclocal --version) < /dev/null > /dev/null 2>&1; then 716 ACLOCAL=aclocal 717 echo "$ac_t""found" 1>&6 718else 719 ACLOCAL="$missing_dir/missing aclocal" 720 echo "$ac_t""missing" 1>&6 721fi 722 723echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 724echo "configure:725: checking for working autoconf" >&5 725# Run test in a subshell; some versions of sh will print an error if 726# an executable is not found, even if stderr is redirected. 727# Redirect stdin to placate older versions of autoconf. Sigh. 728if (autoconf --version) < /dev/null > /dev/null 2>&1; then 729 AUTOCONF=autoconf 730 echo "$ac_t""found" 1>&6 731else 732 AUTOCONF="$missing_dir/missing autoconf" 733 echo "$ac_t""missing" 1>&6 734fi 735 736echo $ac_n "checking for working automake""... $ac_c" 1>&6 737echo "configure:738: checking for working automake" >&5 738# Run test in a subshell; some versions of sh will print an error if 739# an executable is not found, even if stderr is redirected. 740# Redirect stdin to placate older versions of autoconf. Sigh. 741if (automake --version) < /dev/null > /dev/null 2>&1; then 742 AUTOMAKE=automake 743 echo "$ac_t""found" 1>&6 744else 745 AUTOMAKE="$missing_dir/missing automake" 746 echo "$ac_t""missing" 1>&6 747fi 748 749echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 750echo "configure:751: checking for working autoheader" >&5 751# Run test in a subshell; some versions of sh will print an error if 752# an executable is not found, even if stderr is redirected. 753# Redirect stdin to placate older versions of autoconf. Sigh. 754if (autoheader --version) < /dev/null > /dev/null 2>&1; then 755 AUTOHEADER=autoheader 756 echo "$ac_t""found" 1>&6 757else 758 AUTOHEADER="$missing_dir/missing autoheader" 759 echo "$ac_t""missing" 1>&6 760fi 761 762echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 763echo "configure:764: checking for working makeinfo" >&5 764# Run test in a subshell; some versions of sh will print an error if 765# an executable is not found, even if stderr is redirected. 766# Redirect stdin to placate older versions of autoconf. Sigh. 767if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 768 MAKEINFO=makeinfo 769 echo "$ac_t""found" 1>&6 770else 771 MAKEINFO="$missing_dir/missing makeinfo" 772 echo "$ac_t""missing" 1>&6 773fi 774 775 776 777 778for ac_prog in mawk gawk nawk awk 779do 780# Extract the first word of "$ac_prog", so it can be a program name with args. 781set dummy $ac_prog; ac_word=$2 782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 783echo "configure:784: checking for $ac_word" >&5 784if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 785 echo $ac_n "(cached) $ac_c" 1>&6 786else 787 if test -n "$AWK"; then 788 ac_cv_prog_AWK="$AWK" # Let the user override the test. 789else 790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 791 ac_dummy="$PATH" 792 for ac_dir in $ac_dummy; do 793 test -z "$ac_dir" && ac_dir=. 794 if test -f $ac_dir/$ac_word; then 795 ac_cv_prog_AWK="$ac_prog" 796 break 797 fi 798 done 799 IFS="$ac_save_ifs" 800fi 801fi 802AWK="$ac_cv_prog_AWK" 803if test -n "$AWK"; then 804 echo "$ac_t""$AWK" 1>&6 805else 806 echo "$ac_t""no" 1>&6 807fi 808 809test -n "$AWK" && break 810done 811 812# Extract the first word of "gcc", so it can be a program name with args. 813set dummy gcc; ac_word=$2 814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 815echo "configure:816: checking for $ac_word" >&5 816if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 817 echo $ac_n "(cached) $ac_c" 1>&6 818else 819 if test -n "$CC"; then 820 ac_cv_prog_CC="$CC" # Let the user override the test. 821else 822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 823 ac_dummy="$PATH" 824 for ac_dir in $ac_dummy; do 825 test -z "$ac_dir" && ac_dir=. 826 if test -f $ac_dir/$ac_word; then 827 ac_cv_prog_CC="gcc" 828 break 829 fi 830 done 831 IFS="$ac_save_ifs" 832fi 833fi 834CC="$ac_cv_prog_CC" 835if test -n "$CC"; then 836 echo "$ac_t""$CC" 1>&6 837else 838 echo "$ac_t""no" 1>&6 839fi 840 841if test -z "$CC"; then 842 # Extract the first word of "cc", so it can be a program name with args. 843set dummy cc; ac_word=$2 844echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 845echo "configure:846: checking for $ac_word" >&5 846if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 847 echo $ac_n "(cached) $ac_c" 1>&6 848else 849 if test -n "$CC"; then 850 ac_cv_prog_CC="$CC" # Let the user override the test. 851else 852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 853 ac_prog_rejected=no 854 ac_dummy="$PATH" 855 for ac_dir in $ac_dummy; do 856 test -z "$ac_dir" && ac_dir=. 857 if test -f $ac_dir/$ac_word; then 858 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 859 ac_prog_rejected=yes 860 continue 861 fi 862 ac_cv_prog_CC="cc" 863 break 864 fi 865 done 866 IFS="$ac_save_ifs" 867if test $ac_prog_rejected = yes; then 868 # We found a bogon in the path, so make sure we never use it. 869 set dummy $ac_cv_prog_CC 870 shift 871 if test $# -gt 0; then 872 # We chose a different compiler from the bogus one. 873 # However, it has the same basename, so the bogon will be chosen 874 # first if we set CC to just the basename; use the full file name. 875 shift 876 set dummy "$ac_dir/$ac_word" "$@" 877 shift 878 ac_cv_prog_CC="$@" 879 fi 880fi 881fi 882fi 883CC="$ac_cv_prog_CC" 884if test -n "$CC"; then 885 echo "$ac_t""$CC" 1>&6 886else 887 echo "$ac_t""no" 1>&6 888fi 889 890 if test -z "$CC"; then 891 case "`uname -s`" in 892 *win32* | *WIN32*) 893 # Extract the first word of "cl", so it can be a program name with args. 894set dummy cl; ac_word=$2 895echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 896echo "configure:897: checking for $ac_word" >&5 897if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 898 echo $ac_n "(cached) $ac_c" 1>&6 899else 900 if test -n "$CC"; then 901 ac_cv_prog_CC="$CC" # Let the user override the test. 902else 903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 904 ac_dummy="$PATH" 905 for ac_dir in $ac_dummy; do 906 test -z "$ac_dir" && ac_dir=. 907 if test -f $ac_dir/$ac_word; then 908 ac_cv_prog_CC="cl" 909 break 910 fi 911 done 912 IFS="$ac_save_ifs" 913fi 914fi 915CC="$ac_cv_prog_CC" 916if test -n "$CC"; then 917 echo "$ac_t""$CC" 1>&6 918else 919 echo "$ac_t""no" 1>&6 920fi 921 ;; 922 esac 923 fi 924 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 925fi 926 927echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 928echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 929 930ac_ext=c 931# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 932ac_cpp='$CPP $CPPFLAGS' 933ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 934ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 935cross_compiling=$ac_cv_prog_cc_cross 936 937cat > conftest.$ac_ext << EOF 938 939#line 940 "configure" 940#include "confdefs.h" 941 942main(){return(0);} 943EOF 944if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 945 ac_cv_prog_cc_works=yes 946 # If we can't run a trivial program, we are probably using a cross compiler. 947 if (./conftest; exit) 2>/dev/null; then 948 ac_cv_prog_cc_cross=no 949 else 950 ac_cv_prog_cc_cross=yes 951 fi 952else 953 echo "configure: failed program was:" >&5 954 cat conftest.$ac_ext >&5 955 ac_cv_prog_cc_works=no 956fi 957rm -fr conftest* 958ac_ext=c 959# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 960ac_cpp='$CPP $CPPFLAGS' 961ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 962ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 963cross_compiling=$ac_cv_prog_cc_cross 964 965echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 966if test $ac_cv_prog_cc_works = no; then 967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 968fi 969echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 970echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 971echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 972cross_compiling=$ac_cv_prog_cc_cross 973 974echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 975echo "configure:976: checking whether we are using GNU C" >&5 976if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 977 echo $ac_n "(cached) $ac_c" 1>&6 978else 979 cat > conftest.c <<EOF 980#ifdef __GNUC__ 981 yes; 982#endif 983EOF 984if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 985 ac_cv_prog_gcc=yes 986else 987 ac_cv_prog_gcc=no 988fi 989fi 990 991echo "$ac_t""$ac_cv_prog_gcc" 1>&6 992 993if test $ac_cv_prog_gcc = yes; then 994 GCC=yes 995else 996 GCC= 997fi 998 999ac_test_CFLAGS="${CFLAGS+set}" 1000ac_save_CFLAGS="$CFLAGS" 1001CFLAGS= 1002echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1003echo "configure:1004: checking whether ${CC-cc} accepts -g" >&5 1004if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1005 echo $ac_n "(cached) $ac_c" 1>&6 1006else 1007 echo 'void f(){}' > conftest.c 1008if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1009 ac_cv_prog_cc_g=yes 1010else 1011 ac_cv_prog_cc_g=no 1012fi 1013rm -f conftest* 1014 1015fi 1016 1017echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1018if test "$ac_test_CFLAGS" = set; then 1019 CFLAGS="$ac_save_CFLAGS" 1020elif test $ac_cv_prog_cc_g = yes; then 1021 if test "$GCC" = yes; then 1022 CFLAGS="-g -O2" 1023 else 1024 CFLAGS="-g" 1025 fi 1026else 1027 if test "$GCC" = yes; then 1028 CFLAGS="-O2" 1029 else 1030 CFLAGS= 1031 fi 1032fi 1033 1034for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1035do 1036# Extract the first word of "$ac_prog", so it can be a program name with args. 1037set dummy $ac_prog; ac_word=$2 1038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1039echo "configure:1040: checking for $ac_word" >&5 1040if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1041 echo $ac_n "(cached) $ac_c" 1>&6 1042else 1043 if test -n "$CXX"; then 1044 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1045else 1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1047 ac_dummy="$PATH" 1048 for ac_dir in $ac_dummy; do 1049 test -z "$ac_dir" && ac_dir=. 1050 if test -f $ac_dir/$ac_word; then 1051 ac_cv_prog_CXX="$ac_prog" 1052 break 1053 fi 1054 done 1055 IFS="$ac_save_ifs" 1056fi 1057fi 1058CXX="$ac_cv_prog_CXX" 1059if test -n "$CXX"; then 1060 echo "$ac_t""$CXX" 1>&6 1061else 1062 echo "$ac_t""no" 1>&6 1063fi 1064 1065test -n "$CXX" && break 1066done 1067test -n "$CXX" || CXX="gcc" 1068 1069 1070echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1071echo "configure:1072: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1072 1073ac_ext=C 1074# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1075ac_cpp='$CXXCPP $CPPFLAGS' 1076ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1077ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1078cross_compiling=$ac_cv_prog_cxx_cross 1079 1080cat > conftest.$ac_ext << EOF 1081 1082#line 1083 "configure" 1083#include "confdefs.h" 1084 1085int main(){return(0);} 1086EOF 1087if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1088 ac_cv_prog_cxx_works=yes 1089 # If we can't run a trivial program, we are probably using a cross compiler. 1090 if (./conftest; exit) 2>/dev/null; then 1091 ac_cv_prog_cxx_cross=no 1092 else 1093 ac_cv_prog_cxx_cross=yes 1094 fi 1095else 1096 echo "configure: failed program was:" >&5 1097 cat conftest.$ac_ext >&5 1098 ac_cv_prog_cxx_works=no 1099fi 1100rm -fr conftest* 1101ac_ext=c 1102# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1103ac_cpp='$CPP $CPPFLAGS' 1104ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1105ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1106cross_compiling=$ac_cv_prog_cc_cross 1107 1108echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1109if test $ac_cv_prog_cxx_works = no; then 1110 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1111fi 1112echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1113echo "configure:1114: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1114echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1115cross_compiling=$ac_cv_prog_cxx_cross 1116 1117echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1118echo "configure:1119: checking whether we are using GNU C++" >&5 1119if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1120 echo $ac_n "(cached) $ac_c" 1>&6 1121else 1122 cat > conftest.C <<EOF 1123#ifdef __GNUC__ 1124 yes; 1125#endif 1126EOF 1127if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1128 ac_cv_prog_gxx=yes 1129else 1130 ac_cv_prog_gxx=no 1131fi 1132fi 1133 1134echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1135 1136if test $ac_cv_prog_gxx = yes; then 1137 GXX=yes 1138else 1139 GXX= 1140fi 1141 1142ac_test_CXXFLAGS="${CXXFLAGS+set}" 1143ac_save_CXXFLAGS="$CXXFLAGS" 1144CXXFLAGS= 1145echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1146echo "configure:1147: checking whether ${CXX-g++} accepts -g" >&5 1147if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1148 echo $ac_n "(cached) $ac_c" 1>&6 1149else 1150 echo 'void f(){}' > conftest.cc 1151if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1152 ac_cv_prog_cxx_g=yes 1153else 1154 ac_cv_prog_cxx_g=no 1155fi 1156rm -f conftest* 1157 1158fi 1159 1160echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1161if test "$ac_test_CXXFLAGS" = set; then 1162 CXXFLAGS="$ac_save_CXXFLAGS" 1163elif test $ac_cv_prog_cxx_g = yes; then 1164 if test "$GXX" = yes; then 1165 CXXFLAGS="-g -O2" 1166 else 1167 CXXFLAGS="-g" 1168 fi 1169else 1170 if test "$GXX" = yes; then 1171 CXXFLAGS="-O2" 1172 else 1173 CXXFLAGS= 1174 fi 1175fi 1176 1177# Find a good install program. We prefer a C program (faster), 1178# so one script is as good as another. But avoid the broken or 1179# incompatible versions: 1180# SysV /etc/install, /usr/sbin/install 1181# SunOS /usr/etc/install 1182# IRIX /sbin/install 1183# AIX /bin/install 1184# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1185# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1186# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1187# ./install, which can be erroneously created by make from ./install.sh. 1188echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1189echo "configure:1190: checking for a BSD compatible install" >&5 1190if test -z "$INSTALL"; then 1191if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1192 echo $ac_n "(cached) $ac_c" 1>&6 1193else 1194 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1195 for ac_dir in $PATH; do 1196 # Account for people who put trailing slashes in PATH elements. 1197 case "$ac_dir/" in 1198 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1199 *) 1200 # OSF1 and SCO ODT 3.0 have their own names for install. 1201 # Don't use installbsd from OSF since it installs stuff as root 1202 # by default. 1203 for ac_prog in ginstall scoinst install; do 1204 if test -f $ac_dir/$ac_prog; then 1205 if test $ac_prog = install && 1206 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1207 # AIX install. It has an incompatible calling convention. 1208 : 1209 else 1210 ac_cv_path_install="$ac_dir/$ac_prog -c" 1211 break 2 1212 fi 1213 fi 1214 done 1215 ;; 1216 esac 1217 done 1218 IFS="$ac_save_IFS" 1219 1220fi 1221 if test "${ac_cv_path_install+set}" = set; then 1222 INSTALL="$ac_cv_path_install" 1223 else 1224 # As a last resort, use the slow shell script. We don't cache a 1225 # path for INSTALL within a source directory, because that will 1226 # break other packages using the cache if that directory is 1227 # removed, or if the path is relative. 1228 INSTALL="$ac_install_sh" 1229 fi 1230fi 1231echo "$ac_t""$INSTALL" 1>&6 1232 1233# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1234# It thinks the first close brace ends the variable substitution. 1235test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1236 1237test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1238 1239test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1240 1241echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1242echo "configure:1243: checking whether ln -s works" >&5 1243if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1244 echo $ac_n "(cached) $ac_c" 1>&6 1245else 1246 rm -f conftestdata 1247if ln -s X conftestdata 2>/dev/null 1248then 1249 rm -f conftestdata 1250 ac_cv_prog_LN_S="ln -s" 1251else 1252 ac_cv_prog_LN_S=ln 1253fi 1254fi 1255LN_S="$ac_cv_prog_LN_S" 1256if test "$ac_cv_prog_LN_S" = "ln -s"; then 1257 echo "$ac_t""yes" 1>&6 1258else 1259 echo "$ac_t""no" 1>&6 1260fi 1261 1262# Extract the first word of "ranlib", so it can be a program name with args. 1263set dummy ranlib; ac_word=$2 1264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1265echo "configure:1266: checking for $ac_word" >&5 1266if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1267 echo $ac_n "(cached) $ac_c" 1>&6 1268else 1269 if test -n "$RANLIB"; then 1270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1271else 1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1273 ac_dummy="$PATH" 1274 for ac_dir in $ac_dummy; do 1275 test -z "$ac_dir" && ac_dir=. 1276 if test -f $ac_dir/$ac_word; then 1277 ac_cv_prog_RANLIB="ranlib" 1278 break 1279 fi 1280 done 1281 IFS="$ac_save_ifs" 1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1283fi 1284fi 1285RANLIB="$ac_cv_prog_RANLIB" 1286if test -n "$RANLIB"; then 1287 echo "$ac_t""$RANLIB" 1>&6 1288else 1289 echo "$ac_t""no" 1>&6 1290fi 1291 1292 1293echo $ac_n "checking for ID3Tag_New in -lid3""... $ac_c" 1>&6 1294echo "configure:1295: checking for ID3Tag_New in -lid3" >&5 1295ac_lib_var=`echo id3'_'ID3Tag_New | sed 'y%./+-%__p_%'` 1296if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1297 echo $ac_n "(cached) $ac_c" 1>&6 1298else 1299 ac_save_LIBS="$LIBS" 1300LIBS="-lid3 $LIBS" 1301cat > conftest.$ac_ext <<EOF 1302#line 1303 "configure" 1303#include "confdefs.h" 1304/* Override any gcc2 internal prototype to avoid an error. */ 1305/* We use char because int might match the return type of a gcc2 1306 builtin and then its argument prototype would still apply. */ 1307char ID3Tag_New(); 1308 1309int main() { 1310ID3Tag_New() 1311; return 0; } 1312EOF 1313if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1314 rm -rf conftest* 1315 eval "ac_cv_lib_$ac_lib_var=yes" 1316else 1317 echo "configure: failed program was:" >&5 1318 cat conftest.$ac_ext >&5 1319 rm -rf conftest* 1320 eval "ac_cv_lib_$ac_lib_var=no" 1321fi 1322rm -f conftest* 1323LIBS="$ac_save_LIBS" 1324 1325fi 1326if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1327 echo "$ac_t""yes" 1>&6 1328 ac_tr_lib=HAVE_LIB`echo id3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1330 cat >> confdefs.h <<EOF 1331#define $ac_tr_lib 1 1332EOF 1333 1334 LIBS="-lid3 $LIBS" 1335 1336else 1337 echo "$ac_t""no" 1>&6 1338fi 1339 1340echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6 1341echo "configure:1342: checking for cos in -lm" >&5 1342ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'` 1343if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 1345else 1346 ac_save_LIBS="$LIBS" 1347LIBS="-lm $LIBS" 1348cat > conftest.$ac_ext <<EOF 1349#line 1350 "configure" 1350#include "confdefs.h" 1351/* Override any gcc2 internal prototype to avoid an error. */ 1352/* We use char because int might match the return type of a gcc2 1353 builtin and then its argument prototype would still apply. */ 1354char cos(); 1355 1356int main() { 1357cos() 1358; return 0; } 1359EOF 1360if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1361 rm -rf conftest* 1362 eval "ac_cv_lib_$ac_lib_var=yes" 1363else 1364 echo "configure: failed program was:" >&5 1365 cat conftest.$ac_ext >&5 1366 rm -rf conftest* 1367 eval "ac_cv_lib_$ac_lib_var=no" 1368fi 1369rm -f conftest* 1370LIBS="$ac_save_LIBS" 1371 1372fi 1373if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1374 echo "$ac_t""yes" 1>&6 1375 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1377 cat >> confdefs.h <<EOF 1378#define $ac_tr_lib 1 1379EOF 1380 1381 LIBS="-lm $LIBS" 1382 1383else 1384 echo "$ac_t""no" 1>&6 1385fi 1386 1387echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 1388echo "configure:1389: checking for main in -lpthread" >&5 1389ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'` 1390if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1391 echo $ac_n "(cached) $ac_c" 1>&6 1392else 1393 ac_save_LIBS="$LIBS" 1394LIBS="-lpthread $LIBS" 1395cat > conftest.$ac_ext <<EOF 1396#line 1397 "configure" 1397#include "confdefs.h" 1398 1399int main() { 1400main() 1401; return 0; } 1402EOF 1403if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1404 rm -rf conftest* 1405 eval "ac_cv_lib_$ac_lib_var=yes" 1406else 1407 echo "configure: failed program was:" >&5 1408 cat conftest.$ac_ext >&5 1409 rm -rf conftest* 1410 eval "ac_cv_lib_$ac_lib_var=no" 1411fi 1412rm -f conftest* 1413LIBS="$ac_save_LIBS" 1414 1415fi 1416if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1417 echo "$ac_t""yes" 1>&6 1418 INCLUDEPTHREAD=1 1419else 1420 echo "$ac_t""no" 1>&6 1421fi 1422 1423echo $ac_n "checking for main in -lqt""... $ac_c" 1>&6 1424echo "configure:1425: checking for main in -lqt" >&5 1425ac_lib_var=`echo qt'_'main | sed 'y%./+-%__p_%'` 1426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1427 echo $ac_n "(cached) $ac_c" 1>&6 1428else 1429 ac_save_LIBS="$LIBS" 1430LIBS="-lqt $LIBS" 1431cat > conftest.$ac_ext <<EOF 1432#line 1433 "configure" 1433#include "confdefs.h" 1434 1435int main() { 1436main() 1437; return 0; } 1438EOF 1439if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1440 rm -rf conftest* 1441 eval "ac_cv_lib_$ac_lib_var=yes" 1442else 1443 echo "configure: failed program was:" >&5 1444 cat conftest.$ac_ext >&5 1445 rm -rf conftest* 1446 eval "ac_cv_lib_$ac_lib_var=no" 1447fi 1448rm -f conftest* 1449LIBS="$ac_save_LIBS" 1450 1451fi 1452if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1453 echo "$ac_t""yes" 1>&6 1454 XSPLAY=xsplay 1455else 1456 echo "$ac_t""no" 1>&6 1457fi 1458 1459 1460if test "$INCLUDEPTHREAD" = 1; then 1461 LIBS="$LIBS -lpthread" 1462cat >> confdefs.h <<\EOF 1463#define PTHREADEDMPEG 1 1464EOF 1465 1466cat >> confdefs.h <<\EOF 1467#define _REENTRANT 1 1468EOF 1469 1470echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1471echo "configure:1472: checking how to run the C preprocessor" >&5 1472# On Suns, sometimes $CPP names a directory. 1473if test -n "$CPP" && test -d "$CPP"; then 1474 CPP= 1475fi 1476if test -z "$CPP"; then 1477if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1478 echo $ac_n "(cached) $ac_c" 1>&6 1479else 1480 # This must be in double quotes, not single quotes, because CPP may get 1481 # substituted into the Makefile and "${CC-cc}" will confuse make. 1482 CPP="${CC-cc} -E" 1483 # On the NeXT, cc -E runs the code through the compiler's parser, 1484 # not just through cpp. 1485 cat > conftest.$ac_ext <<EOF 1486#line 1487 "configure" 1487#include "confdefs.h" 1488#include <assert.h> 1489Syntax Error 1490EOF 1491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1492{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1493ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1494if test -z "$ac_err"; then 1495 : 1496else 1497 echo "$ac_err" >&5 1498 echo "configure: failed program was:" >&5 1499 cat conftest.$ac_ext >&5 1500 rm -rf conftest* 1501 CPP="${CC-cc} -E -traditional-cpp" 1502 cat > conftest.$ac_ext <<EOF 1503#line 1504 "configure" 1504#include "confdefs.h" 1505#include <assert.h> 1506Syntax Error 1507EOF 1508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1509{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1511if test -z "$ac_err"; then 1512 : 1513else 1514 echo "$ac_err" >&5 1515 echo "configure: failed program was:" >&5 1516 cat conftest.$ac_ext >&5 1517 rm -rf conftest* 1518 CPP="${CC-cc} -nologo -E" 1519 cat > conftest.$ac_ext <<EOF 1520#line 1521 "configure" 1521#include "confdefs.h" 1522#include <assert.h> 1523Syntax Error 1524EOF 1525ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1526{ (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1527ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1528if test -z "$ac_err"; then 1529 : 1530else 1531 echo "$ac_err" >&5 1532 echo "configure: failed program was:" >&5 1533 cat conftest.$ac_ext >&5 1534 rm -rf conftest* 1535 CPP=/lib/cpp 1536fi 1537rm -f conftest* 1538fi 1539rm -f conftest* 1540fi 1541rm -f conftest* 1542 ac_cv_prog_CPP="$CPP" 1543fi 1544 CPP="$ac_cv_prog_CPP" 1545else 1546 ac_cv_prog_CPP="$CPP" 1547fi 1548echo "$ac_t""$CPP" 1>&6 1549 1550for ac_hdr in pthread.h pthread/mit/pthread.h 1551do 1552ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1553echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1554echo "configure:1555: checking for $ac_hdr" >&5 1555if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1556 echo $ac_n "(cached) $ac_c" 1>&6 1557else 1558 cat > conftest.$ac_ext <<EOF 1559#line 1560 "configure" 1560#include "confdefs.h" 1561#include <$ac_hdr> 1562EOF 1563ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1564{ (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1565ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1566if test -z "$ac_err"; then 1567 rm -rf conftest* 1568 eval "ac_cv_header_$ac_safe=yes" 1569else 1570 echo "$ac_err" >&5 1571 echo "configure: failed program was:" >&5 1572 cat conftest.$ac_ext >&5 1573 rm -rf conftest* 1574 eval "ac_cv_header_$ac_safe=no" 1575fi 1576rm -f conftest* 1577fi 1578if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1579 echo "$ac_t""yes" 1>&6 1580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1581 cat >> confdefs.h <<EOF 1582#define $ac_tr_hdr 1 1583EOF 1584 1585else 1586 echo "$ac_t""no" 1>&6 1587fi 1588done 1589 1590fi 1591 1592echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1593echo "configure:1594: checking for ANSI C header files" >&5 1594if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1595 echo $ac_n "(cached) $ac_c" 1>&6 1596else 1597 cat > conftest.$ac_ext <<EOF 1598#line 1599 "configure" 1599#include "confdefs.h" 1600#include <stdlib.h> 1601#include <stdarg.h> 1602#include <string.h> 1603#include <float.h> 1604EOF 1605ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1606{ (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1607ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1608if test -z "$ac_err"; then 1609 rm -rf conftest* 1610 ac_cv_header_stdc=yes 1611else 1612 echo "$ac_err" >&5 1613 echo "configure: failed program was:" >&5 1614 cat conftest.$ac_ext >&5 1615 rm -rf conftest* 1616 ac_cv_header_stdc=no 1617fi 1618rm -f conftest* 1619 1620if test $ac_cv_header_stdc = yes; then 1621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1622cat > conftest.$ac_ext <<EOF 1623#line 1624 "configure" 1624#include "confdefs.h" 1625#include <string.h> 1626EOF 1627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1628 egrep "memchr" >/dev/null 2>&1; then 1629 : 1630else 1631 rm -rf conftest* 1632 ac_cv_header_stdc=no 1633fi 1634rm -f conftest* 1635 1636fi 1637 1638if test $ac_cv_header_stdc = yes; then 1639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1640cat > conftest.$ac_ext <<EOF 1641#line 1642 "configure" 1642#include "confdefs.h" 1643#include <stdlib.h> 1644EOF 1645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1646 egrep "free" >/dev/null 2>&1; then 1647 : 1648else 1649 rm -rf conftest* 1650 ac_cv_header_stdc=no 1651fi 1652rm -f conftest* 1653 1654fi 1655 1656if test $ac_cv_header_stdc = yes; then 1657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1658if test "$cross_compiling" = yes; then 1659 : 1660else 1661 cat > conftest.$ac_ext <<EOF 1662#line 1663 "configure" 1663#include "confdefs.h" 1664#include <ctype.h> 1665#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1666#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1667#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1668int main () { int i; for (i = 0; i < 256; i++) 1669if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1670exit (0); } 1671 1672EOF 1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1674then 1675 : 1676else 1677 echo "configure: failed program was:" >&5 1678 cat conftest.$ac_ext >&5 1679 rm -fr conftest* 1680 ac_cv_header_stdc=no 1681fi 1682rm -fr conftest* 1683fi 1684 1685fi 1686fi 1687 1688echo "$ac_t""$ac_cv_header_stdc" 1>&6 1689if test $ac_cv_header_stdc = yes; then 1690 cat >> confdefs.h <<\EOF 1691#define STDC_HEADERS 1 1692EOF 1693 1694fi 1695 1696echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1697echo "configure:1698: checking for sys/wait.h that is POSIX.1 compatible" >&5 1698if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1699 echo $ac_n "(cached) $ac_c" 1>&6 1700else 1701 cat > conftest.$ac_ext <<EOF 1702#line 1703 "configure" 1703#include "confdefs.h" 1704#include <sys/types.h> 1705#include <sys/wait.h> 1706#ifndef WEXITSTATUS 1707#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1708#endif 1709#ifndef WIFEXITED 1710#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1711#endif 1712int main() { 1713int s; 1714wait (&s); 1715s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1716; return 0; } 1717EOF 1718if { (eval echo configure:1719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1719 rm -rf conftest* 1720 ac_cv_header_sys_wait_h=yes 1721else 1722 echo "configure: failed program was:" >&5 1723 cat conftest.$ac_ext >&5 1724 rm -rf conftest* 1725 ac_cv_header_sys_wait_h=no 1726fi 1727rm -f conftest* 1728fi 1729 1730echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1731if test $ac_cv_header_sys_wait_h = yes; then 1732 cat >> confdefs.h <<\EOF 1733#define HAVE_SYS_WAIT_H 1 1734EOF 1735 1736fi 1737 1738for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h 1739do 1740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1742echo "configure:1743: checking for $ac_hdr" >&5 1743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1744 echo $ac_n "(cached) $ac_c" 1>&6 1745else 1746 cat > conftest.$ac_ext <<EOF 1747#line 1748 "configure" 1748#include "confdefs.h" 1749#include <$ac_hdr> 1750EOF 1751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1752{ (eval echo configure:1753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1754if test -z "$ac_err"; then 1755 rm -rf conftest* 1756 eval "ac_cv_header_$ac_safe=yes" 1757else 1758 echo "$ac_err" >&5 1759 echo "configure: failed program was:" >&5 1760 cat conftest.$ac_ext >&5 1761 rm -rf conftest* 1762 eval "ac_cv_header_$ac_safe=no" 1763fi 1764rm -f conftest* 1765fi 1766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1767 echo "$ac_t""yes" 1>&6 1768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1769 cat >> confdefs.h <<EOF 1770#define $ac_tr_hdr 1 1771EOF 1772 1773else 1774 echo "$ac_t""no" 1>&6 1775fi 1776done 1777 1778 1779echo $ac_n "checking for working const""... $ac_c" 1>&6 1780echo "configure:1781: checking for working const" >&5 1781if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1782 echo $ac_n "(cached) $ac_c" 1>&6 1783else 1784 cat > conftest.$ac_ext <<EOF 1785#line 1786 "configure" 1786#include "confdefs.h" 1787 1788int main() { 1789 1790/* Ultrix mips cc rejects this. */ 1791typedef int charset[2]; const charset x; 1792/* SunOS 4.1.1 cc rejects this. */ 1793char const *const *ccp; 1794char **p; 1795/* NEC SVR4.0.2 mips cc rejects this. */ 1796struct point {int x, y;}; 1797static struct point const zero = {0,0}; 1798/* AIX XL C 1.02.0.0 rejects this. 1799 It does not let you subtract one const X* pointer from another in an arm 1800 of an if-expression whose if-part is not a constant expression */ 1801const char *g = "string"; 1802ccp = &g + (g ? g-g : 0); 1803/* HPUX 7.0 cc rejects these. */ 1804++ccp; 1805p = (char**) ccp; 1806ccp = (char const *const *) p; 1807{ /* SCO 3.2v4 cc rejects this. */ 1808 char *t; 1809 char const *s = 0 ? (char *) 0 : (char const *) 0; 1810 1811 *t++ = 0; 1812} 1813{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1814 int x[] = {25, 17}; 1815 const int *foo = &x[0]; 1816 ++foo; 1817} 1818{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1819 typedef const int *iptr; 1820 iptr p = 0; 1821 ++p; 1822} 1823{ /* AIX XL C 1.02.0.0 rejects this saying 1824 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1825 struct s { int j; const int *ap[3]; }; 1826 struct s *b; b->j = 5; 1827} 1828{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1829 const int foo = 10; 1830} 1831 1832; return 0; } 1833EOF 1834if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1835 rm -rf conftest* 1836 ac_cv_c_const=yes 1837else 1838 echo "configure: failed program was:" >&5 1839 cat conftest.$ac_ext >&5 1840 rm -rf conftest* 1841 ac_cv_c_const=no 1842fi 1843rm -f conftest* 1844fi 1845 1846echo "$ac_t""$ac_cv_c_const" 1>&6 1847if test $ac_cv_c_const = no; then 1848 cat >> confdefs.h <<\EOF 1849#define const 1850EOF 1851 1852fi 1853 1854echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 1855echo "configure:1856: checking whether byte ordering is bigendian" >&5 1856if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1857 echo $ac_n "(cached) $ac_c" 1>&6 1858else 1859 ac_cv_c_bigendian=unknown 1860# See if sys/param.h defines the BYTE_ORDER macro. 1861cat > conftest.$ac_ext <<EOF 1862#line 1863 "configure" 1863#include "confdefs.h" 1864#include <sys/types.h> 1865#include <sys/param.h> 1866int main() { 1867 1868#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 1869 bogus endian macros 1870#endif 1871; return 0; } 1872EOF 1873if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1874 rm -rf conftest* 1875 # It does; now see whether it defined to BIG_ENDIAN or not. 1876cat > conftest.$ac_ext <<EOF 1877#line 1878 "configure" 1878#include "confdefs.h" 1879#include <sys/types.h> 1880#include <sys/param.h> 1881int main() { 1882 1883#if BYTE_ORDER != BIG_ENDIAN 1884 not big endian 1885#endif 1886; return 0; } 1887EOF 1888if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1889 rm -rf conftest* 1890 ac_cv_c_bigendian=yes 1891else 1892 echo "configure: failed program was:" >&5 1893 cat conftest.$ac_ext >&5 1894 rm -rf conftest* 1895 ac_cv_c_bigendian=no 1896fi 1897rm -f conftest* 1898else 1899 echo "configure: failed program was:" >&5 1900 cat conftest.$ac_ext >&5 1901fi 1902rm -f conftest* 1903if test $ac_cv_c_bigendian = unknown; then 1904if test "$cross_compiling" = yes; then 1905 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1906else 1907 cat > conftest.$ac_ext <<EOF 1908#line 1909 "configure" 1909#include "confdefs.h" 1910main () { 1911 /* Are we little or big endian? From Harbison&Steele. */ 1912 union 1913 { 1914 long l; 1915 char c[sizeof (long)]; 1916 } u; 1917 u.l = 1; 1918 exit (u.c[sizeof (long) - 1] == 1); 1919} 1920EOF 1921if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1922then 1923 ac_cv_c_bigendian=no 1924else 1925 echo "configure: failed program was:" >&5 1926 cat conftest.$ac_ext >&5 1927 rm -fr conftest* 1928 ac_cv_c_bigendian=yes 1929fi 1930rm -fr conftest* 1931fi 1932 1933fi 1934fi 1935 1936echo "$ac_t""$ac_cv_c_bigendian" 1>&6 1937if test $ac_cv_c_bigendian = yes; then 1938 cat >> confdefs.h <<\EOF 1939#define WORDS_BIGENDIAN 1 1940EOF 1941 1942fi 1943 1944echo $ac_n "checking for pid_t""... $ac_c" 1>&6 1945echo "configure:1946: checking for pid_t" >&5 1946if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 1947 echo $ac_n "(cached) $ac_c" 1>&6 1948else 1949 cat > conftest.$ac_ext <<EOF 1950#line 1951 "configure" 1951#include "confdefs.h" 1952#include <sys/types.h> 1953#if STDC_HEADERS 1954#include <stdlib.h> 1955#include <stddef.h> 1956#endif 1957EOF 1958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1959 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1960 rm -rf conftest* 1961 ac_cv_type_pid_t=yes 1962else 1963 rm -rf conftest* 1964 ac_cv_type_pid_t=no 1965fi 1966rm -f conftest* 1967 1968fi 1969echo "$ac_t""$ac_cv_type_pid_t" 1>&6 1970#if test $ac_cv_type_pid_t = no; then 1971# cat >> confdefs.h <<\EOF 1972##define pid_t int 1973#EOF 1974# 1975#fi 1976 1977 1978if test $ac_cv_prog_gcc = yes; then 1979 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1980echo "configure:1981: checking whether ${CC-cc} needs -traditional" >&5 1981if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1982 echo $ac_n "(cached) $ac_c" 1>&6 1983else 1984 ac_pattern="Autoconf.*'x'" 1985 cat > conftest.$ac_ext <<EOF 1986#line 1987 "configure" 1987#include "confdefs.h" 1988#include <sgtty.h> 1989Autoconf TIOCGETP 1990EOF 1991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1992 egrep "$ac_pattern" >/dev/null 2>&1; then 1993 rm -rf conftest* 1994 ac_cv_prog_gcc_traditional=yes 1995else 1996 rm -rf conftest* 1997 ac_cv_prog_gcc_traditional=no 1998fi 1999rm -f conftest* 2000 2001 2002 if test $ac_cv_prog_gcc_traditional = no; then 2003 cat > conftest.$ac_ext <<EOF 2004#line 2005 "configure" 2005#include "confdefs.h" 2006#include <termio.h> 2007Autoconf TCGETA 2008EOF 2009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2010 egrep "$ac_pattern" >/dev/null 2>&1; then 2011 rm -rf conftest* 2012 ac_cv_prog_gcc_traditional=yes 2013fi 2014rm -f conftest* 2015 2016 fi 2017fi 2018 2019echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 2020 if test $ac_cv_prog_gcc_traditional = yes; then 2021 CC="$CC -traditional" 2022 fi 2023fi 2024 2025echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2026echo "configure:2027: checking return type of signal handlers" >&5 2027if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2028 echo $ac_n "(cached) $ac_c" 1>&6 2029else 2030 cat > conftest.$ac_ext <<EOF 2031#line 2032 "configure" 2032#include "confdefs.h" 2033#include <sys/types.h> 2034#include <signal.h> 2035#ifdef signal 2036#undef signal 2037#endif 2038#ifdef __cplusplus 2039extern "C" void (*signal (int, void (*)(int)))(int); 2040#else 2041void (*signal ()) (); 2042#endif 2043 2044int main() { 2045int i; 2046; return 0; } 2047EOF 2048if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2049 rm -rf conftest* 2050 ac_cv_type_signal=void 2051else 2052 echo "configure: failed program was:" >&5 2053 cat conftest.$ac_ext >&5 2054 rm -rf conftest* 2055 ac_cv_type_signal=int 2056fi 2057rm -f conftest* 2058fi 2059 2060echo "$ac_t""$ac_cv_type_signal" 1>&6 2061cat >> confdefs.h <<EOF 2062#define RETSIGTYPE $ac_cv_type_signal 2063EOF 2064 2065 2066for ac_func in socket strdup strstr 2067do 2068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2069echo "configure:2070: checking for $ac_func" >&5 2070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2071 echo $ac_n "(cached) $ac_c" 1>&6 2072else 2073 cat > conftest.$ac_ext <<EOF 2074#line 2075 "configure" 2075#include "confdefs.h" 2076/* System header to define __stub macros and hopefully few prototypes, 2077 which can conflict with char $ac_func(); below. */ 2078#include <assert.h> 2079/* Override any gcc2 internal prototype to avoid an error. */ 2080/* We use char because int might match the return type of a gcc2 2081 builtin and then its argument prototype would still apply. */ 2082char $ac_func(); 2083 2084int main() { 2085 2086/* The GNU C library defines this for functions which it implements 2087 to always fail with ENOSYS. Some functions are actually named 2088 something starting with __ and the normal name is an alias. */ 2089#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2090choke me 2091#else 2092$ac_func(); 2093#endif 2094 2095; return 0; } 2096EOF 2097if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2098 rm -rf conftest* 2099 eval "ac_cv_func_$ac_func=yes" 2100else 2101 echo "configure: failed program was:" >&5 2102 cat conftest.$ac_ext >&5 2103 rm -rf conftest* 2104 eval "ac_cv_func_$ac_func=no" 2105fi 2106rm -f conftest* 2107fi 2108 2109if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2110 echo "$ac_t""yes" 1>&6 2111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2112 cat >> confdefs.h <<EOF 2113#define $ac_tr_func 1 2114EOF 2115 2116else 2117 echo "$ac_t""no" 1>&6 2118fi 2119done 2120 2121 2122trap '' 1 2 15 2123cat > confcache <<\EOF 2124# This file is a shell script that caches the results of configure 2125# tests run on this system so they can be shared between configure 2126# scripts and configure runs. It is not useful on other systems. 2127# If it contains results you don't want to keep, you may remove or edit it. 2128# 2129# By default, configure uses ./config.cache as the cache file, 2130# creating it if it does not exist already. You can give configure 2131# the --cache-file=FILE option to use a different cache file; that is 2132# what configure does when it calls configure scripts in 2133# subdirectories, so they share the cache. 2134# Giving --cache-file=/dev/null disables caching, for debugging configure. 2135# config.status only pays attention to the cache file if you give it the 2136# --recheck option to rerun configure. 2137# 2138EOF 2139# The following way of writing the cache mishandles newlines in values, 2140# but we know of no workaround that is simple, portable, and efficient. 2141# So, don't put newlines in cache variables' values. 2142# Ultrix sh set writes to stderr and can't be redirected directly, 2143# and sets the high bit in the cache file unless we assign to the vars. 2144(set) 2>&1 | 2145 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2146 *ac_space=\ *) 2147 # `set' does not quote correctly, so add quotes (double-quote substitution 2148 # turns \\\\ into \\, and sed turns \\ into \). 2149 sed -n \ 2150 -e "s/'/'\\\\''/g" \ 2151 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2152 ;; 2153 *) 2154 # `set' quotes correctly as required by POSIX, so do not add quotes. 2155 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2156 ;; 2157 esac >> confcache 2158if cmp -s $cache_file confcache; then 2159 : 2160else 2161 if test -w $cache_file; then 2162 echo "updating cache $cache_file" 2163 cat confcache > $cache_file 2164 else 2165 echo "not updating unwritable cache $cache_file" 2166 fi 2167fi 2168rm -f confcache 2169 2170trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2171 2172test "x$prefix" = xNONE && prefix=$ac_default_prefix 2173# Let make expand exec_prefix. 2174test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2175 2176# Any assignment to VPATH causes Sun make to only execute 2177# the first set of double-colon rules, so remove it if not needed. 2178# If there is a colon in the path, we need to keep it. 2179if test "x$srcdir" = x.; then 2180 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2181fi 2182 2183trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2184 2185# Transform confdefs.h into DEFS. 2186# Protect against shell expansion while executing Makefile rules. 2187# Protect against Makefile macro expansion. 2188cat > conftest.defs <<\EOF 2189s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 2190s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 2191s%\[%\\&%g 2192s%\]%\\&%g 2193s%\$%$$%g 2194EOF 2195DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 2196rm -f conftest.defs 2197 2198 2199# Without the "./", some shells look in PATH for config.status. 2200: ${CONFIG_STATUS=./config.status} 2201 2202echo creating $CONFIG_STATUS 2203rm -f $CONFIG_STATUS 2204cat > $CONFIG_STATUS <<EOF 2205#! /bin/sh 2206# Generated automatically by configure. 2207# Run this file to recreate the current configuration. 2208# This directory was configured as follows, 2209# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2210# 2211# $0 $ac_configure_args 2212# 2213# Compiler output produced by configure, useful for debugging 2214# configure, is in ./config.log if it exists. 2215 2216ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2217for ac_option 2218do 2219 case "\$ac_option" in 2220 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2221 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2222 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2223 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2224 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2225 exit 0 ;; 2226 -help | --help | --hel | --he | --h) 2227 echo "\$ac_cs_usage"; exit 0 ;; 2228 *) echo "\$ac_cs_usage"; exit 1 ;; 2229 esac 2230done 2231 2232ac_given_srcdir=$srcdir 2233ac_given_INSTALL="$INSTALL" 2234 2235trap 'rm -fr `echo "apps/Makefile Makefile libs/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2236EOF 2237cat >> $CONFIG_STATUS <<EOF 2238 2239# Protect against being on the right side of a sed subst in config.status. 2240sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2241 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2242$ac_vpsub 2243$extrasub 2244s%@SHELL@%$SHELL%g 2245s%@CFLAGS@%$CFLAGS%g 2246s%@CPPFLAGS@%$CPPFLAGS%g 2247s%@CXXFLAGS@%$CXXFLAGS%g 2248s%@FFLAGS@%$FFLAGS%g 2249s%@DEFS@%$DEFS%g 2250s%@LDFLAGS@%$LDFLAGS%g 2251s%@LIBS@%$LIBS%g 2252s%@exec_prefix@%$exec_prefix%g 2253s%@prefix@%$prefix%g 2254s%@program_transform_name@%$program_transform_name%g 2255s%@bindir@%$bindir%g 2256s%@sbindir@%$sbindir%g 2257s%@libexecdir@%$libexecdir%g 2258s%@datadir@%$datadir%g 2259s%@sysconfdir@%$sysconfdir%g 2260s%@sharedstatedir@%$sharedstatedir%g 2261s%@localstatedir@%$localstatedir%g 2262s%@libdir@%$libdir%g 2263s%@includedir@%$includedir%g 2264s%@oldincludedir@%$oldincludedir%g 2265s%@infodir@%$infodir%g 2266s%@mandir@%$mandir%g 2267s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2268s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2269s%@INSTALL_DATA@%$INSTALL_DATA%g 2270s%@PACKAGE@%$PACKAGE%g 2271s%@VERSION@%$VERSION%g 2272s%@ACLOCAL@%$ACLOCAL%g 2273s%@AUTOCONF@%$AUTOCONF%g 2274s%@AUTOMAKE@%$AUTOMAKE%g 2275s%@AUTOHEADER@%$AUTOHEADER%g 2276s%@MAKEINFO@%$MAKEINFO%g 2277s%@SET_MAKE@%$SET_MAKE%g 2278s%@XSPLAY@%$XSPLAY%g 2279s%@AWK@%$AWK%g 2280s%@CC@%$CC%g 2281s%@CXX@%$CXX%g 2282s%@LN_S@%$LN_S%g 2283s%@RANLIB@%$RANLIB%g 2284s%@CPP@%$CPP%g 2285 2286CEOF 2287EOF 2288 2289cat >> $CONFIG_STATUS <<\EOF 2290 2291# Split the substitutions into bite-sized pieces for seds with 2292# small command number limits, like on Digital OSF/1 and HP-UX. 2293ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2294ac_file=1 # Number of current file. 2295ac_beg=1 # First line for current file. 2296ac_end=$ac_max_sed_cmds # Line after last line for current file. 2297ac_more_lines=: 2298ac_sed_cmds="" 2299while $ac_more_lines; do 2300 if test $ac_beg -gt 1; then 2301 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2302 else 2303 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2304 fi 2305 if test ! -s conftest.s$ac_file; then 2306 ac_more_lines=false 2307 rm -f conftest.s$ac_file 2308 else 2309 if test -z "$ac_sed_cmds"; then 2310 ac_sed_cmds="sed -f conftest.s$ac_file" 2311 else 2312 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2313 fi 2314 ac_file=`expr $ac_file + 1` 2315 ac_beg=$ac_end 2316 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2317 fi 2318done 2319if test -z "$ac_sed_cmds"; then 2320 ac_sed_cmds=cat 2321fi 2322EOF 2323 2324cat >> $CONFIG_STATUS <<EOF 2325 2326CONFIG_FILES=\${CONFIG_FILES-"apps/Makefile Makefile libs/Makefile"} 2327EOF 2328cat >> $CONFIG_STATUS <<\EOF 2329for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2331 case "$ac_file" in 2332 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2333 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2334 *) ac_file_in="${ac_file}.in" ;; 2335 esac 2336 2337 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2338 2339 # Remove last slash and all that follows it. Not all systems have dirname. 2340 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2341 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2342 # The file is in a subdirectory. 2343 test ! -d "$ac_dir" && mkdir "$ac_dir" 2344 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2345 # A "../" for each directory in $ac_dir_suffix. 2346 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2347 else 2348 ac_dir_suffix= ac_dots= 2349 fi 2350 2351 case "$ac_given_srcdir" in 2352 .) srcdir=. 2353 if test -z "$ac_dots"; then top_srcdir=. 2354 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2355 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2356 *) # Relative path. 2357 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2358 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2359 esac 2360 2361 case "$ac_given_INSTALL" in 2362 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2363 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2364 esac 2365 2366 echo creating "$ac_file" 2367 rm -f "$ac_file" 2368 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2369 case "$ac_file" in 2370 *Makefile*) ac_comsub="1i\\ 2371# $configure_input" ;; 2372 *) ac_comsub= ;; 2373 esac 2374 2375 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2376 sed -e "$ac_comsub 2377s%@configure_input@%$configure_input%g 2378s%@srcdir@%$srcdir%g 2379s%@top_srcdir@%$top_srcdir%g 2380s%@INSTALL@%$INSTALL%g 2381" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2382fi; done 2383rm -f conftest.s* 2384 2385EOF 2386cat >> $CONFIG_STATUS <<EOF 2387 2388EOF 2389cat >> $CONFIG_STATUS <<\EOF 2390 2391exit 0 2392EOF 2393chmod +x $CONFIG_STATUS 2394rm -fr confdefs* $ac_clean_files 2395test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2396 2397