2
1

gtk+1.2-reconf.patch 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. fixup configure.in, acinclude.m4 and Makefile.am's for reconfigurability. make
  2. gtk-config use pkg-config
  3. #
  4. # Patch managed by http://www.holgerschurig.de/patcher.html
  5. #
  6. --- gtk+-1.2.10/configure.in~gtk+1.2-reconf-fix
  7. +++ gtk+-1.2.10/configure.in
  8. @@ -17,7 +17,9 @@
  9. dnl we need to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they
  10. dnl are available for $ac_help expansion (don't we all *love* autoconf?)
  11. -AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
  12. +ifdef([AC_DIVERSION_NOTICE],
  13. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  14. + [AC_DIVERT_PUSH(NOTICE)])dnl
  15. #
  16. # Making releases:
  17. # GTK_MICRO_VERSION += 1;
  18. @@ -76,7 +78,10 @@
  19. dnl figure debugging default, prior to $ac_help setup
  20. dnl
  21. -AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
  22. +ifdef([AC_DIVERSION_NOTICE],
  23. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  24. + [AC_DIVERT_PUSH(NOTICE)])dnl
  25. +
  26. if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then
  27. debug_default=yes
  28. else
  29. @@ -292,12 +297,9 @@
  30. AC_SUBST(GLIB_DEPLIBS)
  31. # Find the X11 include and library directories
  32. -AC_PATH_X
  33. AC_PATH_XTRA
  34. -if test "x$x_includes" = "x"; then
  35. - x_includes="/usr/include"
  36. -fi
  37. +PKG_CHECK_MODULES(X,x11 xau)
  38. saved_cflags="$CFLAGS"
  39. saved_ldflags="$LDFLAGS"
  40. --- gtk+-1.2.10/gdk/Makefile.am~gtk+1.2-reconf-fix
  41. +++ gtk+-1.2.10/gdk/Makefile.am
  42. @@ -31,7 +31,7 @@
  43. # setup source file variables
  44. #
  45. # GDK header files for public installation (non-generated)
  46. -gdk_public_h_sources = @STRIP_BEGIN@ \
  47. +gdk_public_h_sources = \
  48. gdk.h \
  49. gdkcursors.h \
  50. gdkrgb.h \
  51. @@ -39,9 +39,9 @@
  52. gdkkeysyms.h \
  53. gdkprivate.h \
  54. gdktypes.h \
  55. - gdkx.h \
  56. -@STRIP_END@
  57. -gdk_c_sources = @STRIP_BEGIN@ \
  58. + gdkx.h
  59. +
  60. +gdk_c_sources = \
  61. gdk.c \
  62. gdkcc.c \
  63. gdkcolor.c \
  64. @@ -72,18 +72,16 @@
  65. MwmUtil.h \
  66. gxid_lib.h \
  67. gxid_proto.h \
  68. - gxid_lib.c \
  69. -@STRIP_END@
  70. + gxid_lib.c
  71. #
  72. # setup GDK sources and their dependancies
  73. #
  74. libgdkinclude_HEADERS = $(gdk_public_h_sources)
  75. libgdk_la_SOURCES = $(gdk_c_sources)
  76. -MAINTAINERCLEANFILES +=
  77. -EXTRA_HEADERS +=
  78. -EXTRA_DIST +=
  79. -EXTRA_DIST +=
  80. +MAINTAINERCLEANFILES =
  81. +EXTRA_HEADERS =
  82. +EXTRA_DIST =
  83. #
  84. # rules to generate built sources
  85. --- gtk+-1.2.10/gtk/Makefile.am~gtk+1.2-reconf-fix
  86. +++ gtk+-1.2.10/gtk/Makefile.am
  87. @@ -39,7 +39,7 @@
  88. # setup source file variables
  89. #
  90. # GTK+ header files for public installation (non-generated)
  91. -gtk_public_h_sources = @STRIP_BEGIN@ \
  92. +gtk_public_h_sources = \
  93. gtk.h \
  94. gtkaccelgroup.h \
  95. gtkaccellabel.h \
  96. @@ -148,13 +148,13 @@
  97. gtkvscrollbar.h \
  98. gtkvseparator.h \
  99. gtkwidget.h \
  100. - gtkwindow.h \
  101. -@STRIP_END@
  102. + gtkwindow.h
  103. +
  104. # GTK+ header files that don't get installed
  105. -gtk_private_h_sources = @STRIP_BEGIN@ \
  106. -@STRIP_END@
  107. +gtk_private_h_sources =
  108. +
  109. # GTK+ C sources to build the library from
  110. -gtk_c_sources = @STRIP_BEGIN@ \
  111. +gtk_c_sources = \
  112. gtkaccelgroup.c \
  113. gtkaccellabel.c \
  114. gtkadjustment.c \
  115. @@ -262,8 +262,8 @@
  116. gtkwidget.c \
  117. gtkwindow.c \
  118. fnmatch.c \
  119. - fnmatch.h \
  120. -@STRIP_END@
  121. + fnmatch.h
  122. +
  123. # we use our own built_sources variable rules to avoid automake's
  124. # BUILT_SOURCES oddities
  125. # we generate frequently rebuild files piggyback on a stamp file, so sources
  126. @@ -271,7 +271,7 @@
  127. # content
  128. #
  129. # built sources that don't get installed
  130. -gtk_built_sources = @STRIP_BEGIN@ \
  131. +gtk_built_sources = \
  132. stamp-gtk.defs \
  133. stamp-gtktypebuiltins.h \
  134. stamp-gtkmarshal.h \
  135. @@ -279,17 +279,18 @@
  136. gtktypebuiltins_ids.c \
  137. gtktypebuiltins_evals.c \
  138. gtkmarshal.c \
  139. - gtk.defs \
  140. -@STRIP_END@
  141. + gtk.defs
  142. +
  143. +
  144. # built sources that get installed with the header files
  145. -gtk_built_public_sources = @STRIP_BEGIN@ \
  146. +gtk_built_public_sources = \
  147. gtkmarshal.h \
  148. - gtktypebuiltins.h \
  149. -@STRIP_END@
  150. + gtktypebuiltins.h
  151. +
  152. # non-header sources (headers should be specified in the above variables)
  153. # that don't serve as direct make target sources, i.e. they don't have
  154. # their own .lo rules and don't get publically installed
  155. -gtk_extra_sources = @STRIP_BEGIN@ \
  156. +gtk_extra_sources = \
  157. gtkfeatures.h.in \
  158. makeenums.pl \
  159. makeenums.awk \
  160. @@ -298,8 +299,8 @@
  161. gtkargcollector.c \
  162. gtk-boxed.defs \
  163. genmarshal.pl \
  164. - gtkmarshal.list \
  165. -@STRIP_END@
  166. + gtkmarshal.list
  167. +
  168. # Extra headers that are used for enum type array/id generation
  169. gdk_headers = @STRIP_BEGIN@ \
  170. ../gdk/gdktypes.h \
  171. @@ -311,9 +312,9 @@
  172. #
  173. libgtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_built_public_sources) gtkfeatures.h
  174. libgtk_la_SOURCES = $(gtk_c_sources)
  175. -MAINTAINERCLEANFILES += $(gtk_built_public_sources) $(gtk_built_sources)
  176. -EXTRA_HEADERS +=
  177. -EXTRA_DIST += $(gtk_private_h_sources)
  178. +MAINTAINERCLEANFILES = $(gtk_built_public_sources) $(gtk_built_sources)
  179. +EXTRA_HEADERS =
  180. +EXTRA_DIST = $(gtk_private_h_sources)
  181. EXTRA_DIST += $(gtk_built_sources) $(gtk_built_public_sources) $(gtk_extra_sources)
  182. #
  183. @@ -321,7 +322,7 @@
  184. #
  185. # setup autogeneration dependancies
  186. gen_sources = xgen-gdef xgen-gtbh xgen-gtbvc xgen-gtbic xgen-gtbec xgen-gmh xgen-gmc
  187. -CLEANFILES += $(gen_sources)
  188. +CLEANFILES = $(gen_sources)
  189. COPYING: $(gtk_built_public_sources) $(gtk_built_sources)
  190. $(OBJECTS): COPYING # this is our oldest-source-stamp
  191. # initial creation of the real stamp-* files
  192. --- gtk+-1.2.10/docs/Makefile.am~gtk+1.2-reconf-fix
  193. +++ gtk+-1.2.10/docs/Makefile.am
  194. @@ -166,7 +166,7 @@
  195. echo $$p; \
  196. done
  197. -EXTRA_DIST += \
  198. +EXTRA_DIST = \
  199. Changes-1.2.txt \
  200. debugging.txt \
  201. developers.txt \
  202. --- gtk+-1.2.10/acinclude.m4~gtk+1.2-reconf-fix
  203. +++ gtk+-1.2.10/acinclude.m4
  204. @@ -21,428 +21,6 @@
  205. ## configuration script generated by Autoconf, you may include it under
  206. ## the same distribution terms that you use for the rest of that program.
  207. -# serial 40 AC_PROG_LIBTOOL
  208. -AC_DEFUN(AC_PROG_LIBTOOL,
  209. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  210. -
  211. -# Save cache, so that ltconfig can load it
  212. -AC_CACHE_SAVE
  213. -
  214. -# Actually configure libtool. ac_aux_dir is where install-sh is found.
  215. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  216. -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  217. -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  218. -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  219. -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  220. -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  221. -|| AC_MSG_ERROR([libtool configure failed])
  222. -
  223. -# Reload cache, that may have been modified by ltconfig
  224. -AC_CACHE_LOAD
  225. -
  226. -# This can be used to rebuild libtool when needed
  227. -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  228. -
  229. -# Always use our own libtool.
  230. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  231. -AC_SUBST(LIBTOOL)dnl
  232. -
  233. -# Redirect the config.log output again, so that the ltconfig log is not
  234. -# clobbered by the next message.
  235. -exec 5>>./config.log
  236. -])
  237. -
  238. -AC_DEFUN(AC_LIBTOOL_SETUP,
  239. -[AC_PREREQ(2.13)dnl
  240. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  241. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  242. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  243. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  244. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  245. -AC_REQUIRE([AC_PROG_RANLIB])dnl
  246. -AC_REQUIRE([AC_PROG_CC])dnl
  247. -AC_REQUIRE([AC_PROG_LD])dnl
  248. -AC_REQUIRE([AC_PROG_NM])dnl
  249. -AC_REQUIRE([AC_PROG_LN_S])dnl
  250. -dnl
  251. -
  252. -case "$target" in
  253. -NONE) lt_target="$host" ;;
  254. -*) lt_target="$target" ;;
  255. -esac
  256. -
  257. -# Check for any special flags to pass to ltconfig.
  258. -libtool_flags="--cache-file=$cache_file"
  259. -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  260. -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  261. -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  262. -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  263. -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  264. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
  265. -[libtool_flags="$libtool_flags --enable-dlopen"])
  266. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  267. -[libtool_flags="$libtool_flags --enable-win32-dll"])
  268. -AC_ARG_ENABLE(libtool-lock,
  269. - [ --disable-libtool-lock avoid locking (might break parallel builds)])
  270. -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  271. -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  272. -
  273. -# Some flags need to be propagated to the compiler or linker for good
  274. -# libtool support.
  275. -case "$lt_target" in
  276. -*-*-irix6*)
  277. - # Find out which ABI we are using.
  278. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  279. - if AC_TRY_EVAL(ac_compile); then
  280. - case "`/usr/bin/file conftest.o`" in
  281. - *32-bit*)
  282. - LD="${LD-ld} -32"
  283. - ;;
  284. - *N32*)
  285. - LD="${LD-ld} -n32"
  286. - ;;
  287. - *64-bit*)
  288. - LD="${LD-ld} -64"
  289. - ;;
  290. - esac
  291. - fi
  292. - rm -rf conftest*
  293. - ;;
  294. -
  295. -*-*-sco3.2v5*)
  296. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  297. - SAVE_CFLAGS="$CFLAGS"
  298. - CFLAGS="$CFLAGS -belf"
  299. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  300. - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  301. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  302. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  303. - CFLAGS="$SAVE_CFLAGS"
  304. - fi
  305. - ;;
  306. -
  307. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  308. -[*-*-cygwin* | *-*-mingw*)
  309. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  310. - AC_CHECK_TOOL(AS, as, false)
  311. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  312. - ;;
  313. -])
  314. -esac
  315. -])
  316. -
  317. -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  318. -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  319. -
  320. -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  321. -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  322. -
  323. -# AC_ENABLE_SHARED - implement the --enable-shared flag
  324. -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  325. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  326. -# `yes'.
  327. -AC_DEFUN(AC_ENABLE_SHARED, [dnl
  328. -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  329. -AC_ARG_ENABLE(shared,
  330. -changequote(<<, >>)dnl
  331. -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  332. -changequote([, ])dnl
  333. -[p=${PACKAGE-default}
  334. -case "$enableval" in
  335. -yes) enable_shared=yes ;;
  336. -no) enable_shared=no ;;
  337. -*)
  338. - enable_shared=no
  339. - # Look at the argument we got. We use all the common list separators.
  340. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  341. - for pkg in $enableval; do
  342. - if test "X$pkg" = "X$p"; then
  343. - enable_shared=yes
  344. - fi
  345. - done
  346. - IFS="$ac_save_ifs"
  347. - ;;
  348. -esac],
  349. -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  350. -])
  351. -
  352. -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  353. -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  354. -AC_ENABLE_SHARED(no)])
  355. -
  356. -# AC_ENABLE_STATIC - implement the --enable-static flag
  357. -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  358. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  359. -# `yes'.
  360. -AC_DEFUN(AC_ENABLE_STATIC, [dnl
  361. -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  362. -AC_ARG_ENABLE(static,
  363. -changequote(<<, >>)dnl
  364. -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  365. -changequote([, ])dnl
  366. -[p=${PACKAGE-default}
  367. -case "$enableval" in
  368. -yes) enable_static=yes ;;
  369. -no) enable_static=no ;;
  370. -*)
  371. - enable_static=no
  372. - # Look at the argument we got. We use all the common list separators.
  373. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  374. - for pkg in $enableval; do
  375. - if test "X$pkg" = "X$p"; then
  376. - enable_static=yes
  377. - fi
  378. - done
  379. - IFS="$ac_save_ifs"
  380. - ;;
  381. -esac],
  382. -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  383. -])
  384. -
  385. -# AC_DISABLE_STATIC - set the default static flag to --disable-static
  386. -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  387. -AC_ENABLE_STATIC(no)])
  388. -
  389. -
  390. -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  391. -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  392. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  393. -# `yes'.
  394. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
  395. -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  396. -AC_ARG_ENABLE(fast-install,
  397. -changequote(<<, >>)dnl
  398. -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  399. -changequote([, ])dnl
  400. -[p=${PACKAGE-default}
  401. -case "$enableval" in
  402. -yes) enable_fast_install=yes ;;
  403. -no) enable_fast_install=no ;;
  404. -*)
  405. - enable_fast_install=no
  406. - # Look at the argument we got. We use all the common list separators.
  407. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  408. - for pkg in $enableval; do
  409. - if test "X$pkg" = "X$p"; then
  410. - enable_fast_install=yes
  411. - fi
  412. - done
  413. - IFS="$ac_save_ifs"
  414. - ;;
  415. -esac],
  416. -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  417. -])
  418. -
  419. -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  420. -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  421. -AC_ENABLE_FAST_INSTALL(no)])
  422. -
  423. -# AC_PROG_LD - find the path to the GNU or non-GNU linker
  424. -AC_DEFUN(AC_PROG_LD,
  425. -[AC_ARG_WITH(gnu-ld,
  426. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  427. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  428. -AC_REQUIRE([AC_PROG_CC])dnl
  429. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  430. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  431. -ac_prog=ld
  432. -if test "$ac_cv_prog_gcc" = yes; then
  433. - # Check if gcc -print-prog-name=ld gives a path.
  434. - AC_MSG_CHECKING([for ld used by GCC])
  435. - ac_prog=`($CC -print-prog-name=ld) 2>&5`
  436. - case "$ac_prog" in
  437. - # Accept absolute paths.
  438. -changequote(,)dnl
  439. - [\\/]* | [A-Za-z]:[\\/]*)
  440. - re_direlt='/[^/][^/]*/\.\./'
  441. -changequote([,])dnl
  442. - # Canonicalize the path of ld
  443. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  444. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  445. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  446. - done
  447. - test -z "$LD" && LD="$ac_prog"
  448. - ;;
  449. - "")
  450. - # If it fails, then pretend we aren't using GCC.
  451. - ac_prog=ld
  452. - ;;
  453. - *)
  454. - # If it is relative, then search for the first ld in PATH.
  455. - with_gnu_ld=unknown
  456. - ;;
  457. - esac
  458. -elif test "$with_gnu_ld" = yes; then
  459. - AC_MSG_CHECKING([for GNU ld])
  460. -else
  461. - AC_MSG_CHECKING([for non-GNU ld])
  462. -fi
  463. -AC_CACHE_VAL(ac_cv_path_LD,
  464. -[if test -z "$LD"; then
  465. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  466. - for ac_dir in $PATH; do
  467. - test -z "$ac_dir" && ac_dir=.
  468. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  469. - ac_cv_path_LD="$ac_dir/$ac_prog"
  470. - # Check to see if the program is GNU ld. I'd rather use --version,
  471. - # but apparently some GNU ld's only accept -v.
  472. - # Break only if it was the GNU/non-GNU ld that we prefer.
  473. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  474. - test "$with_gnu_ld" != no && break
  475. - else
  476. - test "$with_gnu_ld" != yes && break
  477. - fi
  478. - fi
  479. - done
  480. - IFS="$ac_save_ifs"
  481. -else
  482. - ac_cv_path_LD="$LD" # Let the user override the test with a path.
  483. -fi])
  484. -LD="$ac_cv_path_LD"
  485. -if test -n "$LD"; then
  486. - AC_MSG_RESULT($LD)
  487. -else
  488. - AC_MSG_RESULT(no)
  489. -fi
  490. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  491. -AC_PROG_LD_GNU
  492. -])
  493. -
  494. -AC_DEFUN(AC_PROG_LD_GNU,
  495. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  496. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  497. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  498. - ac_cv_prog_gnu_ld=yes
  499. -else
  500. - ac_cv_prog_gnu_ld=no
  501. -fi])
  502. -])
  503. -
  504. -# AC_PROG_NM - find the path to a BSD-compatible name lister
  505. -AC_DEFUN(AC_PROG_NM,
  506. -[AC_MSG_CHECKING([for BSD-compatible nm])
  507. -AC_CACHE_VAL(ac_cv_path_NM,
  508. -[if test -n "$NM"; then
  509. - # Let the user override the test.
  510. - ac_cv_path_NM="$NM"
  511. -else
  512. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  513. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  514. - test -z "$ac_dir" && ac_dir=.
  515. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  516. - # Check to see if the nm accepts a BSD-compat flag.
  517. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  518. - # nm: unknown option "B" ignored
  519. - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  520. - ac_cv_path_NM="$ac_dir/nm -B"
  521. - break
  522. - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  523. - ac_cv_path_NM="$ac_dir/nm -p"
  524. - break
  525. - else
  526. - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  527. - continue # so that we can try to find one that supports BSD flags
  528. - fi
  529. - fi
  530. - done
  531. - IFS="$ac_save_ifs"
  532. - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  533. -fi])
  534. -NM="$ac_cv_path_NM"
  535. -AC_MSG_RESULT([$NM])
  536. -])
  537. -
  538. -# AC_CHECK_LIBM - check for math library
  539. -AC_DEFUN(AC_CHECK_LIBM,
  540. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  541. -LIBM=
  542. -case "$lt_target" in
  543. -*-*-beos* | *-*-cygwin*)
  544. - # These system don't have libm
  545. - ;;
  546. -*-ncr-sysv4.3*)
  547. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  548. - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  549. - ;;
  550. -*)
  551. - AC_CHECK_LIB(m, main, LIBM="-lm")
  552. - ;;
  553. -esac
  554. -])
  555. -
  556. -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  557. -# the libltdl convenience library, adds --enable-ltdl-convenience to
  558. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  559. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  560. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  561. -# '${top_builddir}/' (note the single quotes!) if your package is not
  562. -# flat, and, if you're not using automake, define top_builddir as
  563. -# appropriate in the Makefiles.
  564. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  565. - case "$enable_ltdl_convenience" in
  566. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  567. - "") enable_ltdl_convenience=yes
  568. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  569. - esac
  570. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  571. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  572. -])
  573. -
  574. -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  575. -# the libltdl installable library, and adds --enable-ltdl-install to
  576. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  577. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  578. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  579. -# '${top_builddir}/' (note the single quotes!) if your package is not
  580. -# flat, and, if you're not using automake, define top_builddir as
  581. -# appropriate in the Makefiles.
  582. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  583. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  584. - AC_CHECK_LIB(ltdl, main,
  585. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  586. - [if test x"$enable_ltdl_install" = xno; then
  587. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  588. - else
  589. - enable_ltdl_install=yes
  590. - fi
  591. - ])
  592. - if test x"$enable_ltdl_install" = x"yes"; then
  593. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  594. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
  595. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  596. - else
  597. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  598. - LIBLTDL="-lltdl"
  599. - INCLTDL=
  600. - fi
  601. -])
  602. -
  603. -dnl old names
  604. -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
  605. -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
  606. -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
  607. -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
  608. -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
  609. -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
  610. -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
  611. -
  612. -dnl This is just to silence aclocal about the macro not being used
  613. -ifelse([AC_DISABLE_FAST_INSTALL])dnl
  614. -
  615. -# Macro to add for using GNU gettext.
  616. -# Ulrich Drepper <drepper@cygnus.com>, 1995.
  617. -#
  618. -# Modified to never use included libintl.
  619. -# Owen Taylor <otaylor@redhat.com>, 12/15/1998
  620. -#
  621. -#
  622. -# This file can be copied and used freely without restrictions. It can
  623. -# be used in projects which are not available under the GNU Public License
  624. -# but which still want to provide support for the GNU gettext functionality.
  625. -# Please note that the actual code is *not* freely available.
  626. -
  627. -# serial 5
  628. -
  629. AC_DEFUN(AM_GTK_WITH_NLS,
  630. [AC_MSG_CHECKING([whether NLS is requested])
  631. dnl Default is enabled NLS