File: configure.ac

package info (click to toggle)
bluefish 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 24,324 kB
  • ctags: 3,922
  • sloc: xml: 149,534; ansic: 43,499; sh: 10,145; makefile: 891; sed: 16
file content (631 lines) | stat: -rw-r--r-- 17,159 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
dnl ************************
dnl configure.ac
dnl $Id: configure.ac 5931 2010-05-24 18:37:02Z oli4 $
dnl
dnl Copyright (C) 2002-2009 Olivier Sessink
dnl Copyright (C) 2006-2009 Daniel Leidert
dnl
dnl This file is free software. The copyright owner gives unlimited
dnl permission to copy, distribute and modify it.
dnl ************************

AC_PREREQ([2.59])

AC_INIT([bluefish],[2.0.1],[http://bugzilla.gnome.org/buglist.cgi?product=bluefish])

dnl Have to save them here!
if test "${ac_configure_args+set}" != "set" ; then
	AC_DEFINE_UNQUOTED([CONFIGURE_OPTIONS], ["$0 $@"], [The configure options used to compile bluefish.])
else
	AC_DEFINE_UNQUOTED([CONFIGURE_OPTIONS], ["$0 $ac_configure_args"], [The configure options used to compile bluefish.])
fi

dnl The `-Wno-portability' value will suppress the GNU make warnings. Add it if necessary.
AM_INIT_AUTOMAKE([1.8 -Wall])
AC_CONFIG_SRCDIR(src/bluefish.c)
AC_CONFIG_HEADERS(src/config.h)
AC_CANONICAL_HOST

AC_REVISION($Revision: 5931 $)

AM_MAINTAINER_MODE

dnl ************************
dnl   I18N options
dnl ************************

m4_define([_BF_LINGUAS], [bg cs da de el es eu fi fr gl hu it ja ko_KR nb nl pl pt pt_BR ro ru sk sr sv ta tr uk zh_CN zh_TW])
#ALL_LINGUAS="bg cs da de el es eu fi fr gl hu it ja ko_KR nb nl pl pt pt_BR ro ru sk sr sv ta tr uk zh_CN zh_TW"
AC_SUBST([ALL_LINGUAS], "_BF_LINGUAS")
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [gettext domain])
AM_GLIB_GNU_GETTEXT

IT_PROG_INTLTOOL
dnl if AM_PO_SUBDIRS is available use it (most recent systems)
dnl else try to use the very old AM_WITH_NLS
dnl or try AM_GNU_GETTEXT at last 
m4_ifdef(
	[AM_PO_SUBDIRS],
	[AM_PO_SUBDIRS],
	[
	 m4_ifdef(
	 	[AM_WITH_NLS],
	 	[AM_WITH_NLS([external])],
	 	[AM_GNU_GETTEXT([external])]
	 )
	]
)

BF_DEFINE_LINGUAS(_BF_LINGUAS)

dnl ************************
dnl   Compiler options
dnl ************************

#AC_ARG_PROGRAM
AC_PROG_CC
m4_ifdef(
[LT_INIT],
[
dnl libtool 2.x macros
LT_INIT([disable-static dlopen win32-dll])
LT_PROG_RC
],[
dnl libtool 1.4 macros.
AC_DISABLE_STATIC
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_RC
AC_PROG_LIBTOOL
])
m4_ifdef([DOLT], [DOLT])
AC_ISC_POSIX
AC_C_INLINE
AC_PROG_INSTALL

if test "$CC" = "gcc" ; then
	CFLAGS="$CFLAGS -Wall -pipe"
fi

case "$host_os" in
	windows* | cygwin* | mingw*)
		AC_DEFINE([WIN32], [1], [Define to 1 if you have a Cygwin/Windows OS.])
		LIBS="$LIBS -lintl.dll"
		AC_MSG_NOTICE([platform is... Windows/Cygwin])
	;;
	solaris*)
		AC_DEFINE([PLATFORM_SOLARIS], [1], [Define to 1 if you have a Solaris OS.])
		AC_MSG_NOTICE([platform is... Solaris])
	;;
esac

case "$host" in
	*-*-mingw* | *cygwin* | *windows*)
		native_win32=yes
	;;		
	*-apple-darwin*)
		AC_DEFINE([PLATFORM_DARWIN], [1], [Define to 1 if you have a Darwin host.])
		AC_MSG_NOTICE([platform is... MacOSX])
	;;
	*)
		native_win32=no
	;;
esac

if test "x$native_win32" = "xyes"; then
AC_CHECK_TOOL([WINDRES], [windres], [no])
if test "x$WINDRES" = "xno"; then
AC_MSG_ERROR([The tool 'windres' was not found. Aborting.])
fi
AC_PROG_SED
AC_SUBST([SPLIT_VERSION], [`echo $VERSION | $SED -e 's/-.*//' | $SED -e 's/\./,/g'`])
fi
AM_CONDITIONAL([OS_WIN32], [test "x$native_win32" = "xyes"])

dnl ************************
dnl   Necessary tools
dnl ************************

AC_ARG_VAR(
	[GDK_PIXBUF_CSOURCE],
	[The `gdk-pixbuf-csource' executable. Use it to define or override its location.]
)
AC_CHECK_PROG([GDK_PIXBUF_CSOURCE], [gdk-pixbuf-csource], [gdk-pixbuf-csource])

dnl ************************
dnl   Configure options e/d
dnl ************************

AC_ARG_ENABLE(
	[debugging-output],
	AC_HELP_STRING(
		[--enable-debugging-output],
		[enable massive debugging output (slows down the program) @<:@default=no@:>@]
	),
	[
	 if test "x$enableval" != "xno"; then
		 AC_DEFINE([DEBUG], [1], [Define to 1 if you want to have debug output.])
	 fi
	]
)

AC_ARG_ENABLE(
	[highlight-profiling],
	AC_HELP_STRING(
		[--enable-highlight-profiling],
		[enable profiling information about highlighting patterns (slows down the program) @<:@default=no@:>@]
	),
	[
	 if test "x$enableval" != "xno"; then
		 AC_DEFINE([HL_PROFILING], [1], [Define to 1 if you want to have profiling information about highlighting patterns.])
	 fi
	]
)

AC_ARG_ENABLE(
	[development],
	AC_HELP_STRING(
		[--enable-development],
		[enable development checks (slows down the program) @<:@default=no@:>@]
	),
	[
	 if test "x$enableval" != "xno"; then
		 AC_DEFINE([DEVELOPMENT], [1], [Define to 1 if you want to have development checks.])
	 fi
	]
)

AC_ARG_ENABLE(
	[gprof-profiling],
	AC_HELP_STRING(
		[--enable-gprof-profiling],
		[enable gprof profiling (slows down the program) @<:@default=no@:>@]
	),
	[
	 if test "x$enableval" != "xno"; then
		 CFLAGS="$CFLAGS -pg"
		 LDFLAGS="$LDFLAGS -pg"
	 fi
	]
)

AC_ARG_ENABLE(
	[gcov-coverage],
	AC_HELP_STRING(
		[--enable-gcov-coverage],
		[enable coverage (slows down the program) @<:@default=no@:>@]
	),
	[
	 if test "x$enableval" != "xno"; then
		 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
	 fi
	]
)

dnl To create our catalog and maybe update the systems XML catalog, we need xmlcatalog.
dnl But because several systems like Debian or Mac use their own system, so let the user
dnl decide, if he wants to update the sytems catalog.
AC_PATH_PROG([XMLCATALOG], [xmlcatalog], [no])
if test "x$XMLCATALOG" = "xno"; then
	AC_MSG_WARN([Install the xmlcatalog application, which is delivered with the GNOME xml-library.])
fi

AC_ARG_ENABLE(
	[xml-catalog-update],
	AC_HELP_STRING(
		[--enable-xml-catalog-update],
		[
		 enable (or disable) the running of xmlcatalog after installation -
		 some distributions like Debian use their own system for registering
		 catalogs, so be careful here and also check the `--with-xml-catalog'
		 option @<:@default=yes@:>@
		]
	),
)

AC_ARG_ENABLE(
	[update-databases],
	AC_HELP_STRING(
		[--enable-update-databases],
		[
		 enable (or disable) the running of update-desktop-database/update-mime-database
		 after installation @<:@default=yes@:>@
		]
	)
)

AC_ARG_VAR(
	[UPDATE_DESKTOP_DATABASE],
	[The `update-desktop-database' program. Use it to define or override its location.]
)
AC_ARG_VAR(
	[UPDATE_MIME_DATABASE],
	[The `update-mime-database' program. Use it to define or override its location.]
)
if test "x$enable_update_databases" != "xno" ; then
	AC_PATH_PROG([UPDATE_DESKTOP_DATABASE], [update-desktop-database])
	AC_PATH_PROG([UPDATE_MIME_DATABASE], [update-mime-database])
fi

AM_CONDITIONAL([HAVE_UPDATE_DESKTOP_DATABASE], [test -n "$UPDATE_DESKTOP_DATABASE"])
AM_CONDITIONAL([HAVE_UPDATE_MIME_DATABASE], [test -n "$UPDATE_MIME_DATABASE"])

AC_ARG_ENABLE(
	[spell-check],
	AC_HELP_STRING(
		[--enable-spell-check],
		[enable (or disable) spell checking capabilities @<:@default=yes@:>@]
	)
)

dnl ************************
dnl   Configure options w/wo
dnl ************************

AC_ARG_WITH(
	[xml-catalog],
	AC_HELP_STRING(
		[--with-xml-catalog=@<:@FILE@:>@],
		[
		 the specified file is the systems XML catalog (/etc/xml/catalog for most systems),
		 that shall be updated after installation running
		 xmlcatalog @<:@default=${sysconfdir}/xml/catalog@:>@
		]
	),
	[xmlcatalog="$withval"],
	[xmlcatalog="${sysconfdir}/xml/catalog"]
)

AC_ARG_WITH(
	[freedesktop_org-menu],
	AC_HELP_STRING(
		[--with-freedesktop_org-menu=@<:@DIR@:>@],
		[install freedesktop.org menu files in directory DIR (if supplied) or suppress installation @<:@default=${datadir}/applications@:>@]
	),
	[fdomenupath="$withval"],
	[fdomenupath="${datadir}/applications"]
)

AC_ARG_WITH(
	[freedesktop_org-mime], 
	AC_HELP_STRING(
		[--with-freedesktop_org-mime=@<:@DIR@:>@],
		[install freedesktop.org mime support files in directory DIR (if supplied) or suppress installation @<:@default=${datadir}/mime@:>@]
	),
	[fdomimepath="$withval"],
	[fdomimepath="${datadir}/mime"]
)

AC_ARG_WITH(
	[theme-path],
	AC_HELP_STRING(
		[--with-theme-path=@<:@DIR@:>@],
		[install theme icons in directory DIR (if supplied) or suppress installation @<:@default=${datadir}/icons/hicolor@:>@]
	),
	[iconthemepath="$withval"],
	[iconthemepath="${datadir}/icons/hicolor"]
)

AC_ARG_WITH(
	[icon-path],
	AC_HELP_STRING(
		[--with-icon-path=@<:@DIR@:>@],
		[install GNOME-pixmap icons in directory DIR (if supplied) or suppress installation @<:@default=${datadir}/pixmaps@:>@]
	),
	[iconpath="$withval"],
	[iconpath="${datadir}/pixmaps"]
)

AC_MSG_CHECKING([for system XML catalog])
if ! test -f "$xmlcatalog" ; then
	AC_MSG_RESULT([not found])
	AC_MSG_NOTICE([The given systems XML catalog $xmlcatalog seems to be unavailable.])
	AC_MSG_NOTICE([We will not try to update it after installation.])
	XML_CATALOG_FILE=""
else
	AC_MSG_RESULT([$xmlcatalog])
	XML_CATALOG_FILE="$xmlcatalog"
fi
	
AC_SUBST([XML_CATALOG_FILE])
AM_CONDITIONAL([REGISTER_XML_CATALOG], [test "x$enable_xml_catalog_update" != "xno" -a -n "$XML_CATALOG_FILE" ])
AC_SUBST([fdomenupath])
AM_CONDITIONAL(INSTALL_FDOMENU, [test "x$fdomenupath" != "xno"])
AC_SUBST([fdomimepath])
AM_CONDITIONAL(INSTALL_FDOMIME, [test "x$fdomimepath" != "xno"])
AC_SUBST([iconthemepath])
AM_CONDITIONAL(INSTALL_THEMEICONS, [test "x$iconthemepath" != "xno"])
AC_SUBST([iconpath])
AM_CONDITIONAL(INSTALL_ICONS, [test "x$iconpath" != "xno"])


dnl ************************
dnl   Standard headers
dnl ************************

AC_HEADER_STDC


dnl ************************
dnl   Libraries
dnl ************************

PKG_PROG_PKG_CONFIG

# it is unclear to me if gio requires g_thread_init(), but if it does, we need to include gthread-2.0
if test "x$native_win32" = "xyes"; then
	GIO_PC="gio-2.0"
else
	GIO_PC="gio-unix-2.0"
fi

BF_dependencies="\
gtk+-2.0 >= 2.12 \
gmodule-2.0 >= 2.12 \
gobject-2.0 \
glib-2.0 \
pango \
gdk-pixbuf-2.0 \
gdk-2.0 \
$GIO_PC >= 2.16 \
gthread-2.0 \
libxml-2.0"

if test "x$enable_spell_check" != "xno"; then
	PKG_CHECK_EXISTS(
		[enchant],
		[
		 BF_dependencies="$BF_dependencies enchant"
		 AC_DEFINE([HAVE_LIBENCHANT], [1], [Define to 1 if you have the `enchant' library (-lenchant).])
                 PKG_CHECK_EXISTS(
			[enchant >= 1.4],
			[AC_DEFINE([HAVE_LIBENCHANT_1_4], [1], [Define to 1 if you have the `enchant' library (-lenchant) >= 1.4.])]
		 )
		],
		[
		 AC_CHECK_HEADERS(
			[enchant.h enchant/enchant.h],
			AC_CHECK_LIB(
				[enchant],
				[enchant_dict_check]
			)
		 )
		]
	)
fi

PKG_CHECK_MODULES([BLUEFISH_REQUIRED], [$BF_dependencies])

# from https://sourceforge.net/apps/trac/gtk-osx/wiki/Integrate
# to integrate bluefish in the OSX GUI
AC_MSG_CHECKING([for ige Mac OSX integration])
_gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
if test "x$_gdk_tgt" = "xquartz"; then
	BF_igemacintegration="ige-mac-integration"
	AC_MSG_RESULT([gdk target is $_gdk_tgt])
	PKG_CHECK_MODULES(
		[BLUEFISH_IGEMAC],
		[$BF_igemacintegration],
		[
		 AC_DEFINE([MAC_INTEGRATION], [1], [Define to 1 for ige Mac OSX integration.])
		]
	)
else
	AC_MSG_RESULT([no])
fi


# optionally build the charmap plugin if gucharmap is available
PKG_CHECK_MODULES(
	[CHARMAP_PLUGIN],
	[gucharmap-2],
	[
	 build_charmap_plugin=yes
	 AC_DEFINE([HAVE_LIBGUCHARMAP_2], [1], [Define to 1 if you have the `gucharmap-2' library (-lgucharmap).])
	],
	[PKG_CHECK_MODULES(
		[CHARMAP_PLUGIN],
		[gucharmap >= 2.20],
		[
		 build_charmap_plugin=yes
		 AC_DEFINE([HAVE_LIBGUCHARMAP], [1], [Define to 1 if you have the `gucharmap' library (-lgucharmap).])
		],
		[
		 build_charmap_plugin=no
		 AC_MSG_WARN([Disabling the building of the charmap plugin.])
		 AC_MSG_WARN([Install gucharmap/gucharmap2 (>= 2.20) library/headers to build the plugin.])
		]
	)]
)
AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xyes"])

AC_SEARCH_LIBS([log10], [m])
AC_SEARCH_LIBS([nanosleep], [posix4 rt])

AC_ARG_ENABLE(
	[python],
	AC_HELP_STRING(
		[--enable-python],
		[enable (or disable) python integration (HIGHLY EXPERIMENTAL) @<:@default=no@:>@]
	),
	[enable_python="$enableval"],
	[enable_python="no"]
)

if test "x$enable_python" = "xyes" ; then
	AC_ARG_VAR(
		[PYTHON],
		[The 'python' binary with path. Use it to define or override the location of 'python'.]
	)
	AC_PATH_PROGS([PYTHON], [python python2.4 python2.3 python2.2 python2])
	if test -n "$PYTHON" ; then
		# The following was inspired by Andrew Collier's AC_PYTHON_MODULE macro.
		for python_module in "sys" "distutils.sysconfig" ; do
			AC_MSG_CHECKING([for python module '$python_module'])
			$PYTHON -c "import $python_module" 2>/dev/null
			if test "$?" -ne "0" ; then
				AC_MSG_RESULT([no])
				AC_MSG_NOTICE([This could mean, that the module '$python_module' is not available
or not shipped with the python runtime (like e.g. on SuSE systems,
where the necessary modules are in the python-devel package) or that
the python binary '$PYTHON' does not exist.])
				enable_python="no"
				break
			else
				AC_MSG_RESULT([yes])
			fi
		done
		if test "x$enable_python" != "xno" ; then
			AC_MSG_CHECKING([for Python version])
			PY_VER=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_version();'`
			PY_LIB=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
			PY_INC=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc();'`
			AC_MSG_RESULT([$PY_VER])
			changequote([<<, >>])
			$PYTHON -c "import sys; map(int,sys.version[:3].split('.'))>= [2,2] or sys.exit(1)"
			changequote([, ])
			if test "$?" -ne "1" ; then
				AC_MSG_CHECKING([for Python $PY_VER compile flags])
				PY_PREFIX=`$PYTHON -c 'import sys; print sys.prefix'`
				PY_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix'`
				if test -f "$PY_INC/Python.h" ; then
					AC_MSG_RESULT([-I$PY_INC])
					AC_MSG_CHECKING([for Python $PY_VER link flags])
					PYSHARED=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_var("LIBS")'`
					AC_MSG_RESULT([-L$PY_LIB/config -lpython$PY_VER $PYSHARED])
					LIBS="$LIBS -L$PY_LIB/config -lpython$PY_VER $PYSHARED"
					CFLAGS="$CFLAGS -I$PY_INC"
				else
					enable_python="no"
					AC_MSG_RESULT([Can't find Python.h])
				fi
			else
				AC_MSG_WARN([Python too old. Only 2.2 or above is supported.])
				enable_python="no"
			fi
		fi
	else
		enable_python="no"
	fi
fi
if test "x$enable_python" = "xyes"; then
	AC_DEFINE([HAVE_PYTHON], [1], [Define to 1 if you have python installed.])
fi


dnl ************************
dnl   Header
dnl ************************

AC_CHECK_HEADERS([stdlib.h unistd.h string.h strings.h errno.h stdio.h sys/stat.h ctype.h getopt.h math.h time.h sys/types.h fcntl.h netdb.h netinet/in.h sys/socket.h arpa/inet.h dirent.h sys/select.h sys/time.h sys/ipc.h sys/msg.h regex.h])

AC_CHECK_FUNCS([msgrcv msgsnd ctime ctime_r asctime asctime_r localtime])

# with MingW32 we'll find regcomp() in -lgnurx; #593799
AC_SEARCH_LIBS([regcomp], [gnurx regex])

# test for bind(), accept(), socket(); #593801 and #602133
AC_SEARCH_LIBS([bind], [socket ws2_32])

AC_CHECK_FUNCS_ONCE([regcomp bind socket accept])

dnl **************************
dnl   Spell checker
dnl **************************

AC_DEFINE([WITH_SPC], [1], [Don't define to 1 if you want to build without spell-checker.])
AC_FUNC_SELECT_ARGTYPES
AC_HEADER_TIME


dnl ************************
dnl   Final Cflags/Libs
dnl ************************

CFLAGS="$CFLAGS $BLUEFISH_REQUIRED_CFLAGS $BLUEFISH_IGEMAC_CFLAGS"
LIBS="$LIBS $BLUEFISH_REQUIRED_LIBS $BLUEFISH_IGEMAC_LIBS"


dnl ************************
dnl   Locations
dnl ************************

if test "$prefix" == "NONE"; then
	AC_SUBST([prefix],[${ac_default_prefix}])
fi

if test "$exec_prefix" == "NONE"; then
	AC_SUBST([exec_prefix],[${prefix}])
fi

if test -z "$localedir"; then
	AC_SUBST([localedir],[${datadir}/locale])
fi

if test -z "$docdir"; then
	AC_SUBST(
		[docdir],
		[
		 m4_ifset(
			[AC_PACKAGE_TARNAME],
			[${datadir}'/doc/${PACKAGE_TARNAME}'],
			[${datadir}'/doc/${PACKAGE}']
		 )
		]
	)
fi

dnl *******************************
dnl   Manpage macros
dnl *******************************
BF_PROG_MAN
BF_PROG_JING
BF_PROG_XMLLINT


dnl *******************************
dnl   Output Makefiles
dnl *******************************
AC_CONFIG_FILES([
	Makefile
	data/Makefile
	data/bflang/Makefile
	data/bflib/Makefile
	data/templates/Makefile
	desktop-data/Makefile
	images/Makefile
	man/Makefile
	po/Makefile.in
	src/Makefile
	src/pixmaps/Makefile
	src/plugin_about/Makefile
	src/plugin_about/po/Makefile.in
	src/plugin_charmap/Makefile
	src/plugin_charmap/po/Makefile.in
	src/plugin_entities/Makefile
	src/plugin_entities/po/Makefile.in
	src/plugin_htmlbar/Makefile
	src/plugin_htmlbar/pixmaps/Makefile
	src/plugin_htmlbar/po/Makefile.in
	src/plugin_infbrowser/Makefile
	src/plugin_infbrowser/po/Makefile.in
	src/plugin_snippets/Makefile
	src/plugin_snippets/po/Makefile.in
	src/bluefish_rc.rc
	win32/Makefile
	win32/Makefile.mingw
])
AC_OUTPUT


dnl *******************************
dnl   Feedback
dnl *******************************
#AC_MSG_NOTICE([
#-----------
#If you like this program, please let me know and send me
#a postcard and tell me what city/country you're from
#-----------])
#