comparison configure @ 1263:be2ef50780ed

Support HTTP caching of app.js
author Adam Chlipala <adamc@hcoop.net>
date Sun, 23 May 2010 11:52:13 -0400
parents 7a17588edbff
children 855c5adafc2d
comparison
equal deleted inserted replaced
1262:003df929ee08 1263:be2ef50780ed
10998 10998
10999 # Only expand once: 10999 # Only expand once:
11000 11000
11001 11001
11002 11002
11003 ac_config_headers="$ac_config_headers config.h"
11004
11003 11005
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash_get_block_size in -lmhash" >&5 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash_get_block_size in -lmhash" >&5
11005 $as_echo_n "checking for mhash_get_block_size in -lmhash... " >&6; } 11007 $as_echo_n "checking for mhash_get_block_size in -lmhash... " >&6; }
11006 if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then : 11008 if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then :
11007 $as_echo_n "(cached) " >&6 11009 $as_echo_n "(cached) " >&6
11292 11294
11293 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11294 # Let make expand exec_prefix. 11296 # Let make expand exec_prefix.
11295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11296 11298
11297 # Transform confdefs.h into DEFS. 11299 DEFS=-DHAVE_CONFIG_H
11298 # Protect against shell expansion while executing Makefile rules.
11299 # Protect against Makefile macro expansion.
11300 #
11301 # If the first sed substitution is executed (which looks for macros that
11302 # take arguments), then branch to the quote section. Otherwise,
11303 # look for a macro that doesn't take arguments.
11304 ac_script='
11305 :mline
11306 /\\$/{
11307 N
11308 s,\\\n,,
11309 b mline
11310 }
11311 t clear
11312 :clear
11313 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11314 t quote
11315 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11316 t quote
11317 b any
11318 :quote
11319 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11320 s/\[/\\&/g
11321 s/\]/\\&/g
11322 s/\$/$$/g
11323 H
11324 :any
11325 ${
11326 g
11327 s/^\n//
11328 s/\n/ /g
11329 p
11330 }
11331 '
11332 DEFS=`sed -n "$ac_script" confdefs.h`
11333
11334 11300
11335 ac_libobjs= 11301 ac_libobjs=
11336 ac_ltlibobjs= 11302 ac_ltlibobjs=
11337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11338 # 1. Remove the extension, and $U if already installed. 11304 # 1. Remove the extension, and $U if already installed.
11788 11754
11789 case $ac_config_files in *" 11755 case $ac_config_files in *"
11790 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11756 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11791 esac 11757 esac
11792 11758
11759 case $ac_config_headers in *"
11760 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11761 esac
11793 11762
11794 11763
11795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11796 # Files that config.status was made for. 11765 # Files that config.status was made for.
11797 config_files="$ac_config_files" 11766 config_files="$ac_config_files"
11767 config_headers="$ac_config_headers"
11798 config_commands="$ac_config_commands" 11768 config_commands="$ac_config_commands"
11799 11769
11800 _ACEOF 11770 _ACEOF
11801 11771
11802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11814 do not print progress messages 11784 do not print progress messages
11815 -d, --debug don't remove temporary files 11785 -d, --debug don't remove temporary files
11816 --recheck update $as_me by reconfiguring in the same conditions 11786 --recheck update $as_me by reconfiguring in the same conditions
11817 --file=FILE[:TEMPLATE] 11787 --file=FILE[:TEMPLATE]
11818 instantiate the configuration file FILE 11788 instantiate the configuration file FILE
11789 --header=FILE[:TEMPLATE]
11790 instantiate the configuration header FILE
11819 11791
11820 Configuration files: 11792 Configuration files:
11821 $config_files 11793 $config_files
11794
11795 Configuration headers:
11796 $config_headers
11822 11797
11823 Configuration commands: 11798 Configuration commands:
11824 $config_commands 11799 $config_commands
11825 11800
11826 Report bugs to the package provider." 11801 Report bugs to the package provider."
11878 case $ac_optarg in 11853 case $ac_optarg in
11879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11880 esac 11855 esac
11881 as_fn_append CONFIG_FILES " '$ac_optarg'" 11856 as_fn_append CONFIG_FILES " '$ac_optarg'"
11882 ac_need_defaults=false;; 11857 ac_need_defaults=false;;
11883 --he | --h | --help | --hel | -h ) 11858 --header | --heade | --head | --hea )
11859 $ac_shift
11860 case $ac_optarg in
11861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11862 esac
11863 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11864 ac_need_defaults=false;;
11865 --he | --h)
11866 # Conflict between --help and --header
11867 as_fn_error "ambiguous option: \`$1'
11868 Try \`$0 --help' for more information.";;
11869 --help | --hel | -h )
11884 $as_echo "$ac_cs_usage"; exit ;; 11870 $as_echo "$ac_cs_usage"; exit ;;
11885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11886 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11887 ac_cs_silent=: ;; 11873 ac_cs_silent=: ;;
11888 11874
12196 for ac_config_target in $ac_config_targets 12182 for ac_config_target in $ac_config_targets
12197 do 12183 do
12198 case $ac_config_target in 12184 case $ac_config_target in
12199 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12185 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12186 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12187 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12202 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;; 12189 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
12203 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;; 12190 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
12204 12191
12205 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12192 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12211 # then the envvar interface is used. Set only those that are not. 12198 # then the envvar interface is used. Set only those that are not.
12212 # We use the long form for the default assignment because of an extremely 12199 # We use the long form for the default assignment because of an extremely
12213 # bizarre bug on SunOS 4.1.3. 12200 # bizarre bug on SunOS 4.1.3.
12214 if $ac_need_defaults; then 12201 if $ac_need_defaults; then
12215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12203 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12217 fi 12205 fi
12218 12206
12219 # Have a temporary directory for convenience. Make it in the build tree 12207 # Have a temporary directory for convenience. Make it in the build tree
12220 # simply because there is no reason against having it here, and in addition, 12208 # simply because there is no reason against having it here, and in addition,
12389 fi 12377 fi
12390 12378
12391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12392 fi # test -n "$CONFIG_FILES" 12380 fi # test -n "$CONFIG_FILES"
12393 12381
12394 12382 # Set up the scripts for CONFIG_HEADERS section.
12395 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12383 # No need to generate them if there are no CONFIG_HEADERS.
12384 # This happens for instance with `./config.status Makefile'.
12385 if test -n "$CONFIG_HEADERS"; then
12386 cat >"$tmp/defines.awk" <<\_ACAWK ||
12387 BEGIN {
12388 _ACEOF
12389
12390 # Transform confdefs.h into an awk script `defines.awk', embedded as
12391 # here-document in config.status, that substitutes the proper values into
12392 # config.h.in to produce config.h.
12393
12394 # Create a delimiter string that does not exist in confdefs.h, to ease
12395 # handling of long lines.
12396 ac_delim='%!_!# '
12397 for ac_last_try in false false :; do
12398 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12399 if test -z "$ac_t"; then
12400 break
12401 elif $ac_last_try; then
12402 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12403 else
12404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12405 fi
12406 done
12407
12408 # For the awk script, D is an array of macro values keyed by name,
12409 # likewise P contains macro parameters if any. Preserve backslash
12410 # newline sequences.
12411
12412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12413 sed -n '
12414 s/.\{148\}/&'"$ac_delim"'/g
12415 t rset
12416 :rset
12417 s/^[ ]*#[ ]*define[ ][ ]*/ /
12418 t def
12419 d
12420 :def
12421 s/\\$//
12422 t bsnl
12423 s/["\\]/\\&/g
12424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12425 D["\1"]=" \3"/p
12426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12427 d
12428 :bsnl
12429 s/["\\]/\\&/g
12430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12431 D["\1"]=" \3\\\\\\n"\\/p
12432 t cont
12433 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12434 t cont
12435 d
12436 :cont
12437 n
12438 s/.\{148\}/&'"$ac_delim"'/g
12439 t clear
12440 :clear
12441 s/\\$//
12442 t bsnlc
12443 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12444 d
12445 :bsnlc
12446 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12447 b cont
12448 ' <confdefs.h | sed '
12449 s/'"$ac_delim"'/"\\\
12450 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12451
12452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12453 for (key in D) D_is_set[key] = 1
12454 FS = ""
12455 }
12456 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12457 line = \$ 0
12458 split(line, arg, " ")
12459 if (arg[1] == "#") {
12460 defundef = arg[2]
12461 mac1 = arg[3]
12462 } else {
12463 defundef = substr(arg[1], 2)
12464 mac1 = arg[2]
12465 }
12466 split(mac1, mac2, "(") #)
12467 macro = mac2[1]
12468 prefix = substr(line, 1, index(line, defundef) - 1)
12469 if (D_is_set[macro]) {
12470 # Preserve the white space surrounding the "#".
12471 print prefix "define", macro P[macro] D[macro]
12472 next
12473 } else {
12474 # Replace #undef with comments. This is necessary, for example,
12475 # in the case of _POSIX_SOURCE, which is predefined and required
12476 # on some systems where configure will not decide to define it.
12477 if (defundef == "undef") {
12478 print "/*", prefix defundef, macro, "*/"
12479 next
12480 }
12481 }
12482 }
12483 { print }
12484 _ACAWK
12485 _ACEOF
12486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12488 fi # test -n "$CONFIG_HEADERS"
12489
12490
12491 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12396 shift 12492 shift
12397 for ac_tag 12493 for ac_tag
12398 do 12494 do
12399 case $ac_tag in 12495 case $ac_tag in
12400 :[FHLC]) ac_mode=$ac_tag; continue;; 12496 :[FHLC]) ac_mode=$ac_tag; continue;;
12608 -) cat "$tmp/out" && rm -f "$tmp/out";; 12704 -) cat "$tmp/out" && rm -f "$tmp/out";;
12609 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12705 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12610 esac \ 12706 esac \
12611 || as_fn_error "could not create $ac_file" "$LINENO" 5 12707 || as_fn_error "could not create $ac_file" "$LINENO" 5
12612 ;; 12708 ;;
12613 12709 :H)
12710 #
12711 # CONFIG_HEADER
12712 #
12713 if test x"$ac_file" != x-; then
12714 {
12715 $as_echo "/* $configure_input */" \
12716 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12717 } >"$tmp/config.h" \
12718 || as_fn_error "could not create $ac_file" "$LINENO" 5
12719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12722 else
12723 rm -f "$ac_file"
12724 mv "$tmp/config.h" "$ac_file" \
12725 || as_fn_error "could not create $ac_file" "$LINENO" 5
12726 fi
12727 else
12728 $as_echo "/* $configure_input */" \
12729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12730 || as_fn_error "could not create -" "$LINENO" 5
12731 fi
12732 # Compute "$ac_file"'s index in $config_headers.
12733 _am_arg="$ac_file"
12734 _am_stamp_count=1
12735 for _am_header in $config_headers :; do
12736 case $_am_header in
12737 $_am_arg | $_am_arg:* )
12738 break ;;
12739 * )
12740 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12741 esac
12742 done
12743 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12744 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745 X"$_am_arg" : 'X\(//\)[^/]' \| \
12746 X"$_am_arg" : 'X\(//\)$' \| \
12747 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12748 $as_echo X"$_am_arg" |
12749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12750 s//\1/
12751 q
12752 }
12753 /^X\(\/\/\)[^/].*/{
12754 s//\1/
12755 q
12756 }
12757 /^X\(\/\/\)$/{
12758 s//\1/
12759 q
12760 }
12761 /^X\(\/\).*/{
12762 s//\1/
12763 q
12764 }
12765 s/.*/./; q'`/stamp-h$_am_stamp_count
12766 ;;
12614 12767
12615 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12616 $as_echo "$as_me: executing $ac_file commands" >&6;} 12769 $as_echo "$as_me: executing $ac_file commands" >&6;}
12617 ;; 12770 ;;
12618 esac 12771 esac