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