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