Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.1 |
| 5 | # Copyright (C) 1992, 1993, 1994 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: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | select compiler to use" |
| 16 | ac_help="$ac_help |
| 17 | select compiler command line options" |
| 18 | ac_help="$ac_help |
| 19 | select compiler preprocessor command line options" |
| 20 | |
| 21 | # Initialize some variables set by options. |
| 22 | # The variables have the same names as the options, with |
| 23 | # dashes changed to underlines. |
| 24 | build=NONE |
| 25 | cache_file=./config.cache |
| 26 | exec_prefix=NONE |
| 27 | host=NONE |
| 28 | no_create= |
| 29 | nonopt=NONE |
| 30 | no_recursion= |
| 31 | prefix=NONE |
| 32 | program_prefix=NONE |
| 33 | program_suffix=NONE |
| 34 | program_transform_name=s,x,x, |
| 35 | silent= |
| 36 | site= |
| 37 | srcdir= |
| 38 | target=NONE |
| 39 | verbose= |
| 40 | x_includes=NONE |
| 41 | x_libraries=NONE |
| 42 | |
| 43 | # Initialize some other variables. |
| 44 | subdirs= |
| 45 | |
| 46 | ac_prev= |
| 47 | for ac_option |
| 48 | do |
| 49 | |
| 50 | # If the previous option needs an argument, assign it. |
| 51 | if test -n "$ac_prev"; then |
| 52 | eval "$ac_prev=\$ac_option" |
| 53 | ac_prev= |
| 54 | continue |
| 55 | fi |
| 56 | |
| 57 | case "$ac_option" in |
| 58 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 59 | *) ac_optarg= ;; |
| 60 | esac |
| 61 | |
| 62 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 63 | |
| 64 | case "$ac_option" in |
| 65 | |
| 66 | -build | --build | --buil | --bui | --bu | --b) |
| 67 | ac_prev=build ;; |
| 68 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) |
| 69 | build="$ac_optarg" ;; |
| 70 | |
| 71 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 72 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 73 | ac_prev=cache_file ;; |
| 74 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 75 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 76 | cache_file="$ac_optarg" ;; |
| 77 | |
| 78 | -disable-* | --disable-*) |
| 79 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 80 | # Reject names that are not valid shell variable names. |
| 81 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 82 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 83 | fi |
| 84 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 85 | eval "enable_${ac_feature}=no" ;; |
| 86 | |
| 87 | -enable-* | --enable-*) |
| 88 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 89 | # Reject names that are not valid shell variable names. |
| 90 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 91 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 92 | fi |
| 93 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 94 | case "$ac_option" in |
| 95 | *=*) ;; |
| 96 | *) ac_optarg=yes ;; |
| 97 | esac |
| 98 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 99 | |
| 100 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 101 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 102 | | --exec | --exe | --ex) |
| 103 | ac_prev=exec_prefix ;; |
| 104 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 105 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 106 | | --exec=* | --exe=* | --ex=*) |
| 107 | exec_prefix="$ac_optarg" ;; |
| 108 | |
| 109 | -gas | --gas | --ga | --g) |
| 110 | # Obsolete; use --with-gas. |
| 111 | with_gas=yes ;; |
| 112 | |
| 113 | -help | --help | --hel | --he) |
| 114 | # Omit some internal or obsolete options to make the list less imposing. |
| 115 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 116 | cat << EOF |
| 117 | Usage: configure [options] [host] |
| 118 | Options: [defaults in brackets after descriptions] |
| 119 | Configuration: |
| 120 | --cache-file=FILE cache test results in FILE |
| 121 | --help print this message |
| 122 | --no-create do not create output files |
| 123 | --quiet, --silent do not print \`checking...' messages |
| 124 | --version print the version of autoconf that created configure |
| 125 | Directory and file names: |
| 126 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 127 | [$ac_default_prefix] |
| 128 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX |
| 129 | [same as prefix] |
| 130 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 131 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 132 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 133 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 134 | Host type: |
| 135 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 136 | --host=HOST configure for HOST [guessed] |
| 137 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 138 | Features and packages: |
| 139 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 140 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 141 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 142 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 143 | --x-includes=DIR X include files are in DIR |
| 144 | --x-libraries=DIR X library files are in DIR |
| 145 | --enable and --with options recognized:$ac_help |
| 146 | EOF |
| 147 | exit 0 ;; |
| 148 | |
| 149 | -host | --host | --hos | --ho) |
| 150 | ac_prev=host ;; |
| 151 | -host=* | --host=* | --hos=* | --ho=*) |
| 152 | host="$ac_optarg" ;; |
| 153 | |
| 154 | -nfp | --nfp | --nf) |
| 155 | # Obsolete; use --without-fp. |
| 156 | with_fp=no ;; |
| 157 | |
| 158 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 159 | | --no-cr | --no-c) |
| 160 | no_create=yes ;; |
| 161 | |
| 162 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 163 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 164 | no_recursion=yes ;; |
| 165 | |
| 166 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 167 | ac_prev=prefix ;; |
| 168 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 169 | prefix="$ac_optarg" ;; |
| 170 | |
| 171 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 172 | | --program-pre | --program-pr | --program-p) |
| 173 | ac_prev=program_prefix ;; |
| 174 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 175 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 176 | program_prefix="$ac_optarg" ;; |
| 177 | |
| 178 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 179 | | --program-suf | --program-su | --program-s) |
| 180 | ac_prev=program_suffix ;; |
| 181 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 182 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 183 | program_suffix="$ac_optarg" ;; |
| 184 | |
| 185 | -program-transform-name | --program-transform-name \ |
| 186 | | --program-transform-nam | --program-transform-na \ |
| 187 | | --program-transform-n | --program-transform- \ |
| 188 | | --program-transform | --program-transfor \ |
| 189 | | --program-transfo | --program-transf \ |
| 190 | | --program-trans | --program-tran \ |
| 191 | | --progr-tra | --program-tr | --program-t) |
| 192 | ac_prev=program_transform_name ;; |
| 193 | -program-transform-name=* | --program-transform-name=* \ |
| 194 | | --program-transform-nam=* | --program-transform-na=* \ |
| 195 | | --program-transform-n=* | --program-transform-=* \ |
| 196 | | --program-transform=* | --program-transfor=* \ |
| 197 | | --program-transfo=* | --program-transf=* \ |
| 198 | | --program-trans=* | --program-tran=* \ |
| 199 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 200 | program_transform_name="$ac_optarg" ;; |
| 201 | |
| 202 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 203 | | -silent | --silent | --silen | --sile | --sil) |
| 204 | silent=yes ;; |
| 205 | |
| 206 | -site | --site | --sit) |
| 207 | ac_prev=site ;; |
| 208 | -site=* | --site=* | --sit=*) |
| 209 | site="$ac_optarg" ;; |
| 210 | |
| 211 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 212 | ac_prev=srcdir ;; |
| 213 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 214 | srcdir="$ac_optarg" ;; |
| 215 | |
| 216 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 217 | ac_prev=target ;; |
| 218 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 219 | target="$ac_optarg" ;; |
| 220 | |
| 221 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 222 | verbose=yes ;; |
| 223 | |
| 224 | -version | --version | --versio | --versi | --vers) |
| 225 | echo "configure generated by autoconf version 2.1" |
| 226 | exit 0 ;; |
| 227 | |
| 228 | -with-* | --with-*) |
| 229 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 230 | # Reject names that are not valid shell variable names. |
| 231 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 232 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 233 | fi |
| 234 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 235 | case "$ac_option" in |
| 236 | *=*) ;; |
| 237 | *) ac_optarg=yes ;; |
| 238 | esac |
| 239 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 240 | |
| 241 | -without-* | --without-*) |
| 242 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 243 | # Reject names that are not valid shell variable names. |
| 244 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 245 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 246 | fi |
| 247 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 248 | eval "with_${ac_package}=no" ;; |
| 249 | |
| 250 | --x) |
| 251 | # Obsolete; use --with-x. |
| 252 | with_x=yes ;; |
| 253 | |
| 254 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 255 | | --x-incl | --x-inc | --x-in | --x-i) |
| 256 | ac_prev=x_includes ;; |
| 257 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 258 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 259 | x_includes="$ac_optarg" ;; |
| 260 | |
| 261 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 262 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 263 | ac_prev=x_libraries ;; |
| 264 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 265 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 266 | x_libraries="$ac_optarg" ;; |
| 267 | |
| 268 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 269 | ;; |
| 270 | |
| 271 | *) |
| 272 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 273 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 274 | fi |
| 275 | if test "x$nonopt" != xNONE; then |
| 276 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 277 | fi |
| 278 | nonopt="$ac_option" |
| 279 | ;; |
| 280 | |
| 281 | esac |
| 282 | done |
| 283 | |
| 284 | if test -n "$ac_prev"; then |
| 285 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 286 | fi |
| 287 | |
| 288 | trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 |
| 289 | |
| 290 | # File descriptor usage: |
| 291 | # 0 unused; standard input |
| 292 | # 1 file creation |
| 293 | # 2 errors and warnings |
| 294 | # 3 unused; some systems may open it to /dev/tty |
| 295 | # 4 checking for... messages and results |
| 296 | # 5 compiler messages saved in config.log |
| 297 | if test "$silent" = yes; then |
| 298 | exec 4>/dev/null |
| 299 | else |
| 300 | exec 4>&1 |
| 301 | fi |
| 302 | exec 5>./config.log |
| 303 | |
| 304 | echo "\ |
| 305 | This file contains any messages produced by compilers while |
| 306 | running configure, to aid debugging if configure makes a mistake. |
| 307 | " 1>&5 |
| 308 | |
| 309 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 310 | # Also quote any args containing shell metacharacters. |
| 311 | ac_configure_args= |
| 312 | for ac_arg |
| 313 | do |
| 314 | case "$ac_arg" in |
| 315 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 316 | | --no-cr | --no-c) ;; |
| 317 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 318 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 319 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 320 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 321 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 322 | esac |
| 323 | done |
| 324 | |
| 325 | # NLS nuisances. |
| 326 | # Only set LANG and LC_ALL to C if already set. |
| 327 | # These must not be set unconditionally because not all systems understand |
| 328 | # e.g. LANG=C (notably SCO). |
| 329 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 330 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 331 | |
| 332 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 333 | rm -rf conftest* confdefs.h |
| 334 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 335 | echo > confdefs.h |
| 336 | |
| 337 | # A filename unique to this package, relative to the directory that |
| 338 | # configure is in, which we can look for to find out if srcdir is correct. |
| 339 | ac_unique_file=e2p.h |
| 340 | |
| 341 | # Find the source files, if location was not specified. |
| 342 | if test -z "$srcdir"; then |
| 343 | ac_srcdir_defaulted=yes |
| 344 | # Try the directory containing this script, then its parent. |
| 345 | ac_prog=$0 |
| 346 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 347 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 348 | srcdir=$ac_confdir |
| 349 | if test ! -r $srcdir/$ac_unique_file; then |
| 350 | srcdir=.. |
| 351 | fi |
| 352 | else |
| 353 | ac_srcdir_defaulted=no |
| 354 | fi |
| 355 | if test ! -r $srcdir/$ac_unique_file; then |
| 356 | if test "$ac_srcdir_defaulted" = yes; then |
| 357 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 358 | else |
| 359 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 360 | fi |
| 361 | fi |
| 362 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 363 | |
| 364 | # Prefer explicitly selected file to automatically selected ones. |
| 365 | if test -z "$CONFIG_SITE"; then |
| 366 | if test "x$prefix" != xNONE; then |
| 367 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 368 | else |
| 369 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 370 | fi |
| 371 | fi |
| 372 | for ac_site_file in $CONFIG_SITE; do |
| 373 | if test -r "$ac_site_file"; then |
| 374 | echo "loading site script $ac_site_file" |
| 375 | . "$ac_site_file" |
| 376 | fi |
| 377 | done |
| 378 | |
| 379 | if test -r "$cache_file"; then |
| 380 | echo "loading cache $cache_file" |
| 381 | . $cache_file |
| 382 | else |
| 383 | echo "creating cache $cache_file" |
| 384 | > $cache_file |
| 385 | fi |
| 386 | |
| 387 | ac_ext=c |
| 388 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 389 | ac_cpp='$CPP $CPPFLAGS' |
| 390 | ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5' |
| 391 | ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5' |
| 392 | |
| 393 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 394 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 395 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 396 | ac_n= ac_c=' |
| 397 | ' ac_t=' ' |
| 398 | else |
| 399 | ac_n=-n ac_c= ac_t= |
| 400 | fi |
| 401 | else |
| 402 | ac_n= ac_c='\c' ac_t= |
| 403 | fi |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | # Check whether --with-cc or --without-cc was given. |
| 409 | withval="$with_cc" |
| 410 | if test -n "$withval"; then |
| 411 | echo "$ac_t""CC=$withval" 1>&4 |
| 412 | CC=$withval |
| 413 | else |
| 414 | if test -z "$CC" ; then CC=cc; fi |
| 415 | echo "$ac_t""CC defaults to $CC" 1>&4 |
| 416 | fi |
| 417 | |
| 418 | |
| 419 | # Check whether --with-ccopts or --without-ccopts was given. |
| 420 | withval="$with_ccopts" |
| 421 | if test -n "$withval"; then |
| 422 | echo "$ac_t""CCOPTS is $withval" 1>&4 |
| 423 | CCOPTS=$withval |
| 424 | CFLAGS="$CFLAGS $withval" |
| 425 | else |
| 426 | CCOPTS= |
| 427 | fi |
| 428 | |
| 429 | |
| 430 | # Check whether --with-cppopts or --without-cppopts was given. |
| 431 | withval="$with_cppopts" |
| 432 | if test -n "$withval"; then |
| 433 | echo "$ac_t""CPPOPTS=$withval" 1>&4 |
| 434 | CPPOPTS=$withval |
| 435 | CPPFLAGS="$CPPFLAGS $withval" |
| 436 | else |
| 437 | echo "$ac_t""CPPOPTS defaults to $CPPOPTS" 1>&4 |
| 438 | fi |
| 439 | |
| 440 | trap '' 1 2 15 |
| 441 | if test -w $cache_file; then |
| 442 | echo "updating cache $cache_file" |
| 443 | cat > $cache_file <<\EOF |
| 444 | # This file is a shell script that caches the results of configure |
| 445 | # tests run on this system so they can be shared between configure |
| 446 | # scripts and configure runs. It is not useful on other systems. |
| 447 | # If it contains results you don't want to keep, you may remove or edit it. |
| 448 | # |
| 449 | # By default, configure uses ./config.cache as the cache file, |
| 450 | # creating it if it does not exist already. You can give configure |
| 451 | # the --cache-file=FILE option to use a different cache file; that is |
| 452 | # what configure does when it calls configure scripts in |
| 453 | # subdirectories, so they share the cache. |
| 454 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 455 | # config.status only pays attention to the cache file if you give it the |
| 456 | # --recheck option to rerun configure. |
| 457 | # |
| 458 | EOF |
| 459 | # Ultrix sh set writes to stderr and can't be redirected directly. |
| 460 | (set) 2>&1 | |
| 461 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \ |
| 462 | >> $cache_file |
| 463 | else |
| 464 | echo "not updating unwritable cache $cache_file" |
| 465 | fi |
| 466 | |
| 467 | trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 |
| 468 | |
| 469 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 470 | # Let make expand exec_prefix. |
| 471 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 472 | |
| 473 | # Any assignment to VPATH causes Sun make to only execute |
| 474 | # the first set of double-colon rules, so remove it if not needed. |
| 475 | # If there is a colon in the path, we need to keep it. |
| 476 | if test "x$srcdir" = x.; then |
| 477 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 478 | fi |
| 479 | |
| 480 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 481 | |
| 482 | # Transform confdefs.h into DEFS. |
| 483 | # Protect against shell expansion while executing Makefile rules. |
| 484 | # Protect against Makefile macro expansion. |
| 485 | cat > conftest.defs <<\EOF |
| 486 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g |
| 487 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 488 | s%\[%\\&%g |
| 489 | s%\]%\\&%g |
| 490 | s%\$%$$%g |
| 491 | EOF |
| 492 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 493 | rm -f conftest.defs |
| 494 | |
| 495 | |
| 496 | # Without the "./", some shells look in PATH for config.status. |
| 497 | : ${CONFIG_STATUS=./config.status} |
| 498 | |
| 499 | echo creating $CONFIG_STATUS |
| 500 | rm -f $CONFIG_STATUS |
| 501 | cat > $CONFIG_STATUS <<EOF |
| 502 | #!/bin/sh |
| 503 | # Generated automatically by configure. |
| 504 | # Run this file to recreate the current configuration. |
| 505 | # This directory was configured as follows, |
| 506 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 507 | # |
| 508 | # $0 $ac_configure_args |
| 509 | # |
| 510 | # Compiler output produced by configure, useful for debugging |
| 511 | # configure, is in ./config.log if it exists. |
| 512 | |
| 513 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 514 | for ac_option |
| 515 | do |
| 516 | case "\$ac_option" in |
| 517 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 518 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 519 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 520 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 521 | echo "$CONFIG_STATUS generated by autoconf version 2.1" |
| 522 | exit 0 ;; |
| 523 | -help | --help | --hel | --he | --h) |
| 524 | echo "\$ac_cs_usage"; exit 0 ;; |
| 525 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 526 | esac |
| 527 | done |
| 528 | |
| 529 | ac_given_srcdir=$srcdir |
| 530 | |
| 531 | trap 'rm -f Makefile; exit 1' 1 2 15 |
| 532 | |
| 533 | # Protect against being on the right side of a sed subst in config.status. |
| 534 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; |
| 535 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF |
| 536 | $ac_vpsub |
| 537 | $extrasub |
| 538 | s%@CFLAGS@%$CFLAGS%g |
| 539 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 540 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 541 | s%@DEFS@%$DEFS%g |
| 542 | s%@LDFLAGS@%$LDFLAGS%g |
| 543 | s%@LIBS@%$LIBS%g |
| 544 | s%@exec_prefix@%$exec_prefix%g |
| 545 | s%@prefix@%$prefix%g |
| 546 | s%@program_transform_name@%$program_transform_name%g |
| 547 | s%@CC@%$CC%g |
| 548 | s%@CCOPTS@%$CCOPTS%g |
| 549 | s%@CPPOPTS@%$CPPOPTS%g |
| 550 | |
| 551 | CEOF |
| 552 | EOF |
| 553 | cat >> $CONFIG_STATUS <<EOF |
| 554 | |
| 555 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
| 556 | EOF |
| 557 | cat >> $CONFIG_STATUS <<\EOF |
| 558 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 559 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 560 | case "$ac_file" in |
| 561 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 562 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 563 | *) ac_file_in="${ac_file}.in" ;; |
| 564 | esac |
| 565 | |
| 566 | # Adjust relative srcdir, etc. for subdirectories. |
| 567 | |
| 568 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 569 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 570 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 571 | # The file is in a subdirectory. |
| 572 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 573 | ac_dir_suffix="/$ac_dir" |
| 574 | # A "../" for each directory in $ac_dir_suffix. |
| 575 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 576 | else |
| 577 | ac_dir_suffix= ac_dots= |
| 578 | fi |
| 579 | |
| 580 | case "$ac_given_srcdir" in |
| 581 | .) srcdir=. |
| 582 | if test -z "$ac_dots"; then top_srcdir=. |
| 583 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 584 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 585 | *) # Relative path. |
| 586 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 587 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 588 | esac |
| 589 | |
| 590 | echo creating "$ac_file" |
| 591 | rm -f "$ac_file" |
| 592 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 593 | case "$ac_file" in |
| 594 | *Makefile*) ac_comsub="1i\\ |
| 595 | # $configure_input" ;; |
| 596 | *) ac_comsub= ;; |
| 597 | esac |
| 598 | sed -e "$ac_comsub |
| 599 | s%@configure_input@%$configure_input%g |
| 600 | s%@srcdir@%$srcdir%g |
| 601 | s%@top_srcdir@%$top_srcdir%g |
| 602 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
| 603 | fi; done |
| 604 | rm -f conftest.subs |
| 605 | |
| 606 | |
| 607 | |
| 608 | exit 0 |
| 609 | EOF |
| 610 | chmod +x $CONFIG_STATUS |
| 611 | rm -fr confdefs* $ac_clean_files |
| 612 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS |
| 613 | |