configure.ac 16.5 KB
Newer Older
1
2
3
4
# Configuration for GNU nano - a small and user-friendly text editor
#
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
#
5
6
7
8
# GNU nano is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
9
#
10
11
12
13
# GNU nano is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
14
15
#
# You should have received a copy of the GNU General Public License
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
16
# along with GNU nano; if not, write to the Free Software
17
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
# USA.
19
#
20
# $Id$
21

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
22
AC_INIT([GNU nano], [1.3.9-cvs], [nano-devel@gnu.org], [nano])
Jordi Mallach's avatar
Jordi Mallach committed
23
AC_CONFIG_SRCDIR([src/nano.c])
24
AC_CANONICAL_TARGET([])
25
AM_INIT_AUTOMAKE
26
AC_CONFIG_HEADERS([config.h])
27

28
AC_PREREQ(2.54)
Chris Allegretta's avatar
Chris Allegretta committed
29
30

dnl Checks for programs.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
31

32
AC_GNU_SOURCE
Chris Allegretta's avatar
Chris Allegretta committed
33
AC_PROG_CC
34
AC_PROG_LN_S
Chris Allegretta's avatar
Chris Allegretta committed
35
AC_ISC_POSIX
Jordi Mallach's avatar
Jordi Mallach committed
36
AC_SYS_LARGEFILE
Chris Allegretta's avatar
Chris Allegretta committed
37

38
dnl Internationalization macros.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
39

40
41
AM_GNU_GETTEXT_VERSION(0.11.5)
AM_GNU_GETTEXT([external], [need-ngettext])
42
AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
43

Chris Allegretta's avatar
Chris Allegretta committed
44
dnl Checks for header files.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
45

Chris Allegretta's avatar
Chris Allegretta committed
46
AC_HEADER_STDC
47
AC_CHECK_HEADERS(fcntl.h getopt.h libintl.h limits.h regex.h termios.h wchar.h wctype.h)
48
AC_CHECK_HEADER(regex.h,
49
    AC_MSG_CHECKING([for broken regexec from glibc 2.2.3])
50
51
52
    AC_TRY_RUN([
#include <sys/types.h>
#include <regex.h>
53
54
55
56
57
58
59
60
61
62
int main(void)
{
    regex_t reg;
    size_t n = 1;
    regmatch_t r;
    regcomp(&reg, "\\<", 0);
    regexec(&reg, "", n, &r, 0);
    regfree(&reg);
    return 0;
}],
63
	AC_MSG_RESULT(no),
64
	AC_MSG_RESULT(yes)
65
	AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string under certain conditions, as the one from glibc 2.2.3 does.]),
66
	AC_MSG_RESULT([cross-compiling; assuming no])))
Chris Allegretta's avatar
Chris Allegretta committed
67

68
69
dnl Checks for options.

Chris Allegretta's avatar
Chris Allegretta committed
70
71
AC_ARG_ENABLE(debug, 
[  --enable-debug          Enable debugging (disabled by default)],
72
[if test x$enableval = xyes; then
73
    AC_DEFINE(DEBUG, 1, [Define this to enable nano debug messages and assert warnings.])
Chris Allegretta's avatar
Chris Allegretta committed
74
    debug_support=yes
75
fi])
Chris Allegretta's avatar
Chris Allegretta committed
76

77
if test x$debug_support != xyes; then
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
78
    AC_DEFINE(NDEBUG, 1, [Shut up the assert warnings :-)])
Chris Allegretta's avatar
Chris Allegretta committed
79
80
fi

81
AC_ARG_ENABLE(extra,
82
[  --enable-extra          Enable extra features, currently only easter eggs],
83
84
[if test x$enableval = xyes; then
    AC_DEFINE(NANO_EXTRA, 1, [Define this to enable the extra stuff.]) extra_support=yes
85
fi])
86

Chris Allegretta's avatar
Chris Allegretta committed
87
AC_ARG_ENABLE(tiny,
88
[  --enable-tiny           Disable features for the sake of size],
Chris Allegretta's avatar
Chris Allegretta committed
89
[if test x$enableval = xyes; then
90
    AC_DEFINE(NANO_TINY, 1, [Define this to make the nano executable as small as possible.]) tiny_support=yes
91
    AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.]) 
92
    AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help menu.]) 
93
    AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routine.]) 
