configure.ac
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Jan 31 21:07:48 2013 +0100 (2013-01-31)
branch1.18
changeset 3179 45a89104a20c
parent 3001 0dfc9c1fcb34
child 3231 69f5dc1ff327
permissions -rw-r--r--
1.18: update version to 1.18.0+hg

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
yann@2834
     1
#                                               -*- Autoconf -*-
yann@2834
     2
# Process this file with autoconf to produce a configure script.
yann@2834
     3
yann@2834
     4
AC_PREREQ([2.67])
yann@2834
     5
#AC_INIT([crosstool-NG], [hg], [crossgcc@sourceware.org])
yann@2834
     6
AC_INIT([crosstool-NG], [m4_esyscmd_s([cat .version])], [crossgcc@sourceware.org])
yann@2834
     7
AC_CONFIG_AUX_DIR([scripts])
yann@2834
     8
yann@2834
     9
#--------------------------------------------------------------------
yann@2834
    10
# A few helper macros
yann@2834
    11
yann@2834
    12
# Check for required tool
yann@2834
    13
AC_DEFUN(
yann@2834
    14
    [ACX_CHECK_TOOL_REQ],
yann@2834
    15
    [AC_CHECK_TOOLS([$1], [$2])
yann@2834
    16
     AS_IF(
yann@2834
    17
        [test -z "$$1"],
yann@2834
    18
        [AC_MSG_ERROR([missing required tool: $2])])
yann@2834
    19
    ])
yann@2834
    20
yann@2834
    21
# Check for required tool, set variable to full pathname
yann@2834
    22
