File: configure.in

package info (click to toggle)
console-data 2:1.12-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,388 kB
  • sloc: sh: 3,272; pascal: 472; makefile: 231; perl: 168
file content (68 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (6)
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
dnl -*- sh -*-
dnl Process this file with autoconf to produce a configure script.

# Initialize
AC_INIT(keymaps/i386/qwerty/us.kmap)

#AC_CONFIG_AUX_DIR(autoconf)
AM_INIT_AUTOMAKE(console-data, 20005.12.14)

# Defaults
AC_PREFIX_DEFAULT(/usr)

ct_CHECK_WITH_PROGS([main_compressor], [gzip lzop bzip2 compress])

case $ct_cv_prog_MAIN_COMPRESSOR in
    gzip)
	COMPRESSOR_OPTS="-9"
	COMPRESSOR_EXT="gz"
    ;;
    lzop)
	COMPRESSOR_OPTS="-9"
	COMPRESSOR_EXT="lzo"
    ;;
    bzip2)
	COMPRESSOR_OPTS="-9"
	COMPRESSOR_EXT="bz2"
    ;;
    compress)
	COMPRESSOR_EXT="Z"
    ;;
    *)
    ;;
esac
AC_SUBST(COMPRESSOR_OPTS)
AC_SUBST(COMPRESSOR_EXT)


#
####################

# Allow local data dir, but not do that by default (not FSSTND-compliant ?)
kb_localdatadir_default=/usr/local/share     # iff --enable-localdatadir without specific dir

AC_ARG_ENABLE([localdatadir], 
  [  --enable-localdatadir   additional directory to search for data files [NONE]],
  [ case ${enableval} in
      no) ;;
      yes) ] AC_DEFINE_UNQUOTED(LOCALDATADIR, "$kb_localdatadir_default") [ ;;
      *) ] AC_DEFINE_UNQUOTED(LOCALDATADIR, "$enableval") [ ;;
  esac;
  ])

# Additional defs to ensure consistency
TRANSDIR=consoletrans
FONTDIR=consolefonts
KEYMAPDIR=keymaps
OLDKEYMAPDIR=keytables
VIDEOMODEDIR=videomodes

AC_SUBST(TRANSDIR)
AC_SUBST(FONTDIR)
AC_SUBST(KEYMAPDIR)
AC_SUBST(OLDKEYMAPDIR)
AC_SUBST(VIDEOMODEDIR)

# Output
AC_OUTPUT([Makefile Make.rules doc/Makefile
  consolefonts/Makefile consoletrans/Makefile keymaps/Makefile])