]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - configure
d2940d8a9c12c02bdbd6f131d2b380aaead15e8f
[ipc/ipcdev.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TI IPC 3.0.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS="   $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
394 tagnames=${tagnames+${tagnames},}CXX
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
404 # Initializations.
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete.  It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 #  include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 #  include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 #  include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR OMAPL138_TRUE OMAPL138_FALSE OMAP4430_TRUE OMAP4430_FALSE TCI6614_TRUE TCI6614_FALSE TCI6638_TRUE TCI6638_FALSE CMEM_TRUE CMEM_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
507 do
508   # If the previous option needs an argument, assign it.
509   if test -n "$ac_prev"; then
510     eval "$ac_prev=\$ac_option"
511     ac_prev=
512     continue
513   fi
515   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517   # Accept the important Cygnus configure options, so we can diagnose typos.
519   case $ac_option in
521   -bindir | --bindir | --bindi | --bind | --bin | --bi)
522     ac_prev=bindir ;;
523   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524     bindir=$ac_optarg ;;
526   -build | --build | --buil | --bui | --bu)
527     ac_prev=build_alias ;;
528   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529     build_alias=$ac_optarg ;;
531   -cache-file | --cache-file | --cache-fil | --cache-fi \
532   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533     ac_prev=cache_file ;;
534   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536     cache_file=$ac_optarg ;;
538   --config-cache | -C)
539     cache_file=config.cache ;;
541   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542     ac_prev=datadir ;;
543   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544   | --da=*)
545     datadir=$ac_optarg ;;
547   -disable-* | --disable-*)
548     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549     # Reject names that are not valid shell variable names.
550     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552    { (exit 1); exit 1; }; }
553     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554     eval "enable_$ac_feature=no" ;;
556   -enable-* | --enable-*)
557     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558     # Reject names that are not valid shell variable names.
559     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561    { (exit 1); exit 1; }; }
562     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563     case $ac_option in
564       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565       *) ac_optarg=yes ;;
566     esac
567     eval "enable_$ac_feature='$ac_optarg'" ;;
569   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571   | --exec | --exe | --ex)
572     ac_prev=exec_prefix ;;
573   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575   | --exec=* | --exe=* | --ex=*)
576     exec_prefix=$ac_optarg ;;
578   -gas | --gas | --ga | --g)
579     # Obsolete; use --with-gas.
580     with_gas=yes ;;
582   -help | --help | --hel | --he | -h)
583     ac_init_help=long ;;
584   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585     ac_init_help=recursive ;;
586   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587     ac_init_help=short ;;
589   -host | --host | --hos | --ho)
590     ac_prev=host_alias ;;
591   -host=* | --host=* | --hos=* | --ho=*)
592     host_alias=$ac_optarg ;;
594   -includedir | --includedir | --includedi | --included | --include \
595   | --includ | --inclu | --incl | --inc)
596     ac_prev=includedir ;;
597   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598   | --includ=* | --inclu=* | --incl=* | --inc=*)
599     includedir=$ac_optarg ;;
601   -infodir | --infodir | --infodi | --infod | --info | --inf)
602     ac_prev=infodir ;;
603   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604     infodir=$ac_optarg ;;
606   -libdir | --libdir | --libdi | --libd)
607     ac_prev=libdir ;;
608   -libdir=* | --libdir=* | --libdi=* | --libd=*)
609     libdir=$ac_optarg ;;
611   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612   | --libexe | --libex | --libe)
613     ac_prev=libexecdir ;;
614   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615   | --libexe=* | --libex=* | --libe=*)
616     libexecdir=$ac_optarg ;;
618   -localstatedir | --localstatedir | --localstatedi | --localstated \
619   | --localstate | --localstat | --localsta | --localst \
620   | --locals | --local | --loca | --loc | --lo)
621     ac_prev=localstatedir ;;
622   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625     localstatedir=$ac_optarg ;;
627   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628     ac_prev=mandir ;;
629   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630     mandir=$ac_optarg ;;
632   -nfp | --nfp | --nf)
633     # Obsolete; use --without-fp.
634     with_fp=no ;;
636   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637   | --no-cr | --no-c | -n)
638     no_create=yes ;;
640   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642     no_recursion=yes ;;
644   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646   | --oldin | --oldi | --old | --ol | --o)
647     ac_prev=oldincludedir ;;
648   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651     oldincludedir=$ac_optarg ;;
653   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654     ac_prev=prefix ;;
655   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656     prefix=$ac_optarg ;;
658   -program-prefix | --program-prefix | --program-prefi | --program-pref \
659   | --program-pre | --program-pr | --program-p)
660     ac_prev=program_prefix ;;
661   -program-prefix=* | --program-prefix=* | --program-prefi=* \
662   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663     program_prefix=$ac_optarg ;;
665   -program-suffix | --program-suffix | --program-suffi | --program-suff \
666   | --program-suf | --program-su | --program-s)
667     ac_prev=program_suffix ;;
668   -program-suffix=* | --program-suffix=* | --program-suffi=* \
669   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670     program_suffix=$ac_optarg ;;
672   -program-transform-name | --program-transform-name \
673   | --program-transform-nam | --program-transform-na \
674   | --program-transform-n | --program-transform- \
675   | --program-transform | --program-transfor \
676   | --program-transfo | --program-transf \
677   | --program-trans | --program-tran \
678   | --progr-tra | --program-tr | --program-t)
679     ac_prev=program_transform_name ;;
680   -program-transform-name=* | --program-transform-name=* \
681   | --program-transform-nam=* | --program-transform-na=* \
682   | --program-transform-n=* | --program-transform-=* \
683   | --program-transform=* | --program-transfor=* \
684   | --program-transfo=* | --program-transf=* \
685   | --program-trans=* | --program-tran=* \
686   | --progr-tra=* | --program-tr=* | --program-t=*)
687     program_transform_name=$ac_optarg ;;
689   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690   | -silent | --silent | --silen | --sile | --sil)
691     silent=yes ;;
693   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694     ac_prev=sbindir ;;
695   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696   | --sbi=* | --sb=*)
697     sbindir=$ac_optarg ;;
699   -sharedstatedir | --sharedstatedir | --sharedstatedi \
700   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701   | --sharedst | --shareds | --shared | --share | --shar \
702   | --sha | --sh)
703     ac_prev=sharedstatedir ;;
704   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707   | --sha=* | --sh=*)
708     sharedstatedir=$ac_optarg ;;
710   -site | --site | --sit)
711     ac_prev=site ;;
712   -site=* | --site=* | --sit=*)
713     site=$ac_optarg ;;
715   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716     ac_prev=srcdir ;;
717   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718     srcdir=$ac_optarg ;;
720   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721   | --syscon | --sysco | --sysc | --sys | --sy)
722     ac_prev=sysconfdir ;;
723   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725     sysconfdir=$ac_optarg ;;
727   -target | --target | --targe | --targ | --tar | --ta | --t)
728     ac_prev=target_alias ;;
729   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730     target_alias=$ac_optarg ;;
732   -v | -verbose | --verbose | --verbos | --verbo | --verb)
733     verbose=yes ;;
735   -version | --version | --versio | --versi | --vers | -V)
736     ac_init_version=: ;;
738   -with-* | --with-*)
739     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740     # Reject names that are not valid shell variable names.
741     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742       { echo "$as_me: error: invalid package name: $ac_package" >&2
743    { (exit 1); exit 1; }; }
744     ac_package=`echo $ac_package| sed 's/-/_/g'`
745     case $ac_option in
746       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747       *) ac_optarg=yes ;;
748     esac
749     eval "with_$ac_package='$ac_optarg'" ;;
751   -without-* | --without-*)
752     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753     # Reject names that are not valid shell variable names.
754     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755       { echo "$as_me: error: invalid package name: $ac_package" >&2
756    { (exit 1); exit 1; }; }
757     ac_package=`echo $ac_package | sed 's/-/_/g'`
758     eval "with_$ac_package=no" ;;
760   --x)
761     # Obsolete; use --with-x.
762     with_x=yes ;;
764   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765   | --x-incl | --x-inc | --x-in | --x-i)
766     ac_prev=x_includes ;;
767   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769     x_includes=$ac_optarg ;;
771   -x-libraries | --x-libraries | --x-librarie | --x-librari \
772   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773     ac_prev=x_libraries ;;
774   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776     x_libraries=$ac_optarg ;;
778   -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780    { (exit 1); exit 1; }; }
781     ;;
783   *=*)
784     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785     # Reject names that are not valid shell variable names.
786     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788    { (exit 1); exit 1; }; }
789     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790     eval "$ac_envvar='$ac_optarg'"
791     export $ac_envvar ;;
793   *)
794     # FIXME: should be removed in autoconf 3.0.
795     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799     ;;
801   esac
802 done
804 if test -n "$ac_prev"; then
805   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806   { echo "$as_me: error: missing argument to $ac_option" >&2
807    { (exit 1); exit 1; }; }
808 fi
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813   eval ac_val=$`echo $ac_var`
814   case $ac_val in
815     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817    { (exit 1); exit 1; }; };;
818   esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823               localstatedir libdir includedir oldincludedir infodir mandir
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842   if test "x$build_alias" = x; then
843     cross_compiling=maybe
844     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845     If a cross compiler is detected then cross compile mode will be used." >&2
846   elif test "x$build_alias" != "x$host_alias"; then
847     cross_compiling=yes
848   fi
849 fi
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859   ac_srcdir_defaulted=yes
860   # Try the directory containing this script, then its parent.
861   ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863          X"$0" : 'X\(//\)[^/]' \| \
864          X"$0" : 'X\(//\)$' \| \
865          X"$0" : 'X\(/\)' \| \
866          .     : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870           /^X\(\/\/\)$/{ s//\1/; q; }
871           /^X\(\/\).*/{ s//\1/; q; }
872           s/.*/./; q'`
873   srcdir=$ac_confdir
874   if test ! -r $srcdir/$ac_unique_file; then
875     srcdir=..
876   fi
877 else
878   ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881   if test "$ac_srcdir_defaulted" = yes; then
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883    { (exit 1); exit 1; }; }
884   else
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886    { (exit 1); exit 1; }; }
887   fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891    { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_PLATFORM_set=${PLATFORM+set}
938 ac_env_PLATFORM_value=$PLATFORM
939 ac_cv_env_PLATFORM_set=${PLATFORM+set}
940 ac_cv_env_PLATFORM_value=$PLATFORM
941 ac_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
942 ac_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
943 ac_cv_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
944 ac_cv_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
947 # Report the --help message.
949 if test "$ac_init_help" = "long"; then
950   # Omit some internal or obsolete options to make the list less imposing.
951   # This message is too long to be a string in the A/UX 3.1 sh.
952   cat <<_ACEOF
953 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
955 Usage: $0 [OPTION]... [VAR=VALUE]...
957 To assign environment variables (e.g., CC, CFLAGS...), specify them as
958 VAR=VALUE.  See below for descriptions of some of the useful variables.
960 Defaults for the options are specified in brackets.
962 Configuration:
963   -h, --help              display this help and exit
964       --help=short        display options specific to this package
965       --help=recursive    display the short help of all the included packages
966   -V, --version           display version information and exit
967   -q, --quiet, --silent   do not print \`checking...' messages
968       --cache-file=FILE   cache test results in FILE [disabled]
969   -C, --config-cache      alias for \`--cache-file=config.cache'
970   -n, --no-create         do not create output files
971       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973 _ACEOF
975   cat <<_ACEOF
976 Installation directories:
977   --prefix=PREFIX         install architecture-independent files in PREFIX
978                           [$ac_default_prefix]
979   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
980                           [PREFIX]
982 By default, \`make install' will install all the files in
983 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
984 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
985 for instance \`--prefix=\$HOME'.
987 For better control, use the options below.
989 Fine tuning of the installation directories:
990   --bindir=DIR           user executables [EPREFIX/bin]
991   --sbindir=DIR          system admin executables [EPREFIX/sbin]
992   --libexecdir=DIR       program executables [EPREFIX/libexec]
993   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
994   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
995   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
996   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
997   --libdir=DIR           object code libraries [EPREFIX/lib]
998   --includedir=DIR       C header files [PREFIX/include]
999   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1000   --infodir=DIR          info documentation [PREFIX/info]
1001   --mandir=DIR           man documentation [PREFIX/man]
1002 _ACEOF
1004   cat <<\_ACEOF
1006 Program names:
1007   --program-prefix=PREFIX            prepend PREFIX to installed program names
1008   --program-suffix=SUFFIX            append SUFFIX to installed program names
1009   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1015 fi
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1020    esac
1021   cat <<\_ACEOF
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-dependency-tracking  speeds up one-time build
1033   --enable-dependency-tracking   do not reject slow dependency extractors
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1036 Optional Packages:
1037   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1038   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1039   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1040   --with-pic              try to use only PIC/non-PIC objects [default=use
1041                           both]
1042   --with-tags[=TAGS]
1043                           include additional configurations [automatic]
1045 Some influential environment variables:
1046   CC          C compiler command
1047   CFLAGS      C compiler flags
1048   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1049               nonstandard directory <lib dir>
1050   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051               headers in a nonstandard directory <include dir>
1052   CPP         C preprocessor
1053   CXX         C++ compiler command
1054   CXXFLAGS    C++ compiler flags
1055   CXXCPP      C++ preprocessor
1056   PLATFORM    Platform to build. Options are: 'omapl138' 'omap4330' 'tci6614'
1057               and 'tci6638'. If not defined all platforms will be built.
1058   CMEM_INSTALL_DIR
1059               Installation path directory to the CMEM libraries
1061 Use these variables to override the choices made by `configure' or to help
1062 it to find libraries and programs with nonstandard names/locations.
1064 _ACEOF
1065 fi
1067 if test "$ac_init_help" = "recursive"; then
1068   # If there are subdirs, report their specific --help.
1069   ac_popdir=`pwd`
1070   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071     test -d $ac_dir || continue
1072     ac_builddir=.
1074 if test "$ac_dir" != .; then
1075   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076   # A "../" for each directory in $ac_dir_suffix.
1077   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 else
1079   ac_dir_suffix= ac_top_builddir=
1080 fi
1082 case $srcdir in
1083   .)  # No --srcdir option.  We are building in place.
1084     ac_srcdir=.
1085     if test -z "$ac_top_builddir"; then
1086        ac_top_srcdir=.
1087     else
1088        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089     fi ;;
1090   [\\/]* | ?:[\\/]* )  # Absolute path.
1091     ac_srcdir=$srcdir$ac_dir_suffix;
1092     ac_top_srcdir=$srcdir ;;
1093   *) # Relative path.
1094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 esac
1098 # Do not use `cd foo && pwd` to compute absolute paths, because
1099 # the directories may not exist.
1100 case `pwd` in
1101 .) ac_abs_builddir="$ac_dir";;
1102 *)
1103   case "$ac_dir" in
1104   .) ac_abs_builddir=`pwd`;;
1105   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107   esac;;
1108 esac
1109 case $ac_abs_builddir in
1110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 *)
1112   case ${ac_top_builddir}. in
1113   .) ac_abs_top_builddir=$ac_abs_builddir;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_srcdir=$ac_srcdir;;
1120 *)
1121   case $ac_srcdir in
1122   .) ac_abs_srcdir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 *)
1130   case $ac_top_srcdir in
1131   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134   esac;;
1135 esac
1137     cd $ac_dir
1138     # Check for guested configure; otherwise get Cygnus style configure.
1139     if test -f $ac_srcdir/configure.gnu; then
1140       echo
1141       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1142     elif test -f $ac_srcdir/configure; then
1143       echo
1144       $SHELL $ac_srcdir/configure  --help=recursive
1145     elif test -f $ac_srcdir/configure.ac ||
1146            test -f $ac_srcdir/configure.in; then
1147       echo
1148       $ac_configure --help
1149     else
1150       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151     fi
1152     cd $ac_popdir
1153   done
1154 fi
1156 test -n "$ac_init_help" && exit 0
1157 if $ac_init_version; then
1158   cat <<\_ACEOF
1159 TI IPC configure 3.0.0
1160 generated by GNU Autoconf 2.59
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by TI IPC $as_me 3.0.0, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1176   $ $0 $@
1178 _ACEOF
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1202 _ASUNAME
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1212 } >&5
1214 cat >&5 <<_ACEOF
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1221 _ACEOF
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1306     echo
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 # Check common src files to ensure integrity of the package
1513 # Set auxiliary build tools directory
1514 ac_aux_dir=
1515 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1516   if test -f $ac_dir/install-sh; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/install-sh -c"
1519     break
1520   elif test -f $ac_dir/install.sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install.sh -c"
1523     break
1524   elif test -f $ac_dir/shtool; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/shtool install -c"
1527     break
1528   fi
1529 done
1530 if test -z "$ac_aux_dir"; then
1531   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1532 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540 # Initilize automake
1541 am__api_version="1.9"
1542 # Find a good install program.  We prefer a C program (faster),
1543 # so one script is as good as another.  But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   # Account for people who put trailing slashes in PATH elements.
1567 case $as_dir/ in
1568   ./ | .// | /cC/* | \
1569   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571   /usr/ucb/* ) ;;
1572   *)
1573     # OSF1 and SCO ODT 3.0 have their own names for install.
1574     # Don't use installbsd from OSF since it installs stuff as root
1575     # by default.
1576     for ac_prog in ginstall scoinst install; do
1577       for ac_exec_ext in '' $ac_executable_extensions; do
1578         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579           if test $ac_prog = install &&
1580             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581             # AIX install.  It has an incompatible calling convention.
1582             :
1583           elif test $ac_prog = install &&
1584             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585             # program-specific install script used by HP pwplus--don't use.
1586             :
1587           else
1588             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589             break 3
1590           fi
1591         fi
1592       done
1593     done
1594     ;;
1595 esac
1596 done
1599 fi
1600   if test "${ac_cv_path_install+set}" = set; then
1601     INSTALL=$ac_cv_path_install
1602   else
1603     # As a last resort, use the slow shell script.  We don't cache a
1604     # path for INSTALL within a source directory, because that will
1605     # break other packages using the cache if that directory is
1606     # removed, or if the path is relative.
1607     INSTALL=$ac_install_sh
1608   fi
1609 fi
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623 # Just in case
1624 sleep 1
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments.  Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1630 # directory).
1631 if (
1632    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633    if test "$*" = "X"; then
1634       # -L didn't work.
1635       set X `ls -t $srcdir/configure conftest.file`
1636    fi
1637    rm -f conftest.file
1638    if test "$*" != "X $srcdir/configure conftest.file" \
1639       && test "$*" != "X conftest.file $srcdir/configure"; then
1641       # If neither matched, then we have a broken ls.  This can happen
1642       # if, for instance, CONFIG_SHELL is bash and it inherits a
1643       # broken ls alias from the environment.  This has actually
1644       # happened.  Such a system could not be considered "sane".
1645       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&2;}
1649    { (exit 1); exit 1; }; }
1650    fi
1652    test "$2" = conftest.file
1653    )
1654 then
1655    # Ok.
1656    :
1657 else
1658    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662    { (exit 1); exit 1; }; }
1663 fi
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $.  echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1675 _ACEOF
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677 rm conftest.sed
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685   am_missing_run="$MISSING --run "
1686 else
1687   am_missing_run=
1688   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690 fi
1692 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1693   # We used to keeping the `.' as first argument, in order to
1694   # allow $(mkdir_p) to be used without argument.  As in
1695   #   $(mkdir_p) $(somedir)
1696   # where $(somedir) is conditionally defined.  However this is wrong
1697   # for two reasons:
1698   #  1. if the package is installed by a user who cannot write `.'
1699   #     make install will fail,
1700   #  2. the above comment should most certainly read
1701   #     $(mkdir_p) $(DESTDIR)$(somedir)
1702   #     so it does not work when $(somedir) is undefined and
1703   #     $(DESTDIR) is not.
1704   #  To support the latter case, we have to write
1705   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706   #  so the `.' trick is pointless.
1707   mkdir_p='mkdir -p --'
1708 else
1709   # On NextStep and OpenStep, the `mkdir' command does not
1710   # recognize any option.  It will interpret all options as
1711   # directories to create, and then abort because `.' already
1712   # exists.
1713   for d in ./-p ./--version;
1714   do
1715     test -d $d && rmdir $d
1716   done
1717   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718   if test -f "$ac_aux_dir/mkinstalldirs"; then
1719     mkdir_p='$(mkinstalldirs)'
1720   else
1721     mkdir_p='$(install_sh) -d'
1722   fi
1723 fi
1725 for ac_prog in gawk mawk nawk awk
1726 do
1727   # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy $ac_prog; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_AWK+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$AWK"; then
1735   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740   IFS=$as_save_IFS
1741   test -z "$as_dir" && as_dir=.
1742   for ac_exec_ext in '' $ac_executable_extensions; do
1743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744     ac_cv_prog_AWK="$ac_prog"
1745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746     break 2
1747   fi
1748 done
1749 done
1751 fi
1752 fi
1753 AWK=$ac_cv_prog_AWK
1754 if test -n "$AWK"; then
1755   echo "$as_me:$LINENO: result: $AWK" >&5
1756 echo "${ECHO_T}$AWK" >&6
1757 else
1758   echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1762   test -n "$AWK" && break
1763 done
1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   cat >conftest.make <<\_ACEOF
1772 all:
1773         @echo 'ac_maketemp="$(MAKE)"'
1774 _ACEOF
1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777 if test -n "$ac_maketemp"; then
1778   eval ac_cv_prog_make_${ac_make}_set=yes
1779 else
1780   eval ac_cv_prog_make_${ac_make}_set=no
1781 fi
1782 rm -f conftest.make
1783 fi
1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785   echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1787   SET_MAKE=
1788 else
1789   echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791   SET_MAKE="MAKE=${MAKE-make}"
1792 fi
1794 rm -rf .tst 2>/dev/null
1795 mkdir .tst 2>/dev/null
1796 if test -d .tst; then
1797   am__leading_dot=.
1798 else
1799   am__leading_dot=_
1800 fi
1801 rmdir .tst 2>/dev/null
1803 # test to see if srcdir already configured
1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805    test -f $srcdir/config.status; then
1806   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808    { (exit 1); exit 1; }; }
1809 fi
1811 # test whether we have cygpath
1812 if test -z "$CYGPATH_W"; then
1813   if (cygpath --version) >/dev/null 2>/dev/null; then
1814     CYGPATH_W='cygpath -w'
1815   else
1816     CYGPATH_W=echo
1817   fi
1818 fi
1821 # Define the identity of the package.
1822  PACKAGE='ti-ipc'
1823  VERSION='3.0.0'
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE "$PACKAGE"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define VERSION "$VERSION"
1833 _ACEOF
1835 # Some tools Automake needs.
1837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1851 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1853 # Installed binaries are usually stripped using `strip' when the user
1854 # run `make install-strip'.  However `strip' might not be the right
1855 # tool to use in cross-compilation environments, therefore Automake
1856 # will honor the `STRIP' environment variable to overrule this program.
1857 if test "$cross_compiling" != no; then
1858   if test -n "$ac_tool_prefix"; then
1859   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1860 set dummy ${ac_tool_prefix}strip; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_STRIP+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$STRIP"; then
1867   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1883 fi
1884 fi
1885 STRIP=$ac_cv_prog_STRIP
1886 if test -n "$STRIP"; then
1887   echo "$as_me:$LINENO: result: $STRIP" >&5
1888 echo "${ECHO_T}$STRIP" >&6
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1894 fi
1895 if test -z "$ac_cv_prog_STRIP"; then
1896   ac_ct_STRIP=$STRIP
1897   # Extract the first word of "strip", so it can be a program name with args.
1898 set dummy strip; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$ac_ct_STRIP"; then
1905   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_ac_ct_STRIP="strip"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1921   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1922 fi
1923 fi
1924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925 if test -n "$ac_ct_STRIP"; then
1926   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927 echo "${ECHO_T}$ac_ct_STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1933   STRIP=$ac_ct_STRIP
1934 else
1935   STRIP="$ac_cv_prog_STRIP"
1936 fi
1938 fi
1939 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1941 # We need awk for the "check" target.  The system "awk" is bad on
1942 # some platforms.
1943 # Always define AMTAR for backward compatibility.
1945 AMTAR=${AMTAR-"${am_missing_run}tar"}
1947 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1954 # Initalize libtool but disable fortran check
1955 # Check whether --enable-shared or --disable-shared was given.
1956 if test "${enable_shared+set}" = set; then
1957   enableval="$enable_shared"
1958   p=${PACKAGE-default}
1959     case $enableval in
1960     yes) enable_shared=yes ;;
1961     no) enable_shared=no ;;
1962     *)
1963       enable_shared=no
1964       # Look at the argument we got.  We use all the common list separators.
1965       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1966       for pkg in $enableval; do
1967         IFS="$lt_save_ifs"
1968         if test "X$pkg" = "X$p"; then
1969           enable_shared=yes
1970         fi
1971       done
1972       IFS="$lt_save_ifs"
1973       ;;
1974     esac
1975 else
1976   enable_shared=yes
1977 fi;
1979 # Check whether --enable-static or --disable-static was given.
1980 if test "${enable_static+set}" = set; then
1981   enableval="$enable_static"
1982   p=${PACKAGE-default}
1983     case $enableval in
1984     yes) enable_static=yes ;;
1985     no) enable_static=no ;;
1986     *)
1987      enable_static=no
1988       # Look at the argument we got.  We use all the common list separators.
1989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990       for pkg in $enableval; do
1991         IFS="$lt_save_ifs"
1992         if test "X$pkg" = "X$p"; then
1993           enable_static=yes
1994         fi
1995       done
1996       IFS="$lt_save_ifs"
1997       ;;
1998     esac
1999 else
2000   enable_static=yes
2001 fi;
2003 # Check whether --enable-fast-install or --disable-fast-install was given.
2004 if test "${enable_fast_install+set}" = set; then
2005   enableval="$enable_fast_install"
2006   p=${PACKAGE-default}
2007     case $enableval in
2008     yes) enable_fast_install=yes ;;
2009     no) enable_fast_install=no ;;
2010     *)
2011       enable_fast_install=no
2012       # Look at the argument we got.  We use all the common list separators.
2013       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014       for pkg in $enableval; do
2015         IFS="$lt_save_ifs"
2016         if test "X$pkg" = "X$p"; then
2017           enable_fast_install=yes
2018         fi
2019       done
2020       IFS="$lt_save_ifs"
2021       ;;
2022     esac
2023 else
2024   enable_fast_install=yes
2025 fi;
2027 # Make sure we can run config.sub.
2028 $ac_config_sub sun4 >/dev/null 2>&1 ||
2029   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2031    { (exit 1); exit 1; }; }
2033 echo "$as_me:$LINENO: checking build system type" >&5
2034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2035 if test "${ac_cv_build+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   ac_cv_build_alias=$build_alias
2039 test -z "$ac_cv_build_alias" &&
2040   ac_cv_build_alias=`$ac_config_guess`
2041 test -z "$ac_cv_build_alias" &&
2042   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2044    { (exit 1); exit 1; }; }
2045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2046   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2048    { (exit 1); exit 1; }; }
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2052 echo "${ECHO_T}$ac_cv_build" >&6
2053 build=$ac_cv_build
2054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2059 echo "$as_me:$LINENO: checking host system type" >&5
2060 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2061 if test "${ac_cv_host+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   ac_cv_host_alias=$host_alias
2065 test -z "$ac_cv_host_alias" &&
2066   ac_cv_host_alias=$ac_cv_build_alias
2067 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2068   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2069 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2070    { (exit 1); exit 1; }; }
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2074 echo "${ECHO_T}$ac_cv_host" >&6
2075 host=$ac_cv_host
2076 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2081 DEPDIR="${am__leading_dot}deps"
2083           ac_config_commands="$ac_config_commands depfiles"
2086 am_make=${MAKE-make}
2087 cat > confinc << 'END'
2088 am__doit:
2089         @echo done
2090 .PHONY: am__doit
2091 END
2092 # If we don't find an include directive, just comment out the code.
2093 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2094 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2095 am__include="#"
2096 am__quote=
2097 _am_result=none
2098 # First try GNU make style include.
2099 echo "include confinc" > confmf
2100 # We grep out `Entering directory' and `Leaving directory'
2101 # messages which can occur if `w' ends up in MAKEFLAGS.
2102 # In particular we don't look at `^make:' because GNU make might
2103 # be invoked under some other name (usually "gmake"), in which
2104 # case it prints its new name instead of `make'.
2105 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2106    am__include=include
2107    am__quote=
2108    _am_result=GNU
2109 fi
2110 # Now try BSD make style include.
2111 if test "$am__include" = "#"; then
2112    echo '.include "confinc"' > confmf
2113    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2114       am__include=.include
2115       am__quote="\""
2116       _am_result=BSD
2117    fi
2118 fi
2121 echo "$as_me:$LINENO: result: $_am_result" >&5
2122 echo "${ECHO_T}$_am_result" >&6
2123 rm -f confinc confmf
2125 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2126 if test "${enable_dependency_tracking+set}" = set; then
2127   enableval="$enable_dependency_tracking"
2129 fi;
2130 if test "x$enable_dependency_tracking" != xno; then
2131   am_depcomp="$ac_aux_dir/depcomp"
2132   AMDEPBACKSLASH='\'
2133 fi
2136 if test "x$enable_dependency_tracking" != xno; then
2137   AMDEP_TRUE=
2138   AMDEP_FALSE='#'
2139 else
2140   AMDEP_TRUE='#'
2141   AMDEP_FALSE=
2142 fi
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151 if test -n "$ac_tool_prefix"; then
2152   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$CC"; then
2160   ac_cv_prog_CC="$CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171     break 2
2172   fi
2173 done
2174 done
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6
2182 else
2183   echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 fi
2187 fi
2188 if test -z "$ac_cv_prog_CC"; then
2189   ac_ct_CC=$CC
2190   # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test -n "$ac_ct_CC"; then
2198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207     ac_cv_prog_ac_ct_CC="gcc"
2208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2214 fi
2215 fi
2216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217 if test -n "$ac_ct_CC"; then
2218   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219 echo "${ECHO_T}$ac_ct_CC" >&6
2220 else
2221   echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2223 fi
2225   CC=$ac_ct_CC
2226 else
2227   CC="$ac_cv_prog_CC"
2228 fi
2230 if test -z "$CC"; then
2231   if test -n "$ac_tool_prefix"; then
2232   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}cc; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249     ac_cv_prog_CC="${ac_tool_prefix}cc"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2256 fi
2257 fi
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260   echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6
2262 else
2263   echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2265 fi
2267 fi
2268 if test -z "$ac_cv_prog_CC"; then
2269   ac_ct_CC=$CC
2270   # Extract the first word of "cc", so it can be a program name with args.
2271 set dummy cc; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   if test -n "$ac_ct_CC"; then
2278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285   for ac_exec_ext in '' $ac_executable_extensions; do
2286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287     ac_cv_prog_ac_ct_CC="cc"
2288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289     break 2
2290   fi
2291 done
2292 done
2294 fi
2295 fi
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6
2300 else
2301   echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2303 fi
2305   CC=$ac_ct_CC
2306 else
2307   CC="$ac_cv_prog_CC"
2308 fi
2310 fi
2311 if test -z "$CC"; then
2312   # Extract the first word of "cc", so it can be a program name with args.
2313 set dummy cc; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_prog_CC+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   if test -n "$CC"; then
2320   ac_cv_prog_CC="$CC" # Let the user override the test.
2321 else
2322   ac_prog_rejected=no
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_exec_ext in '' $ac_executable_extensions; do
2329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2331        ac_prog_rejected=yes
2332        continue
2333      fi
2334     ac_cv_prog_CC="cc"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2341 if test $ac_prog_rejected = yes; then
2342   # We found a bogon in the path, so make sure we never use it.
2343   set dummy $ac_cv_prog_CC
2344   shift
2345   if test $# != 0; then
2346     # We chose a different compiler from the bogus one.
2347     # However, it has the same basename, so the bogon will be chosen
2348     # first if we set CC to just the basename; use the full file name.
2349     shift
2350     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2351   fi
2352 fi
2353 fi
2354 fi
2355 CC=$ac_cv_prog_CC
2356 if test -n "$CC"; then
2357   echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2364 fi
2365 if test -z "$CC"; then
2366   if test -n "$ac_tool_prefix"; then
2367   for ac_prog in cl
2368   do
2369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   if test -n "$CC"; then
2377   ac_cv_prog_CC="$CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384   for ac_exec_ext in '' $ac_executable_extensions; do
2385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388     break 2
2389   fi
2390 done
2391 done
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2404     test -n "$CC" && break
2405   done
2406 fi
2407 if test -z "$CC"; then
2408   ac_ct_CC=$CC
2409   for ac_prog in cl
2410 do
2411   # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test -n "$ac_ct_CC"; then
2419   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428     ac_cv_prog_ac_ct_CC="$ac_prog"
2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2435 fi
2436 fi
2437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 echo "${ECHO_T}$ac_ct_CC" >&6
2441 else
2442   echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2444 fi
2446   test -n "$ac_ct_CC" && break
2447 done
2449   CC=$ac_ct_CC
2450 fi
2452 fi
2455 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: no acceptable C compiler found in \$PATH
2458 See \`config.log' for more details." >&2;}
2459    { (exit 1); exit 1; }; }
2461 # Provide some information about the compiler.
2462 echo "$as_me:$LINENO:" \
2463      "checking for C compiler version" >&5
2464 ac_compiler=`set X $ac_compile; echo $2`
2465 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2466   (eval $ac_compiler --version </dev/null >&5) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }
2470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2471   (eval $ac_compiler -v </dev/null >&5) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }
2475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2476   (eval $ac_compiler -V </dev/null >&5) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2488 int
2489 main ()
2492   ;
2493   return 0;
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505   (eval $ac_link_default) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   # Find the output, starting from the most likely.  This scheme is
2510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2511 # resort.
2513 # Be careful to initialize this variable, since it used to be cached.
2514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2515 ac_cv_exeext=
2516 # b.out is created by i960 compilers.
2517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2518 do
2519   test -f "$ac_file" || continue
2520   case $ac_file in
2521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2522         ;;
2523     conftest.$ac_ext )
2524         # This is the source file.
2525         ;;
2526     [ab].out )
2527         # We found the default executable, but exeext='' is most
2528         # certainly right.
2529         break;;
2530     *.* )
2531         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532         # FIXME: I believe we export ac_cv_exeext for Libtool,
2533         # but it would be cool to find out if it's true.  Does anybody
2534         # maintain Libtool? --akim.
2535         export ac_cv_exeext
2536         break;;
2537     * )
2538         break;;
2539   esac
2540 done
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549    { (exit 77); exit 77; }; }
2550 fi
2552 ac_exeext=$ac_cv_exeext
2553 echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6
2556 # Check the compiler produces executables we can run.  If not, either
2557 # the compiler is broken, or we cross compile.
2558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563   if { ac_try='./$ac_file'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569     cross_compiling=no
2570   else
2571     if test "$cross_compiling" = maybe; then
2572         cross_compiling=yes
2573     else
2574         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }
2581     fi
2582   fi
2583 fi
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run.  If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599   (eval $ac_link) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608   test -f "$ac_file" || continue
2609   case $ac_file in
2610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612           export ac_cv_exeext
2613           break;;
2614     * ) break;;
2615   esac
2616 done
2617 else
2618   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&2;}
2622    { (exit 1); exit 1; }; }
2623 fi
2625 rm -f conftest$ac_cv_exeext
2626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627 echo "${ECHO_T}$ac_cv_exeext" >&6
2629 rm -f conftest.$ac_ext
2630 EXEEXT=$ac_cv_exeext
2631 ac_exeext=$EXEEXT
2632 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2633 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2634 if test "${ac_cv_objext+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2644 int
2645 main ()
2648   ;
2649   return 0;
2651 _ACEOF
2652 rm -f conftest.o conftest.obj
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; then
2658   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2659   case $ac_file in
2660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2661     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662        break;;
2663   esac
2664 done
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&2;}
2673    { (exit 1); exit 1; }; }
2674 fi
2676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2677 fi
2678 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2679 echo "${ECHO_T}$ac_cv_objext" >&6
2680 OBJEXT=$ac_cv_objext
2681 ac_objext=$OBJEXT
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2694 int
2695 main ()
2697 #ifndef __GNUC__
2698        choke me
2699 #endif
2701   ;
2702   return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -z "$ac_c_werror_flag"
2715                          || test ! -s conftest.err'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_compiler_gnu=yes
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 ac_compiler_gnu=no
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2740 GCC=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CFLAGS=${CFLAGS+set}
2742 ac_save_CFLAGS=$CFLAGS
2743 CFLAGS="-g"
2744 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cc_g+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2756 int
2757 main ()
2760   ;
2761   return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766   (eval $ac_compile) 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } &&
2773          { ac_try='test -z "$ac_c_werror_flag"
2774                          || test ! -s conftest.err'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   ac_cv_prog_cc_g=yes
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_cv_prog_cc_g=no
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 fi
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2797 if test "$ac_test_CFLAGS" = set; then
2798   CFLAGS=$ac_save_CFLAGS
2799 elif test $ac_cv_prog_cc_g = yes; then
2800   if test "$GCC" = yes; then
2801     CFLAGS="-g -O2"
2802   else
2803     CFLAGS="-g"
2804   fi
2805 else
2806   if test "$GCC" = yes; then
2807     CFLAGS="-O2"
2808   else
2809     CFLAGS=
2810   fi
2811 fi
2812 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2813 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2814 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   ac_cv_prog_cc_stdc=no
2818 ac_save_CC=$CC
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #include <stdarg.h>
2826 #include <stdio.h>
2827 #include <sys/types.h>
2828 #include <sys/stat.h>
2829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2830 struct buf { int x; };
2831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2832 static char *e (p, i)
2833      char **p;
2834      int i;
2836   return p[i];
2838 static char *f (char * (*g) (char **, int), char **p, ...)
2840   char *s;
2841   va_list v;
2842   va_start (v,p);
2843   s = g (p, va_arg (v,int));
2844   va_end (v);
2845   return s;
2848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2849    function prototypes and stuff, but not '\xHH' hex character constants.
2850    These don't provoke an error unfortunately, instead are silently treated
2851    as 'x'.  The following induces an error, until -std1 is added to get
2852    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2853    array size at least.  It's necessary to write '\x00'==0 to get something
2854    that's true only with -std1.  */
2855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2857 int test (int i, double x);
2858 struct s1 {int (*f) (int a);};
2859 struct s2 {int (*f) (double a);};
2860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2861 int argc;
2862 char **argv;
2863 int
2864 main ()
2866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2867   ;
2868   return 0;
2870 _ACEOF
2871 # Don't try gcc -ansi; that turns off useful extensions and
2872 # breaks some systems' header files.
2873 # AIX                   -qlanglvl=ansi
2874 # Ultrix and OSF/1      -std1
2875 # HP-UX 10.20 and later -Ae
2876 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2877 # SVR4                  -Xc -D__EXTENSIONS__
2878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2879 do
2880   CC="$ac_save_CC $ac_arg"
2881   rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883   (eval $ac_compile) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } &&
2890          { ac_try='test -z "$ac_c_werror_flag"
2891                          || test ! -s conftest.err'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   ac_cv_prog_cc_stdc=$ac_arg
2904 break
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 fi
2910 rm -f conftest.err conftest.$ac_objext
2911 done
2912 rm -f conftest.$ac_ext conftest.$ac_objext
2913 CC=$ac_save_CC
2915 fi
2917 case "x$ac_cv_prog_cc_stdc" in
2918   x|xno)
2919     echo "$as_me:$LINENO: result: none needed" >&5
2920 echo "${ECHO_T}none needed" >&6 ;;
2921   *)
2922     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2923 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2924     CC="$CC $ac_cv_prog_cc_stdc" ;;
2925 esac
2927 # Some people use a C++ compiler to compile C.  Since we use `exit',
2928 # in C++ we need to declare it.  In case someone uses the same compiler
2929 # for both compiling C and C++ we need to have the C++ compiler decide
2930 # the declaration of exit, since it's the most demanding environment.
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #ifndef __cplusplus
2933   choke me
2934 #endif
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938   (eval $ac_compile) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } &&
2945          { ac_try='test -z "$ac_c_werror_flag"
2946                          || test ! -s conftest.err'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; } &&
2952          { ac_try='test -s conftest.$ac_objext'
2953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954   (eval $ac_try) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; }; then
2958   for ac_declaration in \
2959    '' \
2960    'extern "C" void std::exit (int) throw (); using std::exit;' \
2961    'extern "C" void std::exit (int); using std::exit;' \
2962    'extern "C" void exit (int) throw ();' \
2963    'extern "C" void exit (int);' \
2964    'void exit (int);'
2965 do
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 $ac_declaration
2973 #include <stdlib.h>
2974 int
2975 main ()
2977 exit (42);
2978   ;
2979   return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984   (eval $ac_compile) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } &&
2991          { ac_try='test -z "$ac_c_werror_flag"
2992                          || test ! -s conftest.err'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
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
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   :
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 continue
3010 fi
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018 $ac_declaration
3019 int
3020 main ()
3022 exit (42);
3023   ;
3024   return 0;
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_c_werror_flag"
3037                          || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   break
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 done
3057 rm -f conftest*
3058 if test -n "$ac_declaration"; then
3059   echo '#ifdef __cplusplus' >>confdefs.h
3060   echo $ac_declaration      >>confdefs.h
3061   echo '#endif'             >>confdefs.h
3062 fi
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 depcc="$CC"   am_compiler_list=
3078 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3084   # We make a subdir and do the tests there.  Otherwise we can end up
3085   # making bogus files that we don't know about and never remove.  For
3086   # instance it was reported that on HP-UX the gcc test will end up
3087   # making a dummy file named `D' -- because `-MD' means `put the output
3088   # in D'.
3089   mkdir conftest.dir
3090   # Copy depcomp to subdir because otherwise we won't find it if we're
3091   # using a relative directory.
3092   cp "$am_depcomp" conftest.dir
3093   cd conftest.dir
3094   # We will build objects and dependencies in a subdirectory because
3095   # it helps to detect inapplicable dependency modes.  For instance
3096   # both Tru64's cc and ICC support -MD to output dependencies as a
3097   # side effect of compilation, but ICC will put the dependencies in
3098   # the current directory while Tru64 will put them in the object
3099   # directory.
3100   mkdir sub
3102   am_cv_CC_dependencies_compiler_type=none
3103   if test "$am_compiler_list" = ""; then
3104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3105   fi
3106   for depmode in $am_compiler_list; do
3107     # Setup a source with many dependencies, because some compilers
3108     # like to wrap large dependency lists on column 80 (with \), and
3109     # we should not choose a depcomp mode which is confused by this.
3110     #
3111     # We need to recreate these files for each test, as the compiler may
3112     # overwrite some of them when testing with obscure command lines.
3113     # This happens at least with the AIX C compiler.
3114     : > sub/conftest.c
3115     for i in 1 2 3 4 5 6; do
3116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3118       # Solaris 8's {/usr,}/bin/sh.
3119       touch sub/conftst$i.h
3120     done
3121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3123     case $depmode in
3124     nosideeffect)
3125       # after this tag, mechanisms are not by side-effect, so they'll
3126       # only be used when explicitly requested
3127       if test "x$enable_dependency_tracking" = xyes; then
3128         continue
3129       else
3130         break
3131       fi
3132       ;;
3133     none) break ;;
3134     esac
3135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3136     # mode.  It turns out that the SunPro C++ compiler does not properly
3137     # handle `-M -o', and we need to detect this.
3138     if depmode=$depmode \
3139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3142          >/dev/null 2>conftest.err &&
3143        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3144        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3145        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3146       # icc doesn't choke on unknown options, it will just issue warnings
3147       # or remarks (even with -Werror).  So we grep stderr for any message
3148       # that says an option was ignored or not supported.
3149       # When given -MP, icc 7.0 and 7.1 complain thusly:
3150       #   icc: Command line warning: ignoring option '-M'; no argument required
3151       # The diagnosis changed in icc 8.0:
3152       #   icc: Command line remark: option '-MP' not supported
3153       if (grep 'ignoring option' conftest.err ||
3154           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3155         am_cv_CC_dependencies_compiler_type=$depmode
3156         break
3157       fi
3158     fi
3159   done
3161   cd ..
3162   rm -rf conftest.dir
3163 else
3164   am_cv_CC_dependencies_compiler_type=none
3165 fi
3167 fi
3168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3174 if
3175   test "x$enable_dependency_tracking" != xno \
3176   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3177   am__fastdepCC_TRUE=
3178   am__fastdepCC_FALSE='#'
3179 else
3180   am__fastdepCC_TRUE='#'
3181   am__fastdepCC_FALSE=
3182 fi
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3187 if test "${lt_cv_path_SED+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   # Loop through the user's path and test for sed and gsed.
3191 # Then use that list of sed's as ones to test for truncation.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197   for lt_ac_prog in sed gsed; do
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3200         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3201       fi
3202     done
3203   done
3204 done
3205 lt_ac_max=0
3206 lt_ac_count=0
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3208 # along with /bin/sed that truncates output.
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3210   test ! -f $lt_ac_sed && continue
3211   cat /dev/null > conftest.in
3212   lt_ac_count=0
3213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3214   # Check for GNU sed and select it if it is found.
3215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3216     lt_cv_path_SED=$lt_ac_sed
3217     break
3218   fi
3219   while true; do
3220     cat conftest.in conftest.in >conftest.tmp
3221     mv conftest.tmp conftest.in
3222     cp conftest.in conftest.nl
3223     echo >>conftest.nl
3224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3225     cmp -s conftest.out conftest.nl || break
3226     # 10000 chars as input seems more than enough
3227     test $lt_ac_count -gt 10 && break
3228     lt_ac_count=`expr $lt_ac_count + 1`
3229     if test $lt_ac_count -gt $lt_ac_max; then
3230       lt_ac_max=$lt_ac_count
3231       lt_cv_path_SED=$lt_ac_sed
3232     fi
3233   done
3234 done
3236 fi
3238 SED=$lt_cv_path_SED
3239 echo "$as_me:$LINENO: result: $SED" >&5
3240 echo "${ECHO_T}$SED" >&6
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248     then ac_cv_prog_egrep='grep -E'
3249     else ac_cv_prog_egrep='egrep'
3250     fi
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254  EGREP=$ac_cv_prog_egrep
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3259 if test "${with_gnu_ld+set}" = set; then
3260   withval="$with_gnu_ld"
3261   test "$withval" = no || with_gnu_ld=yes
3262 else
3263   with_gnu_ld=no
3264 fi;
3265 ac_prog=ld
3266 if test "$GCC" = yes; then
3267   # Check if gcc -print-prog-name=ld gives a path.
3268   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3270   case $host in
3271   *-*-mingw*)
3272     # gcc leaves a trailing carriage return which upsets mingw
3273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3274   *)
3275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3276   esac
3277   case $ac_prog in
3278     # Accept absolute paths.
3279     [\\/]* | ?:[\\/]*)
3280       re_direlt='/[^/][^/]*/\.\./'
3281       # Canonicalize the pathname of ld
3282       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3283       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3284         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3285       done
3286       test -z "$LD" && LD="$ac_prog"
3287       ;;
3288   "")
3289     # If it fails, then pretend we aren't using GCC.
3290     ac_prog=ld
3291     ;;
3292   *)
3293     # If it is relative, then search for the first ld in PATH.
3294     with_gnu_ld=unknown
3295     ;;
3296   esac
3297 elif test "$with_gnu_ld" = yes; then
3298   echo "$as_me:$LINENO: checking for GNU ld" >&5
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3300 else
3301   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3303 fi
3304 if test "${lt_cv_path_LD+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -z "$LD"; then
3308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3309   for ac_dir in $PATH; do
3310     IFS="$lt_save_ifs"
3311     test -z "$ac_dir" && ac_dir=.
3312     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3313       lt_cv_path_LD="$ac_dir/$ac_prog"
3314       # Check to see if the program is GNU ld.  I'd rather use --version,
3315       # but apparently some variants of GNU ld only accept -v.
3316       # Break only if it was the GNU/non-GNU ld that we prefer.
3317       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3318       *GNU* | *'with BFD'*)
3319         test "$with_gnu_ld" != no && break
3320         ;;
3321       *)
3322         test "$with_gnu_ld" != yes && break
3323         ;;
3324       esac
3325     fi
3326   done
3327   IFS="$lt_save_ifs"
3328 else
3329   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3330 fi
3331 fi
3333 LD="$lt_cv_path_LD"
3334 if test -n "$LD"; then
3335   echo "$as_me:$LINENO: result: $LD" >&5
3336 echo "${ECHO_T}$LD" >&6
3337 else
3338   echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3340 fi
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3343    { (exit 1); exit 1; }; }
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3350 case `$LD -v 2>&1 </dev/null` in
3351 *GNU* | *'with BFD'*)
3352   lt_cv_prog_gnu_ld=yes
3353   ;;
3354 *)
3355   lt_cv_prog_gnu_ld=no
3356   ;;
3357 esac
3358 fi
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3361 with_gnu_ld=$lt_cv_prog_gnu_ld
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   lt_cv_ld_reload_flag='-r'
3370 fi
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3373 reload_flag=$lt_cv_ld_reload_flag
3374 case $reload_flag in
3375 "" | " "*) ;;
3376 *) reload_flag=" $reload_flag" ;;
3377 esac
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3379 case $host_os in
3380   darwin*)
3381     if test "$GCC" = yes; then
3382       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3383     else
3384       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3385     fi
3386     ;;
3387 esac
3389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3391 if test "${lt_cv_path_NM+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   if test -n "$NM"; then
3395   # Let the user override the test.
3396   lt_cv_path_NM="$NM"
3397 else
3398   lt_nm_to_check="${ac_tool_prefix}nm"
3399   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3400     lt_nm_to_check="$lt_nm_to_check nm"
3401   fi
3402   for lt_tmp_nm in $lt_nm_to_check; do
3403     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3405       IFS="$lt_save_ifs"
3406       test -z "$ac_dir" && ac_dir=.
3407       tmp_nm="$ac_dir/$lt_tmp_nm"
3408       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3409         # Check to see if the nm accepts a BSD-compat flag.
3410         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3411         #   nm: unknown option "B" ignored
3412         # Tru64's nm complains that /dev/null is an invalid object file
3413         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3414         */dev/null* | *'Invalid file or object type'*)
3415           lt_cv_path_NM="$tmp_nm -B"
3416           break
3417           ;;
3418         *)
3419           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3420           */dev/null*)
3421             lt_cv_path_NM="$tmp_nm -p"
3422             break
3423             ;;
3424           *)
3425             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3426             continue # so that we can try to find one that supports BSD flags
3427             ;;
3428           esac
3429           ;;
3430         esac
3431       fi
3432     done
3433     IFS="$lt_save_ifs"
3434   done
3435   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3436 fi
3437 fi
3438 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3439 echo "${ECHO_T}$lt_cv_path_NM" >&6
3440 NM="$lt_cv_path_NM"
3442 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3443 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3444 LN_S=$as_ln_s
3445 if test "$LN_S" = "ln -s"; then
3446   echo "$as_me:$LINENO: result: yes" >&5
3447 echo "${ECHO_T}yes" >&6
3448 else
3449   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3450 echo "${ECHO_T}no, using $LN_S" >&6
3451 fi
3453 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3454 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3455 if test "${lt_cv_deplibs_check_method+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   lt_cv_file_magic_cmd='$MAGIC_CMD'
3459 lt_cv_file_magic_test_file=
3460 lt_cv_deplibs_check_method='unknown'
3461 # Need to set the preceding variable on all platforms that support
3462 # interlibrary dependencies.
3463 # 'none' -- dependencies not supported.
3464 # `unknown' -- same as none, but documents that we really don't know.
3465 # 'pass_all' -- all dependencies passed with no checks.
3466 # 'test_compile' -- check by making test program.
3467 # 'file_magic [[regex]]' -- check by looking for files in library path
3468 # which responds to the $file_magic_cmd with a given extended regex.
3469 # If you have `file' or equivalent on your system and you're not sure
3470 # whether `pass_all' will *always* work, you probably want this one.
3472 case $host_os in
3473 aix4* | aix5*)
3474   lt_cv_deplibs_check_method=pass_all
3475   ;;
3477 beos*)
3478   lt_cv_deplibs_check_method=pass_all
3479   ;;
3481 bsdi[45]*)
3482   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3483   lt_cv_file_magic_cmd='/usr/bin/file -L'
3484   lt_cv_file_magic_test_file=/shlib/libc.so
3485   ;;
3487 cygwin*)
3488   # func_win32_libid is a shell function defined in ltmain.sh
3489   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3490   lt_cv_file_magic_cmd='func_win32_libid'
3491   ;;
3493 mingw* | pw32*)
3494   # Base MSYS/MinGW do not provide the 'file' command needed by
3495   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3496   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3497   lt_cv_file_magic_cmd='$OBJDUMP -f'
3498   ;;
3500 darwin* | rhapsody*)
3501   lt_cv_deplibs_check_method=pass_all
3502   ;;
3504 freebsd* | kfreebsd*-gnu | dragonfly*)
3505   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3506     case $host_cpu in
3507     i*86 )
3508       # Not sure whether the presence of OpenBSD here was a mistake.
3509       # Let's accept both of them until this is cleared up.
3510       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3511       lt_cv_file_magic_cmd=/usr/bin/file
3512       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3513       ;;
3514     esac
3515   else
3516     lt_cv_deplibs_check_method=pass_all
3517   fi
3518   ;;
3520 gnu*)
3521   lt_cv_deplibs_check_method=pass_all
3522   ;;
3524 hpux10.20* | hpux11*)
3525   lt_cv_file_magic_cmd=/usr/bin/file
3526   case $host_cpu in
3527   ia64*)
3528     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3529     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3530     ;;
3531   hppa*64*)
3532     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3533     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3534     ;;
3535   *)
3536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3537     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3538     ;;
3539   esac
3540   ;;
3542 interix3*)
3543   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3544   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3545   ;;
3547 irix5* | irix6* | nonstopux*)
3548   case $LD in
3549   *-32|*"-32 ") libmagic=32-bit;;
3550   *-n32|*"-n32 ") libmagic=N32;;
3551   *-64|*"-64 ") libmagic=64-bit;;
3552   *) libmagic=never-match;;
3553   esac
3554   lt_cv_deplibs_check_method=pass_all
3555   ;;
3557 # This must be Linux ELF.
3558 linux*)
3559   lt_cv_deplibs_check_method=pass_all
3560   ;;
3562 netbsd*)
3563   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3565   else
3566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3567   fi
3568   ;;
3570 newos6*)
3571   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3572   lt_cv_file_magic_cmd=/usr/bin/file
3573   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3574   ;;
3576 nto-qnx*)
3577   lt_cv_deplibs_check_method=unknown
3578   ;;
3580 openbsd*)
3581   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3582     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3583   else
3584     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3585   fi
3586   ;;
3588 osf3* | osf4* | osf5*)
3589   lt_cv_deplibs_check_method=pass_all
3590   ;;
3592 solaris*)
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3596 sysv4 | sysv4.3*)
3597   case $host_vendor in
3598   motorola)
3599     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3600     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3601     ;;
3602   ncr)
3603     lt_cv_deplibs_check_method=pass_all
3604     ;;
3605   sequent)
3606     lt_cv_file_magic_cmd='/bin/file'
3607     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3608     ;;
3609   sni)
3610     lt_cv_file_magic_cmd='/bin/file'
3611     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3612     lt_cv_file_magic_test_file=/lib/libc.so
3613     ;;
3614   siemens)
3615     lt_cv_deplibs_check_method=pass_all
3616     ;;
3617   pc)
3618     lt_cv_deplibs_check_method=pass_all
3619     ;;
3620   esac
3621   ;;
3623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3624   lt_cv_deplibs_check_method=pass_all
3625   ;;
3626 esac
3628 fi
3629 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3630 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3631 file_magic_cmd=$lt_cv_file_magic_cmd
3632 deplibs_check_method=$lt_cv_deplibs_check_method
3633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3638 # If no C compiler was specified, use CC.
3639 LTCC=${LTCC-"$CC"}
3641 # If no C compiler flags were specified, use CFLAGS.
3642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3644 # Allow CC to be a program name with arguments.
3645 compiler=$CC
3648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649 if test "${enable_libtool_lock+set}" = set; then
3650   enableval="$enable_libtool_lock"
3652 fi;
3653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3655 # Some flags need to be propagated to the compiler or linker for good
3656 # libtool support.
3657 case $host in
3658 ia64-*-hpux*)
3659   # Find out which ABI we are using.
3660   echo 'int i;' > conftest.$ac_ext
3661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; then
3666     case `/usr/bin/file conftest.$ac_objext` in
3667     *ELF-32*)
3668       HPUX_IA64_MODE="32"
3669       ;;
3670     *ELF-64*)
3671       HPUX_IA64_MODE="64"
3672       ;;
3673     esac
3674   fi
3675   rm -rf conftest*
3676   ;;
3677 *-*-irix6*)
3678   # Find out which ABI we are using.
3679   echo '#line 3679 "configure"' > conftest.$ac_ext
3680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; then
3685    if test "$lt_cv_prog_gnu_ld" = yes; then
3686     case `/usr/bin/file conftest.$ac_objext` in
3687     *32-bit*)
3688       LD="${LD-ld} -melf32bsmip"
3689       ;;
3690     *N32*)
3691       LD="${LD-ld} -melf32bmipn32"
3692       ;;
3693     *64-bit*)
3694       LD="${LD-ld} -melf64bmip"
3695       ;;
3696     esac
3697    else
3698     case `/usr/bin/file conftest.$ac_objext` in
3699     *32-bit*)
3700       LD="${LD-ld} -32"
3701       ;;
3702     *N32*)
3703       LD="${LD-ld} -n32"
3704       ;;
3705     *64-bit*)
3706       LD="${LD-ld} -64"
3707       ;;
3708     esac
3709    fi
3710   fi
3711   rm -rf conftest*
3712   ;;
3714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715   # Find out which ABI we are using.
3716   echo 'int i;' > conftest.$ac_ext
3717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718   (eval $ac_compile) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; then
3722     case `/usr/bin/file conftest.o` in
3723     *32-bit*)
3724       case $host in
3725         x86_64-*linux*)
3726           LD="${LD-ld} -m elf_i386"
3727           ;;
3728         ppc64-*linux*|powerpc64-*linux*)
3729           LD="${LD-ld} -m elf32ppclinux"
3730           ;;
3731         s390x-*linux*)
3732           LD="${LD-ld} -m elf_s390"
3733           ;;
3734         sparc64-*linux*)
3735           LD="${LD-ld} -m elf32_sparc"
3736           ;;
3737       esac
3738       ;;
3739     *64-bit*)
3740       case $host in
3741         x86_64-*linux*)
3742           LD="${LD-ld} -m elf_x86_64"
3743           ;;
3744         ppc*-*linux*|powerpc*-*linux*)
3745           LD="${LD-ld} -m elf64ppc"
3746           ;;
3747         s390*-*linux*)
3748           LD="${LD-ld} -m elf64_s390"
3749           ;;
3750         sparc*-*linux*)
3751           LD="${LD-ld} -m elf64_sparc"
3752           ;;
3753       esac
3754       ;;
3755     esac
3756   fi
3757   rm -rf conftest*
3758   ;;
3760 *-*-sco3.2v5*)
3761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762   SAVE_CFLAGS="$CFLAGS"
3763   CFLAGS="$CFLAGS -belf"
3764   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766 if test "${lt_cv_cc_needs_belf+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775      cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3782 int
3783 main ()
3786   ;
3787   return 0;
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792   (eval $ac_link) 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799          { ac_try='test -z "$ac_c_werror_flag"
3800                          || test ! -s conftest.err'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; } &&
3806          { ac_try='test -s conftest$ac_exeext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   lt_cv_cc_needs_belf=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 lt_cv_cc_needs_belf=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext \
3820       conftest$ac_exeext conftest.$ac_ext
3821      ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 fi
3828 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3829 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3830   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3831     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3832     CFLAGS="$SAVE_CFLAGS"
3833   fi
3834   ;;
3835 sparc*-*solaris*)
3836   # Find out which ABI we are using.
3837   echo 'int i;' > conftest.$ac_ext
3838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839   (eval $ac_compile) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; then
3843     case `/usr/bin/file conftest.o` in
3844     *64-bit*)
3845       case $lt_cv_prog_gnu_ld in
3846       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3847       *)    LD="${LD-ld} -64" ;;
3848       esac
3849       ;;
3850     esac
3851   fi
3852   rm -rf conftest*
3853   ;;
3856 esac
3858 need_locks="$enable_libtool_lock"
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3867 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3868 # On Suns, sometimes $CPP names a directory.
3869 if test -n "$CPP" && test -d "$CPP"; then
3870   CPP=
3871 fi
3872 if test -z "$CPP"; then
3873   if test "${ac_cv_prog_CPP+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876       # Double quotes because CPP needs to be expanded
3877     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3878     do
3879       ac_preproc_ok=false
3880 for ac_c_preproc_warn_flag in '' yes
3881 do
3882   # Use a header file that comes with gcc, so configuring glibc
3883   # with a fresh cross-compiler works.
3884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3885   # <limits.h> exists even on freestanding compilers.
3886   # On the NeXT, cc -E runs the code through the compiler's parser,
3887   # not just through cpp. "Syntax error" is here to catch this case.
3888   cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894 #ifdef __STDC__
3895 # include <limits.h>
3896 #else
3897 # include <assert.h>
3898 #endif
3899                      Syntax error
3900 _ACEOF
3901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } >/dev/null; then
3909   if test -s conftest.err; then
3910     ac_cpp_err=$ac_c_preproc_warn_flag
3911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3912   else
3913     ac_cpp_err=
3914   fi
3915 else
3916   ac_cpp_err=yes
3917 fi
3918 if test -z "$ac_cpp_err"; then
3919   :
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924   # Broken: fails on valid input.
3925 continue
3926 fi
3927 rm -f conftest.err conftest.$ac_ext
3929   # OK, works on sane cases.  Now check whether non-existent headers
3930   # can be detected and how.
3931   cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } >/dev/null; then
3947   if test -s conftest.err; then
3948     ac_cpp_err=$ac_c_preproc_warn_flag
3949     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3950   else
3951     ac_cpp_err=
3952   fi
3953 else
3954   ac_cpp_err=yes
3955 fi
3956 if test -z "$ac_cpp_err"; then
3957   # Broken: success on invalid input.
3958 continue
3959 else
3960   echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963   # Passes both tests.
3964 ac_preproc_ok=:
3965 break
3966 fi
3967 rm -f conftest.err conftest.$ac_ext
3969 done
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then
3973   break
3974 fi
3976     done
3977     ac_cv_prog_CPP=$CPP
3979 fi
3980   CPP=$ac_cv_prog_CPP
3981 else
3982   ac_cv_prog_CPP=$CPP
3983 fi
3984 echo "$as_me:$LINENO: result: $CPP" >&5
3985 echo "${ECHO_T}$CPP" >&6
3986 ac_preproc_ok=false
3987 for ac_c_preproc_warn_flag in '' yes
3988 do
3989   # Use a header file that comes with gcc, so configuring glibc
3990   # with a fresh cross-compiler works.
3991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3992   # <limits.h> exists even on freestanding compilers.
3993   # On the NeXT, cc -E runs the code through the compiler's parser,
3994   # not just through cpp. "Syntax error" is here to catch this case.
3995   cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001 #ifdef __STDC__
4002 # include <limits.h>
4003 #else
4004 # include <assert.h>
4005 #endif
4006                      Syntax error
4007 _ACEOF
4008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010   ac_status=$?
4011   grep -v '^ *+' conftest.er1 >conftest.err
4012   rm -f conftest.er1
4013   cat conftest.err >&5
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } >/dev/null; then
4016   if test -s conftest.err; then
4017     ac_cpp_err=$ac_c_preproc_warn_flag
4018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019   else
4020     ac_cpp_err=
4021   fi
4022 else
4023   ac_cpp_err=yes
4024 fi
4025 if test -z "$ac_cpp_err"; then
4026   :
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031   # Broken: fails on valid input.
4032 continue
4033 fi
4034 rm -f conftest.err conftest.$ac_ext
4036   # OK, works on sane cases.  Now check whether non-existent headers
4037   # can be detected and how.
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044 #include <ac_nonexistent.h>
4045 _ACEOF
4046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } >/dev/null; then
4054   if test -s conftest.err; then
4055     ac_cpp_err=$ac_c_preproc_warn_flag
4056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057   else
4058     ac_cpp_err=
4059   fi
4060 else
4061   ac_cpp_err=yes
4062 fi
4063 if test -z "$ac_cpp_err"; then
4064   # Broken: success on invalid input.
4065 continue
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070   # Passes both tests.
4071 ac_preproc_ok=:
4072 break
4073 fi
4074 rm -f conftest.err conftest.$ac_ext
4076 done
4077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078 rm -f conftest.err conftest.$ac_ext
4079 if $ac_preproc_ok; then
4080   :
4081 else
4082   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4083 See \`config.log' for more details." >&5
4084 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4085 See \`config.log' for more details." >&2;}
4086    { (exit 1); exit 1; }; }
4087 fi
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4098 if test "${ac_cv_header_stdc+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #include <stdlib.h>
4108 #include <stdarg.h>
4109 #include <string.h>
4110 #include <float.h>
4112 int
4113 main ()
4116   ;
4117   return 0;
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122   (eval $ac_compile) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_c_werror_flag"
4130                          || test ! -s conftest.err'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   ac_cv_header_stdc=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_cv_header_stdc=no
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 if test $ac_cv_header_stdc = yes; then
4152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153   cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #include <string.h>
4161 _ACEOF
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163   $EGREP "memchr" >/dev/null 2>&1; then
4164   :
4165 else
4166   ac_cv_header_stdc=no
4167 fi
4168 rm -f conftest*
4170 fi
4172 if test $ac_cv_header_stdc = yes; then
4173   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <stdlib.h>
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "free" >/dev/null 2>&1; then
4185   :
4186 else
4187   ac_cv_header_stdc=no
4188 fi
4189 rm -f conftest*
4191 fi
4193 if test $ac_cv_header_stdc = yes; then
4194   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4195   if test "$cross_compiling" = yes; then
4196   :
4197 else
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <ctype.h>
4205 #if ((' ' & 0x0FF) == 0x020)
4206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4208 #else
4209 # define ISLOWER(c) \
4210                    (('a' <= (c) && (c) <= 'i') \
4211                      || ('j' <= (c) && (c) <= 'r') \
4212                      || ('s' <= (c) && (c) <= 'z'))
4213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4214 #endif
4216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4217 int
4218 main ()
4220   int i;
4221   for (i = 0; i < 256; i++)
4222     if (XOR (islower (i), ISLOWER (i))
4223         || toupper (i) != TOUPPER (i))
4224       exit(2);
4225   exit (0);
4227 _ACEOF
4228 rm -f conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230   (eval $ac_link) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   :
4240 else
4241   echo "$as_me: program exited with status $ac_status" >&5
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ( exit $ac_status )
4246 ac_cv_header_stdc=no
4247 fi
4248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4249 fi
4250 fi
4251 fi
4252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4254 if test $ac_cv_header_stdc = yes; then
4256 cat >>confdefs.h <<\_ACEOF
4257 #define STDC_HEADERS 1
4258 _ACEOF
4260 fi
4262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273                   inttypes.h stdint.h unistd.h
4274 do
4275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 echo "$as_me:$LINENO: checking for $ac_header" >&5
4277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 $ac_includes_default
4289 #include <$ac_header>
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293   (eval $ac_compile) 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_c_werror_flag"
4301                          || test ! -s conftest.err'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; }; then
4313   eval "$as_ac_Header=yes"
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 eval "$as_ac_Header=no"
4319 fi
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4325   cat >>confdefs.h <<_ACEOF
4326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 _ACEOF
4329 fi
4331 done
4335 for ac_header in dlfcn.h
4336 do
4337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339   echo "$as_me:$LINENO: checking for $ac_header" >&5
4340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 fi
4344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4346 else
4347   # Is the header compilable?
4348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 $ac_includes_default
4357 #include <$ac_header>
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361   (eval $ac_compile) 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -z "$ac_c_werror_flag"
4369                          || test ! -s conftest.err'
4370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371   (eval $ac_try) 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; } &&
4375          { ac_try='test -s conftest.$ac_objext'
4376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377   (eval $ac_try) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; }; then
4381   ac_header_compiler=yes
4382 else
4383   echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_header_compiler=no
4387 fi
4388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4390 echo "${ECHO_T}$ac_header_compiler" >&6
4392 # Is the header present?
4393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 #include <$ac_header>
4402 _ACEOF
4403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } >/dev/null; then
4411   if test -s conftest.err; then
4412     ac_cpp_err=$ac_c_preproc_warn_flag
4413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4414   else
4415     ac_cpp_err=
4416   fi
4417 else
4418   ac_cpp_err=yes
4419 fi
4420 if test -z "$ac_cpp_err"; then
4421   ac_header_preproc=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426   ac_header_preproc=no
4427 fi
4428 rm -f conftest.err conftest.$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4430 echo "${ECHO_T}$ac_header_preproc" >&6
4432 # So?  What about this header?
4433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4434   yes:no: )
4435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4439     ac_header_preproc=yes
4440     ;;
4441   no:yes:* )
4442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4454     (
4455       cat <<\_ASBOX
4456 ## --------------------------------- ##
4457 ## Report this to the TI IPC lists.  ##
4458 ## --------------------------------- ##
4459 _ASBOX
4460     ) |
4461       sed "s/^/$as_me: WARNING:     /" >&2
4462     ;;
4463 esac
4464 echo "$as_me:$LINENO: checking for $ac_header" >&5
4465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   eval "$as_ac_Header=\$ac_header_preproc"
4470 fi
4471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4474 fi
4475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4476   cat >>confdefs.h <<_ACEOF
4477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478 _ACEOF
4480 fi
4482 done
4484 ac_ext=cc
4485 ac_cpp='$CXXCPP $CPPFLAGS'
4486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4489 if test -n "$ac_tool_prefix"; then
4490   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4491   do
4492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_CXX+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$CXX"; then
4500   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4516 fi
4517 fi
4518 CXX=$ac_cv_prog_CXX
4519 if test -n "$CXX"; then
4520   echo "$as_me:$LINENO: result: $CXX" >&5
4521 echo "${ECHO_T}$CXX" >&6
4522 else
4523   echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4527     test -n "$CXX" && break
4528   done
4529 fi
4530 if test -z "$CXX"; then
4531   ac_ct_CXX=$CXX
4532   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4533 do
4534   # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$ac_ct_CXX"; then
4542   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_prog_ac_ct_CXX="$ac_prog"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4558 fi
4559 fi
4560 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4561 if test -n "$ac_ct_CXX"; then
4562   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4563 echo "${ECHO_T}$ac_ct_CXX" >&6
4564 else
4565   echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6
4567 fi
4569   test -n "$ac_ct_CXX" && break
4570 done
4571 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4573   CXX=$ac_ct_CXX
4574 fi
4577 # Provide some information about the compiler.
4578 echo "$as_me:$LINENO:" \
4579      "checking for C++ compiler version" >&5
4580 ac_compiler=`set X $ac_compile; echo $2`
4581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582   (eval $ac_compiler --version </dev/null >&5) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }
4586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587   (eval $ac_compiler -v </dev/null >&5) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }
4591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592   (eval $ac_compiler -V </dev/null >&5) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }
4597 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4598 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4609 int
4610 main ()
4612 #ifndef __GNUC__
4613        choke me
4614 #endif
4616   ;
4617   return 0;
4619 _ACEOF
4620 rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } &&
4629          { ac_try='test -z "$ac_cxx_werror_flag"
4630                          || test ! -s conftest.err'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; } &&
4636          { ac_try='test -s conftest.$ac_objext'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; }; then
4642   ac_compiler_gnu=yes
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_compiler_gnu=no
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4652 fi
4653 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4654 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4655 GXX=`test $ac_compiler_gnu = yes && echo yes`
4656 ac_test_CXXFLAGS=${CXXFLAGS+set}
4657 ac_save_CXXFLAGS=$CXXFLAGS
4658 CXXFLAGS="-g"
4659 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4660 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4661 if test "${ac_cv_prog_cxx_g+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4671 int
4672 main ()
4675   ;
4676   return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681   (eval $ac_compile) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -z "$ac_cxx_werror_flag"
4689                          || test ! -s conftest.err'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   ac_cv_prog_cxx_g=yes
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_cv_prog_cxx_g=no
4707 fi
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4711 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4712 if test "$ac_test_CXXFLAGS" = set; then
4713   CXXFLAGS=$ac_save_CXXFLAGS
4714 elif test $ac_cv_prog_cxx_g = yes; then
4715   if test "$GXX" = yes; then
4716     CXXFLAGS="-g -O2"
4717   else
4718     CXXFLAGS="-g"
4719   fi
4720 else
4721   if test "$GXX" = yes; then
4722     CXXFLAGS="-O2"
4723   else
4724     CXXFLAGS=
4725   fi
4726 fi
4727 for ac_declaration in \
4728    '' \
4729    'extern "C" void std::exit (int) throw (); using std::exit;' \
4730    'extern "C" void std::exit (int); using std::exit;' \
4731    'extern "C" void exit (int) throw ();' \
4732    'extern "C" void exit (int);' \
4733    'void exit (int);'
4734 do
4735   cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741 $ac_declaration
4742 #include <stdlib.h>
4743 int
4744 main ()
4746 exit (42);
4747   ;
4748   return 0;
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_cxx_werror_flag"
4761                          || test ! -s conftest.err'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5