Chris Allegretta's avatar
Chris Allegretta committed
94
95
    AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse functions.]) 
    AC_DEFINE(DISABLE_OPERATINGDIR, 1, [Define this to disable setting of the operating directory (chroot of sorts).]) 
96
97
    AC_DEFINE(DISABLE_SPELLER, 1, [Define this to disable the use(full|less) spelling functions.]) 
    AC_DEFINE(DISABLE_TABCOMP, 1, [Define to disable the tab completion code Chris worked so hard on!]) 
98
fi])
Chris Allegretta's avatar
Chris Allegretta committed
99

100
101
AC_ARG_ENABLE(browser,
[  --disable-browser       Disable mini file browser],
102
[if test x$enableval != xyes; then
103
    AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.])
104
fi])
105

106
AC_ARG_ENABLE(help,
107
[  --disable-help          Disable help function],
108
[if test x$enableval != xyes; then
109
    AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help menu.])
110
fi])
111

112
113
AC_ARG_ENABLE(justify,
[  --disable-justify       Disable justify/unjustify function],
114
[if test x$enableval != xyes; then
115
    AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routine.]) 
116
fi])
117

118
119
AC_ARG_ENABLE(mouse,
[  --disable-mouse         Disable mouse support (and -m flag)],
120
[if test x$enableval != xyes; then
121
    AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse functions.])
122
fi])
123

124
125
AC_ARG_ENABLE(operatingdir,
[  --disable-operatingdir  Disable setting of operating directory (chroot of sorts)],
126
[if test x$enableval != xyes; then
127
    AC_DEFINE(DISABLE_OPERATINGDIR, 1, [Define this to disable setting of the operating directory (chroot of sorts).])
128
fi])
129

130
AC_ARG_ENABLE(speller,
131
[  --disable-speller       Disable spell checker function],
132
[if test x$enableval != xyes; then
133
    AC_DEFINE(DISABLE_SPELLER, 1, [Define this to disable the use(full|less) spelling functions.])
134
fi])
135

136
137
AC_ARG_ENABLE(tabcomp,
[  --disable-tabcomp       Disable tab completion code for a smaller binary],
138
[if test x$enableval != xyes; then
139
    AC_DEFINE(DISABLE_TABCOMP, 1, [Define to disable the tab completion code Chris worked so hard on!]) 
140
fi])
Chris Allegretta's avatar
Chris Allegretta committed
141

142
AC_ARG_ENABLE(wrapping,
143
[  --disable-wrapping      Disable all wrapping of text (and -w flag)],
144
[if test x$enableval != xyes; then
145
    AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable any and all text wrapping.])
146
fi])
147

148
149
AC_ARG_ENABLE(wrapping-as-root,
[  --disable-wrapping-as-root  Disable wrapping of text as root by default],
150
[if test x$enableval != xyes; then
151
    AC_DEFINE(DISABLE_ROOTWRAP, 1, [Define this to disable wrapping as root by default.])
152
fi])
153

154
155
156
157
AC_ARG_ENABLE(color,
[  --enable-color          Enable color and syntax highlighting],
[if test x$enableval = xyes; then
    AC_DEFINE(ENABLE_NANORC, 1, [Define this to use the .nanorc file.]) nanorc_support=yes
158
    AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes
159
160
161
162
163
164
165
166
167
168
169
170
    AC_MSG_WARN([
***********************************************************************
*** WARNING: Color support is far from perfect, but functional.     ***
*** Be careful with syntax in your .nanorc or nano may malfunction. ***
***********************************************************************
])
fi])

AC_ARG_ENABLE(multibuffer,
[  --enable-multibuffer    Enable multiple file buffers],
[if test x$enableval = xyes; then
    AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes
171
fi])
172

173
174
175
176
AC_ARG_ENABLE(nanorc,
[  --enable-nanorc         Enable use of .nanorc file],
[if test x$enableval = xyes; then
    AC_DEFINE(ENABLE_NANORC, 1, [Define this to use the .nanorc file.]) nanorc_support=yes
177
fi])
178

179
180
181
182
AC_ARG_ENABLE(all,
[  --enable-all            Enable ALL extra nano functionality (kitchen sink option)],
[if test x$enableval = xyes; then
    AC_DEFINE(ENABLE_NANORC, 1, [Define this to use the .nanorc file.]) nanorc_support=yes
183
    AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes
184
185
186
187
188
189
190
    AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes
    AC_DEFINE(NANO_EXTRA, 1, [Define this to enable the extra stuff.]) extra_support=yes
    AC_MSG_WARN([
***********************************************************************
*** WARNING: Color support is far from perfect, but functional.     ***
*** Be careful with syntax in your .nanorc or nano may malfunction. ***
***********************************************************************
191
    ])
192
193
fi])

