2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Dyninst 8.0.
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='8.0'
273 PACKAGE_STRING='Dyninst 8.0'
274 PACKAGE_BUGREPORT='bugs@dyninst.org'
276 ac_default_prefix=/usr
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_ LIBRARY_DEST_VAR PROGRAM_DEST_VAR INCLUDE_DEST_VAR 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 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 8.0 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 8.0:";;
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-traditional Install to traditional (deprecated) locations
858 --with-package-base Base directory to look for packages
859 --with-default-component
860 Valid values: DyninstAPI, SymtabAPI, InstructionAPI,
861 ProcControlAPI, ParseAPI, default
862 --with-tcl83 Use Tcl/Tk 8.3
863 --with-tcltk-incdir TCL/TK include directory
864 --with-tcltk-libdir TCL/TK library directory
865 --with-wrapper-libs Comma seperated list of archive to wrap
866 --with-libelf-incdir LIBELF include directory
867 --with-libelf-libdir LIBELF library directory
868 --with-icc Path to Intel's ICC compiler
869 --with-pgcc Path to Pathscale's PGCC compiler
870 --with-libiberty-libdir LIBIBERTY library directory
871 --with-libdwarf-incdir LIBDWARF include directory
872 --with-libdwarf-libdir LIBDWARF library directory
873 --with-threaddb-incdir THREADDB include directory
874 --with-threaddb-libdir THREADDB library directory
875 --with-libxml2-incdir LIBXML2 include directory
876 --with-libxml2-libdir LIBXML2 library directory
877 --with-launchmon-incdir Launchmon include directory
878 --with-launchmon-libdir Launchmon library directory
879 --with-libflex-libdir Absolute path to flex library
881 Some influential environment variables:
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CXXCPP C++ preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <bugs@dyninst.org>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
989 Dyninst configure 8.0
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by Dyninst $as_me 8.0, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 for ac_dir in autodyninst $srcdir/autodyninst; do
1344 if test -f $ac_dir/install-sh; then
1346 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 elif test -f $ac_dir/install.sh; then
1350 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 elif test -f $ac_dir/shtool; then
1354 ac_install_sh="$ac_aux_dir/shtool install -c"
1358 if test -z "$ac_aux_dir"; then
1359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&5
1360 echo "$as_me: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&2;}
1361 { (exit 1); exit 1; }; }
1363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 [\\/]* | ?:[\\/]* ) ac_macro_dir=autodyninst ;;
1369 *) ac_macro_dir=$srcdir/autodyninst ;;
1371 if test -d "$ac_macro_dir"; then :
1373 { { echo "$as_me:$LINENO: error: cannot find macro directory \`autodyninst'" >&5
1374 echo "$as_me: error: cannot find macro directory \`autodyninst'" >&2;}
1375 { (exit 1); exit 1; }; }
1380 ac_cpp='$CXXCPP $CPPFLAGS'
1381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1384 if test -n "$ac_tool_prefix"; then
1385 for ac_prog in $CCC g++
1387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1389 echo "$as_me:$LINENO: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_CXX+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 if test -n "$CXX"; then
1395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 if test -n "$CXX"; then
1415 echo "$as_me:$LINENO: result: $CXX" >&5
1416 echo "${ECHO_T}$CXX" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1422 test -n "$CXX" && break
1425 if test -z "$CXX"; then
1427 for ac_prog in $CCC g++
1429 # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$ac_ct_CXX"; then
1437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_ac_ct_CXX="$ac_prog"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1456 if test -n "$ac_ct_CXX"; then
1457 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1458 echo "${ECHO_T}$ac_ct_CXX" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$ac_ct_CXX" && break
1466 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1472 # Provide some information about the compiler.
1473 echo "$as_me:$LINENO:" \
1474 "checking for C++ compiler version" >&5
1475 ac_compiler=`set X $ac_compile; echo $2`
1476 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1477 (eval $ac_compiler --version </dev/null >&5) 2>&5
1479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1480 (exit $ac_status); }
1481 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1482 (eval $ac_compiler -v </dev/null >&5) 2>&5
1484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1485 (exit $ac_status); }
1486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1487 (eval $ac_compiler -V </dev/null >&5) 2>&5
1489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1490 (exit $ac_status); }
1492 cat >conftest.$ac_ext <<_ACEOF
1495 cat confdefs.h >>conftest.$ac_ext
1496 cat >>conftest.$ac_ext <<_ACEOF
1497 /* end confdefs.h. */
1507 ac_clean_files_save=$ac_clean_files
1508 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1509 # Try to create an executable without -o first, disregard a.out.
1510 # It will help us diagnose broken compilers, and finding out an intuition
1512 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1513 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1514 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1515 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1516 (eval $ac_link_default) 2>&5
1518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1519 (exit $ac_status); }; then
1520 # Find the output, starting from the most likely. This scheme is
1521 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1524 # Be careful to initialize this variable, since it used to be cached.
1525 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1527 # b.out is created by i960 compilers.
1528 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1530 test -f "$ac_file" || continue
1532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1535 # This is the source file.
1538 # We found the default executable, but exeext='' is most
1542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1543 # FIXME: I believe we export ac_cv_exeext for Libtool,
1544 # but it would be cool to find out if it's true. Does anybody
1545 # maintain Libtool? --akim.
1553 echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1556 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1557 See \`config.log' for more details." >&5
1558 echo "$as_me: error: C++ compiler cannot create executables
1559 See \`config.log' for more details." >&2;}
1560 { (exit 77); exit 77; }; }
1563 ac_exeext=$ac_cv_exeext
1564 echo "$as_me:$LINENO: result: $ac_file" >&5
1565 echo "${ECHO_T}$ac_file" >&6
1567 # Check the compiler produces executables we can run. If not, either
1568 # the compiler is broken, or we cross compile.
1569 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1570 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1571 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1572 # If not cross compiling, check that we can run a simple program.
1573 if test "$cross_compiling" != yes; then
1574 if { ac_try='./$ac_file'
1575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1579 (exit $ac_status); }; }; then
1582 if test "$cross_compiling" = maybe; then
1585 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1586 If you meant to cross compile, use \`--host'.
1587 See \`config.log' for more details." >&5
1588 echo "$as_me: error: cannot run C++ compiled programs.
1589 If you meant to cross compile, use \`--host'.
1590 See \`config.log' for more details." >&2;}
1591 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1598 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1599 ac_clean_files=$ac_clean_files_save
1600 # Check the compiler produces executables we can run. If not, either
1601 # the compiler is broken, or we cross compile.
1602 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1603 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1604 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1605 echo "${ECHO_T}$cross_compiling" >&6
1607 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1608 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1610 (eval $ac_link) 2>&5
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); }; then
1614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1616 # work properly (i.e., refer to `conftest.exe'), while it won't with
1618 for ac_file in conftest.exe conftest conftest.*; do
1619 test -f "$ac_file" || continue
1621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1629 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1630 See \`config.log' for more details." >&5
1631 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1632 See \`config.log' for more details." >&2;}
1633 { (exit 1); exit 1; }; }
1636 rm -f conftest$ac_cv_exeext
1637 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1638 echo "${ECHO_T}$ac_cv_exeext" >&6
1640 rm -f conftest.$ac_ext
1641 EXEEXT=$ac_cv_exeext
1643 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1644 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1645 if test "${ac_cv_objext+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 cat >conftest.$ac_ext <<_ACEOF
1651 cat confdefs.h >>conftest.$ac_ext
1652 cat >>conftest.$ac_ext <<_ACEOF
1653 /* end confdefs.h. */
1663 rm -f conftest.o conftest.obj
1664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1665 (eval $ac_compile) 2>&5
1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1668 (exit $ac_status); }; then
1669 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1677 echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1681 See \`config.log' for more details." >&5
1682 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1683 See \`config.log' for more details." >&2;}
1684 { (exit 1); exit 1; }; }
1687 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1689 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1690 echo "${ECHO_T}$ac_cv_objext" >&6
1691 OBJEXT=$ac_cv_objext
1693 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1694 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1695 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 cat >conftest.$ac_ext <<_ACEOF
1701 cat confdefs.h >>conftest.$ac_ext
1702 cat >>conftest.$ac_ext <<_ACEOF
1703 /* end confdefs.h. */
1716 rm -f conftest.$ac_objext
1717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1718 (eval $ac_compile) 2>conftest.er1
1720 grep -v '^ *+' conftest.er1 >conftest.err
1722 cat conftest.err >&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); } &&
1725 { ac_try='test -z "$ac_cxx_werror_flag"
1726 || test ! -s conftest.err'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1749 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1750 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1751 GXX=`test $ac_compiler_gnu = yes && echo yes`
1752 ac_test_CXXFLAGS=${CXXFLAGS+set}
1753 ac_save_CXXFLAGS=$CXXFLAGS
1755 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1756 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1757 if test "${ac_cv_prog_cxx_g+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 cat >conftest.$ac_ext <<_ACEOF
1763 cat confdefs.h >>conftest.$ac_ext
1764 cat >>conftest.$ac_ext <<_ACEOF
1765 /* end confdefs.h. */
1775 rm -f conftest.$ac_objext
1776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1777 (eval $ac_compile) 2>conftest.er1
1779 grep -v '^ *+' conftest.er1 >conftest.err
1781 cat conftest.err >&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -z "$ac_cxx_werror_flag"
1785 || test ! -s conftest.err'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; } &&
1791 { ac_try='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1797 ac_cv_prog_cxx_g=yes
1799 echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1806 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1808 if test "$ac_test_CXXFLAGS" = set; then
1809 CXXFLAGS=$ac_save_CXXFLAGS
1810 elif test $ac_cv_prog_cxx_g = yes; then
1811 if test "$GXX" = yes; then
1817 if test "$GXX" = yes; then
1823 for ac_declaration in \
1825 'extern "C" void std::exit (int) throw (); using std::exit;' \
1826 'extern "C" void std::exit (int); using std::exit;' \
1827 'extern "C" void exit (int) throw ();' \
1828 'extern "C" void exit (int);' \
1831 cat >conftest.$ac_ext <<_ACEOF
1834 cat confdefs.h >>conftest.$ac_ext
1835 cat >>conftest.$ac_ext <<_ACEOF
1836 /* end confdefs.h. */
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>conftest.er1
1851 grep -v '^ *+' conftest.er1 >conftest.err
1853 cat conftest.err >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try='test -z "$ac_cxx_werror_flag"
1857 || test ! -s conftest.err'
1858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; } &&
1863 { ac_try='test -s conftest.$ac_objext'
1864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; }; then
1871 echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1877 cat >conftest.$ac_ext <<_ACEOF
1880 cat confdefs.h >>conftest.$ac_ext
1881 cat >>conftest.$ac_ext <<_ACEOF
1882 /* end confdefs.h. */
1892 rm -f conftest.$ac_objext
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>conftest.er1
1896 grep -v '^ *+' conftest.er1 >conftest.err
1898 cat conftest.err >&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -z "$ac_cxx_werror_flag"
1902 || test ! -s conftest.err'
1903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1923 if test -n "$ac_declaration"; then
1924 echo '#ifdef __cplusplus' >>confdefs.h
1925 echo $ac_declaration >>confdefs.h
1926 echo '#endif' >>confdefs.h
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 # Extract the first word of "icc", so it can be a program name with args.
1936 set dummy icc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_path__ICC_+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 ac_cv_path__ICC_="$_ICC_" # Let the user override the test with a path.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 ac_cv_path__ICC_="$as_dir/$ac_word$ac_exec_ext"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 _ICC_=$ac_cv_path__ICC_
1966 if test -n "$_ICC_"; then
1967 echo "$as_me:$LINENO: result: $_ICC_" >&5
1968 echo "${ECHO_T}$_ICC_" >&6
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1974 # Extract the first word of "icpc", so it can be a program name with args.
1975 set dummy icpc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_path__ICPC_+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 ac_cv_path__ICPC_="$_ICPC_" # Let the user override the test with a path.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_path__ICPC_="$as_dir/$ac_word$ac_exec_ext"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 _ICPC_=$ac_cv_path__ICPC_
2005 if test -n "$_ICPC_"; then
2006 echo "$as_me:$LINENO: result: $_ICPC_" >&5
2007 echo "${ECHO_T}$_ICPC_" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 # Extract the first word of "pgcc", so it can be a program name with args.
2014 set dummy pgcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_path__PGC_+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 ac_cv_path__PGC_="$_PGC_" # Let the user override the test with a path.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_path__PGC_="$as_dir/$ac_word$ac_exec_ext"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 _PGC_=$ac_cv_path__PGC_
2044 if test -n "$_PGC_"; then
2045 echo "$as_me:$LINENO: result: $_PGC_" >&5
2046 echo "${ECHO_T}$_PGC_" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 # Extract the first word of "pgCC", so it can be a program name with args.
2053 set dummy pgCC; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_path__PGCXX_+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 ac_cv_path__PGCXX_="$_PGCXX_" # Let the user override the test with a path.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_path__PGCXX_="$as_dir/$ac_word$ac_exec_ext"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 _PGCXX_=$ac_cv_path__PGCXX_
2083 if test -n "$_PGCXX_"; then
2084 echo "$as_me:$LINENO: result: $_PGCXX_" >&5
2085 echo "${ECHO_T}$_PGCXX_" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_path__CC_+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_path__CC_="$_CC_" # Let the user override the test with a path.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_path__CC_="$as_dir/$ac_word$ac_exec_ext"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 _CC_=$ac_cv_path__CC_
2122 if test -n "$_CC_"; then
2123 echo "$as_me:$LINENO: result: $_CC_" >&5
2124 echo "${ECHO_T}$_CC_" >&6
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2130 # Extract the first word of "CC", so it can be a program name with args.
2131 set dummy CC; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_path__CXX_+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 ac_cv_path__CXX_="$_CXX_" # Let the user override the test with a path.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149 ac_cv_path__CXX_="$as_dir/$ac_word$ac_exec_ext"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 _CXX_=$ac_cv_path__CXX_
2161 if test -n "$_CXX_"; then
2162 echo "$as_me:$LINENO: result: $_CXX_" >&5
2163 echo "${ECHO_T}$_CXX_" >&6
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2170 ac_cpp='$CXXCPP $CPPFLAGS'
2171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2179 # Check whether --with-traditional or --without-traditional was given.
2180 if test "${with_traditional+set}" = set; then
2181 withval="$with_traditional"
2182 LIBRARY_DEST_VAR="LIBRARY_DEST=\${TO_CORE}/../\${PLATFORM}/lib";
2183 PROGRAM_DEST_VAR="PROGRAM_DEST=\${TO_CORE}/../\${PLATFORM}/bin";
2184 INCLUDE_DEST_VAR="INCLUDE_DEST=\${TO_CORE}/include";
2186 LIBRARY_DEST_VAR="";
2187 PROGRAM_DEST_VAR="";
2188 INCLUDE_DEST_VAR="";
2197 # Check whether --with-package-base or --without-package-base was given.
2198 if test "${with_package_base+set}" = set; then
2199 withval="$with_package_base"
2200 PACKAGE_BASE="${withval}";
2201 TCLTK_INC_DIR="${PACKAGE_BASE}/tcl8.4.5/include";
2202 TCLTK_LIB_DIR="${PACKAGE_BASE}/tcl8.4.5/lib";
2203 LIBELF_INC_DIR="${PACKAGE_BASE}/libelf/include";
2204 LIBELF_LIB_DIR="${PACKAGE_BASE}/libelf/lib";
2205 LIBDWARF_INC_DIR="${PACKAGE_BASE}/libdwarf/include";
2206 LIBDWARF_LIB_DIR="${PACKAGE_BASE}/libdwarf/lib";
2207 ARG_WRAPPER_LIBS="";
2208 LIBXML2_INC_DIR="${PACKAGE_BASE}/libxml2/include/libxml2"
2209 LIBXML2_LIB_DIR="${PACKAGE_BASE}/libxml2/lib";
2210 LIBFLEX_LIB_DIR="${PACKAGE_BASE}/libflex/lib";
2214 # We fall back on these defaults if both --with-package-base and
2215 # specific --with-<package> arguments are not provided.
2216 TCLTK_INC_DIR="/usr/include";
2217 TCLTK_LIB_DIR="/usr/lib";
2218 LIBELF_INC_DIR="/usr/include";
2219 LIBELF_LIB_DIR="/usr/lib";
2220 ARG_WRAPPER_LIBS="";
2221 LIBDWARF_INC_DIR="/usr/include";
2222 LIBDWARF_LIB_DIR="/usr/lib";
2223 LIBXML2_INC_DIR="/usr/include/libxml2"
2224 LIBXML2_LIB_DIR="/usr/lib";
2225 LIBFLEX_LIB_DIR="/usr/lib";
2228 # 3/15/09: We don't include libiberty in the cs.wisc.edu package-base.
2229 # Why? Putting these here for now...
2230 #LIBIBERTY_LIB_DIR="/usr/lib";
2233 # Check whether --with-default-component or --without-default-component was given.
2234 if test "${with_default_component+set}" = set; then
2235 withval="$with_default_component"
2236 DEFAULT_COMPONENT="${withval}";
2238 DEFAULT_COMPONENT=`cat autodyninst/default_component`;
2241 # Check whether --with-tcl83 or --without-tcl83 was given.
2242 if test "${with_tcl83+set}" = set; then
2243 withval="$with_tcl83"
2244 TCL_VERSION="tcl8.3"; USE_TCL83="${withval}";
2246 TCL_VERSION="tcl8.4"; USE_TCL83="false";
2249 # Check whether --with-tcltk-incdir or --without-tcltk-incdir was given.
2250 if test "${with_tcltk_incdir+set}" = set; then
2251 withval="$with_tcltk_incdir"
2252 TCLTK_INC_DIR="${withval}";
2255 # Check whether --with-tcltk-libdir or --without-tcltk-libdir was given.
2256 if test "${with_tcltk_libdir+set}" = set; then
2257 withval="$with_tcltk_libdir"
2258 TCLTK_LIB_DIR="${withval}";
2262 CXXFLAGS_HOLD=$CXXFLAGS
2263 if test "$TCLTK_INC_DIR" != "" ; then
2264 echo "$as_me:$LINENO: checking for tcl.h in $TCLTK_INC_DIR" >&5
2265 echo $ECHO_N "checking for tcl.h in $TCLTK_INC_DIR... $ECHO_C" >&6
2266 CXXFLAGS="$CXXFLAGS -I$TCLTK_INC_DIR"
2268 echo "$as_me:$LINENO: checking for tcl.h" >&5
2269 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
2271 cat >conftest.$ac_ext <<_ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_cxx_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2309 cat >>confdefs.h <<\_ACEOF
2310 #define cap_have_tcl 1
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2317 echo "$as_me:$LINENO: result: tcl.h not found in $TCLTK_INC_DIR" >&5
2318 echo "${ECHO_T}tcl.h not found in $TCLTK_INC_DIR" >&6
2320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321 CXXFLAGS=$CXXFLAGS_HOLD
2324 if test "$TCLTK_LIB_DIR" = "" ; then
2326 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2327 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2328 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2329 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_check_lib_save_LIBS=$LIBS
2333 LIBS="-l$TCL_VERSION $LIBS"
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2341 /* Override any gcc2 internal prototype to avoid an error. */
2345 /* We use char because int might match the return type of a gcc2
2346 builtin and then its argument prototype would still apply. */
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2358 (eval $ac_link) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_cxx_werror_flag"
2366 || test ! -s conftest.err'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; } &&
2372 { ac_try='test -s conftest$ac_exeext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2378 eval "$as_ac_Lib=yes"
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 eval "$as_ac_Lib=no"
2385 rm -f conftest.err conftest.$ac_objext \
2386 conftest$ac_exeext conftest.$ac_ext
2387 LIBS=$ac_check_lib_save_LIBS
2389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2390 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2391 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2392 cat >>confdefs.h <<_ACEOF
2393 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2396 LIBS="-l$TCL_VERSION $LIBS"
2399 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION." >&5
2400 echo "${ECHO_T}Can't find lib$TCL_VERSION." >&6
2405 if test "" != "" ; then
2406 LIBS="-L$TCLTK_LIB_DIR -L"
2408 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2409 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2410 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2411 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 ac_check_lib_save_LIBS=$LIBS
2415 LIBS="-l$TCL_VERSION $LIBS"
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2423 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2438 rm -f conftest.$ac_objext conftest$ac_exeext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2440 (eval $ac_link) 2>conftest.er1
2442 grep -v '^ *+' conftest.er1 >conftest.err
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_cxx_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest$ac_exeext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 eval "$as_ac_Lib=yes"
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2465 eval "$as_ac_Lib=no"
2467 rm -f conftest.err conftest.$ac_objext \
2468 conftest$ac_exeext conftest.$ac_ext
2469 LIBS=$ac_check_lib_save_LIBS
2471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2472 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2473 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2474 cat >>confdefs.h <<_ACEOF
2475 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2478 LIBS="-l$TCL_VERSION $LIBS"
2481 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2482 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2486 LIBS="-L$TCLTK_LIB_DIR"
2488 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2489 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2490 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2491 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 ac_check_lib_save_LIBS=$LIBS
2495 LIBS="-l$TCL_VERSION $LIBS"
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2503 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2518 rm -f conftest.$ac_objext conftest$ac_exeext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2520 (eval $ac_link) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_cxx_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest$ac_exeext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 eval "$as_ac_Lib=yes"
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 eval "$as_ac_Lib=no"
2547 rm -f conftest.err conftest.$ac_objext \
2548 conftest$ac_exeext conftest.$ac_ext
2549 LIBS=$ac_check_lib_save_LIBS
2551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2552 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2553 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2554 cat >>confdefs.h <<_ACEOF
2555 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2558 LIBS="-l$TCL_VERSION $LIBS"
2561 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2562 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2574 # Make sure we can run config.sub.
2575 $ac_config_sub sun4 >/dev/null 2>&1 ||
2576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2577 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2578 { (exit 1); exit 1; }; }
2580 echo "$as_me:$LINENO: checking build system type" >&5
2581 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2582 if test "${ac_cv_build+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 ac_cv_build_alias=$build_alias
2586 test -z "$ac_cv_build_alias" &&
2587 ac_cv_build_alias=`$ac_config_guess`
2588 test -z "$ac_cv_build_alias" &&
2589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2590 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2591 { (exit 1); exit 1; }; }
2592 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2594 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2595 { (exit 1); exit 1; }; }
2598 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2599 echo "${ECHO_T}$ac_cv_build" >&6
2601 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2602 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2603 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2606 echo "$as_me:$LINENO: checking host system type" >&5
2607 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2608 if test "${ac_cv_host+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 ac_cv_host_alias=$host_alias
2612 test -z "$ac_cv_host_alias" &&
2613 ac_cv_host_alias=$ac_cv_build_alias
2614 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2616 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2617 { (exit 1); exit 1; }; }
2620 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2621 echo "${ECHO_T}$ac_cv_host" >&6
2623 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2624 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2625 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2630 # Check whether --with-wrapper-libs or --without-wrapper-libs was given.
2631 if test "${with_wrapper_libs+set}" = set; then
2632 withval="$with_wrapper_libs"
2633 ARG_WRAPPER_LIBS="${withval}";
2637 # Check whether --enable-gnu-demangler or --disable-gnu-demangler was given.
2638 if test "${enable_gnu_demangler+set}" = set; then
2639 enableval="$enable_gnu_demangler"
2640 GNU_DEMANGLER="true"
2643 if test "x$DEFAULT_COMPONENT" = "xInstructionAPI"; then
2644 { echo "$as_me:$LINENO: InstructionAPI, not requiring libelf..." >&5
2645 echo "$as_me: InstructionAPI, not requiring libelf..." >&6;}
2646 SUPPRESS_LIBELF_REQ="true"
2647 { echo "$as_me:$LINENO: InstructionAPI, not requiring thread_db..." >&5
2648 echo "$as_me: InstructionAPI, not requiring thread_db..." >&6;}
2649 SUPPRESS_THREADDB_REQ="true"
2650 { echo "$as_me:$LINENO: InstructionAPI, not requiring libdwarf..." >&5
2651 echo "$as_me: InstructionAPI, not requiring libdwarf..." >&6;}
2652 SUPPRESS_LIBDWARF_REQ="true"
2654 if test "x$DEFAULT_COMPONENT" = "xSymtabAPI"; then
2655 { echo "$as_me:$LINENO: SymtabAPI, not requiring thread_db..." >&5
2656 echo "$as_me: SymtabAPI, not requiring thread_db..." >&6;}
2657 SUPPRESS_THREADDB_REQ="true"
2659 if test "x$DEFAULT_COMPONENT" = "xParseAPI"; then
2660 { echo "$as_me:$LINENO: ParseAPI, not requiring thread_db..." >&5
2661 echo "$as_me: ParseAPI, not requiring thread_db..." >&6;}
2662 SUPPRESS_THREADDB_REQ="true"
2664 if test "x$DEFAULT_COMPONENT" = "xProcControlAPI"; then
2665 { echo "$as_me:$LINENO: ProcControlAPI, not requiring libdwarf..." >&5
2666 echo "$as_me: ProcControlAPI, not requiring libdwarf..." >&6;}
2667 SUPPRESS_LIBDWARF_REQ="true"
2669 if test "`echo $host_os | cut -b-5`" = "linux" ; then
2670 if test "x$PLATFORM" = "xppc32_bgp_ion"; then
2671 { echo "$as_me:$LINENO: BG/P, thread_db required..." >&5
2672 echo "$as_me: BG/P, thread_db required..." >&6;}
2673 elif test "x$PLATFORM" = "xppc32_bgl_ion"; then
2674 { echo "$as_me:$LINENO: BG/L, thread_db required..." >&5
2675 echo "$as_me: BG/L, thread_db required..." >&6;}
2677 { echo "$as_me:$LINENO: Linux, not requiring thread_db..." >&5
2678 echo "$as_me: Linux, not requiring thread_db..." >&6;}
2679 SUPPRESS_THREADDB_REQ="true"
2683 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2684 { echo "$as_me:$LINENO: AIX, not requiring thread_db..." >&5
2685 echo "$as_me: AIX, not requiring thread_db..." >&6;}
2686 SUPPRESS_THREADDB_REQ="true"
2689 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2690 { echo "$as_me:$LINENO: AIX system, skipping libelf..." >&5
2691 echo "$as_me: AIX system, skipping libelf..." >&6;}
2694 # Check whether --with-libelf-incdir or --without-libelf-incdir was given.
2695 if test "${with_libelf_incdir+set}" = set; then
2696 withval="$with_libelf_incdir"
2697 LIBELF_INC_DIR="${withval}";
2700 # Check whether --with-libelf-libdir or --without-libelf-libdir was given.
2701 if test "${with_libelf_libdir+set}" = set; then
2702 withval="$with_libelf_libdir"
2703 LIBELF_LIB_DIR="${withval}";
2706 if test "x$SUPPRESS_LIBELF_REQ" = "x"; then
2707 CXXFLAGS_HOLD=$CXXFLAGS;
2708 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR";
2709 CPPFLAGS_HOLD=$CPPFLAGS;
2710 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR";
2713 ac_cpp='$CXXCPP $CPPFLAGS'
2714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2717 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2718 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2719 if test -z "$CXXCPP"; then
2720 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 # Double quotes because CXXCPP needs to be expanded
2724 for CXXCPP in "$CXX -E" "/lib/cpp"
2727 for ac_cxx_preproc_warn_flag in '' yes
2729 # Use a header file that comes with gcc, so configuring glibc
2730 # with a fresh cross-compiler works.
2731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2732 # <limits.h> exists even on freestanding compilers.
2733 # On the NeXT, cc -E runs the code through the compiler's parser,
2734 # not just through cpp. "Syntax error" is here to catch this case.
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2742 # include <limits.h>
2744 # include <assert.h>
2748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } >/dev/null; then
2756 if test -s conftest.err; then
2757 ac_cpp_err=$ac_cxx_preproc_warn_flag
2758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2765 if test -z "$ac_cpp_err"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 # Broken: fails on valid input.
2774 rm -f conftest.err conftest.$ac_ext
2776 # OK, works on sane cases. Now check whether non-existent headers
2777 # can be detected and how.
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #include <ac_nonexistent.h>
2786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789 grep -v '^ *+' conftest.er1 >conftest.err
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } >/dev/null; then
2794 if test -s conftest.err; then
2795 ac_cpp_err=$ac_cxx_preproc_warn_flag
2796 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2803 if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Passes both tests.
2814 rm -f conftest.err conftest.$ac_ext
2817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2818 rm -f conftest.err conftest.$ac_ext
2819 if $ac_preproc_ok; then
2824 ac_cv_prog_CXXCPP=$CXXCPP
2827 CXXCPP=$ac_cv_prog_CXXCPP
2829 ac_cv_prog_CXXCPP=$CXXCPP
2831 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2832 echo "${ECHO_T}$CXXCPP" >&6
2834 for ac_cxx_preproc_warn_flag in '' yes
2836 # Use a header file that comes with gcc, so configuring glibc
2837 # with a fresh cross-compiler works.
2838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2839 # <limits.h> exists even on freestanding compilers.
2840 # On the NeXT, cc -E runs the code through the compiler's parser,
2841 # not just through cpp. "Syntax error" is here to catch this case.
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2849 # include <limits.h>
2851 # include <assert.h>
2855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2858 grep -v '^ *+' conftest.er1 >conftest.err
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } >/dev/null; then
2863 if test -s conftest.err; then
2864 ac_cpp_err=$ac_cxx_preproc_warn_flag
2865 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2872 if test -z "$ac_cpp_err"; then
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 # Broken: fails on valid input.
2881 rm -f conftest.err conftest.$ac_ext
2883 # OK, works on sane cases. Now check whether non-existent headers
2884 # can be detected and how.
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #include <ac_nonexistent.h>
2893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null; then
2901 if test -s conftest.err; then
2902 ac_cpp_err=$ac_cxx_preproc_warn_flag
2903 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2910 if test -z "$ac_cpp_err"; then
2911 # Broken: success on invalid input.
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Passes both tests.
2921 rm -f conftest.err conftest.$ac_ext
2924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2925 rm -f conftest.err conftest.$ac_ext
2926 if $ac_preproc_ok; then
2929 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2932 See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2937 ac_cpp='$CXXCPP $CPPFLAGS'
2938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2943 echo "$as_me:$LINENO: checking for egrep" >&5
2944 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2945 if test "${ac_cv_prog_egrep+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2949 then ac_cv_prog_egrep='grep -E'
2950 else ac_cv_prog_egrep='egrep'
2953 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2954 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2955 EGREP=$ac_cv_prog_egrep
2958 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2960 if test "${ac_cv_header_stdc+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_cxx_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 ac_cv_header_stdc=yes
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 ac_cv_header_stdc=no
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 if test $ac_cv_header_stdc = yes; then
3014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3025 $EGREP "memchr" >/dev/null 2>&1; then
3028 ac_cv_header_stdc=no
3034 if test $ac_cv_header_stdc = yes; then
3035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046 $EGREP "free" >/dev/null 2>&1; then
3049 ac_cv_header_stdc=no
3055 if test $ac_cv_header_stdc = yes; then
3056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3057 if test "$cross_compiling" = yes; then
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 #if ((' ' & 0x0FF) == 0x020)
3068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3071 # define ISLOWER(c) \
3072 (('a' <= (c) && (c) <= 'i') \
3073 || ('j' <= (c) && (c) <= 'r') \
3074 || ('s' <= (c) && (c) <= 'z'))
3075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3083 for (i = 0; i < 256; i++)
3084 if (XOR (islower (i), ISLOWER (i))
3085 || toupper (i) != TOUPPER (i))
3090 rm -f conftest$ac_exeext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092 (eval $ac_link) 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3103 echo "$as_me: program exited with status $ac_status" >&5
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cv_header_stdc=no
3110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3114 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3115 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3116 if test $ac_cv_header_stdc = yes; then
3118 cat >>confdefs.h <<\_ACEOF
3119 #define STDC_HEADERS 1
3124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3135 inttypes.h stdint.h unistd.h
3137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3138 echo "$as_me:$LINENO: checking for $ac_header" >&5
3139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 $ac_includes_default
3151 #include <$ac_header>
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_cxx_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 eval "$as_ac_Header=yes"
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 eval "$as_ac_Header=no"
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3187 cat >>confdefs.h <<_ACEOF
3188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3196 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf.h" | $as_tr_sh`
3197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3198 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3199 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3206 # Is the header compilable?
3207 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h usability" >&5
3208 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h usability... $ECHO_C" >&6
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 $ac_includes_default
3216 #include <$LIBELF_INC_DIR/libelf.h>
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -z "$ac_cxx_werror_flag"
3228 || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_header_compiler=yes
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_header_compiler=no
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3249 echo "${ECHO_T}$ac_header_compiler" >&6
3251 # Is the header present?
3252 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h presence" >&5
3253 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h presence... $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <$LIBELF_INC_DIR/libelf.h>
3262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_cxx_preproc_warn_flag
3272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3279 if test -z "$ac_cpp_err"; then
3280 ac_header_preproc=yes
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_header_preproc=no
3287 rm -f conftest.err conftest.$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3289 echo "${ECHO_T}$ac_header_preproc" >&6
3291 # So? What about this header?
3292 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3294 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3295 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3296 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&5
3297 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&2;}
3298 ac_header_preproc=yes
3301 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&5
3302 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&2;}
3303 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&5
3304 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&2;}
3305 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&5
3306 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&2;}
3307 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3308 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3309 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&5
3310 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&2;}
3311 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&5
3312 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&2;}
3315 ## ------------------------------- ##
3316 ## Report this to bugs@dyninst.org ##
3317 ## ------------------------------- ##
3320 sed "s/^/$as_me: WARNING: /" >&2
3323 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3324 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 eval "$as_ac_Header=\$ac_header_preproc"
3330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3335 { echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3336 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3338 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR/libelf";
3339 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR/libelf";
3340 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf/libelf.h" | $as_tr_sh`
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3343 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350 # Is the header compilable?
3351 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h usability" >&5
3352 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h usability... $ECHO_C" >&6
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 $ac_includes_default
3360 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_cxx_werror_flag"
3372 || test ! -s conftest.err'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_header_compiler=yes
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 ac_header_compiler=no
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3393 echo "${ECHO_T}$ac_header_compiler" >&6
3395 # Is the header present?
3396 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h presence" >&5
3397 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h presence... $ECHO_C" >&6
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_cxx_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3423 if test -z "$ac_cpp_err"; then
3424 ac_header_preproc=yes
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_header_preproc=no
3431 rm -f conftest.err conftest.$ac_ext
3432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3433 echo "${ECHO_T}$ac_header_preproc" >&6
3435 # So? What about this header?
3436 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3438 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3439 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3440 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&5
3441 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&2;}
3442 ac_header_preproc=yes
3445 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&5
3446 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&2;}
3447 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&5
3448 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&2;}
3449 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&5
3450 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&2;}
3451 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3452 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3453 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&5
3454 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&2;}
3455 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&5
3456 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&2;}
3459 ## ------------------------------- ##
3460 ## Report this to bugs@dyninst.org ##
3461 ## ------------------------------- ##
3464 sed "s/^/$as_me: WARNING: /" >&2
3467 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3468 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 eval "$as_ac_Header=\$ac_header_preproc"
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479 LIBELF_INC_DIR+="/libelf";{ echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3480 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3482 { { echo "$as_me:$LINENO: error: couldn't find libelf.h" >&5
3483 echo "$as_me: error: couldn't find libelf.h" >&2;}
3484 { (exit 1); exit 1; }; }
3491 CXXFLAGS=$CXXFLAGS_HOLD;
3492 CPPFLAGS=$CPPFLAGS_HOLD;
3494 if test "$LIBELF_LIB_DIR" = "" ; then
3496 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3497 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3498 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 ac_check_lib_save_LIBS=$LIBS
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3525 rm -f conftest.$ac_objext conftest$ac_exeext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3527 (eval $ac_link) 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest$ac_exeext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_lib_elf_elf_memory=yes
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_cv_lib_elf_elf_memory=no
3554 rm -f conftest.err conftest.$ac_objext \
3555 conftest$ac_exeext conftest.$ac_ext
3556 LIBS=$ac_check_lib_save_LIBS
3558 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3559 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3560 if test $ac_cv_lib_elf_elf_memory = yes; then
3561 cat >>confdefs.h <<_ACEOF
3562 #define HAVE_LIBELF 1
3568 { { echo "$as_me:$LINENO: error: Can't find libelf." >&5
3569 echo "$as_me: error: Can't find libelf." >&2;}
3570 { (exit 1); exit 1; }; }
3575 if test "" != "" ; then
3576 LIBS="-L$LIBELF_LIB_DIR -L"
3578 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3579 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3580 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_check_lib_save_LIBS=$LIBS
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3607 rm -f conftest.$ac_objext conftest$ac_exeext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609 (eval $ac_link) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_cxx_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest$ac_exeext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 ac_cv_lib_elf_elf_memory=yes
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 ac_cv_lib_elf_elf_memory=no
3636 rm -f conftest.err conftest.$ac_objext \
3637 conftest$ac_exeext conftest.$ac_ext
3638 LIBS=$ac_check_lib_save_LIBS
3640 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3641 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3642 if test $ac_cv_lib_elf_elf_memory = yes; then
3643 cat >>confdefs.h <<_ACEOF
3644 #define HAVE_LIBELF 1
3650 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3651 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3652 { (exit 1); exit 1; }; }
3656 LIBS="-L$LIBELF_LIB_DIR"
3658 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3659 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3660 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_check_lib_save_LIBS=$LIBS
3665 cat >conftest.$ac_ext <<_ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3672 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_cxx_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_lib_elf_elf_memory=yes
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 ac_cv_lib_elf_elf_memory=no
3716 rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
3718 LIBS=$ac_check_lib_save_LIBS
3720 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3721 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3722 if test $ac_cv_lib_elf_elf_memory = yes; then
3723 cat >>confdefs.h <<_ACEOF
3724 #define HAVE_LIBELF 1
3730 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3731 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3732 { (exit 1); exit 1; }; }
3740 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3741 if test "$LIB_TYPE_DYNAMIC" = "true"; then
3744 LIB_TYPE_STATIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3748 LIBELF_STATIC="$LIB_TYPE_STATIC"
3749 LIBELF_DYNAMIC="$LIB_TYPE_DYNAMIC"
3756 if test "$host_cpu" != "x86_64" -a "$host_cpu" != "i686"; then
3757 { echo "$as_me:$LINENO: Not x86/x86_64, skipping icc on $host_cpu..." >&5
3758 echo "$as_me: Not x86/x86_64, skipping icc on $host_cpu..." >&6;}
3761 # Check whether --with-icc or --without-icc was given.
3762 if test "${with_icc+set}" = set; then
3764 _ICC_="${withval}"; _ICPC_=`dirname ${withval}`/icpc;
3770 if test "$host_cpu" != "x86_64" -a "$host_cpu" != "i686"; then
3771 { echo "$as_me:$LINENO: Not x86/x86_64, skipping pgcc on $host_cpu..." >&5
3772 echo "$as_me: Not x86/x86_64, skipping pgcc on $host_cpu..." >&6;}
3775 # Check whether --with-pgcc or --without-pgcc was given.
3776 if test "${with_pgcc+set}" = set; then
3777 withval="$with_pgcc"
3778 _PGC_="${withval}"; _PGCXX_=`dirname ${withval}`/pgCC;
3784 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3785 if test "`basename $CXX`" = "xlC" ; then
3787 elif test "`basename $CC`" = "xlc" ; then
3795 if test "x$BUILD_XLC" = "x" ; then
3797 # Check whether --with-libiberty-libdir or --without-libiberty-libdir was given.
3798 if test "${with_libiberty_libdir+set}" = set; then
3799 withval="$with_libiberty_libdir"
3800 LIBIBERTY_LIB_DIR="${withval}";
3803 if test "x$LIBIBERTY_LIB_DIR" != "x" ; then
3804 LIBS="-L$LIBIBERTY_LIB_DIR"
3806 echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
3807 echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6
3808 if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 ac_check_lib_save_LIBS=$LIBS
3812 LIBS="-liberty $LIBS"
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3820 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3826 char cplus_demangle ();
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837 (eval $ac_link) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_cxx_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_cv_lib_iberty_cplus_demangle=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_cv_lib_iberty_cplus_demangle=no
3864 rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3866 LIBS=$ac_check_lib_save_LIBS
3868 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
3869 echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6
3870 if test $ac_cv_lib_iberty_cplus_demangle = yes; then
3871 HAVE_LIBIBERTY="true";
3873 HAVE_LIBIBERTY="false"
3878 LDFLAGS_BAK=$LDFLAGS
3879 CXXFLAGS_BAK=$CXXFLAGS
3880 LIBS="$LIBS -liberty"
3881 LDFLAGS="$LDFLAGS -shared"
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 extern "C" { char *cplus_demangle(char *s, int opts); }
3893 cplus_demangle("", 0);
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_cxx_werror_flag"
3908 || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 LIBIBERTY_LINK="true"
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 LIBIBERTY_LINK="false"
3927 rm -f conftest.err conftest.$ac_objext \
3928 conftest$ac_exeext conftest.$ac_ext
3929 LDFLAGS=$LDFLAGS_BAK
3931 CXXFLAGS=$CXXFLAGS_BAK
3933 if test "x$HAVE_LIBIBERTY" = "xtrue" ; then
3934 if test "x$LIBIBERTY_LINK" = "xtrue" ; then
3937 elif test "x$_PGC_" != "x" ; then
3939 echo "WARNING: libiberty does not link with shared objects. Mutatees will have to be linked with -liberty."
3947 if test "x$GNU_DEMANGLER" = "xtrue" ; then
3958 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3959 { echo "$as_me:$LINENO: AIX system, skipping libdwarf..." >&5
3960 echo "$as_me: AIX system, skipping libdwarf..." >&6;}
3963 # Check whether --with-libdwarf-incdir or --without-libdwarf-incdir was given.
3964 if test "${with_libdwarf_incdir+set}" = set; then
3965 withval="$with_libdwarf_incdir"
3966 LIBDWARF_INC_DIR="${withval}";
3969 # Check whether --with-libdwarf-libdir or --without-libdwarf-libdir was given.
3970 if test "${with_libdwarf_libdir+set}" = set; then
3971 withval="$with_libdwarf_libdir"
3972 LIBDWARF_LIB_DIR="${withval}";
3975 if test "x$SUPPRESS_LIBDWARF_REQ" = "x"; then
3976 CXXFLAGS_HOLD=$CXXFLAGS;
3977 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR";
3978 CPPFLAGS_HOLD=$CPPFLAGS;
3979 CPPFLAGS="$CPPFLAGS -I$LIBDWARF_INC_DIR";
3981 as_ac_Header=`echo "ac_cv_header_$LIBDWARF_INC_DIR/libdwarf.h" | $as_tr_sh`
3982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3983 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
3984 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3991 # Is the header compilable?
3992 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h usability" >&5
3993 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h usability... $ECHO_C" >&6
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 $ac_includes_default
4001 #include <$LIBDWARF_INC_DIR/libdwarf.h>
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_cxx_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_header_compiler=yes
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_header_compiler=no
4032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4034 echo "${ECHO_T}$ac_header_compiler" >&6
4036 # Is the header present?
4037 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h presence" >&5
4038 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h presence... $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <$LIBDWARF_INC_DIR/libdwarf.h>
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_cxx_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4064 if test -z "$ac_cpp_err"; then
4065 ac_header_preproc=yes
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_header_preproc=no
4072 rm -f conftest.err conftest.$ac_ext
4073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4074 echo "${ECHO_T}$ac_header_preproc" >&6
4076 # So? What about this header?
4077 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4079 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
4080 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&5
4082 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&2;}
4083 ac_header_preproc=yes
4086 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&5
4087 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&5
4089 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&5
4091 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&5
4093 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&5
4095 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&5
4097 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&2;}
4100 ## ------------------------------- ##
4101 ## Report this to bugs@dyninst.org ##
4102 ## ------------------------------- ##
4105 sed "s/^/$as_me: WARNING: /" >&2
4108 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
4109 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6