1dnl Initialize autoconf and automake 2AC_PREREQ([2.52]) 3AC_INIT([fluxbox], 4 [1.3.7], 5 [fluxbox-devel@lists.sourceforge.net], [], 6 [http://fluxbox.org/]) 7AC_CONFIG_SRCDIR([src/fluxbox.cc]) 8AC_CONFIG_AUX_DIR([build-aux]) 9AC_CONFIG_MACRO_DIR([m4]) 10AC_USE_SYSTEM_EXTENSIONS 11AM_INIT_AUTOMAKE([foreign 1.10 tar-pax dist-bzip2 subdir-objects]) 12 13dnl Determine default prefix 14AS_IF([test "x$prefix" = "xNONE"], [prefix="$ac_default_prefix"]) 15 16AC_LANG_CPLUSPLUS 17 18dnl Locate required external software 19AC_PROG_CC 20AC_PROG_CXX 21AC_PROG_INSTALL 22AC_PROG_RANLIB 23 24AC_C_CONST 25AC_C_INLINE 26 27AC_TYPE_PID_T 28AC_TYPE_SIZE_T 29AC_STRUCT_TM 30 31dnl Require pkg-config 32m4_ifndef([PKG_PROG_PKG_CONFIG], 33 [m4_fatal([Could not locate the pkg-config autoconf macros. These are usually 34located in /usr/share/aclocal/pkg.m4. If your macros are in a different 35location, try setting the environment variable 36export ACLOCAL_FLAGS="-I/other/macro/dir" 37before running ./autogen.sh or autoreconf again.]) 38]) 39PKG_PROG_PKG_CONFIG 40 41dnl Check for sed 42AC_CHECK_PROGS([regex_cmd], [sed]) 43AS_IF([test "x$regex_cmd" = "x"], [ 44 AC_MSG_ERROR([error. sed is required to build the data files.]) 45]) 46 47dnl Check for system header files 48AC_HEADER_STDC 49AC_HEADER_STDBOOL 50AC_CHECK_HEADERS([ \ 51 ctype.h \ 52 dirent.h \ 53 errno.h \ 54 fcntl.h \ 55 langinfo.h \ 56 libgen.h \ 57 locale.h \ 58 math.h \ 59 nl_types.h \ 60 process.h \ 61 signal.h \ 62 stdarg.h \ 63 stdint.h \ 64 stdio.h \ 65 sys/param.h \ 66 sys/select.h \ 67 sys/signal.h \ 68 sys/stat.h \ 69 sys/time.h \ 70 sys/types.h \ 71 sys/wait.h \ 72 time.h \ 73 unistd.h \ 74]) 75AC_CHECK_HEADERS([ \ 76 cassert \ 77 cctype \ 78 cerrno \ 79 cmath \ 80 cstdarg \ 81 cstdint \ 82 cstdio \ 83 cstdlib \ 84 cstring \ 85 ctime \ 86]) 87AC_CHECK_HEADERS([sstream], [], [ 88 AC_CHECK_HEADERS([strstream], [], [ 89 AC_MSG_ERROR([Your libstdc++ doesn't have the sstream or strstream classes]) 90 ]) 91]) 92 93dnl Check for existance of basename(), setlocale() and strftime() 94AC_FUNC_CLOSEDIR_VOID 95AC_FUNC_ERROR_AT_LINE 96AC_FUNC_FORK 97AC_FUNC_MALLOC 98AC_FUNC_REALLOC 99AC_FUNC_SELECT_ARGTYPES 100AC_FUNC_STAT 101 102AC_CHECK_FUNCS([basename], [], [ 103 AC_CHECK_LIB([gen], [basename], [LIBS="-lgen $LIBS"]) 104]) 105AC_CHECK_FUNCS([ \ 106 alarm \ 107 catclose \ 108 catgets \ 109 catopen \ 110 getpid \ 111 memset \ 112 mkdir \ 113 nl_langinfo \ 114 putenv \ 115 regcomp \ 116 select \ 117 setenv \ 118 setlocale \ 119 sigaction \ 120 snprintf \ 121 sqrt \ 122 strcasecmp \ 123 strcasestr \ 124 strchr \ 125 strstr \ 126 strtol \ 127 strtoul \ 128 sync \ 129 vsnprintf \ 130]) 131 132AC_CHECK_LIBM 133AC_SUBST(LIBM) 134LIBS="$LIBS $LIBM" 135 136dnl Windows requires the mingw-catgets library for the catgets function. 137AC_SEARCH_LIBS([catgets], [catgets], [], []) 138 139dnl The autoconf test for strftime is broken now (due to gcc 3.3 bug?): 140dnl Gcc 3.3 testprog = ``extern "C" char strftime;'', build with g++ test.cc 141dnl breaks with: 142dnl test.cc:1: error: nonnull argument with out-of-range operand number 143dnl (arg 1, operand 3) 144AC_MSG_CHECKING([for strftime]) 145 146AC_COMPILE_IFELSE([ 147 AC_LANG_PROGRAM([#include <time.h>], [[ 148 char * s; 149 time_t t = time(NULL); 150 size_t x = strftime(s, 5, "%a", localtime(&t)); 151 ]]) 152], [ 153 AC_DEFINE([HAVE_STRFTIME], [1], [Define to 1 if you have the 'strftime' function.]) 154 AC_MSG_RESULT([yes]) 155], [ 156 AC_MSG_RESULT([no]) 157]) 158 159AC_MSG_CHECKING([for clock_gettime]) 160AC_COMPILE_IFELSE([ 161 AC_LANG_PROGRAM([#include <time.h>], [[ 162 clock_gettime(CLOCK_MONOTONIC, 0); 163 return 0; 164 ]]) 165], [ 166 AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define to 1 if you have the 'clock_gettime' function.]) 167 AC_MSG_RESULT([yes]) 168 # *bsd has clock_gettime() in libc 169 AC_CHECK_LIB([rt], [clock_gettime], [LIBS="-lrt $LIBS"]) 170], [ 171 AC_MSG_RESULT([no]) 172]) 173 174AC_MSG_CHECKING([for mach_absolute_time]) 175AC_COMPILE_IFELSE([ 176 AC_LANG_PROGRAM([#include <mach/mach_time.h>], [[ 177 mach_absolute_time(); 178 return 0; 179 ]]) 180], [ 181 AC_DEFINE([HAVE_MACH_ABSOLUTE_TIME], [1], [Define to 1 if you have the 'mach_absolute_time' function.]) 182 AC_MSG_RESULT([yes]) 183 #AC_CHECK_LIB([], [clock_gettime], [LIBS="-lrt $LIBS"]) 184], [ 185 AC_MSG_RESULT([no]) 186]) 187 188AM_ICONV 189AS_IF([test x$am_cv_proto_iconv_arg1 = "xconst"], [ 190 AC_DEFINE([HAVE_CONST_ICONV], [1], [Is second argument of iconv() is of type 'const char **' or 'char **']) 191]) 192LIBS="$LIBICONV $LIBS" 193 194dnl Check for networking libraries 195AC_CHECK_LIB([nsl], [t_open], [LIBS="-lnsl $LIBS"]) 196AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket $LIBS"]) 197 198#dnl Check for X headers and libraries 199#AC_PATH_X 200#AC_PATH_XTRA 201#AS_IF([test x$no_x = "xyes"], [ 202# AC_MSG_ERROR([Fluxbox requires the X Window System libraries and headers.]) 203#]) 204 205dnl Check for X11 206PKG_CHECK_MODULES([X11], [ x11 ], 207 [AC_DEFINE([HAVE_X11], [1], [Define if x11 is available]) have_x11=yes], 208 [have_x11=no]) 209AM_CONDITIONAL([X11], [test "$have_x11" = "yes"], AC_MSG_ERROR([Could not find XOpenDisplay in -lX11.])) 210AS_IF([test x$have_x11 = "xno"], [ 211 AC_MSG_ERROR([Fluxbox requires the X Window System libraries and headers.]) 212]) 213 214CXXFLAGS="$X11_CFLAGS $CXXFLAGS" 215LIBS="$X11_LIBS $LIBS" 216 217dnl Check for xpg4 218AC_CHECK_LIB([xpg4], [setlocale], [LIBS="-lxpg4 $LIBS"]) 219AC_CHECK_PROGS([gencat_cmd], [gencat]) 220AS_IF([test "x$gencat_cmd" = "x"], [NLS=""], []) 221 222dnl Check for Remember options 223AC_MSG_CHECKING([whether to include remember functionality]) 224AC_ARG_ENABLE([remember], 225 AS_HELP_STRING([--enable-remember], 226 [include Remembering attributes (default=yes)]), 227 [], [enable_remember=yes] 228) 229AC_MSG_RESULT([$enable_remember]) 230AS_IF([test "x$enable_remember" = "xyes"], [ 231 AC_DEFINE([REMEMBER], [1], [compile with remember]) 232]) 233AM_CONDITIONAL([REMEMBER_SRC], [test "x$enable_remember" = "xyes"]) 234 235dnl Check for regular expressions 236AC_MSG_CHECKING([whether to have (POSIX) regular expression support]) 237AC_ARG_ENABLE([regexp], 238 AS_HELP_STRING([--enable-regexp], 239 [regular expression support (default=yes)]), 240 [], [enable_regexp=yes] 241) 242AS_IF([test "x$enable_regexp" = "xyes"], [ 243 AC_EGREP_HEADER([regex_t], [regex.h], [ 244 AC_DEFINE([USE_REGEXP], [1], [Regular Expression support]) 245 AC_MSG_RESULT([yes]) 246 REGEXP_SRC=true 247 ], [ 248 AC_MSG_RESULT([no]) 249 REGEXP_SRC=false 250 ]) 251]) 252AM_CONDITIONAL([REGEXP_SRC], [test x$REGEXP_SRC = xtrue]) 253 254dnl Check for the Slit 255AC_MSG_CHECKING([whether to include the Slit]) 256AC_ARG_ENABLE([slit], 257 AS_HELP_STRING([--enable-slit], 258 [include code for the Slit (default=yes)]), 259 [], [enable_slit=yes] 260) 261AC_MSG_RESULT([$enable_slit]) 262AS_IF([test "x$enable_slit" = "xyes"], [ 263 AC_DEFINE([USE_SLIT], [1], [compile with slit]) 264]) 265AM_CONDITIONAL([SLIT_SRC], [test "x$enable_slit" = "xyes"]) 266 267dnl Check for Systemtray options 268AC_MSG_CHECKING([whether to include SystemTray]) 269AC_ARG_ENABLE([systray], 270 AS_HELP_STRING([--enable-systray], 271 [include SystemTray (default=yes)]), 272 [], [enable_systray=yes] 273) 274AC_MSG_RESULT([$enable_systray]) 275AS_IF([test "x$enable_systray" = "xyes"], [ 276 AC_DEFINE([USE_SYSTRAY], [1], [compile with systemtray]) 277]) 278AM_CONDITIONAL([SYSTRAY_SRC], [test "x$enable_systray" = "xyes"]) 279 280dnl Check for Toolbar options 281AC_MSG_CHECKING([whether to include Toolbar]) 282AC_ARG_ENABLE([toolbar], 283 AS_HELP_STRING([--enable-toolbar], 284 [include Toolbar (default=yes)]), 285 [], [enable_toolbar=yes] 286) 287AC_MSG_RESULT([$enable_toolbar]) 288 289AS_IF([test "x$enable_systray" = "xyes" -a "x$enable_toolbar" != "xyes"], [ 290 AC_MSG_RESULT([disabled toolbar, but enabled systray => reenable toolbar]) 291 AS_VAR_SET([enable_toolbar], [yes]) 292]) 293AS_IF([test "x$enable_toolbar" = "xyes"], [ 294 AC_DEFINE([USE_TOOLBAR], [1], [compile with toolbar]) 295]) 296AM_CONDITIONAL([TOOLBAR_SRC], [test "x$enable_toolbar" = "xyes"]) 297 298dnl Extended Window Manager Hints 299AC_MSG_CHECKING([whether to support Extended Window Manager Hints]) 300AC_ARG_ENABLE([ewmh], 301 AS_HELP_STRING([--enable-ewmh], 302 [enable support for Extended Window Manager Hints (default=yes)]), 303 [], [enable_ewmh=yes] 304) 305AC_MSG_RESULT([$enable_ewmh]) 306AS_IF([test "x$enable_ewmh" = "xyes"], [ 307 AC_DEFINE([USE_EWMH], [1], [use extened window manager hints]) 308]) 309AM_CONDITIONAL([EWMH], [test "x$enable_ewmh" = "xyes"]) 310 311dnl Check whether to include debugging code 312DEBUG="" 313AC_MSG_CHECKING([whether to include verbose debugging code]) 314AC_ARG_ENABLE([debug], 315 AS_HELP_STRING([--enable-debug], 316 [include verbose debugging code (default=no)]), 317 [], [enable_debug=no] 318) 319AC_MSG_RESULT([$enable_debug]) 320AS_IF([test "x$enable_debug" = "xyes"], [DEBUG="-DDEBUG -Wall"]) 321AC_SUBST([DEBUG]) 322CXXFLAGS="$CXXFLAGS $DEBUG" 323 324dnl Check whether to build test programs 325AC_MSG_CHECKING([whether to build test programs]) 326AC_ARG_ENABLE([test], 327 AS_HELP_STRING([--enable-test], 328 [build programs used in testing fluxbox (default=no)]), 329 [], [enable_test=no] 330) 331AC_MSG_RESULT([$enable_test]) 332AM_CONDITIONAL([TEST], [test "x$enable_test" = "xyes"]) 333 334dnl Check whether to include native language support (i18n) 335AC_MSG_CHECKING([whether to include NLS support]) 336AC_ARG_ENABLE([nls], 337 AS_HELP_STRING([--enable-nls], 338 [include native language support (default=yes)]), 339 [], [enable_nls=yes] 340) 341AC_MSG_RESULT([$enable_nls]) 342AS_IF([test "x$enable_nls" = "xyes"], [ 343 AC_DEFINE([NLS], [1], [Native language support]) 344 NLS="-DNLS" 345], []) 346AC_SUBST([NLS]) 347 348dnl Check for new timed pixmap cache 349AC_MSG_CHECKING([whether to use a timed pixmap cache]) 350AC_ARG_ENABLE([timedcache], 351 AS_HELP_STRING([--enable-timedcache], 352 [use new timed pixmap cache (default=yes)]), 353 [], [enable_timedcache=yes] 354) 355AC_MSG_RESULT([$enable_timedcache]) 356AS_IF([test "x$enable_timedcached" = "xyes"], [ 357 AC_DEFINE([TIMEDCACHE], [1], [timed cache]) 358]) 359 360dnl Check for UTF-8 support 361AC_MSG_CHECKING([whether to have XMB (multibyte font, utf-8) support]) 362AC_ARG_ENABLE([xmb], 363 AS_HELP_STRING([--enable-xmb], 364 [XMB (multibyte font, utf-8) support (default=yes)]), 365 [], [enable_xmb=yes] 366) 367AC_MSG_RESULT([$enable_xmb]) 368AS_IF([test "x$enable_xmb" = "xyes"], [ 369 AC_DEFINE([USE_XMB], [1], [multibyte support]) 370]) 371AM_CONDITIONAL([MULTIBYTE], [test "x$enable_xmb" = "xyes"]) 372 373dnl Check for imlib2 374have_imlib2=no 375AC_ARG_ENABLE([imlib2], AS_HELP_STRING([--disable-imlib2], [disable imlib2 support])) 376AS_IF([test "x$enable_imlib2" != "xno"], [ 377 PKG_CHECK_MODULES([IMLIB2], [ imlib2 >= 1.0.0 ], 378 [AC_DEFINE([HAVE_IMLIB2], [1], [Define if imlib2 is available]) have_imlib2=yes], [have_imlib2=no]) 379 AS_IF([test "x$have_imlib2" = xno -a "x$enable_imlib2" = xyes], [ 380 AC_MSG_ERROR([*** imlib2 support requested but libraries not found]) 381 ]) 382]) 383AM_CONDITIONAL([IMLIB2], [test "$have_imlib2" = "yes"]) 384 385dnl Check for X fonts 386have_xft=no 387AC_ARG_ENABLE([xft], AS_HELP_STRING([--disable-xft], [disable xft support])) 388AS_IF([test "x$enable_xft" != "xno"], [ 389 PKG_CHECK_MODULES([XFT], [ xft ], 390 [AC_DEFINE([USE_XFT], [1], [Define if xft is available]) have_xft=yes], [have_xft=no]) 391 AS_IF([test "x$have_xft" = xno -a "x$enable_xft" = xyes], [ 392 AC_MSG_ERROR([*** xft support requested but libraries not found]) 393 ]) 394]) 395AM_CONDITIONAL([XFT], [test "$have_xft" = "yes"]) 396AS_IF([test "$have_xft" = "yes"], [ 397 AC_CHECK_LIB([Xft], [XftDrawStringUtf8], [have_utf8=yes], [have_utf8=no]) 398 AS_IF([test "$have_utf8" = yes], [ 399 AC_DEFINE([HAVE_XFT_UTF8_STRING], [1], [Define if you have XftDrawStringUtf8]) 400 ]) 401 PKG_CHECK_MODULES([FONTCONFIG], [ fontconfig ], [], AC_MSG_ERROR([Could not find -lfontconfig.])) 402]) 403 404dnl Check for freetype 405have_freetype2=no 406AC_ARG_ENABLE([freetype2], AS_HELP_STRING([--disable-freetype2], [disable freetype2 support])) 407AS_IF([test "x$enable_freetype2" != "xno"], [ 408 PKG_CHECK_MODULES([FREETYPE2], [ freetype2 ], 409 [AC_DEFINE([HAVE_FREETYPE2], [1], [Define if freetype2 is available]) have_freetype2=yes], [have_freetype2=no]) 410 AS_IF([test "x$have_freetype2" = xno -a "x$enable_freetype2" = xyes], [ 411 AC_MSG_ERROR([*** freetype2 support requested but libraries not found]) 412 ]) 413]) 414AM_CONDITIONAL([FREETYPE2], [test "$have_freetype2" = "yes"]) 415 416dnl Check for xrender 417have_xrender=no 418AC_ARG_ENABLE([xrender], AS_HELP_STRING([--disable-xrender], [disable xrender support])) 419AS_IF([test "x$enable_xrender" != "xno"], [ 420 PKG_CHECK_MODULES([XRENDER], [ xrender ], 421 [AC_DEFINE([HAVE_XRENDER], [1], [Define if xrender is available]) have_xrender=yes], [have_xrender=no]) 422 AS_IF([test "x$have_xrender" = xno -a "x$enable_xrender" = xyes], [ 423 AC_MSG_ERROR([*** xrender support requested but libraries not found]) 424 ]) 425]) 426AM_CONDITIONAL([XRENDER], [test "$have_xrender" = "yes"]) 427 428dnl Check for xpm 429have_xpm=no 430AC_ARG_ENABLE([xpm], AS_HELP_STRING([--disable-xpm], [disable xpm support])) 431AS_IF([test "x$enable_xpm" != "xno"], [ 432 PKG_CHECK_MODULES([XPM], [ xpm ], 433 [AC_DEFINE([HAVE_XPM], [1], [Define if xpm is available]) have_xpm=yes], [have_xpm=no]) 434 AS_IF([test "x$have_xpm" = xno -a "x$enable_xpm" = xyes], [ 435 AC_MSG_ERROR([*** xpm support requested but libraries not found]) 436 ]) 437]) 438AM_CONDITIONAL([XPM], [test "$have_xpm" = "yes"]) 439 440dnl Check for Xinerama support and proper library files. 441have_xinerama=no 442AC_ARG_ENABLE([xinerama], AS_HELP_STRING([--disable-xinerama], [disable xinerama support])) 443AS_IF([test "x$enable_xinerama" != "xno"], [ 444 PKG_CHECK_MODULES([XINERAMA], [ xinerama ], 445 [AC_DEFINE([XINERAMA], [1], [Define if xinerama is available]) have_xinerama=yes], [have_xinerama=no]) 446 AS_IF([test "x$have_xinerama" = xno -a "x$enable_xinerama" = xyes], [ 447 AC_MSG_ERROR([*** xinerama support requested but libraries not found]) 448 ]) 449]) 450AM_CONDITIONAL([XINERAMA], [test "$have_xinerama" = "yes"]) 451 452dnl Check for XShape extension support and proper library files. 453have_xext=no 454AC_ARG_ENABLE([xext], AS_HELP_STRING([--disable-xext], [disable Misc X Extension Library support])) 455AS_IF([test "x$enable_xext" != "xno"], [ 456 PKG_CHECK_MODULES([XEXT], [ xext ], 457 [AC_DEFINE([SHAPE], [1], [Define if xext is available]) have_xext=yes], [have_xext=no]) 458 AS_IF([test "x$have_xext" = xno -a "x$enable_xext" = xyes], [ 459 AC_MSG_ERROR([*** xext support requested but libraries not found]) 460 ]) 461]) 462AM_CONDITIONAL([XEXT], [test "$have_xext" = "yes"]) 463 464dnl Check for RANDR support and proper library files. 465have_xrandr=no 466AC_ARG_ENABLE([xrandr], AS_HELP_STRING([--disable-xrandr], [disable xrandr support])) 467AS_IF([test "x$enable_xrandr" != "xno"], [ 468 PKG_CHECK_MODULES([RANDR], [ xrandr >= 1.4.0 ], 469 [AC_DEFINE([HAVE_RANDR], [1], [Define if xrandr is available]) have_xrandr=yes], [have_xrandr=no]) 470 AS_IF([test "x$have_xrandr" = xno -a "x$enable_xrandr" = xyes], [ 471 AC_MSG_ERROR([*** xrandr support requested but libraries not found]) 472 ]) 473]) 474AM_CONDITIONAL([RANDR], [test "$have_xrandr" = "yes"]) 475 476dnl Check for fribidi 477have_fribidi=no 478AC_ARG_ENABLE([fribidi], AS_HELP_STRING([--disable-fribidi], [disable fribidi support])) 479AS_IF([test "x$enable_fribidi" != "xno"], [ 480 PKG_CHECK_MODULES([FRIBIDI], [ fribidi ], 481 [AC_DEFINE([HAVE_FRIBIDI], [1], [Define if fribidi is available]) have_fribidi=yes], [have_fribidi=no]) 482 AS_IF([test "x$have_fribidi" = xno -a "x$enable_fribidi" = xyes], [ 483 AC_MSG_ERROR([*** fribidi support requested but libraries not found]) 484 ]) 485]) 486AM_CONDITIONAL([FRIBIDI], [test "$have_fribidi" = "yes"]) 487 488dnl Various resource paths 489AC_ARG_WITH([menu], 490 AS_HELP_STRING([--with-menu=path], [location menu file (PREFIX/share/fluxbox/menu)]), 491 [default_menu="$withval"], 492 [default_menu="$prefix/share/fluxbox/menu"] 493) 494AC_SUBST([DEFAULT_MENU], [$default_menu]) 495 496AC_ARG_WITH([windowmenu], 497 AS_HELP_STRING([--with-windowmenu=path], [location windowmenu file (PREFIX/share/fluxbox/windowmenu)]), 498 [default_windowmenu="$withval"], 499 [default_windowmenu="$prefix/share/fluxbox/windowmenu"] 500) 501AC_SUBST([DEFAULT_WINDOWMENU], [$default_windowmenu]) 502 503AC_ARG_WITH([style], 504 AS_HELP_STRING([--with-style=path], [style by default (PREFIX/share/fluxbox/styles/bloe)]), 505 [default_style="$withval"], 506 [default_style="$prefix/share/fluxbox/styles/bloe"] 507) 508AC_SUBST([DEFAULT_STYLE], [$default_style]) 509 510AC_ARG_WITH([keys], 511 AS_HELP_STRING([--with-keys=path], [location keys file (PREFIX/share/fluxbox/keys)]), 512 [default_keys="$withval"], 513 [default_keys="$prefix/share/fluxbox/keys"] 514) 515AC_SUBST([DEFAULT_KEYS], [$default_keys]) 516 517AC_ARG_WITH([apps], 518 AS_HELP_STRING([--with-apps=path], [location apps file (PREFIX/share/fluxbox/apps)]), 519 [default_apps="$withval"], 520 [default_apps="$prefix/share/fluxbox/apps"] 521) 522AC_SUBST([DEFAULT_APPS], [$default_apps]) 523 524AC_ARG_WITH([overlay], 525 AS_HELP_STRING([--with-overlay=path], [location overlay file (PREFIX/share/fluxbox/overlay)]), 526 [default_overlay="$withval"], 527 [default_overlay="$prefix/share/fluxbox/overlay"] 528) 529AC_SUBST([DEFAULT_OVERLAY], [$default_overlay]) 530 531AC_ARG_WITH([init], 532 AS_HELP_STRING([--with-init=path], [location init file (PREFIX/share/fluxbox/init)]), 533 [default_init="$withval"], 534 [default_init="$prefix/share/fluxbox/init"] 535) 536AC_SUBST([DEFAULT_INIT], [$default_init]) 537 538dnl we have to expand locale_path in the config.h file, but NOT in the 539dnl makefiles! 540AC_ARG_WITH([locale], 541 AS_HELP_STRING([--with-locale=path], [location for nls files (PREFIX/share/fluxbox/nls)]), [ 542 locale_path="$withval" 543 AC_DEFINE_UNQUOTED([LOCALEPATH], ["$locale_path"], [location for nls files]) 544], [ 545 locale_path="$prefix/share/fluxbox/nls" 546 AC_DEFINE_UNQUOTED([LOCALEPATH], ["$prefix/share/fluxbox/nls"], [location for nls files]) 547]) 548AC_SUBST([LOCALE_PATH], [$locale_path]) 549 550AC_SUBST([program_prefix]) 551AC_SUBST([program_suffix]) 552 553dnl Determine the return type of signal handlers 554AC_TYPE_SIGNAL 555 556dnl Output files 557AC_CONFIG_HEADER([config.h]) 558 559AC_OUTPUT([ 560Makefile 561version.h 562nls/C/Makefile 563nls/be_BY/Makefile 564nls/bg_BG/Makefile 565nls/cs_CZ/Makefile 566nls/da_DK/Makefile 567nls/de_AT/Makefile 568nls/de_CH/Makefile 569nls/de_DE/Makefile 570nls/el_GR/Makefile 571nls/en_GB/Makefile 572nls/en_US/Makefile 573nls/es_AR/Makefile 574nls/es_ES/Makefile 575nls/et_EE/Makefile 576nls/fi_FI/Makefile 577nls/fr_CH/Makefile 578nls/fr_FR/Makefile 579nls/he_IL/Makefile 580nls/it_IT/Makefile 581nls/ja_JP/Makefile 582nls/ko_KR/Makefile 583nls/lv_LV/Makefile 584nls/mk_MK/Makefile 585nls/nb_NO/Makefile 586nls/nl_NL/Makefile 587nls/no_NO/Makefile 588nls/pl_PL/Makefile 589nls/pt_BR/Makefile 590nls/pt_PT/Makefile 591nls/ru_RU/Makefile 592nls/sk_SK/Makefile 593nls/sl_SI/Makefile 594nls/sv_SE/Makefile 595nls/tr_TR/Makefile 596nls/uk_UA/Makefile 597nls/vi_VN/Makefile 598nls/zh_CN/Makefile 599nls/zh_TW/Makefile 600]) 601 602MSG_RESULT_CXXFLAGS="$FRIBIDI_CFLAGS $XRANDR_CFLAGS $AM_CPPFLAGS $CXXFLAGS" 603MSG_RESULT_LIBS="$LDADD $FONTCONFIG_LIBS $FREETYPE2_LIBS $FRIBIDI_LIBS $IMLIB2_LIBS $RANDR_LIBS $XEXT_LIBS $XFT_LIBS $XINERAMA_LIBS $XPM_LIBS $XRENDER_LIBS" 604 605dnl Print results 606AC_MSG_RESULT([]) 607AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) 608AC_MSG_RESULT([]) 609AC_MSG_RESULT([Using:]) 610AC_MSG_RESULT([ '$prefix' for installation.]) 611AC_MSG_RESULT([ '$default_menu' for location menu file.]) 612AC_MSG_RESULT([ '$default_windowmenu' for location window menu file.]) 613AC_MSG_RESULT([ '$default_style' by default style.]) 614AC_MSG_RESULT([ '$default_keys' for location keys file.]) 615AC_MSG_RESULT([ '$default_init' for location init file.]) 616AC_MSG_RESULT([ '$locale_path' for nls files.]) 617AC_MSG_RESULT([ '$CXX' for C++ compiler.]) 618AC_MSG_RESULT([]) 619AC_MSG_RESULT([Building with:]) 620AC_MSG_RESULT([ '$MSG_RESULT_CXXFLAGS' for C++ compiler flags.]) 621AC_MSG_RESULT([ '$MSG_RESULT_LIBS' for linker flags.]) 622AC_MSG_RESULT([]) 623AC_MSG_RESULT([Now build $PACKAGE with 'make']) 624AC_MSG_RESULT([]) 625