2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Dyninst 6.1.
5 # Report bugs to <bugs@dyninst.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Dyninst'
271 PACKAGE_TARNAME='dyninst'
272 PACKAGE_VERSION='6.1'
273 PACKAGE_STRING='Dyninst 6.1'
274 PACKAGE_BUGREPORT='bugs@dyninst.org'
276 ac_default_prefix=`pwd`/..
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT _ICC_ _ICPC_ _PGC_ _PGCXX_ _CC_ _CXX_ USE_TCL83 TCLTK_INC_DIR TCLTK_LIB_DIR DEFAULT_COMPONENT build build_cpu build_vendor build_os host host_cpu host_vendor host_os ARG_WRAPPER_LIBS CXXCPP EGREP LIBELF_INC_DIR LIBELF_LIB_DIR LIBELF_STATIC LIBELF_DYNAMIC BUILD_XLC GNU_DEMANGLER USE_LIBERTY LINK_LIBERTY LIBIBERTY_LIB_DIR LIBDWARF_INC_DIR LIBDWARF_LIB_DIR LIBDWARF_STATIC LIBDWARF_DYNAMIC LIBDWARF_HAS_SET_FRAME THREADDB_INC_DIR THREADDB_LIB_DIR THREADDB_STATIC THREADDB_DYNAMIC HAVE_THREADDB LIBXML2_INC_DIR LIBXML2_LIB_DIR LIBUNWIND_INC_DIR LIBUNWIND_LIB_DIR LAUNCHMON_INC_DIR LAUNCHMON_LIB_DIR LIBFLEX_LIB_DIR NASM STACKPROT BUILD32 MMTIMER TESTSUITE LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures Dyninst 6.1 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of Dyninst 6.1:";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-gnu-demangler Use g++'s built in demangler
852 --disable-testsuite Disable the Dyninst test suite (default is no)
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-package-base Base directory to look for packages
858 --with-default-component
859 Valid values: DyninstAPI, SymtabAPI, InstructionAPI,
860 ProcControlAPI, ParseAPI, default
861 --with-tcl83 Use Tcl/Tk 8.3
862 --with-tcltk-incdir TCL/TK include directory
863 --with-tcltk-libdir TCL/TK library directory
864 --with-wrapper-libs Comma seperated list of archive to wrap
865 --with-libelf-incdir LIBELF include directory
866 --with-libelf-libdir LIBELF library directory
867 --with-icc Path to Intel's ICC compiler
868 --with-pgcc Path to Pathscale's PGCC compiler
869 --with-libiberty-libdir LIBIBERTY library directory
870 --with-libdwarf-incdir LIBDWARF include directory
871 --with-libdwarf-libdir LIBDWARF library directory
872 --with-threaddb-incdir THREADDB include directory
873 --with-threaddb-libdir THREADDB library directory
874 --with-libxml2-incdir LIBXML2 include directory
875 --with-libxml2-libdir LIBXML2 library directory
876 --with-libunwind-incdir LIBUNWIND include directory
877 --with-libunwind-libdir LIBUNWIND library directory
878 --with-launchmon-incdir Launchmon include directory
879 --with-launchmon-libdir Launchmon library directory
880 --with-libflex-libdir Absolute path to flex library
882 Some influential environment variables:
883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 CXXCPP C++ preprocessor
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 Report bugs to <bugs@dyninst.org>.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
990 Dyninst configure 6.1
991 generated by GNU Autoconf 2.59
993 Copyright (C) 2003 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by Dyninst $as_me 6.1, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 for ac_dir in autodyninst $srcdir/autodyninst; do
1345 if test -f $ac_dir/install-sh; then
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1349 elif test -f $ac_dir/install.sh; then
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 elif test -f $ac_dir/shtool; then
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 [\\/]* | ?:[\\/]* ) ac_macro_dir=autodyninst ;;
1370 *) ac_macro_dir=$srcdir/autodyninst ;;
1372 if test -d "$ac_macro_dir"; then :
1374 { { echo "$as_me:$LINENO: error: cannot find macro directory \`autodyninst'" >&5
1375 echo "$as_me: error: cannot find macro directory \`autodyninst'" >&2;}
1376 { (exit 1); exit 1; }; }
1381 ac_cpp='$CXXCPP $CPPFLAGS'
1382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1385 if test -n "$ac_tool_prefix"; then
1386 for ac_prog in $CCC g++
1388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1390 echo "$as_me:$LINENO: checking for $ac_word" >&5
1391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392 if test "${ac_cv_prog_CXX+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 if test -n "$CXX"; then
1396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 test -z "$as_dir" && as_dir=.
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415 if test -n "$CXX"; then
1416 echo "$as_me:$LINENO: result: $CXX" >&5
1417 echo "${ECHO_T}$CXX" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1423 test -n "$CXX" && break
1426 if test -z "$CXX"; then
1428 for ac_prog in $CCC g++
1430 # Extract the first word of "$ac_prog", so it can be a program name with args.
1431 set dummy $ac_prog; ac_word=$2
1432 echo "$as_me:$LINENO: checking for $ac_word" >&5
1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 if test -n "$ac_ct_CXX"; then
1438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_ac_ct_CXX="$ac_prog"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1457 if test -n "$ac_ct_CXX"; then
1458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1459 echo "${ECHO_T}$ac_ct_CXX" >&6
1461 echo "$as_me:$LINENO: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1465 test -n "$ac_ct_CXX" && break
1467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1473 # Provide some information about the compiler.
1474 echo "$as_me:$LINENO:" \
1475 "checking for C++ compiler version" >&5
1476 ac_compiler=`set X $ac_compile; echo $2`
1477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1478 (eval $ac_compiler --version </dev/null >&5) 2>&5
1480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1481 (exit $ac_status); }
1482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1483 (eval $ac_compiler -v </dev/null >&5) 2>&5
1485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1486 (exit $ac_status); }
1487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1488 (eval $ac_compiler -V </dev/null >&5) 2>&5
1490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1491 (exit $ac_status); }
1493 cat >conftest.$ac_ext <<_ACEOF
1496 cat confdefs.h >>conftest.$ac_ext
1497 cat >>conftest.$ac_ext <<_ACEOF
1498 /* end confdefs.h. */
1508 ac_clean_files_save=$ac_clean_files
1509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1510 # Try to create an executable without -o first, disregard a.out.
1511 # It will help us diagnose broken compilers, and finding out an intuition
1513 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1514 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1516 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1517 (eval $ac_link_default) 2>&5
1519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # Find the output, starting from the most likely. This scheme is
1522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1525 # Be careful to initialize this variable, since it used to be cached.
1526 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1528 # b.out is created by i960 compilers.
1529 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1531 test -f "$ac_file" || continue
1533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1536 # This is the source file.
1539 # We found the default executable, but exeext='' is most
1543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1544 # FIXME: I believe we export ac_cv_exeext for Libtool,
1545 # but it would be cool to find out if it's true. Does anybody
1546 # maintain Libtool? --akim.
1554 echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1557 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1558 See \`config.log' for more details." >&5
1559 echo "$as_me: error: C++ compiler cannot create executables
1560 See \`config.log' for more details." >&2;}
1561 { (exit 77); exit 77; }; }
1564 ac_exeext=$ac_cv_exeext
1565 echo "$as_me:$LINENO: result: $ac_file" >&5
1566 echo "${ECHO_T}$ac_file" >&6
1568 # Check the compiler produces executables we can run. If not, either
1569 # the compiler is broken, or we cross compile.
1570 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1571 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1573 # If not cross compiling, check that we can run a simple program.
1574 if test "$cross_compiling" != yes; then
1575 if { ac_try='./$ac_file'
1576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }; }; then
1583 if test "$cross_compiling" = maybe; then
1586 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1587 If you meant to cross compile, use \`--host'.
1588 See \`config.log' for more details." >&5
1589 echo "$as_me: error: cannot run C++ compiled programs.
1590 If you meant to cross compile, use \`--host'.
1591 See \`config.log' for more details." >&2;}
1592 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: yes" >&5
1597 echo "${ECHO_T}yes" >&6
1599 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1600 ac_clean_files=$ac_clean_files_save
1601 # Check the compiler produces executables we can run. If not, either
1602 # the compiler is broken, or we cross compile.
1603 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1604 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1605 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1606 echo "${ECHO_T}$cross_compiling" >&6
1608 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1609 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1611 (eval $ac_link) 2>&5
1613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1617 # work properly (i.e., refer to `conftest.exe'), while it won't with
1619 for ac_file in conftest.exe conftest conftest.*; do
1620 test -f "$ac_file" || continue
1622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1630 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1631 See \`config.log' for more details." >&5
1632 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1633 See \`config.log' for more details." >&2;}
1634 { (exit 1); exit 1; }; }
1637 rm -f conftest$ac_cv_exeext
1638 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1639 echo "${ECHO_T}$ac_cv_exeext" >&6
1641 rm -f conftest.$ac_ext
1642 EXEEXT=$ac_cv_exeext
1644 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1645 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1646 if test "${ac_cv_objext+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 cat >conftest.$ac_ext <<_ACEOF
1652 cat confdefs.h >>conftest.$ac_ext
1653 cat >>conftest.$ac_ext <<_ACEOF
1654 /* end confdefs.h. */
1664 rm -f conftest.o conftest.obj
1665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1666 (eval $ac_compile) 2>&5
1668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669 (exit $ac_status); }; then
1670 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1678 echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1684 See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1690 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1691 echo "${ECHO_T}$ac_cv_objext" >&6
1692 OBJEXT=$ac_cv_objext
1694 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1695 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 cat >conftest.$ac_ext <<_ACEOF
1702 cat confdefs.h >>conftest.$ac_ext
1703 cat >>conftest.$ac_ext <<_ACEOF
1704 /* end confdefs.h. */
1717 rm -f conftest.$ac_objext
1718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1719 (eval $ac_compile) 2>conftest.er1
1721 grep -v '^ *+' conftest.er1 >conftest.err
1723 cat conftest.err >&5
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); } &&
1726 { ac_try='test -z "$ac_cxx_werror_flag"
1727 || test ! -s conftest.err'
1728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1741 echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1747 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1750 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1751 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1752 GXX=`test $ac_compiler_gnu = yes && echo yes`
1753 ac_test_CXXFLAGS=${CXXFLAGS+set}
1754 ac_save_CXXFLAGS=$CXXFLAGS
1756 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1757 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1758 if test "${ac_cv_prog_cxx_g+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 cat >conftest.$ac_ext <<_ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 rm -f conftest.$ac_objext
1777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1778 (eval $ac_compile) 2>conftest.er1
1780 grep -v '^ *+' conftest.er1 >conftest.err
1782 cat conftest.err >&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); } &&
1785 { ac_try='test -z "$ac_cxx_werror_flag"
1786 || test ! -s conftest.err'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; } &&
1792 { ac_try='test -s conftest.$ac_objext'
1793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; }; then
1798 ac_cv_prog_cxx_g=yes
1800 echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1807 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1808 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1809 if test "$ac_test_CXXFLAGS" = set; then
1810 CXXFLAGS=$ac_save_CXXFLAGS
1811 elif test $ac_cv_prog_cxx_g = yes; then
1812 if test "$GXX" = yes; then
1818 if test "$GXX" = yes; then
1824 for ac_declaration in \
1826 'extern "C" void std::exit (int) throw (); using std::exit;' \
1827 'extern "C" void std::exit (int); using std::exit;' \
1828 'extern "C" void exit (int) throw ();' \
1829 'extern "C" void exit (int);' \
1832 cat >conftest.$ac_ext <<_ACEOF
1835 cat confdefs.h >>conftest.$ac_ext
1836 cat >>conftest.$ac_ext <<_ACEOF
1837 /* end confdefs.h. */
1848 rm -f conftest.$ac_objext
1849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1850 (eval $ac_compile) 2>conftest.er1
1852 grep -v '^ *+' conftest.er1 >conftest.err
1854 cat conftest.err >&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -z "$ac_cxx_werror_flag"
1858 || test ! -s conftest.err'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; } &&
1864 { ac_try='test -s conftest.$ac_objext'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1872 echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1878 cat >conftest.$ac_ext <<_ACEOF
1881 cat confdefs.h >>conftest.$ac_ext
1882 cat >>conftest.$ac_ext <<_ACEOF
1883 /* end confdefs.h. */
1893 rm -f conftest.$ac_objext
1894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1895 (eval $ac_compile) 2>conftest.er1
1897 grep -v '^ *+' conftest.er1 >conftest.err
1899 cat conftest.err >&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -z "$ac_cxx_werror_flag"
1903 || test ! -s conftest.err'
1904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }; } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1924 if test -n "$ac_declaration"; then
1925 echo '#ifdef __cplusplus' >>confdefs.h
1926 echo $ac_declaration >>confdefs.h
1927 echo '#endif' >>confdefs.h
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 # Extract the first word of "icc", so it can be a program name with args.
1937 set dummy icc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_path__ICC_+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 ac_cv_path__ICC_="$_ICC_" # Let the user override the test with a path.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_path__ICC_="$as_dir/$ac_word$ac_exec_ext"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 _ICC_=$ac_cv_path__ICC_
1967 if test -n "$_ICC_"; then
1968 echo "$as_me:$LINENO: result: $_ICC_" >&5
1969 echo "${ECHO_T}$_ICC_" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 # Extract the first word of "icpc", so it can be a program name with args.
1976 set dummy icpc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_path__ICPC_+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 ac_cv_path__ICPC_="$_ICPC_" # Let the user override the test with a path.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_path__ICPC_="$as_dir/$ac_word$ac_exec_ext"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 _ICPC_=$ac_cv_path__ICPC_
2006 if test -n "$_ICPC_"; then
2007 echo "$as_me:$LINENO: result: $_ICPC_" >&5
2008 echo "${ECHO_T}$_ICPC_" >&6
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2014 # Extract the first word of "pgcc", so it can be a program name with args.
2015 set dummy pgcc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_path__PGC_+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 ac_cv_path__PGC_="$_PGC_" # Let the user override the test with a path.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_path__PGC_="$as_dir/$ac_word$ac_exec_ext"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 _PGC_=$ac_cv_path__PGC_
2045 if test -n "$_PGC_"; then
2046 echo "$as_me:$LINENO: result: $_PGC_" >&5
2047 echo "${ECHO_T}$_PGC_" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2053 # Extract the first word of "pgCC", so it can be a program name with args.
2054 set dummy pgCC; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_path__PGCXX_+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 ac_cv_path__PGCXX_="$_PGCXX_" # Let the user override the test with a path.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_path__PGCXX_="$as_dir/$ac_word$ac_exec_ext"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 _PGCXX_=$ac_cv_path__PGCXX_
2084 if test -n "$_PGCXX_"; then
2085 echo "$as_me:$LINENO: result: $_PGCXX_" >&5
2086 echo "${ECHO_T}$_PGCXX_" >&6
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2092 # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_path__CC_+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 ac_cv_path__CC_="$_CC_" # Let the user override the test with a path.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_path__CC_="$as_dir/$ac_word$ac_exec_ext"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 _CC_=$ac_cv_path__CC_
2123 if test -n "$_CC_"; then
2124 echo "$as_me:$LINENO: result: $_CC_" >&5
2125 echo "${ECHO_T}$_CC_" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2131 # Extract the first word of "CC", so it can be a program name with args.
2132 set dummy CC; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_path__CXX_+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 ac_cv_path__CXX_="$_CXX_" # Let the user override the test with a path.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_path__CXX_="$as_dir/$ac_word$ac_exec_ext"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 _CXX_=$ac_cv_path__CXX_
2162 if test -n "$_CXX_"; then
2163 echo "$as_me:$LINENO: result: $_CXX_" >&5
2164 echo "${ECHO_T}$_CXX_" >&6
2166 echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2171 ac_cpp='$CXXCPP $CPPFLAGS'
2172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2182 # Check whether --with-package-base or --without-package-base was given.
2183 if test "${with_package_base+set}" = set; then
2184 withval="$with_package_base"
2185 PACKAGE_BASE="${withval}";
2186 TCLTK_INC_DIR="${PACKAGE_BASE}/tcl8.4.5/include";
2187 TCLTK_LIB_DIR="${PACKAGE_BASE}/tcl8.4.5/lib";
2188 LIBELF_INC_DIR="${PACKAGE_BASE}/libelf/include";
2189 LIBELF_LIB_DIR="${PACKAGE_BASE}/libelf/lib";
2190 LIBDWARF_INC_DIR="${PACKAGE_BASE}/libdwarf/include";
2191 LIBDWARF_LIB_DIR="${PACKAGE_BASE}/libdwarf/lib";
2192 ARG_WRAPPER_LIBS="";
2193 LIBXML2_INC_DIR="${PACKAGE_BASE}/libxml2/include/libxml2"
2194 LIBXML2_LIB_DIR="${PACKAGE_BASE}/libxml2/lib";
2195 LIBUNWIND_INC_DIR="${PACKAGE_BASE}/libunwind/include";
2196 LIBUNWIND_LIB_DIR="${PACKAGE_BASE}/libunwind/lib";
2197 LIBFLEX_LIB_DIR="${PACKAGE_BASE}/libflex/lib";
2201 # We fall back on these defaults if both --with-package-base and
2202 # specific --with-<package> arguments are not provided.
2203 TCLTK_INC_DIR="/usr/include";
2204 TCLTK_LIB_DIR="/usr/lib";
2205 LIBELF_INC_DIR="/usr/include";
2206 LIBELF_LIB_DIR="/usr/lib";
2207 ARG_WRAPPER_LIBS="";
2208 LIBDWARF_INC_DIR="/usr/include";
2209 LIBDWARF_LIB_DIR="/usr/lib";
2210 LIBXML2_INC_DIR="/usr/include/libxml2"
2211 LIBXML2_LIB_DIR="/usr/lib";
2212 LIBUNWIND_INC_DIR="/usr/include";
2213 LIBUNWIND_LIB_DIR="/usr/lib";
2214 LIBFLEX_LIB_DIR="/usr/lib";
2217 # 3/15/09: We don't include libiberty in the cs.wisc.edu package-base.
2218 # Why? Putting these here for now...
2219 #LIBIBERTY_LIB_DIR="/usr/lib";
2222 # Check whether --with-default-component or --without-default-component was given.
2223 if test "${with_default_component+set}" = set; then
2224 withval="$with_default_component"
2225 DEFAULT_COMPONENT="${withval}";
2227 DEFAULT_COMPONENT=`cat autodyninst/default_component`;
2230 # Check whether --with-tcl83 or --without-tcl83 was given.
2231 if test "${with_tcl83+set}" = set; then
2232 withval="$with_tcl83"
2233 TCL_VERSION="tcl8.3"; USE_TCL83="${withval}";
2235 TCL_VERSION="tcl8.4"; USE_TCL83="false";
2238 # Check whether --with-tcltk-incdir or --without-tcltk-incdir was given.
2239 if test "${with_tcltk_incdir+set}" = set; then
2240 withval="$with_tcltk_incdir"
2241 TCLTK_INC_DIR="${withval}";
2244 # Check whether --with-tcltk-libdir or --without-tcltk-libdir was given.
2245 if test "${with_tcltk_libdir+set}" = set; then
2246 withval="$with_tcltk_libdir"
2247 TCLTK_LIB_DIR="${withval}";
2251 CXXFLAGS_HOLD=$CXXFLAGS
2252 if test "$TCLTK_INC_DIR" != "" ; then
2253 echo "$as_me:$LINENO: checking for tcl.h in $TCLTK_INC_DIR" >&5
2254 echo $ECHO_N "checking for tcl.h in $TCLTK_INC_DIR... $ECHO_C" >&6
2255 CXXFLAGS="$CXXFLAGS -I$TCLTK_INC_DIR"
2257 echo "$as_me:$LINENO: checking for tcl.h" >&5
2258 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
2260 cat >conftest.$ac_ext <<_ACEOF
2263 cat confdefs.h >>conftest.$ac_ext
2264 cat >>conftest.$ac_ext <<_ACEOF
2265 /* end confdefs.h. */
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>conftest.er1
2279 grep -v '^ *+' conftest.er1 >conftest.err
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -z "$ac_cxx_werror_flag"
2285 || test ! -s conftest.err'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2298 cat >>confdefs.h <<\_ACEOF
2299 #define cap_have_tcl 1
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 echo "$as_me:$LINENO: result: tcl.h not found in $TCLTK_INC_DIR" >&5
2307 echo "${ECHO_T}tcl.h not found in $TCLTK_INC_DIR" >&6
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 CXXFLAGS=$CXXFLAGS_HOLD
2313 if test "$TCLTK_LIB_DIR" = "" ; then
2315 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2316 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2317 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2318 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_check_lib_save_LIBS=$LIBS
2322 LIBS="-l$TCL_VERSION $LIBS"
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2330 /* Override any gcc2 internal prototype to avoid an error. */
2334 /* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2345 rm -f conftest.$ac_objext conftest$ac_exeext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2347 (eval $ac_link) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1 >conftest.err
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_cxx_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest$ac_exeext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 eval "$as_ac_Lib=yes"
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 eval "$as_ac_Lib=no"
2374 rm -f conftest.err conftest.$ac_objext \
2375 conftest$ac_exeext conftest.$ac_ext
2376 LIBS=$ac_check_lib_save_LIBS
2378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2379 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2380 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2381 cat >>confdefs.h <<_ACEOF
2382 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2385 LIBS="-l$TCL_VERSION $LIBS"
2388 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION." >&5
2389 echo "${ECHO_T}Can't find lib$TCL_VERSION." >&6
2394 if test "" != "" ; then
2395 LIBS="-L$TCLTK_LIB_DIR -L"
2397 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2398 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2399 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2400 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 ac_check_lib_save_LIBS=$LIBS
2404 LIBS="-l$TCL_VERSION $LIBS"
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2412 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_cxx_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest$ac_exeext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 eval "$as_ac_Lib=yes"
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 eval "$as_ac_Lib=no"
2456 rm -f conftest.err conftest.$ac_objext \
2457 conftest$ac_exeext conftest.$ac_ext
2458 LIBS=$ac_check_lib_save_LIBS
2460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2461 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2462 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2463 cat >>confdefs.h <<_ACEOF
2464 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2467 LIBS="-l$TCL_VERSION $LIBS"
2470 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2471 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2475 LIBS="-L$TCLTK_LIB_DIR"
2477 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2478 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2479 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2480 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_check_lib_save_LIBS=$LIBS
2484 LIBS="-l$TCL_VERSION $LIBS"
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2492 /* Override any gcc2 internal prototype to avoid an error. */
2496 /* We use char because int might match the return type of a gcc2
2497 builtin and then its argument prototype would still apply. */
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_cxx_werror_flag"
2517 || test ! -s conftest.err'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try='test -s conftest$ac_exeext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2529 eval "$as_ac_Lib=yes"
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 eval "$as_ac_Lib=no"
2536 rm -f conftest.err conftest.$ac_objext \
2537 conftest$ac_exeext conftest.$ac_ext
2538 LIBS=$ac_check_lib_save_LIBS
2540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2541 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2542 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2543 cat >>confdefs.h <<_ACEOF
2544 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2547 LIBS="-l$TCL_VERSION $LIBS"
2550 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2551 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2563 # Make sure we can run config.sub.
2564 $ac_config_sub sun4 >/dev/null 2>&1 ||
2565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2567 { (exit 1); exit 1; }; }
2569 echo "$as_me:$LINENO: checking build system type" >&5
2570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2571 if test "${ac_cv_build+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 ac_cv_build_alias=$build_alias
2575 test -z "$ac_cv_build_alias" &&
2576 ac_cv_build_alias=`$ac_config_guess`
2577 test -z "$ac_cv_build_alias" &&
2578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2580 { (exit 1); exit 1; }; }
2581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2584 { (exit 1); exit 1; }; }
2587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2588 echo "${ECHO_T}$ac_cv_build" >&6
2590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2595 echo "$as_me:$LINENO: checking host system type" >&5
2596 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2597 if test "${ac_cv_host+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_cv_host_alias=$host_alias
2601 test -z "$ac_cv_host_alias" &&
2602 ac_cv_host_alias=$ac_cv_build_alias
2603 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2605 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2606 { (exit 1); exit 1; }; }
2609 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2610 echo "${ECHO_T}$ac_cv_host" >&6
2612 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2613 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2614 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2619 # Check whether --with-wrapper-libs or --without-wrapper-libs was given.
2620 if test "${with_wrapper_libs+set}" = set; then
2621 withval="$with_wrapper_libs"
2622 ARG_WRAPPER_LIBS="${withval}";
2626 # Check whether --enable-gnu-demangler or --disable-gnu-demangler was given.
2627 if test "${enable_gnu_demangler+set}" = set; then
2628 enableval="$enable_gnu_demangler"
2629 GNU_DEMANGLER="true"
2632 if test "x$DEFAULT_COMPONENT" = "xInstructionAPI"; then
2633 { echo "$as_me:$LINENO: InstructionAPI, not requiring libelf..." >&5
2634 echo "$as_me: InstructionAPI, not requiring libelf..." >&6;}
2635 SUPPRESS_LIBELF_REQ="true"
2636 { echo "$as_me:$LINENO: InstructionAPI, not requiring thread_db..." >&5
2637 echo "$as_me: InstructionAPI, not requiring thread_db..." >&6;}
2638 SUPPRESS_THREADDB_REQ="true"
2639 { echo "$as_me:$LINENO: InstructionAPI, not requiring libdwarf..." >&5
2640 echo "$as_me: InstructionAPI, not requiring libdwarf..." >&6;}
2641 SUPPRESS_LIBDWARF_REQ="true"
2643 if test "x$DEFAULT_COMPONENT" = "xSymtabAPI"; then
2644 { echo "$as_me:$LINENO: SymtabAPI, not requiring thread_db..." >&5
2645 echo "$as_me: SymtabAPI, not requiring thread_db..." >&6;}
2646 SUPPRESS_THREADDB_REQ="true"
2648 if test "x$DEFAULT_COMPONENT" = "xParseAPI"; then
2649 { echo "$as_me:$LINENO: ParseAPI, not requiring thread_db..." >&5
2650 echo "$as_me: ParseAPI, not requiring thread_db..." >&6;}
2651 SUPPRESS_THREADDB_REQ="true"
2653 if test "x$DEFAULT_COMPONENT" = "xProcControlAPI"; then
2654 { echo "$as_me:$LINENO: ProcControlAPI, not requiring libdwarf..." >&5
2655 echo "$as_me: ProcControlAPI, not requiring libdwarf..." >&6;}
2656 SUPPRESS_LIBDWARF_REQ="true"
2658 if test "`echo $host_os | cut -b-5`" = "linux" ; then
2659 if test "x$PLATFORM" = "xppc32_bgp_ion"; then
2660 { echo "$as_me:$LINENO: BG/P, thread_db required..." >&5
2661 echo "$as_me: BG/P, thread_db required..." >&6;}
2662 elif test "x$PLATFORM" = "xppc32_bgl_ion"; then
2663 { echo "$as_me:$LINENO: BG/L, thread_db required..." >&5
2664 echo "$as_me: BG/L, thread_db required..." >&6;}
2666 { echo "$as_me:$LINENO: Linux, not requiring thread_db..." >&5
2667 echo "$as_me: Linux, not requiring thread_db..." >&6;}
2668 SUPPRESS_THREADDB_REQ="true"
2672 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2673 { echo "$as_me:$LINENO: AIX, not requiring thread_db..." >&5
2674 echo "$as_me: AIX, not requiring thread_db..." >&6;}
2675 SUPPRESS_THREADDB_REQ="true"
2678 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2679 { echo "$as_me:$LINENO: AIX system, skipping libelf..." >&5
2680 echo "$as_me: AIX system, skipping libelf..." >&6;}
2683 # Check whether --with-libelf-incdir or --without-libelf-incdir was given.
2684 if test "${with_libelf_incdir+set}" = set; then
2685 withval="$with_libelf_incdir"
2686 LIBELF_INC_DIR="${withval}";
2689 # Check whether --with-libelf-libdir or --without-libelf-libdir was given.
2690 if test "${with_libelf_libdir+set}" = set; then
2691 withval="$with_libelf_libdir"
2692 LIBELF_LIB_DIR="${withval}";
2695 if test "x$SUPPRESS_LIBELF_REQ" = "x"; then
2696 CXXFLAGS_HOLD=$CXXFLAGS;
2697 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR";
2698 CPPFLAGS_HOLD=$CPPFLAGS;
2699 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR";
2702 ac_cpp='$CXXCPP $CPPFLAGS'
2703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2706 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2707 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2708 if test -z "$CXXCPP"; then
2709 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 # Double quotes because CXXCPP needs to be expanded
2713 for CXXCPP in "$CXX -E" "/lib/cpp"
2716 for ac_cxx_preproc_warn_flag in '' yes
2718 # Use a header file that comes with gcc, so configuring glibc
2719 # with a fresh cross-compiler works.
2720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721 # <limits.h> exists even on freestanding compilers.
2722 # On the NeXT, cc -E runs the code through the compiler's parser,
2723 # not just through cpp. "Syntax error" is here to catch this case.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2731 # include <limits.h>
2733 # include <assert.h>
2737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } >/dev/null; then
2745 if test -s conftest.err; then
2746 ac_cpp_err=$ac_cxx_preproc_warn_flag
2747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2754 if test -z "$ac_cpp_err"; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2760 # Broken: fails on valid input.
2763 rm -f conftest.err conftest.$ac_ext
2765 # OK, works on sane cases. Now check whether non-existent headers
2766 # can be detected and how.
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <ac_nonexistent.h>
2775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } >/dev/null; then
2783 if test -s conftest.err; then
2784 ac_cpp_err=$ac_cxx_preproc_warn_flag
2785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2792 if test -z "$ac_cpp_err"; then
2793 # Broken: success on invalid input.
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 # Passes both tests.
2803 rm -f conftest.err conftest.$ac_ext
2806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2807 rm -f conftest.err conftest.$ac_ext
2808 if $ac_preproc_ok; then
2813 ac_cv_prog_CXXCPP=$CXXCPP
2816 CXXCPP=$ac_cv_prog_CXXCPP
2818 ac_cv_prog_CXXCPP=$CXXCPP
2820 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2821 echo "${ECHO_T}$CXXCPP" >&6
2823 for ac_cxx_preproc_warn_flag in '' yes
2825 # Use a header file that comes with gcc, so configuring glibc
2826 # with a fresh cross-compiler works.
2827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2828 # <limits.h> exists even on freestanding compilers.
2829 # On the NeXT, cc -E runs the code through the compiler's parser,
2830 # not just through cpp. "Syntax error" is here to catch this case.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2838 # include <limits.h>
2840 # include <assert.h>
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } >/dev/null; then
2852 if test -s conftest.err; then
2853 ac_cpp_err=$ac_cxx_preproc_warn_flag
2854 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2861 if test -z "$ac_cpp_err"; then
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 # Broken: fails on valid input.
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether non-existent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null; then
2890 if test -s conftest.err; then
2891 ac_cpp_err=$ac_cxx_preproc_warn_flag
2892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2899 if test -z "$ac_cpp_err"; then
2900 # Broken: success on invalid input.
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2906 # Passes both tests.
2910 rm -f conftest.err conftest.$ac_ext
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2918 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2926 ac_cpp='$CXXCPP $CPPFLAGS'
2927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 echo "$as_me:$LINENO: checking for egrep" >&5
2933 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2934 if test "${ac_cv_prog_egrep+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2938 then ac_cv_prog_egrep='grep -E'
2939 else ac_cv_prog_egrep='egrep'
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2943 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2944 EGREP=$ac_cv_prog_egrep
2947 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2948 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2949 if test "${ac_cv_header_stdc+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_cxx_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 ac_cv_header_stdc=yes
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 ac_cv_header_stdc=no
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002 if test $ac_cv_header_stdc = yes; then
3003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014 $EGREP "memchr" >/dev/null 2>&1; then
3017 ac_cv_header_stdc=no
3023 if test $ac_cv_header_stdc = yes; then
3024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "free" >/dev/null 2>&1; then
3038 ac_cv_header_stdc=no
3044 if test $ac_cv_header_stdc = yes; then
3045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3046 if test "$cross_compiling" = yes; then
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3056 #if ((' ' & 0x0FF) == 0x020)
3057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3060 # define ISLOWER(c) \
3061 (('a' <= (c) && (c) <= 'i') \
3062 || ('j' <= (c) && (c) <= 'r') \
3063 || ('s' <= (c) && (c) <= 'z'))
3064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3072 for (i = 0; i < 256; i++)
3073 if (XOR (islower (i), ISLOWER (i))
3074 || toupper (i) != TOUPPER (i))
3079 rm -f conftest$ac_exeext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3092 echo "$as_me: program exited with status $ac_status" >&5
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3097 ac_cv_header_stdc=no
3099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3105 if test $ac_cv_header_stdc = yes; then
3107 cat >>confdefs.h <<\_ACEOF
3108 #define STDC_HEADERS 1
3113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3124 inttypes.h stdint.h unistd.h
3126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3127 echo "$as_me:$LINENO: checking for $ac_header" >&5
3128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 $ac_includes_default
3140 #include <$ac_header>
3142 rm -f conftest.$ac_objext
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_cxx_werror_flag"
3152 || test ! -s conftest.err'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 eval "$as_ac_Header=yes"
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 eval "$as_ac_Header=no"
3171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3176 cat >>confdefs.h <<_ACEOF
3177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3185 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf.h" | $as_tr_sh`
3186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3187 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3188 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3195 # Is the header compilable?
3196 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h usability" >&5
3197 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h usability... $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 $ac_includes_default
3205 #include <$LIBELF_INC_DIR/libelf.h>
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>conftest.er1
3211 grep -v '^ *+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -z "$ac_cxx_werror_flag"
3217 || test ! -s conftest.err'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_header_compiler=yes
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_header_compiler=no
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3238 echo "${ECHO_T}$ac_header_compiler" >&6
3240 # Is the header present?
3241 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h presence" >&5
3242 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h presence... $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249 #include <$LIBELF_INC_DIR/libelf.h>
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_cxx_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3268 if test -z "$ac_cpp_err"; then
3269 ac_header_preproc=yes
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_header_preproc=no
3276 rm -f conftest.err conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3278 echo "${ECHO_T}$ac_header_preproc" >&6
3280 # So? What about this header?
3281 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3283 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3284 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3285 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&5
3286 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&2;}
3287 ac_header_preproc=yes
3290 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&5
3291 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&2;}
3292 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&5
3293 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&2;}
3294 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&5
3295 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&2;}
3296 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3297 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3298 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&5
3299 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&2;}
3300 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&5
3301 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&2;}
3304 ## ------------------------------- ##
3305 ## Report this to bugs@dyninst.org ##
3306 ## ------------------------------- ##
3309 sed "s/^/$as_me: WARNING: /" >&2
3312 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3313 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 eval "$as_ac_Header=\$ac_header_preproc"
3319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3324 { echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3325 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3327 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR/libelf";
3328 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR/libelf";
3329 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf/libelf.h" | $as_tr_sh`
3330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3331 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3332 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3339 # Is the header compilable?
3340 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h usability" >&5
3341 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h usability... $ECHO_C" >&6
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 $ac_includes_default
3349 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_cxx_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 ac_header_compiler=yes
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 ac_header_compiler=no
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3382 echo "${ECHO_T}$ac_header_compiler" >&6
3384 # Is the header present?
3385 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h presence" >&5
3386 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h presence... $ECHO_C" >&6
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_cxx_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3412 if test -z "$ac_cpp_err"; then
3413 ac_header_preproc=yes
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 ac_header_preproc=no
3420 rm -f conftest.err conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3422 echo "${ECHO_T}$ac_header_preproc" >&6
3424 # So? What about this header?
3425 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3427 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3428 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3429 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&5
3430 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&2;}
3431 ac_header_preproc=yes
3434 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&5
3435 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&2;}
3436 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&5
3437 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&2;}
3438 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&5
3439 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&2;}
3440 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3441 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3442 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&5
3443 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&5
3445 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&2;}
3448 ## ------------------------------- ##
3449 ## Report this to bugs@dyninst.org ##
3450 ## ------------------------------- ##
3453 sed "s/^/$as_me: WARNING: /" >&2
3456 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3457 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 eval "$as_ac_Header=\$ac_header_preproc"
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3468 LIBELF_INC_DIR+="/libelf";{ echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3469 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3471 { { echo "$as_me:$LINENO: error: couldn't find libelf.h" >&5
3472 echo "$as_me: error: couldn't find libelf.h" >&2;}
3473 { (exit 1); exit 1; }; }
3480 CXXFLAGS=$CXXFLAGS_HOLD;
3481 CPPFLAGS=$CPPFLAGS_HOLD;
3483 if test "$LIBELF_LIB_DIR" = "" ; then
3485 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3486 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3487 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_check_lib_save_LIBS=$LIBS
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3499 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_cxx_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest$ac_exeext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_lib_elf_elf_memory=yes
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 ac_cv_lib_elf_elf_memory=no
3543 rm -f conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3545 LIBS=$ac_check_lib_save_LIBS
3547 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3548 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3549 if test $ac_cv_lib_elf_elf_memory = yes; then
3550 cat >>confdefs.h <<_ACEOF
3551 #define HAVE_LIBELF 1
3557 { { echo "$as_me:$LINENO: error: Can't find libelf." >&5
3558 echo "$as_me: error: Can't find libelf." >&2;}
3559 { (exit 1); exit 1; }; }
3564 if test "" != "" ; then
3565 LIBS="-L$LIBELF_LIB_DIR -L"
3567 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3568 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3569 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 ac_check_lib_save_LIBS=$LIBS
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3596 rm -f conftest.$ac_objext conftest$ac_exeext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598 (eval $ac_link) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_cxx_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest$ac_exeext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_lib_elf_elf_memory=yes
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_lib_elf_elf_memory=no
3625 rm -f conftest.err conftest.$ac_objext \
3626 conftest$ac_exeext conftest.$ac_ext
3627 LIBS=$ac_check_lib_save_LIBS
3629 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3630 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3631 if test $ac_cv_lib_elf_elf_memory = yes; then
3632 cat >>confdefs.h <<_ACEOF
3633 #define HAVE_LIBELF 1
3639 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3640 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3641 { (exit 1); exit 1; }; }
3645 LIBS="-L$LIBELF_LIB_DIR"
3647 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3648 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3649 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_check_lib_save_LIBS=$LIBS
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3676 rm -f conftest.$ac_objext conftest$ac_exeext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678 (eval $ac_link) 2>conftest.er1
3680 grep -v '^ *+' conftest.er1 >conftest.err
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_cxx_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_cv_lib_elf_elf_memory=yes
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 ac_cv_lib_elf_elf_memory=no
3705 rm -f conftest.err conftest.$ac_objext \
3706 conftest$ac_exeext conftest.$ac_ext
3707 LIBS=$ac_check_lib_save_LIBS
3709 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3710 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3711 if test $ac_cv_lib_elf_elf_memory = yes; then
3712 cat >>confdefs.h <<_ACEOF
3713 #define HAVE_LIBELF 1
3719 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3720 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3721 { (exit 1); exit 1; }; }
3729 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3730 if test "$LIB_TYPE_DYNAMIC" = "true"; then
3733 LIB_TYPE_STATIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3737 LIBELF_STATIC="$LIB_TYPE_STATIC"
3738 LIBELF_DYNAMIC="$LIB_TYPE_DYNAMIC"
3745 if test "$host_cpu" != "x86_64" -a "$host_cpu" != "i686"; then
3746 { echo "$as_me:$LINENO: Not x86/x86_64, skipping icc on $host_cpu..." >&5
3747 echo "$as_me: Not x86/x86_64, skipping icc on $host_cpu..." >&6;}
3750 # Check whether --with-icc or --without-icc was given.
3751 if test "${with_icc+set}" = set; then
3753 _ICC_="${withval}"; _ICPC_=`dirname ${withval}`/icpc;
3759 if test "$host_cpu" != "x86_64" -a "$host_cpu" != "i686"; then
3760 { echo "$as_me:$LINENO: Not x86/x86_64, skipping pgcc on $host_cpu..." >&5
3761 echo "$as_me: Not x86/x86_64, skipping pgcc on $host_cpu..." >&6;}
3764 # Check whether --with-pgcc or --without-pgcc was given.
3765 if test "${with_pgcc+set}" = set; then
3766 withval="$with_pgcc"
3767 _PGC_="${withval}"; _PGCXX_=`dirname ${withval}`/pgCC;
3773 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3774 if test "`basename $CXX`" = "xlC" ; then
3776 elif test "`basename $CC`" = "xlc" ; then
3784 if test "x$BUILD_XLC" = "x" ; then
3786 # Check whether --with-libiberty-libdir or --without-libiberty-libdir was given.
3787 if test "${with_libiberty_libdir+set}" = set; then
3788 withval="$with_libiberty_libdir"
3789 LIBIBERTY_LIB_DIR="${withval}";
3792 if test "x$LIBIBERTY_LIB_DIR" != "x" ; then
3793 LIBS="-L$LIBIBERTY_LIB_DIR"
3795 echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
3796 echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6
3797 if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-liberty $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char cplus_demangle ();
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_cxx_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_lib_iberty_cplus_demangle=yes
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_lib_iberty_cplus_demangle=no
3853 rm -f conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext conftest.$ac_ext
3855 LIBS=$ac_check_lib_save_LIBS
3857 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
3858 echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6
3859 if test $ac_cv_lib_iberty_cplus_demangle = yes; then
3860 HAVE_LIBIBERTY="true";
3862 HAVE_LIBIBERTY="false"
3867 LDFLAGS_BAK=$LDFLAGS
3868 CXXFLAGS_BAK=$CXXFLAGS
3869 LIBS="$LIBS -liberty"
3870 LDFLAGS="$LDFLAGS -shared"
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 extern "C" { char *cplus_demangle(char *s, int opts); }
3882 cplus_demangle("", 0);
3887 rm -f conftest.$ac_objext conftest$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_cxx_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest$ac_exeext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 LIBIBERTY_LINK="true"
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 LIBIBERTY_LINK="false"
3916 rm -f conftest.err conftest.$ac_objext \
3917 conftest$ac_exeext conftest.$ac_ext
3918 LDFLAGS=$LDFLAGS_BAK
3920 CXXFLAGS=$CXXFLAGS_BAK
3922 if test "x$HAVE_LIBIBERTY" = "xtrue" ; then
3923 if test "x$LIBIBERTY_LINK" = "xtrue" ; then
3926 elif test "x$_PGC_" != "x" ; then
3928 echo "WARNING: libiberty does not link with shared objects. Mutatees will have to be linked with -liberty."
3936 if test "x$GNU_DEMANGLER" = "xtrue" ; then
3947 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3948 { echo "$as_me:$LINENO: AIX system, skipping libdwarf..." >&5
3949 echo "$as_me: AIX system, skipping libdwarf..." >&6;}
3952 # Check whether --with-libdwarf-incdir or --without-libdwarf-incdir was given.
3953 if test "${with_libdwarf_incdir+set}" = set; then
3954 withval="$with_libdwarf_incdir"
3955 LIBDWARF_INC_DIR="${withval}";
3958 # Check whether --with-libdwarf-libdir or --without-libdwarf-libdir was given.
3959 if test "${with_libdwarf_libdir+set}" = set; then
3960 withval="$with_libdwarf_libdir"
3961 LIBDWARF_LIB_DIR="${withval}";
3964 if test "x$SUPPRESS_LIBDWARF_REQ" = "x"; then
3965 CXXFLAGS_HOLD=$CXXFLAGS;
3966 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR";
3967 CPPFLAGS_HOLD=$CPPFLAGS;
3968 CPPFLAGS="$CPPFLAGS -I$LIBDWARF_INC_DIR";
3970 as_ac_Header=`echo "ac_cv_header_$LIBDWARF_INC_DIR/libdwarf.h" | $as_tr_sh`
3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
3973 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
3974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980 # Is the header compilable?
3981 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h usability" >&5
3982 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h usability... $ECHO_C" >&6
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 $ac_includes_default
3990 #include <$LIBDWARF_INC_DIR/libdwarf.h>
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_cxx_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_header_compiler=yes
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 ac_header_compiler=no
4021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4023 echo "${ECHO_T}$ac_header_compiler" >&6
4025 # Is the header present?
4026 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h presence" >&5
4027 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h presence... $ECHO_C" >&6
4028 cat >conftest.$ac_ext <<_ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <$LIBDWARF_INC_DIR/libdwarf.h>
4036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null; then
4044 if test -s conftest.err; then
4045 ac_cpp_err=$ac_cxx_preproc_warn_flag
4046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4053 if test -z "$ac_cpp_err"; then
4054 ac_header_preproc=yes
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_header_preproc=no
4061 rm -f conftest.err conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4063 echo "${ECHO_T}$ac_header_preproc" >&6
4065 # So? What about this header?
4066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4068 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
4069 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&5
4071 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&2;}
4072 ac_header_preproc=yes
4075 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&5
4076 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&5
4078 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&2;}
4079 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&5
4080 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&5
4082 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&2;}
4083 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&5
4084 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&2;}
4085 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&5
4086 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&2;}
4089 ## ------------------------------- ##
4090 ## Report this to bugs@dyninst.org ##
4091 ## ------------------------------- ##
4094 sed "s/^/$as_me: WARNING: /" >&2
4097 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
4098 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
4099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 eval "$as_ac_Header=\$ac_header_preproc"
4104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4109 { echo "$as_me:$LINENO: DWARF include directory: $LIBDWARF_INC_DIR" >&5
4110 echo "$as_me: DWARF include directory: $LIBDWARF_INC_DIR" >&6;}
4112 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR/libdwarf";
4113 CPPFLAGS="$CPPFLAGS -I$LIBDWARF_INC_DIR/libdwarf";
4114 as_ac_Header=`echo "ac_cv_header_$LIBDWARF_INC_DIR/libdwarf/libdwarf.h" | $as_tr_sh`
4115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4116 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h" >&5
4117 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h... $ECHO_C" >&6
4118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4124 # Is the header compilable?
4125 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h usability" >&5
4126 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h usability... $ECHO_C" >&6
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 $ac_includes_default
4134 #include <$LIBDWARF_INC_DIR/libdwarf/libdwarf.h>
4136 rm -f conftest.$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_cxx_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_header_compiler=yes
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_header_compiler=no
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4167 echo "${ECHO_T}$ac_header_compiler" >&6
4169 # Is the header present?
4170 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h presence" >&5
4171 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h presence... $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <$LIBDWARF_INC_DIR/libdwarf/libdwarf.h>
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_cxx_preproc_warn_flag
4190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4197 if test -z "$ac_cpp_err"; then
4198 ac_header_preproc=yes
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 ac_header_preproc=no
4205 rm -f conftest.err conftest.$ac_ext
4206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4207 echo "${ECHO_T}$ac_header_preproc" >&6
4209 # So? What about this header?
4210 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4212 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
4213 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the compiler's result" >&5
4215 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the compiler's result" >&2;}
4216 ac_header_preproc=yes
4219 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: present but cannot be compiled" >&5
4220 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: present but cannot be compiled" >&2;}
4221 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: check for missing prerequisite headers?" >&5
4222 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: check for missing prerequisite headers?" >&2;}
4223 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: see the Autoconf documentation" >&5
4224 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: see the Autoconf documentation" >&2;}
4225 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&5
4226 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&2;}
4227 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the preprocessor's result" >&5
4228 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the preprocessor's result" >&2;}
4229 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: in the future, the compiler will take precedence" >&5
4230 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: in the future, the compiler will take precedence" >&2;}
4233 ## ------------------------------- ##
4234 ## Report this to bugs@dyninst.org ##
4235 ## ------------------------------- ##
4238 sed "s/^/$as_me: WARNING: /" >&2
4241 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h" >&5
4242 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 eval "$as_ac_Header=\$ac_header_preproc"
4248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4253 LIBDWARF_INC_DIR+="/libdwarf";{ echo "$as_me:$LINENO: DWARF include directory: $LIBDWARF_INC_DIR" >&5
4254 echo "$as_me: DWARF include directory: $LIBDWARF_INC_DIR" >&6;}
4256 { { echo "$as_me:$LINENO: error: couldn't find libdwarf.h" >&5
4257 echo "$as_me: error: couldn't find libdwarf.h" >&2;}
4258 { (exit 1); exit 1; }; }
4265 CXXFLAGS=$CXXFLAGS_HOLD;
4266 CPPFLAGS=$CPPFLAGS_HOLD;
4269 if test "$LIBDWARF_LIB_DIR" = "" ; then
4271 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
4272 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
4273 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-ldwarf $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4291 char dwarf_add_arange ();
4295 dwarf_add_arange ();
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_cxx_werror_flag"
4310 || test ! -s conftest.err'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest$ac_exeext'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 ac_cv_lib_dwarf_dwarf_add_arange=yes
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4327 ac_cv_lib_dwarf_dwarf_add_arange=no
4329 rm -f conftest.err conftest.$ac_objext \
4330 conftest$ac_exeext conftest.$ac_ext
4331 LIBS=$ac_check_lib_save_LIBS
4333 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
4334 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
4335 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define HAVE_LIBDWARF 1
4340 LIBS="-ldwarf $LIBS"
4343 { { echo "$as_me:$LINENO: error: Can't find libdwarf." >&5
4344 echo "$as_me: error: Can't find libdwarf." >&2;}
4345 { (exit 1); exit 1; }; }
4350 if test "$LIBELF_LIB_DIR" != "" ; then
4351 LIBS="-L$LIBDWARF_LIB_DIR -L$LIBELF_LIB_DIR"
4353 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
4354 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
4355 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-ldwarf -lelf $LIBS"
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4373 char dwarf_add_arange ();
4377 dwarf_add_arange ();
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_cxx_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest$ac_exeext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_lib_dwarf_dwarf_add_arange=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_lib_dwarf_dwarf_add_arange=no
4411 rm -f conftest.err conftest.$ac_objext \
4412 conftest$ac_exeext conftest.$ac_ext
4413 LIBS=$ac_check_lib_save_LIBS
4415 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
4416 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
4417 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
4418 cat >>confdefs.h <<_ACEOF
4419 #define HAVE_LIBDWARF 1
4422 LIBS="-ldwarf $LIBS"
4425 { { echo "$as_me:$LINENO: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&5
4426 echo "$as_me: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&2;}
4427 { (exit 1); exit 1; }; }
4431 LIBS="-L$LIBDWARF_LIB_DIR"
4433 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
4434 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
4435 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 ac_check_lib_save_LIBS=$LIBS
4439 LIBS="-ldwarf $LIBS"
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char dwarf_add_arange ();
4457 dwarf_add_arange ();
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_cxx_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_lib_dwarf_dwarf_add_arange=yes
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_cv_lib_dwarf_dwarf_add_arange=no
4491 rm -f conftest.err conftest.$ac_objext \
4492 conftest$ac_exeext conftest.$ac_ext
4493 LIBS=$ac_check_lib_save_LIBS
4495 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
4496 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
4497 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
4498 cat >>confdefs.h <<_ACEOF
4499 #define HAVE_LIBDWARF 1
4502 LIBS="-ldwarf $LIBS"
4505 { { echo "$as_me:$LINENO: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&5
4506 echo "$as_me: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&2;}
4507 { (exit 1); exit 1; }; }
4515 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBDWARF_LIB_DIR | grep dwarf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
4516 if test "$LIB_TYPE_DYNAMIC" = "true"; then
4519 LIB_TYPE_STATIC=`ls -H -1 $LIBDWARF_LIB_DIR | grep dwarf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
4524 LIBDWARF_STATIC="$LIB_TYPE_STATIC"
4525 LIBDWARF_DYNAMIC="$LIB_TYPE_DYNAMIC"
4532 if test "$LIBDWARF_LIB_DIR" = "" ; then
4533 echo "$as_me:$LINENO: checking for dwarf_set_frame_cfa_value in -ldwarf" >&5
4534 echo $ECHO_N "checking for dwarf_set_frame_cfa_value in -ldwarf... $ECHO_C" >&6
4535 if test "${ac_cv_lib_dwarf_dwarf_set_frame_cfa_value+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-ldwarf $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any gcc2 internal prototype to avoid an error. */
4551 /* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4553 char dwarf_set_frame_cfa_value ();
4557 dwarf_set_frame_cfa_value ();
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_cxx_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=yes
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=no
4591 rm -f conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext
4593 LIBS=$ac_check_lib_save_LIBS
4595 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&5
4596 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&6
4597 if test $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value = yes; then
4603 if test "$LIBELF_LIB_DIR" != "" ; then
4604 LIBS="-L$LIBDWARF_LIB_DIR -L$LIBELF_LIB_DIR"
4605 echo "$as_me:$LINENO: checking for dwarf_set_frame_cfa_value in -ldwarf" >&5
4606 echo $ECHO_N "checking for dwarf_set_frame_cfa_value in -ldwarf... $ECHO_C" >&6
4607 if test "${ac_cv_lib_dwarf_dwarf_set_frame_cfa_value+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-ldwarf -lelf $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4625 char dwarf_set_frame_cfa_value ();
4629 dwarf_set_frame_cfa_value ();
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_cxx_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=yes
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=no
4663 rm -f conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4667 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&5
4668 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&6
4669 if test $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value = yes; then
4674 LIBS="-L$LIBDWARF_LIB_DIR"
4675 echo "$as_me:$LINENO: checking for dwarf_set_frame_cfa_value in -ldwarf" >&5
4676 echo $ECHO_N "checking for dwarf_set_frame_cfa_value in -ldwarf... $ECHO_C" >&6
4677 if test "${ac_cv_lib_dwarf_dwarf_set_frame_cfa_value+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_check_lib_save_LIBS=$LIBS
4681 LIBS="-ldwarf $LIBS"
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695 char dwarf_set_frame_cfa_value ();
4699 dwarf_set_frame_cfa_value ();
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_cxx_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=yes
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_cv_lib_dwarf_dwarf_set_frame_cfa_value=no
4733 rm -f conftest.err conftest.$ac_objext \
4734 conftest$ac_exeext conftest.$ac_ext
4735 LIBS=$ac_check_lib_save_LIBS
4737 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&5
4738 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_set_frame_cfa_value" >&6
4739 if test $ac_cv_lib_dwarf_dwarf_set_frame_cfa_value = yes; then
4747 LIBDWARF_HAS_SET_FRAME="$HAS_FEATURE"
4753 # Check whether --with-threaddb-incdir or --without-threaddb-incdir was given.
4754 if test "${with_threaddb_incdir+set}" = set; then
4755 withval="$with_threaddb_incdir"
4756 THREADDB_INC_DIR="${withval}";
4759 # Check whether --with-threaddb-libdir or --without-threaddb-libdir was given.
4760 if test "${with_threaddb_libdir+set}" = set; then
4761 withval="$with_threaddb_libdir"
4762 THREADDB_LIB_DIR="${withval}";
4764 CXXFLAGS_HOLD=$CXXFLAGS;
4765 CPPFLAGS_HOLD=$CPPFLAGS;
4766 LDFLAGS_HOLD=$LDFLAGS
4767 if test "x$THREADDB_INC_DIR" != "x"; then
4768 CXXFLAGS="$CXXFLAGS -I$THREADDB_INC_DIR"
4769 CPPFLAGS="$CPPFLAGS -I$THREADDB_INC_DIR"
4772 HAVE_THREADDB="true"
4773 if test "x$SUPPRESS_THREADDB_REQ" = "x"; then
4774 if test "${ac_cv_header_thread_db_h+set}" = set; then
4775 echo "$as_me:$LINENO: checking for thread_db.h" >&5
4776 echo $ECHO_N "checking for thread_db.h... $ECHO_C" >&6
4777 if test "${ac_cv_header_thread_db_h+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 echo "$as_me:$LINENO: result: $ac_cv_header_thread_db_h" >&5
4781 echo "${ECHO_T}$ac_cv_header_thread_db_h" >&6
4783 # Is the header compilable?
4784 echo "$as_me:$LINENO: checking thread_db.h usability" >&5
4785 echo $ECHO_N "checking thread_db.h usability... $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793 #include <thread_db.h>
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_cxx_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_header_compiler=yes
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 ac_header_compiler=no
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826 echo "${ECHO_T}$ac_header_compiler" >&6
4828 # Is the header present?
4829 echo "$as_me:$LINENO: checking thread_db.h presence" >&5
4830 echo $ECHO_N "checking thread_db.h presence... $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <thread_db.h>
4839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_cxx_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4856 if test -z "$ac_cpp_err"; then
4857 ac_header_preproc=yes
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_header_preproc=no
4864 rm -f conftest.err conftest.$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866 echo "${ECHO_T}$ac_header_preproc" >&6
4868 # So? What about this header?
4869 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4871 { echo "$as_me:$LINENO: WARNING: thread_db.h: accepted by the compiler, rejected by the preprocessor!" >&5
4872 echo "$as_me: WARNING: thread_db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: thread_db.h: proceeding with the compiler's result" >&5
4874 echo "$as_me: WARNING: thread_db.h: proceeding with the compiler's result" >&2;}
4875 ac_header_preproc=yes
4878 { echo "$as_me:$LINENO: WARNING: thread_db.h: present but cannot be compiled" >&5
4879 echo "$as_me: WARNING: thread_db.h: present but cannot be compiled" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: thread_db.h: check for missing prerequisite headers?" >&5
4881 echo "$as_me: WARNING: thread_db.h: check for missing prerequisite headers?" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: thread_db.h: see the Autoconf documentation" >&5
4883 echo "$as_me: WARNING: thread_db.h: see the Autoconf documentation" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: thread_db.h: section \"Present But Cannot Be Compiled\"" >&5
4885 echo "$as_me: WARNING: thread_db.h: section \"Present But Cannot Be Compiled\"" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: thread_db.h: proceeding with the preprocessor's result" >&5
4887 echo "$as_me: WARNING: thread_db.h: proceeding with the preprocessor's result" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: thread_db.h: in the future, the compiler will take precedence" >&5
4889 echo "$as_me: WARNING: thread_db.h: in the future, the compiler will take precedence" >&2;}
4892 ## ------------------------------- ##
4893 ## Report this to bugs@dyninst.org ##
4894 ## ------------------------------- ##
4897 sed "s/^/$as_me: WARNING: /" >&2
4900 echo "$as_me:$LINENO: checking for thread_db.h" >&5
4901 echo $ECHO_N "checking for thread_db.h... $ECHO_C" >&6
4902 if test "${ac_cv_header_thread_db_h+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 ac_cv_header_thread_db_h=$ac_header_preproc
4907 echo "$as_me:$LINENO: result: $ac_cv_header_thread_db_h" >&5
4908 echo "${ECHO_T}$ac_cv_header_thread_db_h" >&6
4911 if test $ac_cv_header_thread_db_h = yes; then
4912 { echo "$as_me:$LINENO: thread_db include directory: $THREADDB_INC_DIR" >&5
4913 echo "$as_me: thread_db include directory: $THREADDB_INC_DIR" >&6;}
4915 { { echo "$as_me:$LINENO: error: couldn't find thread_db.h" >&5
4916 echo "$as_me: error: couldn't find thread_db.h" >&2;}
4917 { (exit 1); exit 1; }; }
4922 if test "$THREADDB_LIB_DIR" = "" ; then
4924 echo "$as_me:$LINENO: checking for td_ta_new in -lthread_db" >&5
4925 echo $ECHO_N "checking for td_ta_new in -lthread_db... $ECHO_C" >&6
4926 if test "${ac_cv_lib_thread_db_td_ta_new+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_check_lib_save_LIBS=$LIBS
4930 LIBS="-lthread_db $LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any gcc2 internal prototype to avoid an error. */