# Miscellaneous additional macros for Subversion's own use. # SVN_CONFIG_NICE(FILENAME) # Write a shell script to FILENAME (typically 'config.nice') which reinvokes # configure with all of the arguments. Reserves use of the filename # FILENAME.old for its own use. # This is different from 'config.status --recheck' in that it does add implicit # --no-create --no-recursion options, and stores _just_ the configure # invocation, instead of the entire configured state. AC_DEFUN([SVN_CONFIG_NICE], [ AC_MSG_NOTICE([creating $1]) # This little dance satisfies Cygwin, which cannot overwrite in-use files. if test -f "$1"; then mv "$1" "$1.old" fi cat >"$1" <]], [[]])], [svn_maybe_add_to_cflags_ok="yes"], [svn_maybe_add_to_cflags_ok="no"] ) if test "$svn_maybe_add_to_cflags_ok" = "yes"; then AC_MSG_RESULT([yes, will use it]) else AC_MSG_RESULT([no]) CFLAGS="$svn_maybe_add_to_cflags_saved_flags" fi ])