194
195
196
197
198
199
200
201
202
203
204
AC_MSG_CHECKING([whether to enable UTF-8 support])
AC_ARG_ENABLE(utf8,
[  --enable-utf8           Enable UTF-8 support],
[if test x$enableval = xyes; then
    enable_utf8=yes
else
    enable_utf8=no
fi],
[enable_utf8=auto])
AC_MSG_RESULT($enable_utf8)

205
AC_MSG_CHECKING([whether to use slang])
Chris Allegretta's avatar
Chris Allegretta committed
206
207
208
209
210
211
212
213
214
215
CURSES_LIB_NAME=""
AC_ARG_WITH(slang,
[  --with-slang[=DIR]      Use the slang library instead of curses],
[    case "$with_slang" in
    no)
	AC_MSG_RESULT(no)
	;;
    *)
	AC_MSG_RESULT(yes)

216
	if test x$with_slang != xyes; then
217
218
219
220
	    # Add additional search path
	    LDFLAGS="-L$with_slang/lib $LDFLAGS"
	    CPPFLAGS="-I$with_slang/include $CPPFLAGS"
	fi
Chris Allegretta's avatar
Chris Allegretta committed
221

222
	if test x$enable_utf8 != xno; then
223
224
225
226
227
	    AC_CHECK_HEADER(slcurses.h,
		AC_MSG_CHECKING([for SLutf8_enable in -lslang])
		_libs=$LIBS
		LIBS="$LIBS -lslang"
		AC_TRY_RUN([
228
#include <slcurses.h>
229
int main(void)
230
231
232
233
{
    SLutf8_enable(TRUE);
    return 0;
}],
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
		    [AC_MSG_RESULT(yes)
		    AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
		    slang_support=yes
		    CURSES_LIB_WIDE=yes
		    if test x$with_slang != xyes; then
			CURSES_LIB="-L${with_slang}/lib -lslang"
		    else
			CURSES_LIB="-lslang"
		    fi
		    CURSES_LIB_NAME=slang],
		    [AC_MSG_RESULT(no)

		    # We might need the term library
		    for termlib in ncurses curses termcap terminfo termlib; do
			AC_CHECK_LIB([${termlib}], tputs, [tcap="-l$termlib"])
			test -n "$tcap" && break
		    done

		    AC_MSG_CHECKING([for SLutf8_enable in -lslang $tcap])
		    LIBS="$LIBS $tcap"
		    AC_TRY_RUN([
255
256
#include <slcurses.h>
int main(void)
257
{
258
    SLutf8_enable(TRUE);
259
260
    return 0;
}],
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
			[AC_MSG_RESULT(yes)
			AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
			slang_support=yes
			CURSES_LIB_WIDE=yes
			if test x$with_slang != xyes; then
			    CURSES_LIB="-L${with_slang}/lib -lslang $tcap"
			else
			    CURSES_LIB="-lslang $tcap"
			fi
			CURSES_LIB_NAME=slang],
			[AC_MSG_RESULT(no)

			# We might need the math library
			AC_MSG_CHECKING([for SLutf8_enable in -lslang $tcap -lm])
			LIBS="$LIBS -lm"
			AC_TRY_RUN([
277
#include <slcurses.h>
278
int main(void)
279
280
281
282
{
    SLutf8_enable(TRUE);
    return 0;
}],
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
			    [AC_MSG_RESULT(yes)
			    AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
			    slang_support=yes
			    CURSES_LIB_WIDE=yes
			    if test x$with_slang != xyes; then
				CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm"
			    else
				CURSES_LIB="-lslang $tcap -lm"
			    fi
			    CURSES_LIB_NAME=slang],
			    [AC_MSG_RESULT(no)],
    AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
    AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
    AC_MSG_WARN([*** Can not use slang when cross-compiling])),
	    AC_MSG_ERROR([
*** The header file slcurses.h was not found. If you wish to use
*** slang support this header file is required. Please either
*** install a version of slang that includes the slcurses.h file or
*** do not call the configure script with --with-slang
	    ]))
	fi

305
306
307
308
309
310
	if eval "test x$CURSES_LIB_NAME = x"; then
	    # Reset libs if the above slang tests failed
	    if test x$enable_utf8 != xno; then
		LIBS=$_libs
	    fi

311
312
313
314
315
	    AC_CHECK_HEADER(slcurses.h,
		AC_MSG_CHECKING([for SLtt_initialize in -lslang])
		_libs=$LIBS
		LIBS="$LIBS -lslang"
		AC_TRY_RUN([
316
317
#include <slcurses.h>
int main(void)
318
319
320
321
{
    SLtt_initialize(NULL);
    return 0;
}],
322
		    [AC_MSG_RESULT(yes)
323
		    AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
324
		    slang_support=yes
325
326
		    if test x$with_slang != xyes; then
			CURSES_LIB="-L${with_slang}/lib -lslang"
327
		    else
328
			CURSES_LIB="-lslang"
329
		    fi
330
331
332
		    CURSES_LIB_NAME=slang],
		    [AC_MSG_RESULT(no)

333
334
335
336
337
338
339
340
		    # We might need the term library
		    for termlib in ncurses curses termcap terminfo termlib; do
			AC_CHECK_LIB([${termlib}], tputs, [tcap="-l$termlib"])
			test -n "$tcap" && break
		    done

		    AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap])
		    LIBS="$LIBS $tcap"
341
342
		    AC_TRY_RUN([
#include <slcurses.h>
343
int main(void)
344
{
345
    SLtt_initialize(NULL);
346
347
348
349
350
    return 0;
}],
			[AC_MSG_RESULT(yes)
			AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
			slang_support=yes
351
352
			if test x$with_slang != xyes; then
			    CURSES_LIB="-L${with_slang}/lib -lslang $tcap"
353
			else
354
			    CURSES_LIB="-lslang $tcap"
355
356
			fi
			CURSES_LIB_NAME=slang],
357
358
359
			[AC_MSG_RESULT(no)

			# We might need the math library
360
			AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap -lm])
361
			LIBS="$LIBS -lm"
362
363
364
			AC_TRY_RUN([
#include <slcurses.h>
int main(void)
365
366
367
368
{
    SLtt_initialize(NULL);
    return 0;
}],
369
370
371
372
373
374
375
376
377
378
379
380
381
			    [AC_MSG_RESULT(yes)
			    AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.])
			    slang_support=yes
			    if test x$with_slang != xyes; then
				CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm"
			    else
				CURSES_LIB="-lslang $tcap -lm"
			    fi
			    CURSES_LIB_NAME=slang],
			    [AC_MSG_RESULT(no)],
    AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
    AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
    AC_MSG_WARN([*** Can not use slang when cross-compiling])),
Chris Allegretta's avatar
Chris Allegretta committed
382
383
384
385
386
	    AC_MSG_ERROR([
*** The header file slcurses.h was not found. If you wish to use
*** slang support this header file is required. Please either
*** install a version of slang that includes the slcurses.h file or
*** do not call the configure script with --with-slang
387
388
	    ]))
	fi
Chris Allegretta's avatar
Chris Allegretta committed
389

390
391
392
	if test "${_libs+set}" = "set"; then
	    LIBS=$_libs
	fi
393

394
	if test x$with_slang != xyes; then
395
396
	    LDFLAGS=${_ldflags}
	fi
Chris Allegretta's avatar
Chris Allegretta committed
397
	;;
398
    esac], [AC_MSG_RESULT(no)])
