OLD | NEW |
1 dnl | 1 dnl |
2 dnl Configure script for readline library | 2 dnl Configure script for readline library |
3 dnl | 3 dnl |
4 dnl report bugs to chet@po.cwru.edu | 4 dnl report bugs to chet@po.cwru.edu |
5 dnl | 5 dnl |
6 dnl Process this file with autoconf to produce a configure script. | 6 dnl Process this file with autoconf to produce a configure script. |
7 | 7 |
8 # Copyright (C) 1987-2009 Free Software Foundation, Inc. | 8 # Copyright (C) 1987-2009 Free Software Foundation, Inc. |
9 | 9 |
10 # This program is free software: you can redistribute it and/or modify | 10 # This program is free software: you can redistribute it and/or modify |
(...skipping 21 matching lines...) Expand all Loading... |
32 AC_CONFIG_SRCDIR(readline.h) | 32 AC_CONFIG_SRCDIR(readline.h) |
33 dnl GDB LOCAL | 33 dnl GDB LOCAL |
34 dnl AC_CONFIG_AUX_DIR(./support) | 34 dnl AC_CONFIG_AUX_DIR(./support) |
35 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..) | 35 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..) |
36 AC_CONFIG_HEADERS(config.h) | 36 AC_CONFIG_HEADERS(config.h) |
37 | 37 |
38 dnl update the value of RL_READLINE_VERSION in readline.h when this changes | 38 dnl update the value of RL_READLINE_VERSION in readline.h when this changes |
39 LIBVERSION=6.2 | 39 LIBVERSION=6.2 |
40 | 40 |
41 AC_CANONICAL_HOST | 41 AC_CANONICAL_HOST |
| 42 AC_CANONICAL_BUILD |
42 | 43 |
43 dnl configure defaults | 44 dnl configure defaults |
44 opt_curses=no | 45 opt_curses=no |
45 opt_purify=no | 46 opt_purify=no |
46 | 47 |
47 dnl arguments to configure | 48 dnl arguments to configure |
48 AC_ARG_WITH(curses, AC_HELP_STRING([--with-curses], [use the curses library inst
ead of the termcap library]), opt_curses=$withval) | 49 AC_ARG_WITH(curses, AC_HELP_STRING([--with-curses], [use the curses library inst
ead of the termcap library]), opt_curses=$withval) |
49 AC_ARG_WITH(purify, AC_HELP_STRING([--with-purify], [configure to postprocess wi
th purify]), opt_purify=$withval) | 50 AC_ARG_WITH(purify, AC_HELP_STRING([--with-purify], [configure to postprocess wi
th purify]), opt_purify=$withval) |
50 | 51 |
51 if test "$opt_curses" = "yes"; then | 52 if test "$opt_curses" = "yes"; then |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 if test "$opt_shared_libs" = "yes"; then | 262 if test "$opt_shared_libs" = "yes"; then |
262 SHARED_TARGET=shared | 263 SHARED_TARGET=shared |
263 SHARED_INSTALL_TARGET=install-shared | 264 SHARED_INSTALL_TARGET=install-shared |
264 fi | 265 fi |
265 | 266 |
266 AC_SUBST(STATIC_TARGET) | 267 AC_SUBST(STATIC_TARGET) |
267 AC_SUBST(SHARED_TARGET) | 268 AC_SUBST(SHARED_TARGET) |
268 AC_SUBST(STATIC_INSTALL_TARGET) | 269 AC_SUBST(STATIC_INSTALL_TARGET) |
269 AC_SUBST(SHARED_INSTALL_TARGET) | 270 AC_SUBST(SHARED_INSTALL_TARGET) |
270 | 271 |
271 case "$host_os" in | 272 case "$build_os" in |
272 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file | 273 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file |
273 *) BUILD_DIR=`pwd` ;; | 274 *) BUILD_DIR=`pwd` ;; |
274 esac | 275 esac |
275 | 276 |
276 case "$BUILD_DIR" in | 277 case "$BUILD_DIR" in |
277 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | 278 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; |
278 *) ;; | 279 *) ;; |
279 esac | 280 esac |
280 | 281 |
281 AC_SUBST(PURIFY) | 282 AC_SUBST(PURIFY) |
(...skipping 12 matching lines...) Expand all Loading... |
294 | 295 |
295 AC_SUBST(LIBVERSION) | 296 AC_SUBST(LIBVERSION) |
296 | 297 |
297 AC_SUBST(TERMCAP_LIB) | 298 AC_SUBST(TERMCAP_LIB) |
298 | 299 |
299 AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile], | 300 AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile], |
300 [ | 301 [ |
301 # Makefile uses this timestamp file to record whether config.h is up to date. | 302 # Makefile uses this timestamp file to record whether config.h is up to date. |
302 echo > stamp-h | 303 echo > stamp-h |
303 ]) | 304 ]) |
OLD | NEW |