1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14 15# Initialize some variables set by options. 16# The variables have the same names as the options, with 17# dashes changed to underlines. 18build=NONE 19cache_file=./config.cache 20exec_prefix=NONE 21host=NONE 22no_create= 23nonopt=NONE 24no_recursion= 25prefix=NONE 26program_prefix=NONE 27program_suffix=NONE 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE 36bindir='${exec_prefix}/bin' 37sbindir='${exec_prefix}/sbin' 38libexecdir='${exec_prefix}/libexec' 39datadir='${prefix}/share' 40sysconfdir='${prefix}/etc' 41sharedstatedir='${prefix}/com' 42localstatedir='${prefix}/var' 43libdir='${exec_prefix}/lib' 44includedir='${prefix}/include' 45oldincludedir='/usr/include' 46infodir='${prefix}/info' 47mandir='${prefix}/man' 48 49# Initialize some other variables. 50subdirs= 51MFLAGS= MAKEFLAGS= 52SHELL=${CONFIG_SHELL-/bin/sh} 53# Maximum number of lines to put in a shell here document. 54ac_max_here_lines=12 55 56ac_prev= 57for ac_option 58do 59 60 # If the previous option needs an argument, assign it. 61 if test -n "$ac_prev"; then 62 eval "$ac_prev=\$ac_option" 63 ac_prev= 64 continue 65 fi 66 67 case "$ac_option" in 68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 69 *) ac_optarg= ;; 70 esac 71 72 # Accept the important Cygnus configure options, so we can diagnose typos. 73 74 case "$ac_option" in 75 76 -bindir | --bindir | --bindi | --bind | --bin | --bi) 77 ac_prev=bindir ;; 78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 79 bindir="$ac_optarg" ;; 80 81 -build | --build | --buil | --bui | --bu) 82 ac_prev=build ;; 83 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 84 build="$ac_optarg" ;; 85 86 -cache-file | --cache-file | --cache-fil | --cache-fi \ 87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88 ac_prev=cache_file ;; 89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 91 cache_file="$ac_optarg" ;; 92 93 -cc=* | --cc=* ) 94 CC="$ac_optarg" ; echo using $CC as compiler ;; 95 96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 97 ac_prev=datadir ;; 98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 99 | --da=*) 100 datadir="$ac_optarg" ;; 101 102 -disable-* | --disable-*) 103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 104 # Reject names that are not valid shell variable names. 105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 107 fi 108 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 109 eval "enable_${ac_feature}=no" ;; 110 111 -enable-* | --enable-*) 112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 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 case "$ac_option" in 119 *=*) ;; 120 *) ac_optarg=yes ;; 121 esac 122 eval "enable_${ac_feature}='$ac_optarg'" ;; 123 124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 126 | --exec | --exe | --ex) 127 ac_prev=exec_prefix ;; 128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 130 | --exec=* | --exe=* | --ex=*) 131 exec_prefix="$ac_optarg" ;; 132 133 -gas | --gas | --ga | --g) 134 # Obsolete; use --with-gas. 135 with_gas=yes ;; 136 137 -help | --help | --hel | --he) 138 # Omit some internal or obsolete options to make the list less imposing. 139 # This message is too long to be a string in the A/UX 3.1 sh. 140 cat << EOF 141Usage: configure [options] [host] 142Options: [defaults in brackets after descriptions] 143Configuration: 144 --cache-file=FILE cache test results in FILE 145 --help print this message 146 --no-create do not create output files 147 --quiet, --silent do not print \`checking...' messages 148 --version print the version of autoconf that created configure 149Directory and file names: 150 --prefix=PREFIX install architecture-independent files in PREFIX 151 [$ac_default_prefix] 152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 153 [same as prefix] 154 --bindir=DIR user executables in DIR [EPREFIX/bin] 155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 157 --datadir=DIR read-only architecture-independent data in DIR 158 [PREFIX/share] 159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 160 --sharedstatedir=DIR modifiable architecture-independent data in DIR 161 [PREFIX/com] 162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 163 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 164 --includedir=DIR C header files in DIR [PREFIX/include] 165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 166 --infodir=DIR info documentation in DIR [PREFIX/info] 167 --mandir=DIR man documentation in DIR [PREFIX/man] 168 --srcdir=DIR find the sources in DIR [configure dir or ..] 169 --program-prefix=PREFIX prepend PREFIX to installed program names 170 --program-suffix=SUFFIX append SUFFIX to installed program names 171 --program-transform-name=PROGRAM 172 run sed PROGRAM on installed program names 173EOF 174 cat << EOF 175Host type: 176 --build=BUILD configure for building on BUILD [BUILD=HOST] 177 --host=HOST configure for HOST [guessed] 178 --target=TARGET configure for TARGET [TARGET=HOST] 179Features and packages: 180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 184 --x-includes=DIR X include files are in DIR 185 --x-libraries=DIR X library files are in DIR 186EOF 187 if test -n "$ac_help"; then 188 echo "--enable and --with options recognized:$ac_help" 189 fi 190 exit 0 ;; 191 192 -host | --host | --hos | --ho) 193 ac_prev=host ;; 194 -host=* | --host=* | --hos=* | --ho=*) 195 host="$ac_optarg" ;; 196 197 -includedir | --includedir | --includedi | --included | --include \ 198 | --includ | --inclu | --incl | --inc) 199 ac_prev=includedir ;; 200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 201 | --includ=* | --inclu=* | --incl=* | --inc=*) 202 includedir="$ac_optarg" ;; 203 204 -infodir | --infodir | --infodi | --infod | --info | --inf) 205 ac_prev=infodir ;; 206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 207 infodir="$ac_optarg" ;; 208 209 -libdir | --libdir | --libdi | --libd) 210 ac_prev=libdir ;; 211 -libdir=* | --libdir=* | --libdi=* | --libd=*) 212 libdir="$ac_optarg" ;; 213 214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 215 | --libexe | --libex | --libe) 216 ac_prev=libexecdir ;; 217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 218 | --libexe=* | --libex=* | --libe=*) 219 libexecdir="$ac_optarg" ;; 220 221 -localstatedir | --localstatedir | --localstatedi | --localstated \ 222 | --localstate | --localstat | --localsta | --localst \ 223 | --locals | --local | --loca | --loc | --lo) 224 ac_prev=localstatedir ;; 225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 228 localstatedir="$ac_optarg" ;; 229 230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 231 ac_prev=mandir ;; 232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 233 mandir="$ac_optarg" ;; 234 235 -nfp | --nfp | --nf) 236 # Obsolete; use --without-fp. 237 with_fp=no ;; 238 239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 240 | --no-cr | --no-c) 241 no_create=yes ;; 242 243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 245 no_recursion=yes ;; 246 247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 249 | --oldin | --oldi | --old | --ol | --o) 250 ac_prev=oldincludedir ;; 251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 254 oldincludedir="$ac_optarg" ;; 255 256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 257 ac_prev=prefix ;; 258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 259 prefix="$ac_optarg" ;; 260 261 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 262 | --program-pre | --program-pr | --program-p) 263 ac_prev=program_prefix ;; 264 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 266 program_prefix="$ac_optarg" ;; 267 268 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 269 | --program-suf | --program-su | --program-s) 270 ac_prev=program_suffix ;; 271 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 273 program_suffix="$ac_optarg" ;; 274 275 -program-transform-name | --program-transform-name \ 276 | --program-transform-nam | --program-transform-na \ 277 | --program-transform-n | --program-transform- \ 278 | --program-transform | --program-transfor \ 279 | --program-transfo | --program-transf \ 280 | --program-trans | --program-tran \ 281 | --progr-tra | --program-tr | --program-t) 282 ac_prev=program_transform_name ;; 283 -program-transform-name=* | --program-transform-name=* \ 284 | --program-transform-nam=* | --program-transform-na=* \ 285 | --program-transform-n=* | --program-transform-=* \ 286 | --program-transform=* | --program-transfor=* \ 287 | --program-transfo=* | --program-transf=* \ 288 | --program-trans=* | --program-tran=* \ 289 | --progr-tra=* | --program-tr=* | --program-t=*) 290 program_transform_name="$ac_optarg" ;; 291 292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 293 | -silent | --silent | --silen | --sile | --sil) 294 silent=yes ;; 295 296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 297 ac_prev=sbindir ;; 298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 299 | --sbi=* | --sb=*) 300 sbindir="$ac_optarg" ;; 301 302 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 304 | --sharedst | --shareds | --shared | --share | --shar \ 305 | --sha | --sh) 306 ac_prev=sharedstatedir ;; 307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 310 | --sha=* | --sh=*) 311 sharedstatedir="$ac_optarg" ;; 312 313 -site | --site | --sit) 314 ac_prev=site ;; 315 -site=* | --site=* | --sit=*) 316 site="$ac_optarg" ;; 317 318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 319 ac_prev=srcdir ;; 320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 321 srcdir="$ac_optarg" ;; 322 323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 324 | --syscon | --sysco | --sysc | --sys | --sy) 325 ac_prev=sysconfdir ;; 326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 328 sysconfdir="$ac_optarg" ;; 329 330 -target | --target | --targe | --targ | --tar | --ta | --t) 331 ac_prev=target ;; 332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 333 target="$ac_optarg" ;; 334 335 -v | -verbose | --verbose | --verbos | --verbo | --verb) 336 verbose=yes ;; 337 338 -version | --version | --versio | --versi | --vers) 339 echo "configure generated by autoconf version 2.13" 340 exit 0 ;; 341 342 -with-* | --with-*) 343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 344 # Reject names that are not valid shell variable names. 345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 347 fi 348 ac_package=`echo $ac_package| sed 's/-/_/g'` 349 case "$ac_option" in 350 *=*) ;; 351 *) ac_optarg=yes ;; 352 esac 353 eval "with_${ac_package}='$ac_optarg'" ;; 354 355 -without-* | --without-*) 356 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 357 # Reject names that are not valid shell variable names. 358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 360 fi 361 ac_package=`echo $ac_package| sed 's/-/_/g'` 362 eval "with_${ac_package}=no" ;; 363 364 --x) 365 # Obsolete; use --with-x. 366 with_x=yes ;; 367 368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 369 | --x-incl | --x-inc | --x-in | --x-i) 370 ac_prev=x_includes ;; 371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 373 x_includes="$ac_optarg" ;; 374 375 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 377 ac_prev=x_libraries ;; 378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 380 x_libraries="$ac_optarg" ;; 381 382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 383 ;; 384 385 *) 386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 387 echo "configure: warning: $ac_option: invalid host type" 1>&2 388 fi 389 if test "x$nonopt" != xNONE; then 390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 391 fi 392 nonopt="$ac_option" 393 ;; 394 395 esac 396done 397 398if test -n "$ac_prev"; then 399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 400fi 401 402trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 403 404# File descriptor usage: 405# 0 standard input 406# 1 file creation 407# 2 errors and warnings 408# 3 some systems may open it to /dev/tty 409# 4 used on the Kubota Titan 410# 6 checking for... messages and results 411# 5 compiler messages saved in config.log 412if test "$silent" = yes; then 413 exec 6>/dev/null 414else 415 exec 6>&1 416fi 417exec 5>./config.log 418 419echo "\ 420This file contains any messages produced by compilers while 421running configure, to aid debugging if configure makes a mistake. 422" 1>&5 423 424# Strip out --no-create and --no-recursion so they do not pile up. 425# Also quote any args containing shell metacharacters. 426ac_configure_args= 427for ac_arg 428do 429 case "$ac_arg" in 430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 431 | --no-cr | --no-c) ;; 432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 435 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 436 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 437 esac 438done 439 440# NLS nuisances. 441# Only set these to C if already set. These must not be set unconditionally 442# because not all systems understand e.g. LANG=C (notably SCO). 443# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 444# Non-C LC_CTYPE values break the ctype check. 445if test "${LANG+set}" = set; then LANG=C; export LANG; fi 446if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 447if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 448if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 449 450# confdefs.h avoids OS command line length limits that DEFS can exceed. 451rm -rf conftest* confdefs.h 452# AIX cpp loses on an empty file, so make sure it contains at least a newline. 453echo > confdefs.h 454 455# A filename unique to this package, relative to the directory that 456# configure is in, which we can look for to find out if srcdir is correct. 457ac_unique_file=cdda2wav.c 458 459# Find the source files, if location was not specified. 460if test -z "$srcdir"; then 461 ac_srcdir_defaulted=yes 462 # Try the directory containing this script, then its parent. 463 ac_prog=$0 464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 466 srcdir=$ac_confdir 467 if test ! -r $srcdir/$ac_unique_file; then 468 srcdir=.. 469 fi 470else 471 ac_srcdir_defaulted=no 472fi 473if test ! -r $srcdir/$ac_unique_file; then 474 if test "$ac_srcdir_defaulted" = yes; then 475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 476 else 477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 478 fi 479fi 480srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 481 482# Prefer explicitly selected file to automatically selected ones. 483if test -z "$CONFIG_SITE"; then 484 if test "x$prefix" != xNONE; then 485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 486 else 487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 488 fi 489fi 490for ac_site_file in $CONFIG_SITE; do 491 if test -r "$ac_site_file"; then 492 echo "loading site script $ac_site_file" 493 . "$ac_site_file" 494 fi 495done 496 497if test -r "$cache_file"; then 498 echo "loading cache $cache_file" 499 . $cache_file 500else 501 echo "creating cache $cache_file" 502 > $cache_file 503fi 504 505ac_ext=c 506# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 507ac_cpp='$CPP $CPPFLAGS' 508ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 509ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 510cross_compiling=$ac_cv_prog_cc_cross 511 512ac_exeext= 513ac_objext=o 514if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 517 ac_n= ac_c=' 518' ac_t=' ' 519 else 520 ac_n=-n ac_c= ac_t= 521 fi 522else 523 ac_n= ac_c='\c' ac_t= 524fi 525 526 527 528 529ac_aux_dir= 530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 531 if test -f $ac_dir/install-sh; then 532 ac_aux_dir=$ac_dir 533 ac_install_sh="$ac_aux_dir/install-sh -c" 534 break 535 elif test -f $ac_dir/install.sh; then 536 ac_aux_dir=$ac_dir 537 ac_install_sh="$ac_aux_dir/install.sh -c" 538 break 539 fi 540done 541if test -z "$ac_aux_dir"; then 542 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 543fi 544ac_config_guess=$ac_aux_dir/config.guess 545ac_config_sub=$ac_aux_dir/config.sub 546ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 547 548 549# Make sure we can run config.sub. 550if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 551else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 552fi 553 554echo $ac_n "checking host system type""... $ac_c" 1>&6 555echo "configure:556: checking host system type" >&5 556 557host_alias=$host 558case "$host_alias" in 559NONE) 560 case $nonopt in 561 NONE) 562 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 563 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 564 fi ;; 565 *) host_alias=$nonopt ;; 566 esac ;; 567esac 568 569host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 570host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 571host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 572host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 573echo "$ac_t""$host" 1>&6 574 575 576CDRTOOLS_VERSION=`sed -n -f ../../version.sed <../../../cdrecord/cdrecord.c` 577 578 579 580case "$host_os" in 581 solaris*|sunos*) 582echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 583echo "configure:584: checking for sched_get_priority_max in -lposix4" >&5 584ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` 585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 586 echo $ac_n "(cached) $ac_c" 1>&6 587else 588 ac_save_LIBS="$LIBS" 589LIBS="-lposix4 $LIBS" 590cat > conftest.$ac_ext <<EOF 591#line 592 "configure" 592#include "confdefs.h" 593/* Override any gcc2 internal prototype to avoid an error. */ 594/* We use char because int might match the return type of a gcc2 595 builtin and then its argument prototype would still apply. */ 596char sched_get_priority_max(); 597 598int main() { 599sched_get_priority_max() 600; return 0; } 601EOF 602if { (eval echo configure:603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 603 rm -rf conftest* 604 eval "ac_cv_lib_$ac_lib_var=yes" 605else 606 echo "configure: failed program was:" >&5 607 cat conftest.$ac_ext >&5 608 rm -rf conftest* 609 eval "ac_cv_lib_$ac_lib_var=no" 610fi 611rm -f conftest* 612LIBS="$ac_save_LIBS" 613 614fi 615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 616 echo "$ac_t""yes" 1>&6 617 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 619 cat >> confdefs.h <<EOF 620#define $ac_tr_lib 1 621EOF 622 623 LIBS="-lposix4 $LIBS" 624 625else 626 echo "$ac_t""no" 1>&6 627fi 628 629;; 630esac 631echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 632echo "configure:633: checking for _oss_ioctl in -lossaudio" >&5 633ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` 634if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 635 echo $ac_n "(cached) $ac_c" 1>&6 636else 637 ac_save_LIBS="$LIBS" 638LIBS="-lossaudio $LIBS" 639cat > conftest.$ac_ext <<EOF 640#line 641 "configure" 641#include "confdefs.h" 642/* Override any gcc2 internal prototype to avoid an error. */ 643/* We use char because int might match the return type of a gcc2 644 builtin and then its argument prototype would still apply. */ 645char _oss_ioctl(); 646 647int main() { 648_oss_ioctl() 649; return 0; } 650EOF 651if { (eval echo configure:652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 652 rm -rf conftest* 653 eval "ac_cv_lib_$ac_lib_var=yes" 654else 655 echo "configure: failed program was:" >&5 656 cat conftest.$ac_ext >&5 657 rm -rf conftest* 658 eval "ac_cv_lib_$ac_lib_var=no" 659fi 660rm -f conftest* 661LIBS="$ac_save_LIBS" 662 663fi 664if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 665 echo "$ac_t""yes" 1>&6 666 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 668 cat >> confdefs.h <<EOF 669#define $ac_tr_lib 1 670EOF 671 672 LIBS="-lossaudio $LIBS" 673 674else 675 echo "$ac_t""no" 1>&6 676fi 677 678 679EXTRALIBS="$LIBS" 680 681 682 683echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 684echo "configure:685: checking how to run the C preprocessor" >&5 685# On Suns, sometimes $CPP names a directory. 686if test -n "$CPP" && test -d "$CPP"; then 687 CPP= 688fi 689if test -z "$CPP"; then 690if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 691 echo $ac_n "(cached) $ac_c" 1>&6 692else 693 # This must be in double quotes, not single quotes, because CPP may get 694 # substituted into the Makefile and "${CC-cc}" will confuse make. 695 CPP="${CC-cc} -E" 696 # On the NeXT, cc -E runs the code through the compiler's parser, 697 # not just through cpp. 698 cat > conftest.$ac_ext <<EOF 699#line 700 "configure" 700#include "confdefs.h" 701#include <assert.h> 702Syntax Error 703EOF 704ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 705{ (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 706ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 707if test -z "$ac_err"; then 708 : 709else 710 echo "$ac_err" >&5 711 echo "configure: failed program was:" >&5 712 cat conftest.$ac_ext >&5 713 rm -rf conftest* 714 CPP="${CC-cc} -E -traditional-cpp" 715 cat > conftest.$ac_ext <<EOF 716#line 717 "configure" 717#include "confdefs.h" 718#include <assert.h> 719Syntax Error 720EOF 721ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 722{ (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 723ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 724if test -z "$ac_err"; then 725 : 726else 727 echo "$ac_err" >&5 728 echo "configure: failed program was:" >&5 729 cat conftest.$ac_ext >&5 730 rm -rf conftest* 731 CPP="${CC-cc} -nologo -E" 732 cat > conftest.$ac_ext <<EOF 733#line 734 "configure" 734#include "confdefs.h" 735#include <assert.h> 736Syntax Error 737EOF 738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 739{ (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 740ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 741if test -z "$ac_err"; then 742 : 743else 744 echo "$ac_err" >&5 745 echo "configure: failed program was:" >&5 746 cat conftest.$ac_ext >&5 747 rm -rf conftest* 748 CPP=/lib/cpp 749fi 750rm -f conftest* 751fi 752rm -f conftest* 753fi 754rm -f conftest* 755 ac_cv_prog_CPP="$CPP" 756fi 757 CPP="$ac_cv_prog_CPP" 758else 759 ac_cv_prog_CPP="$CPP" 760fi 761echo "$ac_t""$CPP" 1>&6 762 763for ac_hdr in sys/cdio.h sys/cdrio.h sundev/srreg.h sys/audioio.h sun/audioio.h 764do 765ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 766echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 767echo "configure:768: checking for $ac_hdr" >&5 768if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 769 echo $ac_n "(cached) $ac_c" 1>&6 770else 771 cat > conftest.$ac_ext <<EOF 772#line 773 "configure" 773#include "confdefs.h" 774#include <$ac_hdr> 775EOF 776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 777{ (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 779if test -z "$ac_err"; then 780 rm -rf conftest* 781 eval "ac_cv_header_$ac_safe=yes" 782else 783 echo "$ac_err" >&5 784 echo "configure: failed program was:" >&5 785 cat conftest.$ac_ext >&5 786 rm -rf conftest* 787 eval "ac_cv_header_$ac_safe=no" 788fi 789rm -f conftest* 790fi 791if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 792 echo "$ac_t""yes" 1>&6 793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 794 cat >> confdefs.h <<EOF 795#define $ac_tr_hdr 1 796EOF 797 798else 799 echo "$ac_t""no" 1>&6 800fi 801done 802 803for ac_hdr in soundcard.h sys/soundcard.h linux/soundcard.h machine/soundcard.h 804do 805ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 806echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 807echo "configure:808: checking for $ac_hdr" >&5 808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 809 echo $ac_n "(cached) $ac_c" 1>&6 810else 811 cat > conftest.$ac_ext <<EOF 812#line 813 "configure" 813#include "confdefs.h" 814#include <$ac_hdr> 815EOF 816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 817{ (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 819if test -z "$ac_err"; then 820 rm -rf conftest* 821 eval "ac_cv_header_$ac_safe=yes" 822else 823 echo "$ac_err" >&5 824 echo "configure: failed program was:" >&5 825 cat conftest.$ac_ext >&5 826 rm -rf conftest* 827 eval "ac_cv_header_$ac_safe=no" 828fi 829rm -f conftest* 830fi 831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 832 echo "$ac_t""yes" 1>&6 833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 834 cat >> confdefs.h <<EOF 835#define $ac_tr_hdr 1 836EOF 837 838else 839 echo "$ac_t""no" 1>&6 840fi 841done 842 843for ac_hdr in sys/asoundlib.h windows.h mmsystem.h 844do 845ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 846echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 847echo "configure:848: checking for $ac_hdr" >&5 848if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 849 echo $ac_n "(cached) $ac_c" 1>&6 850else 851 cat > conftest.$ac_ext <<EOF 852#line 853 "configure" 853#include "confdefs.h" 854#include <$ac_hdr> 855EOF 856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 857{ (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 859if test -z "$ac_err"; then 860 rm -rf conftest* 861 eval "ac_cv_header_$ac_safe=yes" 862else 863 echo "$ac_err" >&5 864 echo "configure: failed program was:" >&5 865 cat conftest.$ac_ext >&5 866 rm -rf conftest* 867 eval "ac_cv_header_$ac_safe=no" 868fi 869rm -f conftest* 870fi 871if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 872 echo "$ac_t""yes" 1>&6 873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 874 cat >> confdefs.h <<EOF 875#define $ac_tr_hdr 1 876EOF 877 878else 879 echo "$ac_t""no" 1>&6 880fi 881done 882 883for ac_hdr in os2.h os2me.h 884do 885ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 886echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 887echo "configure:888: checking for $ac_hdr" >&5 888if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 889 echo $ac_n "(cached) $ac_c" 1>&6 890else 891 cat > conftest.$ac_ext <<EOF 892#line 893 "configure" 893#include "confdefs.h" 894#include <$ac_hdr> 895EOF 896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 897{ (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 899if test -z "$ac_err"; then 900 rm -rf conftest* 901 eval "ac_cv_header_$ac_safe=yes" 902else 903 echo "$ac_err" >&5 904 echo "configure: failed program was:" >&5 905 cat conftest.$ac_ext >&5 906 rm -rf conftest* 907 eval "ac_cv_header_$ac_safe=no" 908fi 909rm -f conftest* 910fi 911if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 912 echo "$ac_t""yes" 1>&6 913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 914 cat >> confdefs.h <<EOF 915#define $ac_tr_hdr 1 916EOF 917 918else 919 echo "$ac_t""no" 1>&6 920fi 921done 922 923 924case "${ac_cv_header_sys_cdio_h}""${ac_cv_header_sundev_srreg_h}" in 925 *yes*) 926HAVE_SUN_IOCTL=1 927;; 928 *) 929HAVE_SUN_IOCTL= 930;; 931esac 932 933 934case "${ac_cv_header_sys_audioio_h}""${ac_cv_header_sun_audioio_h}" in 935 *yes*) 936HAVE_SUNSOUND=1 937;; 938 *) 939HAVE_SUNSOUND= 940;; 941esac 942 943 944case "${ac_cv_header_machine_soundcard_h}""${ac_cv_header_sys_soundcard_h}""${ac_cv_header_linux_soundcard_h}" in 945 *yes*) 946HAVE_OSS=1 947;; 948 *) 949HAVE_OSS= 950;; 951esac 952 953 954 955 956case "${ac_cv_header_windows_h}""${ac_cv_header_mmsystem_h}" in 957 *yesyes*) 958HAVE_WINSOUND=1 959;; 960 *) 961HAVE_WINSOUND= 962;; 963esac 964 965 966case "${ac_cv_header_os2_h}""${ac_cv_header_os2me_h}" in 967 *yesyes*) 968HAVE_OS2SOUND=1 969;; 970 *) 971HAVE_OS2SOUND= 972;; 973esac 974 975 976for ac_func in strtoul 977do 978echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 979echo "configure:980: checking for $ac_func" >&5 980if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 981 echo $ac_n "(cached) $ac_c" 1>&6 982else 983 cat > conftest.$ac_ext <<EOF 984#line 985 "configure" 985#include "confdefs.h" 986/* System header to define __stub macros and hopefully few prototypes, 987 which can conflict with char $ac_func(); below. */ 988#include <assert.h> 989/* Override any gcc2 internal prototype to avoid an error. */ 990/* We use char because int might match the return type of a gcc2 991 builtin and then its argument prototype would still apply. */ 992char $ac_func(); 993 994int main() { 995 996/* The GNU C library defines this for functions which it implements 997 to always fail with ENOSYS. Some functions are actually named 998 something starting with __ and the normal name is an alias. */ 999#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1000choke me 1001#else 1002$ac_func(); 1003#endif 1004 1005; return 0; } 1006EOF 1007if { (eval echo configure:1008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1008 rm -rf conftest* 1009 eval "ac_cv_func_$ac_func=yes" 1010else 1011 echo "configure: failed program was:" >&5 1012 cat conftest.$ac_ext >&5 1013 rm -rf conftest* 1014 eval "ac_cv_func_$ac_func=no" 1015fi 1016rm -f conftest* 1017fi 1018 1019if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1020 echo "$ac_t""yes" 1>&6 1021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1022 cat >> confdefs.h <<EOF 1023#define $ac_tr_func 1 1024EOF 1025 1026else 1027 echo "$ac_t""no" 1>&6 1028fi 1029done 1030 1031trap '' 1 2 15 1032cat > confcache <<\EOF 1033# This file is a shell script that caches the results of configure 1034# tests run on this system so they can be shared between configure 1035# scripts and configure runs. It is not useful on other systems. 1036# If it contains results you don't want to keep, you may remove or edit it. 1037# 1038# By default, configure uses ./config.cache as the cache file, 1039# creating it if it does not exist already. You can give configure 1040# the --cache-file=FILE option to use a different cache file; that is 1041# what configure does when it calls configure scripts in 1042# subdirectories, so they share the cache. 1043# Giving --cache-file=/dev/null disables caching, for debugging configure. 1044# config.status only pays attention to the cache file if you give it the 1045# --recheck option to rerun configure. 1046# 1047EOF 1048# The following way of writing the cache mishandles newlines in values, 1049# but we know of no workaround that is simple, portable, and efficient. 1050# So, don't put newlines in cache variables' values. 1051# Ultrix sh set writes to stderr and can't be redirected directly, 1052# and sets the high bit in the cache file unless we assign to the vars. 1053(set) 2>&1 | 1054 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1055 *ac_space=\ *) 1056 # `set' does not quote correctly, so add quotes (double-quote substitution 1057 # turns \\\\ into \\, and sed turns \\ into \). 1058 sed -n \ 1059 -e "s/'/'\\\\''/g" \ 1060 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1061 ;; 1062 *) 1063 # `set' quotes correctly as required by POSIX, so do not add quotes. 1064 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1065 ;; 1066 esac >> confcache 1067if cmp -s $cache_file confcache; then 1068 : 1069else 1070 if test -w $cache_file; then 1071 echo "updating cache $cache_file" 1072 cat confcache > $cache_file 1073 else 1074 echo "not updating unwritable cache $cache_file" 1075 fi 1076fi 1077rm -f confcache 1078 1079trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1080 1081test "x$prefix" = xNONE && prefix=$ac_default_prefix 1082# Let make expand exec_prefix. 1083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1084 1085# Any assignment to VPATH causes Sun make to only execute 1086# the first set of double-colon rules, so remove it if not needed. 1087# If there is a colon in the path, we need to keep it. 1088if test "x$srcdir" = x.; then 1089 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1090fi 1091 1092trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1093 1094DEFS=-DHAVE_CONFIG_H 1095 1096# Without the "./", some shells look in PATH for config.status. 1097: ${CONFIG_STATUS=./config.status} 1098 1099echo creating $CONFIG_STATUS 1100rm -f $CONFIG_STATUS 1101cat > $CONFIG_STATUS <<EOF 1102#! /bin/sh 1103# Generated automatically by configure. 1104# Run this file to recreate the current configuration. 1105# This directory was configured as follows, 1106# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1107# 1108# $0 $ac_configure_args 1109# 1110# Compiler output produced by configure, useful for debugging 1111# configure, is in ./config.log if it exists. 1112 1113ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1114for ac_option 1115do 1116 case "\$ac_option" in 1117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1118 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1119 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1120 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1121 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1122 exit 0 ;; 1123 -help | --help | --hel | --he | --h) 1124 echo "\$ac_cs_usage"; exit 0 ;; 1125 *) echo "\$ac_cs_usage"; exit 1 ;; 1126 esac 1127done 1128 1129ac_given_srcdir=$srcdir 1130 1131trap 'rm -fr `echo "local.cnf lconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1132EOF 1133cat >> $CONFIG_STATUS <<EOF 1134 1135# Protect against being on the right side of a sed subst in config.status. 1136sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1137 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1138$ac_vpsub 1139$extrasub 1140s%@SHELL@%$SHELL%g 1141s%@CFLAGS@%$CFLAGS%g 1142s%@CPPFLAGS@%$CPPFLAGS%g 1143s%@CXXFLAGS@%$CXXFLAGS%g 1144s%@FFLAGS@%$FFLAGS%g 1145s%@DEFS@%$DEFS%g 1146s%@LDFLAGS@%$LDFLAGS%g 1147s%@LIBS@%$LIBS%g 1148s%@exec_prefix@%$exec_prefix%g 1149s%@prefix@%$prefix%g 1150s%@program_transform_name@%$program_transform_name%g 1151s%@bindir@%$bindir%g 1152s%@sbindir@%$sbindir%g 1153s%@libexecdir@%$libexecdir%g 1154s%@datadir@%$datadir%g 1155s%@sysconfdir@%$sysconfdir%g 1156s%@sharedstatedir@%$sharedstatedir%g 1157s%@localstatedir@%$localstatedir%g 1158s%@libdir@%$libdir%g 1159s%@includedir@%$includedir%g 1160s%@oldincludedir@%$oldincludedir%g 1161s%@infodir@%$infodir%g 1162s%@mandir@%$mandir%g 1163s%@host@%$host%g 1164s%@host_alias@%$host_alias%g 1165s%@host_cpu@%$host_cpu%g 1166s%@host_vendor@%$host_vendor%g 1167s%@host_os@%$host_os%g 1168s%@CDRTOOLS_VERSION@%$CDRTOOLS_VERSION%g 1169s%@EXTRALIBS@%$EXTRALIBS%g 1170s%@CPP@%$CPP%g 1171s%@HAVE_SUN_IOCTL@%$HAVE_SUN_IOCTL%g 1172s%@HAVE_SUNSOUND@%$HAVE_SUNSOUND%g 1173s%@HAVE_OSS@%$HAVE_OSS%g 1174s%@HAVE_SYS_ASOUNDLIB_H@%$HAVE_SYS_ASOUNDLIB_H%g 1175s%@HAVE_WINSOUND@%$HAVE_WINSOUND%g 1176s%@HAVE_OS2SOUND@%$HAVE_OS2SOUND%g 1177 1178CEOF 1179EOF 1180 1181cat >> $CONFIG_STATUS <<\EOF 1182 1183# Split the substitutions into bite-sized pieces for seds with 1184# small command number limits, like on Digital OSF/1 and HP-UX. 1185ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1186ac_file=1 # Number of current file. 1187ac_beg=1 # First line for current file. 1188ac_end=$ac_max_sed_cmds # Line after last line for current file. 1189ac_more_lines=: 1190ac_sed_cmds="" 1191while $ac_more_lines; do 1192 if test $ac_beg -gt 1; then 1193 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1194 else 1195 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1196 fi 1197 if test ! -s conftest.s$ac_file; then 1198 ac_more_lines=false 1199 rm -f conftest.s$ac_file 1200 else 1201 if test -z "$ac_sed_cmds"; then 1202 ac_sed_cmds="sed -f conftest.s$ac_file" 1203 else 1204 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1205 fi 1206 ac_file=`expr $ac_file + 1` 1207 ac_beg=$ac_end 1208 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1209 fi 1210done 1211if test -z "$ac_sed_cmds"; then 1212 ac_sed_cmds=cat 1213fi 1214EOF 1215 1216cat >> $CONFIG_STATUS <<EOF 1217 1218CONFIG_FILES=\${CONFIG_FILES-"local.cnf"} 1219EOF 1220cat >> $CONFIG_STATUS <<\EOF 1221for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1223 case "$ac_file" in 1224 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1225 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1226 *) ac_file_in="${ac_file}.in" ;; 1227 esac 1228 1229 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1230 1231 # Remove last slash and all that follows it. Not all systems have dirname. 1232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1234 # The file is in a subdirectory. 1235 test ! -d "$ac_dir" && mkdir "$ac_dir" 1236 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1237 # A "../" for each directory in $ac_dir_suffix. 1238 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1239 else 1240 ac_dir_suffix= ac_dots= 1241 fi 1242 1243 case "$ac_given_srcdir" in 1244 .) srcdir=. 1245 if test -z "$ac_dots"; then top_srcdir=. 1246 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1247 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1248 *) # Relative path. 1249 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1250 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1251 esac 1252 1253 1254 echo creating "$ac_file" 1255 rm -f "$ac_file" 1256 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1257 case "$ac_file" in 1258 *Makefile*) ac_comsub="1i\\ 1259# $configure_input" ;; 1260 *) ac_comsub= ;; 1261 esac 1262 1263 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1264 sed -e "$ac_comsub 1265s%@configure_input@%$configure_input%g 1266s%@srcdir@%$srcdir%g 1267s%@top_srcdir@%$top_srcdir%g 1268" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1269fi; done 1270rm -f conftest.s* 1271 1272# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1273# NAME is the cpp macro being defined and VALUE is the value it is being given. 1274# 1275# ac_d sets the value in "#define NAME VALUE" lines. 1276ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1277ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1278ac_dC='\3' 1279ac_dD='%g' 1280# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1281ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1282ac_uB='\([ ]\)%\1#\2define\3' 1283ac_uC=' ' 1284ac_uD='\4%g' 1285# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1286ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1287ac_eB='$%\1#\2define\3' 1288ac_eC=' ' 1289ac_eD='%g' 1290 1291if test "${CONFIG_HEADERS+set}" != set; then 1292EOF 1293cat >> $CONFIG_STATUS <<EOF 1294 CONFIG_HEADERS="lconfig.h" 1295EOF 1296cat >> $CONFIG_STATUS <<\EOF 1297fi 1298for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1300 case "$ac_file" in 1301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1303 *) ac_file_in="${ac_file}.in" ;; 1304 esac 1305 1306 echo creating $ac_file 1307 1308 rm -f conftest.frag conftest.in conftest.out 1309 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1310 cat $ac_file_inputs > conftest.in 1311 1312EOF 1313 1314# Transform confdefs.h into a sed script conftest.vals that substitutes 1315# the proper values into config.h.in to produce config.h. And first: 1316# Protect against being on the right side of a sed subst in config.status. 1317# Protect against being in an unquoted here document in config.status. 1318rm -f conftest.vals 1319cat > conftest.hdr <<\EOF 1320s/[\\&%]/\\&/g 1321s%[\\$`]%\\&%g 1322s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1323s%ac_d%ac_u%gp 1324s%ac_u%ac_e%gp 1325EOF 1326sed -n -f conftest.hdr confdefs.h > conftest.vals 1327rm -f conftest.hdr 1328 1329# This sed command replaces #undef with comments. This is necessary, for 1330# example, in the case of _POSIX_SOURCE, which is predefined and required 1331# on some systems where configure will not decide to define it. 1332cat >> conftest.vals <<\EOF 1333s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1334EOF 1335 1336# Break up conftest.vals because some shells have a limit on 1337# the size of here documents, and old seds have small limits too. 1338 1339rm -f conftest.tail 1340while : 1341do 1342 ac_lines=`grep -c . conftest.vals` 1343 # grep -c gives empty output for an empty file on some AIX systems. 1344 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1345 # Write a limited-size here document to conftest.frag. 1346 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1347 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1348 echo 'CEOF 1349 sed -f conftest.frag conftest.in > conftest.out 1350 rm -f conftest.in 1351 mv conftest.out conftest.in 1352' >> $CONFIG_STATUS 1353 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1354 rm -f conftest.vals 1355 mv conftest.tail conftest.vals 1356done 1357rm -f conftest.vals 1358 1359cat >> $CONFIG_STATUS <<\EOF 1360 rm -f conftest.frag conftest.h 1361 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1362 cat conftest.in >> conftest.h 1363 rm -f conftest.in 1364 if cmp -s $ac_file conftest.h 2>/dev/null; then 1365 echo "$ac_file is unchanged" 1366 rm -f conftest.h 1367 else 1368 # Remove last slash and all that follows it. Not all systems have dirname. 1369 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1370 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1371 # The file is in a subdirectory. 1372 test ! -d "$ac_dir" && mkdir "$ac_dir" 1373 fi 1374 rm -f $ac_file 1375 mv conftest.h $ac_file 1376 fi 1377fi; done 1378 1379EOF 1380cat >> $CONFIG_STATUS <<EOF 1381 1382EOF 1383cat >> $CONFIG_STATUS <<\EOF 1384 1385exit 0 1386EOF 1387chmod +x $CONFIG_STATUS 1388rm -fr confdefs* $ac_clean_files 1389test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1390 1391