0001-configure.ac-Rename-to-configure.ac-and-use-external.patch 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. From d7e6fe2ac69333c2d943a4b8eb139373d1fb2ce2 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Tue, 31 Dec 2019 18:08:09 -0800
  4. Subject: [PATCH] configure.ac: Rename to configure.ac and use external gettext
  5. Upstream-Status: Pending
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. configure.ac | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
  9. 1 file changed, 81 insertions(+)
  10. create mode 100644 configure.ac
  11. --- /dev/null
  12. +++ b/configure.ac
  13. @@ -0,0 +1,81 @@
  14. +dnl Process this file with autoconf to produce a configure script.
  15. +
  16. +# Initialization
  17. +AC_INIT
  18. +AC_CONFIG_SRCDIR([Makefile.am])
  19. +AC_CONFIG_HEADERS([config.h])
  20. +
  21. +# Determine the host and build type. The target is always a PIC.
  22. +AC_CANONICAL_HOST
  23. +
  24. +AM_INIT_AUTOMAKE(hddtemp, 0.3-beta15)
  25. +
  26. +dnl Checks for programs.
  27. +AC_PROG_CC
  28. +AC_PROG_INSTALL
  29. +
  30. +# append the host alias to the tools for cross compiling
  31. +AC_HEADER_STDC
  32. +AC_CHECK_HEADERS(fcntl.h)
  33. +AC_CHECK_HEADERS(iconv.h)
  34. +AC_CHECK_HEADERS(netinet/in.h)
  35. +AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
  36. +
  37. +# Checks for typedefs, structures, and compiler characteristics.
  38. +AC_C_CONST
  39. +AC_STRUCT_TM
  40. +
  41. +dnl internationalization macros
  42. +AM_GNU_GETTEXT([external])
  43. +
  44. +AC_CHECK_FUNCS([bindtextdomain textdomain iconv])
  45. +
  46. +dnl reasonable guesses for where stuff is installed
  47. +dnl if we don't do that now, the config.h will use ${prefix}
  48. +dnl for DEFAULT_DATABASE_PATH.
  49. +if test "x$prefix" = "xNONE"; then
  50. + prefix="/usr/local"
  51. +fi
  52. +if test "x$exec_prefix" = "xNONE"; then
  53. + exec_prefix=$prefix
  54. +fi
  55. +
  56. +AC_MSG_CHECKING([Location of hddtemp.db])
  57. +DEFAULT_DATABASE_PATH=
  58. +#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
  59. +db_path=\"/usr/share/misc/hddtemp.db\"
  60. +AC_ARG_WITH(db_path,
  61. + [ --with-db-path=PATH \
  62. + Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
  63. + [ if test -d "$withval"; then
  64. + AC_MSG_FAILURE([new file name for db-path])
  65. + fi
  66. + DEFAULT_DATABASE_PATH="\"$withval\""
  67. + ],
  68. + [ DEFAULT_DATABASE_PATH="$db_path" ])
  69. +AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
  70. +AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
  71. +
  72. +#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
  73. +CFLAGS="$CFLAGS -Wall -W -Wcast-align"
  74. +
  75. +# Substitute configuration variables
  76. +AC_CONFIG_FILES([Makefile \
  77. +po/Makefile.in \
  78. +m4/Makefile \
  79. +src/Makefile \
  80. +doc/Makefile \
  81. +])
  82. +AC_OUTPUT
  83. +
  84. +AC_MSG_RESULT([
  85. +
  86. +hddtemp-$VERSION is now configured for $canonical_host_type
  87. +
  88. + Build: $build
  89. + Host: $host
  90. + Source directory: $srcdir
  91. + Installation prefix: $prefix
  92. + C compiler: $CC $CFLAGS
  93. +
  94. +])
  95. --- a/Makefile.am
  96. +++ b/Makefile.am
  97. @@ -12,7 +12,7 @@ EXTRA_DIST = config.rpath autogen.sh \
  98. README \
  99. TODO
  100. -SUBDIRS = intl po m4 src doc
  101. +SUBDIRS = po m4 src doc
  102. CLEANFILES = *~
  103. --- a/configure.in
  104. +++ /dev/null
  105. @@ -1,83 +0,0 @@
  106. -dnl Process this file with autoconf to produce a configure script.
  107. -
  108. -# Initialization
  109. -AC_INIT
  110. -AC_CONFIG_SRCDIR([Makefile.am])
  111. -AC_CONFIG_HEADERS([config.h])
  112. -
  113. -# Determine the host and build type. The target is always a PIC.
  114. -AC_CANONICAL_HOST
  115. -
  116. -AM_INIT_AUTOMAKE(hddtemp, 0.3-beta15)
  117. -
  118. -dnl Checks for programs.
  119. -AC_PROG_CC
  120. -AC_PROG_INSTALL
  121. -
  122. -# append the host alias to the tools for cross compiling
  123. -AC_HEADER_STDC
  124. -AC_CHECK_HEADERS(fcntl.h)
  125. -AC_CHECK_HEADERS(iconv.h)
  126. -AC_CHECK_HEADERS(netinet/in.h)
  127. -AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
  128. -
  129. -# Checks for typedefs, structures, and compiler characteristics.
  130. -AC_C_CONST
  131. -AC_STRUCT_TM
  132. -
  133. -dnl internationalization macros
  134. -AM_GNU_GETTEXT_VERSION
  135. -AM_GNU_GETTEXT
  136. -#AM_GNU_GETTEXT([external])
  137. -
  138. -AC_CHECK_FUNCS([bindtextdomain textdomain iconv])
  139. -
  140. -dnl reasonable guesses for where stuff is installed
  141. -dnl if we don't do that now, the config.h will use ${prefix}
  142. -dnl for DEFAULT_DATABASE_PATH.
  143. -if test "x$prefix" = "xNONE"; then
  144. - prefix="/usr/local"
  145. -fi
  146. -if test "x$exec_prefix" = "xNONE"; then
  147. - exec_prefix=$prefix
  148. -fi
  149. -
  150. -AC_MSG_CHECKING([Location of hddtemp.db])
  151. -DEFAULT_DATABASE_PATH=
  152. -#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
  153. -db_path=\"/usr/share/misc/hddtemp.db\"
  154. -AC_ARG_WITH(db_path,
  155. - [ --with-db-path=PATH \
  156. - Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
  157. - [ if test -d "$withval"; then
  158. - AC_MSG_FAILURE([new file name for db-path])
  159. - fi
  160. - DEFAULT_DATABASE_PATH="\"$withval\""
  161. - ],
  162. - [ DEFAULT_DATABASE_PATH="$db_path" ])
  163. -AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
  164. -AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
  165. -
  166. -#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
  167. -CFLAGS="$CFLAGS -Wall -W -Wcast-align"
  168. -
  169. -# Substitute configuration variables
  170. -AC_CONFIG_FILES([Makefile intl/Makefile \
  171. -po/Makefile.in \
  172. -m4/Makefile \
  173. -src/Makefile \
  174. -doc/Makefile \
  175. -])
  176. -AC_OUTPUT
  177. -
  178. -AC_MSG_RESULT([
  179. -
  180. -hddtemp-$VERSION is now configured for $canonical_host_type
  181. -
  182. - Build: $build
  183. - Host: $host
  184. - Source directory: $srcdir
  185. - Installation prefix: $prefix
  186. - C compiler: $CC $CFLAGS
  187. -
  188. -])
  189. --- a/intl/ChangeLog
  190. +++ /dev/null
  191. @@ -1,4 +0,0 @@
  192. -2005-02-24 GNU <bug-gnu-gettext@gnu.org>
  193. -
  194. - * Version 0.14.2 released.
  195. -
  196. --- a/intl/Makefile.in
  197. +++ /dev/null
  198. @@ -1,500 +0,0 @@
  199. -# Makefile for directory with message catalog handling library of GNU gettext
  200. -# Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
  201. -#
  202. -# This program is free software; you can redistribute it and/or modify it
  203. -# under the terms of the GNU Library General Public License as published
  204. -# by the Free Software Foundation; either version 2, or (at your option)
  205. -# any later version.
  206. -#
  207. -# This program is distributed in the hope that it will be useful,
  208. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  209. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  210. -# Library General Public License for more details.
  211. -#
  212. -# You should have received a copy of the GNU Library General Public
  213. -# License along with this program; if not, write to the Free Software
  214. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  215. -# USA.
  216. -
  217. -PACKAGE = @PACKAGE@
  218. -VERSION = @VERSION@
  219. -
  220. -SHELL = /bin/sh
  221. -
  222. -srcdir = @srcdir@
  223. -top_srcdir = @top_srcdir@
  224. -top_builddir = ..
  225. -VPATH = $(srcdir)
  226. -
  227. -prefix = @prefix@
  228. -exec_prefix = @exec_prefix@
  229. -transform = @program_transform_name@
  230. -libdir = @libdir@
  231. -includedir = @includedir@
  232. -datadir = @datadir@
  233. -localedir = $(datadir)/locale
  234. -gettextsrcdir = $(datadir)/gettext/intl
  235. -aliaspath = $(localedir)
  236. -subdir = intl
  237. -
  238. -INSTALL = @INSTALL@
  239. -INSTALL_DATA = @INSTALL_DATA@
  240. -MKINSTALLDIRS = @MKINSTALLDIRS@
  241. -mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
  242. -
  243. -l = @INTL_LIBTOOL_SUFFIX_PREFIX@
  244. -
  245. -AR = ar
  246. -CC = @CC@
  247. -LIBTOOL = @LIBTOOL@
  248. -RANLIB = @RANLIB@
  249. -YACC = @INTLBISON@ -y -d
  250. -YFLAGS = --name-prefix=__gettext
  251. -
  252. -DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
  253. --DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
  254. --DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  255. --Dset_relocation_prefix=libintl_set_relocation_prefix \
  256. --Drelocate=libintl_relocate \
  257. --DDEPENDS_ON_LIBICONV=1 @DEFS@
  258. -CPPFLAGS = @CPPFLAGS@
  259. -CFLAGS = @CFLAGS@
  260. -LDFLAGS = @LDFLAGS@
  261. -LIBS = @LIBS@
  262. -
  263. -COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
  264. -
  265. -HEADERS = \
  266. - gmo.h \
  267. - gettextP.h \
  268. - hash-string.h \
  269. - loadinfo.h \
  270. - plural-exp.h \
  271. - eval-plural.h \
  272. - localcharset.h \
  273. - relocatable.h \
  274. - xsize.h \
  275. - printf-args.h printf-args.c \
  276. - printf-parse.h wprintf-parse.h printf-parse.c \
  277. - vasnprintf.h vasnwprintf.h vasnprintf.c \
  278. - os2compat.h \
  279. - libgnuintl.h.in
  280. -SOURCES = \
  281. - bindtextdom.c \
  282. - dcgettext.c \
  283. - dgettext.c \
  284. - gettext.c \
  285. - finddomain.c \
  286. - loadmsgcat.c \
  287. - localealias.c \
  288. - textdomain.c \
  289. - l10nflist.c \
  290. - explodename.c \
  291. - dcigettext.c \
  292. - dcngettext.c \
  293. - dngettext.c \
  294. - ngettext.c \
  295. - plural.y \
  296. - plural-exp.c \
  297. - localcharset.c \
  298. - relocatable.c \
  299. - langprefs.c \
  300. - localename.c \
  301. - log.c \
  302. - printf.c \
  303. - osdep.c \
  304. - os2compat.c \
  305. - intl-compat.c
  306. -OBJECTS = \
  307. - bindtextdom.$lo \
  308. - dcgettext.$lo \
  309. - dgettext.$lo \
  310. - gettext.$lo \
  311. - finddomain.$lo \
  312. - loadmsgcat.$lo \
  313. - localealias.$lo \
  314. - textdomain.$lo \
  315. - l10nflist.$lo \
  316. - explodename.$lo \
  317. - dcigettext.$lo \
  318. - dcngettext.$lo \
  319. - dngettext.$lo \
  320. - ngettext.$lo \
  321. - plural.$lo \
  322. - plural-exp.$lo \
  323. - localcharset.$lo \
  324. - relocatable.$lo \
  325. - langprefs.$lo \
  326. - localename.$lo \
  327. - log.$lo \
  328. - printf.$lo \
  329. - osdep.$lo \
  330. - intl-compat.$lo
  331. -DISTFILES.common = Makefile.in \
  332. -config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
  333. -DISTFILES.generated = plural.c
  334. -DISTFILES.normal = VERSION
  335. -DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
  336. -libgnuintl.h_vms Makefile.vms \
  337. -libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
  338. -DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
  339. -COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
  340. -
  341. -all: all-@USE_INCLUDED_LIBINTL@
  342. -all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
  343. -all-no: all-no-@BUILD_INCLUDED_LIBINTL@
  344. -all-no-yes: libgnuintl.$la
  345. -all-no-no:
  346. -
  347. -libintl.a libgnuintl.a: $(OBJECTS)
  348. - rm -f $@
  349. - $(AR) cru $@ $(OBJECTS)
  350. - $(RANLIB) $@
  351. -
  352. -libintl.la libgnuintl.la: $(OBJECTS)
  353. - $(LIBTOOL) --mode=link \
  354. - $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
  355. - $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) -lc \
  356. - -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
  357. - -rpath $(libdir) \
  358. - -no-undefined
  359. -
  360. -# Libtool's library version information for libintl.
  361. -# Before making a gettext release, the gettext maintainer must change this
  362. -# according to the libtool documentation, section "Library interface versions".
  363. -# Maintainers of other packages that include the intl directory must *not*
  364. -# change these values.
  365. -LTV_CURRENT=7
  366. -LTV_REVISION=1
  367. -LTV_AGE=4
  368. -
  369. -.SUFFIXES:
  370. -.SUFFIXES: .c .y .o .lo .sin .sed
  371. -
  372. -.c.o:
  373. - $(COMPILE) $<
  374. -
  375. -.y.c:
  376. - $(YACC) $(YFLAGS) --output $@ $<
  377. - rm -f $*.h
  378. -
  379. -bindtextdom.lo: $(srcdir)/bindtextdom.c
  380. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
  381. -dcgettext.lo: $(srcdir)/dcgettext.c
  382. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
  383. -dgettext.lo: $(srcdir)/dgettext.c
  384. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
  385. -gettext.lo: $(srcdir)/gettext.c
  386. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
  387. -finddomain.lo: $(srcdir)/finddomain.c
  388. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
  389. -loadmsgcat.lo: $(srcdir)/loadmsgcat.c
  390. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
  391. -localealias.lo: $(srcdir)/localealias.c
  392. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
  393. -textdomain.lo: $(srcdir)/textdomain.c
  394. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
  395. -l10nflist.lo: $(srcdir)/l10nflist.c
  396. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
  397. -explodename.lo: $(srcdir)/explodename.c
  398. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
  399. -dcigettext.lo: $(srcdir)/dcigettext.c
  400. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
  401. -dcngettext.lo: $(srcdir)/dcngettext.c
  402. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
  403. -dngettext.lo: $(srcdir)/dngettext.c
  404. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
  405. -ngettext.lo: $(srcdir)/ngettext.c
  406. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
  407. -plural.lo: $(srcdir)/plural.c
  408. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
  409. -plural-exp.lo: $(srcdir)/plural-exp.c
  410. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
  411. -localcharset.lo: $(srcdir)/localcharset.c
  412. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
  413. -relocatable.lo: $(srcdir)/relocatable.c
  414. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
  415. -langprefs.lo: $(srcdir)/langprefs.c
  416. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c
  417. -localename.lo: $(srcdir)/localename.c
  418. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
  419. -log.lo: $(srcdir)/log.c
  420. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
  421. -printf.lo: $(srcdir)/printf.c
  422. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
  423. -osdep.lo: $(srcdir)/osdep.c
  424. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
  425. -intl-compat.lo: $(srcdir)/intl-compat.c
  426. - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
  427. -
  428. -ref-add.sed: $(srcdir)/ref-add.sin
  429. - sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
  430. - mv t-ref-add.sed ref-add.sed
  431. -ref-del.sed: $(srcdir)/ref-del.sin
  432. - sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
  433. - mv t-ref-del.sed ref-del.sed
  434. -
  435. -INCLUDES = -I. -I$(srcdir) -I..
  436. -
  437. -libgnuintl.h: $(srcdir)/libgnuintl.h.in
  438. - sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
  439. - -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
  440. - -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
  441. - -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
  442. - < $(srcdir)/libgnuintl.h.in > libgnuintl.h
  443. -
  444. -libintl.h: libgnuintl.h
  445. - cp libgnuintl.h libintl.h
  446. -
  447. -charset.alias: $(srcdir)/config.charset
  448. - $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
  449. - mv t-$@ $@
  450. -
  451. -check: all
  452. -
  453. -# We must not install the libintl.h/libintl.a files if we are on a
  454. -# system which has the GNU gettext() function in its C library or in a
  455. -# separate library.
  456. -# If you want to use the one which comes with this version of the
  457. -# package, you have to use `configure --with-included-gettext'.
  458. -install: install-exec install-data
  459. -install-exec: all
  460. - if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  461. - && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  462. - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  463. - $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
  464. - $(LIBTOOL) --mode=install \
  465. - $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
  466. - if test "@RELOCATABLE@" = yes; then \
  467. - dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
  468. - if test -n "$$dependencies"; then \
  469. - rm -f $(DESTDIR)$(libdir)/libintl.la; \
  470. - fi; \
  471. - fi; \
  472. - else \
  473. - : ; \
  474. - fi
  475. - if test "$(PACKAGE)" = "gettext-tools" \
  476. - && test '@USE_INCLUDED_LIBINTL@' = no \
  477. - && test @GLIBC2@ != no; then \
  478. - $(mkinstalldirs) $(DESTDIR)$(libdir); \
  479. - $(LIBTOOL) --mode=install \
  480. - $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
  481. - rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  482. - $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  483. - $(LIBTOOL) --mode=uninstall \
  484. - rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
  485. - else \
  486. - : ; \
  487. - fi
  488. - if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  489. - test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
  490. - temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  491. - dest=$(DESTDIR)$(libdir)/charset.alias; \
  492. - if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  493. - orig=$(DESTDIR)$(libdir)/charset.alias; \
  494. - sed -f ref-add.sed $$orig > $$temp; \
  495. - $(INSTALL_DATA) $$temp $$dest; \
  496. - rm -f $$temp; \
  497. - else \
  498. - if test @GLIBC21@ = no; then \
  499. - orig=charset.alias; \
  500. - sed -f ref-add.sed $$orig > $$temp; \
  501. - $(INSTALL_DATA) $$temp $$dest; \
  502. - rm -f $$temp; \
  503. - fi; \
  504. - fi; \
  505. - $(mkinstalldirs) $(DESTDIR)$(localedir); \
  506. - test -f $(DESTDIR)$(localedir)/locale.alias \
  507. - && orig=$(DESTDIR)$(localedir)/locale.alias \
  508. - || orig=$(srcdir)/locale.alias; \
  509. - temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  510. - dest=$(DESTDIR)$(localedir)/locale.alias; \
  511. - sed -f ref-add.sed $$orig > $$temp; \
  512. - $(INSTALL_DATA) $$temp $$dest; \
  513. - rm -f $$temp; \
  514. - else \
  515. - : ; \
  516. - fi
  517. -install-data: all
  518. - if test "$(PACKAGE)" = "gettext-tools"; then \
  519. - $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
  520. - $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
  521. - $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
  522. - dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
  523. - for file in $$dists; do \
  524. - $(INSTALL_DATA) $(srcdir)/$$file \
  525. - $(DESTDIR)$(gettextsrcdir)/$$file; \
  526. - done; \
  527. - chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
  528. - dists="$(DISTFILES.generated)"; \
  529. - for file in $$dists; do \
  530. - if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  531. - $(INSTALL_DATA) $$dir/$$file \
  532. - $(DESTDIR)$(gettextsrcdir)/$$file; \
  533. - done; \
  534. - dists="$(DISTFILES.obsolete)"; \
  535. - for file in $$dists; do \
  536. - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  537. - done; \
  538. - else \
  539. - : ; \
  540. - fi
  541. -
  542. -install-strip: install
  543. -
  544. -installdirs:
  545. - if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  546. - && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  547. - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  548. - else \
  549. - : ; \
  550. - fi
  551. - if test "$(PACKAGE)" = "gettext-tools" \
  552. - && test '@USE_INCLUDED_LIBINTL@' = no \
  553. - && test @GLIBC2@ != no; then \
  554. - $(mkinstalldirs) $(DESTDIR)$(libdir); \
  555. - else \
  556. - : ; \
  557. - fi
  558. - if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  559. - test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
  560. - $(mkinstalldirs) $(DESTDIR)$(localedir); \
  561. - else \
  562. - : ; \
  563. - fi
  564. - if test "$(PACKAGE)" = "gettext-tools"; then \
  565. - $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
  566. - else \
  567. - : ; \
  568. - fi
  569. -
  570. -# Define this as empty until I found a useful application.
  571. -installcheck:
  572. -
  573. -uninstall:
  574. - if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  575. - && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  576. - rm -f $(DESTDIR)$(includedir)/libintl.h; \
  577. - $(LIBTOOL) --mode=uninstall \
  578. - rm -f $(DESTDIR)$(libdir)/libintl.$la; \
  579. - else \
  580. - : ; \
  581. - fi
  582. - if test "$(PACKAGE)" = "gettext-tools" \
  583. - && test '@USE_INCLUDED_LIBINTL@' = no \
  584. - && test @GLIBC2@ != no; then \
  585. - rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  586. - else \
  587. - : ; \
  588. - fi
  589. - if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  590. - if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  591. - temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  592. - dest=$(DESTDIR)$(libdir)/charset.alias; \
  593. - sed -f ref-del.sed $$dest > $$temp; \
  594. - if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  595. - rm -f $$dest; \
  596. - else \
  597. - $(INSTALL_DATA) $$temp $$dest; \
  598. - fi; \
  599. - rm -f $$temp; \
  600. - fi; \
  601. - if test -f $(DESTDIR)$(localedir)/locale.alias; then \
  602. - temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  603. - dest=$(DESTDIR)$(localedir)/locale.alias; \
  604. - sed -f ref-del.sed $$dest > $$temp; \
  605. - if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  606. - rm -f $$dest; \
  607. - else \
  608. - $(INSTALL_DATA) $$temp $$dest; \
  609. - fi; \
  610. - rm -f $$temp; \
  611. - fi; \
  612. - else \
  613. - : ; \
  614. - fi
  615. - if test "$(PACKAGE)" = "gettext-tools"; then \
  616. - for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
  617. - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  618. - done; \
  619. - else \
  620. - : ; \
  621. - fi
  622. -
  623. -info dvi ps pdf html:
  624. -
  625. -$(OBJECTS): ../config.h libgnuintl.h
  626. -bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
  627. -dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
  628. -explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
  629. -dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
  630. -dcigettext.$lo: $(srcdir)/eval-plural.h
  631. -localcharset.$lo: $(srcdir)/localcharset.h
  632. -localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
  633. -printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
  634. -
  635. -tags: TAGS
  636. -
  637. -TAGS: $(HEADERS) $(SOURCES)
  638. - here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  639. -
  640. -ctags: CTAGS
  641. -
  642. -CTAGS: $(HEADERS) $(SOURCES)
  643. - here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
  644. -
  645. -id: ID
  646. -
  647. -ID: $(HEADERS) $(SOURCES)
  648. - here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
  649. -
  650. -
  651. -mostlyclean:
  652. - rm -f *.a *.la *.o *.obj *.lo core core.*
  653. - rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
  654. - rm -f -r .libs _libs
  655. -
  656. -clean: mostlyclean
  657. -
  658. -distclean: clean
  659. - rm -f Makefile ID TAGS
  660. - if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
  661. - rm -f ChangeLog.inst $(DISTFILES.normal); \
  662. - else \
  663. - : ; \
  664. - fi
  665. -
  666. -maintainer-clean: distclean
  667. - @echo "This command is intended for maintainers to use;"
  668. - @echo "it deletes files that may require special tools to rebuild."
  669. -
  670. -
  671. -# GNU gettext needs not contain the file `VERSION' but contains some
  672. -# other files which should not be distributed in other packages.
  673. -distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  674. -dist distdir: Makefile
  675. - if test "$(PACKAGE)" = "gettext-tools"; then \
  676. - : ; \
  677. - else \
  678. - if test "$(PACKAGE)" = "gettext-runtime"; then \
  679. - additional="$(DISTFILES.gettext)"; \
  680. - else \
  681. - additional="$(DISTFILES.normal)"; \
  682. - fi; \
  683. - $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
  684. - for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
  685. - if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  686. - cp -p $$dir/$$file $(distdir); \
  687. - done; \
  688. - fi
  689. -
  690. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  691. - cd $(top_builddir) && $(SHELL) ./config.status
  692. -# This would be more efficient, but doesn't work any more with autoconf-2.57,
  693. -# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
  694. -# cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  695. -
  696. -# Tell versions [3.59,3.63) of GNU make not to export all variables.
  697. -# Otherwise a system limit (for SysV at least) may be exceeded.
  698. -.NOEXPORT: