aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorSanjoy Das <sanjoyd@sourceware.org>2011-11-20 08:53:25 +0000
committerSanjoy Das <sanjoyd@sourceware.org>2011-11-20 08:53:25 +0000
commitb8e0a31cb506f56b97d9d7a1c6f2ec7013ec73c9 (patch)
tree27ab9436a46453fa44e22883f7a297ff7de8c51d /gdb/configure
parentf997c383549db91a3f3b994a89201ad6498942b5 (diff)
downloadgdb-b8e0a31cb506f56b97d9d7a1c6f2ec7013ec73c9.zip
gdb-b8e0a31cb506f56b97d9d7a1c6f2ec7013ec73c9.tar.gz
gdb-b8e0a31cb506f56b97d9d7a1c6f2ec7013ec73c9.tar.bz2
gdb/
* config.in: Add new #defines: JIT_READER_DIR and JIT_READER_DIR_RELOCATABLE. * configure.ac: New GDB directory entry for jit-reader-dir. * configure: Re-generated by autoconf. * jit.c: New static variable: const char *jit_reader_dir. (_initialize_jit): Relocate jit_reader_dir.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure51
1 files changed, 51 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure
index a206ee0..78cd9e9 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -666,6 +666,7 @@ python_prog_path
LTLIBEXPAT
LIBEXPAT
HAVE_LIBEXPAT
+JIT_READER_DIR
TARGET_PTR
READLINE_TEXI_INCFLAG
READLINE_CFLAGS
@@ -966,6 +967,7 @@ with_zlib
with_libiconv_prefix
with_iconv_bin
with_system_readline
+with_jit_reader_dir
with_expat
with_gnu_ld
enable_rpath
@@ -1666,6 +1668,8 @@ Optional Packages:
search for libiconv in DIR/include and DIR/lib
--with-iconv-bin=PATH specify where to find the iconv program
--with-system-readline use installed readline library
+ --with-jit-reader-dir=PATH
+ directory to load the JIT readers from
--with-expat include expat support (auto/yes/no)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
@@ -10008,6 +10012,53 @@ ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
+
+# Check whether --with-jit-reader-dir was given.
+if test "${with_jit_reader_dir+set}" = set; then :
+ withval=$with_jit_reader_dir;
+ JIT_READER_DIR=$withval
+else
+ JIT_READER_DIR=${libdir}/gdb
+fi
+
+
+ test "x$prefix" = xNONE && prefix="$ac_default_prefix"
+ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+ ac_define_dir=`eval echo $JIT_READER_DIR`
+ ac_define_dir=`eval echo $ac_define_dir`
+
+cat >>confdefs.h <<_ACEOF
+#define JIT_READER_DIR "$ac_define_dir"
+_ACEOF
+
+
+
+
+ if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
+ if test "x$prefix" = xNONE; then
+ test_prefix=/usr/local
+ else
+ test_prefix=$prefix
+ fi
+ else
+ test_prefix=$exec_prefix
+ fi
+ value=0
+ case ${ac_define_dir} in
+ "${test_prefix}"|"${test_prefix}/"*|\
+ '${exec_prefix}'|'${exec_prefix}/'*)
+ value=1
+ ;;
+ esac
+
+cat >>confdefs.h <<_ACEOF
+#define JIT_READER_DIR_RELOCATABLE $value
+_ACEOF
+
+
+
+
+
# Check whether --with-expat was given.
if test "${with_expat+set}" = set; then :
withval=$with_expat;