Chris Allegretta's avatar
Chris Allegretta committed
399

400
401
dnl Checks for functions.

402
AC_CHECK_FUNCS(getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen vsnprintf)
403

404
if test x$enable_utf8 != xno; then
405
    AC_CHECK_FUNCS(iswalnum iswblank iswpunct iswspace mblen mbstowcs mbtowc wctomb wcwidth)
406
407
fi

408
if test x$ac_cv_func_vsnprintf = xno; then
409
410
    AM_PATH_GLIB_2_0(2.0.0,,
	AC_MSG_ERROR([
411
412
413
*** vsnprintf() not found.  GLIB 2.x not found either.  You should
*** install the GLIB 2.x library which can be found at
*** ftp://ftp.gtk.org/.]),
414
	glib)
Chris Allegretta's avatar
Chris Allegretta committed
415
416
417
418
419
420
421
422
423
424
fi

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(getopt_long)

dnl Checks for libraries.
425
426

if eval "test x$CURSES_LIB_NAME = x"; then
427
    AC_CHECK_HEADERS(ncurses.h)
428

429
    if test x$enable_utf8 != xno; then
430
	AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes])
431
432
    fi

433
    if eval "test x$CURSES_LIB_NAME = x"; then
434
	AC_CHECK_LIB(ncurses, initscr, [CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses])
