OLD | NEW |
1 dnl configure.ac -*-shell-script-*- | 1 dnl configure.ac -*-shell-script-*- |
2 dnl Process this file with autoconf to produce a configure script. | 2 dnl Process this file with autoconf to produce a configure script. |
3 | 3 |
4 AC_PREREQ([2.60]) | 4 AC_PREREQ([2.60]) |
5 | 5 |
6 # Bootstrap the init process. | 6 # Bootstrap the init process. |
7 AC_INIT([LilyPond], | 7 AC_INIT([LilyPond], |
8 [m4_esyscmd_s([. ${SRCDIR:-.}/VERSION; echo $MAJOR_VERSION.$MINOR_VERSION.$P
ATCH_LEVEL])], | 8 [m4_esyscmd_s([. ${SRCDIR:-.}/VERSION; echo $MAJOR_VERSION.$MINOR_VERSION.$P
ATCH_LEVEL])], |
9 [bug-lilypond@gnu.org], [lilypond], [https://lilypond.org/]) | 9 [bug-lilypond@gnu.org], [lilypond], [https://lilypond.org/]) |
10 | 10 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 # regression testing | 339 # regression testing |
340 STEPMAKE_PATH_PROG(TIDY, tidy, OPTIONAL) | 340 STEPMAKE_PATH_PROG(TIDY, tidy, OPTIONAL) |
341 | 341 |
342 ## Optional tools for building documentation, website, extra fonts. | 342 ## Optional tools for building documentation, website, extra fonts. |
343 if test "$DOCUMENTATION" = "yes"; then | 343 if test "$DOCUMENTATION" = "yes"; then |
344 DOCUMENTATION_REQUIRED=REQUIRED | 344 DOCUMENTATION_REQUIRED=REQUIRED |
345 else | 345 else |
346 DOCUMENTATION_REQUIRED=OPTIONAL | 346 DOCUMENTATION_REQUIRED=OPTIONAL |
347 fi | 347 fi |
348 | 348 |
| 349 # GhostScript |
349 STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, $DOCUMENTATION_REQUIRED, 8.60) | 350 STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, $DOCUMENTATION_REQUIRED, 8.60) |
350 | 351 |
| 352 GS_API=no |
| 353 AC_ARG_ENABLE(gs-api, |
| 354 [AS_HELP_STRING([--enable-gs-api], |
| 355 [Link to libgs and use Ghostscript API instead of invoking] |
| 356 [the executable. Beware of licensing implications!] |
| 357 [Default: off])], |
| 358 [GS_API=$enableval]) |
| 359 AC_SUBST(GS_API) |
| 360 |
| 361 if test "$GS_API" = "yes"; then |
| 362 AC_CHECK_HEADER([ghostscript/iapi.h], [ |
| 363 AC_CHECK_LIB([gs], [gsapi_new_instance], [GHOSTSCRIPT_FOUND="yes"], |
| 364 [GHOSTSCRIPT_FOUND="no"]) |
| 365 ], [GHOSTSCRIPT_FOUND="no"]) |
| 366 if test "$GHOSTSCRIPT_FOUND" = "no"; then |
| 367 STEPMAKE_ADD_ENTRY(REQUIRED, ["libgs-dev"]) |
| 368 fi |
| 369 AC_DEFINE(GS_API) |
| 370 fi |
| 371 |
351 AC_SUBST(GS920) | 372 AC_SUBST(GS920) |
352 AC_SUBST(EXTRACTPDFMARK) | 373 AC_SUBST(EXTRACTPDFMARK) |
353 AC_SUBST(USE_EXTRACTPDFMARK) | 374 AC_SUBST(USE_EXTRACTPDFMARK) |
354 STEPMAKE_PROGS(GS920, gs, OPTIONAL, 9.20) | 375 STEPMAKE_PROGS(GS920, gs, OPTIONAL, 9.20) |
355 STEPMAKE_PROGS(EXTRACTPDFMARK, extractpdfmark, OPTIONAL) | 376 STEPMAKE_PROGS(EXTRACTPDFMARK, extractpdfmark, OPTIONAL) |
356 req=`STEPMAKE_NUMERIC_VERSION(9.20)` | 377 req=`STEPMAKE_NUMERIC_VERSION(9.20)` |
357 USE_EXTRACTPDFMARK=yes | 378 USE_EXTRACTPDFMARK=yes |
358 if test "$GS920_VERSION" -lt "$req"; then | 379 if test "$GS920_VERSION" -lt "$req"; then |
359 GS920= | 380 GS920= |
360 USE_EXTRACTPDFMARK=no | 381 USE_EXTRACTPDFMARK=no |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 446 |
426 Type: | 447 Type: |
427 make all to build LilyPond | 448 make all to build LilyPond |
428 make install to install LilyPond | 449 make install to install LilyPond |
429 make help to see all possible targets | 450 make help to see all possible targets |
430 | 451 |
431 Edit local.make for local Makefile overrides. | 452 Edit local.make for local Makefile overrides. |
432 | 453 |
433 | 454 |
434 EOF | 455 EOF |
OLD | NEW |