John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for [SAMPLE] [x.xx]. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <bugs@yourdomain>. |
| 6 | # |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 25 | |
| 26 | # Support unset when possible. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 223 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
| 245 | |
| 246 | # Name of the host. |
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 248 | # so uname gets run too. |
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 250 | |
| 251 | exec 6>&1 |
| 252 | |
| 253 | # |
| 254 | # Initializations. |
| 255 | # |
| 256 | ac_default_prefix=/usr/local |
| 257 | ac_config_libobj_dir=. |
| 258 | cross_compiling=no |
| 259 | subdirs= |
| 260 | MFLAGS= |
| 261 | MAKEFLAGS= |
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 263 | |
| 264 | # Maximum number of lines to put in a shell here document. |
| 265 | # This variable seems obsolete. It should probably be removed, and |
| 266 | # only ac_max_sed_lines should be used. |
| 267 | : ${ac_max_here_lines=38} |
| 268 | |
| 269 | # Identity of this package. |
| 270 | PACKAGE_NAME='[SAMPLE]' |
| 271 | PACKAGE_TARNAME='--sample--' |
| 272 | PACKAGE_VERSION='[x.xx]' |
| 273 | PACKAGE_STRING='[SAMPLE] [x.xx]' |
| 274 | PACKAGE_BUGREPORT='bugs@yourdomain' |
| 275 | |
| 276 | ac_unique_file=""Makefile.common.in"" |
| 277 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_SRC LLVM_OBJ LIBOBJS LTLIBOBJS' |
| 278 | ac_subst_files='' |
| 279 | |
| 280 | # Initialize some variables set by options. |
| 281 | ac_init_help= |
| 282 | ac_init_version=false |
| 283 | # The variables have the same names as the options, with |
| 284 | # dashes changed to underlines. |
| 285 | cache_file=/dev/null |
| 286 | exec_prefix=NONE |
| 287 | no_create= |
| 288 | no_recursion= |
| 289 | prefix=NONE |
| 290 | program_prefix=NONE |
| 291 | program_suffix=NONE |
| 292 | program_transform_name=s,x,x, |
| 293 | silent= |
| 294 | site= |
| 295 | srcdir= |
| 296 | verbose= |
| 297 | x_includes=NONE |
| 298 | x_libraries=NONE |
| 299 | |
| 300 | # Installation directory options. |
| 301 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 302 | # and all the variables that are supposed to be based on exec_prefix |
| 303 | # by default will actually change. |
| 304 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 305 | bindir='${exec_prefix}/bin' |
| 306 | sbindir='${exec_prefix}/sbin' |
| 307 | libexecdir='${exec_prefix}/libexec' |
| 308 | datadir='${prefix}/share' |
| 309 | sysconfdir='${prefix}/etc' |
| 310 | sharedstatedir='${prefix}/com' |
| 311 | localstatedir='${prefix}/var' |
| 312 | libdir='${exec_prefix}/lib' |
| 313 | includedir='${prefix}/include' |
| 314 | oldincludedir='/usr/include' |
| 315 | infodir='${prefix}/info' |
| 316 | mandir='${prefix}/man' |
| 317 | |
| 318 | ac_prev= |
| 319 | for ac_option |
| 320 | do |
| 321 | # If the previous option needs an argument, assign it. |
| 322 | if test -n "$ac_prev"; then |
| 323 | eval "$ac_prev=\$ac_option" |
| 324 | ac_prev= |
| 325 | continue |
| 326 | fi |
| 327 | |
| 328 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 329 | |
| 330 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 331 | |
| 332 | case $ac_option in |
| 333 | |
| 334 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 335 | ac_prev=bindir ;; |
| 336 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 337 | bindir=$ac_optarg ;; |
| 338 | |
| 339 | -build | --build | --buil | --bui | --bu) |
| 340 | ac_prev=build_alias ;; |
| 341 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 342 | build_alias=$ac_optarg ;; |
| 343 | |
| 344 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 345 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 346 | ac_prev=cache_file ;; |
| 347 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 348 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 349 | cache_file=$ac_optarg ;; |
| 350 | |
| 351 | --config-cache | -C) |
| 352 | cache_file=config.cache ;; |
| 353 | |
| 354 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 355 | ac_prev=datadir ;; |
| 356 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 357 | | --da=*) |
| 358 | datadir=$ac_optarg ;; |
| 359 | |
| 360 | -disable-* | --disable-*) |
| 361 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 362 | # Reject names that are not valid shell variable names. |
| 363 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 364 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 365 | { (exit 1); exit 1; }; } |
| 366 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 367 | eval "enable_$ac_feature=no" ;; |
| 368 | |
| 369 | -enable-* | --enable-*) |
| 370 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 371 | # Reject names that are not valid shell variable names. |
| 372 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 373 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 374 | { (exit 1); exit 1; }; } |
| 375 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 376 | case $ac_option in |
| 377 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 378 | *) ac_optarg=yes ;; |
| 379 | esac |
| 380 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 381 | |
| 382 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 383 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 384 | | --exec | --exe | --ex) |
| 385 | ac_prev=exec_prefix ;; |
| 386 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 387 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 388 | | --exec=* | --exe=* | --ex=*) |
| 389 | exec_prefix=$ac_optarg ;; |
| 390 | |
| 391 | -gas | --gas | --ga | --g) |
| 392 | # Obsolete; use --with-gas. |
| 393 | with_gas=yes ;; |
| 394 | |
| 395 | -help | --help | --hel | --he | -h) |
| 396 | ac_init_help=long ;; |
| 397 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 398 | ac_init_help=recursive ;; |
| 399 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 400 | ac_init_help=short ;; |
| 401 | |
| 402 | -host | --host | --hos | --ho) |
| 403 | ac_prev=host_alias ;; |
| 404 | -host=* | --host=* | --hos=* | --ho=*) |
| 405 | host_alias=$ac_optarg ;; |
| 406 | |
| 407 | -includedir | --includedir | --includedi | --included | --include \ |
| 408 | | --includ | --inclu | --incl | --inc) |
| 409 | ac_prev=includedir ;; |
| 410 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 411 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 412 | includedir=$ac_optarg ;; |
| 413 | |
| 414 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 415 | ac_prev=infodir ;; |
| 416 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 417 | infodir=$ac_optarg ;; |
| 418 | |
| 419 | -libdir | --libdir | --libdi | --libd) |
| 420 | ac_prev=libdir ;; |
| 421 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 422 | libdir=$ac_optarg ;; |
| 423 | |
| 424 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 425 | | --libexe | --libex | --libe) |
| 426 | ac_prev=libexecdir ;; |
| 427 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 428 | | --libexe=* | --libex=* | --libe=*) |
| 429 | libexecdir=$ac_optarg ;; |
| 430 | |
| 431 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 432 | | --localstate | --localstat | --localsta | --localst \ |
| 433 | | --locals | --local | --loca | --loc | --lo) |
| 434 | ac_prev=localstatedir ;; |
| 435 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 436 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 437 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 438 | localstatedir=$ac_optarg ;; |
| 439 | |
| 440 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 441 | ac_prev=mandir ;; |
| 442 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 443 | mandir=$ac_optarg ;; |
| 444 | |
| 445 | -nfp | --nfp | --nf) |
| 446 | # Obsolete; use --without-fp. |
| 447 | with_fp=no ;; |
| 448 | |
| 449 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 450 | | --no-cr | --no-c | -n) |
| 451 | no_create=yes ;; |
| 452 | |
| 453 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 454 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 455 | no_recursion=yes ;; |
| 456 | |
| 457 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 458 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 459 | | --oldin | --oldi | --old | --ol | --o) |
| 460 | ac_prev=oldincludedir ;; |
| 461 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 462 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 463 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 464 | oldincludedir=$ac_optarg ;; |
| 465 | |
| 466 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 467 | ac_prev=prefix ;; |
| 468 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 469 | prefix=$ac_optarg ;; |
| 470 | |
| 471 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 472 | | --program-pre | --program-pr | --program-p) |
| 473 | ac_prev=program_prefix ;; |
| 474 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 475 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 476 | program_prefix=$ac_optarg ;; |
| 477 | |
| 478 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 479 | | --program-suf | --program-su | --program-s) |
| 480 | ac_prev=program_suffix ;; |
| 481 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 482 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 483 | program_suffix=$ac_optarg ;; |
| 484 | |
| 485 | -program-transform-name | --program-transform-name \ |
| 486 | | --program-transform-nam | --program-transform-na \ |
| 487 | | --program-transform-n | --program-transform- \ |
| 488 | | --program-transform | --program-transfor \ |
| 489 | | --program-transfo | --program-transf \ |
| 490 | | --program-trans | --program-tran \ |
| 491 | | --progr-tra | --program-tr | --program-t) |
| 492 | ac_prev=program_transform_name ;; |
| 493 | -program-transform-name=* | --program-transform-name=* \ |
| 494 | | --program-transform-nam=* | --program-transform-na=* \ |
| 495 | | --program-transform-n=* | --program-transform-=* \ |
| 496 | | --program-transform=* | --program-transfor=* \ |
| 497 | | --program-transfo=* | --program-transf=* \ |
| 498 | | --program-trans=* | --program-tran=* \ |
| 499 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 500 | program_transform_name=$ac_optarg ;; |
| 501 | |
| 502 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 503 | | -silent | --silent | --silen | --sile | --sil) |
| 504 | silent=yes ;; |
| 505 | |
| 506 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 507 | ac_prev=sbindir ;; |
| 508 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 509 | | --sbi=* | --sb=*) |
| 510 | sbindir=$ac_optarg ;; |
| 511 | |
| 512 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 513 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 514 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 515 | | --sha | --sh) |
| 516 | ac_prev=sharedstatedir ;; |
| 517 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 518 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 519 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 520 | | --sha=* | --sh=*) |
| 521 | sharedstatedir=$ac_optarg ;; |
| 522 | |
| 523 | -site | --site | --sit) |
| 524 | ac_prev=site ;; |
| 525 | -site=* | --site=* | --sit=*) |
| 526 | site=$ac_optarg ;; |
| 527 | |
| 528 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 529 | ac_prev=srcdir ;; |
| 530 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 531 | srcdir=$ac_optarg ;; |
| 532 | |
| 533 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 534 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 535 | ac_prev=sysconfdir ;; |
| 536 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 537 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 538 | sysconfdir=$ac_optarg ;; |
| 539 | |
| 540 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 541 | ac_prev=target_alias ;; |
| 542 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 543 | target_alias=$ac_optarg ;; |
| 544 | |
| 545 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 546 | verbose=yes ;; |
| 547 | |
| 548 | -version | --version | --versio | --versi | --vers | -V) |
| 549 | ac_init_version=: ;; |
| 550 | |
| 551 | -with-* | --with-*) |
| 552 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 553 | # Reject names that are not valid shell variable names. |
| 554 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 555 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 556 | { (exit 1); exit 1; }; } |
| 557 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 558 | case $ac_option in |
| 559 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 560 | *) ac_optarg=yes ;; |
| 561 | esac |
| 562 | eval "with_$ac_package='$ac_optarg'" ;; |
| 563 | |
| 564 | -without-* | --without-*) |
| 565 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 566 | # Reject names that are not valid shell variable names. |
| 567 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 568 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 569 | { (exit 1); exit 1; }; } |
| 570 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 571 | eval "with_$ac_package=no" ;; |
| 572 | |
| 573 | --x) |
| 574 | # Obsolete; use --with-x. |
| 575 | with_x=yes ;; |
| 576 | |
| 577 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 578 | | --x-incl | --x-inc | --x-in | --x-i) |
| 579 | ac_prev=x_includes ;; |
| 580 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 581 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 582 | x_includes=$ac_optarg ;; |
| 583 | |
| 584 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 585 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 586 | ac_prev=x_libraries ;; |
| 587 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 588 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 589 | x_libraries=$ac_optarg ;; |
| 590 | |
| 591 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 592 | Try \`$0 --help' for more information." >&2 |
| 593 | { (exit 1); exit 1; }; } |
| 594 | ;; |
| 595 | |
| 596 | *=*) |
| 597 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 598 | # Reject names that are not valid shell variable names. |
| 599 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 600 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 601 | { (exit 1); exit 1; }; } |
| 602 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 603 | eval "$ac_envvar='$ac_optarg'" |
| 604 | export $ac_envvar ;; |
| 605 | |
| 606 | *) |
| 607 | # FIXME: should be removed in autoconf 3.0. |
| 608 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 609 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 610 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 611 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 612 | ;; |
| 613 | |
| 614 | esac |
| 615 | done |
| 616 | |
| 617 | if test -n "$ac_prev"; then |
| 618 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 619 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 620 | { (exit 1); exit 1; }; } |
| 621 | fi |
| 622 | |
| 623 | # Be sure to have absolute paths. |
| 624 | for ac_var in exec_prefix prefix |
| 625 | do |
| 626 | eval ac_val=$`echo $ac_var` |
| 627 | case $ac_val in |
| 628 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 629 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 630 | { (exit 1); exit 1; }; };; |
| 631 | esac |
| 632 | done |
| 633 | |
| 634 | # Be sure to have absolute paths. |
| 635 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 636 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 637 | do |
| 638 | eval ac_val=$`echo $ac_var` |
| 639 | case $ac_val in |
| 640 | [\\/$]* | ?:[\\/]* ) ;; |
| 641 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 642 | { (exit 1); exit 1; }; };; |
| 643 | esac |
| 644 | done |
| 645 | |
| 646 | # There might be people who depend on the old broken behavior: `$host' |
| 647 | # used to hold the argument of --host etc. |
| 648 | # FIXME: To remove some day. |
| 649 | build=$build_alias |
| 650 | host=$host_alias |
| 651 | target=$target_alias |
| 652 | |
| 653 | # FIXME: To remove some day. |
| 654 | if test "x$host_alias" != x; then |
| 655 | if test "x$build_alias" = x; then |
| 656 | cross_compiling=maybe |
| 657 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 658 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 659 | elif test "x$build_alias" != "x$host_alias"; then |
| 660 | cross_compiling=yes |
| 661 | fi |
| 662 | fi |
| 663 | |
| 664 | ac_tool_prefix= |
| 665 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 666 | |
| 667 | test "$silent" = yes && exec 6>/dev/null |
| 668 | |
| 669 | |
| 670 | # Find the source files, if location was not specified. |
| 671 | if test -z "$srcdir"; then |
| 672 | ac_srcdir_defaulted=yes |
| 673 | # Try the directory containing this script, then its parent. |
| 674 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 675 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 676 | X"$0" : 'X\(//\)[^/]' \| \ |
| 677 | X"$0" : 'X\(//\)$' \| \ |
| 678 | X"$0" : 'X\(/\)' \| \ |
| 679 | . : '\(.\)' 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 680 | echo X"$0" | |
| 681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 682 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 683 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 684 | /^X\(\/\).*/{ s//\1/; q; } |
| 685 | s/.*/./; q'` |
| 686 | srcdir=$ac_confdir |
| 687 | if test ! -r $srcdir/$ac_unique_file; then |
| 688 | srcdir=.. |
| 689 | fi |
| 690 | else |
| 691 | ac_srcdir_defaulted=no |
| 692 | fi |
| 693 | if test ! -r $srcdir/$ac_unique_file; then |
| 694 | if test "$ac_srcdir_defaulted" = yes; then |
| 695 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 696 | { (exit 1); exit 1; }; } |
| 697 | else |
| 698 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 699 | { (exit 1); exit 1; }; } |
| 700 | fi |
| 701 | fi |
| 702 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 703 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 704 | { (exit 1); exit 1; }; } |
| 705 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 706 | ac_env_build_alias_set=${build_alias+set} |
| 707 | ac_env_build_alias_value=$build_alias |
| 708 | ac_cv_env_build_alias_set=${build_alias+set} |
| 709 | ac_cv_env_build_alias_value=$build_alias |
| 710 | ac_env_host_alias_set=${host_alias+set} |
| 711 | ac_env_host_alias_value=$host_alias |
| 712 | ac_cv_env_host_alias_set=${host_alias+set} |
| 713 | ac_cv_env_host_alias_value=$host_alias |
| 714 | ac_env_target_alias_set=${target_alias+set} |
| 715 | ac_env_target_alias_value=$target_alias |
| 716 | ac_cv_env_target_alias_set=${target_alias+set} |
| 717 | ac_cv_env_target_alias_value=$target_alias |
| 718 | |
| 719 | # |
| 720 | # Report the --help message. |
| 721 | # |
| 722 | if test "$ac_init_help" = "long"; then |
| 723 | # Omit some internal or obsolete options to make the list less imposing. |
| 724 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 725 | cat <<_ACEOF |
| 726 | \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. |
| 727 | |
| 728 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 729 | |
| 730 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 731 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 732 | |
| 733 | Defaults for the options are specified in brackets. |
| 734 | |
| 735 | Configuration: |
| 736 | -h, --help display this help and exit |
| 737 | --help=short display options specific to this package |
| 738 | --help=recursive display the short help of all the included packages |
| 739 | -V, --version display version information and exit |
| 740 | -q, --quiet, --silent do not print \`checking...' messages |
| 741 | --cache-file=FILE cache test results in FILE [disabled] |
| 742 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 743 | -n, --no-create do not create output files |
| 744 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 745 | |
| 746 | _ACEOF |
| 747 | |
| 748 | cat <<_ACEOF |
| 749 | Installation directories: |
| 750 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 751 | [$ac_default_prefix] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 752 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 753 | [PREFIX] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 754 | |
| 755 | By default, \`make install' will install all the files in |
| 756 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 757 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 758 | for instance \`--prefix=\$HOME'. |
| 759 | |
| 760 | For better control, use the options below. |
| 761 | |
| 762 | Fine tuning of the installation directories: |
| 763 | --bindir=DIR user executables [EPREFIX/bin] |
| 764 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 765 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 766 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 767 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 768 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 769 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 770 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 771 | --includedir=DIR C header files [PREFIX/include] |
| 772 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 773 | --infodir=DIR info documentation [PREFIX/info] |
| 774 | --mandir=DIR man documentation [PREFIX/man] |
| 775 | _ACEOF |
| 776 | |
| 777 | cat <<\_ACEOF |
| 778 | _ACEOF |
| 779 | fi |
| 780 | |
| 781 | if test -n "$ac_init_help"; then |
| 782 | case $ac_init_help in |
| 783 | short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; |
| 784 | esac |
| 785 | cat <<\_ACEOF |
| 786 | |
| 787 | Optional Packages: |
| 788 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 789 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 790 | --with-llvmsrc Location of LLVM Source Code |
| 791 | --with-llvmobj Location of LLVM Object Code |
| 792 | |
| 793 | Report bugs to <bugs@yourdomain>. |
| 794 | _ACEOF |
| 795 | fi |
| 796 | |
| 797 | if test "$ac_init_help" = "recursive"; then |
| 798 | # If there are subdirs, report their specific --help. |
| 799 | ac_popdir=`pwd` |
| 800 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 801 | test -d $ac_dir || continue |
| 802 | ac_builddir=. |
| 803 | |
| 804 | if test "$ac_dir" != .; then |
| 805 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 806 | # A "../" for each directory in $ac_dir_suffix. |
| 807 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 808 | else |
| 809 | ac_dir_suffix= ac_top_builddir= |
| 810 | fi |
| 811 | |
| 812 | case $srcdir in |
| 813 | .) # No --srcdir option. We are building in place. |
| 814 | ac_srcdir=. |
| 815 | if test -z "$ac_top_builddir"; then |
| 816 | ac_top_srcdir=. |
| 817 | else |
| 818 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 819 | fi ;; |
| 820 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 821 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 822 | ac_top_srcdir=$srcdir ;; |
| 823 | *) # Relative path. |
| 824 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 825 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 826 | esac |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 827 | |
| 828 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 829 | # the directories may not exist. |
| 830 | case `pwd` in |
| 831 | .) ac_abs_builddir="$ac_dir";; |
| 832 | *) |
| 833 | case "$ac_dir" in |
| 834 | .) ac_abs_builddir=`pwd`;; |
| 835 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 836 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 837 | esac;; |
| 838 | esac |
| 839 | case $ac_abs_builddir in |
| 840 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 841 | *) |
| 842 | case ${ac_top_builddir}. in |
| 843 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 844 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 845 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 846 | esac;; |
| 847 | esac |
| 848 | case $ac_abs_builddir in |
| 849 | .) ac_abs_srcdir=$ac_srcdir;; |
| 850 | *) |
| 851 | case $ac_srcdir in |
| 852 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 853 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 854 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 855 | esac;; |
| 856 | esac |
| 857 | case $ac_abs_builddir in |
| 858 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 859 | *) |
| 860 | case $ac_top_srcdir in |
| 861 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 862 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 863 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 864 | esac;; |
| 865 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 866 | |
| 867 | cd $ac_dir |
| 868 | # Check for guested configure; otherwise get Cygnus style configure. |
| 869 | if test -f $ac_srcdir/configure.gnu; then |
| 870 | echo |
| 871 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 872 | elif test -f $ac_srcdir/configure; then |
| 873 | echo |
| 874 | $SHELL $ac_srcdir/configure --help=recursive |
| 875 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 876 | test -f $ac_srcdir/configure.in; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 877 | echo |
| 878 | $ac_configure --help |
| 879 | else |
| 880 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 881 | fi |
| 882 | cd $ac_popdir |
| 883 | done |
| 884 | fi |
| 885 | |
| 886 | test -n "$ac_init_help" && exit 0 |
| 887 | if $ac_init_version; then |
| 888 | cat <<\_ACEOF |
| 889 | [SAMPLE] configure [x.xx] |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 890 | generated by GNU Autoconf 2.59 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 891 | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 892 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 893 | This configure script is free software; the Free Software Foundation |
| 894 | gives unlimited permission to copy, distribute and modify it. |
| 895 | _ACEOF |
| 896 | exit 0 |
| 897 | fi |
| 898 | exec 5>config.log |
| 899 | cat >&5 <<_ACEOF |
| 900 | This file contains any messages produced by compilers while |
| 901 | running configure, to aid debugging if configure makes a mistake. |
| 902 | |
| 903 | It was created by [SAMPLE] $as_me [x.xx], which was |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 904 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 905 | |
| 906 | $ $0 $@ |
| 907 | |
| 908 | _ACEOF |
| 909 | { |
| 910 | cat <<_ASUNAME |
| 911 | ## --------- ## |
| 912 | ## Platform. ## |
| 913 | ## --------- ## |
| 914 | |
| 915 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 916 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 917 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 918 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 919 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 920 | |
| 921 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 922 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 923 | |
| 924 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 925 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 926 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 927 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 928 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 929 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 930 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 931 | |
| 932 | _ASUNAME |
| 933 | |
| 934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 935 | for as_dir in $PATH |
| 936 | do |
| 937 | IFS=$as_save_IFS |
| 938 | test -z "$as_dir" && as_dir=. |
| 939 | echo "PATH: $as_dir" |
| 940 | done |
| 941 | |
| 942 | } >&5 |
| 943 | |
| 944 | cat >&5 <<_ACEOF |
| 945 | |
| 946 | |
| 947 | ## ----------- ## |
| 948 | ## Core tests. ## |
| 949 | ## ----------- ## |
| 950 | |
| 951 | _ACEOF |
| 952 | |
| 953 | |
| 954 | # Keep a trace of the command line. |
| 955 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 956 | # Strip out --silent because we don't want to record it for future runs. |
| 957 | # Also quote any args containing shell meta-characters. |
| 958 | # Make two passes to allow for proper duplicate-argument suppression. |
| 959 | ac_configure_args= |
| 960 | ac_configure_args0= |
| 961 | ac_configure_args1= |
| 962 | ac_sep= |
| 963 | ac_must_keep_next=false |
| 964 | for ac_pass in 1 2 |
| 965 | do |
| 966 | for ac_arg |
| 967 | do |
| 968 | case $ac_arg in |
| 969 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 970 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 971 | | -silent | --silent | --silen | --sile | --sil) |
| 972 | continue ;; |
| 973 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 974 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 975 | esac |
| 976 | case $ac_pass in |
| 977 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 978 | 2) |
| 979 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 980 | if test $ac_must_keep_next = true; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 981 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 982 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 983 | case $ac_arg in |
| 984 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 985 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 986 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 987 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 988 | case "$ac_configure_args0 " in |
| 989 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 990 | esac |
| 991 | ;; |
| 992 | -* ) ac_must_keep_next=true ;; |
| 993 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 994 | fi |
| 995 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 996 | # Get rid of the leading space. |
| 997 | ac_sep=" " |
| 998 | ;; |
| 999 | esac |
| 1000 | done |
| 1001 | done |
| 1002 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1003 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1004 | |
| 1005 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1006 | # config.log. We remove comments because anyway the quotes in there |
| 1007 | # would cause problems or look ugly. |
| 1008 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1009 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1010 | trap 'exit_status=$? |
| 1011 | # Save into config.log some information that might help in debugging. |
| 1012 | { |
| 1013 | echo |
| 1014 | |
| 1015 | cat <<\_ASBOX |
| 1016 | ## ---------------- ## |
| 1017 | ## Cache variables. ## |
| 1018 | ## ---------------- ## |
| 1019 | _ASBOX |
| 1020 | echo |
| 1021 | # The following way of writing the cache mishandles newlines in values, |
| 1022 | { |
| 1023 | (set) 2>&1 | |
| 1024 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1025 | *ac_space=\ *) |
| 1026 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1027 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1028 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1029 | ;; |
| 1030 | *) |
| 1031 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1032 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1033 | ;; |
| 1034 | esac; |
| 1035 | } |
| 1036 | echo |
| 1037 | |
| 1038 | cat <<\_ASBOX |
| 1039 | ## ----------------- ## |
| 1040 | ## Output variables. ## |
| 1041 | ## ----------------- ## |
| 1042 | _ASBOX |
| 1043 | echo |
| 1044 | for ac_var in $ac_subst_vars |
| 1045 | do |
| 1046 | eval ac_val=$`echo $ac_var` |
| 1047 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1048 | done | sort |
| 1049 | echo |
| 1050 | |
| 1051 | if test -n "$ac_subst_files"; then |
| 1052 | cat <<\_ASBOX |
| 1053 | ## ------------- ## |
| 1054 | ## Output files. ## |
| 1055 | ## ------------- ## |
| 1056 | _ASBOX |
| 1057 | echo |
| 1058 | for ac_var in $ac_subst_files |
| 1059 | do |
| 1060 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1061 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1062 | done | sort |
| 1063 | echo |
| 1064 | fi |
| 1065 | |
| 1066 | if test -s confdefs.h; then |
| 1067 | cat <<\_ASBOX |
| 1068 | ## ----------- ## |
| 1069 | ## confdefs.h. ## |
| 1070 | ## ----------- ## |
| 1071 | _ASBOX |
| 1072 | echo |
| 1073 | sed "/^$/d" confdefs.h | sort |
| 1074 | echo |
| 1075 | fi |
| 1076 | test "$ac_signal" != 0 && |
| 1077 | echo "$as_me: caught signal $ac_signal" |
| 1078 | echo "$as_me: exit $exit_status" |
| 1079 | } >&5 |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1080 | rm -f core *.core && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1081 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1082 | exit $exit_status |
| 1083 | ' 0 |
| 1084 | for ac_signal in 1 2 13 15; do |
| 1085 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1086 | done |
| 1087 | ac_signal=0 |
| 1088 | |
| 1089 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1090 | rm -rf conftest* confdefs.h |
| 1091 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1092 | echo >confdefs.h |
| 1093 | |
| 1094 | # Predefined preprocessor variables. |
| 1095 | |
| 1096 | cat >>confdefs.h <<_ACEOF |
| 1097 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1098 | _ACEOF |
| 1099 | |
| 1100 | |
| 1101 | cat >>confdefs.h <<_ACEOF |
| 1102 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1103 | _ACEOF |
| 1104 | |
| 1105 | |
| 1106 | cat >>confdefs.h <<_ACEOF |
| 1107 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1108 | _ACEOF |
| 1109 | |
| 1110 | |
| 1111 | cat >>confdefs.h <<_ACEOF |
| 1112 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1113 | _ACEOF |
| 1114 | |
| 1115 | |
| 1116 | cat >>confdefs.h <<_ACEOF |
| 1117 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1118 | _ACEOF |
| 1119 | |
| 1120 | |
| 1121 | # Let the site file select an alternate cache file if it wants to. |
| 1122 | # Prefer explicitly selected file to automatically selected ones. |
| 1123 | if test -z "$CONFIG_SITE"; then |
| 1124 | if test "x$prefix" != xNONE; then |
| 1125 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1126 | else |
| 1127 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1128 | fi |
| 1129 | fi |
| 1130 | for ac_site_file in $CONFIG_SITE; do |
| 1131 | if test -r "$ac_site_file"; then |
| 1132 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1133 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1134 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1135 | . "$ac_site_file" |
| 1136 | fi |
| 1137 | done |
| 1138 | |
| 1139 | if test -r "$cache_file"; then |
| 1140 | # Some versions of bash will fail to source /dev/null (special |
| 1141 | # files actually), so we avoid doing that. |
| 1142 | if test -f "$cache_file"; then |
| 1143 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1144 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1145 | case $cache_file in |
| 1146 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1147 | *) . ./$cache_file;; |
| 1148 | esac |
| 1149 | fi |
| 1150 | else |
| 1151 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1152 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1153 | >$cache_file |
| 1154 | fi |
| 1155 | |
| 1156 | # Check that the precious variables saved in the cache have kept the same |
| 1157 | # value. |
| 1158 | ac_cache_corrupted=false |
| 1159 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1160 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1161 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1162 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1163 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1164 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1165 | case $ac_old_set,$ac_new_set in |
| 1166 | set,) |
| 1167 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1168 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1169 | ac_cache_corrupted=: ;; |
| 1170 | ,set) |
| 1171 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1172 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1173 | ac_cache_corrupted=: ;; |
| 1174 | ,);; |
| 1175 | *) |
| 1176 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1177 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1178 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1179 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1180 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1181 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1182 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1183 | ac_cache_corrupted=: |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1184 | fi;; |
| 1185 | esac |
| 1186 | # Pass precious variables to config.status. |
| 1187 | if test "$ac_new_set" = set; then |
| 1188 | case $ac_new_val in |
| 1189 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1190 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1191 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1192 | esac |
| 1193 | case " $ac_configure_args " in |
| 1194 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1195 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1196 | esac |
| 1197 | fi |
| 1198 | done |
| 1199 | if $ac_cache_corrupted; then |
| 1200 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1201 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1202 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1203 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1204 | { (exit 1); exit 1; }; } |
| 1205 | fi |
| 1206 | |
| 1207 | ac_ext=c |
| 1208 | ac_cpp='$CPP $CPPFLAGS' |
| 1209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | |
| 1220 | |
| 1221 | |
| 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
| 1231 | |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | |
| 1238 | |
| 1239 | |
| 1240 | ac_aux_dir= |
| 1241 | for ac_dir in autoconf $srcdir/autoconf; do |
| 1242 | if test -f $ac_dir/install-sh; then |
| 1243 | ac_aux_dir=$ac_dir |
| 1244 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1245 | break |
| 1246 | elif test -f $ac_dir/install.sh; then |
| 1247 | ac_aux_dir=$ac_dir |
| 1248 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1249 | break |
| 1250 | elif test -f $ac_dir/shtool; then |
| 1251 | ac_aux_dir=$ac_dir |
| 1252 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1253 | break |
| 1254 | fi |
| 1255 | done |
| 1256 | if test -z "$ac_aux_dir"; then |
| 1257 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1258 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
| 1259 | { (exit 1); exit 1; }; } |
| 1260 | fi |
| 1261 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1262 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1263 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1264 | |
| 1265 | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1266 | ac_config_files="$ac_config_files Makefile.common" |
| 1267 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1268 | |
| 1269 | |
| 1270 | ac_config_commands="$ac_config_commands Makefile" |
| 1271 | |
| 1272 | |
| 1273 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 1274 | |
| 1275 | |
| 1276 | ac_config_commands="$ac_config_commands lib/sample/Makefile" |
| 1277 | |
| 1278 | |
| 1279 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 1280 | |
| 1281 | |
| 1282 | ac_config_commands="$ac_config_commands tools/sample/Makefile" |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | # Check whether --with-llvmsrc or --without-llvmsrc was given. |
| 1298 | if test "${with_llvmsrc+set}" = set; then |
| 1299 | withval="$with_llvmsrc" |
| 1300 | LLVM_SRC=$withval |
| 1301 | |
| 1302 | else |
| 1303 | LLVM_SRC=`cd ${srcdir}/../..; pwd` |
| 1304 | |
| 1305 | fi; |
| 1306 | |
| 1307 | |
| 1308 | # Check whether --with-llvmobj or --without-llvmobj was given. |
| 1309 | if test "${with_llvmobj+set}" = set; then |
| 1310 | withval="$with_llvmobj" |
| 1311 | LLVM_OBJ=$withval |
| 1312 | |
| 1313 | else |
| 1314 | LLVM_OBJ=`cd ../..; pwd` |
| 1315 | |
| 1316 | fi; |
| 1317 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1318 | cat >confcache <<\_ACEOF |
| 1319 | # This file is a shell script that caches the results of configure |
| 1320 | # tests run on this system so they can be shared between configure |
| 1321 | # scripts and configure runs, see configure's option --config-cache. |
| 1322 | # It is not useful on other systems. If it contains results you don't |
| 1323 | # want to keep, you may remove or edit it. |
| 1324 | # |
| 1325 | # config.status only pays attention to the cache file if you give it |
| 1326 | # the --recheck option to rerun configure. |
| 1327 | # |
| 1328 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 1329 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 1330 | # following values. |
| 1331 | |
| 1332 | _ACEOF |
| 1333 | |
| 1334 | # The following way of writing the cache mishandles newlines in values, |
| 1335 | # but we know of no workaround that is simple, portable, and efficient. |
| 1336 | # So, don't put newlines in cache variables' values. |
| 1337 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1338 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1339 | { |
| 1340 | (set) 2>&1 | |
| 1341 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 1342 | *ac_space=\ *) |
| 1343 | # `set' does not quote correctly, so add quotes (double-quote |
| 1344 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 1345 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1346 | "s/'/'\\\\''/g; |
| 1347 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1348 | ;; |
| 1349 | *) |
| 1350 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 1351 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1352 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1353 | ;; |
| 1354 | esac; |
| 1355 | } | |
| 1356 | sed ' |
| 1357 | t clear |
| 1358 | : clear |
| 1359 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 1360 | t end |
| 1361 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 1362 | : end' >>confcache |
| 1363 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 1364 | if test -w $cache_file; then |
| 1365 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 1366 | cat confcache >$cache_file |
| 1367 | else |
| 1368 | echo "not updating unwritable cache $cache_file" |
| 1369 | fi |
| 1370 | fi |
| 1371 | rm -f confcache |
| 1372 | |
| 1373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1374 | # Let make expand exec_prefix. |
| 1375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1376 | |
| 1377 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 1378 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 1379 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 1380 | # (actually we leave an empty line to preserve line numbers). |
| 1381 | if test "x$srcdir" = x.; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1382 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1383 | s/:*\$(srcdir):*/:/; |
| 1384 | s/:*\${srcdir}:*/:/; |
| 1385 | s/:*@srcdir@:*/:/; |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1386 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1387 | s/:*$//; |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1388 | s/^[^=]*=[ ]*$//; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1389 | }' |
| 1390 | fi |
| 1391 | |
| 1392 | # Transform confdefs.h into DEFS. |
| 1393 | # Protect against shell expansion while executing Makefile rules. |
| 1394 | # Protect against Makefile macro expansion. |
| 1395 | # |
| 1396 | # If the first sed substitution is executed (which looks for macros that |
| 1397 | # take arguments), then we branch to the quote section. Otherwise, |
| 1398 | # look for a macro that doesn't take arguments. |
| 1399 | cat >confdef2opt.sed <<\_ACEOF |
| 1400 | t clear |
| 1401 | : clear |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1402 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1403 | t quote |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1404 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1405 | t quote |
| 1406 | d |
| 1407 | : quote |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1408 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1409 | s,\[,\\&,g |
| 1410 | s,\],\\&,g |
| 1411 | s,\$,$$,g |
| 1412 | p |
| 1413 | _ACEOF |
| 1414 | # We use echo to avoid assuming a particular line-breaking character. |
| 1415 | # The extra dot is to prevent the shell from consuming trailing |
| 1416 | # line-breaks from the sub-command output. A line-break within |
| 1417 | # single-quotes doesn't work because, if this script is created in a |
| 1418 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 1419 | # would break. |
| 1420 | ac_LF_and_DOT=`echo; echo .` |
| 1421 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 1422 | rm -f confdef2opt.sed |
| 1423 | |
| 1424 | |
| 1425 | ac_libobjs= |
| 1426 | ac_ltlibobjs= |
| 1427 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 1428 | # 1. Remove the extension, and $U if already installed. |
| 1429 | ac_i=`echo "$ac_i" | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1430 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1431 | # 2. Add them. |
| 1432 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 1433 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 1434 | done |
| 1435 | LIBOBJS=$ac_libobjs |
| 1436 | |
| 1437 | LTLIBOBJS=$ac_ltlibobjs |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | : ${CONFIG_STATUS=./config.status} |
| 1442 | ac_clean_files_save=$ac_clean_files |
| 1443 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 1444 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 1445 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 1446 | cat >$CONFIG_STATUS <<_ACEOF |
| 1447 | #! $SHELL |
| 1448 | # Generated by $as_me. |
| 1449 | # Run this file to recreate the current configuration. |
| 1450 | # Compiler output produced by configure, useful for debugging |
| 1451 | # configure, is in config.log if it exists. |
| 1452 | |
| 1453 | debug=false |
| 1454 | ac_cs_recheck=false |
| 1455 | ac_cs_silent=false |
| 1456 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 1457 | _ACEOF |
| 1458 | |
| 1459 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1460 | ## --------------------- ## |
| 1461 | ## M4sh Initialization. ## |
| 1462 | ## --------------------- ## |
| 1463 | |
| 1464 | # Be Bourne compatible |
| 1465 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 1466 | emulate sh |
| 1467 | NULLCMD=: |
| 1468 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 1469 | # is contrary to our usage. Disable this feature. |
| 1470 | alias -g '${1+"$@"}'='"$@"' |
| 1471 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 1472 | set -o posix |
| 1473 | fi |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1474 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1475 | |
| 1476 | # Support unset when possible. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1477 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1478 | as_unset=unset |
| 1479 | else |
| 1480 | as_unset=false |
| 1481 | fi |
| 1482 | |
| 1483 | |
| 1484 | # Work around bugs in pre-3.0 UWIN ksh. |
| 1485 | $as_unset ENV MAIL MAILPATH |
| 1486 | PS1='$ ' |
| 1487 | PS2='> ' |
| 1488 | PS4='+ ' |
| 1489 | |
| 1490 | # NLS nuisances. |
| 1491 | for as_var in \ |
| 1492 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 1493 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 1494 | LC_TELEPHONE LC_TIME |
| 1495 | do |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1496 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1497 | eval $as_var=C; export $as_var |
| 1498 | else |
| 1499 | $as_unset $as_var |
| 1500 | fi |
| 1501 | done |
| 1502 | |
| 1503 | # Required to use basename. |
| 1504 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 1505 | as_expr=expr |
| 1506 | else |
| 1507 | as_expr=false |
| 1508 | fi |
| 1509 | |
| 1510 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 1511 | as_basename=basename |
| 1512 | else |
| 1513 | as_basename=false |
| 1514 | fi |
| 1515 | |
| 1516 | |
| 1517 | # Name of the executable. |
| 1518 | as_me=`$as_basename "$0" || |
| 1519 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 1520 | X"$0" : 'X\(//\)$' \| \ |
| 1521 | X"$0" : 'X\(/\)$' \| \ |
| 1522 | . : '\(.\)' 2>/dev/null || |
| 1523 | echo X/"$0" | |
| 1524 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 1525 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 1526 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 1527 | s/.*/./; q'` |
| 1528 | |
| 1529 | |
| 1530 | # PATH needs CR, and LINENO needs CR and PATH. |
| 1531 | # Avoid depending upon Character Ranges. |
| 1532 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 1533 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 1534 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 1535 | as_cr_digits='0123456789' |
| 1536 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 1537 | |
| 1538 | # The user is always right. |
| 1539 | if test "${PATH_SEPARATOR+set}" != set; then |
| 1540 | echo "#! /bin/sh" >conf$$.sh |
| 1541 | echo "exit 0" >>conf$$.sh |
| 1542 | chmod +x conf$$.sh |
| 1543 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 1544 | PATH_SEPARATOR=';' |
| 1545 | else |
| 1546 | PATH_SEPARATOR=: |
| 1547 | fi |
| 1548 | rm -f conf$$.sh |
| 1549 | fi |
| 1550 | |
| 1551 | |
| 1552 | as_lineno_1=$LINENO |
| 1553 | as_lineno_2=$LINENO |
| 1554 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 1555 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 1556 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 1557 | # Find who we are. Look in the path if we contain no path at all |
| 1558 | # relative or not. |
| 1559 | case $0 in |
| 1560 | *[\\/]* ) as_myself=$0 ;; |
| 1561 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1562 | for as_dir in $PATH |
| 1563 | do |
| 1564 | IFS=$as_save_IFS |
| 1565 | test -z "$as_dir" && as_dir=. |
| 1566 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 1567 | done |
| 1568 | |
| 1569 | ;; |
| 1570 | esac |
| 1571 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 1572 | # in which case we are not to be found in the path. |
| 1573 | if test "x$as_myself" = x; then |
| 1574 | as_myself=$0 |
| 1575 | fi |
| 1576 | if test ! -f "$as_myself"; then |
| 1577 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 1578 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 1579 | { (exit 1); exit 1; }; } |
| 1580 | fi |
| 1581 | case $CONFIG_SHELL in |
| 1582 | '') |
| 1583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1584 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 1585 | do |
| 1586 | IFS=$as_save_IFS |
| 1587 | test -z "$as_dir" && as_dir=. |
| 1588 | for as_base in sh bash ksh sh5; do |
| 1589 | case $as_dir in |
| 1590 | /*) |
| 1591 | if ("$as_dir/$as_base" -c ' |
| 1592 | as_lineno_1=$LINENO |
| 1593 | as_lineno_2=$LINENO |
| 1594 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 1595 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 1596 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 1597 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 1598 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 1599 | CONFIG_SHELL=$as_dir/$as_base |
| 1600 | export CONFIG_SHELL |
| 1601 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 1602 | fi;; |
| 1603 | esac |
| 1604 | done |
| 1605 | done |
| 1606 | ;; |
| 1607 | esac |
| 1608 | |
| 1609 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 1610 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 1611 | # line-number line before each line; the second 'sed' does the real |
| 1612 | # work. The second script uses 'N' to pair each line-number line |
| 1613 | # with the numbered line, and appends trailing '-' during |
| 1614 | # substitution so that $LINENO is not a special case at line end. |
| 1615 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 1616 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 1617 | sed '=' <$as_myself | |
| 1618 | sed ' |
| 1619 | N |
| 1620 | s,$,-, |
| 1621 | : loop |
| 1622 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 1623 | t loop |
| 1624 | s,-$,, |
| 1625 | s,^['$as_cr_digits']*\n,, |
| 1626 | ' >$as_me.lineno && |
| 1627 | chmod +x $as_me.lineno || |
| 1628 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 1629 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 1630 | { (exit 1); exit 1; }; } |
| 1631 | |
| 1632 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 1633 | # (the dirname of $[0] is not the place where we might find the |
| 1634 | # original and so on. Autoconf is especially sensible to this). |
| 1635 | . ./$as_me.lineno |
| 1636 | # Exit status is that of the last command. |
| 1637 | exit |
| 1638 | } |
| 1639 | |
| 1640 | |
| 1641 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 1642 | *c*,-n*) ECHO_N= ECHO_C=' |
| 1643 | ' ECHO_T=' ' ;; |
| 1644 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 1645 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 1646 | esac |
| 1647 | |
| 1648 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 1649 | as_expr=expr |
| 1650 | else |
| 1651 | as_expr=false |
| 1652 | fi |
| 1653 | |
| 1654 | rm -f conf$$ conf$$.exe conf$$.file |
| 1655 | echo >conf$$.file |
| 1656 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 1657 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 1658 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 1659 | if test -f conf$$.exe; then |
| 1660 | # Don't use ln at all; we don't have any links |
| 1661 | as_ln_s='cp -p' |
| 1662 | else |
| 1663 | as_ln_s='ln -s' |
| 1664 | fi |
| 1665 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 1666 | as_ln_s=ln |
| 1667 | else |
| 1668 | as_ln_s='cp -p' |
| 1669 | fi |
| 1670 | rm -f conf$$ conf$$.exe conf$$.file |
| 1671 | |
| 1672 | if mkdir -p . 2>/dev/null; then |
| 1673 | as_mkdir_p=: |
| 1674 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1675 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1676 | as_mkdir_p=false |
| 1677 | fi |
| 1678 | |
| 1679 | as_executable_p="test -f" |
| 1680 | |
| 1681 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1682 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1683 | |
| 1684 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1685 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1686 | |
| 1687 | |
| 1688 | # IFS |
| 1689 | # We need space, tab and new line, in precisely that order. |
| 1690 | as_nl=' |
| 1691 | ' |
| 1692 | IFS=" $as_nl" |
| 1693 | |
| 1694 | # CDPATH. |
| 1695 | $as_unset CDPATH |
| 1696 | |
| 1697 | exec 6>&1 |
| 1698 | |
| 1699 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 1700 | # report actual input values of CONFIG_FILES etc. instead of their |
| 1701 | # values after options handling. Logging --version etc. is OK. |
| 1702 | exec 5>>config.log |
| 1703 | { |
| 1704 | echo |
| 1705 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 1706 | ## Running $as_me. ## |
| 1707 | _ASBOX |
| 1708 | } >&5 |
| 1709 | cat >&5 <<_CSEOF |
| 1710 | |
| 1711 | This file was extended by [SAMPLE] $as_me [x.xx], which was |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1712 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1713 | |
| 1714 | CONFIG_FILES = $CONFIG_FILES |
| 1715 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 1716 | CONFIG_LINKS = $CONFIG_LINKS |
| 1717 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 1718 | $ $0 $@ |
| 1719 | |
| 1720 | _CSEOF |
| 1721 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 1722 | echo >&5 |
| 1723 | _ACEOF |
| 1724 | |
| 1725 | # Files that config.status was made for. |
| 1726 | if test -n "$ac_config_files"; then |
| 1727 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 1728 | fi |
| 1729 | |
| 1730 | if test -n "$ac_config_headers"; then |
| 1731 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 1732 | fi |
| 1733 | |
| 1734 | if test -n "$ac_config_links"; then |
| 1735 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 1736 | fi |
| 1737 | |
| 1738 | if test -n "$ac_config_commands"; then |
| 1739 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 1740 | fi |
| 1741 | |
| 1742 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1743 | |
| 1744 | ac_cs_usage="\ |
| 1745 | \`$as_me' instantiates files from templates according to the |
| 1746 | current configuration. |
| 1747 | |
| 1748 | Usage: $0 [OPTIONS] [FILE]... |
| 1749 | |
| 1750 | -h, --help print this help, then exit |
| 1751 | -V, --version print version number, then exit |
| 1752 | -q, --quiet do not print progress messages |
| 1753 | -d, --debug don't remove temporary files |
| 1754 | --recheck update $as_me by reconfiguring in the same conditions |
| 1755 | --file=FILE[:TEMPLATE] |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1756 | instantiate the configuration file FILE |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1757 | |
| 1758 | Configuration files: |
| 1759 | $config_files |
| 1760 | |
| 1761 | Configuration commands: |
| 1762 | $config_commands |
| 1763 | |
| 1764 | Report bugs to <bug-autoconf@gnu.org>." |
| 1765 | _ACEOF |
| 1766 | |
| 1767 | cat >>$CONFIG_STATUS <<_ACEOF |
| 1768 | ac_cs_version="\\ |
| 1769 | [SAMPLE] config.status [x.xx] |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1770 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1771 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 1772 | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1773 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1774 | This config.status script is free software; the Free Software Foundation |
| 1775 | gives unlimited permission to copy, distribute and modify it." |
| 1776 | srcdir=$srcdir |
| 1777 | _ACEOF |
| 1778 | |
| 1779 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1780 | # If no file are specified by the user, then we need to provide default |
| 1781 | # value. By we need to know if files were specified by the user. |
| 1782 | ac_need_defaults=: |
| 1783 | while test $# != 0 |
| 1784 | do |
| 1785 | case $1 in |
| 1786 | --*=*) |
| 1787 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 1788 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 1789 | ac_shift=: |
| 1790 | ;; |
| 1791 | -*) |
| 1792 | ac_option=$1 |
| 1793 | ac_optarg=$2 |
| 1794 | ac_shift=shift |
| 1795 | ;; |
| 1796 | *) # This is not an option, so the user has probably given explicit |
| 1797 | # arguments. |
| 1798 | ac_option=$1 |
| 1799 | ac_need_defaults=false;; |
| 1800 | esac |
| 1801 | |
| 1802 | case $ac_option in |
| 1803 | # Handling of the options. |
| 1804 | _ACEOF |
| 1805 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1806 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 1807 | ac_cs_recheck=: ;; |
| 1808 | --version | --vers* | -V ) |
| 1809 | echo "$ac_cs_version"; exit 0 ;; |
| 1810 | --he | --h) |
| 1811 | # Conflict between --help and --header |
| 1812 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 1813 | Try \`$0 --help' for more information." >&5 |
| 1814 | echo "$as_me: error: ambiguous option: $1 |
| 1815 | Try \`$0 --help' for more information." >&2;} |
| 1816 | { (exit 1); exit 1; }; };; |
| 1817 | --help | --hel | -h ) |
| 1818 | echo "$ac_cs_usage"; exit 0 ;; |
| 1819 | --debug | --d* | -d ) |
| 1820 | debug=: ;; |
| 1821 | --file | --fil | --fi | --f ) |
| 1822 | $ac_shift |
| 1823 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 1824 | ac_need_defaults=false;; |
| 1825 | --header | --heade | --head | --hea ) |
| 1826 | $ac_shift |
| 1827 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 1828 | ac_need_defaults=false;; |
| 1829 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1830 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 1831 | ac_cs_silent=: ;; |
| 1832 | |
| 1833 | # This is an error. |
| 1834 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 1835 | Try \`$0 --help' for more information." >&5 |
| 1836 | echo "$as_me: error: unrecognized option: $1 |
| 1837 | Try \`$0 --help' for more information." >&2;} |
| 1838 | { (exit 1); exit 1; }; } ;; |
| 1839 | |
| 1840 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 1841 | |
| 1842 | esac |
| 1843 | shift |
| 1844 | done |
| 1845 | |
| 1846 | ac_configure_extra_args= |
| 1847 | |
| 1848 | if $ac_cs_silent; then |
| 1849 | exec 6>/dev/null |
| 1850 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 1851 | fi |
| 1852 | |
| 1853 | _ACEOF |
| 1854 | cat >>$CONFIG_STATUS <<_ACEOF |
| 1855 | if \$ac_cs_recheck; then |
| 1856 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 1857 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 1858 | fi |
| 1859 | |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | cat >>$CONFIG_STATUS <<_ACEOF |
| 1863 | # |
| 1864 | # INIT-COMMANDS section. |
| 1865 | # |
| 1866 | |
| 1867 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 1868 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 1869 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` |
| 1870 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 1871 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` |
| 1872 | |
| 1873 | _ACEOF |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1878 | for ac_config_target in $ac_config_targets |
| 1879 | do |
| 1880 | case "$ac_config_target" in |
| 1881 | # Handling of arguments. |
| 1882 | "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; |
| 1883 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 1884 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 1885 | "lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; |
| 1886 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 1887 | "tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; |
| 1888 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 1889 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 1890 | { (exit 1); exit 1; }; };; |
| 1891 | esac |
| 1892 | done |
| 1893 | |
| 1894 | # If the user did not use the arguments to specify the items to instantiate, |
| 1895 | # then the envvar interface is used. Set only those that are not. |
| 1896 | # We use the long form for the default assignment because of an extremely |
| 1897 | # bizarre bug on SunOS 4.1.3. |
| 1898 | if $ac_need_defaults; then |
| 1899 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 1900 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 1901 | fi |
| 1902 | |
| 1903 | # Have a temporary directory for convenience. Make it in the build tree |
| 1904 | # simply because there is no reason to put it here, and in addition, |
| 1905 | # creating and moving files from /tmp can sometimes cause problems. |
| 1906 | # Create a temporary directory, and hook for its removal unless debugging. |
| 1907 | $debug || |
| 1908 | { |
| 1909 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 1910 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 1911 | } |
| 1912 | |
| 1913 | # Create a (secure) tmp directory for tmp files. |
| 1914 | |
| 1915 | { |
| 1916 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 1917 | test -n "$tmp" && test -d "$tmp" |
| 1918 | } || |
| 1919 | { |
| 1920 | tmp=./confstat$$-$RANDOM |
| 1921 | (umask 077 && mkdir $tmp) |
| 1922 | } || |
| 1923 | { |
| 1924 | echo "$me: cannot create a temporary directory in ." >&2 |
| 1925 | { (exit 1); exit 1; } |
| 1926 | } |
| 1927 | |
| 1928 | _ACEOF |
| 1929 | |
| 1930 | cat >>$CONFIG_STATUS <<_ACEOF |
| 1931 | |
| 1932 | # |
| 1933 | # CONFIG_FILES section. |
| 1934 | # |
| 1935 | |
| 1936 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 1937 | # This happens for instance when ./config.status config.h |
| 1938 | if test -n "\$CONFIG_FILES"; then |
| 1939 | # Protect against being on the right side of a sed subst in config.status. |
| 1940 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 1941 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 1942 | s,@SHELL@,$SHELL,;t t |
| 1943 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 1944 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 1945 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 1946 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 1947 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 1948 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 1949 | s,@exec_prefix@,$exec_prefix,;t t |
| 1950 | s,@prefix@,$prefix,;t t |
| 1951 | s,@program_transform_name@,$program_transform_name,;t t |
| 1952 | s,@bindir@,$bindir,;t t |
| 1953 | s,@sbindir@,$sbindir,;t t |
| 1954 | s,@libexecdir@,$libexecdir,;t t |
| 1955 | s,@datadir@,$datadir,;t t |
| 1956 | s,@sysconfdir@,$sysconfdir,;t t |
| 1957 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 1958 | s,@localstatedir@,$localstatedir,;t t |
| 1959 | s,@libdir@,$libdir,;t t |
| 1960 | s,@includedir@,$includedir,;t t |
| 1961 | s,@oldincludedir@,$oldincludedir,;t t |
| 1962 | s,@infodir@,$infodir,;t t |
| 1963 | s,@mandir@,$mandir,;t t |
| 1964 | s,@build_alias@,$build_alias,;t t |
| 1965 | s,@host_alias@,$host_alias,;t t |
| 1966 | s,@target_alias@,$target_alias,;t t |
| 1967 | s,@DEFS@,$DEFS,;t t |
| 1968 | s,@ECHO_C@,$ECHO_C,;t t |
| 1969 | s,@ECHO_N@,$ECHO_N,;t t |
| 1970 | s,@ECHO_T@,$ECHO_T,;t t |
| 1971 | s,@LIBS@,$LIBS,;t t |
| 1972 | s,@LLVM_SRC@,$LLVM_SRC,;t t |
| 1973 | s,@LLVM_OBJ@,$LLVM_OBJ,;t t |
| 1974 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 1975 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 1976 | CEOF |
| 1977 | |
| 1978 | _ACEOF |
| 1979 | |
| 1980 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 1981 | # Split the substitutions into bite-sized pieces for seds with |
| 1982 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 1983 | ac_max_sed_lines=48 |
| 1984 | ac_sed_frag=1 # Number of current file. |
| 1985 | ac_beg=1 # First line for current file. |
| 1986 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 1987 | ac_more_lines=: |
| 1988 | ac_sed_cmds= |
| 1989 | while $ac_more_lines; do |
| 1990 | if test $ac_beg -gt 1; then |
| 1991 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 1992 | else |
| 1993 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 1994 | fi |
| 1995 | if test ! -s $tmp/subs.frag; then |
| 1996 | ac_more_lines=false |
| 1997 | else |
| 1998 | # The purpose of the label and of the branching condition is to |
| 1999 | # speed up the sed processing (if there are no `@' at all, there |
| 2000 | # is no need to browse any of the substitutions). |
| 2001 | # These are the two extra sed commands mentioned above. |
| 2002 | (echo ':t |
| 2003 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 2004 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2005 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2006 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2007 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2008 | fi |
| 2009 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 2010 | ac_beg=$ac_end |
| 2011 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 2012 | fi |
| 2013 | done |
| 2014 | if test -z "$ac_sed_cmds"; then |
| 2015 | ac_sed_cmds=cat |
| 2016 | fi |
| 2017 | fi # test -n "$CONFIG_FILES" |
| 2018 | |
| 2019 | _ACEOF |
| 2020 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2021 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 2022 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2023 | case $ac_file in |
| 2024 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2025 | cat >$tmp/stdin |
| 2026 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 2027 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2028 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2029 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2030 | * ) ac_file_in=$ac_file.in ;; |
| 2031 | esac |
| 2032 | |
| 2033 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 2034 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 2035 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2036 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 2037 | X"$ac_file" : 'X\(//\)$' \| \ |
| 2038 | X"$ac_file" : 'X\(/\)' \| \ |
| 2039 | . : '\(.\)' 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2040 | echo X"$ac_file" | |
| 2041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 2042 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 2043 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 2044 | /^X\(\/\).*/{ s//\1/; q; } |
| 2045 | s/.*/./; q'` |
| 2046 | { if $as_mkdir_p; then |
| 2047 | mkdir -p "$ac_dir" |
| 2048 | else |
| 2049 | as_dir="$ac_dir" |
| 2050 | as_dirs= |
| 2051 | while test ! -d "$as_dir"; do |
| 2052 | as_dirs="$as_dir $as_dirs" |
| 2053 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 2054 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2055 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 2056 | X"$as_dir" : 'X\(//\)$' \| \ |
| 2057 | X"$as_dir" : 'X\(/\)' \| \ |
| 2058 | . : '\(.\)' 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2059 | echo X"$as_dir" | |
| 2060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 2061 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 2062 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 2063 | /^X\(\/\).*/{ s//\1/; q; } |
| 2064 | s/.*/./; q'` |
| 2065 | done |
| 2066 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 2067 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 2068 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 2069 | { (exit 1); exit 1; }; }; } |
| 2070 | |
| 2071 | ac_builddir=. |
| 2072 | |
| 2073 | if test "$ac_dir" != .; then |
| 2074 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 2075 | # A "../" for each directory in $ac_dir_suffix. |
| 2076 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 2077 | else |
| 2078 | ac_dir_suffix= ac_top_builddir= |
| 2079 | fi |
| 2080 | |
| 2081 | case $srcdir in |
| 2082 | .) # No --srcdir option. We are building in place. |
| 2083 | ac_srcdir=. |
| 2084 | if test -z "$ac_top_builddir"; then |
| 2085 | ac_top_srcdir=. |
| 2086 | else |
| 2087 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 2088 | fi ;; |
| 2089 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 2090 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2091 | ac_top_srcdir=$srcdir ;; |
| 2092 | *) # Relative path. |
| 2093 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 2094 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 2095 | esac |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2096 | |
| 2097 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 2098 | # the directories may not exist. |
| 2099 | case `pwd` in |
| 2100 | .) ac_abs_builddir="$ac_dir";; |
| 2101 | *) |
| 2102 | case "$ac_dir" in |
| 2103 | .) ac_abs_builddir=`pwd`;; |
| 2104 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 2105 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 2106 | esac;; |
| 2107 | esac |
| 2108 | case $ac_abs_builddir in |
| 2109 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 2110 | *) |
| 2111 | case ${ac_top_builddir}. in |
| 2112 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 2113 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 2114 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 2115 | esac;; |
| 2116 | esac |
| 2117 | case $ac_abs_builddir in |
| 2118 | .) ac_abs_srcdir=$ac_srcdir;; |
| 2119 | *) |
| 2120 | case $ac_srcdir in |
| 2121 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 2122 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 2123 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 2124 | esac;; |
| 2125 | esac |
| 2126 | case $ac_abs_builddir in |
| 2127 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 2128 | *) |
| 2129 | case $ac_top_srcdir in |
| 2130 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 2131 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 2132 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 2133 | esac;; |
| 2134 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2135 | |
| 2136 | |
| 2137 | |
| 2138 | if test x"$ac_file" != x-; then |
| 2139 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 2140 | echo "$as_me: creating $ac_file" >&6;} |
| 2141 | rm -f "$ac_file" |
| 2142 | fi |
| 2143 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 2144 | # use $as_me), people would be surprised to read: |
| 2145 | # /* config.h. Generated by config.status. */ |
| 2146 | if test x"$ac_file" = x-; then |
| 2147 | configure_input= |
| 2148 | else |
| 2149 | configure_input="$ac_file. " |
| 2150 | fi |
| 2151 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2152 | sed 's,.*/,,'` by configure." |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2153 | |
| 2154 | # First look for the input files in the build tree, otherwise in the |
| 2155 | # src tree. |
| 2156 | ac_file_inputs=`IFS=: |
| 2157 | for f in $ac_file_in; do |
| 2158 | case $f in |
| 2159 | -) echo $tmp/stdin ;; |
| 2160 | [\\/$]*) |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2161 | # Absolute (can't be DOS-style, as IFS=:) |
| 2162 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2163 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 2164 | { (exit 1); exit 1; }; } |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2165 | echo "$f";; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2166 | *) # Relative |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2167 | if test -f "$f"; then |
| 2168 | # Build tree |
| 2169 | echo "$f" |
| 2170 | elif test -f "$srcdir/$f"; then |
| 2171 | # Source tree |
| 2172 | echo "$srcdir/$f" |
| 2173 | else |
| 2174 | # /dev/null tree |
| 2175 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2176 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 2177 | { (exit 1); exit 1; }; } |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2178 | fi;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2179 | esac |
| 2180 | done` || { (exit 1); exit 1; } |
| 2181 | _ACEOF |
| 2182 | cat >>$CONFIG_STATUS <<_ACEOF |
| 2183 | sed "$ac_vpsub |
| 2184 | $extrasub |
| 2185 | _ACEOF |
| 2186 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2187 | :t |
| 2188 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 2189 | s,@configure_input@,$configure_input,;t t |
| 2190 | s,@srcdir@,$ac_srcdir,;t t |
| 2191 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 2192 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 2193 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 2194 | s,@builddir@,$ac_builddir,;t t |
| 2195 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 2196 | s,@top_builddir@,$ac_top_builddir,;t t |
| 2197 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 2198 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 2199 | rm -f $tmp/stdin |
| 2200 | if test x"$ac_file" != x-; then |
| 2201 | mv $tmp/out $ac_file |
| 2202 | else |
| 2203 | cat $tmp/out |
| 2204 | rm -f $tmp/out |
| 2205 | fi |
| 2206 | |
| 2207 | done |
| 2208 | _ACEOF |
| 2209 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2210 | |
| 2211 | # |
| 2212 | # CONFIG_COMMANDS section. |
| 2213 | # |
| 2214 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 2215 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 2216 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 2217 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 2218 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2219 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 2220 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 2221 | X"$ac_dest" : 'X\(/\)' \| \ |
| 2222 | . : '\(.\)' 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2223 | echo X"$ac_dest" | |
| 2224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 2225 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 2226 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 2227 | /^X\(\/\).*/{ s//\1/; q; } |
| 2228 | s/.*/./; q'` |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2229 | { if $as_mkdir_p; then |
| 2230 | mkdir -p "$ac_dir" |
| 2231 | else |
| 2232 | as_dir="$ac_dir" |
| 2233 | as_dirs= |
| 2234 | while test ! -d "$as_dir"; do |
| 2235 | as_dirs="$as_dir $as_dirs" |
| 2236 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 2237 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 2238 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 2239 | X"$as_dir" : 'X\(//\)$' \| \ |
| 2240 | X"$as_dir" : 'X\(/\)' \| \ |
| 2241 | . : '\(.\)' 2>/dev/null || |
| 2242 | echo X"$as_dir" | |
| 2243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 2244 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 2245 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 2246 | /^X\(\/\).*/{ s//\1/; q; } |
| 2247 | s/.*/./; q'` |
| 2248 | done |
| 2249 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 2250 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 2251 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 2252 | { (exit 1); exit 1; }; }; } |
| 2253 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2254 | ac_builddir=. |
| 2255 | |
| 2256 | if test "$ac_dir" != .; then |
| 2257 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 2258 | # A "../" for each directory in $ac_dir_suffix. |
| 2259 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 2260 | else |
| 2261 | ac_dir_suffix= ac_top_builddir= |
| 2262 | fi |
| 2263 | |
| 2264 | case $srcdir in |
| 2265 | .) # No --srcdir option. We are building in place. |
| 2266 | ac_srcdir=. |
| 2267 | if test -z "$ac_top_builddir"; then |
| 2268 | ac_top_srcdir=. |
| 2269 | else |
| 2270 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 2271 | fi ;; |
| 2272 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 2273 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2274 | ac_top_srcdir=$srcdir ;; |
| 2275 | *) # Relative path. |
| 2276 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 2277 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 2278 | esac |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 2279 | |
| 2280 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 2281 | # the directories may not exist. |
| 2282 | case `pwd` in |
| 2283 | .) ac_abs_builddir="$ac_dir";; |
| 2284 | *) |
| 2285 | case "$ac_dir" in |
| 2286 | .) ac_abs_builddir=`pwd`;; |
| 2287 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 2288 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 2289 | esac;; |
| 2290 | esac |
| 2291 | case $ac_abs_builddir in |
| 2292 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 2293 | *) |
| 2294 | case ${ac_top_builddir}. in |
| 2295 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 2296 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 2297 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 2298 | esac;; |
| 2299 | esac |
| 2300 | case $ac_abs_builddir in |
| 2301 | .) ac_abs_srcdir=$ac_srcdir;; |
| 2302 | *) |
| 2303 | case $ac_srcdir in |
| 2304 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 2305 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 2306 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 2307 | esac;; |
| 2308 | esac |
| 2309 | case $ac_abs_builddir in |
| 2310 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 2311 | *) |
| 2312 | case $ac_top_srcdir in |
| 2313 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 2314 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 2315 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 2316 | esac;; |
| 2317 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 2318 | |
| 2319 | |
| 2320 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 2321 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 2322 | case $ac_dest in |
| 2323 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 2324 | lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 2325 | lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; |
| 2326 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 2327 | tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; |
| 2328 | esac |
| 2329 | done |
| 2330 | _ACEOF |
| 2331 | |
| 2332 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 2333 | |
| 2334 | { (exit 0); exit 0; } |
| 2335 | _ACEOF |
| 2336 | chmod +x $CONFIG_STATUS |
| 2337 | ac_clean_files=$ac_clean_files_save |
| 2338 | |
| 2339 | |
| 2340 | # configure is writing to config.log, and then calls config.status. |
| 2341 | # config.status does its own redirection, appending to config.log. |
| 2342 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 2343 | # by configure, so config.status won't be able to write to it; its |
| 2344 | # output is simply discarded. So we exec the FD to /dev/null, |
| 2345 | # effectively closing config.log, so it can be properly (re)opened and |
| 2346 | # appended to by config.status. When coming back to configure, we |
| 2347 | # need to make the FD available again. |
| 2348 | if test "$no_create" != yes; then |
| 2349 | ac_cs_success=: |
| 2350 | ac_config_status_args= |
| 2351 | test "$silent" = yes && |
| 2352 | ac_config_status_args="$ac_config_status_args --quiet" |
| 2353 | exec 5>/dev/null |
| 2354 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 2355 | exec 5>>config.log |
| 2356 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 2357 | # would make configure fail if this is the last instruction. |
| 2358 | $ac_cs_success || { (exit 1); exit 1; } |
| 2359 | fi |
| 2360 | |