Mercurial > hg > xemacs-beta
comparison configure.ac @ 3418:a1e20876b806
[xemacs-hg @ 2006-05-23 13:18:50 by stephent]
Generate dbx/gdb rc files right. <873bf0zz31.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Tue, 23 May 2006 13:18:56 +0000 |
parents | 15fb91e3a115 |
children | bf3ba03cef15 |
comparison
equal
deleted
inserted
replaced
3417:abdb33cc1f52 | 3418:a1e20876b806 |
---|---|
32 | 32 |
33 AC_COPYRIGHT( | 33 AC_COPYRIGHT( |
34 [Configuration script for XEmacs. Largely divergent from FSF. | 34 [Configuration script for XEmacs. Largely divergent from FSF. |
35 Guess values for system-dependent variables and create Makefiles. | 35 Guess values for system-dependent variables and create Makefiles. |
36 | 36 |
37 Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. | 37 Copyright (C) 1992-1999, 2001-2006 Free Software Foundation, Inc. |
38 Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. | |
39 Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | |
40 Copyright (C) 1993, 1994, 1995 Board of Trustees, University of Illinois. | 38 Copyright (C) 1993, 1994, 1995 Board of Trustees, University of Illinois. |
41 Copyright (C) 1996, 1997 Sun Microsystems, Inc. | 39 Copyright (C) 1996, 1997 Sun Microsystems, Inc. |
42 Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing. | 40 Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing. |
43 Copyright (C) 2000, 2001 Martin Buchholz. | 41 Copyright (C) 2000, 2001 Martin Buchholz. |
44 Copyright (C) 1998, 1999 J. Kean Johnston. | 42 Copyright (C) 1998, 1999 J. Kean Johnston. |
5574 | 5572 |
5575 dnl ---------------------------------------------- | 5573 dnl ---------------------------------------------- |
5576 dnl Create some auxiliary files for developers. | 5574 dnl Create some auxiliary files for developers. |
5577 dnl ---------------------------------------------- | 5575 dnl ---------------------------------------------- |
5578 | 5576 |
5577 dnl Unlike TAGS, debugger init files depend on config.h. | |
5578 dnl Regenerate them locally on every configure. | |
5579 dnl Create a .gdbinit useful for debugging XEmacs | 5579 dnl Create a .gdbinit useful for debugging XEmacs |
5580 if test -f "$srcdir/src/.gdbinit.in" -a ! -f "src/.gdbinit.in"; then | 5580 if test -f "$srcdir/etc/gdbinit.in"; then |
5581 test "$verbose" = "yes" && echo "creating src/.gdbinit.in" | 5581 test "$verbose" = "yes" && echo "creating src/.gdbinit.in" |
5582 echo "source $srcdir/src/.gdbinit.in" > "src/.gdbinit.in" | 5582 cp $srcdir/etc/gdbinit.in src/.gdbinit.in |
5583 fi | 5583 fi |
5584 | 5584 |
5585 dnl Create a .dbxrc useful for debugging XEmacs | 5585 dnl Create a .dbxrc useful for debugging XEmacs |
5586 if test -f "$srcdir/src/.dbxrc.in" -a ! -f "src/.dbxrc.in"; then | 5586 if test -f "$srcdir/etc/dbxrc.in"; then |
5587 test "$verbose" = "yes" && echo "creating src/.dbxrc.in" | 5587 test "$verbose" = "yes" && echo "creating src/.dbxrc.in" |
5588 echo ". $srcdir/src/.dbxrc.in" > "src/.dbxrc.in" | 5588 echo ". $srcdir/etc/dbxrc.in" > "src/.dbxrc.in" |
5589 fi | 5589 fi |
5590 | 5590 |
5591 dnl Create a useful TAGS file | 5591 dnl Create a useful TAGS file |
5592 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then | 5592 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then |
5593 test "$verbose" = "yes" && echo "creating TAGS" | 5593 test "$verbose" = "yes" && echo "creating TAGS" |
6233 dnl since we use brackets in sed. When not inside of a macro definition, | 6233 dnl since we use brackets in sed. When not inside of a macro definition, |
6234 dnl two brackets become one, but inside of a macro definition you need | 6234 dnl two brackets become one, but inside of a macro definition you need |
6235 dnl more, or something -- I don't understand, but Martin probably does. | 6235 dnl more, or something -- I don't understand, but Martin probably does. |
6236 dnl We put the brackets back later. | 6236 dnl We put the brackets back later. |
6237 dnl [ben] | 6237 dnl [ben] |
6238 dnl To insert comments that will remain in the generated file, we use the | |
6239 dnl imake XCOMM convention. Lines beginning with "XCOMM " exactly (no | |
6240 dnl leading whitespace, one trailing ASCII space, case sensitive) will be | |
6241 dnl transformed to shell/make/gdb comments in the generated file. | |
6242 dnl [sjt] | |
6238 | 6243 |
6239 dnl MAKE_JUNK_C(filename): | 6244 dnl MAKE_JUNK_C(filename): |
6240 dnl Copy a .in file to junk.c in preparation for passing through the | 6245 dnl Copy a .in file to junk.c in preparation for passing through the |
6241 dnl C preprocessor. Delete comment lines, pass lines that will be | 6246 dnl C preprocessor. Delete comment lines, pass lines that will be |
6242 dnl interpreted by cpp through directly, and put quotes around remaining | 6247 dnl interpreted by cpp through directly, and put quotes around remaining |
6281 dnl Restore lines quoted above to original contents. | 6286 dnl Restore lines quoted above to original contents. |
6282 -e '/^\"/ { | 6287 -e '/^\"/ { |
6283 s/\\\([[\"]]\)/\1/g | 6288 s/\\\([[\"]]\)/\1/g |
6284 s/^[[ TAB]]*\"// | 6289 s/^[[ TAB]]*\"// |
6285 s/\"[[ TAB]]*$// | 6290 s/\"[[ TAB]]*$// |
6286 }' > Makefile.new | 6291 }' \ |
6292 dnl Convert comments -- must come after the unquoting operations | |
6293 -e 's/^XCOMM /\# /' > Makefile.new | |
6287 chmod 444 Makefile.new | 6294 chmod 444 Makefile.new |
6288 mv -f Makefile.new $2 | 6295 mv -f Makefile.new $2 |
6289 ])dnl CPP_MAKEFILE | 6296 ])dnl CPP_MAKEFILE |
6290 | 6297 |
6291 AC_CONFIG_COMMANDS([default], | 6298 AC_CONFIG_COMMANDS([default], |
6293 ( | 6300 ( |
6294 cd $dir | 6301 cd $dir |
6295 | 6302 |
6296 dnl Create a GNUmakefile and Makefile from Makefile.in. | 6303 dnl Create a GNUmakefile and Makefile from Makefile.in. |
6297 dnl Create xemacs.def from xemacs.def.in in the same fashion, | 6304 dnl Create xemacs.def from xemacs.def.in in the same fashion, |
6298 dnl if it exists (i.e. in the src/ directory). | 6305 dnl if it exists (i.e. in the src/ directory). Ditto for the |
6306 dnl debugger init files (in the src/ directory). | |
6299 MAKE_JUNK_C(Makefile.in) | 6307 MAKE_JUNK_C(Makefile.in) |
6300 CPP_MAKEFILE(,Makefile) | 6308 CPP_MAKEFILE(,Makefile) |
6301 CPP_MAKEFILE(-DUSE_GNU_MAKE,GNUmakefile) | 6309 CPP_MAKEFILE(-DUSE_GNU_MAKE,GNUmakefile) |
6302 if test -r ".gdbinit.in"; then | 6310 if test -r ".gdbinit.in"; then |
6303 MAKE_JUNK_C(.gdbinit.in) | 6311 MAKE_JUNK_C(.gdbinit.in) |