AC_DEFUN(
yann@2834
    23
    [ACX_PATH_TOOL_REQ],
yann@2834
    24
    [ACX_CHECK_TOOL_REQ([$1], [$2])
yann@2834
    25
     AS_CASE(
yann@2834
    26
        [$$1],
yann@2834
    27
        [/*],,
yann@2834
    28
        [?*],[AC_MSG_CHECKING([for absolute path to $$1])
yann@2834
    29
              $1=$(which $$1)
yann@2834
    30
              AC_MSG_RESULT([$$1])])])
yann@2834
    31
yann@2834
    32
# Check for required program
yann@2834
    33
AC_DEFUN(
yann@2834
    34
    [ACX_CHECK_PROGS_REQ],
yann@2834
    35
    [AC_CHECK_PROGS([$1], [$2])
yann@2834
    36
     AS_IF(
yann@2834
    37
        [test -z "$$1"],
yann@2834
    38
        [AC_MSG_ERROR([missing required tool: $2])])
yann@2834
    39
    ])
yann@2834
    40
yann@2834
    41
# Check for path to required program
yann@2834
    42
AC_DEFUN(
yann@2834
    43
    [ACX_PATH_PROGS_REQ],
yann@2834
    44
    [AC_PATH_PROGS([$1], [$2])
yann@2834
    45
     AS_IF(
yann@2834
    46
        [test -z "$$1"],
yann@2834
    47
        [AC_MSG_ERROR([missing required tool: $2])])
yann@2834
    48
    ])
yann@2834
    49
yann@2834
    50
# Set the kconfig option
yann@2834
    51
AC_DEFUN(
yann@2834
    52
    [ACX_SET_KCONFIG_OPTION],
yann@2834
    53
    [AS_IF(
yann@2834
    54
        [test -n "$$1"],
yann@2840
    55
        [kconfig_options="$kconfig_options has_$1=y"],
yann@2840
    56
        [kconfig_options="$kconfig_options has_$1"])
yann@2834
    57
    ])
yann@2834
    58
yann@2834
    59
#--------------------------------------------------------------------
yann@2834
    60
# Allow dummy --{en,dis}able-{static,shared}
yann@2834
    61
AC_ARG_ENABLE(
yann@2834
    62
    [local],
yann@2834
    63
    [AS_HELP_STRING(
yann@2834
    64
        [--enable-local],
yann@2834
    65
        [don't install, and use current directory])])
yann@2834
    66
AC_SUBST([enable_local], [${enable_local:-no}])
yann@2834
    67
AC_ARG_ENABLE(
yann@2834
    68
    [shared],
yann@2834
    69
    [AS_HELP_STRING(
yann@2834
    70
        [--enable-shared],
yann@2834
    71
        [build shared libraries (default=yes) (ignored)])])
yann@2834
    72
AC_ARG_ENABLE(
yann@2834
    73
    [static],
yann@2834
    74
    [AS_HELP_STRING(
yann@2834
    75
        [--enable-static],
yann@2834
    76
        [build static libraries (default=yes) (ignored)])])
yann@2834
    77
yann@2834
    78
#---------------------------------------------------------------------
yann@2834
    79
# Check for --build and --host...
yann@2834
    80
AC_CANONICAL_BUILD
yann@2834
    81
AC_CANONICAL_HOST
yann@2834
    82
# ... but refuse --target
yann@2834
    83
AS_IF([test -n "$target_alias"],
yann@2834
    84
      AC_MSG_ERROR([--target is not allowed]))
yann@2834
    85
yann@2834
    86
# Allow program name tranformation (--program-{prefix,suffix,transform-name})
yann@2834
    87
AC_ARG_PROGRAM
yann@2834
    88
yann@2834
    89
#---------------------------------------------------------------------
yann@2834
    90
# Initial checks that are usually done first (I don't know why, that's
yann@2834
    91
# just what I seem to experience...)
yann@2834
    92
#---------------------------------------------------------------------
yann@3001
    93
AC_ARG_WITH([install],
yann@3001
    94
    AS_HELP_STRING([--with-install=PATH],
yann@3001
    95
                   [Specify the full PATH to a BSD-compatible install]),
yann@3001
    96
    [INSTALL=$withval])
yann@2834
    97
AC_PROG_INSTALL
yann@2839
    98
AC_PROG_GREP
yann@2834
    99
AC_PROG_EGREP
yann@2839
   100
AS_IF(
yann@2839
   101
    [test ! "$EGREP" = "$GREP -E"],
yann@2839
   102
    [AC_MSG_ERROR([egrep is not $GREP -E])])
yann@2834
   103
AC_CACHE_VAL([ac_cv_path_SED],
yann@2834
   104
    [AC_ARG_WITH([sed],
yann@2834
   105
        AS_HELP_STRING([--with-sed=PATH],
yann@2999
   106
                       [Specify the full PATH to GNU sed]),
yann@2834
   107
        [ac_cv_path_SED=$withval])])
yann@2834
   108
AC_PROG_SED
yann@2834
   109
AC_MSG_CHECKING([whether sed understands -r -i -e])
yann@2834
   110
touch .ct-ng.sed.test
yann@2834
   111
if ${SED} -r -i -e 's/foo/bar/' .ct-ng.sed.test >/dev/null 2>&1; then
yann@2834
   112
    rm -f .ct-ng.sed.test
yann@2834
   113
    AC_MSG_RESULT([yes])
yann@2834
   114
else
yann@2834
   115
    rm -f .ct-ng.sed.test
yann@2834
   116
    AC_MSG_RESULT([no])
yann@2834
   117
    AC_MSG_ERROR()
yann@2834
   118
fi
yann@2834
   119
AC_PROG_LN_S
yann@2834
   120
yann@2834
   121
#--------------------------------------------------------------------
yann@2834
   122
# A bunch of boring tests...
yann@2834
   123
#--------------------------------------------------------------------
yann@2834
   124
AC_PROG_CC
yann@2834
   125
AS_IF([test -z "$CC"],
yann@2834
   126
      [AC_MSG_ERROR([no suitable compiler found])])
yann@2834
   127
AC_PROG_CPP
yann@3000
   128
yann@3000
   129
# But we still need a way to specify the PATH to GNU versions (Damn MacOS)
yann@3000
   130
AC_ARG_WITH([objcopy],
yann@3000
   131
    AS_HELP_STRING([--with-objcopy=PATH],
yann@3000
   132
                   [Specify the full PATH to GNU objcopy]),
yann@3000
   133
    [OBJCOPY=$withval])
yann@3000
   134
AC_ARG_WITH([objdump],
yann@3000
   135
    AS_HELP_STRING([--with-objdump=PATH],
yann@3000
   136
                   [Specify the full PATH to GNU objdump]),
yann@3000
   137
    [OBJDUMP=$withval])
yann@3000
   138
AC_ARG_WITH([ranlib],
yann@3000
   139
    AS_HELP_STRING([--with-ranlib=PATH],
yann@3000
   140
                   [Specify the full PATH to GNU ranlib]),
yann@3000
   141
    [RANLIB=$withval])
yann@3000
   142
AC_ARG_WITH([readelf],
yann@3000
   143
    AS_HELP_STRING([--with-readelf=PATH],
yann@3000
   144
                   [Specify the full PATH to GNU readelf]),
yann@3000
   145
    [READELF=$withval])
yann@3000
   146
yann@2834
   147
AC_PROG_RANLIB
yann@2834
   148
ACX_PATH_TOOL_REQ([OBJCOPY], [objcopy])
yann@2834
   149
ACX_PATH_TOOL_REQ([OBJDUMP], [objdump])
yann@2834
   150
ACX_PATH_TOOL_REQ([READELF], [readelf])
yann@2834
   151
yann@2834
   152
ACX_CHECK_PROGS_REQ([bison], [bison])
yann@2834
   153
ACX_CHECK_PROGS_REQ([flex], [flex])
yann@2836
   154
ACX_CHECK_PROGS_REQ([gperf], [gperf])
yann@2834
   155
ACX_CHECK_PROGS_REQ([makeinfo], [makeinfo])
yann@2834
   156
ACX_CHECK_PROGS_REQ([cut], [cut])
yann@2834
   157
ACX_CHECK_PROGS_REQ([stat], [stat])
yann@2834
   158
ACX_CHECK_PROGS_REQ([readlink], [readlink])
yann@2961
   159
ACX_CHECK_PROGS_REQ([wget], [wget])
yann@2834
   160
ACX_CHECK_PROGS_REQ([tar], [tar])
yann@2834
   161
ACX_CHECK_PROGS_REQ([gzip], [gzip])
yann@2834
   162
ACX_CHECK_PROGS_REQ([bzip2], [bzip2])
yann@2834
   163
yann@2834
   164
#--------------------------------------------------------------------
yann@2834
   165
# Still boring, but remember the path, now...
yann@2834
   166
#--------------------------------------------------------------------
yann@2834
   167
ACX_PATH_PROGS_REQ([PATCH], [patch])
yann@2834
   168
yann@2834
   169
#--------------------------------------------------------------------
yann@2834
   170
# And a bunch of less boring tests...
yann@2834
   171
#--------------------------------------------------------------------
yann@2834
   172
# We need a bash that is >= 3.1
yann@2834
   173
AC_CACHE_VAL([ac_cv_path__BASH],
yann@2834
   174
    [AC_ARG_WITH([bash],
yann@2834
   175
        AS_HELP_STRING([--with-bash=PATH],
yann@2999
   176
                       [Specify the full PATH to GNU bash >= 3.1]),
yann@2834
   177
        [ac_cv_path__BASH=$withval])])
yann@2834
   178
AC_CACHE_CHECK([for bash >= 3.1], [ac_cv_path__BASH],
yann@2834
   179
    [AC_PATH_PROGS_FEATURE_CHECK([_BASH], [bash],
yann@2834
   180
        [[_BASH_ver=$($ac_path__BASH --version 2>&1 \
yann@2834
   181
                     |$EGREP '^GNU bash, version (3\.[1-9]|4)')
yann@2834
   182
          test -n "$_BASH_ver" && ac_cv_path__BASH=$ac_path__BASH ac_path__BASH_found=:]],
yann@2834
   183
        [AC_MSG_RESULT([no])
yann@2834
   184
         AC_MSG_ERROR([could not find bash >= 3.1])])])
yann@2834
   185
AC_SUBST([_BASH], [$ac_cv_path__BASH])
yann@2834
   186
yann@2999
   187
# We need a awk that *is* GNU awk
yann@2999
   188
AC_CACHE_VAL([ac_cv_path__AWK],
yann@2999
   189
    [AC_ARG_WITH([awk],
yann@2999
   190
        AS_HELP_STRING([--with-awk=PATH],
yann@2999
   191
                       [Specify the full PATH to GNU awk]),
yann@2999
   192
        [ac_cv_path__AWK=$withval])])
yann@2999
   193
AC_CACHE_CHECK([for GNU awk], [ac_cv_path__AWK],
yann@2999
   194
    [AC_PATH_PROGS_FEATURE_CHECK([_AWK], [awk gawk],
yann@2999
   195
        [[_AWK_ver=$($ac_path__AWK --version 2>&1 \
yann@2999
   196
                     |$EGREP '^GNU Awk ')
yann@2999
   197
          test -n "$_AWK_ver" && ac_cv_path__AWK=$ac_path__AWK ac_path__AWK_found=:]],
yann@2999
   198
        [AC_MSG_RESULT([no])
yann@2999
   199
         AC_MSG_ERROR([could not find GNU awk])])])
yann@2999
   200
AC_SUBST([_AWK], [$ac_cv_path__AWK])
yann@2999
   201
yann@2834
   202
#----------------------------------------
yann@2834
   203
# Check for GNU make 3.80 or above
yann@2834
   204
AC_CACHE_VAL([ac_cv_path_MAKE],
yann@2834
   205
    [AC_ARG_WITH([make],
yann@2834
   206
        AS_HELP_STRING([--with-make=PATH],
yann@2834
   207
                       [Specify the full PATH to GNU make >= 3.80]),
yann@2834
   208
        [ac_cv_path_MAKE=$withval])])
yann@2834
   209
AC_CACHE_CHECK([for GNU make >= 3.80], [ac_cv_path_MAKE],
yann@2834
   210
    [AC_PATH_PROGS_FEATURE_CHECK([MAKE], [make gmake],
yann@2834
   211
        [[MAKE_ver=$($ac_path_MAKE --version 2>&1 \
yann@2834
   212
                     |$EGREP '^GNU Make (3.[89][[:digit:]]|[4-9])')
yann@2834
   213
          test -n "$MAKE_ver" && ac_cv_path_MAKE=$ac_path_MAKE ac_path_MAKE_found=:]],
yann@2834
   214
        [AC_MSG_RESULT([no])
yann@2834
   215
         AC_MSG_ERROR([could not find GNU make >= 3.80])])])
yann@2834
   216
AC_SUBST([MAKE], [$ac_cv_path_MAKE])
yann@2834
   217
AC_PROG_MAKE_SET
yann@2834
   218
yann@2834
   219
#----------------------------------------
yann@2834
   220
# Check for libtool >= 1.5.26
yann@2834
   221
AC_CACHE_VAL([ac_cv_path_LIBTOOL],
yann@2834
   222
    [AC_ARG_WITH([libtool],
yann@2834
   223
        AS_HELP_STRING([--with-libtool=PATH],
yann@2834
   224
                       [Specify the full PATH to GNU libtool >= 1.5.26]),
yann@2834
   225
        [ac_cv_path_LIBTOOL=$withval])])
yann@2834
   226
AC_CACHE_CHECK([for GNU libtool >= 1.5.26], [ac_cv_path_LIBTOOL],
yann@2834
   227
    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOL], [libtool],
yann@2834
   228
        [[LIBTOOL_ver=$($ac_path_LIBTOOL --version 2>&1 \
yann@2834
   229
                        |$EGREP '\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)')
yann@2834
   230
          test -n "$LIBTOOL_ver" && ac_cv_path_LIBTOOL=$ac_path_LIBTOOL ac_path_LIBTOOL_found=:]],
yann@2834
   231
        [AC_MSG_RESULT([no])
yann@2834
   232
         AC_MSG_ERROR([could not find GNU libtool >= 1.5.26])])])
yann@2834
   233
AC_SUBST([LIBTOOL], [$ac_cv_path_LIBTOOL])
yann@2834
   234
yann@2834
   235
#----------------------------------------
yann@2834
   236
# Check for libtoolize >= 1.5.26
yann@2834
   237
AC_CACHE_VAL([ac_cv_path_LIBTOOLIZE],
yann@2834
   238
    [AC_ARG_WITH([libtoolize],
yann@2834
   239
        AS_HELP_STRING([--with-libtoolize=PATH],
yann@2834
   240
                       [Specify the full PATH to GNU libtoolize >= 1.5.26]),
yann@2834
   241
        [ac_cv_path_LIBTOOLIZE=$withval])])
yann@2834
   242
AC_CACHE_CHECK([for GNU libtoolize >= 1.5.26], [ac_cv_path_LIBTOOLIZE],
js@2855
   243
    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOLIZE], [libtoolize],
yann@2834
   244
        [[LIBTOOLIZE_ver=$($ac_path_LIBTOOLIZE --version 2>&1 \
yann@2834
   245
                        |$EGREP '\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)')
yann@2834
   246
          test -n "$LIBTOOLIZE_ver" && ac_cv_path_LIBTOOLIZE=$ac_path_LIBTOOLIZE ac_path_LIBTOOLIZE_found=:]],
yann@2834
   247
        [AC_MSG_RESULT([no])
yann@2834
   248
         AC_MSG_ERROR([could not find GNU libtoolize >= 1.5.26])])])
yann@2834
   249
AC_SUBST([LIBTOOLIZE], [$ac_cv_path_LIBTOOLIZE])
yann@2834
   250
yann@2834
   251
#----------------------------------------
yann@2834
   252
# Check for automake >= 1.10
yann@2834
   253
AC_CACHE_VAL([ac_cv_path_automake],
yann@2834
   254
    [AC_ARG_WITH([automake],
yann@2834
   255
        AS_HELP_STRING([--with-automake=PATH],
yann@2834
   256
                       [Specify the full PATH to GNU automake >= 1.10]),
yann@2834
   257
        [ac_cv_path_automake=$withval])])
yann@2834
   258
AC_CACHE_CHECK([for GNU automake >= 1.10], [ac_cv_path_automake],
yann@2834
   259
    [AC_PATH_PROGS_FEATURE_CHECK([automake], [automake],
yann@2834
   260
        [[automake_ver=$($ac_path_automake --version 2>&1 \
yann@2834
   261
                         |$EGREP '\(GNU automake\) (1\.[[:digit:]]{2,}|[2-9][[:digit:]]*\.)')
yann@2834
   262
          test -n "$automake_ver" && ac_cv_path_automake=$ac_path_automake ac_path_automake_found=:]],
yann@2834
   263
        [AC_MSG_RESULT([no])
yann@2834
   264
         AC_MSG_ERROR([could not find GNU automake >= 1.10])])])
yann@2834
   265
AC_SUBST([automake], [$ac_cv_path_automake])
yann@2834
   266
yann@2834
   267
#--------------------------------------------------------------------
yann@2834
   268
# Boring again... But still a bit of work to do...
yann@2834
   269
#--------------------------------------------------------------------
yann@2834
   270
AC_SUBST([kconfig_options])
yann@2834
   271
yann@2834
   272
#----------------------------------------
yann@2834
   273
AC_CHECK_PROGS([xz],   [xz])
yann@2834
   274
ACX_SET_KCONFIG_OPTION([xz])
yann@2834
   275
AS_IF(
yann@2834
   276
    [test -z "$xz"],
yann@2834
   277
    [AC_CHECK_PROGS([lzma], [lzma])])
yann@2834
   278
ACX_SET_KCONFIG_OPTION([lzma])
yann@2834
   279
yann@2834
   280
#----------------------------------------
yann@2834
   281
AC_CHECK_PROGS([cvs], [cvs])
yann@2834
   282
ACX_SET_KCONFIG_OPTION([cvs])
yann@2834
   283
yann@2834
   284
#----------------------------------------
yann@2834
   285
AC_CHECK_PROGS([svn], [svn])
yann@2834
   286
ACX_SET_KCONFIG_OPTION([svn])
yann@2834
   287
yann@2834
   288
#--------------------------------------------------------------------
yann@2834
   289
# Now, for some fun...
yann@2834
   290
#--------------------------------------------------------------------
yann@2834
   291
AC_C_INLINE
yann@2834
   292
AC_HEADER_STDC
yann@2834
   293
AC_FUNC_MALLOC
yann@2834
   294
AC_FUNC_REALLOC
yann@2834
   295
AC_FUNC_ALLOCA
yann@2835
   296
yann@2835
   297
#----------------------------------------
yann@2835
   298
# Check for gettext, for the kconfig frontends
yann@2835
   299
AC_SUBST([gettext])
yann@2835
   300
AC_CHECK_HEADERS(
yann@2835
   301
    [libintl.h],
yann@2835
   302
    [ac_ct_gettext_hdr=$ac_header; break])
yann@2835
   303
AS_IF(
yann@2835
   304
    [test -n "$ac_ct_gettext_hdr"],
yann@2835
   305
    [AC_CHECK_DECL(
yann@2966
   306
        [gettext],
yann@2966
   307
        [gettext=y],,
yann@2966
   308
        [AC_INCLUDES_DEFAULT()
yann@2966
   309
         #include <$ac_ct_gettext_hdr>])])
yann@2835
   310
yann@2835
   311
#----------------------------------------
yann@2835
   312
# Check for ncurses, for the kconfig frontends
yann@2835
   313
AC_SUBST([ac_ct_curses_hdr])
yann@2834
   314
AC_CHECK_HEADERS(
yann@2834
   315
    [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
yann@2835
   316
    [ac_ct_curses_hdr=$ac_header; break])
yann@2834
   317
AS_IF(
yann@2835
   318
    [test -z "$ac_ct_curses_hdr"],
yann@2834
   319
    [AC_MSG_ERROR([could not find curses header, required for the kconfig frontends])])
yann@2834
   320
AC_SEARCH_LIBS(
yann@2834
   321
    [initscr],
yann@2834
   322
    [ncursesw ncurses curses],
yann@2834
   323
    [ac_ct_curses_lib_found=yes; break])
yann@2834
   324
AS_IF(
yann@2834
   325
    [test -z "$ac_ct_curses_lib_found"],
yann@2834
   326
    [AC_MSG_ERROR([could not find curses library, required for the kconfig frontends])])
yann@2834
   327
yann@2834
   328
#--------------------------------------------------------------------
yann@2834
   329
# Lastly, take care of crosstool-NG internal values
yann@2834
   330
#--------------------------------------------------------------------
yann@2834
   331
# Hey! We need the date! :-)
yann@2834
   332
AC_SUBST(
yann@2834
   333
    [DATE],
yann@2834
   334
    [$(date +%Y%m%d)])
yann@2834
   335
yann@2834
   336
# Decorate the version string if needed
yann@2834
   337
AS_IF(
yann@2834
   338
    [test -f version.sh -a -x version.sh],
yann@2834
   339
    [V=$(./version.sh "${PACKAGE_VERSION}")])
yann@2834
   340
AS_IF(
yann@2834
   341
    [test -n "${V}"],
yann@2834
   342
    [PACKAGE_VERSION="${V}"],
yann@2834
   343
    [AS_CASE(
yann@2834
   344
        [${PACKAGE_VERSION}],
yann@2834
   345
        [hg|*+hg],
yann@2834
   346
        [rev_id="$( hg log -r . --template '{branch}-{node|short}\n' \
yann@2834
   347
                           2>/dev/null                               \
yann@2834
   348
                    || true                                          )"
benoit@2860
   349
         PACKAGE_VERSION="${PACKAGE_VERSION}+${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}"
yann@2834
   350
        ])])
yann@2834
   351
# Arrange to have no / in the directory name, no need to create an
yann@2834
   352
# arbitrarily deep directory structure
yann@2834
   353
[PACKAGE_VERSION="$( printf "${PACKAGE_VERSION}\n" |"${SED}" -r -e 's:/+:_:g;' )"]
yann@2834
   354
yann@2834
   355
# Handle the local case
yann@2834
   356
AC_SUBST([sublibdir])
yann@2834
   357
AC_SUBST([subdocdir])
yann@2834
   358
AS_IF(
yann@2834
   359
    [test "x$enable_local" = "xyes"],
yann@2834
   360
    [AC_MSG_NOTICE([overiding all of --prefix and the likes, because --enable-local was set])
yann@2834
   361
     prefix=$(pwd)
yann@2834
   362
     exec_prefix="$prefix"
yann@2834
   363
     bindir="$prefix"
yann@2834
   364
     libdir="$prefix"
yann@2834
   365
     sublibdir=""
yann@2834
   366
     docdir="$prefix""/docs"
yann@2834
   367
     subdocdir=""
yann@2834
   368
     datarootdir="$prefix"
yann@2834
   369
     mandir="$docdir"],
yann@2834
   370
    [sublibdir="/ct-ng.\${VERSION}"
yann@2834
   371
     subdocdir="/ct-ng.\${VERSION}"])
yann@2834
   372
yann@2834
   373
#--------------------------------------------------------------------
yann@2834
   374
# Finally, generate the output file(s)
yann@2834
   375
#--------------------------------------------------------------------
yann@2834
   376
AC_CONFIG_FILES([Makefile])
yann@2834
   377
AC_OUTPUT