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