* i18n.h: New file.
authorMarius Vollmer <mvo@zagadka.de>
Wed, 22 Sep 2004 21:54:30 +0000 (21:54 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Wed, 22 Sep 2004 21:54:30 +0000 (21:54 +0000)
* i18n.c: New file.
* gettext.h: New file, taken from GNU gettext.
* init.c: Include libguile/i18n.h.
(scm_init_guile_1): Add call to scm_init_i18n().
* Makefile.am (libguile_la_SOURCES): Add i18n.c.
(DOT_X_FILES): Add i18n.x.
(DOT_DOC_FILES): Add i18n.doc.
(libguile_la_LDFLAGS): Add @LTLIBINTL@.
(modinclude_HEADERS): Add i18n.h.

libguile/Makefile.am

index c2f373d..27b76d4 100644 (file)
@@ -97,7 +97,7 @@ libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c            \
     gc.c gc-mark.c gc-segment.c gc-malloc.c gc-card.c gc-freelist.c        \
        gc_os_dep.c gdbint.c gh_data.c gh_eval.c gh_funcs.c gh_init.c       \
     gh_io.c gh_list.c gh_predicates.c goops.c gsubr.c guardians.c hash.c    \
-    hashtab.c hooks.c init.c inline.c ioext.c keywords.c                   \
+    hashtab.c hooks.c i18n.c init.c inline.c ioext.c keywords.c                    \
     lang.c list.c                                                          \
     load.c macros.c mallocs.c modules.c numbers.c objects.c objprop.c      \
     options.c pairs.c ports.c print.c procprop.c procs.c properties.c      \
@@ -113,7 +113,7 @@ DOT_X_FILES = alist.x arbiters.x async.x backtrace.x boolean.x chars.x       \
     error.x eval.x evalext.x extensions.x feature.x fluids.x fports.x   \
     futures.x                                                           \
     gc.x  gc-mark.x gc-segment.x gc-malloc.x gc-card.x goops.x          \
-    gsubr.x guardians.x hash.x hashtab.x hooks.x init.x ioext.x                 \
+    gsubr.x guardians.x hash.x hashtab.x hooks.x i18n.x init.x ioext.x   \
     keywords.x lang.x list.x load.x macros.x mallocs.x modules.x        \
     numbers.x objects.x objprop.x options.x pairs.x ports.x print.x     \
     procprop.x procs.x properties.x random.x rdelim.x read.x root.x rw.x \
@@ -132,8 +132,8 @@ DOT_DOC_FILES = alist.doc arbiters.doc async.doc backtrace.doc                  \
     extensions.doc feature.doc fluids.doc fports.doc futures.doc           \
     gc.doc goops.doc                                                       \
     gsubr.doc gc-mark.doc gc-segment.doc gc-malloc.doc gc-card.doc         \
-    guardians.doc hash.doc hashtab.doc hooks.doc init.doc ioext.doc        \
-    keywords.doc lang.doc list.doc load.doc macros.doc                     \
+    guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc         \
+    ioext.doc keywords.doc lang.doc list.doc load.doc macros.doc           \
     mallocs.doc modules.doc numbers.doc objects.doc objprop.doc                    \
     options.doc pairs.doc ports.doc print.doc procprop.doc                 \
     procs.doc properties.doc random.doc rdelim.doc read.doc root.doc rw.doc \
@@ -172,7 +172,7 @@ noinst_HEADERS = convert.i.c        \
 
 libguile_la_DEPENDENCIES = @LIBLOBJS@
 libguile_la_LIBADD = @LIBLOBJS@ ../libguile-ltdl/libguile-ltdl.la $(THREAD_LIBS_LOCAL)
-libguile_la_LDFLAGS = -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined
+libguile_la_LDFLAGS = @LTLIBINTL@ -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined
 
 # These are headers visible as <guile/mumble.h>
 pkginclude_HEADERS = gh.h
@@ -187,7 +187,7 @@ modinclude_HEADERS = __scm.h alist.h arbiters.h async.h backtrace.h boolean.h \
     error.h eval.h                                                           \
     evalext.h extensions.h feature.h filesys.h fluids.h fports.h futures.h    \
     gc.h gdb_interface.h gdbint.h                                            \
-    goops.h gsubr.h guardians.h hash.h hashtab.h hooks.h init.h                      \
+    goops.h gsubr.h guardians.h hash.h hashtab.h hooks.h i18n.h init.h        \
     inline.h ioext.h                                                         \
     iselect.h keywords.h lang.h list.h load.h macros.h mallocs.h modules.h    \
     net_db.h numbers.h objects.h objprop.h options.h pairs.h ports.h posix.h  \