435
    fi
Chris Allegretta's avatar
Chris Allegretta committed
436
437
fi

438
if eval "test x$CURSES_LIB_NAME = x"; then
439
    AC_CHECK_HEADERS(curses.h)
440

441
    if test x$enable_utf8 != xno; then
442
	AC_CHECK_LIB(curses, get_wch, [CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses CURSES_LIB_WIDE=yes])
443
444
    fi

445
    if eval "test x$CURSES_LIB_NAME = x"; then
446
447
	 AC_CHECK_LIB(curses, initscr, [CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses])
    fi
Chris Allegretta's avatar
Chris Allegretta committed
448
449
fi

450
if eval "test x$CURSES_LIB_NAME = x"; then
Chris Allegretta's avatar
Chris Allegretta committed
451
    AC_MSG_WARN([
452
*** No curses lib available.  Consider getting the official ncurses
Chris Allegretta's avatar
Chris Allegretta committed
453
454
455
*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
*** errors compiling nano.])
else
456
    AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library])
Chris Allegretta's avatar
Chris Allegretta committed
457
458
fi

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
459
AC_CHECK_LIB([$CURSES_LIB_NAME], use_default_colors, AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.]))
460

461
dnl Parse any configure options.
Chris Allegretta's avatar
Chris Allegretta committed
462
463

LIBS="$LIBS $CURSES_LIB"
Chris Allegretta's avatar
Chris Allegretta committed
464

Chris Allegretta's avatar
Chris Allegretta committed
465
466
AC_SUBST(CURSES_LIB)

467
if test "x$GLIB_CFLAGS" != "x"; then
468
    CFLAGS="$CFLAGS $GLIB_CFLAGS"
Chris Allegretta's avatar
Chris Allegretta committed
469
fi
470
if test "x$GLIB_LIBS" != "x"; then
471
    LDFLAGS="$LDFLAGS $GLIB_LIBS"
Chris Allegretta's avatar
Chris Allegretta committed
472
473
fi

474
if test x$enable_utf8 != xno && \
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
475
476
477
478
479
480
481
482
483
    test x$CURSES_LIB_WIDE = xyes && \
    test x$ac_cv_func_iswalnum = xyes && \
    test x$ac_cv_func_iswpunct = xyes && \
    (test x$ac_cv_func_iswblank = xyes || test x$ac_cv_func_iswspace = xyes) && \
    test x$ac_cv_func_mblen = xyes && \
    test x$ac_cv_func_mbstowcs = xyes && \
    test x$ac_cv_func_mbtowc = xyes && \
    test x$ac_cv_func_wctomb = xyes && \
    test x$ac_cv_func_wcwidth = xyes; then
484
	AC_DEFINE(ENABLE_UTF8, 1, [Define this if your system has sufficient UTF-8 support (a wide curses library, iswalnum(), iswpunct(), iswblank() or iswspace(), mblen(), mbstowcs(), mbtowc(), wctomb(), and wcwidth()).])
485
else
486
    if test x$enable_utf8 = xyes; then
487
488
489
490
491
492
	AC_MSG_ERROR([
*** UTF-8 support was requested, but insufficient UTF-8 support was
*** detected in your curses and/or C libraries.  Please verify that your
*** slang was built with UTF-8 support or your curses was built with
*** wide character support, and that your C library was built with wide
*** character support.])
493
    elif test x$enable_utf8 != xno; then
494
495
496
497
498
499
500
	AC_MSG_WARN([
*** Insufficient UTF-8 support was detected in your curses and/or C
*** libraries.  If you want UTF-8 support, please verify that your slang
*** was built with UTF-8 support or your curses was built with wide
*** character support, and that your C library was built with wide
*** character support.])
    fi
501
502
fi

Jordi Mallach's avatar
Jordi Mallach committed
503
504
505
506
507
508
509
510
511
512
513
514
AC_CONFIG_FILES([
Makefile
doc/Makefile
doc/man/Makefile
doc/man/fr/Makefile
doc/texinfo/Makefile
m4/Makefile
po/Makefile.in
src/Makefile
nano.spec
])

Jordi Mallach's avatar
Jordi Mallach committed
515
AC_OUTPUT