blob: 82b086f22929c7322f4377f5cbaa376ce8591c5a [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Dan Gohmand02a2812009-03-24 23:47:11 +00003# Generated by GNU Autoconf 2.61 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Dan Gohmand02a2812009-03-24 23:47:11 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohmand02a2812009-03-24 23:47:11 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
John Criswell451f67f2003-10-16 01:45:35 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Dan Gohmand02a2812009-03-24 23:47:11 +000023 setopt NO_GLOB_SUBST
John Criswell451f67f2003-10-16 01:45:35 +000024else
Dan Gohmand02a2812009-03-24 23:47:11 +000025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
John Criswell451f67f2003-10-16 01:45:35 +000029fi
30
31
John Criswell451f67f2003-10-16 01:45:35 +000032
33
Dan Gohmand02a2812009-03-24 23:47:11 +000034# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
Dan Gohmand02a2812009-03-24 23:47:11 +000055# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
John Criswell451f67f2003-10-16 01:45:35 +000061
Dan Gohmand02a2812009-03-24 23:47:11 +000062
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000076for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
Dan Gohmand02a2812009-03-24 23:47:11 +000082IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000083
Dan Gohmand02a2812009-03-24 23:47:11 +000084 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000114 fi
Dan Gohmand02a2812009-03-24 23:47:11 +0000115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
Dan Gohmand02a2812009-03-24 23:47:11 +0000228 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000229 /*)
Dan Gohmand02a2812009-03-24 23:47:11 +0000230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
John Criswell451f67f2003-10-16 01:45:35 +0000330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +0000332 test "x$as_lineno_1" != "x$as_lineno_2" &&
Dan Gohmand02a2812009-03-24 23:47:11 +0000333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
Dan Gohmand02a2812009-03-24 23:47:11 +0000432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Dan Gohmand02a2812009-03-24 23:47:11 +0000438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000444 sed '
Dan Gohmand02a2812009-03-24 23:47:11 +0000445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000449 N
Dan Gohmand02a2812009-03-24 23:47:11 +0000450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000452 t loop
Dan Gohmand02a2812009-03-24 23:47:11 +0000453 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000454 ' >$as_me.lineno &&
Dan Gohmand02a2812009-03-24 23:47:11 +0000455 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
Dan Gohmand02a2812009-03-24 23:47:11 +0000461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000463 # Exit status is that of the last command.
464 exit
465}
466
467
Dan Gohmand02a2812009-03-24 23:47:11 +0000468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000483esac
484
Dan Gohmand02a2812009-03-24 23:47:11 +0000485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
Dan Gohmand02a2812009-03-24 23:47:11 +0000493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
John Criswell451f67f2003-10-16 01:45:35 +0000499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
Dan Gohmand02a2812009-03-24 23:47:11 +0000501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000507 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
Dan Gohmand02a2812009-03-24 23:47:11 +0000513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
Reid Spencer9964cd82005-01-01 09:26:55 +0000519 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000520 as_mkdir_p=false
521fi
522
Dan Gohmand02a2812009-03-24 23:47:11 +0000523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
John Criswell451f67f2003-10-16 01:45:35 +0000545
546# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000548
549# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000551
552
John Criswell451f67f2003-10-16 01:45:35 +0000553
Dan Gohmand02a2812009-03-24 23:47:11 +0000554exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
John Criswell451f67f2003-10-16 01:45:35 +0000561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
Dan Gohmand02a2812009-03-24 23:47:11 +0000565ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000566ac_config_libobj_dir=.
Dan Gohmand02a2812009-03-24 23:47:11 +0000567LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
John Criswell451f67f2003-10-16 01:45:35 +0000574# Identity of this package.
575PACKAGE_NAME='[SAMPLE]'
576PACKAGE_TARNAME='--sample--'
577PACKAGE_VERSION='[x.xx]'
578PACKAGE_STRING='[SAMPLE] [x.xx]'
579PACKAGE_BUGREPORT='bugs@yourdomain'
580
581ac_unique_file=""Makefile.common.in""
Dan Gohmand02a2812009-03-24 23:47:11 +0000582ac_subst_vars='SHELL
583PATH_SEPARATOR
584PACKAGE_NAME
585PACKAGE_TARNAME
586PACKAGE_VERSION
587PACKAGE_STRING
588PACKAGE_BUGREPORT
589exec_prefix
590prefix
591program_transform_name
592bindir
593sbindir
594libexecdir
595datarootdir
596datadir
597sysconfdir
598sharedstatedir
599localstatedir
600includedir
601oldincludedir
602docdir
603infodir
604htmldir
605dvidir
606pdfdir
607psdir
608libdir
609localedir
610mandir
611DEFS
612ECHO_C
613ECHO_N
614ECHO_T
615LIBS
616build_alias
617host_alias
618target_alias
619LLVM_SRC
620LLVM_OBJ
621LIBOBJS
622LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000623ac_subst_files=''
Dan Gohmand02a2812009-03-24 23:47:11 +0000624 ac_precious_vars='build_alias
625host_alias
626target_alias'
627
John Criswell451f67f2003-10-16 01:45:35 +0000628
629# Initialize some variables set by options.
630ac_init_help=
631ac_init_version=false
632# The variables have the same names as the options, with
633# dashes changed to underlines.
634cache_file=/dev/null
635exec_prefix=NONE
636no_create=
637no_recursion=
638prefix=NONE
639program_prefix=NONE
640program_suffix=NONE
641program_transform_name=s,x,x,
642silent=
643site=
644srcdir=
645verbose=
646x_includes=NONE
647x_libraries=NONE
648
649# Installation directory options.
650# These are left unexpanded so users can "make install exec_prefix=/foo"
651# and all the variables that are supposed to be based on exec_prefix
652# by default will actually change.
653# Use braces instead of parens because sh, perl, etc. also accept them.
Dan Gohmand02a2812009-03-24 23:47:11 +0000654# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000655bindir='${exec_prefix}/bin'
656sbindir='${exec_prefix}/sbin'
657libexecdir='${exec_prefix}/libexec'
Dan Gohmand02a2812009-03-24 23:47:11 +0000658datarootdir='${prefix}/share'
659datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000660sysconfdir='${prefix}/etc'
661sharedstatedir='${prefix}/com'
662localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000663includedir='${prefix}/include'
664oldincludedir='/usr/include'
Dan Gohmand02a2812009-03-24 23:47:11 +0000665docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
666infodir='${datarootdir}/info'
667htmldir='${docdir}'
668dvidir='${docdir}'
669pdfdir='${docdir}'
670psdir='${docdir}'
671libdir='${exec_prefix}/lib'
672localedir='${datarootdir}/locale'
673mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000674
675ac_prev=
Dan Gohmand02a2812009-03-24 23:47:11 +0000676ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000677for ac_option
678do
679 # If the previous option needs an argument, assign it.
680 if test -n "$ac_prev"; then
Dan Gohmand02a2812009-03-24 23:47:11 +0000681 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000682 ac_prev=
683 continue
684 fi
685
Dan Gohmand02a2812009-03-24 23:47:11 +0000686 case $ac_option in
687 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
688 *) ac_optarg=yes ;;
689 esac
John Criswell451f67f2003-10-16 01:45:35 +0000690
691 # Accept the important Cygnus configure options, so we can diagnose typos.
692
Dan Gohmand02a2812009-03-24 23:47:11 +0000693 case $ac_dashdash$ac_option in
694 --)
695 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000696
697 -bindir | --bindir | --bindi | --bind | --bin | --bi)
698 ac_prev=bindir ;;
699 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
700 bindir=$ac_optarg ;;
701
702 -build | --build | --buil | --bui | --bu)
703 ac_prev=build_alias ;;
704 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
705 build_alias=$ac_optarg ;;
706
707 -cache-file | --cache-file | --cache-fil | --cache-fi \
708 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
709 ac_prev=cache_file ;;
710 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
711 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
712 cache_file=$ac_optarg ;;
713
714 --config-cache | -C)
715 cache_file=config.cache ;;
716
Dan Gohmand02a2812009-03-24 23:47:11 +0000717 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000718 ac_prev=datadir ;;
Dan Gohmand02a2812009-03-24 23:47:11 +0000719 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000720 datadir=$ac_optarg ;;
721
Dan Gohmand02a2812009-03-24 23:47:11 +0000722 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
723 | --dataroo | --dataro | --datar)
724 ac_prev=datarootdir ;;
725 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
726 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
727 datarootdir=$ac_optarg ;;
728
John Criswell451f67f2003-10-16 01:45:35 +0000729 -disable-* | --disable-*)
730 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
731 # Reject names that are not valid shell variable names.
Dan Gohmand02a2812009-03-24 23:47:11 +0000732 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000733 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
734 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +0000735 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
736 eval enable_$ac_feature=no ;;
737
738 -docdir | --docdir | --docdi | --doc | --do)
739 ac_prev=docdir ;;
740 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
741 docdir=$ac_optarg ;;
742
743 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
744 ac_prev=dvidir ;;
745 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
746 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000747
748 -enable-* | --enable-*)
749 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
750 # Reject names that are not valid shell variable names.
Dan Gohmand02a2812009-03-24 23:47:11 +0000751 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000752 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
753 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +0000754 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
755 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000756
757 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
758 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
759 | --exec | --exe | --ex)
760 ac_prev=exec_prefix ;;
761 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
762 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
763 | --exec=* | --exe=* | --ex=*)
764 exec_prefix=$ac_optarg ;;
765
766 -gas | --gas | --ga | --g)
767 # Obsolete; use --with-gas.
768 with_gas=yes ;;
769
770 -help | --help | --hel | --he | -h)
771 ac_init_help=long ;;
772 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
773 ac_init_help=recursive ;;
774 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
775 ac_init_help=short ;;
776
777 -host | --host | --hos | --ho)
778 ac_prev=host_alias ;;
779 -host=* | --host=* | --hos=* | --ho=*)
780 host_alias=$ac_optarg ;;
781
Dan Gohmand02a2812009-03-24 23:47:11 +0000782 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
783 ac_prev=htmldir ;;
784 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
785 | --ht=*)
786 htmldir=$ac_optarg ;;
787
John Criswell451f67f2003-10-16 01:45:35 +0000788 -includedir | --includedir | --includedi | --included | --include \
789 | --includ | --inclu | --incl | --inc)
790 ac_prev=includedir ;;
791 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
792 | --includ=* | --inclu=* | --incl=* | --inc=*)
793 includedir=$ac_optarg ;;
794
795 -infodir | --infodir | --infodi | --infod | --info | --inf)
796 ac_prev=infodir ;;
797 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
798 infodir=$ac_optarg ;;
799
800 -libdir | --libdir | --libdi | --libd)
801 ac_prev=libdir ;;
802 -libdir=* | --libdir=* | --libdi=* | --libd=*)
803 libdir=$ac_optarg ;;
804
805 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
806 | --libexe | --libex | --libe)
807 ac_prev=libexecdir ;;
808 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
809 | --libexe=* | --libex=* | --libe=*)
810 libexecdir=$ac_optarg ;;
811
Dan Gohmand02a2812009-03-24 23:47:11 +0000812 -localedir | --localedir | --localedi | --localed | --locale)
813 ac_prev=localedir ;;
814 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
815 localedir=$ac_optarg ;;
816
John Criswell451f67f2003-10-16 01:45:35 +0000817 -localstatedir | --localstatedir | --localstatedi | --localstated \
Dan Gohmand02a2812009-03-24 23:47:11 +0000818 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000819 ac_prev=localstatedir ;;
820 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Dan Gohmand02a2812009-03-24 23:47:11 +0000821 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000822 localstatedir=$ac_optarg ;;
823
824 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
825 ac_prev=mandir ;;
826 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
827 mandir=$ac_optarg ;;
828
829 -nfp | --nfp | --nf)
830 # Obsolete; use --without-fp.
831 with_fp=no ;;
832
833 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
834 | --no-cr | --no-c | -n)
835 no_create=yes ;;
836
837 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
838 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
839 no_recursion=yes ;;
840
841 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
842 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
843 | --oldin | --oldi | --old | --ol | --o)
844 ac_prev=oldincludedir ;;
845 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
846 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
847 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
848 oldincludedir=$ac_optarg ;;
849
850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
851 ac_prev=prefix ;;
852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
853 prefix=$ac_optarg ;;
854
855 -program-prefix | --program-prefix | --program-prefi | --program-pref \
856 | --program-pre | --program-pr | --program-p)
857 ac_prev=program_prefix ;;
858 -program-prefix=* | --program-prefix=* | --program-prefi=* \
859 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
860 program_prefix=$ac_optarg ;;
861
862 -program-suffix | --program-suffix | --program-suffi | --program-suff \
863 | --program-suf | --program-su | --program-s)
864 ac_prev=program_suffix ;;
865 -program-suffix=* | --program-suffix=* | --program-suffi=* \
866 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
867 program_suffix=$ac_optarg ;;
868
869 -program-transform-name | --program-transform-name \
870 | --program-transform-nam | --program-transform-na \
871 | --program-transform-n | --program-transform- \
872 | --program-transform | --program-transfor \
873 | --program-transfo | --program-transf \
874 | --program-trans | --program-tran \
875 | --progr-tra | --program-tr | --program-t)
876 ac_prev=program_transform_name ;;
877 -program-transform-name=* | --program-transform-name=* \
878 | --program-transform-nam=* | --program-transform-na=* \
879 | --program-transform-n=* | --program-transform-=* \
880 | --program-transform=* | --program-transfor=* \
881 | --program-transfo=* | --program-transf=* \
882 | --program-trans=* | --program-tran=* \
883 | --progr-tra=* | --program-tr=* | --program-t=*)
884 program_transform_name=$ac_optarg ;;
885
Dan Gohmand02a2812009-03-24 23:47:11 +0000886 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
887 ac_prev=pdfdir ;;
888 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
889 pdfdir=$ac_optarg ;;
890
891 -psdir | --psdir | --psdi | --psd | --ps)
892 ac_prev=psdir ;;
893 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
894 psdir=$ac_optarg ;;
895
John Criswell451f67f2003-10-16 01:45:35 +0000896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
897 | -silent | --silent | --silen | --sile | --sil)
898 silent=yes ;;
899
900 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
901 ac_prev=sbindir ;;
902 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
903 | --sbi=* | --sb=*)
904 sbindir=$ac_optarg ;;
905
906 -sharedstatedir | --sharedstatedir | --sharedstatedi \
907 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
908 | --sharedst | --shareds | --shared | --share | --shar \
909 | --sha | --sh)
910 ac_prev=sharedstatedir ;;
911 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
912 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
913 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
914 | --sha=* | --sh=*)
915 sharedstatedir=$ac_optarg ;;
916
917 -site | --site | --sit)
918 ac_prev=site ;;
919 -site=* | --site=* | --sit=*)
920 site=$ac_optarg ;;
921
922 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
923 ac_prev=srcdir ;;
924 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
925 srcdir=$ac_optarg ;;
926
927 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
928 | --syscon | --sysco | --sysc | --sys | --sy)
929 ac_prev=sysconfdir ;;
930 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
931 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
932 sysconfdir=$ac_optarg ;;
933
934 -target | --target | --targe | --targ | --tar | --ta | --t)
935 ac_prev=target_alias ;;
936 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
937 target_alias=$ac_optarg ;;
938
939 -v | -verbose | --verbose | --verbos | --verbo | --verb)
940 verbose=yes ;;
941
942 -version | --version | --versio | --versi | --vers | -V)
943 ac_init_version=: ;;
944
945 -with-* | --with-*)
946 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
Dan Gohmand02a2812009-03-24 23:47:11 +0000948 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000949 { echo "$as_me: error: invalid package name: $ac_package" >&2
950 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +0000951 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
952 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000953
954 -without-* | --without-*)
955 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
956 # Reject names that are not valid shell variable names.
Dan Gohmand02a2812009-03-24 23:47:11 +0000957 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000958 { echo "$as_me: error: invalid package name: $ac_package" >&2
959 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +0000960 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
961 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +0000962
963 --x)
964 # Obsolete; use --with-x.
965 with_x=yes ;;
966
967 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
968 | --x-incl | --x-inc | --x-in | --x-i)
969 ac_prev=x_includes ;;
970 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
971 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
972 x_includes=$ac_optarg ;;
973
974 -x-libraries | --x-libraries | --x-librarie | --x-librari \
975 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
976 ac_prev=x_libraries ;;
977 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
978 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979 x_libraries=$ac_optarg ;;
980
981 -*) { echo "$as_me: error: unrecognized option: $ac_option
982Try \`$0 --help' for more information." >&2
983 { (exit 1); exit 1; }; }
984 ;;
985
986 *=*)
987 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
991 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +0000992 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +0000993 export $ac_envvar ;;
994
995 *)
996 # FIXME: should be removed in autoconf 3.0.
997 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
998 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1000 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1001 ;;
1002
1003 esac
1004done
1005
1006if test -n "$ac_prev"; then
1007 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1008 { echo "$as_me: error: missing argument to $ac_option" >&2
1009 { (exit 1); exit 1; }; }
1010fi
1011
Dan Gohmand02a2812009-03-24 23:47:11 +00001012# Be sure to have absolute directory names.
1013for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1014 datadir sysconfdir sharedstatedir localstatedir includedir \
1015 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1016 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001017do
Dan Gohmand02a2812009-03-24 23:47:11 +00001018 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001019 case $ac_val in
Dan Gohmand02a2812009-03-24 23:47:11 +00001020 [\\/$]* | ?:[\\/]* ) continue;;
1021 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001022 esac
Dan Gohmand02a2812009-03-24 23:47:11 +00001023 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1024 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001025done
1026
1027# There might be people who depend on the old broken behavior: `$host'
1028# used to hold the argument of --host etc.
1029# FIXME: To remove some day.
1030build=$build_alias
1031host=$host_alias
1032target=$target_alias
1033
1034# FIXME: To remove some day.
1035if test "x$host_alias" != x; then
1036 if test "x$build_alias" = x; then
1037 cross_compiling=maybe
1038 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1039 If a cross compiler is detected then cross compile mode will be used." >&2
1040 elif test "x$build_alias" != "x$host_alias"; then
1041 cross_compiling=yes
1042 fi
1043fi
1044
1045ac_tool_prefix=
1046test -n "$host_alias" && ac_tool_prefix=$host_alias-
1047
1048test "$silent" = yes && exec 6>/dev/null
1049
1050
Dan Gohmand02a2812009-03-24 23:47:11 +00001051ac_pwd=`pwd` && test -n "$ac_pwd" &&
1052ac_ls_di=`ls -di .` &&
1053ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1054 { echo "$as_me: error: Working directory cannot be determined" >&2
1055 { (exit 1); exit 1; }; }
1056test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1057 { echo "$as_me: error: pwd does not report name of working directory" >&2
1058 { (exit 1); exit 1; }; }
1059
1060
John Criswell451f67f2003-10-16 01:45:35 +00001061# Find the source files, if location was not specified.
1062if test -z "$srcdir"; then
1063 ac_srcdir_defaulted=yes
Dan Gohmand02a2812009-03-24 23:47:11 +00001064 # Try the directory containing this script, then the parent directory.
1065 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001066$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001067 X"$0" : 'X\(//\)[^/]' \| \
1068 X"$0" : 'X\(//\)$' \| \
Dan Gohmand02a2812009-03-24 23:47:11 +00001069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001070echo X"$0" |
Dan Gohmand02a2812009-03-24 23:47:11 +00001071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1072 s//\1/
1073 q
1074 }
1075 /^X\(\/\/\)[^/].*/{
1076 s//\1/
1077 q
1078 }
1079 /^X\(\/\/\)$/{
1080 s//\1/
1081 q
1082 }
1083 /^X\(\/\).*/{
1084 s//\1/
1085 q
1086 }
1087 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001088 srcdir=$ac_confdir
Dan Gohmand02a2812009-03-24 23:47:11 +00001089 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001090 srcdir=..
1091 fi
1092else
1093 ac_srcdir_defaulted=no
1094fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001095if test ! -r "$srcdir/$ac_unique_file"; then
1096 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1097 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001098 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001099fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001100ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1101ac_abs_confdir=`(
1102 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001103 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001104 pwd)`
1105# When building in place, set srcdir=.
1106if test "$ac_abs_confdir" = "$ac_pwd"; then
1107 srcdir=.
1108fi
1109# Remove unnecessary trailing slashes from srcdir.
1110# Double slashes in file names in object file debugging info
1111# mess up M-x gdb in Emacs.
1112case $srcdir in
1113*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1114esac
1115for ac_var in $ac_precious_vars; do
1116 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1117 eval ac_env_${ac_var}_value=\$${ac_var}
1118 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1119 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1120done
John Criswell451f67f2003-10-16 01:45:35 +00001121
1122#
1123# Report the --help message.
1124#
1125if test "$ac_init_help" = "long"; then
1126 # Omit some internal or obsolete options to make the list less imposing.
1127 # This message is too long to be a string in the A/UX 3.1 sh.
1128 cat <<_ACEOF
1129\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1130
1131Usage: $0 [OPTION]... [VAR=VALUE]...
1132
1133To assign environment variables (e.g., CC, CFLAGS...), specify them as
1134VAR=VALUE. See below for descriptions of some of the useful variables.
1135
1136Defaults for the options are specified in brackets.
1137
1138Configuration:
1139 -h, --help display this help and exit
1140 --help=short display options specific to this package
1141 --help=recursive display the short help of all the included packages
1142 -V, --version display version information and exit
1143 -q, --quiet, --silent do not print \`checking...' messages
1144 --cache-file=FILE cache test results in FILE [disabled]
1145 -C, --config-cache alias for \`--cache-file=config.cache'
1146 -n, --no-create do not create output files
1147 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1148
John Criswell451f67f2003-10-16 01:45:35 +00001149Installation directories:
1150 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001151 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001153 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001154
1155By default, \`make install' will install all the files in
1156\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1157an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1158for instance \`--prefix=\$HOME'.
1159
1160For better control, use the options below.
1161
1162Fine tuning of the installation directories:
1163 --bindir=DIR user executables [EPREFIX/bin]
1164 --sbindir=DIR system admin executables [EPREFIX/sbin]
1165 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001166 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1167 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1168 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1169 --libdir=DIR object code libraries [EPREFIX/lib]
1170 --includedir=DIR C header files [PREFIX/include]
1171 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Dan Gohmand02a2812009-03-24 23:47:11 +00001172 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1173 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1174 --infodir=DIR info documentation [DATAROOTDIR/info]
1175 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1176 --mandir=DIR man documentation [DATAROOTDIR/man]
1177 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1178 --htmldir=DIR html documentation [DOCDIR]
1179 --dvidir=DIR dvi documentation [DOCDIR]
1180 --pdfdir=DIR pdf documentation [DOCDIR]
1181 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001182_ACEOF
1183
1184 cat <<\_ACEOF
1185_ACEOF
1186fi
1187
1188if test -n "$ac_init_help"; then
1189 case $ac_init_help in
1190 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1191 esac
1192 cat <<\_ACEOF
1193
1194Optional Packages:
1195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1197 --with-llvmsrc Location of LLVM Source Code
1198 --with-llvmobj Location of LLVM Object Code
1199
1200Report bugs to <bugs@yourdomain>.
1201_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00001202ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001203fi
1204
1205if test "$ac_init_help" = "recursive"; then
1206 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001207 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Dan Gohmand02a2812009-03-24 23:47:11 +00001208 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001209 ac_builddir=.
1210
Dan Gohmand02a2812009-03-24 23:47:11 +00001211case "$ac_dir" in
1212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1213*)
John Criswell451f67f2003-10-16 01:45:35 +00001214 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmand02a2812009-03-24 23:47:11 +00001215 # A ".." for each directory in $ac_dir_suffix.
1216 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1217 case $ac_top_builddir_sub in
1218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1220 esac ;;
1221esac
1222ac_abs_top_builddir=$ac_pwd
1223ac_abs_builddir=$ac_pwd$ac_dir_suffix
1224# for backward compatibility:
1225ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001226
1227case $srcdir in
Dan Gohmand02a2812009-03-24 23:47:11 +00001228 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001229 ac_srcdir=.
Dan Gohmand02a2812009-03-24 23:47:11 +00001230 ac_top_srcdir=$ac_top_builddir_sub
1231 ac_abs_top_srcdir=$ac_pwd ;;
1232 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001233 ac_srcdir=$srcdir$ac_dir_suffix;
Dan Gohmand02a2812009-03-24 23:47:11 +00001234 ac_top_srcdir=$srcdir
1235 ac_abs_top_srcdir=$srcdir ;;
1236 *) # Relative name.
1237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1238 ac_top_srcdir=$ac_top_build_prefix$srcdir
1239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001240esac
Dan Gohmand02a2812009-03-24 23:47:11 +00001241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001242
Dan Gohmand02a2812009-03-24 23:47:11 +00001243 cd "$ac_dir" || { ac_status=$?; continue; }
1244 # Check for guested configure.
1245 if test -f "$ac_srcdir/configure.gnu"; then
1246 echo &&
1247 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1248 elif test -f "$ac_srcdir/configure"; then
1249 echo &&
1250 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001251 else
1252 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmand02a2812009-03-24 23:47:11 +00001253 fi || ac_status=$?
1254 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001255 done
1256fi
1257
Dan Gohmand02a2812009-03-24 23:47:11 +00001258test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001259if $ac_init_version; then
1260 cat <<\_ACEOF
1261[SAMPLE] configure [x.xx]
Dan Gohmand02a2812009-03-24 23:47:11 +00001262generated by GNU Autoconf 2.61
John Criswell451f67f2003-10-16 01:45:35 +00001263
Dan Gohmand02a2812009-03-24 23:47:11 +00001264Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12652002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001266This configure script is free software; the Free Software Foundation
1267gives unlimited permission to copy, distribute and modify it.
1268_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00001269 exit
John Criswell451f67f2003-10-16 01:45:35 +00001270fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001271cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001272This file contains any messages produced by compilers while
1273running configure, to aid debugging if configure makes a mistake.
1274
1275It was created by [SAMPLE] $as_me [x.xx], which was
Dan Gohmand02a2812009-03-24 23:47:11 +00001276generated by GNU Autoconf 2.61. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001277
1278 $ $0 $@
1279
1280_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00001281exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001282{
1283cat <<_ASUNAME
1284## --------- ##
1285## Platform. ##
1286## --------- ##
1287
1288hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1289uname -m = `(uname -m) 2>/dev/null || echo unknown`
1290uname -r = `(uname -r) 2>/dev/null || echo unknown`
1291uname -s = `(uname -s) 2>/dev/null || echo unknown`
1292uname -v = `(uname -v) 2>/dev/null || echo unknown`
1293
1294/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1295/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1296
1297/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1298/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1299/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Dan Gohmand02a2812009-03-24 23:47:11 +00001300/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001301/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1302/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1303/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1304
1305_ASUNAME
1306
1307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308for as_dir in $PATH
1309do
1310 IFS=$as_save_IFS
1311 test -z "$as_dir" && as_dir=.
1312 echo "PATH: $as_dir"
1313done
Dan Gohmand02a2812009-03-24 23:47:11 +00001314IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001315
1316} >&5
1317
1318cat >&5 <<_ACEOF
1319
1320
1321## ----------- ##
1322## Core tests. ##
1323## ----------- ##
1324
1325_ACEOF
1326
1327
1328# Keep a trace of the command line.
1329# Strip out --no-create and --no-recursion so they do not pile up.
1330# Strip out --silent because we don't want to record it for future runs.
1331# Also quote any args containing shell meta-characters.
1332# Make two passes to allow for proper duplicate-argument suppression.
1333ac_configure_args=
1334ac_configure_args0=
1335ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001336ac_must_keep_next=false
1337for ac_pass in 1 2
1338do
1339 for ac_arg
1340 do
1341 case $ac_arg in
1342 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344 | -silent | --silent | --silen | --sile | --sil)
1345 continue ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00001346 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001347 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1348 esac
1349 case $ac_pass in
1350 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1351 2)
1352 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1353 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001354 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001355 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001356 case $ac_arg in
1357 *=* | --config-cache | -C | -disable-* | --disable-* \
1358 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1359 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1360 | -with-* | --with-* | -without-* | --without-* | --x)
1361 case "$ac_configure_args0 " in
1362 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1363 esac
1364 ;;
1365 -* ) ac_must_keep_next=true ;;
1366 esac
John Criswell451f67f2003-10-16 01:45:35 +00001367 fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001368 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001369 ;;
1370 esac
1371 done
1372done
1373$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1374$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1375
1376# When interrupted or exit'd, cleanup temporary files, and complete
1377# config.log. We remove comments because anyway the quotes in there
1378# would cause problems or look ugly.
Dan Gohmand02a2812009-03-24 23:47:11 +00001379# WARNING: Use '\'' to represent an apostrophe within the trap.
1380# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001381trap 'exit_status=$?
1382 # Save into config.log some information that might help in debugging.
1383 {
1384 echo
1385
1386 cat <<\_ASBOX
1387## ---------------- ##
1388## Cache variables. ##
1389## ---------------- ##
1390_ASBOX
1391 echo
1392 # The following way of writing the cache mishandles newlines in values,
Dan Gohmand02a2812009-03-24 23:47:11 +00001393(
1394 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1395 eval ac_val=\$$ac_var
1396 case $ac_val in #(
1397 *${as_nl}*)
1398 case $ac_var in #(
1399 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1400echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1401 esac
1402 case $ac_var in #(
1403 _ | IFS | as_nl) ;; #(
1404 *) $as_unset $ac_var ;;
1405 esac ;;
1406 esac
1407 done
John Criswell451f67f2003-10-16 01:45:35 +00001408 (set) 2>&1 |
Dan Gohmand02a2812009-03-24 23:47:11 +00001409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1410 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001411 sed -n \
Dan Gohmand02a2812009-03-24 23:47:11 +00001412 "s/'\''/'\''\\\\'\'''\''/g;
1413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1414 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +00001415 *)
Dan Gohmand02a2812009-03-24 23:47:11 +00001416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +00001417 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00001418 esac |
1419 sort
1420)
John Criswell451f67f2003-10-16 01:45:35 +00001421 echo
1422
1423 cat <<\_ASBOX
1424## ----------------- ##
1425## Output variables. ##
1426## ----------------- ##
1427_ASBOX
1428 echo
1429 for ac_var in $ac_subst_vars
1430 do
Dan Gohmand02a2812009-03-24 23:47:11 +00001431 eval ac_val=\$$ac_var
1432 case $ac_val in
1433 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1434 esac
1435 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001436 done | sort
1437 echo
1438
1439 if test -n "$ac_subst_files"; then
1440 cat <<\_ASBOX
Dan Gohmand02a2812009-03-24 23:47:11 +00001441## ------------------- ##
1442## File substitutions. ##
1443## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001444_ASBOX
1445 echo
1446 for ac_var in $ac_subst_files
1447 do
Dan Gohmand02a2812009-03-24 23:47:11 +00001448 eval ac_val=\$$ac_var
1449 case $ac_val in
1450 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1451 esac
1452 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001453 done | sort
1454 echo
1455 fi
1456
1457 if test -s confdefs.h; then
1458 cat <<\_ASBOX
1459## ----------- ##
1460## confdefs.h. ##
1461## ----------- ##
1462_ASBOX
1463 echo
Dan Gohmand02a2812009-03-24 23:47:11 +00001464 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001465 echo
1466 fi
1467 test "$ac_signal" != 0 &&
1468 echo "$as_me: caught signal $ac_signal"
1469 echo "$as_me: exit $exit_status"
1470 } >&5
Dan Gohmand02a2812009-03-24 23:47:11 +00001471 rm -f core *.core core.conftest.* &&
1472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001473 exit $exit_status
Dan Gohmand02a2812009-03-24 23:47:11 +00001474' 0
John Criswell451f67f2003-10-16 01:45:35 +00001475for ac_signal in 1 2 13 15; do
1476 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1477done
1478ac_signal=0
1479
1480# confdefs.h avoids OS command line length limits that DEFS can exceed.
Dan Gohmand02a2812009-03-24 23:47:11 +00001481rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001482
1483# Predefined preprocessor variables.
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_NAME "$PACKAGE_NAME"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1492_ACEOF
1493
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_VERSION "$PACKAGE_VERSION"
1497_ACEOF
1498
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_STRING "$PACKAGE_STRING"
1502_ACEOF
1503
1504
1505cat >>confdefs.h <<_ACEOF
1506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1507_ACEOF
1508
1509
1510# Let the site file select an alternate cache file if it wants to.
1511# Prefer explicitly selected file to automatically selected ones.
Dan Gohmand02a2812009-03-24 23:47:11 +00001512if test -n "$CONFIG_SITE"; then
1513 set x "$CONFIG_SITE"
1514elif test "x$prefix" != xNONE; then
1515 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1516else
1517 set x "$ac_default_prefix/share/config.site" \
1518 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001519fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001520shift
1521for ac_site_file
1522do
John Criswell451f67f2003-10-16 01:45:35 +00001523 if test -r "$ac_site_file"; then
1524 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1525echo "$as_me: loading site script $ac_site_file" >&6;}
1526 sed 's/^/| /' "$ac_site_file" >&5
1527 . "$ac_site_file"
1528 fi
1529done
1530
1531if test -r "$cache_file"; then
1532 # Some versions of bash will fail to source /dev/null (special
1533 # files actually), so we avoid doing that.
1534 if test -f "$cache_file"; then
1535 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1536echo "$as_me: loading cache $cache_file" >&6;}
1537 case $cache_file in
Dan Gohmand02a2812009-03-24 23:47:11 +00001538 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1539 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001540 esac
1541 fi
1542else
1543 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1544echo "$as_me: creating cache $cache_file" >&6;}
1545 >$cache_file
1546fi
1547
1548# Check that the precious variables saved in the cache have kept the same
1549# value.
1550ac_cache_corrupted=false
Dan Gohmand02a2812009-03-24 23:47:11 +00001551for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001552 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1553 eval ac_new_set=\$ac_env_${ac_var}_set
Dan Gohmand02a2812009-03-24 23:47:11 +00001554 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1555 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001556 case $ac_old_set,$ac_new_set in
1557 set,)
1558 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1559echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1560 ac_cache_corrupted=: ;;
1561 ,set)
1562 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1563echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1564 ac_cache_corrupted=: ;;
1565 ,);;
1566 *)
1567 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001568 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001569echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001570 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001571echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001572 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001573echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001574 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001575 fi;;
1576 esac
1577 # Pass precious variables to config.status.
1578 if test "$ac_new_set" = set; then
1579 case $ac_new_val in
Dan Gohmand02a2812009-03-24 23:47:11 +00001580 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001581 *) ac_arg=$ac_var=$ac_new_val ;;
1582 esac
1583 case " $ac_configure_args " in
1584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1585 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1586 esac
1587 fi
1588done
1589if $ac_cache_corrupted; then
1590 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1591echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1592 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1593echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1594 { (exit 1); exit 1; }; }
1595fi
1596
Dan Gohmand02a2812009-03-24 23:47:11 +00001597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
John Criswell451f67f2003-10-16 01:45:35 +00001621ac_ext=c
1622ac_cpp='$CPP $CPPFLAGS'
1623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1625ac_compiler_gnu=$ac_cv_c_compiler_gnu
1626
1627
1628
Dan Gohmand02a2812009-03-24 23:47:11 +00001629LLVM_SRC_ROOT="../.."
1630LLVM_OBJ_ROOT="../.."
John Criswell451f67f2003-10-16 01:45:35 +00001631ac_aux_dir=
Dan Gohmand02a2812009-03-24 23:47:11 +00001632for ac_dir in $LLVM_SRC_ROOT/autoconf "$srcdir"/$LLVM_SRC_ROOT/autoconf; do
1633 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001634 ac_aux_dir=$ac_dir
1635 ac_install_sh="$ac_aux_dir/install-sh -c"
1636 break
Dan Gohmand02a2812009-03-24 23:47:11 +00001637 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001638 ac_aux_dir=$ac_dir
1639 ac_install_sh="$ac_aux_dir/install.sh -c"
1640 break
Dan Gohmand02a2812009-03-24 23:47:11 +00001641 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001642 ac_aux_dir=$ac_dir
1643 ac_install_sh="$ac_aux_dir/shtool install -c"
1644 break
1645 fi
1646done
1647if test -z "$ac_aux_dir"; then
Dan Gohmand02a2812009-03-24 23:47:11 +00001648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $LLVM_SRC_ROOT/autoconf \"$srcdir\"/$LLVM_SRC_ROOT/autoconf" >&5
1649echo "$as_me: error: cannot find install-sh or install.sh in $LLVM_SRC_ROOT/autoconf \"$srcdir\"/$LLVM_SRC_ROOT/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001650 { (exit 1); exit 1; }; }
1651fi
Dan Gohmand02a2812009-03-24 23:47:11 +00001652
1653# These three variables are undocumented and unsupported,
1654# and are intended to be withdrawn in a future Autoconf release.
1655# They can cause serious problems if a builder's source tree is in a directory
1656# whose full name contains unusual characters.
1657ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1658ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1659ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
John Criswell451f67f2003-10-16 01:45:35 +00001660
1661
Reid Spencer9964cd82005-01-01 09:26:55 +00001662
Dan Gohmand02a2812009-03-24 23:47:11 +00001663
1664# Check whether --with-llvmsrc was given.
Reid Spencer421ec052005-02-24 18:53:47 +00001665if test "${with_llvmsrc+set}" = set; then
Dan Gohmand02a2812009-03-24 23:47:11 +00001666 withval=$with_llvmsrc; llvm_src="$withval"
Reid Spencer421ec052005-02-24 18:53:47 +00001667else
Dan Gohmand02a2812009-03-24 23:47:11 +00001668 llvm_src="$LLVM_SRC_ROOT"
1669fi
1670
Reid Spencer421ec052005-02-24 18:53:47 +00001671 LLVM_SRC=$llvm_src
1672
1673
Dan Gohmand02a2812009-03-24 23:47:11 +00001674# Check whether --with-llvmobj was given.
Reid Spencer421ec052005-02-24 18:53:47 +00001675if test "${with_llvmobj+set}" = set; then
Dan Gohmand02a2812009-03-24 23:47:11 +00001676 withval=$with_llvmobj; llvm_obj="$withval"
Reid Spencer421ec052005-02-24 18:53:47 +00001677else
Dan Gohmand02a2812009-03-24 23:47:11 +00001678 llvm_obj="$LLVM_OBJ_ROOT"
1679fi
1680
Reid Spencer421ec052005-02-24 18:53:47 +00001681 LLVM_OBJ=$llvm_obj
1682
Dan Gohmand02a2812009-03-24 23:47:11 +00001683 ac_config_commands="$ac_config_commands setup"
Reid Spencer421ec052005-02-24 18:53:47 +00001684
1685
1686
1687
1688
Dan Gohmand02a2812009-03-24 23:47:11 +00001689ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +00001690
1691
Dan Gohmand02a2812009-03-24 23:47:11 +00001692ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001693
1694
Dan Gohmand02a2812009-03-24 23:47:11 +00001695ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001696
1697
Dan Gohmand02a2812009-03-24 23:47:11 +00001698ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001699
1700
Dan Gohmand02a2812009-03-24 23:47:11 +00001701ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001702
1703
Dan Gohmand02a2812009-03-24 23:47:11 +00001704ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +00001705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
John Criswell451f67f2003-10-16 01:45:35 +00001717cat >confcache <<\_ACEOF
1718# This file is a shell script that caches the results of configure
1719# tests run on this system so they can be shared between configure
1720# scripts and configure runs, see configure's option --config-cache.
1721# It is not useful on other systems. If it contains results you don't
1722# want to keep, you may remove or edit it.
1723#
1724# config.status only pays attention to the cache file if you give it
1725# the --recheck option to rerun configure.
1726#
1727# `ac_cv_env_foo' variables (set or unset) will be overridden when
1728# loading this file, other *unset* `ac_cv_foo' will be assigned the
1729# following values.
1730
1731_ACEOF
1732
1733# The following way of writing the cache mishandles newlines in values,
1734# but we know of no workaround that is simple, portable, and efficient.
Dan Gohmand02a2812009-03-24 23:47:11 +00001735# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +00001736# Ultrix sh set writes to stderr and can't be redirected directly,
1737# and sets the high bit in the cache file unless we assign to the vars.
Dan Gohmand02a2812009-03-24 23:47:11 +00001738(
1739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in #(
1742 *${as_nl}*)
1743 case $ac_var in #(
1744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1745echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1746 esac
1747 case $ac_var in #(
1748 _ | IFS | as_nl) ;; #(
1749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
1753
John Criswell451f67f2003-10-16 01:45:35 +00001754 (set) 2>&1 |
Dan Gohmand02a2812009-03-24 23:47:11 +00001755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1756 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001757 # `set' does not quote correctly, so add quotes (double-quote
1758 # substitution turns \\\\ into \\, and sed turns \\ into \).
1759 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +00001760 "s/'/'\\\\''/g;
1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Dan Gohmand02a2812009-03-24 23:47:11 +00001762 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +00001763 *)
1764 # `set' quotes correctly as required by POSIX, so do not add quotes.
Dan Gohmand02a2812009-03-24 23:47:11 +00001765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +00001766 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00001767 esac |
1768 sort
1769) |
John Criswell451f67f2003-10-16 01:45:35 +00001770 sed '
Dan Gohmand02a2812009-03-24 23:47:11 +00001771 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +00001772 t clear
Dan Gohmand02a2812009-03-24 23:47:11 +00001773 :clear
John Criswell451f67f2003-10-16 01:45:35 +00001774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1775 t end
Dan Gohmand02a2812009-03-24 23:47:11 +00001776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1777 :end' >>confcache
1778if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1779 if test -w "$cache_file"; then
1780 test "x$cache_file" != "x/dev/null" &&
1781 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
1782echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +00001783 cat confcache >$cache_file
1784 else
Dan Gohmand02a2812009-03-24 23:47:11 +00001785 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
1786echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +00001787 fi
1788fi
1789rm -f confcache
1790
1791test "x$prefix" = xNONE && prefix=$ac_default_prefix
1792# Let make expand exec_prefix.
1793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1794
John Criswell451f67f2003-10-16 01:45:35 +00001795# Transform confdefs.h into DEFS.
1796# Protect against shell expansion while executing Makefile rules.
1797# Protect against Makefile macro expansion.
1798#
1799# If the first sed substitution is executed (which looks for macros that
Dan Gohmand02a2812009-03-24 23:47:11 +00001800# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +00001801# look for a macro that doesn't take arguments.
Dan Gohmand02a2812009-03-24 23:47:11 +00001802ac_script='
John Criswell451f67f2003-10-16 01:45:35 +00001803t clear
Dan Gohmand02a2812009-03-24 23:47:11 +00001804:clear
1805s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +00001806t quote
Dan Gohmand02a2812009-03-24 23:47:11 +00001807s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +00001808t quote
Dan Gohmand02a2812009-03-24 23:47:11 +00001809b any
1810:quote
1811s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
1812s/\[/\\&/g
1813s/\]/\\&/g
1814s/\$/$$/g
1815H
1816:any
1817${
1818 g
1819 s/^\n//
1820 s/\n/ /g
1821 p
1822}
1823'
1824DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +00001825
1826
1827ac_libobjs=
1828ac_ltlibobjs=
1829for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1830 # 1. Remove the extension, and $U if already installed.
Dan Gohmand02a2812009-03-24 23:47:11 +00001831 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1832 ac_i=`echo "$ac_i" | sed "$ac_script"`
1833 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1834 # will be set to the directory where LIBOBJS objects are built.
1835 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1836 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +00001837done
1838LIBOBJS=$ac_libobjs
1839
1840LTLIBOBJS=$ac_ltlibobjs
1841
1842
1843
1844: ${CONFIG_STATUS=./config.status}
1845ac_clean_files_save=$ac_clean_files
1846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1847{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1848echo "$as_me: creating $CONFIG_STATUS" >&6;}
1849cat >$CONFIG_STATUS <<_ACEOF
1850#! $SHELL
1851# Generated by $as_me.
1852# Run this file to recreate the current configuration.
1853# Compiler output produced by configure, useful for debugging
1854# configure, is in config.log if it exists.
1855
1856debug=false
1857ac_cs_recheck=false
1858ac_cs_silent=false
1859SHELL=\${CONFIG_SHELL-$SHELL}
1860_ACEOF
1861
1862cat >>$CONFIG_STATUS <<\_ACEOF
1863## --------------------- ##
1864## M4sh Initialization. ##
1865## --------------------- ##
1866
Dan Gohmand02a2812009-03-24 23:47:11 +00001867# Be more Bourne compatible
1868DUALCASE=1; export DUALCASE # for MKS sh
John Criswell451f67f2003-10-16 01:45:35 +00001869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1870 emulate sh
1871 NULLCMD=:
1872 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1873 # is contrary to our usage. Disable this feature.
1874 alias -g '${1+"$@"}'='"$@"'
Dan Gohmand02a2812009-03-24 23:47:11 +00001875 setopt NO_GLOB_SUBST
John Criswell451f67f2003-10-16 01:45:35 +00001876else
Dan Gohmand02a2812009-03-24 23:47:11 +00001877 case `(set -o) 2>/dev/null` in
1878 *posix*) set -o posix ;;
1879esac
1880
John Criswell451f67f2003-10-16 01:45:35 +00001881fi
1882
1883
John Criswell451f67f2003-10-16 01:45:35 +00001884
1885
Dan Gohmand02a2812009-03-24 23:47:11 +00001886# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +00001887# Avoid depending upon Character Ranges.
1888as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1889as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1890as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1891as_cr_digits='0123456789'
1892as_cr_alnum=$as_cr_Letters$as_cr_digits
1893
1894# The user is always right.
1895if test "${PATH_SEPARATOR+set}" != set; then
1896 echo "#! /bin/sh" >conf$$.sh
1897 echo "exit 0" >>conf$$.sh
1898 chmod +x conf$$.sh
1899 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1900 PATH_SEPARATOR=';'
1901 else
1902 PATH_SEPARATOR=:
1903 fi
1904 rm -f conf$$.sh
1905fi
1906
Dan Gohmand02a2812009-03-24 23:47:11 +00001907# Support unset when possible.
1908if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1909 as_unset=unset
1910else
1911 as_unset=false
1912fi
John Criswell451f67f2003-10-16 01:45:35 +00001913
Dan Gohmand02a2812009-03-24 23:47:11 +00001914
1915# IFS
1916# We need space, tab and new line, in precisely that order. Quoting is
1917# there to prevent editors from complaining about space-tab.
1918# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1919# splitting by setting IFS to empty value.)
1920as_nl='
1921'
1922IFS=" "" $as_nl"
1923
1924# Find who we are. Look in the path if we contain no directory separator.
1925case $0 in
1926 *[\\/]* ) as_myself=$0 ;;
1927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +00001928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1933done
Dan Gohmand02a2812009-03-24 23:47:11 +00001934IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001935
Dan Gohmand02a2812009-03-24 23:47:11 +00001936 ;;
1937esac
1938# We did not find ourselves, most probably we were run as `sh COMMAND'
1939# in which case we are not to be found in the path.
1940if test "x$as_myself" = x; then
1941 as_myself=$0
1942fi
1943if test ! -f "$as_myself"; then
1944 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1945 { (exit 1); exit 1; }
1946fi
1947
1948# Work around bugs in pre-3.0 UWIN ksh.
1949for as_var in ENV MAIL MAILPATH
1950do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1951done
1952PS1='$ '
1953PS2='> '
1954PS4='+ '
1955
1956# NLS nuisances.
1957for as_var in \
1958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1960 LC_TELEPHONE LC_TIME
John Criswell451f67f2003-10-16 01:45:35 +00001961do
Dan Gohmand02a2812009-03-24 23:47:11 +00001962 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1963 eval $as_var=C; export $as_var
1964 else
1965 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1966 fi
1967done
1968
1969# Required to use basename.
1970if expr a : '\(a\)' >/dev/null 2>&1 &&
1971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1972 as_expr=expr
1973else
1974 as_expr=false
1975fi
1976
1977if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1978 as_basename=basename
1979else
1980 as_basename=false
1981fi
1982
1983
1984# Name of the executable.
1985as_me=`$as_basename -- "$0" ||
1986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1987 X"$0" : 'X\(//\)$' \| \
1988 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1989echo X/"$0" |
1990 sed '/^.*\/\([^/][^/]*\)\/*$/{
1991 s//\1/
1992 q
1993 }
1994 /^X\/\(\/\/\)$/{
1995 s//\1/
1996 q
1997 }
1998 /^X\/\(\/\).*/{
1999 s//\1/
2000 q
2001 }
2002 s/.*/./; q'`
2003
2004# CDPATH.
2005$as_unset CDPATH
2006
2007
2008
John Criswell451f67f2003-10-16 01:45:35 +00002009 as_lineno_1=$LINENO
2010 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +00002011 test "x$as_lineno_1" != "x$as_lineno_2" &&
Dan Gohmand02a2812009-03-24 23:47:11 +00002012 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +00002013
2014 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2015 # uniformly replaced by the line number. The first 'sed' inserts a
Dan Gohmand02a2812009-03-24 23:47:11 +00002016 # line-number line after each line using $LINENO; the second 'sed'
2017 # does the real work. The second script uses 'N' to pair each
2018 # line-number line with the line containing $LINENO, and appends
2019 # trailing '-' during substitution so that $LINENO is not a special
2020 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +00002021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Dan Gohmand02a2812009-03-24 23:47:11 +00002022 # scripts with optimization help from Paolo Bonzini. Blame Lee
2023 # E. McMahon (1931-1989) for sed's syntax. :-)
2024 sed -n '
2025 p
2026 /[$]LINENO/=
2027 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +00002028 sed '
Dan Gohmand02a2812009-03-24 23:47:11 +00002029 s/[$]LINENO.*/&-/
2030 t lineno
2031 b
2032 :lineno
John Criswell451f67f2003-10-16 01:45:35 +00002033 N
Dan Gohmand02a2812009-03-24 23:47:11 +00002034 :loop
2035 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +00002036 t loop
Dan Gohmand02a2812009-03-24 23:47:11 +00002037 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +00002038 ' >$as_me.lineno &&
Dan Gohmand02a2812009-03-24 23:47:11 +00002039 chmod +x "$as_me.lineno" ||
2040 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +00002041 { (exit 1); exit 1; }; }
2042
2043 # Don't try to exec as it changes $[0], causing all sort of problems
2044 # (the dirname of $[0] is not the place where we might find the
Dan Gohmand02a2812009-03-24 23:47:11 +00002045 # original and so on. Autoconf is especially sensitive to this).
2046 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +00002047 # Exit status is that of the last command.
2048 exit
2049}
2050
2051
Dan Gohmand02a2812009-03-24 23:47:11 +00002052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2053 as_dirname=dirname
2054else
2055 as_dirname=false
2056fi
2057
2058ECHO_C= ECHO_N= ECHO_T=
2059case `echo -n x` in
2060-n*)
2061 case `echo 'x\c'` in
2062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2063 *) ECHO_C='\c';;
2064 esac;;
2065*)
2066 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +00002067esac
2068
Dan Gohmand02a2812009-03-24 23:47:11 +00002069if expr a : '\(a\)' >/dev/null 2>&1 &&
2070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +00002071 as_expr=expr
2072else
2073 as_expr=false
2074fi
2075
2076rm -f conf$$ conf$$.exe conf$$.file
Dan Gohmand02a2812009-03-24 23:47:11 +00002077if test -d conf$$.dir; then
2078 rm -f conf$$.dir/conf$$.file
2079else
2080 rm -f conf$$.dir
2081 mkdir conf$$.dir
2082fi
John Criswell451f67f2003-10-16 01:45:35 +00002083echo >conf$$.file
2084if ln -s conf$$.file conf$$ 2>/dev/null; then
Dan Gohmand02a2812009-03-24 23:47:11 +00002085 as_ln_s='ln -s'
2086 # ... but there are two gotchas:
2087 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2088 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2089 # In both cases, we have to default to `cp -p'.
2090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +00002091 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +00002092elif ln conf$$.file conf$$ 2>/dev/null; then
2093 as_ln_s=ln
2094else
2095 as_ln_s='cp -p'
2096fi
Dan Gohmand02a2812009-03-24 23:47:11 +00002097rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2098rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +00002099
2100if mkdir -p . 2>/dev/null; then
2101 as_mkdir_p=:
2102else
Reid Spencer9964cd82005-01-01 09:26:55 +00002103 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +00002104 as_mkdir_p=false
2105fi
2106
Dan Gohmand02a2812009-03-24 23:47:11 +00002107if test -x / >/dev/null 2>&1; then
2108 as_test_x='test -x'
2109else
2110 if ls -dL / >/dev/null 2>&1; then
2111 as_ls_L_option=L
2112 else
2113 as_ls_L_option=
2114 fi
2115 as_test_x='
2116 eval sh -c '\''
2117 if test -d "$1"; then
2118 test -d "$1/.";
2119 else
2120 case $1 in
2121 -*)set "./$1";;
2122 esac;
2123 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2124 ???[sx]*):;;*)false;;esac;fi
2125 '\'' sh
2126 '
2127fi
2128as_executable_p=$as_test_x
John Criswell451f67f2003-10-16 01:45:35 +00002129
2130# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +00002131as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +00002132
2133# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +00002134as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +00002135
2136
John Criswell451f67f2003-10-16 01:45:35 +00002137exec 6>&1
2138
Dan Gohmand02a2812009-03-24 23:47:11 +00002139# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +00002140# report actual input values of CONFIG_FILES etc. instead of their
Dan Gohmand02a2812009-03-24 23:47:11 +00002141# values after options handling.
2142ac_log="
John Criswell451f67f2003-10-16 01:45:35 +00002143This file was extended by [SAMPLE] $as_me [x.xx], which was
Dan Gohmand02a2812009-03-24 23:47:11 +00002144generated by GNU Autoconf 2.61. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00002145
2146 CONFIG_FILES = $CONFIG_FILES
2147 CONFIG_HEADERS = $CONFIG_HEADERS
2148 CONFIG_LINKS = $CONFIG_LINKS
2149 CONFIG_COMMANDS = $CONFIG_COMMANDS
2150 $ $0 $@
2151
Dan Gohmand02a2812009-03-24 23:47:11 +00002152on `(hostname || uname -n) 2>/dev/null | sed 1q`
2153"
2154
John Criswell451f67f2003-10-16 01:45:35 +00002155_ACEOF
2156
Dan Gohmand02a2812009-03-24 23:47:11 +00002157cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002158# Files that config.status was made for.
Dan Gohmand02a2812009-03-24 23:47:11 +00002159config_files="$ac_config_files"
2160config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +00002161
Dan Gohmand02a2812009-03-24 23:47:11 +00002162_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002163
2164cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002165ac_cs_usage="\
2166\`$as_me' instantiates files from templates according to the
2167current configuration.
2168
2169Usage: $0 [OPTIONS] [FILE]...
2170
2171 -h, --help print this help, then exit
Dan Gohmand02a2812009-03-24 23:47:11 +00002172 -V, --version print version number and configuration settings, then exit
John Criswell451f67f2003-10-16 01:45:35 +00002173 -q, --quiet do not print progress messages
2174 -d, --debug don't remove temporary files
2175 --recheck update $as_me by reconfiguring in the same conditions
2176 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +00002177 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +00002178
2179Configuration files:
2180$config_files
2181
2182Configuration commands:
2183$config_commands
2184
2185Report bugs to <bug-autoconf@gnu.org>."
John Criswell451f67f2003-10-16 01:45:35 +00002186
Dan Gohmand02a2812009-03-24 23:47:11 +00002187_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002188cat >>$CONFIG_STATUS <<_ACEOF
2189ac_cs_version="\\
2190[SAMPLE] config.status [x.xx]
Dan Gohmand02a2812009-03-24 23:47:11 +00002191configured by $0, generated by GNU Autoconf 2.61,
2192 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +00002193
Dan Gohmand02a2812009-03-24 23:47:11 +00002194Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00002195This config.status script is free software; the Free Software Foundation
2196gives unlimited permission to copy, distribute and modify it."
Dan Gohmand02a2812009-03-24 23:47:11 +00002197
2198ac_pwd='$ac_pwd'
2199srcdir='$srcdir'
John Criswell451f67f2003-10-16 01:45:35 +00002200_ACEOF
2201
2202cat >>$CONFIG_STATUS <<\_ACEOF
2203# If no file are specified by the user, then we need to provide default
2204# value. By we need to know if files were specified by the user.
2205ac_need_defaults=:
2206while test $# != 0
2207do
2208 case $1 in
2209 --*=*)
Dan Gohmand02a2812009-03-24 23:47:11 +00002210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2211 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +00002212 ac_shift=:
2213 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00002214 *)
John Criswell451f67f2003-10-16 01:45:35 +00002215 ac_option=$1
2216 ac_optarg=$2
2217 ac_shift=shift
2218 ;;
John Criswell451f67f2003-10-16 01:45:35 +00002219 esac
2220
2221 case $ac_option in
2222 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +00002223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2224 ac_cs_recheck=: ;;
Dan Gohmand02a2812009-03-24 23:47:11 +00002225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2226 echo "$ac_cs_version"; exit ;;
2227 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +00002228 debug=: ;;
2229 --file | --fil | --fi | --f )
2230 $ac_shift
2231 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2232 ac_need_defaults=false;;
Dan Gohmand02a2812009-03-24 23:47:11 +00002233 --he | --h | --help | --hel | -h )
2234 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +00002235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2237 ac_cs_silent=: ;;
2238
2239 # This is an error.
Dan Gohmand02a2812009-03-24 23:47:11 +00002240 -*) { echo "$as_me: error: unrecognized option: $1
2241Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +00002242 { (exit 1); exit 1; }; } ;;
2243
Dan Gohmand02a2812009-03-24 23:47:11 +00002244 *) ac_config_targets="$ac_config_targets $1"
2245 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +00002246
2247 esac
2248 shift
2249done
2250
2251ac_configure_extra_args=
2252
2253if $ac_cs_silent; then
2254 exec 6>/dev/null
2255 ac_configure_extra_args="$ac_configure_extra_args --silent"
2256fi
2257
2258_ACEOF
2259cat >>$CONFIG_STATUS <<_ACEOF
2260if \$ac_cs_recheck; then
Dan Gohmand02a2812009-03-24 23:47:11 +00002261 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2262 CONFIG_SHELL=$SHELL
2263 export CONFIG_SHELL
2264 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +00002265fi
2266
2267_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00002268cat >>$CONFIG_STATUS <<\_ACEOF
2269exec 5>>config.log
2270{
2271 echo
2272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2273## Running $as_me. ##
2274_ASBOX
2275 echo "$ac_log"
2276} >&5
John Criswell451f67f2003-10-16 01:45:35 +00002277
Dan Gohmand02a2812009-03-24 23:47:11 +00002278_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002279cat >>$CONFIG_STATUS <<_ACEOF
2280#
Dan Gohmand02a2812009-03-24 23:47:11 +00002281# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +00002282#
Reid Spencer421ec052005-02-24 18:53:47 +00002283llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +00002284
2285_ACEOF
2286
John Criswell451f67f2003-10-16 01:45:35 +00002287cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00002288
2289# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +00002290for ac_config_target in $ac_config_targets
2291do
Dan Gohmand02a2812009-03-24 23:47:11 +00002292 case $ac_config_target in
2293 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
2294 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
2295 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
2296 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
2297 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
2298 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
2299 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
2300
John Criswell451f67f2003-10-16 01:45:35 +00002301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2302echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2303 { (exit 1); exit 1; }; };;
2304 esac
2305done
2306
Dan Gohmand02a2812009-03-24 23:47:11 +00002307
John Criswell451f67f2003-10-16 01:45:35 +00002308# If the user did not use the arguments to specify the items to instantiate,
2309# then the envvar interface is used. Set only those that are not.
2310# We use the long form for the default assignment because of an extremely
2311# bizarre bug on SunOS 4.1.3.
2312if $ac_need_defaults; then
2313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2315fi
2316
2317# Have a temporary directory for convenience. Make it in the build tree
Dan Gohmand02a2812009-03-24 23:47:11 +00002318# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +00002319# creating and moving files from /tmp can sometimes cause problems.
Dan Gohmand02a2812009-03-24 23:47:11 +00002320# Hook for its removal unless debugging.
2321# Note that there is a small window in which the directory will not be cleaned:
2322# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +00002323$debug ||
2324{
Dan Gohmand02a2812009-03-24 23:47:11 +00002325 tmp=
2326 trap 'exit_status=$?
2327 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2328' 0
John Criswell451f67f2003-10-16 01:45:35 +00002329 trap '{ (exit 1); exit 1; }' 1 2 13 15
2330}
John Criswell451f67f2003-10-16 01:45:35 +00002331# Create a (secure) tmp directory for tmp files.
2332
2333{
Dan Gohmand02a2812009-03-24 23:47:11 +00002334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +00002335 test -n "$tmp" && test -d "$tmp"
2336} ||
2337{
Dan Gohmand02a2812009-03-24 23:47:11 +00002338 tmp=./conf$$-$RANDOM
2339 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +00002340} ||
2341{
2342 echo "$me: cannot create a temporary directory in ." >&2
2343 { (exit 1); exit 1; }
2344}
2345
John Criswell451f67f2003-10-16 01:45:35 +00002346#
Dan Gohmand02a2812009-03-24 23:47:11 +00002347# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +00002348#
2349
2350# No need to generate the scripts if there are no CONFIG_FILES.
2351# This happens for instance when ./config.status config.h
Dan Gohmand02a2812009-03-24 23:47:11 +00002352if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +00002353
2354_ACEOF
2355
Dan Gohmand02a2812009-03-24 23:47:11 +00002356
2357
2358ac_delim='%!_!# '
2359for ac_last_try in false false false false false :; do
2360 cat >conf$$subs.sed <<_ACEOF
2361SHELL!$SHELL$ac_delim
2362PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
2363PACKAGE_NAME!$PACKAGE_NAME$ac_delim
2364PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
2365PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
2366PACKAGE_STRING!$PACKAGE_STRING$ac_delim
2367PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
2368exec_prefix!$exec_prefix$ac_delim
2369prefix!$prefix$ac_delim
2370program_transform_name!$program_transform_name$ac_delim
2371bindir!$bindir$ac_delim
2372sbindir!$sbindir$ac_delim
2373libexecdir!$libexecdir$ac_delim
2374datarootdir!$datarootdir$ac_delim
2375datadir!$datadir$ac_delim
2376sysconfdir!$sysconfdir$ac_delim
2377sharedstatedir!$sharedstatedir$ac_delim
2378localstatedir!$localstatedir$ac_delim
2379includedir!$includedir$ac_delim
2380oldincludedir!$oldincludedir$ac_delim
2381docdir!$docdir$ac_delim
2382infodir!$infodir$ac_delim
2383htmldir!$htmldir$ac_delim
2384dvidir!$dvidir$ac_delim
2385pdfdir!$pdfdir$ac_delim
2386psdir!$psdir$ac_delim
2387libdir!$libdir$ac_delim
2388localedir!$localedir$ac_delim
2389mandir!$mandir$ac_delim
2390DEFS!$DEFS$ac_delim
2391ECHO_C!$ECHO_C$ac_delim
2392ECHO_N!$ECHO_N$ac_delim
2393ECHO_T!$ECHO_T$ac_delim
2394LIBS!$LIBS$ac_delim
2395build_alias!$build_alias$ac_delim
2396host_alias!$host_alias$ac_delim
2397target_alias!$target_alias$ac_delim
2398LLVM_SRC!$LLVM_SRC$ac_delim
2399LLVM_OBJ!$LLVM_OBJ$ac_delim
2400LIBOBJS!$LIBOBJS$ac_delim
2401LTLIBOBJS!$LTLIBOBJS$ac_delim
2402_ACEOF
2403
2404 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
2405 break
2406 elif $ac_last_try; then
2407 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2408echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2409 { (exit 1); exit 1; }; }
2410 else
2411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +00002412 fi
Dan Gohmand02a2812009-03-24 23:47:11 +00002413done
2414
2415ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
2416if test -n "$ac_eof"; then
2417 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
2418 ac_eof=`expr $ac_eof + 1`
2419fi
2420
2421cat >>$CONFIG_STATUS <<_ACEOF
2422cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
2423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
2424_ACEOF
2425sed '
2426s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2427s/^/s,@/; s/!/@,|#_!!_#|/
2428:n
2429t n
2430s/'"$ac_delim"'$/,g/; t
2431s/$/\\/; p
2432N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
2433' >>$CONFIG_STATUS <conf$$subs.sed
2434rm -f conf$$subs.sed
2435cat >>$CONFIG_STATUS <<_ACEOF
2436:end
2437s/|#_!!_#|//g
2438CEOF$ac_eof
2439_ACEOF
2440
2441
2442# VPATH may cause trouble with some makes, so we remove $(srcdir),
2443# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2444# trailing colons and then remove the whole line if VPATH becomes empty
2445# (actually we leave an empty line to preserve line numbers).
2446if test "x$srcdir" = x.; then
2447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2448s/:*\$(srcdir):*/:/
2449s/:*\${srcdir}:*/:/
2450s/:*@srcdir@:*/:/
2451s/^\([^=]*=[ ]*\):*/\1/
2452s/:*$//
2453s/^[^=]*=[ ]*$//
2454}'
2455fi
2456
2457cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00002458fi # test -n "$CONFIG_FILES"
2459
Dan Gohmand02a2812009-03-24 23:47:11 +00002460
2461for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
2462do
2463 case $ac_tag in
2464 :[FHLC]) ac_mode=$ac_tag; continue;;
2465 esac
2466 case $ac_mode$ac_tag in
2467 :[FHL]*:*);;
2468 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
2469echo "$as_me: error: Invalid tag $ac_tag." >&2;}
2470 { (exit 1); exit 1; }; };;
2471 :[FH]-) ac_tag=-:-;;
2472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2473 esac
2474 ac_save_IFS=$IFS
2475 IFS=:
2476 set x $ac_tag
2477 IFS=$ac_save_IFS
2478 shift
2479 ac_file=$1
2480 shift
2481
2482 case $ac_mode in
2483 :L) ac_source=$1;;
2484 :[FH])
2485 ac_file_inputs=
2486 for ac_f
2487 do
2488 case $ac_f in
2489 -) ac_f="$tmp/stdin";;
2490 *) # Look for the file first in the build tree, then in the source tree
2491 # (if the path is not absolute). The absolute path cannot be DOS-style,
2492 # because $ac_f cannot contain `:'.
2493 test -f "$ac_f" ||
2494 case $ac_f in
2495 [\\/$]*) false;;
2496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2497 esac ||
2498 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2499echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2500 { (exit 1); exit 1; }; };;
2501 esac
2502 ac_file_inputs="$ac_file_inputs $ac_f"
2503 done
2504
2505 # Let's still pretend it is `configure' which instantiates (i.e., don't
2506 # use $as_me), people would be surprised to read:
2507 # /* config.h. Generated by config.status. */
2508 configure_input="Generated from "`IFS=:
2509 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
2510 if test x"$ac_file" != x-; then
2511 configure_input="$ac_file. $configure_input"
2512 { echo "$as_me:$LINENO: creating $ac_file" >&5
2513echo "$as_me: creating $ac_file" >&6;}
2514 fi
2515
2516 case $ac_tag in
2517 *:-:* | *:-) cat >"$tmp/stdin";;
2518 esac
2519 ;;
John Criswell451f67f2003-10-16 01:45:35 +00002520 esac
2521
Dan Gohmand02a2812009-03-24 23:47:11 +00002522 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +00002523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00002524 X"$ac_file" : 'X\(//\)[^/]' \| \
2525 X"$ac_file" : 'X\(//\)$' \| \
Dan Gohmand02a2812009-03-24 23:47:11 +00002526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00002527echo X"$ac_file" |
Dan Gohmand02a2812009-03-24 23:47:11 +00002528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2529 s//\1/
2530 q
2531 }
2532 /^X\(\/\/\)[^/].*/{
2533 s//\1/
2534 q
2535 }
2536 /^X\(\/\/\)$/{
2537 s//\1/
2538 q
2539 }
2540 /^X\(\/\).*/{
2541 s//\1/
2542 q
2543 }
2544 s/.*/./; q'`
2545 { as_dir="$ac_dir"
2546 case $as_dir in #(
2547 -*) as_dir=./$as_dir;;
2548 esac
2549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +00002550 as_dirs=
Dan Gohmand02a2812009-03-24 23:47:11 +00002551 while :; do
2552 case $as_dir in #(
2553 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
2554 *) as_qdir=$as_dir;;
2555 esac
2556 as_dirs="'$as_qdir' $as_dirs"
2557 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +00002558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00002559 X"$as_dir" : 'X\(//\)[^/]' \| \
2560 X"$as_dir" : 'X\(//\)$' \| \
Dan Gohmand02a2812009-03-24 23:47:11 +00002561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00002562echo X"$as_dir" |
Dan Gohmand02a2812009-03-24 23:47:11 +00002563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2564 s//\1/
2565 q
2566 }
2567 /^X\(\/\/\)[^/].*/{
2568 s//\1/
2569 q
2570 }
2571 /^X\(\/\/\)$/{
2572 s//\1/
2573 q
2574 }
2575 /^X\(\/\).*/{
2576 s//\1/
2577 q
2578 }
2579 s/.*/./; q'`
2580 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +00002581 done
Dan Gohmand02a2812009-03-24 23:47:11 +00002582 test -z "$as_dirs" || eval "mkdir $as_dirs"
2583 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2584echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00002585 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +00002586 ac_builddir=.
2587
Dan Gohmand02a2812009-03-24 23:47:11 +00002588case "$ac_dir" in
2589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2590*)
John Criswell451f67f2003-10-16 01:45:35 +00002591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmand02a2812009-03-24 23:47:11 +00002592 # A ".." for each directory in $ac_dir_suffix.
2593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2594 case $ac_top_builddir_sub in
2595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2597 esac ;;
2598esac
2599ac_abs_top_builddir=$ac_pwd
2600ac_abs_builddir=$ac_pwd$ac_dir_suffix
2601# for backward compatibility:
2602ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00002603
2604case $srcdir in
Dan Gohmand02a2812009-03-24 23:47:11 +00002605 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00002606 ac_srcdir=.
Dan Gohmand02a2812009-03-24 23:47:11 +00002607 ac_top_srcdir=$ac_top_builddir_sub
2608 ac_abs_top_srcdir=$ac_pwd ;;
2609 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00002610 ac_srcdir=$srcdir$ac_dir_suffix;
Dan Gohmand02a2812009-03-24 23:47:11 +00002611 ac_top_srcdir=$srcdir
2612 ac_abs_top_srcdir=$srcdir ;;
2613 *) # Relative name.
2614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2615 ac_top_srcdir=$ac_top_build_prefix$srcdir
2616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00002617esac
Dan Gohmand02a2812009-03-24 23:47:11 +00002618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell451f67f2003-10-16 01:45:35 +00002619
2620
Dan Gohmand02a2812009-03-24 23:47:11 +00002621 case $ac_mode in
2622 :F)
2623 #
2624 # CONFIG_FILE
2625 #
John Criswell451f67f2003-10-16 01:45:35 +00002626
John Criswell451f67f2003-10-16 01:45:35 +00002627_ACEOF
Dan Gohmand02a2812009-03-24 23:47:11 +00002628
2629cat >>$CONFIG_STATUS <<\_ACEOF
2630# If the template does not know about datarootdir, expand it.
2631# FIXME: This hack should be removed a few years after 2.60.
2632ac_datarootdir_hack=; ac_datarootdir_seen=
2633
2634case `sed -n '/datarootdir/ {
2635 p
2636 q
2637}
2638/@datadir@/p
2639/@docdir@/p
2640/@infodir@/p
2641/@localedir@/p
2642/@mandir@/p
2643' $ac_file_inputs` in
2644*datarootdir*) ac_datarootdir_seen=yes;;
2645*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2646 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2647echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2648_ACEOF
2649cat >>$CONFIG_STATUS <<_ACEOF
2650 ac_datarootdir_hack='
2651 s&@datadir@&$datadir&g
2652 s&@docdir@&$docdir&g
2653 s&@infodir@&$infodir&g
2654 s&@localedir@&$localedir&g
2655 s&@mandir@&$mandir&g
2656 s&\\\${datarootdir}&$datarootdir&g' ;;
2657esac
2658_ACEOF
2659
2660# Neutralize VPATH when `$srcdir' = `.'.
2661# Shell code in configure.ac might set extrasub.
2662# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +00002663cat >>$CONFIG_STATUS <<_ACEOF
2664 sed "$ac_vpsub
2665$extrasub
2666_ACEOF
2667cat >>$CONFIG_STATUS <<\_ACEOF
2668:t
2669/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmand02a2812009-03-24 23:47:11 +00002670s&@configure_input@&$configure_input&;t t
2671s&@top_builddir@&$ac_top_builddir_sub&;t t
2672s&@srcdir@&$ac_srcdir&;t t
2673s&@abs_srcdir@&$ac_abs_srcdir&;t t
2674s&@top_srcdir@&$ac_top_srcdir&;t t
2675s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2676s&@builddir@&$ac_builddir&;t t
2677s&@abs_builddir@&$ac_abs_builddir&;t t
2678s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2679$ac_datarootdir_hack
2680" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +00002681
Dan Gohmand02a2812009-03-24 23:47:11 +00002682test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2683 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2685 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2686which seems to be undefined. Please make sure it is defined." >&5
2687echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2688which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00002689
Dan Gohmand02a2812009-03-24 23:47:11 +00002690 rm -f "$tmp/stdin"
2691 case $ac_file in
2692 -) cat "$tmp/out"; rm -f "$tmp/out";;
2693 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell451f67f2003-10-16 01:45:35 +00002694 esac
Dan Gohmand02a2812009-03-24 23:47:11 +00002695 ;;
John Criswell451f67f2003-10-16 01:45:35 +00002696
Dan Gohmand02a2812009-03-24 23:47:11 +00002697
2698 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
2699echo "$as_me: executing $ac_file commands" >&6;}
2700 ;;
2701 esac
2702
2703
2704 case $ac_file$ac_mode in
2705 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
2706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
2707 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
2708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
2709 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
2710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
2711 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
2712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
2713 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
2714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
2715
2716 esac
2717done # for ac_tag
2718
John Criswell451f67f2003-10-16 01:45:35 +00002719
2720{ (exit 0); exit 0; }
2721_ACEOF
2722chmod +x $CONFIG_STATUS
2723ac_clean_files=$ac_clean_files_save
2724
2725
2726# configure is writing to config.log, and then calls config.status.
2727# config.status does its own redirection, appending to config.log.
2728# Unfortunately, on DOS this fails, as config.log is still kept open
2729# by configure, so config.status won't be able to write to it; its
2730# output is simply discarded. So we exec the FD to /dev/null,
2731# effectively closing config.log, so it can be properly (re)opened and
2732# appended to by config.status. When coming back to configure, we
2733# need to make the FD available again.
2734if test "$no_create" != yes; then
2735 ac_cs_success=:
2736 ac_config_status_args=
2737 test "$silent" = yes &&
2738 ac_config_status_args="$ac_config_status_args --quiet"
2739 exec 5>/dev/null
2740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2741 exec 5>>config.log
2742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2743 # would make configure fail if this is the last instruction.
2744 $ac_cs_success || { (exit 1); exit 1; }
2745fi
2746