]> rtime.felk.cvut.cz Git - orte.git/blob - configure
bcd10b346d6c4a7b252b1b479ba45263c5019625
[orte.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for orte 0.3.0.
4 #
5 # Report bugs to <petr.smolik@wo.cz>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Find the correct PATH separator.  Usually this is `:', but
247 # DJGPP uses `;' like DOS.
248 if test "X${PATH_SEPARATOR+set}" != Xset; then
249   UNAME=${UNAME-`uname 2>/dev/null`}
250   case X$UNAME in
251     *-DOS) lt_cv_sys_path_separator=';' ;;
252     *)     lt_cv_sys_path_separator=':' ;;
253   esac
254   PATH_SEPARATOR=$lt_cv_sys_path_separator
255 fi
256
257
258 # Check that we are running under the correct shell.
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 case X$ECHO in
262 X*--fallback-echo)
263   # Remove one level of quotation (which was required for Make).
264   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
265   ;;
266 esac
267
268 echo=${ECHO-echo}
269 if test "X$1" = X--no-reexec; then
270   # Discard the --no-reexec flag, and continue.
271   shift
272 elif test "X$1" = X--fallback-echo; then
273   # Avoid inline document here, it may be left over
274   :
275 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
276   # Yippee, $echo works!
277   :
278 else
279   # Restart under the correct shell.
280   exec $SHELL "$0" --no-reexec ${1+"$@"}
281 fi
282
283 if test "X$1" = X--fallback-echo; then
284   # used as fallback echo
285   shift
286   cat <<EOF
287
288 EOF
289   exit 0
290 fi
291
292 # The HP-UX ksh and POSIX shell print the target directory to stdout
293 # if CDPATH is set.
294 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
296 if test -z "$ECHO"; then
297 if test "X${echo_test_string+set}" != Xset; then
298 # find a string as large as possible, as long as the shell can cope with it
299   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
300     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
301     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
302        echo_test_string="`eval $cmd`" &&
303        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304     then
305       break
306     fi
307   done
308 fi
309
310 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
311    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
312    test "X$echo_testing_string" = "X$echo_test_string"; then
313   :
314 else
315   # The Solaris, AIX, and Digital Unix default echo programs unquote
316   # backslashes.  This makes it impossible to quote backslashes using
317   #   echo "$something" | sed 's/\\/\\\\/g'
318   #
319   # So, first we look for a working echo in the user's PATH.
320
321   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
322   for dir in $PATH /usr/ucb; do
323     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
324        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       echo="$dir/echo"
328       break
329     fi
330   done
331   IFS="$save_ifs"
332
333   if test "X$echo" = Xecho; then
334     # We didn't find a better echo, so look for alternatives.
335     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
336        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
337        test "X$echo_testing_string" = "X$echo_test_string"; then
338       # This shell has a builtin print -r that does the trick.
339       echo='print -r'
340     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
341          test "X$CONFIG_SHELL" != X/bin/ksh; then
342       # If we have ksh, try running configure again with it.
343       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
344       export ORIGINAL_CONFIG_SHELL
345       CONFIG_SHELL=/bin/ksh
346       export CONFIG_SHELL
347       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348     else
349       # Try using printf.
350       echo='printf %s\n'
351       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
352          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
353          test "X$echo_testing_string" = "X$echo_test_string"; then
354         # Cool, printf works
355         :
356       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361         export CONFIG_SHELL
362         SHELL="$CONFIG_SHELL"
363         export SHELL
364         echo="$CONFIG_SHELL $0 --fallback-echo"
365       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
366            test "X$echo_testing_string" = 'X\t' &&
367            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
368            test "X$echo_testing_string" = "X$echo_test_string"; then
369         echo="$CONFIG_SHELL $0 --fallback-echo"
370       else
371         # maybe with a smaller string...
372         prev=:
373
374         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
375           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376           then
377             break
378           fi
379           prev="$cmd"
380         done
381
382         if test "$prev" != 'sed 50q "$0"'; then
383           echo_test_string=`eval $prev`
384           export echo_test_string
385           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386         else
387           # Oops.  We lost completely, so just stick with echo.
388           echo=echo
389         fi
390       fi
391     fi
392   fi
393 fi
394 fi
395
396 # Copy echo and quote the copy suitably for passing to libtool from
397 # the Makefile, instead of quoting the original, which is used later.
398 ECHO=$echo
399 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
400    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
401 fi
402
403
404
405 # Name of the host.
406 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407 # so uname gets run too.
408 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410 exec 6>&1
411
412 #
413 # Initializations.
414 #
415 ac_default_prefix=/usr/local
416 ac_config_libobj_dir=.
417 cross_compiling=no
418 subdirs=
419 MFLAGS=
420 MAKEFLAGS=
421 SHELL=${CONFIG_SHELL-/bin/sh}
422
423 # Maximum number of lines to put in a shell here document.
424 # This variable seems obsolete.  It should probably be removed, and
425 # only ac_max_sed_lines should be used.
426 : ${ac_max_here_lines=38}
427
428 # Identity of this package.
429 PACKAGE_NAME='orte'
430 PACKAGE_TARNAME='orte'
431 PACKAGE_VERSION='0.3.0'
432 PACKAGE_STRING='orte 0.3.0'
433 PACKAGE_BUGREPORT='petr.smolik@wo.cz'
434
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 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 ORTE_MAJOR_VERSION ORTE_MINOR_VERSION ORTE_MICRO_VERSION ORTE_VERSION ORTE_INTERFACE_AGE ORTE_BINARY_AGE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LINUX_DIR LINUX_ARCH LINUX_AFLAGS LINUX_LDFLAGS LINUX_ARFLAGS LINUX_CROSS_COMPILE LINUX_KERNELRELEASE LINUX_CFLAGS LINUX_CC LINUX_LD LINUX_AS LINUX_MODULE_EXT CONFIG_ORTE_KERNEL CONFIG_ORTE_KERNEL_TRUE CONFIG_ORTE_KERNEL_FALSE CONFIG_RTHAL_TRUE CONFIG_RTHAL_FALSE CONFIG_ADEOS_TRUE CONFIG_ADEOS_FALSE RTAI_CFLAGS CONFIG_RTLINUX_TRUE CONFIG_RTLINUX_FALSE RTLINUX_CFLAGS RTLINUX_CC CONFIG_ORTE_RT USE_RTAI_TRUE USE_RTAI_FALSE USE_RTLINUX_TRUE USE_RTLINUX_FALSE CONFIG_ORTE_RT_TRUE CONFIG_ORTE_RT_FALSE CONFIG_ORTE_WIN_TRUE CONFIG_ORTE_WIN_FALSE CONFIG_ORTE_CYGWIN_TRUE CONFIG_ORTE_CYGWIN_FALSE CONFIG_ORTE_MINGW_TRUE CONFIG_ORTE_MINGW_FALSE CONFIG_ORTE_UNIX_TRUE CONFIG_ORTE_UNIX_FALSE moduledir modulePROGRAMS_INSTALL 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 RANLIB ac_ct_RANLIB PKG_CONFIG LIBIDL_CFLAGS LIBIDL_LIBS CONFIG_ORTE_IDL_TRUE CONFIG_ORTE_IDL_FALSE CONFIG_ORTE_IDL CONFIG_JORTE_TRUE CONFIG_JORTE_FALSE CONFIG_JORTE LN_S ECHO CPP EGREP LIBTOOL INCLUDES LIBOBJS LTLIBOBJS'
473 ac_subst_files=''
474
475 # Initialize some variables set by options.
476 ac_init_help=
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
480 cache_file=/dev/null
481 exec_prefix=NONE
482 no_create=
483 no_recursion=
484 prefix=NONE
485 program_prefix=NONE
486 program_suffix=NONE
487 program_transform_name=s,x,x,
488 silent=
489 site=
490 srcdir=
491 verbose=
492 x_includes=NONE
493 x_libraries=NONE
494
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
512
513 ac_prev=
514 for ac_option
515 do
516   # If the previous option needs an argument, assign it.
517   if test -n "$ac_prev"; then
518     eval "$ac_prev=\$ac_option"
519     ac_prev=
520     continue
521   fi
522
523   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525   # Accept the important Cygnus configure options, so we can diagnose typos.
526
527   case $ac_option in
528
529   -bindir | --bindir | --bindi | --bind | --bin | --bi)
530     ac_prev=bindir ;;
531   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532     bindir=$ac_optarg ;;
533
534   -build | --build | --buil | --bui | --bu)
535     ac_prev=build_alias ;;
536   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537     build_alias=$ac_optarg ;;
538
539   -cache-file | --cache-file | --cache-fil | --cache-fi \
540   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541     ac_prev=cache_file ;;
542   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544     cache_file=$ac_optarg ;;
545
546   --config-cache | -C)
547     cache_file=config.cache ;;
548
549   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550     ac_prev=datadir ;;
551   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552   | --da=*)
553     datadir=$ac_optarg ;;
554
555   -disable-* | --disable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     eval "enable_$ac_feature=no" ;;
563
564   -enable-* | --enable-*)
565     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566     # Reject names that are not valid shell variable names.
567     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569    { (exit 1); exit 1; }; }
570     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571     case $ac_option in
572       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573       *) ac_optarg=yes ;;
574     esac
575     eval "enable_$ac_feature='$ac_optarg'" ;;
576
577   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579   | --exec | --exe | --ex)
580     ac_prev=exec_prefix ;;
581   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583   | --exec=* | --exe=* | --ex=*)
584     exec_prefix=$ac_optarg ;;
585
586   -gas | --gas | --ga | --g)
587     # Obsolete; use --with-gas.
588     with_gas=yes ;;
589
590   -help | --help | --hel | --he | -h)
591     ac_init_help=long ;;
592   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593     ac_init_help=recursive ;;
594   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595     ac_init_help=short ;;
596
597   -host | --host | --hos | --ho)
598     ac_prev=host_alias ;;
599   -host=* | --host=* | --hos=* | --ho=*)
600     host_alias=$ac_optarg ;;
601
602   -includedir | --includedir | --includedi | --included | --include \
603   | --includ | --inclu | --incl | --inc)
604     ac_prev=includedir ;;
605   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606   | --includ=* | --inclu=* | --incl=* | --inc=*)
607     includedir=$ac_optarg ;;
608
609   -infodir | --infodir | --infodi | --infod | --info | --inf)
610     ac_prev=infodir ;;
611   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612     infodir=$ac_optarg ;;
613
614   -libdir | --libdir | --libdi | --libd)
615     ac_prev=libdir ;;
616   -libdir=* | --libdir=* | --libdi=* | --libd=*)
617     libdir=$ac_optarg ;;
618
619   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620   | --libexe | --libex | --libe)
621     ac_prev=libexecdir ;;
622   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623   | --libexe=* | --libex=* | --libe=*)
624     libexecdir=$ac_optarg ;;
625
626   -localstatedir | --localstatedir | --localstatedi | --localstated \
627   | --localstate | --localstat | --localsta | --localst \
628   | --locals | --local | --loca | --loc | --lo)
629     ac_prev=localstatedir ;;
630   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633     localstatedir=$ac_optarg ;;
634
635   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636     ac_prev=mandir ;;
637   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638     mandir=$ac_optarg ;;
639
640   -nfp | --nfp | --nf)
641     # Obsolete; use --without-fp.
642     with_fp=no ;;
643
644   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645   | --no-cr | --no-c | -n)
646     no_create=yes ;;
647
648   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650     no_recursion=yes ;;
651
652   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654   | --oldin | --oldi | --old | --ol | --o)
655     ac_prev=oldincludedir ;;
656   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659     oldincludedir=$ac_optarg ;;
660
661   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662     ac_prev=prefix ;;
663   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664     prefix=$ac_optarg ;;
665
666   -program-prefix | --program-prefix | --program-prefi | --program-pref \
667   | --program-pre | --program-pr | --program-p)
668     ac_prev=program_prefix ;;
669   -program-prefix=* | --program-prefix=* | --program-prefi=* \
670   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671     program_prefix=$ac_optarg ;;
672
673   -program-suffix | --program-suffix | --program-suffi | --program-suff \
674   | --program-suf | --program-su | --program-s)
675     ac_prev=program_suffix ;;
676   -program-suffix=* | --program-suffix=* | --program-suffi=* \
677   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678     program_suffix=$ac_optarg ;;
679
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     ac_prev=program_transform_name ;;
688   -program-transform-name=* | --program-transform-name=* \
689   | --program-transform-nam=* | --program-transform-na=* \
690   | --program-transform-n=* | --program-transform-=* \
691   | --program-transform=* | --program-transfor=* \
692   | --program-transfo=* | --program-transf=* \
693   | --program-trans=* | --program-tran=* \
694   | --progr-tra=* | --program-tr=* | --program-t=*)
695     program_transform_name=$ac_optarg ;;
696
697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698   | -silent | --silent | --silen | --sile | --sil)
699     silent=yes ;;
700
701   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702     ac_prev=sbindir ;;
703   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704   | --sbi=* | --sb=*)
705     sbindir=$ac_optarg ;;
706
707   -sharedstatedir | --sharedstatedir | --sharedstatedi \
708   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709   | --sharedst | --shareds | --shared | --share | --shar \
710   | --sha | --sh)
711     ac_prev=sharedstatedir ;;
712   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715   | --sha=* | --sh=*)
716     sharedstatedir=$ac_optarg ;;
717
718   -site | --site | --sit)
719     ac_prev=site ;;
720   -site=* | --site=* | --sit=*)
721     site=$ac_optarg ;;
722
723   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724     ac_prev=srcdir ;;
725   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726     srcdir=$ac_optarg ;;
727
728   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729   | --syscon | --sysco | --sysc | --sys | --sy)
730     ac_prev=sysconfdir ;;
731   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733     sysconfdir=$ac_optarg ;;
734
735   -target | --target | --targe | --targ | --tar | --ta | --t)
736     ac_prev=target_alias ;;
737   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738     target_alias=$ac_optarg ;;
739
740   -v | -verbose | --verbose | --verbos | --verbo | --verb)
741     verbose=yes ;;
742
743   -version | --version | --versio | --versi | --vers | -V)
744     ac_init_version=: ;;
745
746   -with-* | --with-*)
747     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748     # Reject names that are not valid shell variable names.
749     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750       { echo "$as_me: error: invalid package name: $ac_package" >&2
751    { (exit 1); exit 1; }; }
752     ac_package=`echo $ac_package| sed 's/-/_/g'`
753     case $ac_option in
754       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755       *) ac_optarg=yes ;;
756     esac
757     eval "with_$ac_package='$ac_optarg'" ;;
758
759   -without-* | --without-*)
760     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763       { echo "$as_me: error: invalid package name: $ac_package" >&2
764    { (exit 1); exit 1; }; }
765     ac_package=`echo $ac_package | sed 's/-/_/g'`
766     eval "with_$ac_package=no" ;;
767
768   --x)
769     # Obsolete; use --with-x.
770     with_x=yes ;;
771
772   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773   | --x-incl | --x-inc | --x-in | --x-i)
774     ac_prev=x_includes ;;
775   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777     x_includes=$ac_optarg ;;
778
779   -x-libraries | --x-libraries | --x-librarie | --x-librari \
780   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781     ac_prev=x_libraries ;;
782   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784     x_libraries=$ac_optarg ;;
785
786   -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788    { (exit 1); exit 1; }; }
789     ;;
790
791   *=*)
792     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793     # Reject names that are not valid shell variable names.
794     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796    { (exit 1); exit 1; }; }
797     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798     eval "$ac_envvar='$ac_optarg'"
799     export $ac_envvar ;;
800
801   *)
802     # FIXME: should be removed in autoconf 3.0.
803     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807     ;;
808
809   esac
810 done
811
812 if test -n "$ac_prev"; then
813   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814   { echo "$as_me: error: missing argument to $ac_option" >&2
815    { (exit 1); exit 1; }; }
816 fi
817
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831               localstatedir libdir includedir oldincludedir infodir mandir
832 do
833   eval ac_val=$`echo $ac_var`
834   case $ac_val in
835     [\\/$]* | ?:[\\/]* ) ;;
836     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837    { (exit 1); exit 1; }; };;
838   esac
839 done
840
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
844 build=$build_alias
845 host=$host_alias
846 target=$target_alias
847
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850   if test "x$build_alias" = x; then
851     cross_compiling=maybe
852     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853     If a cross compiler is detected then cross compile mode will be used." >&2
854   elif test "x$build_alias" != "x$host_alias"; then
855     cross_compiling=yes
856   fi
857 fi
858
859 ac_tool_prefix=
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862 test "$silent" = yes && exec 6>/dev/null
863
864
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867   ac_srcdir_defaulted=yes
868   # Try the directory containing this script, then its parent.
869   ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871          X"$0" : 'X\(//\)[^/]' \| \
872          X"$0" : 'X\(//\)$' \| \
873          X"$0" : 'X\(/\)' \| \
874          .     : '\(.\)' 2>/dev/null ||
875 echo X"$0" |
876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878           /^X\(\/\/\)$/{ s//\1/; q; }
879           /^X\(\/\).*/{ s//\1/; q; }
880           s/.*/./; q'`
881   srcdir=$ac_confdir
882   if test ! -r $srcdir/$ac_unique_file; then
883     srcdir=..
884   fi
885 else
886   ac_srcdir_defaulted=no
887 fi
888 if test ! -r $srcdir/$ac_unique_file; then
889   if test "$ac_srcdir_defaulted" = yes; then
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891    { (exit 1); exit 1; }; }
892   else
893     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894    { (exit 1); exit 1; }; }
895   fi
896 fi
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899    { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
914 ac_env_CC_value=$CC
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933
934 #
935 # Report the --help message.
936 #
937 if test "$ac_init_help" = "long"; then
938   # Omit some internal or obsolete options to make the list less imposing.
939   # This message is too long to be a string in the A/UX 3.1 sh.
940   cat <<_ACEOF
941 \`configure' configures orte 0.3.0 to adapt to many kinds of systems.
942
943 Usage: $0 [OPTION]... [VAR=VALUE]...
944
945 To assign environment variables (e.g., CC, CFLAGS...), specify them as
946 VAR=VALUE.  See below for descriptions of some of the useful variables.
947
948 Defaults for the options are specified in brackets.
949
950 Configuration:
951   -h, --help              display this help and exit
952       --help=short        display options specific to this package
953       --help=recursive    display the short help of all the included packages
954   -V, --version           display version information and exit
955   -q, --quiet, --silent   do not print \`checking...' messages
956       --cache-file=FILE   cache test results in FILE [disabled]
957   -C, --config-cache      alias for \`--cache-file=config.cache'
958   -n, --no-create         do not create output files
959       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
960
961 _ACEOF
962
963   cat <<_ACEOF
964 Installation directories:
965   --prefix=PREFIX         install architecture-independent files in PREFIX
966                           [$ac_default_prefix]
967   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
968                           [PREFIX]
969
970 By default, \`make install' will install all the files in
971 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
972 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
973 for instance \`--prefix=\$HOME'.
974
975 For better control, use the options below.
976
977 Fine tuning of the installation directories:
978   --bindir=DIR           user executables [EPREFIX/bin]
979   --sbindir=DIR          system admin executables [EPREFIX/sbin]
980   --libexecdir=DIR       program executables [EPREFIX/libexec]
981   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
982   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
983   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
984   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
985   --libdir=DIR           object code libraries [EPREFIX/lib]
986   --includedir=DIR       C header files [PREFIX/include]
987   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
988   --infodir=DIR          info documentation [PREFIX/info]
989   --mandir=DIR           man documentation [PREFIX/man]
990 _ACEOF
991
992   cat <<\_ACEOF
993
994 Program names:
995   --program-prefix=PREFIX            prepend PREFIX to installed program names
996   --program-suffix=SUFFIX            append SUFFIX to installed program names
997   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
998
999 System types:
1000   --build=BUILD     configure for building on BUILD [guessed]
1001   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1002   --target=TARGET   configure for building compilers for TARGET [HOST]
1003 _ACEOF
1004 fi
1005
1006 if test -n "$ac_init_help"; then
1007   case $ac_init_help in
1008      short | recursive ) echo "Configuration of orte 0.3.0:";;
1009    esac
1010   cat <<\_ACEOF
1011
1012 Optional Features:
1013   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1014   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1015   --enable-maintainer-mode  enable make rules and dependencies not useful
1016                           (and sometimes confusing) to the casual installer
1017   --disable-dependency-tracking  speeds up one-time build
1018   --enable-dependency-tracking   do not reject slow dependency extractors
1019   --enable-orte-idl  enable to compile orte IDL compiler
1020   --enable-shared=PKGS  build shared libraries default=yes
1021   --enable-static=PKGS  build static libraries default=yes
1022   --enable-fast-install=PKGS  optimize for fast installation default=yes
1023   --disable-libtool-lock  avoid locking (might break parallel builds)
1024
1025 Optional Packages:
1026   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1027   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1028   --with-linux=DIR        path to Linux patched source directory
1029   --with-rtai=DIR         path to configured RTAI 24.1.X sources, or RTAI 3
1030                           installation
1031   --with-rtnet=DIR        path to RTnet installation directory
1032   --with-rtlinux=DIR      path to RTLinux source directory
1033   --with-rtlinuxwip=DIR   path to RTLinux wIP source directory
1034   --with-rtlinuxonetd=DIR path to RTLinux onetd source directory
1035   --with-java=DIR         path to JAVA home directory for jorte compilation
1036   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1037   --with-pic              try to use only PIC/non-PIC objects default=use both
1038
1039 Some influential environment variables:
1040   CC          C compiler command
1041   CFLAGS      C compiler flags
1042   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043               nonstandard directory <lib dir>
1044   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045               headers in a nonstandard directory <include dir>
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 Report bugs to <petr.smolik@wo.cz>.
1052 _ACEOF
1053 fi
1054
1055 if test "$ac_init_help" = "recursive"; then
1056   # If there are subdirs, report their specific --help.
1057   ac_popdir=`pwd`
1058   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059     test -d $ac_dir || continue
1060     ac_builddir=.
1061
1062 if test "$ac_dir" != .; then
1063   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064   # A "../" for each directory in $ac_dir_suffix.
1065   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066 else
1067   ac_dir_suffix= ac_top_builddir=
1068 fi
1069
1070 case $srcdir in
1071   .)  # No --srcdir option.  We are building in place.
1072     ac_srcdir=.
1073     if test -z "$ac_top_builddir"; then
1074        ac_top_srcdir=.
1075     else
1076        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077     fi ;;
1078   [\\/]* | ?:[\\/]* )  # Absolute path.
1079     ac_srcdir=$srcdir$ac_dir_suffix;
1080     ac_top_srcdir=$srcdir ;;
1081   *) # Relative path.
1082     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 esac
1085
1086 # Do not use `cd foo && pwd` to compute absolute paths, because
1087 # the directories may not exist.
1088 case `pwd` in
1089 .) ac_abs_builddir="$ac_dir";;
1090 *)
1091   case "$ac_dir" in
1092   .) ac_abs_builddir=`pwd`;;
1093   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095   esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *)
1100   case ${ac_top_builddir}. in
1101   .) ac_abs_top_builddir=$ac_abs_builddir;;
1102   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104   esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_srcdir=$ac_srcdir;;
1108 *)
1109   case $ac_srcdir in
1110   .) ac_abs_srcdir=$ac_abs_builddir;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *)
1118   case $ac_top_srcdir in
1119   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122   esac;;
1123 esac
1124
1125     cd $ac_dir
1126     # Check for guested configure; otherwise get Cygnus style configure.
1127     if test -f $ac_srcdir/configure.gnu; then
1128       echo
1129       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1130     elif test -f $ac_srcdir/configure; then
1131       echo
1132       $SHELL $ac_srcdir/configure  --help=recursive
1133     elif test -f $ac_srcdir/configure.ac ||
1134            test -f $ac_srcdir/configure.in; then
1135       echo
1136       $ac_configure --help
1137     else
1138       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139     fi
1140     cd $ac_popdir
1141   done
1142 fi
1143
1144 test -n "$ac_init_help" && exit 0
1145 if $ac_init_version; then
1146   cat <<\_ACEOF
1147 orte configure 0.3.0
1148 generated by GNU Autoconf 2.59
1149
1150 Copyright (C) 2003 Free Software Foundation, Inc.
1151 This configure script is free software; the Free Software Foundation
1152 gives unlimited permission to copy, distribute and modify it.
1153 _ACEOF
1154   exit 0
1155 fi
1156 exec 5>config.log
1157 cat >&5 <<_ACEOF
1158 This file contains any messages produced by compilers while
1159 running configure, to aid debugging if configure makes a mistake.
1160
1161 It was created by orte $as_me 0.3.0, which was
1162 generated by GNU Autoconf 2.59.  Invocation command line was
1163
1164   $ $0 $@
1165
1166 _ACEOF
1167 {
1168 cat <<_ASUNAME
1169 ## --------- ##
1170 ## Platform. ##
1171 ## --------- ##
1172
1173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1178
1179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1180 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1181
1182 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1183 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1185 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1186 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1187 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1188 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1189
1190 _ASUNAME
1191
1192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 for as_dir in $PATH
1194 do
1195   IFS=$as_save_IFS
1196   test -z "$as_dir" && as_dir=.
1197   echo "PATH: $as_dir"
1198 done
1199
1200 } >&5
1201
1202 cat >&5 <<_ACEOF
1203
1204
1205 ## ----------- ##
1206 ## Core tests. ##
1207 ## ----------- ##
1208
1209 _ACEOF
1210
1211
1212 # Keep a trace of the command line.
1213 # Strip out --no-create and --no-recursion so they do not pile up.
1214 # Strip out --silent because we don't want to record it for future runs.
1215 # Also quote any args containing shell meta-characters.
1216 # Make two passes to allow for proper duplicate-argument suppression.
1217 ac_configure_args=
1218 ac_configure_args0=
1219 ac_configure_args1=
1220 ac_sep=
1221 ac_must_keep_next=false
1222 for ac_pass in 1 2
1223 do
1224   for ac_arg
1225   do
1226     case $ac_arg in
1227     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1228     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229     | -silent | --silent | --silen | --sile | --sil)
1230       continue ;;
1231     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1233     esac
1234     case $ac_pass in
1235     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1236     2)
1237       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1238       if test $ac_must_keep_next = true; then
1239         ac_must_keep_next=false # Got value, back to normal.
1240       else
1241         case $ac_arg in
1242           *=* | --config-cache | -C | -disable-* | --disable-* \
1243           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1244           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1245           | -with-* | --with-* | -without-* | --without-* | --x)
1246             case "$ac_configure_args0 " in
1247               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1248             esac
1249             ;;
1250           -* ) ac_must_keep_next=true ;;
1251         esac
1252       fi
1253       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1254       # Get rid of the leading space.
1255       ac_sep=" "
1256       ;;
1257     esac
1258   done
1259 done
1260 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1261 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1262
1263 # When interrupted or exit'd, cleanup temporary files, and complete
1264 # config.log.  We remove comments because anyway the quotes in there
1265 # would cause problems or look ugly.
1266 # WARNING: Be sure not to use single quotes in there, as some shells,
1267 # such as our DU 5.0 friend, will then `close' the trap.
1268 trap 'exit_status=$?
1269   # Save into config.log some information that might help in debugging.
1270   {
1271     echo
1272
1273     cat <<\_ASBOX
1274 ## ---------------- ##
1275 ## Cache variables. ##
1276 ## ---------------- ##
1277 _ASBOX
1278     echo
1279     # The following way of writing the cache mishandles newlines in values,
1280 {
1281   (set) 2>&1 |
1282     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1283     *ac_space=\ *)
1284       sed -n \
1285         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1286           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287       ;;
1288     *)
1289       sed -n \
1290         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291       ;;
1292     esac;
1293 }
1294     echo
1295
1296     cat <<\_ASBOX
1297 ## ----------------- ##
1298 ## Output variables. ##
1299 ## ----------------- ##
1300 _ASBOX
1301     echo
1302     for ac_var in $ac_subst_vars
1303     do
1304       eval ac_val=$`echo $ac_var`
1305       echo "$ac_var='"'"'$ac_val'"'"'"
1306     done | sort
1307     echo
1308
1309     if test -n "$ac_subst_files"; then
1310       cat <<\_ASBOX
1311 ## ------------- ##
1312 ## Output files. ##
1313 ## ------------- ##
1314 _ASBOX
1315       echo
1316       for ac_var in $ac_subst_files
1317       do
1318         eval ac_val=$`echo $ac_var`
1319         echo "$ac_var='"'"'$ac_val'"'"'"
1320       done | sort
1321       echo
1322     fi
1323
1324     if test -s confdefs.h; then
1325       cat <<\_ASBOX
1326 ## ----------- ##
1327 ## confdefs.h. ##
1328 ## ----------- ##
1329 _ASBOX
1330       echo
1331       sed "/^$/d" confdefs.h | sort
1332       echo
1333     fi
1334     test "$ac_signal" != 0 &&
1335       echo "$as_me: caught signal $ac_signal"
1336     echo "$as_me: exit $exit_status"
1337   } >&5
1338   rm -f core *.core &&
1339   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1340     exit $exit_status
1341      ' 0
1342 for ac_signal in 1 2 13 15; do
1343   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 done
1345 ac_signal=0
1346
1347 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1348 rm -rf conftest* confdefs.h
1349 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1350 echo >confdefs.h
1351
1352 # Predefined preprocessor variables.
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 _ACEOF
1377
1378
1379 # Let the site file select an alternate cache file if it wants to.
1380 # Prefer explicitly selected file to automatically selected ones.
1381 if test -z "$CONFIG_SITE"; then
1382   if test "x$prefix" != xNONE; then
1383     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1384   else
1385     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1386   fi
1387 fi
1388 for ac_site_file in $CONFIG_SITE; do
1389   if test -r "$ac_site_file"; then
1390     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1391 echo "$as_me: loading site script $ac_site_file" >&6;}
1392     sed 's/^/| /' "$ac_site_file" >&5
1393     . "$ac_site_file"
1394   fi
1395 done
1396
1397 if test -r "$cache_file"; then
1398   # Some versions of bash will fail to source /dev/null (special
1399   # files actually), so we avoid doing that.
1400   if test -f "$cache_file"; then
1401     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1402 echo "$as_me: loading cache $cache_file" >&6;}
1403     case $cache_file in
1404       [\\/]* | ?:[\\/]* ) . $cache_file;;
1405       *)                      . ./$cache_file;;
1406     esac
1407   fi
1408 else
1409   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1410 echo "$as_me: creating cache $cache_file" >&6;}
1411   >$cache_file
1412 fi
1413
1414 # Check that the precious variables saved in the cache have kept the same
1415 # value.
1416 ac_cache_corrupted=false
1417 for ac_var in `(set) 2>&1 |
1418                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1419   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1420   eval ac_new_set=\$ac_env_${ac_var}_set
1421   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1422   eval ac_new_val="\$ac_env_${ac_var}_value"
1423   case $ac_old_set,$ac_new_set in
1424     set,)
1425       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1427       ac_cache_corrupted=: ;;
1428     ,set)
1429       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1430 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1431       ac_cache_corrupted=: ;;
1432     ,);;
1433     *)
1434       if test "x$ac_old_val" != "x$ac_new_val"; then
1435         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1438 echo "$as_me:   former value:  $ac_old_val" >&2;}
1439         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1440 echo "$as_me:   current value: $ac_new_val" >&2;}
1441         ac_cache_corrupted=:
1442       fi;;
1443   esac
1444   # Pass precious variables to config.status.
1445   if test "$ac_new_set" = set; then
1446     case $ac_new_val in
1447     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1448       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1449     *) ac_arg=$ac_var=$ac_new_val ;;
1450     esac
1451     case " $ac_configure_args " in
1452       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1453       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454     esac
1455   fi
1456 done
1457 if $ac_cache_corrupted; then
1458   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462    { (exit 1); exit 1; }; }
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497 ac_aux_dir=
1498 for ac_dir in admin $srcdir/admin; do
1499   if test -f $ac_dir/install-sh; then
1500     ac_aux_dir=$ac_dir
1501     ac_install_sh="$ac_aux_dir/install-sh -c"
1502     break
1503   elif test -f $ac_dir/install.sh; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/install.sh -c"
1506     break
1507   elif test -f $ac_dir/shtool; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/shtool install -c"
1510     break
1511   fi
1512 done
1513 if test -z "$ac_aux_dir"; then
1514   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1515 echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1516    { (exit 1); exit 1; }; }
1517 fi
1518 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1519 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1520 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1521
1522
1523 ###############################
1524 # Package info
1525 ORTE_MAJOR_VERSION=0
1526 ORTE_MINOR_VERSION=3
1527 ORTE_MICRO_VERSION=0
1528 ORTE_INTERFACE_AGE=0
1529 ORTE_BINARY_AGE=0
1530 ORTE_VERSION=$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_MICRO_VERSION
1531
1532
1533
1534
1535
1536
1537 #Libtool versioning
1538 ORTE_MICRO_VERSION_NUM=`echo $ORTE_MICRO_VERSION | sed 's/[a-zA-Z]//g'`
1539 LT_RELEASE=$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION
1540 LT_CURRENT=`expr $ORTE_MICRO_VERSION_NUM - $ORTE_INTERFACE_AGE`
1541 LT_REVISION=$ORTE_INTERFACE_AGE
1542 LT_AGE=`expr $ORTE_BINARY_AGE - $ORTE_INTERFACE_AGE`
1543
1544
1545
1546
1547 VERSION=$ORTE_VERSION
1548 PACKAGE=orte
1549
1550 echo
1551 echo "ORTE version $PACKAGE_VERSION"
1552 echo "Configuring..."
1553 echo
1554
1555 #Check for CPU / vendor / OS
1556 # Make sure we can run config.sub.
1557 $ac_config_sub sun4 >/dev/null 2>&1 ||
1558   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1559 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1560    { (exit 1); exit 1; }; }
1561
1562 echo "$as_me:$LINENO: checking build system type" >&5
1563 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1564 if test "${ac_cv_build+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   ac_cv_build_alias=$build_alias
1568 test -z "$ac_cv_build_alias" &&
1569   ac_cv_build_alias=`$ac_config_guess`
1570 test -z "$ac_cv_build_alias" &&
1571   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1572 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1573    { (exit 1); exit 1; }; }
1574 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1575   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1577    { (exit 1); exit 1; }; }
1578
1579 fi
1580 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1581 echo "${ECHO_T}$ac_cv_build" >&6
1582 build=$ac_cv_build
1583 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588 echo "$as_me:$LINENO: checking host system type" >&5
1589 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1590 if test "${ac_cv_host+set}" = set; then
1591   echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593   ac_cv_host_alias=$host_alias
1594 test -z "$ac_cv_host_alias" &&
1595   ac_cv_host_alias=$ac_cv_build_alias
1596 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1597   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 fi
1602 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1603 echo "${ECHO_T}$ac_cv_host" >&6
1604 host=$ac_cv_host
1605 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610 echo "$as_me:$LINENO: checking target system type" >&5
1611 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1612 if test "${ac_cv_target+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   ac_cv_target_alias=$target_alias
1616 test "x$ac_cv_target_alias" = "x" &&
1617   ac_cv_target_alias=$ac_cv_host_alias
1618 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1625 echo "${ECHO_T}$ac_cv_target" >&6
1626 target=$ac_cv_target
1627 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 # The aliases save the names the user supplied, while $host etc.
1633 # will get canonicalized.
1634 test -n "$target_alias" &&
1635   test "$program_prefix$program_suffix$program_transform_name" = \
1636     NONENONEs,x,x, &&
1637   program_prefix=${target_alias}-
1638           ac_config_headers="$ac_config_headers orte/include/orte/orte_config.h"
1639
1640 am__api_version="1.8"
1641 # Find a good install program.  We prefer a C program (faster),
1642 # so one script is as good as another.  But avoid the broken or
1643 # incompatible versions:
1644 # SysV /etc/install, /usr/sbin/install
1645 # SunOS /usr/etc/install
1646 # IRIX /sbin/install
1647 # AIX /bin/install
1648 # AmigaOS /C/install, which installs bootblocks on floppy discs
1649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1652 # OS/2's system install, which has a completely different semantic
1653 # ./install, which can be erroneously created by make from ./install.sh.
1654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656 if test -z "$INSTALL"; then
1657 if test "${ac_cv_path_install+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   # Account for people who put trailing slashes in PATH elements.
1666 case $as_dir/ in
1667   ./ | .// | /cC/* | \
1668   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1669   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1670   /usr/ucb/* ) ;;
1671   *)
1672     # OSF1 and SCO ODT 3.0 have their own names for install.
1673     # Don't use installbsd from OSF since it installs stuff as root
1674     # by default.
1675     for ac_prog in ginstall scoinst install; do
1676       for ac_exec_ext in '' $ac_executable_extensions; do
1677         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678           if test $ac_prog = install &&
1679             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680             # AIX install.  It has an incompatible calling convention.
1681             :
1682           elif test $ac_prog = install &&
1683             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684             # program-specific install script used by HP pwplus--don't use.
1685             :
1686           else
1687             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688             break 3
1689           fi
1690         fi
1691       done
1692     done
1693     ;;
1694 esac
1695 done
1696
1697
1698 fi
1699   if test "${ac_cv_path_install+set}" = set; then
1700     INSTALL=$ac_cv_path_install
1701   else
1702     # As a last resort, use the slow shell script.  We don't cache a
1703     # path for INSTALL within a source directory, because that will
1704     # break other packages using the cache if that directory is
1705     # removed, or if the path is relative.
1706     INSTALL=$ac_install_sh
1707   fi
1708 fi
1709 echo "$as_me:$LINENO: result: $INSTALL" >&5
1710 echo "${ECHO_T}$INSTALL" >&6
1711
1712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1713 # It thinks the first close brace ends the variable substitution.
1714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715
1716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1717
1718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1719
1720 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1721 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1722 # Just in case
1723 sleep 1
1724 echo timestamp > conftest.file
1725 # Do `set' in a subshell so we don't clobber the current shell's
1726 # arguments.  Must try -L first in case configure is actually a
1727 # symlink; some systems play weird games with the mod time of symlinks
1728 # (eg FreeBSD returns the mod time of the symlink's containing
1729 # directory).
1730 if (
1731    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1732    if test "$*" = "X"; then
1733       # -L didn't work.
1734       set X `ls -t $srcdir/configure conftest.file`
1735    fi
1736    rm -f conftest.file
1737    if test "$*" != "X $srcdir/configure conftest.file" \
1738       && test "$*" != "X conftest.file $srcdir/configure"; then
1739
1740       # If neither matched, then we have a broken ls.  This can happen
1741       # if, for instance, CONFIG_SHELL is bash and it inherits a
1742       # broken ls alias from the environment.  This has actually
1743       # happened.  Such a system could not be considered "sane".
1744       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1745 alias in your environment" >&5
1746 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1747 alias in your environment" >&2;}
1748    { (exit 1); exit 1; }; }
1749    fi
1750
1751    test "$2" = conftest.file
1752    )
1753 then
1754    # Ok.
1755    :
1756 else
1757    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1758 Check your system clock" >&5
1759 echo "$as_me: error: newly created file is older than distributed files!
1760 Check your system clock" >&2;}
1761    { (exit 1); exit 1; }; }
1762 fi
1763 echo "$as_me:$LINENO: result: yes" >&5
1764 echo "${ECHO_T}yes" >&6
1765 test "$program_prefix" != NONE &&
1766   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1767 # Use a double $ so make ignores it.
1768 test "$program_suffix" != NONE &&
1769   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1770 # Double any \ or $.  echo might interpret backslashes.
1771 # By default was `s,x,x', remove it if useless.
1772 cat <<\_ACEOF >conftest.sed
1773 s/[\\$]/&&/g;s/;s,x,x,$//
1774 _ACEOF
1775 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1776 rm conftest.sed
1777
1778 # expand $ac_aux_dir to an absolute path
1779 am_aux_dir=`cd $ac_aux_dir && pwd`
1780
1781 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1782 # Use eval to expand $SHELL
1783 if eval "$MISSING --run true"; then
1784   am_missing_run="$MISSING --run "
1785 else
1786   am_missing_run=
1787   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1788 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1789 fi
1790
1791 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1792   # Keeping the `.' argument allows $(mkdir_p) to be used without
1793   # argument.  Indeed, we sometimes output rules like
1794   #   $(mkdir_p) $(somedir)
1795   # where $(somedir) is conditionally defined.
1796   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1797   # expensive solution, as it forces Make to start a sub-shell.)
1798   mkdir_p='mkdir -p -- .'
1799 else
1800   # On NextStep and OpenStep, the `mkdir' command does not
1801   # recognize any option.  It will interpret all options as
1802   # directories to create, and then abort because `.' already
1803   # exists.
1804   for d in ./-p ./--version;
1805   do
1806     test -d $d && rmdir $d
1807   done
1808   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1809   if test -f "$ac_aux_dir/mkinstalldirs"; then
1810     mkdir_p='$(mkinstalldirs)'
1811   else
1812     mkdir_p='$(install_sh) -d'
1813   fi
1814 fi
1815
1816 for ac_prog in gawk mawk nawk awk
1817 do
1818   # Extract the first word of "$ac_prog", so it can be a program name with args.
1819 set dummy $ac_prog; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_AWK+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   if test -n "$AWK"; then
1826   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     ac_cv_prog_AWK="$ac_prog"
1836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837     break 2
1838   fi
1839 done
1840 done
1841
1842 fi
1843 fi
1844 AWK=$ac_cv_prog_AWK
1845 if test -n "$AWK"; then
1846   echo "$as_me:$LINENO: result: $AWK" >&5
1847 echo "${ECHO_T}$AWK" >&6
1848 else
1849   echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1851 fi
1852
1853   test -n "$AWK" && break
1854 done
1855
1856 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1857 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1858 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1859 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   cat >conftest.make <<\_ACEOF
1863 all:
1864         @echo 'ac_maketemp="$(MAKE)"'
1865 _ACEOF
1866 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1867 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1868 if test -n "$ac_maketemp"; then
1869   eval ac_cv_prog_make_${ac_make}_set=yes
1870 else
1871   eval ac_cv_prog_make_${ac_make}_set=no
1872 fi
1873 rm -f conftest.make
1874 fi
1875 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1876   echo "$as_me:$LINENO: result: yes" >&5
1877 echo "${ECHO_T}yes" >&6
1878   SET_MAKE=
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882   SET_MAKE="MAKE=${MAKE-make}"
1883 fi
1884
1885 rm -rf .tst 2>/dev/null
1886 mkdir .tst 2>/dev/null
1887 if test -d .tst; then
1888   am__leading_dot=.
1889 else
1890   am__leading_dot=_
1891 fi
1892 rmdir .tst 2>/dev/null
1893
1894 # test to see if srcdir already configured
1895 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1896    test -f $srcdir/config.status; then
1897   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1898 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902 # test whether we have cygpath
1903 if test -z "$CYGPATH_W"; then
1904   if (cygpath --version) >/dev/null 2>/dev/null; then
1905     CYGPATH_W='cygpath -w'
1906   else
1907     CYGPATH_W=echo
1908   fi
1909 fi
1910
1911
1912 # Define the identity of the package.
1913  PACKAGE=$PACKAGE
1914  VERSION=$VERSION
1915
1916
1917 # Some tools Automake needs.
1918
1919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1920
1921
1922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1923
1924
1925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1926
1927
1928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1929
1930
1931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1932
1933
1934 AMTAR=${AMTAR-"${am_missing_run}tar"}
1935
1936 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1937
1938 # Installed binaries are usually stripped using `strip' when the user
1939 # run `make install-strip'.  However `strip' might not be the right
1940 # tool to use in cross-compilation environments, therefore Automake
1941 # will honor the `STRIP' environment variable to overrule this program.
1942 if test "$cross_compiling" != no; then
1943   if test -n "$ac_tool_prefix"; then
1944   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}strip; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_STRIP+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$STRIP"; then
1952   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 STRIP=$ac_cv_prog_STRIP
1971 if test -n "$STRIP"; then
1972   echo "$as_me:$LINENO: result: $STRIP" >&5
1973 echo "${ECHO_T}$STRIP" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979 fi
1980 if test -z "$ac_cv_prog_STRIP"; then
1981   ac_ct_STRIP=$STRIP
1982   # Extract the first word of "strip", so it can be a program name with args.
1983 set dummy strip; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$ac_ct_STRIP"; then
1990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_ac_ct_STRIP="strip"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007 fi
2008 fi
2009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2010 if test -n "$ac_ct_STRIP"; then
2011   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2012 echo "${ECHO_T}$ac_ct_STRIP" >&6
2013 else
2014   echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018   STRIP=$ac_ct_STRIP
2019 else
2020   STRIP="$ac_cv_prog_STRIP"
2021 fi
2022
2023 fi
2024 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2025
2026 # We need awk for the "check" target.  The system "awk" is bad on
2027 # some platforms.
2028
2029
2030
2031
2032
2033 # Activate maintainer mode
2034 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2035 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2036     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2037 if test "${enable_maintainer_mode+set}" = set; then
2038   enableval="$enable_maintainer_mode"
2039   USE_MAINTAINER_MODE=$enableval
2040 else
2041   USE_MAINTAINER_MODE=no
2042 fi;
2043   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2044 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2045
2046
2047 if test $USE_MAINTAINER_MODE = yes; then
2048   MAINTAINER_MODE_TRUE=
2049   MAINTAINER_MODE_FALSE='#'
2050 else
2051   MAINTAINER_MODE_TRUE='#'
2052   MAINTAINER_MODE_FALSE=
2053 fi
2054
2055   MAINT=$MAINTAINER_MODE_TRUE
2056
2057
2058
2059
2060
2061
2062
2063 # Check whether --with-linux or --without-linux was given.
2064 if test "${with_linux+set}" = set; then
2065   withval="$with_linux"
2066   LINUX_DIR="${withval}"
2067 else
2068   LINUX_DIR=default
2069 fi;
2070
2071
2072
2073
2074
2075         echo "$as_me:$LINENO: checking Linux version" >&5
2076 echo $ECHO_N "checking Linux version... $ECHO_C" >&6
2077
2078         if test "${LINUX_DIR}" != "default" ; then
2079
2080           if [ ! -f "${LINUX_DIR}/.config" ];then
2081             { { echo "$as_me:$LINENO: error:
2082             The kernel source tree at ${LINUX_DIR} is not configured.
2083             Fix before continuing." >&5
2084 echo "$as_me: error:
2085             The kernel source tree at ${LINUX_DIR} is not configured.
2086             Fix before continuing." >&2;}
2087    { (exit 1); exit 1; }; }
2088           fi
2089
2090           if [ ! -f "${LINUX_DIR}/include/linux/version.h" ];then
2091             { { echo "$as_me:$LINENO: error: The header file include/linux/version.h does not exist.
2092             For 2.6 kernels, it can be generated by running 'make prepare' in
2093             the kernel source directory." >&5
2094 echo "$as_me: error: The header file include/linux/version.h does not exist.
2095             For 2.6 kernels, it can be generated by running 'make prepare' in
2096             the kernel source directory." >&2;}
2097    { (exit 1); exit 1; }; }
2098           fi
2099
2100           LINUX_VERSION=$(grep UTS_RELEASE ${LINUX_DIR}/include/linux/version.h | \
2101             sed 's/[^"]*"\(.*\)\{1\}"/\1/')
2102
2103           echo "$as_me:$LINENO: result: $LINUX_VERSION" >&5
2104 echo "${ECHO_T}$LINUX_VERSION" >&6
2105
2106           LINUX_VERSION_MAJOR=$(echo ${LINUX_VERSION} | cut -d. -f1)
2107           LINUX_VERSION_MINOR=$(echo ${LINUX_VERSION} | cut -d. -f2)
2108
2109           case $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR in
2110             2.6)
2111
2112         echo "$as_me:$LINENO: checking for Linux CFLAGS" >&5
2113 echo $ECHO_N "checking for Linux CFLAGS... $ECHO_C" >&6
2114
2115         tmpdir="`pwd`/tmp-noicrwa"
2116
2117         rm -rf ${tmpdir}
2118         mkdir ${tmpdir}
2119
2120         cat >${tmpdir}/Makefile <<EOF
2121 obj-m += fake.o
2122
2123 \$(obj)/fake.c: flags
2124         touch \$(obj)/fake.c
2125
2126 .PHONY: flags
2127 flags:
2128         echo LINUX_ARCH=\"\$(ARCH)\" >>\$(obj)/flags
2129         echo LINUX_AFLAGS=\"\$(AFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags
2130         echo LINUX_LDFLAGS=\"\" >>\$(obj)/flags
2131         echo LINUX_ARFLAGS=\"\$(ARFLAGS)\" >>\$(obj)/flags
2132         echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>\$(obj)/flags
2133         echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>\$(obj)/flags
2134         echo LINUX_CFLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags
2135         echo LINUX_CC=\"\$(CC)\" >>\$(obj)/flags
2136         echo LINUX_LD=\"\$(LD) \$(LDFLAGS)\" >>\$(obj)/flags
2137         echo LINUX_AS=\"\$(AS)\" >>\$(obj)/flags
2138 EOF
2139
2140         echo ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR} MODVERDIR=${tmpdir} modules >&5 2>&5
2141         ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR} MODVERDIR=${tmpdir} modules >&5 2>&5
2142         . ${tmpdir}/flags
2143         rm -rf ${tmpdir}
2144
2145         LINUX_MODULE_EXT=".ko"
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159         echo "$as_me:$LINENO: result: ok" >&5
2160 echo "${ECHO_T}ok" >&6
2161
2162                 ;;
2163             2.[01234])
2164
2165         echo "$as_me:$LINENO: checking for Linux CFLAGS" >&5
2166 echo $ECHO_N "checking for Linux CFLAGS... $ECHO_C" >&6
2167
2168         if [ ! -f "${LINUX_DIR}/.hdepend" ];then
2169                 { { echo "$as_me:$LINENO: error:
2170 You need to run 'make dep' on the kernel source before continuing." >&5
2171 echo "$as_me: error:
2172 You need to run 'make dep' on the kernel source before continuing." >&2;}
2173    { (exit 1); exit 1; }; }
2174         fi
2175
2176         tmpdir="`pwd`/tmp-noicrwa"
2177
2178         rm -rf ${tmpdir}
2179         mkdir ${tmpdir}
2180
2181         cat >${tmpdir}/Makefile <<EOF
2182
2183 .PHONY: modules
2184 modules:
2185         echo LINUX_ARCH=\"\$(ARCH)\" >>flags
2186         echo LINUX_AFLAGS=\"\$(AFLAGS)\" | sed 's_Iinclude_I\"\$(LINUXDIR)/include\"_g'>>flags
2187         echo LINUX_LDFLAGS=\"\" >>flags
2188         echo LINUX_ARFLAGS=\"\$(ARFLAGS)\" >>flags
2189         echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>flags
2190         echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>flags
2191         echo LINUX_CFLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I\"\$(LINUXDIR)/include\"_g'>>flags
2192         echo LINUX_CC=\"\$(CC)\" >>flags
2193         echo LINUX_LD=\"\$(LD) \$(LDFLAGS)\" >>flags
2194         echo LINUX_AS=\"\$(AS)\" >>flags
2195 EOF
2196
2197         echo ${MAKE-make} -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules >&5 2>&5
2198         ${MAKE-make} -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules >&5 2>&5
2199         . ${tmpdir}/flags
2200         rm -rf ${tmpdir}
2201
2202         LINUX_MODULE_EXT=".o"
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216         echo "$as_me:$LINENO: result: ok" >&5
2217 echo "${ECHO_T}ok" >&6
2218
2219                 ;;
2220             *)
2221                 { { echo "$as_me:$LINENO: error: Unknown Linux major.minor $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR" >&5
2222 echo "$as_me: error: Unknown Linux major.minor $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR" >&2;}
2223    { (exit 1); exit 1; }; }
2224                 ;;
2225           esac
2226
2227           CONFIG_ORTE_KERNEL=yes
2228
2229 cat >>confdefs.h <<\_ACEOF
2230 #define CONFIG_ORTE_KERNEL 1
2231 _ACEOF
2232
2233
2234         else
2235           echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2237
2238           CONFIG_ORTE_KERNEL=no
2239
2240         fi
2241
2242
2243
2244
2245 if test ${CONFIG_ORTE_KERNEL} == "yes"; then
2246   CONFIG_ORTE_KERNEL_TRUE=
2247   CONFIG_ORTE_KERNEL_FALSE='#'
2248 else
2249   CONFIG_ORTE_KERNEL_TRUE='#'
2250   CONFIG_ORTE_KERNEL_FALSE=
2251 fi
2252
2253
2254
2255
2256
2257 # Check whether --with-rtai or --without-rtai was given.
2258 if test "${with_rtai+set}" = set; then
2259   withval="$with_rtai"
2260   RTAI_DIR="${withval}"
2261 else
2262   RTAI_DIR=/usr/src/rtai
2263 fi;
2264
2265
2266 # Check whether --with-rtnet or --without-rtnet was given.
2267 if test "${with_rtnet+set}" = set; then
2268   withval="$with_rtnet"
2269   RTNET_DIR="${withval}"
2270 else
2271   RTNET_DIR=/usr/src/rtnet
2272 fi;
2273
2274
2275
2276         echo "$as_me:$LINENO: checking Linux config option CONFIG_RTHAL" >&5
2277 echo $ECHO_N "checking Linux config option CONFIG_RTHAL... $ECHO_C" >&6
2278
2279         if grep '^CONFIG_RTHAL=y$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2280                 result=yes
2281                 CONFIG_RTHAL=yes
2282         else if grep '^CONFIG_RTHAL=m$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2283                 result=module
2284                 CONFIG_RTHAL=module
2285         else
2286                 result=no
2287                 CONFIG_RTHAL=no
2288         fi
2289         fi
2290
2291         echo "$as_me:$LINENO: result: $result" >&5
2292 echo "${ECHO_T}$result" >&6
2293
2294
2295
2296
2297 if test "${CONFIG_RTHAL}" = yes -o "${CONFIG_RTHAL}" = module; then
2298   CONFIG_RTHAL_TRUE=
2299   CONFIG_RTHAL_FALSE='#'
2300 else
2301   CONFIG_RTHAL_TRUE='#'
2302   CONFIG_RTHAL_FALSE=
2303 fi
2304
2305
2306
2307
2308         echo "$as_me:$LINENO: checking Linux config option CONFIG_ADEOS" >&5
2309 echo $ECHO_N "checking Linux config option CONFIG_ADEOS... $ECHO_C" >&6
2310
2311         if grep '^CONFIG_ADEOS=y$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2312                 result=yes
2313                 CONFIG_ADEOS=yes
2314         else if grep '^CONFIG_ADEOS=m$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2315                 result=module
2316                 CONFIG_ADEOS=module
2317         else
2318                 result=no
2319                 CONFIG_ADEOS=no
2320         fi
2321         fi
2322
2323         echo "$as_me:$LINENO: result: $result" >&5
2324 echo "${ECHO_T}$result" >&6
2325
2326
2327
2328
2329 if test "${CONFIG_ADEOS}" = yes -o "${CONFIG_ADEOS}" = module; then
2330   CONFIG_ADEOS_TRUE=
2331   CONFIG_ADEOS_FALSE='#'
2332 else
2333   CONFIG_ADEOS_TRUE='#'
2334   CONFIG_ADEOS_FALSE=
2335 fi
2336
2337
2338
2339         if test "${CONFIG_RTHAL}" != "no" -o "${CONFIG_ADEOS}" != "no"; then
2340                 echo "$as_me:$LINENO: checking RTAI directory ${RTAI_DIR}" >&5
2341 echo $ECHO_N "checking RTAI directory ${RTAI_DIR}... $ECHO_C" >&6
2342                 if [ -d ${RTAI_DIR}/include ] ; then
2343                         RTAI_CFLAGS="-I${RTAI_DIR}/include"
2344                 else
2345                         if  -d ${RTAI_DIR}/rtai-core/include  ; then
2346                                 RTAI_CFLAGS="-I${RTAI_DIR}/rtai-core/include"
2347                         else
2348                                 { { echo "$as_me:$LINENO: error: incorrect RTAI directory?" >&5
2349 echo "$as_me: error: incorrect RTAI directory?" >&2;}
2350    { (exit 1); exit 1; }; }
2351                         fi
2352                 fi
2353                 echo "$as_me:$LINENO: result: found" >&5
2354 echo "${ECHO_T}found" >&6
2355                 echo "$as_me:$LINENO: checking RTnet directory ${RTNET_DIR}" >&5
2356 echo $ECHO_N "checking RTnet directory ${RTNET_DIR}... $ECHO_C" >&6
2357                 if [ -d ${RTNET_DIR}/include ] ; then
2358                         RTAI_CFLAGS="${RTAI_CFLAGS} -I${RTNET_DIR}/include"
2359                 else
2360                         { { echo "$as_me:$LINENO: error: incorrect RTnet directory?" >&5
2361 echo "$as_me: error: incorrect RTnet directory?" >&2;}
2362    { (exit 1); exit 1; }; }
2363                 fi
2364                 echo "$as_me:$LINENO: result: found" >&5
2365 echo "${ECHO_T}found" >&6
2366                 USE_RTAI=yes
2367                 RT_GCCLIB_DIR=`gcc -print-search-dirs | sed -n -e 's/^install: \(.*\)$/\1/p'`
2368                 RTAI_CFLAGS="${RTAI_CFLAGS} -idirafter ${RT_GCCLIB_DIR}/include -nostdinc"
2369
2370 cat >>confdefs.h <<\_ACEOF
2371 #define CONFIG_ORTE_RTAI 1
2372 _ACEOF
2373
2374         else
2375                 USE_RTAI=no
2376         fi
2377
2378
2379
2380
2381
2382 # Check whether --with-rtlinux or --without-rtlinux was given.
2383 if test "${with_rtlinux+set}" = set; then
2384   withval="$with_rtlinux"
2385   RTLINUX_DIR="${withval}"
2386 else
2387   RTLINUX_DIR=/usr/src/rtlinux
2388 fi;
2389
2390
2391 # Check whether --with-rtlinuxwip or --without-rtlinuxwip was given.
2392 if test "${with_rtlinuxwip+set}" = set; then
2393   withval="$with_rtlinuxwip"
2394   RTLINUXWIP_DIR="${withval}"
2395 else
2396   RTLINUXWIP_DIR="${RTLINUX_DIR}"
2397 fi;
2398
2399
2400 # Check whether --with-rtlinuxonetd or --without-rtlinuxonetd was given.
2401 if test "${with_rtlinuxonetd+set}" = set; then
2402   withval="$with_rtlinuxonetd"
2403   RTLINUXONETD_DIR="${withval}"
2404 else
2405   RTLINUXONETD_DIR="${RTLINUX_DIR}"
2406 fi;
2407
2408
2409
2410         echo "$as_me:$LINENO: checking Linux config option CONFIG_RTLINUX" >&5
2411 echo $ECHO_N "checking Linux config option CONFIG_RTLINUX... $ECHO_C" >&6
2412
2413         if grep '^CONFIG_RTLINUX=y$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2414                 result=yes
2415                 CONFIG_RTLINUX=yes
2416         else if grep '^CONFIG_RTLINUX=m$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2417                 result=module
2418                 CONFIG_RTLINUX=module
2419         else
2420                 result=no
2421                 CONFIG_RTLINUX=no
2422         fi
2423         fi
2424
2425         echo "$as_me:$LINENO: result: $result" >&5
2426 echo "${ECHO_T}$result" >&6
2427
2428
2429
2430
2431 if test "${CONFIG_RTLINUX}" = yes -o "${CONFIG_RTLINUX}" = module; then
2432   CONFIG_RTLINUX_TRUE=
2433   CONFIG_RTLINUX_FALSE='#'
2434 else
2435   CONFIG_RTLINUX_TRUE='#'
2436   CONFIG_RTLINUX_FALSE=
2437 fi
2438
2439
2440
2441         if test "${CONFIG_RTLINUX}" != "no" ; then
2442                 echo "$as_me:$LINENO: checking RTLinux directory ${RTLINUX_DIR} for rtl.mk" >&5
2443 echo $ECHO_N "checking RTLinux directory ${RTLINUX_DIR} for rtl.mk... $ECHO_C" >&6
2444                 if [ -d ${RTLINUX_DIR}/include ] ; then
2445                         RTLINUX_CFLAGS=`sed -n -e 's/^CFLAGS *=\(.*\)$/\1/p' ${RTLINUX_DIR}/rtl.mk`
2446                         RTLINUX_CC=`sed -n -e 's/^CC *=\(.*\)$/\1/p' ${RTLINUX_DIR}/rtl.mk`
2447                 else
2448                         { { echo "$as_me:$LINENO: error: incorrect RTLinux directory?" >&5
2449 echo "$as_me: error: incorrect RTLinux directory?" >&2;}
2450    { (exit 1); exit 1; }; }
2451                 fi
2452                 echo "$as_me:$LINENO: result: found" >&5
2453 echo "${ECHO_T}found" >&6
2454
2455 cat >>confdefs.h <<\_ACEOF
2456 #define CONFIG_ORTE_RTL 1
2457 _ACEOF
2458
2459
2460                 echo "$as_me:$LINENO: checking RTLinux for a UDP stack" >&5
2461 echo $ECHO_N "checking RTLinux for a UDP stack... $ECHO_C" >&6
2462                 RTL_STACK="no"
2463
2464                 if [ -e "${RTLINUXWIP_DIR}/include/udp.h" -a \
2465                       -e "${RTLINUXWIP_DIR}/include/nic.h" -a \
2466                       -e "${RTLINUXWIP_DIR}/include/ip.h" -a \
2467                       -e "${RTLINUXWIP_DIR}/include/ethernet.h" -a \
2468                       -e "${RTLINUXWIP_DIR}/include/nictab.h" ] ; then
2469                         echo "$as_me:$LINENO: result: found wIP" >&5
2470 echo "${ECHO_T}found wIP" >&6
2471
2472 cat >>confdefs.h <<\_ACEOF
2473 #define CONFIG_ORTE_RTL_WIP 1
2474 _ACEOF
2475
2476                         RTL_STACK="yes"
2477                 fi
2478
2479                 if [ -e "${RTLINUXONETD_DIR}/onetd.h" ] ; then
2480                         echo "$as_me:$LINENO: result: found onetd" >&5
2481 echo "${ECHO_T}found onetd" >&6
2482
2483 cat >>confdefs.h <<\_ACEOF
2484 #define CONFIG_ORTE_RTL_ONETD 1
2485 _ACEOF
2486
2487                         RTL_STACK="yes"
2488                 fi
2489
2490                 if test "${RTL_STACK}" == "no" ; then
2491                         { { echo "$as_me:$LINENO: error: incorrect a RTLinux UDP directory." >&5
2492 echo "$as_me: error: incorrect a RTLinux UDP directory." >&2;}
2493    { (exit 1); exit 1; }; }
2494                 fi
2495
2496                 RT_GCCLIB_DIR=`${RTLINUX_CC} -print-search-dirs | sed -n -e 's/^install: \(.*\)$/\1/p'`
2497                 RTLINUX_CFLAGS="${RTLINUX_CFLAGS} -I${RTLINUXWIP_DIR}/include -I${RTLINUXONETD_DIR} -idirafter ${RT_GCCLIB_DIR}/include -nostdinc"
2498                 USE_RTLINUX=yes
2499         else
2500                 USE_RTLINUX=no
2501         fi
2502
2503
2504
2505         if test ${USE_RTAI} == "yes" -o ${USE_RTLINUX} == "yes" ; then
2506
2507 cat >>confdefs.h <<\_ACEOF
2508 #define CONFIG_ORTE_RT 1
2509 _ACEOF
2510
2511                 CONFIG_ORTE_RT="yes"
2512         fi
2513
2514
2515
2516 if test ${USE_RTAI} == "yes"; then
2517   USE_RTAI_TRUE=
2518   USE_RTAI_FALSE='#'
2519 else
2520   USE_RTAI_TRUE='#'
2521   USE_RTAI_FALSE=
2522 fi
2523
2524
2525
2526 if test ${USE_RTLINUX} == "yes"; then
2527   USE_RTLINUX_TRUE=
2528   USE_RTLINUX_FALSE='#'
2529 else
2530   USE_RTLINUX_TRUE='#'
2531   USE_RTLINUX_FALSE=
2532 fi
2533
2534
2535
2536 if test ${USE_RTAI} == "yes" -o ${USE_RTLINUX} == "yes"; then
2537   CONFIG_ORTE_RT_TRUE=
2538   CONFIG_ORTE_RT_FALSE='#'
2539 else
2540   CONFIG_ORTE_RT_TRUE='#'
2541   CONFIG_ORTE_RT_FALSE=
2542 fi
2543
2544
2545
2546
2547 ###############################
2548 # target
2549 WIN='no'
2550 MINGW='no'
2551 CYGWIN='no'
2552 UNIX='no'
2553 case "$target" in
2554   *-cygwin*)
2555     CFLAGS="$CFLAGS"
2556     WIN='yes'
2557     CYGWIN='yes'
2558
2559 cat >>confdefs.h <<\_ACEOF
2560 #define CONFIG_ORTE_WIN 1
2561 _ACEOF
2562
2563
2564 cat >>confdefs.h <<\_ACEOF
2565 #define CONFIG_ORTE_CYGWIN 1
2566 _ACEOF
2567
2568     ;;
2569   *-mingw*)
2570     CFLAGS="$CFLAGS"
2571     WIN='yes'
2572     MINGW='yes'
2573
2574 cat >>confdefs.h <<\_ACEOF
2575 #define CONFIG_ORTE_WIN 1
2576 _ACEOF
2577
2578
2579 cat >>confdefs.h <<\_ACEOF
2580 #define CONFIG_ORTE_MINGW 1
2581 _ACEOF
2582
2583
2584 cat >>confdefs.h <<\_ACEOF
2585 #define HAVE_GETPOT_LONG_ORTE 1
2586 _ACEOF
2587
2588     ;;
2589   *)
2590     # Assume a Unix.
2591     if test -z ${CONFIG_ORTE_RT} -a ${CONFIG_ORTE_KERNEL} ; then
2592       UNIX='yes'
2593
2594 cat >>confdefs.h <<\_ACEOF
2595 #define CONFIG_ORTE_UNIX 1
2596 _ACEOF
2597
2598     fi
2599     ;;
2600 esac
2601
2602
2603 if test x$WIN = xyes; then
2604   CONFIG_ORTE_WIN_TRUE=
2605   CONFIG_ORTE_WIN_FALSE='#'
2606 else
2607   CONFIG_ORTE_WIN_TRUE='#'
2608   CONFIG_ORTE_WIN_FALSE=
2609 fi
2610
2611
2612
2613 if test x$CIGWIN = xyes; then
2614   CONFIG_ORTE_CYGWIN_TRUE=
2615   CONFIG_ORTE_CYGWIN_FALSE='#'
2616 else
2617   CONFIG_ORTE_CYGWIN_TRUE='#'
2618   CONFIG_ORTE_CYGWIN_FALSE=
2619 fi
2620
2621
2622
2623 if test x$MINGW = xyes; then
2624   CONFIG_ORTE_MINGW_TRUE=
2625   CONFIG_ORTE_MINGW_FALSE='#'
2626 else
2627   CONFIG_ORTE_MINGW_TRUE='#'
2628   CONFIG_ORTE_MINGW_FALSE=
2629 fi
2630
2631
2632
2633 if test x$UNIX = xyes; then
2634   CONFIG_ORTE_UNIX_TRUE=
2635   CONFIG_ORTE_UNIX_FALSE='#'
2636 else
2637   CONFIG_ORTE_UNIX_TRUE='#'
2638   CONFIG_ORTE_UNIX_FALSE=
2639 fi
2640
2641
2642 ###############################
2643 # modules
2644 moduledir="\$(libdir)/modules/\$(LINUX_KERNELRELEASE)/orte"
2645 modulePROGRAMS_INSTALL="\$(top_builddir)/modtool --install"
2646 modulePROGRAMS_UNINSTALL="\$(top_builddir)/modtool --uninstall"
2647
2648
2649
2650 ###############################
2651 # CFLAGS
2652 CFLAGS="$CFLAGS -Wall"
2653 if test ${USE_RTLINUX} == 'yes' ; then
2654   CFLAGS="$CFLAGS $RTLINUX_CFLAGS"
2655   CC="$RTLINUX_CC"
2656 else
2657   if test ${USE_RTAI} == 'yes' ; then
2658     CFLAGS="$CFLAGS $RTAI_CFLAGS $LINUX_CFLAGS"
2659   else
2660     if test -n ${CONFIG_ORTE_KERNEL} ; then
2661       CFLAGS="$CFLAGS $LINUX_CFLAGS"
2662     fi
2663   fi
2664 fi
2665
2666 ###############################
2667 # Checks for programs.
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 if test -n "$ac_tool_prefix"; then
2674   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CC+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CC"; then
2682   ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702   echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6
2704 else
2705   echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709 fi
2710 if test -z "$ac_cv_prog_CC"; then
2711   ac_ct_CC=$CC
2712   # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc; ac_word=$2
2714 echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   if test -n "$ac_ct_CC"; then
2720   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727   for ac_exec_ext in '' $ac_executable_extensions; do
2728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_ac_ct_CC="gcc"
2730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735
2736 fi
2737 fi
2738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739 if test -n "$ac_ct_CC"; then
2740   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741 echo "${ECHO_T}$ac_ct_CC" >&6
2742 else
2743   echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747   CC=$ac_ct_CC
2748 else
2749   CC="$ac_cv_prog_CC"
2750 fi
2751
2752 if test -z "$CC"; then
2753   if test -n "$ac_tool_prefix"; then
2754   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}cc; ac_word=$2
2756 echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   if test -n "$CC"; then
2762   ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769   for ac_exec_ext in '' $ac_executable_extensions; do
2770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771     ac_cv_prog_CC="${ac_tool_prefix}cc"
2772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776 done
2777
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782   echo "$as_me:$LINENO: result: $CC" >&5
2783 echo "${ECHO_T}$CC" >&6
2784 else
2785   echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6
2787 fi
2788
2789 fi
2790 if test -z "$ac_cv_prog_CC"; then
2791   ac_ct_CC=$CC
2792   # Extract the first word of "cc", so it can be a program name with args.
2793 set dummy cc; ac_word=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$ac_ct_CC"; then
2800   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809     ac_cv_prog_ac_ct_CC="cc"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 echo "${ECHO_T}$ac_ct_CC" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826
2827   CC=$ac_ct_CC
2828 else
2829   CC="$ac_cv_prog_CC"
2830 fi
2831
2832 fi
2833 if test -z "$CC"; then
2834   # Extract the first word of "cc", so it can be a program name with args.
2835 set dummy cc; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_CC+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$CC"; then
2842   ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844   ac_prog_rejected=no
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853        ac_prog_rejected=yes
2854        continue
2855      fi
2856     ac_cv_prog_CC="cc"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862
2863 if test $ac_prog_rejected = yes; then
2864   # We found a bogon in the path, so make sure we never use it.
2865   set dummy $ac_cv_prog_CC
2866   shift
2867   if test $# != 0; then
2868     # We chose a different compiler from the bogus one.
2869     # However, it has the same basename, so the bogon will be chosen
2870     # first if we set CC to just the basename; use the full file name.
2871     shift
2872     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2873   fi
2874 fi
2875 fi
2876 fi
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879   echo "$as_me:$LINENO: result: $CC" >&5
2880 echo "${ECHO_T}$CC" >&6
2881 else
2882   echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884 fi
2885
2886 fi
2887 if test -z "$CC"; then
2888   if test -n "$ac_tool_prefix"; then
2889   for ac_prog in cl
2890   do
2891     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_prog_CC+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -n "$CC"; then
2899   ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906   for ac_exec_ext in '' $ac_executable_extensions; do
2907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913 done
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919   echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6
2921 else
2922   echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2924 fi
2925
2926     test -n "$CC" && break
2927   done
2928 fi
2929 if test -z "$CC"; then
2930   ac_ct_CC=$CC
2931   for ac_prog in cl
2932 do
2933   # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   if test -n "$ac_ct_CC"; then
2941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_ac_ct_CC="$ac_prog"
2951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955 done
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2963 else
2964   echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 fi
2967
2968   test -n "$ac_ct_CC" && break
2969 done
2970
2971   CC=$ac_ct_CC
2972 fi
2973
2974 fi
2975
2976
2977 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: no acceptable C compiler found in \$PATH
2980 See \`config.log' for more details." >&2;}
2981    { (exit 1); exit 1; }; }
2982
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO:" \
2985      "checking for C compiler version" >&5
2986 ac_compiler=`set X $ac_compile; echo $2`
2987 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2988   (eval $ac_compiler --version </dev/null >&5) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }
2992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2993   (eval $ac_compiler -v </dev/null >&5) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }
2997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2998   (eval $ac_compiler -V </dev/null >&5) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }
3002
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3022 # of exeext.
3023 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3027   (eval $ac_link_default) 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; then
3031   # Find the output, starting from the most likely.  This scheme is
3032 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3033 # resort.
3034
3035 # Be careful to initialize this variable, since it used to be cached.
3036 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3037 ac_cv_exeext=
3038 # b.out is created by i960 compilers.
3039 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3040 do
3041   test -f "$ac_file" || continue
3042   case $ac_file in
3043     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3044         ;;
3045     conftest.$ac_ext )
3046         # This is the source file.
3047         ;;
3048     [ab].out )
3049         # We found the default executable, but exeext='' is most
3050         # certainly right.
3051         break;;
3052     *.* )
3053         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054         # FIXME: I believe we export ac_cv_exeext for Libtool,
3055         # but it would be cool to find out if it's true.  Does anybody
3056         # maintain Libtool? --akim.
3057         export ac_cv_exeext
3058         break;;
3059     * )
3060         break;;
3061   esac
3062 done
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: C compiler cannot create executables
3070 See \`config.log' for more details." >&2;}
3071    { (exit 77); exit 77; }; }
3072 fi
3073
3074 ac_exeext=$ac_cv_exeext
3075 echo "$as_me:$LINENO: result: $ac_file" >&5
3076 echo "${ECHO_T}$ac_file" >&6
3077
3078 # Check the compiler produces executables we can run.  If not, either
3079 # the compiler is broken, or we cross compile.
3080 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3081 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3082 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3083 # If not cross compiling, check that we can run a simple program.
3084 if test "$cross_compiling" != yes; then
3085   if { ac_try='./$ac_file'
3086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087   (eval $ac_try) 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091     cross_compiling=no
3092   else
3093     if test "$cross_compiling" = maybe; then
3094         cross_compiling=yes
3095     else
3096         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot run C compiled programs.
3100 If you meant to cross compile, use \`--host'.
3101 See \`config.log' for more details." >&2;}
3102    { (exit 1); exit 1; }; }
3103     fi
3104   fi
3105 fi
3106 echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6
3108
3109 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 # Check the compiler produces executables we can run.  If not, either
3112 # the compiler is broken, or we cross compile.
3113 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3114 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3115 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3116 echo "${ECHO_T}$cross_compiling" >&6
3117
3118 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3119 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121   (eval $ac_link) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; then
3125   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3126 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3127 # work properly (i.e., refer to `conftest.exe'), while it won't with
3128 # `rm'.
3129 for ac_file in conftest.exe conftest conftest.*; do
3130   test -f "$ac_file" || continue
3131   case $ac_file in
3132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3133     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134           export ac_cv_exeext
3135           break;;
3136     * ) break;;
3137   esac
3138 done
3139 else
3140   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest$ac_cv_exeext
3148 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3149 echo "${ECHO_T}$ac_cv_exeext" >&6
3150
3151 rm -f conftest.$ac_ext
3152 EXEEXT=$ac_cv_exeext
3153 ac_exeext=$EXEEXT
3154 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3155 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3156 if test "${ac_cv_objext+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.o conftest.obj
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176   (eval $ac_compile) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; then
3180   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3181   case $ac_file in
3182     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3183     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3184        break;;
3185   esac
3186 done
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3194 See \`config.log' for more details." >&2;}
3195    { (exit 1); exit 1; }; }
3196 fi
3197
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3201 echo "${ECHO_T}$ac_cv_objext" >&6
3202 OBJEXT=$ac_cv_objext
3203 ac_objext=$OBJEXT
3204 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3205 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3206 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215
3216 int
3217 main ()
3218 {
3219 #ifndef __GNUC__
3220        choke me
3221 #endif
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229   (eval $ac_compile) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } &&
3236          { ac_try='test -z "$ac_c_werror_flag"
3237                          || test ! -s conftest.err'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_compiler_gnu=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_compiler_gnu=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3258
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3261 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3262 GCC=`test $ac_compiler_gnu = yes && echo yes`
3263 ac_test_CFLAGS=${CFLAGS+set}
3264 ac_save_CFLAGS=$CFLAGS
3265 CFLAGS="-g"
3266 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3267 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3268 if test "${ac_cv_prog_cc_g+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288   (eval $ac_compile) 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -z "$ac_c_werror_flag"
3296                          || test ! -s conftest.err'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; } &&
3302          { ac_try='test -s conftest.$ac_objext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_prog_cc_g=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_cv_prog_cc_g=no
3314 fi
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 fi
3317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3319 if test "$ac_test_CFLAGS" = set; then
3320   CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322   if test "$GCC" = yes; then
3323     CFLAGS="-g -O2"
3324   else
3325     CFLAGS="-g"
3326   fi
3327 else
3328   if test "$GCC" = yes; then
3329     CFLAGS="-O2"
3330   else
3331     CFLAGS=
3332   fi
3333 fi
3334 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3335 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3336 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   ac_cv_prog_cc_stdc=no
3340 ac_save_CC=$CC
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include <stdarg.h>
3348 #include <stdio.h>
3349 #include <sys/types.h>
3350 #include <sys/stat.h>
3351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3352 struct buf { int x; };
3353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354 static char *e (p, i)
3355      char **p;
3356      int i;
3357 {
3358   return p[i];
3359 }
3360 static char *f (char * (*g) (char **, int), char **p, ...)
3361 {
3362   char *s;
3363   va_list v;
3364   va_start (v,p);
3365   s = g (p, va_arg (v,int));
3366   va_end (v);
3367   return s;
3368 }
3369
3370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3371    function prototypes and stuff, but not '\xHH' hex character constants.
3372    These don't provoke an error unfortunately, instead are silently treated
3373    as 'x'.  The following induces an error, until -std1 is added to get
3374    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3375    array size at least.  It's necessary to write '\x00'==0 to get something
3376    that's true only with -std1.  */
3377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378
3379 int test (int i, double x);
3380 struct s1 {int (*f) (int a);};
3381 struct s2 {int (*f) (double a);};
3382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3383 int argc;
3384 char **argv;
3385 int
3386 main ()
3387 {
3388 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 # Don't try gcc -ansi; that turns off useful extensions and
3394 # breaks some systems' header files.
3395 # AIX                   -qlanglvl=ansi
3396 # Ultrix and OSF/1      -std1
3397 # HP-UX 10.20 and later -Ae
3398 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3399 # SVR4                  -Xc -D__EXTENSIONS__
3400 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401 do
3402   CC="$ac_save_CC $ac_arg"
3403   rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405   (eval $ac_compile) 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -z "$ac_c_werror_flag"
3413                          || test ! -s conftest.err'
3414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415   (eval $ac_try) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); }; } &&
3419          { ac_try='test -s conftest.$ac_objext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   ac_cv_prog_cc_stdc=$ac_arg
3426 break
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 fi
3432 rm -f conftest.err conftest.$ac_objext
3433 done
3434 rm -f conftest.$ac_ext conftest.$ac_objext
3435 CC=$ac_save_CC
3436
3437 fi
3438
3439 case "x$ac_cv_prog_cc_stdc" in
3440   x|xno)
3441     echo "$as_me:$LINENO: result: none needed" >&5
3442 echo "${ECHO_T}none needed" >&6 ;;
3443   *)
3444     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3445 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3446     CC="$CC $ac_cv_prog_cc_stdc" ;;
3447 esac
3448
3449 # Some people use a C++ compiler to compile C.  Since we use `exit',
3450 # in C++ we need to declare it.  In case someone uses the same compiler
3451 # for both compiling C and C++ we need to have the C++ compiler decide
3452 # the declaration of exit, since it's the most demanding environment.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 #ifndef __cplusplus
3455   choke me
3456 #endif
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460   (eval $ac_compile) 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -z "$ac_c_werror_flag"
3468                          || test ! -s conftest.err'
3469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; } &&
3474          { ac_try='test -s conftest.$ac_objext'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; }; then
3480   for ac_declaration in \
3481    '' \
3482    'extern "C" void std::exit (int) throw (); using std::exit;' \
3483    'extern "C" void std::exit (int); using std::exit;' \
3484    'extern "C" void exit (int) throw ();' \
3485    'extern "C" void exit (int);' \
3486    'void exit (int);'
3487 do
3488   cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 $ac_declaration
3495 #include <stdlib.h>
3496 int
3497 main ()
3498 {
3499 exit (42);
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506   (eval $ac_compile) 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -z "$ac_c_werror_flag"
3514                          || test ! -s conftest.err'
3515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }; } &&
3520          { ac_try='test -s conftest.$ac_objext'
3521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522   (eval $ac_try) 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }; }; then
3526   :
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 continue
3532 fi
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 $ac_declaration
3541 int
3542 main ()
3543 {
3544 exit (42);
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551   (eval $ac_compile) 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } &&
3558          { ac_try='test -z "$ac_c_werror_flag"
3559                          || test ! -s conftest.err'
3560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561   (eval $ac_try) 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); }; } &&
3565          { ac_try='test -s conftest.$ac_objext'
3566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }; }; then
3571   break
3572 else
3573   echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 fi
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 done
3579 rm -f conftest*
3580 if test -n "$ac_declaration"; then
3581   echo '#ifdef __cplusplus' >>confdefs.h
3582   echo $ac_declaration      >>confdefs.h
3583   echo '#endif'             >>confdefs.h
3584 fi
3585
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 fi
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 DEPDIR="${am__leading_dot}deps"
3598
3599           ac_config_commands="$ac_config_commands depfiles"
3600
3601
3602 am_make=${MAKE-make}
3603 cat > confinc << 'END'
3604 am__doit:
3605         @echo done
3606 .PHONY: am__doit
3607 END
3608 # If we don't find an include directive, just comment out the code.
3609 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3610 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3611 am__include="#"
3612 am__quote=
3613 _am_result=none
3614 # First try GNU make style include.
3615 echo "include confinc" > confmf
3616 # We grep out `Entering directory' and `Leaving directory'
3617 # messages which can occur if `w' ends up in MAKEFLAGS.
3618 # In particular we don't look at `^make:' because GNU make might
3619 # be invoked under some other name (usually "gmake"), in which
3620 # case it prints its new name instead of `make'.
3621 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3622    am__include=include
3623    am__quote=
3624    _am_result=GNU
3625 fi
3626 # Now try BSD make style include.
3627 if test "$am__include" = "#"; then
3628    echo '.include "confinc"' > confmf
3629    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3630       am__include=.include
3631       am__quote="\""
3632       _am_result=BSD
3633    fi
3634 fi
3635
3636
3637 echo "$as_me:$LINENO: result: $_am_result" >&5
3638 echo "${ECHO_T}$_am_result" >&6
3639 rm -f confinc confmf
3640
3641 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3642 if test "${enable_dependency_tracking+set}" = set; then
3643   enableval="$enable_dependency_tracking"
3644
3645 fi;
3646 if test "x$enable_dependency_tracking" != xno; then
3647   am_depcomp="$ac_aux_dir/depcomp"
3648   AMDEPBACKSLASH='\'
3649 fi
3650
3651
3652 if test "x$enable_dependency_tracking" != xno; then
3653   AMDEP_TRUE=
3654   AMDEP_FALSE='#'
3655 else
3656   AMDEP_TRUE='#'
3657   AMDEP_FALSE=
3658 fi
3659
3660
3661
3662
3663 depcc="$CC"   am_compiler_list=
3664
3665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3671   # We make a subdir and do the tests there.  Otherwise we can end up
3672   # making bogus files that we don't know about and never remove.  For
3673   # instance it was reported that on HP-UX the gcc test will end up
3674   # making a dummy file named `D' -- because `-MD' means `put the output
3675   # in D'.
3676   mkdir conftest.dir
3677   # Copy depcomp to subdir because otherwise we won't find it if we're
3678   # using a relative directory.
3679   cp "$am_depcomp" conftest.dir
3680   cd conftest.dir
3681   # We will build objects and dependencies in a subdirectory because
3682   # it helps to detect inapplicable dependency modes.  For instance
3683   # both Tru64's cc and ICC support -MD to output dependencies as a
3684   # side effect of compilation, but ICC will put the dependencies in
3685   # the current directory while Tru64 will put them in the object
3686   # directory.
3687   mkdir sub
3688
3689   am_cv_CC_dependencies_compiler_type=none
3690   if test "$am_compiler_list" = ""; then
3691      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3692   fi
3693   for depmode in $am_compiler_list; do
3694     # Setup a source with many dependencies, because some compilers
3695     # like to wrap large dependency lists on column 80 (with \), and
3696     # we should not choose a depcomp mode which is confused by this.
3697     #
3698     # We need to recreate these files for each test, as the compiler may
3699     # overwrite some of them when testing with obscure command lines.
3700     # This happens at least with the AIX C compiler.
3701     : > sub/conftest.c
3702     for i in 1 2 3 4 5 6; do
3703       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3704       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3705       # Solaris 8's {/usr,}/bin/sh.
3706       touch sub/conftst$i.h
3707     done
3708     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3709
3710     case $depmode in
3711     nosideeffect)
3712       # after this tag, mechanisms are not by side-effect, so they'll
3713       # only be used when explicitly requested
3714       if test "x$enable_dependency_tracking" = xyes; then
3715         continue
3716       else
3717         break
3718       fi
3719       ;;
3720     none) break ;;
3721     esac
3722     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3723     # mode.  It turns out that the SunPro C++ compiler does not properly
3724     # handle `-M -o', and we need to detect this.
3725     if depmode=$depmode \
3726        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3727        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3729          >/dev/null 2>conftest.err &&
3730        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3732        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733       # icc doesn't choke on unknown options, it will just issue warnings
3734       # (even with -Werror).  So we grep stderr for any message
3735       # that says an option was ignored.
3736       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3737         am_cv_CC_dependencies_compiler_type=$depmode
3738         break
3739       fi
3740     fi
3741   done
3742
3743   cd ..
3744   rm -rf conftest.dir
3745 else
3746   am_cv_CC_dependencies_compiler_type=none
3747 fi
3748
3749 fi
3750 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3751 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3752 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3753
3754
3755
3756 if
3757   test "x$enable_dependency_tracking" != xno \
3758   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3759   am__fastdepCC_TRUE=
3760   am__fastdepCC_FALSE='#'
3761 else
3762   am__fastdepCC_TRUE='#'
3763   am__fastdepCC_FALSE=
3764 fi
3765
3766
3767 if test -n "$ac_tool_prefix"; then
3768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_RANLIB+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$RANLIB"; then
3776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791
3792 fi
3793 fi
3794 RANLIB=$ac_cv_prog_RANLIB
3795 if test -n "$RANLIB"; then
3796   echo "$as_me:$LINENO: result: $RANLIB" >&5
3797 echo "${ECHO_T}$RANLIB" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803 fi
3804 if test -z "$ac_cv_prog_RANLIB"; then
3805   ac_ct_RANLIB=$RANLIB
3806   # Extract the first word of "ranlib", so it can be a program name with args.
3807 set dummy ranlib; ac_word=$2
3808 echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   if test -n "$ac_ct_RANLIB"; then
3814   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821   for ac_exec_ext in '' $ac_executable_extensions; do
3822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823     ac_cv_prog_ac_ct_RANLIB="ranlib"
3824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828 done
3829
3830   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3831 fi
3832 fi
3833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3834 if test -n "$ac_ct_RANLIB"; then
3835   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3836 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3837 else
3838   echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842   RANLIB=$ac_ct_RANLIB
3843 else
3844   RANLIB="$ac_cv_prog_RANLIB"
3845 fi
3846
3847
3848 ###############################
3849 # Checks for ability to compile ORTE_IDL
3850
3851 echo "$as_me:$LINENO: checking whether to enable orte IDL compiler" >&5
3852 echo $ECHO_N "checking whether to enable orte IDL compiler... $ECHO_C" >&6
3853     # Check whether --enable-orte-idl or --disable-orte-idl was given.
3854 if test "${enable_orte_idl+set}" = set; then
3855   enableval="$enable_orte_idl"
3856   USE_ORTE_IDL=$enableval
3857 else
3858   USE_ORTE_IDL=no
3859 fi;
3860   echo "$as_me:$LINENO: result: $USE_ORTE_IDL" >&5
3861 echo "${ECHO_T}$USE_ORTE_IDL" >&6
3862
3863   if test ${USE_ORTE_IDL} == "yes" ; then
3864
3865   succeeded=no
3866
3867   if test -z "$PKG_CONFIG"; then
3868     # Extract the first word of "pkg-config", so it can be a program name with args.
3869 set dummy pkg-config; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   case $PKG_CONFIG in
3876   [\\/]* | ?:[\\/]*)
3877   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3878   ;;
3879   *)
3880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885   for ac_exec_ext in '' $ac_executable_extensions; do
3886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892 done
3893
3894   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3895   ;;
3896 esac
3897 fi
3898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3899
3900 if test -n "$PKG_CONFIG"; then
3901   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3902 echo "${ECHO_T}$PKG_CONFIG" >&6
3903 else
3904   echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3906 fi
3907
3908   fi
3909
3910   if test "$PKG_CONFIG" = "no" ; then
3911      echo "*** The pkg-config script could not be found. Make sure it is"
3912      echo "*** in your path, or set the PKG_CONFIG environment variable"
3913      echo "*** to the full path to pkg-config."
3914      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3915   else
3916      PKG_CONFIG_MIN_VERSION=0.9.0
3917      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3918         echo "$as_me:$LINENO: checking for libIDL-2.0" >&5
3919 echo $ECHO_N "checking for libIDL-2.0... $ECHO_C" >&6
3920
3921         if $PKG_CONFIG --exists "libIDL-2.0" ; then
3922             echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6
3924             succeeded=yes
3925
3926             echo "$as_me:$LINENO: checking LIBIDL_CFLAGS" >&5
3927 echo $ECHO_N "checking LIBIDL_CFLAGS... $ECHO_C" >&6
3928             LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0"`
3929             echo "$as_me:$LINENO: result: $LIBIDL_CFLAGS" >&5
3930 echo "${ECHO_T}$LIBIDL_CFLAGS" >&6
3931
3932             echo "$as_me:$LINENO: checking LIBIDL_LIBS" >&5
3933 echo $ECHO_N "checking LIBIDL_LIBS... $ECHO_C" >&6
3934             LIBIDL_LIBS=`$PKG_CONFIG --libs "libIDL-2.0"`
3935             echo "$as_me:$LINENO: result: $LIBIDL_LIBS" >&5
3936 echo "${ECHO_T}$LIBIDL_LIBS" >&6
3937         else
3938             LIBIDL_CFLAGS=""
3939             LIBIDL_LIBS=""
3940             ## If we have a custom action on failure, don't print errors, but
3941             ## do set a variable so people can do so.
3942             LIBIDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libIDL-2.0"`
3943             echo $LIBIDL_PKG_ERRORS
3944         fi
3945
3946
3947
3948      else
3949         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3950         echo "*** See http://www.freedesktop.org/software/pkgconfig"
3951      fi
3952   fi
3953
3954   if test $succeeded = yes; then
3955      :
3956   else
3957      { { echo "$as_me:$LINENO: error: Library requirements (libIDL-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
3958 echo "$as_me: error: Library requirements (libIDL-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
3959    { (exit 1); exit 1; }; }
3960   fi
3961
3962         CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
3963         LIBS="$LIBS $LIBIDL_LIBS"
3964         #popt
3965
3966 echo "$as_me:$LINENO: checking for poptSetOtherOptionHelp in -lpopt" >&5
3967 echo $ECHO_N "checking for poptSetOtherOptionHelp in -lpopt... $ECHO_C" >&6
3968 if test "${ac_cv_lib_popt_poptSetOtherOptionHelp+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_check_lib_save_LIBS=$LIBS
3972 LIBS="-lpopt  $LIBS"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979
3980 /* Override any gcc2 internal prototype to avoid an error.  */
3981 #ifdef __cplusplus
3982 extern "C"
3983 #endif
3984 /* We use char because int might match the return type of a gcc2
3985    builtin and then its argument prototype would still apply.  */
3986 char poptSetOtherOptionHelp ();
3987 int
3988 main ()
3989 {
3990 poptSetOtherOptionHelp ();
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997   (eval $ac_link) 2>conftest.er1
3998   ac_status=$?
3999   grep -v '^ *+' conftest.er1 >conftest.err
4000   rm -f conftest.er1
4001   cat conftest.err >&5
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } &&
4004          { ac_try='test -z "$ac_c_werror_flag"
4005                          || test ! -s conftest.err'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; } &&
4011          { ac_try='test -s conftest$ac_exeext'
4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   ac_cv_lib_popt_poptSetOtherOptionHelp=yes
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 ac_cv_lib_popt_poptSetOtherOptionHelp=no
4023 fi
4024 rm -f conftest.err conftest.$ac_objext \
4025       conftest$ac_exeext conftest.$ac_ext
4026 LIBS=$ac_check_lib_save_LIBS
4027 fi
4028 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptSetOtherOptionHelp" >&5
4029 echo "${ECHO_T}$ac_cv_lib_popt_poptSetOtherOptionHelp" >&6
4030 if test $ac_cv_lib_popt_poptSetOtherOptionHelp = yes; then
4031   cat >>confdefs.h <<_ACEOF
4032 #define HAVE_LIBPOPT 1
4033 _ACEOF
4034
4035   LIBS="-lpopt $LIBS"
4036
4037 fi
4038
4039   fi
4040
4041
4042
4043 if test $USE_ORTE_IDL = yes; then
4044   CONFIG_ORTE_IDL_TRUE=
4045   CONFIG_ORTE_IDL_FALSE='#'
4046 else
4047   CONFIG_ORTE_IDL_TRUE='#'
4048   CONFIG_ORTE_IDL_FALSE=
4049 fi
4050
4051
4052
4053
4054
4055
4056 ###############################
4057 # Checks for ability to compile JORTE
4058 echo "$as_me:$LINENO: checking whether to compile jorte" >&5
4059 echo $ECHO_N "checking whether to compile jorte... $ECHO_C" >&6
4060
4061
4062 # Check whether --with-java or --without-java was given.
4063 if test "${with_java+set}" = set; then
4064   withval="$with_java"
4065   JAVA_HOME_DIR="${withval}"
4066 else
4067   JAVA_HOME_DIR="no"
4068 fi;
4069 #       [JAVA_HOME_DIR="${JAVA_HOME}"])
4070
4071   USE_JORTE=no
4072   if test "${JAVA_HOME_DIR}" != "no" ; then
4073       if [ -e "${JAVA_HOME_DIR}/include/jni.h" ] ; then
4074             USE_JORTE=yes
4075             JNI_INCLUDES="-I$JAVA_HOME_DIR/include"
4076                                     test -d "$JAVA_HOME_DIR/include/linux" &&
4077                     JNI_INCLUDES="$JNI_INCLUDES -I$JAVA_HOME_DIR/include/linux"
4078             test -d "$JAVA_HOME_DIR/include/genunix" &&
4079                     JNI_INCLUDES="$JNI_INCLUDES -I$JAVA_HOME_DIR/include/genunix"
4080             test -d "$JAVA_HOME_DIR/include/win32" &&
4081                     JNI_INCLUDES="$JNI_INCLUDES -I$JAVA_HOME_DIR/include/win32"
4082             CFLAGS="$CFLAGS $JNI_INCLUDES"
4083
4084 cat >>confdefs.h <<\_ACEOF
4085 #define CONFIG_JORTE 1
4086 _ACEOF
4087
4088       fi
4089   fi
4090
4091   echo "$as_me:$LINENO: result: $USE_JORTE" >&5
4092 echo "${ECHO_T}$USE_JORTE" >&6
4093
4094
4095
4096 if test $USE_JORTE = yes; then
4097   CONFIG_JORTE_TRUE=
4098   CONFIG_JORTE_FALSE='#'
4099 else
4100   CONFIG_JORTE_TRUE='#'
4101   CONFIG_JORTE_FALSE=
4102 fi
4103
4104
4105
4106
4107
4108
4109 ###############################
4110 # Checks for libraries and init libtools
4111 if test -z ${CONFIG_ORTE_RT} ; then
4112   #Initialize libtool
4113   # Check whether --enable-shared or --disable-shared was given.
4114 if test "${enable_shared+set}" = set; then
4115   enableval="$enable_shared"
4116   p=${PACKAGE-default}
4117 case $enableval in
4118 yes) enable_shared=yes ;;
4119 no) enable_shared=no ;;
4120 *)
4121   enable_shared=no
4122   # Look at the argument we got.  We use all the common list separators.
4123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4124   for pkg in $enableval; do
4125     if test "X$pkg" = "X$p"; then
4126       enable_shared=yes
4127     fi
4128   done
4129   IFS="$ac_save_ifs"
4130   ;;
4131 esac
4132 else
4133   enable_shared=yes
4134 fi;
4135 # Check whether --enable-static or --disable-static was given.
4136 if test "${enable_static+set}" = set; then
4137   enableval="$enable_static"
4138   p=${PACKAGE-default}
4139 case $enableval in
4140 yes) enable_static=yes ;;
4141 no) enable_static=no ;;
4142 *)
4143   enable_static=no
4144   # Look at the argument we got.  We use all the common list separators.
4145   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4146   for pkg in $enableval; do
4147     if test "X$pkg" = "X$p"; then
4148       enable_static=yes
4149     fi
4150   done
4151   IFS="$ac_save_ifs"
4152   ;;
4153 esac
4154 else
4155   enable_static=yes
4156 fi;
4157 # Check whether --enable-fast-install or --disable-fast-install was given.
4158 if test "${enable_fast_install+set}" = set; then
4159   enableval="$enable_fast_install"
4160   p=${PACKAGE-default}
4161 case $enableval in
4162 yes) enable_fast_install=yes ;;
4163 no) enable_fast_install=no ;;
4164 *)
4165   enable_fast_install=no
4166   # Look at the argument we got.  We use all the common list separators.
4167   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4168   for pkg in $enableval; do
4169     if test "X$pkg" = "X$p"; then
4170       enable_fast_install=yes
4171     fi
4172   done
4173   IFS="$ac_save_ifs"
4174   ;;
4175 esac
4176 else
4177   enable_fast_install=yes
4178 fi;
4179 # Find the correct PATH separator.  Usually this is `:', but
4180 # DJGPP uses `;' like DOS.
4181 if test "X${PATH_SEPARATOR+set}" != Xset; then
4182   UNAME=${UNAME-`uname 2>/dev/null`}
4183   case X$UNAME in
4184     *-DOS) lt_cv_sys_path_separator=';' ;;
4185     *)     lt_cv_sys_path_separator=':' ;;
4186   esac
4187   PATH_SEPARATOR=$lt_cv_sys_path_separator
4188 fi
4189
4190
4191 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4192 if test "${with_gnu_ld+set}" = set; then
4193   withval="$with_gnu_ld"
4194   test "$withval" = no || with_gnu_ld=yes
4195 else
4196   with_gnu_ld=no
4197 fi;
4198 ac_prog=ld
4199 if test "$GCC" = yes; then
4200   # Check if gcc -print-prog-name=ld gives a path.
4201   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4203   case $host in
4204   *-*-mingw*)
4205     # gcc leaves a trailing carriage return which upsets mingw
4206     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4207   *)
4208     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4209   esac
4210   case $ac_prog in
4211     # Accept absolute paths.
4212     [\\/]* | [A-Za-z]:[\\/]*)
4213       re_direlt='/[^/][^/]*/\.\./'
4214       # Canonicalize the path of ld
4215       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4216       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4217         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4218       done
4219       test -z "$LD" && LD="$ac_prog"
4220       ;;
4221   "")
4222     # If it fails, then pretend we aren't using GCC.
4223     ac_prog=ld
4224     ;;
4225   *)
4226     # If it is relative, then search for the first ld in PATH.
4227     with_gnu_ld=unknown
4228     ;;
4229   esac
4230 elif test "$with_gnu_ld" = yes; then
4231   echo "$as_me:$LINENO: checking for GNU ld" >&5
4232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4233 else
4234   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4236 fi
4237 if test "${lt_cv_path_LD+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -z "$LD"; then
4241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4242   for ac_dir in $PATH; do
4243     test -z "$ac_dir" && ac_dir=.
4244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4245       lt_cv_path_LD="$ac_dir/$ac_prog"
4246       # Check to see if the program is GNU ld.  I'd rather use --version,
4247       # but apparently some GNU ld's only accept -v.
4248       # Break only if it was the GNU/non-GNU ld that we prefer.
4249       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4250         test "$with_gnu_ld" != no && break
4251       else
4252         test "$with_gnu_ld" != yes && break
4253       fi
4254     fi
4255   done
4256   IFS="$ac_save_ifs"
4257 else
4258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4259 fi
4260 fi
4261
4262 LD="$lt_cv_path_LD"
4263 if test -n "$LD"; then
4264   echo "$as_me:$LINENO: result: $LD" >&5
4265 echo "${ECHO_T}$LD" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4272    { (exit 1); exit 1; }; }
4273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4280   lt_cv_prog_gnu_ld=yes
4281 else
4282   lt_cv_prog_gnu_ld=no
4283 fi
4284 fi
4285 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4287 with_gnu_ld=$lt_cv_prog_gnu_ld
4288
4289
4290 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4292 if test "${lt_cv_ld_reload_flag+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   lt_cv_ld_reload_flag='-r'
4296 fi
4297 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4299 reload_flag=$lt_cv_ld_reload_flag
4300 test -n "$reload_flag" && reload_flag=" $reload_flag"
4301
4302 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4304 if test "${lt_cv_path_NM+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   if test -n "$NM"; then
4308   # Let the user override the test.
4309   lt_cv_path_NM="$NM"
4310 else
4311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4312   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4313     test -z "$ac_dir" && ac_dir=.
4314     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4315     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4316       # Check to see if the nm accepts a BSD-compat flag.
4317       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4318       #   nm: unknown option "B" ignored
4319       # Tru64's nm complains that /dev/null is an invalid object file
4320       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4321         lt_cv_path_NM="$tmp_nm -B"
4322         break
4323       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4324         lt_cv_path_NM="$tmp_nm -p"
4325         break
4326       else
4327         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4328         continue # so that we can try to find one that supports BSD flags
4329       fi
4330     fi
4331   done
4332   IFS="$ac_save_ifs"
4333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4334 fi
4335 fi
4336
4337 NM="$lt_cv_path_NM"
4338 echo "$as_me:$LINENO: result: $NM" >&5
4339 echo "${ECHO_T}$NM" >&6
4340
4341 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4342 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4343 if test "${lt_cv_path_SED+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   # Loop through the user's path and test for sed and gsed.
4347 # Then use that list of sed's as ones to test for truncation.
4348 as_executable_p="test -f"
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354   for ac_prog in sed gsed; do
4355     for ac_exec_ext in '' $ac_executable_extensions; do
4356       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4357         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4358       fi
4359     done
4360   done
4361 done
4362
4363   # Create a temporary directory, and hook for its removal unless debugging.
4364 $debug ||
4365 {
4366   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4367   trap '{ (exit 1); exit 1; }' 1 2 13 15
4368 }
4369
4370 # Create a (secure) tmp directory for tmp files.
4371 : ${TMPDIR=/tmp}
4372 {
4373   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4374   test -n "$tmp" && test -d "$tmp"
4375 }  ||
4376 {
4377   tmp=$TMPDIR/sed$$-$RANDOM
4378   (umask 077 && mkdir $tmp)
4379 } ||
4380 {
4381    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4382    { (exit 1); exit 1; }
4383 }
4384   _max=0
4385   _count=0
4386   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4387   # along with /bin/sed that truncates output.
4388   for _sed in $_sed_list /usr/xpg4/bin/sed; do
4389     test ! -f ${_sed} && break
4390     cat /dev/null > "$tmp/sed.in"
4391     _count=0
4392     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4393     # Check for GNU sed and select it if it is found.
4394     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4395       lt_cv_path_SED=${_sed}
4396       break
4397     fi
4398     while true; do
4399       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4400       mv "$tmp/sed.tmp" "$tmp/sed.in"
4401       cp "$tmp/sed.in" "$tmp/sed.nl"
4402       echo >>"$tmp/sed.nl"
4403       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4404       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4405       # 40000 chars as input seems more than enough
4406       test $_count -gt 10 && break
4407       _count=`expr $_count + 1`
4408       if test $_count -gt $_max; then
4409         _max=$_count
4410         lt_cv_path_SED=$_sed
4411       fi
4412     done
4413   done
4414   rm -rf "$tmp"
4415
4416 fi
4417
4418 if test "X$SED" != "X"; then
4419   lt_cv_path_SED=$SED
4420 else
4421   SED=$lt_cv_path_SED
4422 fi
4423 echo "$as_me:$LINENO: result: $SED" >&5
4424 echo "${ECHO_T}$SED" >&6
4425
4426 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4427 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4428 LN_S=$as_ln_s
4429 if test "$LN_S" = "ln -s"; then
4430   echo "$as_me:$LINENO: result: yes" >&5
4431 echo "${ECHO_T}yes" >&6
4432 else
4433   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4434 echo "${ECHO_T}no, using $LN_S" >&6
4435 fi
4436
4437 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4438 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4439 if test "${lt_cv_deplibs_check_method+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   lt_cv_file_magic_cmd='$MAGIC_CMD'
4443 lt_cv_file_magic_test_file=
4444 lt_cv_deplibs_check_method='unknown'
4445 # Need to set the preceding variable on all platforms that support
4446 # interlibrary dependencies.
4447 # 'none' -- dependencies not supported.
4448 # `unknown' -- same as none, but documents that we really don't know.
4449 # 'pass_all' -- all dependencies passed with no checks.
4450 # 'test_compile' -- check by making test program.
4451 # 'file_magic [[regex]]' -- check by looking for files in library path
4452 # which responds to the $file_magic_cmd with a given egrep regex.
4453 # If you have `file' or equivalent on your system and you're not sure
4454 # whether `pass_all' will *always* work, you probably want this one.
4455
4456 case $host_os in
4457 aix4* | aix5*)
4458   lt_cv_deplibs_check_method=pass_all
4459   ;;
4460
4461 beos*)
4462   lt_cv_deplibs_check_method=pass_all
4463   ;;
4464
4465 bsdi4*)
4466   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4467   lt_cv_file_magic_cmd='/usr/bin/file -L'
4468   lt_cv_file_magic_test_file=/shlib/libc.so
4469   ;;
4470
4471 cygwin* | mingw* | pw32*)
4472   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4473   lt_cv_file_magic_cmd='$OBJDUMP -f'
4474   ;;
4475
4476 darwin* | rhapsody*)
4477   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4478   lt_cv_file_magic_cmd='/usr/bin/file -L'
4479   case "$host_os" in
4480   rhapsody* | darwin1.[012])
4481     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4482     ;;
4483   *) # Darwin 1.3 on
4484     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4485     ;;
4486   esac
4487   ;;
4488
4489 freebsd*)
4490   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4491     case $host_cpu in
4492     i*86 )
4493       # Not sure whether the presence of OpenBSD here was a mistake.
4494       # Let's accept both of them until this is cleared up.
4495       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4496       lt_cv_file_magic_cmd=/usr/bin/file
4497       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4498       ;;
4499     esac
4500   else
4501     lt_cv_deplibs_check_method=pass_all
4502   fi
4503   ;;
4504
4505 gnu*)
4506   lt_cv_deplibs_check_method=pass_all
4507   ;;
4508
4509 hpux10.20*|hpux11*)
4510   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4511   lt_cv_file_magic_cmd=/usr/bin/file
4512   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4513   ;;
4514
4515 irix5* | irix6* | nonstopux*)
4516   case $host_os in
4517   irix5* | nonstopux*)
4518     # this will be overridden with pass_all, but let us keep it just in case
4519     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4520     ;;
4521   *)
4522     case $LD in
4523     *-32|*"-32 ") libmagic=32-bit;;
4524     *-n32|*"-n32 ") libmagic=N32;;
4525     *-64|*"-64 ") libmagic=64-bit;;
4526     *) libmagic=never-match;;
4527     esac
4528     # this will be overridden with pass_all, but let us keep it just in case
4529     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4530     ;;
4531   esac
4532   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4533   lt_cv_deplibs_check_method=pass_all
4534   ;;
4535
4536 # This must be Linux ELF.
4537 linux-gnu*)
4538   case $host_cpu in
4539   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
4540     lt_cv_deplibs_check_method=pass_all ;;
4541   *)
4542     # glibc up to 2.1.1 does not perform some relocations on ARM
4543     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4544   esac
4545   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4546   ;;
4547
4548 netbsd*)
4549   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4550     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4551   else
4552     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4553   fi
4554   ;;
4555
4556 newos6*)
4557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4558   lt_cv_file_magic_cmd=/usr/bin/file
4559   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4560   ;;
4561
4562 openbsd*)
4563   lt_cv_file_magic_cmd=/usr/bin/file
4564   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4566     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4567   else
4568     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4569   fi
4570   ;;
4571
4572 osf3* | osf4* | osf5*)
4573   # this will be overridden with pass_all, but let us keep it just in case
4574   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4575   lt_cv_file_magic_test_file=/shlib/libc.so
4576   lt_cv_deplibs_check_method=pass_all
4577   ;;
4578
4579 sco3.2v5*)
4580   lt_cv_deplibs_check_method=pass_all
4581   ;;
4582
4583 solaris*)
4584   lt_cv_deplibs_check_method=pass_all
4585   lt_cv_file_magic_test_file=/lib/libc.so
4586   ;;
4587
4588 sysv5uw[78]* | sysv4*uw2*)
4589   lt_cv_deplibs_check_method=pass_all
4590   ;;
4591
4592 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4593   case $host_vendor in
4594   motorola)
4595     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]'
4596     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4597     ;;
4598   ncr)
4599     lt_cv_deplibs_check_method=pass_all
4600     ;;
4601   sequent)
4602     lt_cv_file_magic_cmd='/bin/file'
4603     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4604     ;;
4605   sni)
4606     lt_cv_file_magic_cmd='/bin/file'
4607     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4608     lt_cv_file_magic_test_file=/lib/libc.so
4609     ;;
4610   siemens)
4611     lt_cv_deplibs_check_method=pass_all
4612     ;;
4613   esac
4614   ;;
4615 esac
4616
4617 fi
4618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4620 file_magic_cmd=$lt_cv_file_magic_cmd
4621 deplibs_check_method=$lt_cv_deplibs_check_method
4622
4623
4624
4625
4626
4627
4628
4629 # Check for command to grab the raw symbol name followed by C symbol from nm.
4630 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4631 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4632 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635
4636 # These are sane defaults that work on at least a few old systems.
4637 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4638
4639 # Character class describing NM global symbol codes.
4640 symcode='[BCDEGRST]'
4641
4642 # Regexp to match symbols that can be accessed directly from C.
4643 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4644
4645 # Transform the above into a raw symbol and a C symbol.
4646 symxfrm='\1 \2\3 \3'
4647
4648 # Transform an extracted symbol line into a proper C declaration
4649 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4650
4651 # Transform an extracted symbol line into symbol name and symbol address
4652 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4653
4654 # Define system-specific variables.
4655 case $host_os in
4656 aix*)
4657   symcode='[BCDT]'
4658   ;;
4659 cygwin* | mingw* | pw32*)
4660   symcode='[ABCDGISTW]'
4661   ;;
4662 hpux*) # Its linker distinguishes data from code symbols
4663   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4664   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4665   ;;
4666 irix* | nonstopux*)
4667   symcode='[BCDEGRST]'
4668   ;;
4669 osf*)
4670   symcode='[BCDEGQRST]'
4671   ;;
4672 solaris* | sysv5*)
4673   symcode='[BDT]'
4674   ;;
4675 sysv4)
4676   symcode='[DFNSTU]'
4677   ;;
4678 esac
4679
4680 # Handle CRLF in mingw tool chain
4681 opt_cr=
4682 case $host_os in
4683 mingw*)
4684   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4685   ;;
4686 esac
4687
4688 # If we're using GNU nm, then use its standard symbol codes.
4689 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4690   symcode='[ABCDGISTW]'
4691 fi
4692
4693 # Try without a prefix undercore, then with it.
4694 for ac_symprfx in "" "_"; do
4695
4696   # Write the raw and C identifiers.
4697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4698
4699   # Check to see that the pipe works correctly.
4700   pipe_works=no
4701   rm -f conftest*
4702   cat > conftest.$ac_ext <<EOF
4703 #ifdef __cplusplus
4704 extern "C" {
4705 #endif
4706 char nm_test_var;
4707 void nm_test_func(){}
4708 #ifdef __cplusplus
4709 }
4710 #endif
4711 int main(){nm_test_var='a';nm_test_func();return(0);}
4712 EOF
4713
4714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715   (eval $ac_compile) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; then
4719     # Now try to grab the symbols.
4720     nlist=conftest.nm
4721     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4722   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } && test -s "$nlist"; then
4726       # Try sorting and uniquifying the output.
4727       if sort "$nlist" | uniq > "$nlist"T; then
4728         mv -f "$nlist"T "$nlist"
4729       else
4730         rm -f "$nlist"T
4731       fi
4732
4733       # Make sure that we snagged all the symbols we need.
4734       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4735         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4736           cat <<EOF > conftest.$ac_ext
4737 #ifdef __cplusplus
4738 extern "C" {
4739 #endif
4740
4741 EOF
4742           # Now generate the symbol file.
4743           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4744
4745           cat <<EOF >> conftest.$ac_ext
4746 #if defined (__STDC__) && __STDC__
4747 # define lt_ptr void *
4748 #else
4749 # define lt_ptr char *
4750 # define const
4751 #endif
4752
4753 /* The mapping between symbol names and symbols. */
4754 const struct {
4755   const char *name;
4756   lt_ptr address;
4757 }
4758 lt_preloaded_symbols[] =
4759 {
4760 EOF
4761           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4762           cat <<\EOF >> conftest.$ac_ext
4763   {0, (lt_ptr) 0}
4764 };
4765
4766 #ifdef __cplusplus
4767 }
4768 #endif
4769 EOF
4770           # Now try linking the two files.
4771           mv conftest.$ac_objext conftstm.$ac_objext
4772           save_LIBS="$LIBS"
4773           save_CFLAGS="$CFLAGS"
4774           LIBS="conftstm.$ac_objext"
4775           CFLAGS="$CFLAGS$no_builtin_flag"
4776           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777   (eval $ac_link) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } && test -s conftest$ac_exeext; then
4781             pipe_works=yes
4782           fi
4783           LIBS="$save_LIBS"
4784           CFLAGS="$save_CFLAGS"
4785         else
4786           echo "cannot find nm_test_func in $nlist" >&5
4787         fi
4788       else
4789         echo "cannot find nm_test_var in $nlist" >&5
4790       fi
4791     else
4792       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4793     fi
4794   else
4795     echo "$progname: failed program was:" >&5
4796     cat conftest.$ac_ext >&5
4797   fi
4798   rm -f conftest* conftst*
4799
4800   # Do not use the global_symbol_pipe unless it works.
4801   if test "$pipe_works" = yes; then
4802     break
4803   else
4804     lt_cv_sys_global_symbol_pipe=
4805   fi
4806 done
4807
4808 fi
4809
4810 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4811 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4812   global_symbol_to_cdecl=
4813   global_symbol_to_c_name_address=
4814 else
4815   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4816   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4817 fi
4818 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4819 then
4820   echo "$as_me:$LINENO: result: failed" >&5
4821 echo "${ECHO_T}failed" >&6
4822 else
4823   echo "$as_me:$LINENO: result: ok" >&5
4824 echo "${ECHO_T}ok" >&6
4825 fi
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4836   CPP=
4837 fi
4838 if test -z "$CPP"; then
4839   if test "${ac_cv_prog_CPP+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842       # Double quotes because CPP needs to be expanded
4843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844     do
4845       ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4847 do
4848   # Use a header file that comes with gcc, so configuring glibc
4849   # with a fresh cross-compiler works.
4850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851   # <limits.h> exists even on freestanding compilers.
4852   # On the NeXT, cc -E runs the code through the compiler's parser,
4853   # not just through cpp. "Syntax error" is here to catch this case.
4854   cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #ifdef __STDC__
4861 # include <limits.h>
4862 #else
4863 # include <assert.h>
4864 #endif
4865                      Syntax error
4866 _ACEOF
4867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } >/dev/null; then
4875   if test -s conftest.err; then
4876     ac_cpp_err=$ac_c_preproc_warn_flag
4877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4878   else
4879     ac_cpp_err=
4880   fi
4881 else
4882   ac_cpp_err=yes
4883 fi
4884 if test -z "$ac_cpp_err"; then
4885   :
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890   # Broken: fails on valid input.
4891 continue
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894
4895   # OK, works on sane cases.  Now check whether non-existent headers
4896   # can be detected and how.
4897   cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #include <ac_nonexistent.h>
4904 _ACEOF
4905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4907   ac_status=$?
4908   grep -v '^ *+' conftest.er1 >conftest.err
4909   rm -f conftest.er1
4910   cat conftest.err >&5
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } >/dev/null; then
4913   if test -s conftest.err; then
4914     ac_cpp_err=$ac_c_preproc_warn_flag
4915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916   else
4917     ac_cpp_err=
4918   fi
4919 else
4920   ac_cpp_err=yes
4921 fi
4922 if test -z "$ac_cpp_err"; then
4923   # Broken: success on invalid input.
4924 continue
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929   # Passes both tests.
4930 ac_preproc_ok=:
4931 break
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
4935 done
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then
4939   break
4940 fi
4941
4942     done
4943     ac_cv_prog_CPP=$CPP
4944
4945 fi
4946   CPP=$ac_cv_prog_CPP
4947 else
4948   ac_cv_prog_CPP=$CPP
4949 fi
4950 echo "$as_me:$LINENO: result: $CPP" >&5
4951 echo "${ECHO_T}$CPP" >&6
4952 ac_preproc_ok=false
4953 for ac_c_preproc_warn_flag in '' yes
4954 do
4955   # Use a header file that comes with gcc, so configuring glibc
4956   # with a fresh cross-compiler works.
4957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958   # <limits.h> exists even on freestanding compilers.
4959   # On the NeXT, cc -E runs the code through the compiler's parser,
4960   # not just through cpp. "Syntax error" is here to catch this case.
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #ifdef __STDC__
4968 # include <limits.h>
4969 #else
4970 # include <assert.h>
4971 #endif
4972                      Syntax error
4973 _ACEOF
4974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } >/dev/null; then
4982   if test -s conftest.err; then
4983     ac_cpp_err=$ac_c_preproc_warn_flag
4984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4985   else
4986     ac_cpp_err=
4987   fi
4988 else
4989   ac_cpp_err=yes
4990 fi
4991 if test -z "$ac_cpp_err"; then
4992   :
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997   # Broken: fails on valid input.
4998 continue
4999 fi
5000 rm -f conftest.err conftest.$ac_ext
5001
5002   # OK, works on sane cases.  Now check whether non-existent headers
5003   # can be detected and how.
5004   cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5014   ac_status=$?
5015   grep -v '^ *+' conftest.er1 >conftest.err
5016   rm -f conftest.er1
5017   cat conftest.err >&5
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); } >/dev/null; then
5020   if test -s conftest.err; then
5021     ac_cpp_err=$ac_c_preproc_warn_flag
5022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5023   else
5024     ac_cpp_err=
5025   fi
5026 else
5027   ac_cpp_err=yes
5028 fi
5029 if test -z "$ac_cpp_err"; then
5030   # Broken: success on invalid input.
5031 continue
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036   # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5039 fi
5040 rm -f conftest.err conftest.$ac_ext
5041
5042 done
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then
5046   :
5047 else
5048   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5051 See \`config.log' for more details." >&2;}
5052    { (exit 1); exit 1; }; }
5053 fi
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060
5061
5062 echo "$as_me:$LINENO: checking for egrep" >&5
5063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5064 if test "${ac_cv_prog_egrep+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5068     then ac_cv_prog_egrep='grep -E'
5069     else ac_cv_prog_egrep='egrep'
5070     fi
5071 fi
5072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5074  EGREP=$ac_cv_prog_egrep
5075
5076
5077 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5079 if test "${ac_cv_header_stdc+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #include <stdlib.h>
5089 #include <stdarg.h>
5090 #include <string.h>
5091 #include <float.h>
5092
5093 int
5094 main ()
5095 {
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -z "$ac_c_werror_flag"
5111                          || test ! -s conftest.err'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; } &&
5117          { ac_try='test -s conftest.$ac_objext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_cv_header_stdc=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_cv_header_stdc=no
5129 fi
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131
5132 if test $ac_cv_header_stdc = yes; then
5133   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144   $EGREP "memchr" >/dev/null 2>&1; then
5145   :
5146 else
5147   ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "free" >/dev/null 2>&1; then
5166   :
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176   if test "$cross_compiling" = yes; then
5177   :
5178 else
5179   cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 #include <ctype.h>
5186 #if ((' ' & 0x0FF) == 0x020)
5187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189 #else
5190 # define ISLOWER(c) \
5191                    (('a' <= (c) && (c) <= 'i') \
5192                      || ('j' <= (c) && (c) <= 'r') \
5193                      || ('s' <= (c) && (c) <= 'z'))
5194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5195 #endif
5196
5197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 int
5199 main ()
5200 {
5201   int i;
5202   for (i = 0; i < 256; i++)
5203     if (XOR (islower (i), ISLOWER (i))
5204         || toupper (i) != TOUPPER (i))
5205       exit(2);
5206   exit (0);
5207 }
5208 _ACEOF
5209 rm -f conftest$ac_exeext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5211   (eval $ac_link) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   :
5221 else
5222   echo "$as_me: program exited with status $ac_status" >&5
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ( exit $ac_status )
5227 ac_cv_header_stdc=no
5228 fi
5229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 fi
5231 fi
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5234 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5235 if test $ac_cv_header_stdc = yes; then
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define STDC_HEADERS 1
5239 _ACEOF
5240
5241 fi
5242
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5254                   inttypes.h stdint.h unistd.h
5255 do
5256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 $ac_includes_default
5269
5270 #include <$ac_header>
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274   (eval $ac_compile) 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } &&
5281          { ac_try='test -z "$ac_c_werror_flag"
5282                          || test ! -s conftest.err'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; } &&
5288          { ac_try='test -s conftest.$ac_objext'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   eval "$as_ac_Header=yes"
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 eval "$as_ac_Header=no"
5300 fi
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 fi
5303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5306   cat >>confdefs.h <<_ACEOF
5307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5308 _ACEOF
5309
5310 fi
5311
5312 done
5313
5314
5315
5316 for ac_header in dlfcn.h
5317 do
5318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5320   echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 fi
5325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5327 else
5328   # Is the header compilable?
5329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 $ac_includes_default
5338 #include <$ac_header>
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342   (eval $ac_compile) 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -z "$ac_c_werror_flag"
5350                          || test ! -s conftest.err'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; } &&
5356          { ac_try='test -s conftest.$ac_objext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_header_compiler=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_header_compiler=no
5368 fi
5369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5371 echo "${ECHO_T}$ac_header_compiler" >&6
5372
5373 # Is the header present?
5374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h.  */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h.  */
5382 #include <$ac_header>
5383 _ACEOF
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } >/dev/null; then
5392   if test -s conftest.err; then
5393     ac_cpp_err=$ac_c_preproc_warn_flag
5394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5395   else
5396     ac_cpp_err=
5397   fi
5398 else
5399   ac_cpp_err=yes
5400 fi
5401 if test -z "$ac_cpp_err"; then
5402   ac_header_preproc=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407   ac_header_preproc=no
5408 fi
5409 rm -f conftest.err conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5411 echo "${ECHO_T}$ac_header_preproc" >&6
5412
5413 # So?  What about this header?
5414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5415   yes:no: )
5416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5420     ac_header_preproc=yes
5421     ;;
5422   no:yes:* )
5423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5435     (
5436       cat <<\_ASBOX
5437 ## -------------------------------- ##
5438 ## Report this to petr.smolik@wo.cz ##
5439 ## -------------------------------- ##
5440 _ASBOX
5441     ) |
5442       sed "s/^/$as_me: WARNING:     /" >&2
5443     ;;
5444 esac
5445 echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   eval "$as_ac_Header=\$ac_header_preproc"
5451 fi
5452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5454
5455 fi
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457   cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459 _ACEOF
5460
5461 fi
5462
5463 done
5464
5465
5466
5467
5468
5469
5470 # Only perform the check for file, if the check method requires it
5471 case $deplibs_check_method in
5472 file_magic*)
5473   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5474     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5475 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5476 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   case $MAGIC_CMD in
5480   /*)
5481   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5482   ;;
5483   ?:/*)
5484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5485   ;;
5486   *)
5487   ac_save_MAGIC_CMD="$MAGIC_CMD"
5488   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5489   ac_dummy="/usr/bin:$PATH"
5490   for ac_dir in $ac_dummy; do
5491     test -z "$ac_dir" && ac_dir=.
5492     if test -f $ac_dir/${ac_tool_prefix}file; then
5493       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5494       if test -n "$file_magic_test_file"; then
5495         case $deplibs_check_method in
5496         "file_magic "*)
5497           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5498           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5499           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5500             egrep "$file_magic_regex" > /dev/null; then
5501             :
5502           else
5503             cat <<EOF 1>&2
5504
5505 *** Warning: the command libtool uses to detect shared libraries,
5506 *** $file_magic_cmd, produces output that libtool cannot recognize.
5507 *** The result is that libtool may fail to recognize shared libraries
5508 *** as such.  This will affect the creation of libtool libraries that
5509 *** depend on shared libraries, but programs linked with such libtool
5510 *** libraries will work regardless of this problem.  Nevertheless, you
5511 *** may want to report the problem to your system manager and/or to
5512 *** bug-libtool@gnu.org
5513
5514 EOF
5515           fi ;;
5516         esac
5517       fi
5518       break
5519     fi
5520   done
5521   IFS="$ac_save_ifs"
5522   MAGIC_CMD="$ac_save_MAGIC_CMD"
5523   ;;
5524 esac
5525 fi
5526
5527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5528 if test -n "$MAGIC_CMD"; then
5529   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5530 echo "${ECHO_T}$MAGIC_CMD" >&6
5531 else
5532   echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6
5534 fi
5535
5536 if test -z "$lt_cv_path_MAGIC_CMD"; then
5537   if test -n "$ac_tool_prefix"; then
5538     echo "$as_me:$LINENO: checking for file" >&5
5539 echo $ECHO_N "checking for file... $ECHO_C" >&6
5540 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   case $MAGIC_CMD in
5544   /*)
5545   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5546   ;;
5547   ?:/*)
5548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5549   ;;
5550   *)
5551   ac_save_MAGIC_CMD="$MAGIC_CMD"
5552   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5553   ac_dummy="/usr/bin:$PATH"
5554   for ac_dir in $ac_dummy; do
5555     test -z "$ac_dir" && ac_dir=.
5556     if test -f $ac_dir/file; then
5557       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5558       if test -n "$file_magic_test_file"; then
5559         case $deplibs_check_method in
5560         "file_magic "*)
5561           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5562           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5563           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5564             egrep "$file_magic_regex" > /dev/null; then
5565             :
5566           else
5567             cat <<EOF 1>&2
5568
5569 *** Warning: the command libtool uses to detect shared libraries,
5570 *** $file_magic_cmd, produces output that libtool cannot recognize.
5571 *** The result is that libtool may fail to recognize shared libraries
5572 *** as such.  This will affect the creation of libtool libraries that
5573 *** depend on shared libraries, but programs linked with such libtool
5574 *** libraries will work regardless of this problem.  Nevertheless, you
5575 *** may want to report the problem to your system manager and/or to
5576 *** bug-libtool@gnu.org
5577
5578 EOF
5579           fi ;;
5580         esac
5581       fi
5582       break
5583     fi
5584   done
5585   IFS="$ac_save_ifs"
5586   MAGIC_CMD="$ac_save_MAGIC_CMD"
5587   ;;
5588 esac
5589 fi
5590
5591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5592 if test -n "$MAGIC_CMD"; then
5593   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5594 echo "${ECHO_T}$MAGIC_CMD" >&6
5595 else
5596   echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5598 fi
5599
5600   else
5601     MAGIC_CMD=:
5602   fi
5603 fi
5604
5605   fi
5606   ;;
5607 esac
5608
5609 if test -n "$ac_tool_prefix"; then
5610   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5612 echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5614 if test "${ac_cv_prog_RANLIB+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   if test -n "$RANLIB"; then
5618   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for ac_exec_ext in '' $ac_executable_extensions; do
5626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632 done
5633
5634 fi
5635 fi
5636 RANLIB=$ac_cv_prog_RANLIB
5637 if test -n "$RANLIB"; then
5638   echo "$as_me:$LINENO: result: $RANLIB" >&5
5639 echo "${ECHO_T}$RANLIB" >&6
5640 else
5641   echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5643 fi
5644
5645 fi
5646 if test -z "$ac_cv_prog_RANLIB"; then
5647   ac_ct_RANLIB=$RANLIB
5648   # Extract the first word of "ranlib", so it can be a program name with args.
5649 set dummy ranlib; ac_word=$2
5650 echo "$as_me:$LINENO: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   if test -n "$ac_ct_RANLIB"; then
5656   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663   for ac_exec_ext in '' $ac_executable_extensions; do
5664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665     ac_cv_prog_ac_ct_RANLIB="ranlib"
5666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670 done
5671
5672   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5673 fi
5674 fi
5675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5676 if test -n "$ac_ct_RANLIB"; then
5677   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5678 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5679 else
5680   echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 fi
5683
5684   RANLIB=$ac_ct_RANLIB
5685 else
5686   RANLIB="$ac_cv_prog_RANLIB"
5687 fi
5688
5689 if test -n "$ac_tool_prefix"; then
5690   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}strip; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_STRIP+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test -n "$STRIP"; then
5698   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705   for ac_exec_ext in '' $ac_executable_extensions; do
5706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712 done
5713
5714 fi
5715 fi
5716 STRIP=$ac_cv_prog_STRIP
5717 if test -n "$STRIP"; then
5718   echo "$as_me:$LINENO: result: $STRIP" >&5
5719 echo "${ECHO_T}$STRIP" >&6
5720 else
5721   echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5723 fi
5724
5725 fi
5726 if test -z "$ac_cv_prog_STRIP"; then
5727   ac_ct_STRIP=$STRIP
5728   # Extract the first word of "strip", so it can be a program name with args.
5729 set dummy strip; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$ac_ct_STRIP"; then
5736   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_ac_ct_STRIP="strip"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5753 fi
5754 fi
5755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5756 if test -n "$ac_ct_STRIP"; then
5757   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5758 echo "${ECHO_T}$ac_ct_STRIP" >&6
5759 else
5760   echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5762 fi
5763
5764   STRIP=$ac_ct_STRIP
5765 else
5766   STRIP="$ac_cv_prog_STRIP"
5767 fi
5768
5769
5770 enable_dlopen=no
5771 enable_win32_dll=no
5772
5773 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5774 if test "${enable_libtool_lock+set}" = set; then
5775   enableval="$enable_libtool_lock"
5776
5777 fi;
5778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5779
5780 # Some flags need to be propagated to the compiler or linker for good
5781 # libtool support.
5782 case $host in
5783 *-*-irix6*)
5784   # Find out which ABI we are using.
5785   echo '#line 5785 "configure"' > conftest.$ac_ext
5786   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787   (eval $ac_compile) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; then
5791     case `/usr/bin/file conftest.$ac_objext` in
5792     *32-bit*)
5793       LD="${LD-ld} -32"
5794       ;;
5795     *N32*)
5796       LD="${LD-ld} -n32"
5797       ;;
5798     *64-bit*)
5799       LD="${LD-ld} -64"
5800       ;;
5801     esac
5802   fi
5803   rm -rf conftest*
5804   ;;
5805
5806 *-*-linux*)
5807   # Test if the compiler is 64bit
5808   echo 'int i;' > conftest.$ac_ext
5809   lt_cv_cc_64bit_output=no
5810   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811   (eval $ac_compile) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; then
5815     case `/usr/bin/file conftest.$ac_objext` in
5816     *"ELF 64"*)
5817       lt_cv_cc_64bit_output=yes
5818       ;;
5819     esac
5820   fi
5821   rm -rf conftest*
5822   ;;
5823
5824 *-*-sco3.2v5*)
5825   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5826   SAVE_CFLAGS="$CFLAGS"
5827   CFLAGS="$CFLAGS -belf"
5828   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5829 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5830 if test "${lt_cv_cc_needs_belf+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833
5834
5835      ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841      cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847
5848 int
5849 main ()
5850 {
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858   (eval $ac_link) 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_c_werror_flag"
5866                          || test ! -s conftest.err'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest$ac_exeext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   lt_cv_cc_needs_belf=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 lt_cv_cc_needs_belf=no
5884 fi
5885 rm -f conftest.err conftest.$ac_objext \
5886       conftest$ac_exeext conftest.$ac_ext
5887      ac_ext=c
5888 ac_cpp='$CPP $CPPFLAGS'
5889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892
5893 fi
5894 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5895 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5896   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5897     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5898     CFLAGS="$SAVE_CFLAGS"
5899   fi
5900   ;;
5901
5902
5903 esac
5904
5905 # Sed substitution that helps us do robust quoting.  It backslashifies
5906 # metacharacters that are still active within double-quoted strings.
5907 Xsed='sed -e s/^X//'
5908 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5909
5910 # Same as above, but do not quote variable references.
5911 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5912
5913 # Sed substitution to delay expansion of an escaped shell variable in a
5914 # double_quote_subst'ed string.
5915 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5916
5917 # Constants:
5918 rm="rm -f"
5919
5920 # Global variables:
5921 default_ofile=libtool
5922 can_build_shared=yes
5923
5924 # All known linkers require a `.a' archive for static linking (except M$VC,
5925 # which needs '.lib').
5926 libext=a
5927 ltmain="$ac_aux_dir/ltmain.sh"
5928 ofile="$default_ofile"
5929 with_gnu_ld="$lt_cv_prog_gnu_ld"
5930 need_locks="$enable_libtool_lock"
5931
5932 old_CC="$CC"
5933 old_CFLAGS="$CFLAGS"
5934
5935 # Set sane defaults for various variables
5936 test -z "$AR" && AR=ar
5937 test -z "$AR_FLAGS" && AR_FLAGS=cru
5938 test -z "$AS" && AS=as
5939 test -z "$CC" && CC=cc
5940 test -z "$DLLTOOL" && DLLTOOL=dlltool
5941 test -z "$LD" && LD=ld
5942 test -z "$LN_S" && LN_S="ln -s"
5943 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5944 test -z "$NM" && NM=nm
5945 test -z "$OBJDUMP" && OBJDUMP=objdump
5946 test -z "$RANLIB" && RANLIB=:
5947 test -z "$STRIP" && STRIP=:
5948 test -z "$ac_objext" && ac_objext=o
5949
5950 if test x"$host" != x"$build"; then
5951   ac_tool_prefix=${host_alias}-
5952 else
5953   ac_tool_prefix=
5954 fi
5955
5956 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5957 case $host_os in
5958 linux-gnu*) ;;
5959 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5960 esac
5961
5962 case $host_os in
5963 aix3*)
5964   # AIX sometimes has problems with the GCC collect2 program.  For some
5965   # reason, if we set the COLLECT_NAMES environment variable, the problems
5966   # vanish in a puff of smoke.
5967   if test "X${COLLECT_NAMES+set}" != Xset; then
5968     COLLECT_NAMES=
5969     export COLLECT_NAMES
5970   fi
5971   ;;
5972 esac
5973
5974 # Determine commands to create old-style static archives.
5975 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5976 old_postinstall_cmds='chmod 644 $oldlib'
5977 old_postuninstall_cmds=
5978
5979 if test -n "$RANLIB"; then
5980   case $host_os in
5981   openbsd*)
5982     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5983     ;;
5984   *)
5985     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5986     ;;
5987   esac
5988   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5989 fi
5990
5991 # Allow CC to be a program name with arguments.
5992 set dummy $CC
5993 compiler="$2"
5994
5995 echo "$as_me:$LINENO: checking for objdir" >&5
5996 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5997 rm -f .libs 2>/dev/null
5998 mkdir .libs 2>/dev/null
5999 if test -d .libs; then
6000   objdir=.libs
6001 else
6002   # MS-DOS does not allow filenames that begin with a dot.
6003   objdir=_libs
6004 fi
6005 rmdir .libs 2>/dev/null
6006 echo "$as_me:$LINENO: result: $objdir" >&5
6007 echo "${ECHO_T}$objdir" >&6
6008
6009
6010
6011 # Check whether --with-pic or --without-pic was given.
6012 if test "${with_pic+set}" = set; then
6013   withval="$with_pic"
6014   pic_mode="$withval"
6015 else
6016   pic_mode=default
6017 fi;
6018 test -z "$pic_mode" && pic_mode=default
6019
6020 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6021 # in isolation, and that seeing it set (from the cache) indicates that
6022 # the associated values are set (in the cache) correctly too.
6023 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6025 if test "${lt_cv_prog_cc_pic+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028    lt_cv_prog_cc_pic=
6029   lt_cv_prog_cc_shlib=
6030   lt_cv_prog_cc_wl=
6031   lt_cv_prog_cc_static=
6032   lt_cv_prog_cc_no_builtin=
6033   lt_cv_prog_cc_can_build_shared=$can_build_shared
6034
6035   if test "$GCC" = yes; then
6036     lt_cv_prog_cc_wl='-Wl,'
6037     lt_cv_prog_cc_static='-static'
6038
6039     case $host_os in
6040     aix*)
6041       # Below there is a dirty hack to force normal static linking with -ldl
6042       # The problem is because libdl dynamically linked with both libc and
6043       # libC (AIX C++ library), which obviously doesn't included in libraries
6044       # list by gcc. This cause undefined symbols with -static flags.
6045       # This hack allows C programs to be linked with "-static -ldl", but
6046       # not sure about C++ programs.
6047       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6048       ;;
6049     amigaos*)
6050       # FIXME: we need at least 68020 code to build shared libraries, but
6051       # adding the `-m68020' flag to GCC prevents building anything better,
6052       # like `-m68040'.
6053       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6054       ;;
6055     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6056       # PIC is the default for these OSes.
6057       ;;
6058     darwin* | rhapsody*)
6059       # PIC is the default on this platform
6060       # Common symbols not allowed in MH_DYLIB files
6061       lt_cv_prog_cc_pic='-fno-common'
6062       ;;
6063     cygwin* | mingw* | pw32* | os2*)
6064       # This hack is so that the source file can tell whether it is being
6065       # built for inclusion in a dll (and should export symbols for example).
6066       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6067       ;;
6068     sysv4*MP*)
6069       if test -d /usr/nec; then
6070          lt_cv_prog_cc_pic=-Kconform_pic
6071       fi
6072       ;;
6073     *)
6074       lt_cv_prog_cc_pic='-fPIC'
6075       ;;
6076     esac
6077   else
6078     # PORTME Check for PIC flags for the system compiler.
6079     case $host_os in
6080     aix3* | aix4* | aix5*)
6081       lt_cv_prog_cc_wl='-Wl,'
6082       # All AIX code is PIC.
6083       if test "$host_cpu" = ia64; then
6084         # AIX 5 now supports IA64 processor
6085         lt_cv_prog_cc_static='-Bstatic'
6086       else
6087         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6088       fi
6089       ;;
6090
6091     hpux9* | hpux10* | hpux11*)
6092       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6093       lt_cv_prog_cc_wl='-Wl,'
6094       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6095       lt_cv_prog_cc_pic='+Z'
6096       ;;
6097
6098     irix5* | irix6* | nonstopux*)
6099       lt_cv_prog_cc_wl='-Wl,'
6100       lt_cv_prog_cc_static='-non_shared'
6101       # PIC (with -KPIC) is the default.
6102       ;;
6103
6104     cygwin* | mingw* | pw32* | os2*)
6105       # This hack is so that the source file can tell whether it is being
6106       # built for inclusion in a dll (and should export symbols for example).
6107       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6108       ;;
6109
6110     newsos6)
6111       lt_cv_prog_cc_pic='-KPIC'
6112       lt_cv_prog_cc_static='-Bstatic'
6113       ;;
6114
6115     osf3* | osf4* | osf5*)
6116       # All OSF/1 code is PIC.
6117       lt_cv_prog_cc_wl='-Wl,'
6118       lt_cv_prog_cc_static='-non_shared'
6119       ;;
6120
6121     sco3.2v5*)
6122       lt_cv_prog_cc_pic='-Kpic'
6123       lt_cv_prog_cc_static='-dn'
6124       lt_cv_prog_cc_shlib='-belf'
6125       ;;
6126
6127     solaris*)
6128       lt_cv_prog_cc_pic='-KPIC'
6129       lt_cv_prog_cc_static='-Bstatic'
6130       lt_cv_prog_cc_wl='-Wl,'
6131       ;;
6132
6133     sunos4*)
6134       lt_cv_prog_cc_pic='-PIC'
6135       lt_cv_prog_cc_static='-Bstatic'
6136       lt_cv_prog_cc_wl='-Qoption ld '
6137       ;;
6138
6139     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6140       lt_cv_prog_cc_pic='-KPIC'
6141       lt_cv_prog_cc_static='-Bstatic'
6142       lt_cv_prog_cc_wl='-Wl,'
6143       ;;
6144
6145     uts4*)
6146       lt_cv_prog_cc_pic='-pic'
6147       lt_cv_prog_cc_static='-Bstatic'
6148       ;;
6149
6150     sysv4*MP*)
6151       if test -d /usr/nec ;then
6152         lt_cv_prog_cc_pic='-Kconform_pic'
6153         lt_cv_prog_cc_static='-Bstatic'
6154       fi
6155       ;;
6156
6157     *)
6158       lt_cv_prog_cc_can_build_shared=no
6159       ;;
6160     esac
6161   fi
6162
6163 fi
6164
6165 if test -z "$lt_cv_prog_cc_pic"; then
6166   echo "$as_me:$LINENO: result: none" >&5
6167 echo "${ECHO_T}none" >&6
6168 else
6169   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6170 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6171
6172   # Check to make sure the pic_flag actually works.
6173   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6174 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6175   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178       save_CFLAGS="$CFLAGS"
6179     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6180     cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186
6187 int
6188 main ()
6189 {
6190
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197   (eval $ac_compile) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest.$ac_objext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217         case $host_os in
6218       hpux9* | hpux10* | hpux11*)
6219         # On HP-UX, both CC and GCC only warn that PIC is supported... then
6220         # they create non-PIC objects.  So, if there were any warnings, we
6221         # assume that PIC is not supported.
6222         if test -s conftest.err; then
6223           lt_cv_prog_cc_pic_works=no
6224         else
6225           lt_cv_prog_cc_pic_works=yes
6226         fi
6227         ;;
6228       *)
6229         lt_cv_prog_cc_pic_works=yes
6230         ;;
6231       esac
6232
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237       lt_cv_prog_cc_pic_works=no
6238
6239 fi
6240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241     CFLAGS="$save_CFLAGS"
6242
6243 fi
6244
6245
6246   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6247     lt_cv_prog_cc_pic=
6248     lt_cv_prog_cc_can_build_shared=no
6249   else
6250     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6251   fi
6252
6253   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6254 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6255 fi
6256
6257 # Check for any special shared library compilation flags.
6258 if test -n "$lt_cv_prog_cc_shlib"; then
6259   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6260 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6261   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6262   else
6263    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6264 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6265     lt_cv_prog_cc_can_build_shared=no
6266   fi
6267 fi
6268
6269 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6270 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6271 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274     lt_cv_prog_cc_static_works=no
6275   save_LDFLAGS="$LDFLAGS"
6276   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6277   cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h.  */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h.  */
6283
6284 int
6285 main ()
6286 {
6287
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294   (eval $ac_link) 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -z "$ac_c_werror_flag"
6302                          || test ! -s conftest.err'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; } &&
6308          { ac_try='test -s conftest$ac_exeext'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; }; then
6314   lt_cv_prog_cc_static_works=yes
6315 else
6316   echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 fi
6320 rm -f conftest.err conftest.$ac_objext \
6321       conftest$ac_exeext conftest.$ac_ext
6322   LDFLAGS="$save_LDFLAGS"
6323
6324 fi
6325
6326
6327 # Belt *and* braces to stop my trousers falling down:
6328 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6329 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6330 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6331
6332 pic_flag="$lt_cv_prog_cc_pic"
6333 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6334 wl="$lt_cv_prog_cc_wl"
6335 link_static_flag="$lt_cv_prog_cc_static"
6336 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6337 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6338
6339
6340 # Check to see if options -o and -c are simultaneously supported by compiler
6341 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6342 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6343 if test "${lt_cv_compiler_c_o+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346
6347 $rm -r conftest 2>/dev/null
6348 mkdir conftest
6349 cd conftest
6350 echo "int some_variable = 0;" > conftest.$ac_ext
6351 mkdir out
6352 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6353 # that will create temporary files in the current directory regardless of
6354 # the output directory.  Thus, making CWD read-only will cause this test
6355 # to fail, enabling locking or at least warning the user not to do parallel
6356 # builds.
6357 chmod -w .
6358 save_CFLAGS="$CFLAGS"
6359 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6360 compiler_c_o=no
6361 if { (eval echo configure:6361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6362   # The compiler can only warn and ignore the option if not recognized
6363   # So say no if there are warnings
6364   if test -s out/conftest.err; then
6365     lt_cv_compiler_c_o=no
6366   else
6367     lt_cv_compiler_c_o=yes
6368   fi
6369 else
6370   # Append any errors to the config.log.
6371   cat out/conftest.err 1>&5
6372   lt_cv_compiler_c_o=no
6373 fi
6374 CFLAGS="$save_CFLAGS"
6375 chmod u+w .
6376 $rm conftest* out/*
6377 rmdir out
6378 cd ..
6379 rmdir conftest
6380 $rm -r conftest 2>/dev/null
6381
6382 fi
6383
6384 compiler_c_o=$lt_cv_compiler_c_o
6385 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6386 echo "${ECHO_T}$compiler_c_o" >&6
6387
6388 if test x"$compiler_c_o" = x"yes"; then
6389   # Check to see if we can write to a .lo
6390   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6391 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6392   if test "${lt_cv_compiler_o_lo+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395
6396   lt_cv_compiler_o_lo=no
6397   save_CFLAGS="$CFLAGS"
6398   CFLAGS="$CFLAGS -c -o conftest.lo"
6399   save_objext="$ac_objext"
6400   ac_objext=lo
6401   cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407
6408 int
6409 main ()
6410 {
6411 int some_variable = 0;
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418   (eval $ac_compile) 2>conftest.er1
6419   ac_status=$?
6420   grep -v '^ *+' conftest.er1 >conftest.err
6421   rm -f conftest.er1
6422   cat conftest.err >&5
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); } &&
6425          { ac_try='test -z "$ac_c_werror_flag"
6426                          || test ! -s conftest.err'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; } &&
6432          { ac_try='test -s conftest.$ac_objext'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; }; then
6438       # The compiler can only warn and ignore the option if not recognized
6439     # So say no if there are warnings
6440     if test -s conftest.err; then
6441       lt_cv_compiler_o_lo=no
6442     else
6443       lt_cv_compiler_o_lo=yes
6444     fi
6445
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452   ac_objext="$save_objext"
6453   CFLAGS="$save_CFLAGS"
6454
6455 fi
6456
6457   compiler_o_lo=$lt_cv_compiler_o_lo
6458   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6459 echo "${ECHO_T}$compiler_o_lo" >&6
6460 else
6461   compiler_o_lo=no
6462 fi
6463
6464 # Check to see if we can do hard links to lock some files if needed
6465 hard_links="nottested"
6466 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6467   # do not overwrite the value of need_locks provided by the user
6468   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6469 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6470   hard_links=yes
6471   $rm conftest*
6472   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6473   touch conftest.a
6474   ln conftest.a conftest.b 2>&5 || hard_links=no
6475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6476   echo "$as_me:$LINENO: result: $hard_links" >&5
6477 echo "${ECHO_T}$hard_links" >&6
6478   if test "$hard_links" = no; then
6479     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6480 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6481     need_locks=warn
6482   fi
6483 else
6484   need_locks=no
6485 fi
6486
6487 if test "$GCC" = yes; then
6488   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6489   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6490 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6491   echo "int some_variable = 0;" > conftest.$ac_ext
6492   save_CFLAGS="$CFLAGS"
6493   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6494   compiler_rtti_exceptions=no
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501
6502 int
6503 main ()
6504 {
6505 int some_variable = 0;
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512   (eval $ac_compile) 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } &&
6519          { ac_try='test -z "$ac_c_werror_flag"
6520                          || test ! -s conftest.err'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; } &&
6526          { ac_try='test -s conftest.$ac_objext'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; }; then
6532       # The compiler can only warn and ignore the option if not recognized
6533     # So say no if there are warnings
6534     if test -s conftest.err; then
6535       compiler_rtti_exceptions=no
6536     else
6537       compiler_rtti_exceptions=yes
6538     fi
6539
6540 else
6541   echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 fi
6545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6546   CFLAGS="$save_CFLAGS"
6547   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6548 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6549
6550   if test "$compiler_rtti_exceptions" = "yes"; then
6551     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6552   else
6553     no_builtin_flag=' -fno-builtin'
6554   fi
6555 fi
6556
6557 # See if the linker supports building shared libraries.
6558 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6559 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6560
6561 allow_undefined_flag=
6562 no_undefined_flag=
6563 need_lib_prefix=unknown
6564 need_version=unknown
6565 # when you set need_version to no, make sure it does not cause -set_version
6566 # flags to be left without arguments
6567 archive_cmds=
6568 archive_expsym_cmds=
6569 old_archive_from_new_cmds=
6570 old_archive_from_expsyms_cmds=
6571 export_dynamic_flag_spec=
6572 whole_archive_flag_spec=
6573 thread_safe_flag_spec=
6574 hardcode_into_libs=no
6575 hardcode_libdir_flag_spec=
6576 hardcode_libdir_separator=
6577 hardcode_direct=no
6578 hardcode_minus_L=no
6579 hardcode_shlibpath_var=unsupported
6580 runpath_var=
6581 link_all_deplibs=unknown
6582 always_export_symbols=no
6583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6584 # include_expsyms should be a list of space-separated symbols to be *always*
6585 # included in the symbol list
6586 include_expsyms=
6587 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6588 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6589 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6590 # as well as any symbol that contains `d'.
6591 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6593 # platforms (ab)use it in PIC code, but their linkers get confused if
6594 # the symbol is explicitly referenced.  Since portable code cannot
6595 # rely on this symbol name, it's probably fine to never include it in
6596 # preloaded symbol tables.
6597 extract_expsyms_cmds=
6598
6599 case $host_os in
6600 cygwin* | mingw* | pw32*)
6601   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6602   # When not using gcc, we currently assume that we are using
6603   # Microsoft Visual C++.
6604   if test "$GCC" != yes; then
6605     with_gnu_ld=no
6606   fi
6607   ;;
6608 openbsd*)
6609   with_gnu_ld=no
6610   ;;
6611 esac
6612
6613 ld_shlibs=yes
6614 if test "$with_gnu_ld" = yes; then
6615   # If archive_cmds runs LD, not CC, wlarc should be empty
6616   wlarc='${wl}'
6617
6618   # See if GNU ld supports shared libraries.
6619   case $host_os in
6620   aix3* | aix4* | aix5*)
6621     # On AIX, the GNU linker is very broken
6622     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6623     ld_shlibs=no
6624     cat <<EOF 1>&2
6625
6626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6627 *** to be unable to reliably create shared libraries on AIX.
6628 *** Therefore, libtool is disabling shared libraries support.  If you
6629 *** really care for shared libraries, you may want to modify your PATH
6630 *** so that a non-GNU linker is found, and then restart.
6631
6632 EOF
6633     ;;
6634
6635   amigaos*)
6636     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6637     hardcode_libdir_flag_spec='-L$libdir'
6638     hardcode_minus_L=yes
6639
6640     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6641     # that the semantics of dynamic libraries on AmigaOS, at least up
6642     # to version 4, is to share data among multiple programs linked
6643     # with the same dynamic library.  Since this doesn't match the
6644     # behavior of shared libraries on other platforms, we can use
6645     # them.
6646     ld_shlibs=no
6647     ;;
6648
6649   beos*)
6650     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6651       allow_undefined_flag=unsupported
6652       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6653       # support --undefined.  This deserves some investigation.  FIXME
6654       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6655     else
6656       ld_shlibs=no
6657     fi
6658     ;;
6659
6660   cygwin* | mingw* | pw32*)
6661     # hardcode_libdir_flag_spec is actually meaningless, as there is
6662     # no search path for DLLs.
6663     hardcode_libdir_flag_spec='-L$libdir'
6664     allow_undefined_flag=unsupported
6665     always_export_symbols=yes
6666
6667     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6668       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6669       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6670       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6671       else $CC -o impgen impgen.c ; fi)~
6672       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6673
6674     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6675
6676     # cygwin and mingw dlls have different entry points and sets of symbols
6677     # to exclude.
6678     # FIXME: what about values for MSVC?
6679     dll_entry=__cygwin_dll_entry@12
6680     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6681     case $host_os in
6682     mingw*)
6683       # mingw values
6684       dll_entry=_DllMainCRTStartup@12
6685       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6686       ;;
6687     esac
6688
6689     # mingw and cygwin differ, and it's simplest to just exclude the union
6690     # of the two symbol sets.
6691     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6692
6693     # recent cygwin and mingw systems supply a stub DllMain which the user
6694     # can override, but on older systems we have to supply one (in ltdll.c)
6695     if test "x$lt_cv_need_dllmain" = "xyes"; then
6696       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6697       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6698         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6699     else
6700       ltdll_obj=
6701       ltdll_cmds=
6702     fi
6703
6704     # Extract the symbol export list from an `--export-all' def file,
6705     # then regenerate the def file from the symbol export list, so that
6706     # the compiled dll only exports the symbol export list.
6707     # Be careful not to strip the DATA tag left be newer dlltools.
6708     export_symbols_cmds="$ltdll_cmds"'
6709       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6710       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6711
6712     # If the export-symbols file already is a .def file (1st line
6713     # is EXPORTS), use it as is.
6714     # If DATA tags from a recent dlltool are present, honour them!
6715     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6716         cp $export_symbols $output_objdir/$soname-def;
6717       else
6718         echo EXPORTS > $output_objdir/$soname-def;
6719         _lt_hint=1;
6720         cat $export_symbols | while read symbol; do
6721          set dummy \$symbol;
6722          case \$# in
6723            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6724            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6725            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6726          esac;
6727          _lt_hint=`expr 1 + \$_lt_hint`;
6728         done;
6729       fi~
6730       '"$ltdll_cmds"'
6731       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6732       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6733       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6734       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6735       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6736     ;;
6737
6738   netbsd*)
6739     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6740       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6741       wlarc=
6742     else
6743       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6745     fi
6746     ;;
6747
6748   solaris* | sysv5*)
6749     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6750       ld_shlibs=no
6751       cat <<EOF 1>&2
6752
6753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6754 *** create shared libraries on Solaris systems.  Therefore, libtool
6755 *** is disabling shared libraries support.  We urge you to upgrade GNU
6756 *** binutils to release 2.9.1 or newer.  Another option is to modify
6757 *** your PATH or compiler configuration so that the native linker is
6758 *** used, and then restart.
6759
6760 EOF
6761     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6762       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764     else
6765       ld_shlibs=no
6766     fi
6767     ;;
6768
6769   sunos4*)
6770     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6771     wlarc=
6772     hardcode_direct=yes
6773     hardcode_shlibpath_var=no
6774     ;;
6775
6776   *)
6777     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6778       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6780     else
6781       ld_shlibs=no
6782     fi
6783     ;;
6784   esac
6785
6786   if test "$ld_shlibs" = yes; then
6787     runpath_var=LD_RUN_PATH
6788     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6789     export_dynamic_flag_spec='${wl}--export-dynamic'
6790     case $host_os in
6791     cygwin* | mingw* | pw32*)
6792       # dlltool doesn't understand --whole-archive et. al.
6793       whole_archive_flag_spec=
6794       ;;
6795     *)
6796       # ancient GNU ld didn't support --whole-archive et. al.
6797       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6798         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6799       else
6800         whole_archive_flag_spec=
6801       fi
6802       ;;
6803     esac
6804   fi
6805 else
6806   # PORTME fill in a description of your system's linker (not GNU ld)
6807   case $host_os in
6808   aix3*)
6809     allow_undefined_flag=unsupported
6810     always_export_symbols=yes
6811     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6812     # Note: this linker hardcodes the directories in LIBPATH if there
6813     # are no directories specified by -L.
6814     hardcode_minus_L=yes
6815     if test "$GCC" = yes && test -z "$link_static_flag"; then
6816       # Neither direct hardcoding nor static linking is supported with a
6817       # broken collect2.
6818       hardcode_direct=unsupported
6819     fi
6820     ;;
6821
6822   aix4* | aix5*)
6823     if test "$host_cpu" = ia64; then
6824       # On IA64, the linker does run time linking by default, so we don't
6825       # have to do anything special.
6826       aix_use_runtimelinking=no
6827       exp_sym_flag='-Bexport'
6828       no_entry_flag=""
6829     else
6830       aix_use_runtimelinking=no
6831
6832       # Test if we are trying to use run time linking or normal
6833       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6834       # need to do runtime linking.
6835       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6836         for ld_flag in $LDFLAGS; do
6837           case $ld_flag in
6838           *-brtl*)
6839             aix_use_runtimelinking=yes
6840             break
6841           ;;
6842           esac
6843         done
6844       esac
6845
6846       exp_sym_flag='-bexport'
6847       no_entry_flag='-bnoentry'
6848     fi
6849
6850     # When large executables or shared objects are built, AIX ld can
6851     # have problems creating the table of contents.  If linking a library
6852     # or program results in "error TOC overflow" add -mminimal-toc to
6853     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6854     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6855
6856     hardcode_direct=yes
6857     archive_cmds=''
6858     hardcode_libdir_separator=':'
6859     if test "$GCC" = yes; then
6860       case $host_os in aix4.[012]|aix4.[012].*)
6861         collect2name=`${CC} -print-prog-name=collect2`
6862         if test -f "$collect2name" && \
6863           strings "$collect2name" | grep resolve_lib_name >/dev/null
6864         then
6865           # We have reworked collect2
6866           hardcode_direct=yes
6867         else
6868           # We have old collect2
6869           hardcode_direct=unsupported
6870           # It fails to find uninstalled libraries when the uninstalled
6871           # path is not listed in the libpath.  Setting hardcode_minus_L
6872           # to unsupported forces relinking
6873           hardcode_minus_L=yes
6874           hardcode_libdir_flag_spec='-L$libdir'
6875           hardcode_libdir_separator=
6876         fi
6877       esac
6878
6879       shared_flag='-shared'
6880     else
6881       # not using gcc
6882       if test "$host_cpu" = ia64; then
6883         shared_flag='${wl}-G'
6884       else
6885         if test "$aix_use_runtimelinking" = yes; then
6886           shared_flag='${wl}-G'
6887         else
6888           shared_flag='${wl}-bM:SRE'
6889         fi
6890       fi
6891     fi
6892
6893     # It seems that -bexpall can do strange things, so it is better to
6894     # generate a list of symbols to export.
6895     always_export_symbols=yes
6896     if test "$aix_use_runtimelinking" = yes; then
6897       # Warning - without using the other runtime loading flags (-brtl),
6898       # -berok will link without error, but may produce a broken library.
6899       allow_undefined_flag='-berok'
6900       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6901       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6902     else
6903       if test "$host_cpu" = ia64; then
6904         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6905         allow_undefined_flag="-z nodefs"
6906         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6907       else
6908         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6909         # Warning - without using the other run time loading flags,
6910         # -berok will link without error, but may produce a broken library.
6911         allow_undefined_flag='${wl}-berok'
6912         # This is a bit strange, but is similar to how AIX traditionally builds
6913         # it's shared libraries.
6914         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6915       fi
6916     fi
6917     ;;
6918
6919   amigaos*)
6920     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6921     hardcode_libdir_flag_spec='-L$libdir'
6922     hardcode_minus_L=yes
6923     # see comment about different semantics on the GNU ld section
6924     ld_shlibs=no
6925     ;;
6926
6927   cygwin* | mingw* | pw32*)
6928     # When not using gcc, we currently assume that we are using
6929     # Microsoft Visual C++.
6930     # hardcode_libdir_flag_spec is actually meaningless, as there is
6931     # no search path for DLLs.
6932     hardcode_libdir_flag_spec=' '
6933     allow_undefined_flag=unsupported
6934     # Tell ltmain to make .lib files, not .a files.
6935     libext=lib
6936     # FIXME: Setting linknames here is a bad hack.
6937     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6938     # The linker will automatically build a .lib file if we build a DLL.
6939     old_archive_from_new_cmds='true'
6940     # FIXME: Should let the user specify the lib program.
6941     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942     fix_srcfile_path='`cygpath -w "$srcfile"`'
6943     ;;
6944
6945   darwin* | rhapsody*)
6946     case "$host_os" in
6947     rhapsody* | darwin1.[012])
6948       allow_undefined_flag='-undefined suppress'
6949       ;;
6950     *) # Darwin 1.3 on
6951       allow_undefined_flag='-flat_namespace -undefined suppress'
6952       ;;
6953     esac
6954     # FIXME: Relying on posixy $() will cause problems for
6955     #        cross-compilation, but unfortunately the echo tests do not
6956     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6957     #        `"' quotes if we put them in here... so don't!
6958     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6959     # We need to add '_' to the symbols in $export_symbols first
6960     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6961     hardcode_direct=yes
6962     hardcode_shlibpath_var=no
6963     whole_archive_flag_spec='-all_load $convenience'
6964     ;;
6965
6966   freebsd1*)
6967     ld_shlibs=no
6968     ;;
6969
6970   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6971   # support.  Future versions do this automatically, but an explicit c++rt0.o
6972   # does not break anything, and helps significantly (at the cost of a little
6973   # extra space).
6974   freebsd2.2*)
6975     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6976     hardcode_libdir_flag_spec='-R$libdir'
6977     hardcode_direct=yes
6978     hardcode_shlibpath_var=no
6979     ;;
6980
6981   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6982   freebsd2*)
6983     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6984     hardcode_direct=yes
6985     hardcode_minus_L=yes
6986     hardcode_shlibpath_var=no
6987     ;;
6988
6989   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6990   freebsd*)
6991     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6992     hardcode_libdir_flag_spec='-R$libdir'
6993     hardcode_direct=yes
6994     hardcode_shlibpath_var=no
6995     ;;
6996
6997   hpux9* | hpux10* | hpux11*)
6998     case $host_os in
6999     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
7000     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7001     esac
7002     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7003     hardcode_libdir_separator=:
7004     hardcode_direct=yes
7005     hardcode_minus_L=yes # Not in the search PATH, but as the default
7006                          # location of the library.
7007     export_dynamic_flag_spec='${wl}-E'
7008     ;;
7009
7010   irix5* | irix6* | nonstopux*)
7011     if test "$GCC" = yes; then
7012       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7013       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7014     else
7015       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7016       hardcode_libdir_flag_spec='-rpath $libdir'
7017     fi
7018     hardcode_libdir_separator=:
7019     link_all_deplibs=yes
7020     ;;
7021
7022   netbsd*)
7023     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7025     else
7026       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7027     fi
7028     hardcode_libdir_flag_spec='-R$libdir'
7029     hardcode_direct=yes
7030     hardcode_shlibpath_var=no
7031     ;;
7032
7033   newsos6)
7034     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035     hardcode_direct=yes
7036     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7037     hardcode_libdir_separator=:
7038     hardcode_shlibpath_var=no
7039     ;;
7040
7041   openbsd*)
7042     hardcode_direct=yes
7043     hardcode_shlibpath_var=no
7044     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7045       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7046       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7047       export_dynamic_flag_spec='${wl}-E'
7048     else
7049       case "$host_os" in
7050       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7051         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7052         hardcode_libdir_flag_spec='-R$libdir'
7053         ;;
7054       *)
7055         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7056         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7057         ;;
7058       esac
7059     fi
7060     ;;
7061
7062   os2*)
7063     hardcode_libdir_flag_spec='-L$libdir'
7064     hardcode_minus_L=yes
7065     allow_undefined_flag=unsupported
7066     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7067     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7068     ;;
7069
7070   osf3*)
7071     if test "$GCC" = yes; then
7072       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7073       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7074     else
7075       allow_undefined_flag=' -expect_unresolved \*'
7076       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7077     fi
7078     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7079     hardcode_libdir_separator=:
7080     ;;
7081
7082   osf4* | osf5*)        # as osf3* with the addition of -msym flag
7083     if test "$GCC" = yes; then
7084       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7085       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7086       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7087     else
7088       allow_undefined_flag=' -expect_unresolved \*'
7089       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7090       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7091       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7092
7093       #Both c and cxx compiler support -rpath directly
7094       hardcode_libdir_flag_spec='-rpath $libdir'
7095     fi
7096     hardcode_libdir_separator=:
7097     ;;
7098
7099   sco3.2v5*)
7100     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7101     hardcode_shlibpath_var=no
7102     runpath_var=LD_RUN_PATH
7103     hardcode_runpath_var=yes
7104     export_dynamic_flag_spec='${wl}-Bexport'
7105     ;;
7106
7107   solaris*)
7108     # gcc --version < 3.0 without binutils cannot create self contained
7109     # shared libraries reliably, requiring libgcc.a to resolve some of
7110     # the object symbols generated in some cases.  Libraries that use
7111     # assert need libgcc.a to resolve __eprintf, for example.  Linking
7112     # a copy of libgcc.a into every shared library to guarantee resolving
7113     # such symbols causes other problems:  According to Tim Van Holder
7114     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7115     # (to the application) exception stack for one thing.
7116     no_undefined_flag=' -z defs'
7117     if test "$GCC" = yes; then
7118       case `$CC --version 2>/dev/null` in
7119       [12].*)
7120         cat <<EOF 1>&2
7121
7122 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7123 *** create self contained shared libraries on Solaris systems, without
7124 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7125 *** -no-undefined support, which will at least allow you to build shared
7126 *** libraries.  However, you may find that when you link such libraries
7127 *** into an application without using GCC, you have to manually add
7128 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7129 *** upgrade to a newer version of GCC.  Another option is to rebuild your
7130 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7131
7132 EOF
7133         no_undefined_flag=
7134         ;;
7135       esac
7136     fi
7137     # $CC -shared without GNU ld will not create a library from C++
7138     # object files and a static libstdc++, better avoid it by now
7139     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7140     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7141                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7142     hardcode_libdir_flag_spec='-R$libdir'
7143     hardcode_shlibpath_var=no
7144     case $host_os in
7145     solaris2.[0-5] | solaris2.[0-5].*) ;;
7146     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7147       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7148     esac
7149     link_all_deplibs=yes
7150     ;;
7151
7152   sunos4*)
7153     if test "x$host_vendor" = xsequent; then
7154       # Use $CC to link under sequent, because it throws in some extra .o
7155       # files that make .init and .fini sections work.
7156       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7157     else
7158       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7159     fi
7160     hardcode_libdir_flag_spec='-L$libdir'
7161     hardcode_direct=yes
7162     hardcode_minus_L=yes
7163     hardcode_shlibpath_var=no
7164     ;;
7165
7166   sysv4)
7167     case $host_vendor in
7168       sni)
7169         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7170         hardcode_direct=yes # is this really true???
7171         ;;
7172       siemens)
7173         ## LD is ld it makes a PLAMLIB
7174         ## CC just makes a GrossModule.
7175         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7176         reload_cmds='$CC -r -o $output$reload_objs'
7177         hardcode_direct=no
7178         ;;
7179       motorola)
7180         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7182         ;;
7183     esac
7184     runpath_var='LD_RUN_PATH'
7185     hardcode_shlibpath_var=no
7186     ;;
7187
7188   sysv4.3*)
7189     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7190     hardcode_shlibpath_var=no
7191     export_dynamic_flag_spec='-Bexport'
7192     ;;
7193
7194   sysv5*)
7195     no_undefined_flag=' -z text'
7196     # $CC -shared without GNU ld will not create a library from C++
7197     # object files and a static libstdc++, better avoid it by now
7198     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7199     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7200                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7201     hardcode_libdir_flag_spec=
7202     hardcode_shlibpath_var=no
7203     runpath_var='LD_RUN_PATH'
7204     ;;
7205
7206   uts4*)
7207     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208     hardcode_libdir_flag_spec='-L$libdir'
7209     hardcode_shlibpath_var=no
7210     ;;
7211
7212   dgux*)
7213     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214     hardcode_libdir_flag_spec='-L$libdir'
7215     hardcode_shlibpath_var=no
7216     ;;
7217
7218   sysv4*MP*)
7219     if test -d /usr/nec; then
7220       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7221       hardcode_shlibpath_var=no
7222       runpath_var=LD_RUN_PATH
7223       hardcode_runpath_var=yes
7224       ld_shlibs=yes
7225     fi
7226     ;;
7227
7228   sysv4.2uw2*)
7229     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7230     hardcode_direct=yes
7231     hardcode_minus_L=no
7232     hardcode_shlibpath_var=no
7233     hardcode_runpath_var=yes
7234     runpath_var=LD_RUN_PATH
7235     ;;
7236
7237   sysv5uw7* | unixware7*)
7238     no_undefined_flag='${wl}-z ${wl}text'
7239     if test "$GCC" = yes; then
7240       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7241     else
7242       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7243     fi
7244     runpath_var='LD_RUN_PATH'
7245     hardcode_shlibpath_var=no
7246     ;;
7247
7248   *)
7249     ld_shlibs=no
7250     ;;
7251   esac
7252 fi
7253 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7254 echo "${ECHO_T}$ld_shlibs" >&6
7255 test "$ld_shlibs" = no && can_build_shared=no
7256
7257 # Check hardcoding attributes.
7258 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7260 hardcode_action=
7261 if test -n "$hardcode_libdir_flag_spec" || \
7262    test -n "$runpath_var"; then
7263
7264   # We can hardcode non-existant directories.
7265   if test "$hardcode_direct" != no &&
7266      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7267      # have to relink, otherwise we might link with an installed library
7268      # when we should be linking with a yet-to-be-installed one
7269      ## test "$hardcode_shlibpath_var" != no &&
7270      test "$hardcode_minus_L" != no; then
7271     # Linking always hardcodes the temporary library directory.
7272     hardcode_action=relink
7273   else
7274     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7275     hardcode_action=immediate
7276   fi
7277 else
7278   # We cannot hardcode anything, or else we can only hardcode existing
7279   # directories.
7280   hardcode_action=unsupported
7281 fi
7282 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7283 echo "${ECHO_T}$hardcode_action" >&6
7284
7285 striplib=
7286 old_striplib=
7287 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7288 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7289 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7290   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7291   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7292   echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7294 else
7295   echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297 fi
7298
7299 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7300 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7301
7302 # PORTME Fill in your ld.so characteristics
7303 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7304 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7305 library_names_spec=
7306 libname_spec='lib$name'
7307 soname_spec=
7308 postinstall_cmds=
7309 postuninstall_cmds=
7310 finish_cmds=
7311 finish_eval=
7312 shlibpath_var=
7313 shlibpath_overrides_runpath=unknown
7314 version_type=none
7315 dynamic_linker="$host_os ld.so"
7316 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
7317 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
7318
7319 case $host_os in
7320 aix3*)
7321   version_type=linux
7322   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7323   shlibpath_var=LIBPATH
7324
7325   # AIX has no versioning support, so we append a major version to the name.
7326   soname_spec='${libname}${release}.so$major'
7327   ;;
7328
7329 aix4* | aix5*)
7330   version_type=linux
7331   need_lib_prefix=no
7332   need_version=no
7333   hardcode_into_libs=yes
7334   if test "$host_cpu" = ia64; then
7335     # AIX 5 supports IA64
7336     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7337     shlibpath_var=LD_LIBRARY_PATH
7338   else
7339     # With GCC up to 2.95.x, collect2 would create an import file
7340     # for dependence libraries.  The import file would start with
7341     # the line `#! .'.  This would cause the generated library to
7342     # depend on `.', always an invalid library.  This was fixed in
7343     # development snapshots of GCC prior to 3.0.
7344     case $host_os in
7345       aix4 | aix4.[01] | aix4.[01].*)
7346         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7347              echo ' yes '
7348              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7349           :
7350         else
7351           can_build_shared=no
7352         fi
7353         ;;
7354     esac
7355     # AIX (on Power*) has no versioning support, so currently we can
7356     # not hardcode correct soname into executable. Probably we can
7357     # add versioning support to collect2, so additional links can
7358     # be useful in future.
7359     if test "$aix_use_runtimelinking" = yes; then
7360       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7361       # instead of lib<name>.a to let people know that these are not
7362       # typical AIX shared libraries.
7363       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7364     else
7365       # We preserve .a as extension for shared libraries through AIX4.2
7366       # and later when we are not doing run time linking.
7367       library_names_spec='${libname}${release}.a $libname.a'
7368       soname_spec='${libname}${release}.so$major'
7369     fi
7370     shlibpath_var=LIBPATH
7371   fi
7372   hardcode_into_libs=yes
7373   ;;
7374
7375 amigaos*)
7376   library_names_spec='$libname.ixlibrary $libname.a'
7377   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7378   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7379   ;;
7380
7381 beos*)
7382   library_names_spec='${libname}.so'
7383   dynamic_linker="$host_os ld.so"
7384   shlibpath_var=LIBRARY_PATH
7385   ;;
7386
7387 bsdi4*)
7388   version_type=linux
7389   need_version=no
7390   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7391   soname_spec='${libname}${release}.so$major'
7392   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7393   shlibpath_var=LD_LIBRARY_PATH
7394   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7395   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7396   export_dynamic_flag_spec=-rdynamic
7397   # the default ld.so.conf also contains /usr/contrib/lib and
7398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7399   # libtool to hard-code these into programs
7400   ;;
7401
7402 cygwin* | mingw* | pw32*)
7403   version_type=windows
7404   need_version=no
7405   need_lib_prefix=no
7406   case $GCC,$host_os in
7407   yes,cygwin*)
7408     library_names_spec='$libname.dll.a'
7409     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7410     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7411       dldir=$destdir/`dirname \$dlpath`~
7412       test -d \$dldir || mkdir -p \$dldir~
7413       $install_prog .libs/$dlname \$dldir/$dlname'
7414     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7415       dlpath=$dir/\$dldll~
7416        $rm \$dlpath'
7417     ;;
7418   yes,mingw*)
7419     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7420     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7421     ;;
7422   yes,pw32*)
7423     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7424     ;;
7425   *)
7426     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7427     ;;
7428   esac
7429   dynamic_linker='Win32 ld.exe'
7430   # FIXME: first we should search . and the directory the executable is in
7431   shlibpath_var=PATH
7432   ;;
7433
7434 darwin* | rhapsody*)
7435   dynamic_linker="$host_os dyld"
7436   version_type=darwin
7437   need_lib_prefix=no
7438   need_version=no
7439   # FIXME: Relying on posixy $() will cause problems for
7440   #        cross-compilation, but unfortunately the echo tests do not
7441   #        yet detect zsh echo's removal of \ escapes.
7442   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7443   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7444   shlibpath_overrides_runpath=yes
7445   shlibpath_var=DYLD_LIBRARY_PATH
7446   ;;
7447
7448 freebsd1*)
7449   dynamic_linker=no
7450   ;;
7451
7452 freebsd*)
7453   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7454   version_type=freebsd-$objformat
7455   case $version_type in
7456     freebsd-elf*)
7457       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7458       need_version=no
7459       need_lib_prefix=no
7460       ;;
7461     freebsd-*)
7462       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7463       need_version=yes
7464       ;;
7465   esac
7466   shlibpath_var=LD_LIBRARY_PATH
7467   case $host_os in
7468   freebsd2*)
7469     shlibpath_overrides_runpath=yes
7470     ;;
7471   *)
7472     shlibpath_overrides_runpath=no
7473     hardcode_into_libs=yes
7474     ;;
7475   esac
7476   ;;
7477
7478 gnu*)
7479   version_type=linux
7480   need_lib_prefix=no
7481   need_version=no
7482   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7483   soname_spec='${libname}${release}.so$major'
7484   shlibpath_var=LD_LIBRARY_PATH
7485   hardcode_into_libs=yes
7486   ;;
7487
7488 hpux9* | hpux10* | hpux11*)
7489   # Give a soname corresponding to the major version so that dld.sl refuses to
7490   # link against other versions.
7491   dynamic_linker="$host_os dld.sl"
7492   version_type=sunos
7493   need_lib_prefix=no
7494   need_version=no
7495   shlibpath_var=SHLIB_PATH
7496   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7497   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7498   soname_spec='${libname}${release}.sl$major'
7499   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7500   postinstall_cmds='chmod 555 $lib'
7501   ;;
7502
7503 irix5* | irix6* | nonstopux*)
7504   case $host_os in
7505     nonstopux*) version_type=nonstopux ;;
7506     *)          version_type=irix ;;
7507   esac
7508   need_lib_prefix=no
7509   need_version=no
7510   soname_spec='${libname}${release}.so$major'
7511   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7512   case $host_os in
7513   irix5* | nonstopux*)
7514     libsuff= shlibsuff=
7515     ;;
7516   *)
7517     case $LD in # libtool.m4 will add one of these switches to LD
7518     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7519     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7520     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7521     *) libsuff= shlibsuff= libmagic=never-match;;
7522     esac
7523     ;;
7524   esac
7525   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7526   shlibpath_overrides_runpath=no
7527   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7528   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7529   ;;
7530
7531 # No shared lib support for Linux oldld, aout, or coff.
7532 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7533   dynamic_linker=no
7534   ;;
7535
7536 # This must be Linux ELF.
7537 linux-gnu*)
7538   version_type=linux
7539   need_lib_prefix=no
7540   need_version=no
7541   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7542   soname_spec='${libname}${release}.so$major'
7543   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7544   shlibpath_var=LD_LIBRARY_PATH
7545   shlibpath_overrides_runpath=no
7546   # This implies no fast_install, which is unacceptable.
7547   # Some rework will be needed to allow for fast_install
7548   # before this can be enabled.
7549   hardcode_into_libs=yes
7550
7551   case $host_cpu:$lt_cv_cc_64bit_output in
7552   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7553     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7554     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7555     ;;
7556   esac
7557
7558   # We used to test for /lib/ld.so.1 and disable shared libraries on
7559   # powerpc, because MkLinux only supported shared libraries with the
7560   # GNU dynamic linker.  Since this was broken with cross compilers,
7561   # most powerpc-linux boxes support dynamic linking these days and
7562   # people can always --disable-shared, the test was removed, and we
7563   # assume the GNU/Linux dynamic linker is in use.
7564   dynamic_linker='GNU/Linux ld.so'
7565   ;;
7566
7567 netbsd*)
7568   version_type=sunos
7569   need_lib_prefix=no
7570   need_version=no
7571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7572     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574     dynamic_linker='NetBSD (a.out) ld.so'
7575   else
7576     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7577     soname_spec='${libname}${release}.so$major'
7578     dynamic_linker='NetBSD ld.elf_so'
7579   fi
7580   shlibpath_var=LD_LIBRARY_PATH
7581   shlibpath_overrides_runpath=yes
7582   hardcode_into_libs=yes
7583   ;;
7584
7585 newsos6)
7586   version_type=linux
7587   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7588   shlibpath_var=LD_LIBRARY_PATH
7589   shlibpath_overrides_runpath=yes
7590   ;;
7591
7592 openbsd*)
7593   version_type=sunos
7594   need_lib_prefix=no
7595   need_version=no
7596   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7597     case "$host_os" in
7598     openbsd2.[89] | openbsd2.[89].*)
7599       shlibpath_overrides_runpath=no
7600       ;;
7601     *)
7602       shlibpath_overrides_runpath=yes
7603       ;;
7604     esac
7605   else
7606     shlibpath_overrides_runpath=yes
7607   fi
7608   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7609   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7610   shlibpath_var=LD_LIBRARY_PATH
7611   ;;
7612
7613 os2*)
7614   libname_spec='$name'
7615   need_lib_prefix=no
7616   library_names_spec='$libname.dll $libname.a'
7617   dynamic_linker='OS/2 ld.exe'
7618   shlibpath_var=LIBPATH
7619   ;;
7620
7621 osf3* | osf4* | osf5*)
7622   version_type=osf
7623   need_version=no
7624   soname_spec='${libname}${release}.so$major'
7625   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7626   shlibpath_var=LD_LIBRARY_PATH
7627   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7628   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7629   hardcode_into_libs=yes
7630   ;;
7631
7632 sco3.2v5*)
7633   version_type=osf
7634   soname_spec='${libname}${release}.so$major'
7635   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7636   shlibpath_var=LD_LIBRARY_PATH
7637   ;;
7638
7639 solaris*)
7640   version_type=linux
7641   need_lib_prefix=no
7642   need_version=no
7643   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7644   soname_spec='${libname}${release}.so$major'
7645   shlibpath_var=LD_LIBRARY_PATH
7646   shlibpath_overrides_runpath=yes
7647   hardcode_into_libs=yes
7648   # ldd complains unless libraries are executable
7649   postinstall_cmds='chmod +x $lib'
7650   ;;
7651
7652 sunos4*)
7653   version_type=sunos
7654   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7655   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7656   shlibpath_var=LD_LIBRARY_PATH
7657   shlibpath_overrides_runpath=yes
7658   if test "$with_gnu_ld" = yes; then
7659     need_lib_prefix=no
7660   fi
7661   need_version=yes
7662   ;;
7663
7664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7665   version_type=linux
7666   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7667   soname_spec='${libname}${release}.so$major'
7668   shlibpath_var=LD_LIBRARY_PATH
7669   case $host_vendor in
7670     sni)
7671       shlibpath_overrides_runpath=no
7672       need_lib_prefix=no
7673       export_dynamic_flag_spec='${wl}-Blargedynsym'
7674       runpath_var=LD_RUN_PATH
7675       ;;
7676     siemens)
7677       need_lib_prefix=no
7678       ;;
7679     motorola)
7680       need_lib_prefix=no
7681       need_version=no
7682       shlibpath_overrides_runpath=no
7683       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7684       ;;
7685   esac
7686   ;;
7687
7688 uts4*)
7689   version_type=linux
7690   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7691   soname_spec='${libname}${release}.so$major'
7692   shlibpath_var=LD_LIBRARY_PATH
7693   ;;
7694
7695 dgux*)
7696   version_type=linux
7697   need_lib_prefix=no
7698   need_version=no
7699   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7700   soname_spec='${libname}${release}.so$major'
7701   shlibpath_var=LD_LIBRARY_PATH
7702   ;;
7703
7704 sysv4*MP*)
7705   if test -d /usr/nec ;then
7706     version_type=linux
7707     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7708     soname_spec='$libname.so.$major'
7709     shlibpath_var=LD_LIBRARY_PATH
7710   fi
7711   ;;
7712
7713 *)
7714   dynamic_linker=no
7715   ;;
7716 esac
7717 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7718 echo "${ECHO_T}$dynamic_linker" >&6
7719 test "$dynamic_linker" = no && can_build_shared=no
7720
7721 # Report the final consequences.
7722 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7723 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7724 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7725 echo "${ECHO_T}$can_build_shared" >&6
7726
7727 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7728 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7729 test "$can_build_shared" = "no" && enable_shared=no
7730
7731 # On AIX, shared libraries and static libraries use the same namespace, and
7732 # are all built from PIC.
7733 case "$host_os" in
7734 aix3*)
7735   test "$enable_shared" = yes && enable_static=no
7736   if test -n "$RANLIB"; then
7737     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7738     postinstall_cmds='$RANLIB $lib'
7739   fi
7740   ;;
7741
7742 aix4*)
7743   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7744     test "$enable_shared" = yes && enable_static=no
7745   fi
7746   ;;
7747 esac
7748 echo "$as_me:$LINENO: result: $enable_shared" >&5
7749 echo "${ECHO_T}$enable_shared" >&6
7750
7751 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7752 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7753 # Make sure either enable_shared or enable_static is yes.
7754 test "$enable_shared" = yes || enable_static=yes
7755 echo "$as_me:$LINENO: result: $enable_static" >&5
7756 echo "${ECHO_T}$enable_static" >&6
7757
7758 if test "$hardcode_action" = relink; then
7759   # Fast installation is not supported
7760   enable_fast_install=no
7761 elif test "$shlibpath_overrides_runpath" = yes ||
7762      test "$enable_shared" = no; then
7763   # Fast installation is not necessary
7764   enable_fast_install=needless
7765 fi
7766
7767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7768 if test "$GCC" = yes; then
7769   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7770 fi
7771
7772 if test "x$enable_dlopen" != xyes; then
7773   enable_dlopen=unknown
7774   enable_dlopen_self=unknown
7775   enable_dlopen_self_static=unknown
7776 else
7777   lt_cv_dlopen=no
7778   lt_cv_dlopen_libs=
7779
7780   case $host_os in
7781   beos*)
7782     lt_cv_dlopen="load_add_on"
7783     lt_cv_dlopen_libs=
7784     lt_cv_dlopen_self=yes
7785     ;;
7786
7787   cygwin* | mingw* | pw32*)
7788     lt_cv_dlopen="LoadLibrary"
7789     lt_cv_dlopen_libs=
7790    ;;
7791
7792   *)
7793     echo "$as_me:$LINENO: checking for shl_load" >&5
7794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7795 if test "${ac_cv_func_shl_load+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7806 #define shl_load innocuous_shl_load
7807
7808 /* System header to define __stub macros and hopefully few prototypes,
7809     which can conflict with char shl_load (); below.
7810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811     <limits.h> exists even on freestanding compilers.  */
7812
7813 #ifdef __STDC__
7814 # include <limits.h>
7815 #else
7816 # include <assert.h>
7817 #endif
7818
7819 #undef shl_load
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 {
7825 #endif
7826 /* We use char because int might match the return type of a gcc2
7827    builtin and then its argument prototype would still apply.  */
7828 char shl_load ();
7829 /* The GNU C library defines this for functions which it implements
7830     to always fail with ENOSYS.  Some functions are actually named
7831     something starting with __ and the normal name is an alias.  */
7832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7833 choke me
7834 #else
7835 char (*f) () = shl_load;
7836 #endif
7837 #ifdef __cplusplus
7838 }
7839 #endif
7840
7841 int
7842 main ()
7843 {
7844 return f != shl_load;
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851   (eval $ac_link) 2>conftest.er1
7852   ac_status=$?
7853   grep -v '^ *+' conftest.er1 >conftest.err
7854   rm -f conftest.er1
7855   cat conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -z "$ac_c_werror_flag"
7859                          || test ! -s conftest.err'
7860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861   (eval $ac_try) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; }; then
7871   ac_cv_func_shl_load=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_cv_func_shl_load=no
7877 fi
7878 rm -f conftest.err conftest.$ac_objext \
7879       conftest$ac_exeext conftest.$ac_ext
7880 fi
7881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7883 if test $ac_cv_func_shl_load = yes; then
7884   lt_cv_dlopen="shl_load"
7885 else
7886   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   ac_check_lib_save_LIBS=$LIBS
7892 LIBS="-ldld  $LIBS"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899
7900 /* Override any gcc2 internal prototype to avoid an error.  */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905    builtin and then its argument prototype would still apply.  */
7906 char shl_load ();
7907 int
7908 main ()
7909 {
7910 shl_load ();
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917   (eval $ac_link) 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -z "$ac_c_werror_flag"
7925                          || test ! -s conftest.err'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; } &&
7931          { ac_try='test -s conftest$ac_exeext'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   ac_cv_lib_dld_shl_load=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942 ac_cv_lib_dld_shl_load=no
7943 fi
7944 rm -f conftest.err conftest.$ac_objext \
7945       conftest$ac_exeext conftest.$ac_ext
7946 LIBS=$ac_check_lib_save_LIBS
7947 fi
7948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7949 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7950 if test $ac_cv_lib_dld_shl_load = yes; then
7951   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7952 else
7953   echo "$as_me:$LINENO: checking for dlopen" >&5
7954 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7955 if test "${ac_cv_func_dlopen+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7966 #define dlopen innocuous_dlopen
7967
7968 /* System header to define __stub macros and hopefully few prototypes,
7969     which can conflict with char dlopen (); below.
7970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7971     <limits.h> exists even on freestanding compilers.  */
7972
7973 #ifdef __STDC__
7974 # include <limits.h>
7975 #else
7976 # include <assert.h>
7977 #endif
7978
7979 #undef dlopen
7980
7981 /* Override any gcc2 internal prototype to avoid an error.  */
7982 #ifdef __cplusplus
7983 extern "C"
7984 {
7985 #endif
7986 /* We use char because int might match the return type of a gcc2
7987    builtin and then its argument prototype would still apply.  */
7988 char dlopen ();
7989 /* The GNU C library defines this for functions which it implements
7990     to always fail with ENOSYS.  Some functions are actually named
7991     something starting with __ and the normal name is an alias.  */
7992 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7993 choke me
7994 #else
7995 char (*f) () = dlopen;
7996 #endif
7997 #ifdef __cplusplus
7998 }
7999 #endif
8000
8001 int
8002 main ()
8003 {
8004 return f != dlopen;
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011   (eval $ac_link) 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -z "$ac_c_werror_flag"
8019                          || test ! -s conftest.err'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; } &&
8025          { ac_try='test -s conftest$ac_exeext'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   ac_cv_func_dlopen=yes
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_func_dlopen=no
8037 fi
8038 rm -f conftest.err conftest.$ac_objext \
8039       conftest$ac_exeext conftest.$ac_ext
8040 fi
8041 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8042 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8043 if test $ac_cv_func_dlopen = yes; then
8044   lt_cv_dlopen="dlopen"
8045 else
8046   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8047 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8048 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   ac_check_lib_save_LIBS=$LIBS
8052 LIBS="-ldl  $LIBS"
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059
8060 /* Override any gcc2 internal prototype to avoid an error.  */
8061 #ifdef __cplusplus
8062 extern "C"
8063 #endif
8064 /* We use char because int might match the return type of a gcc2
8065    builtin and then its argument prototype would still apply.  */
8066 char dlopen ();
8067 int
8068 main ()
8069 {
8070 dlopen ();
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077   (eval $ac_link) 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -z "$ac_c_werror_flag"
8085                          || test ! -s conftest.err'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_lib_dl_dlopen=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_lib_dl_dlopen=no
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105       conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8107 fi
8108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8110 if test $ac_cv_lib_dl_dlopen = yes; then
8111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8112 else
8113   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   ac_check_lib_save_LIBS=$LIBS
8119 LIBS="-lsvld  $LIBS"
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 /* Override any gcc2 internal prototype to avoid an error.  */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 /* We use char because int might match the return type of a gcc2
8132    builtin and then its argument prototype would still apply.  */
8133 char dlopen ();
8134 int
8135 main ()
8136 {
8137 dlopen ();
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144   (eval $ac_link) 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } &&
8151          { ac_try='test -z "$ac_c_werror_flag"
8152                          || test ! -s conftest.err'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; } &&
8158          { ac_try='test -s conftest$ac_exeext'
8159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160   (eval $ac_try) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; }; then
8164   ac_cv_lib_svld_dlopen=yes
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 ac_cv_lib_svld_dlopen=no
8170 fi
8171 rm -f conftest.err conftest.$ac_objext \
8172       conftest$ac_exeext conftest.$ac_ext
8173 LIBS=$ac_check_lib_save_LIBS
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8176 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8177 if test $ac_cv_lib_svld_dlopen = yes; then
8178   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8179 else
8180   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8181 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8182 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   ac_check_lib_save_LIBS=$LIBS
8186 LIBS="-ldld  $LIBS"
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193
8194 /* Override any gcc2 internal prototype to avoid an error.  */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199    builtin and then its argument prototype would still apply.  */
8200 char dld_link ();
8201 int
8202 main ()
8203 {
8204 dld_link ();
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>conftest.er1
8212   ac_status=$?
8213   grep -v '^ *+' conftest.er1 >conftest.err
8214   rm -f conftest.er1
8215   cat conftest.err >&5
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -z "$ac_c_werror_flag"
8219                          || test ! -s conftest.err'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_cv_lib_dld_dld_link=yes
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 ac_cv_lib_dld_dld_link=no
8237 fi
8238 rm -f conftest.err conftest.$ac_objext \
8239       conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8241 fi
8242 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8243 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8244 if test $ac_cv_lib_dld_dld_link = yes; then
8245   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8246 fi
8247
8248
8249 fi
8250
8251
8252 fi
8253
8254
8255 fi
8256
8257
8258 fi
8259
8260
8261 fi
8262
8263     ;;
8264   esac
8265
8266   if test "x$lt_cv_dlopen" != xno; then
8267     enable_dlopen=yes
8268   else
8269     enable_dlopen=no
8270   fi
8271
8272   case $lt_cv_dlopen in
8273   dlopen)
8274     save_CPPFLAGS="$CPPFLAGS"
8275         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8276
8277     save_LDFLAGS="$LDFLAGS"
8278     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8279
8280     save_LIBS="$LIBS"
8281     LIBS="$lt_cv_dlopen_libs $LIBS"
8282
8283     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8284 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8285 if test "${lt_cv_dlopen_self+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288           if test "$cross_compiling" = yes; then :
8289   lt_cv_dlopen_self=cross
8290 else
8291     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8292   lt_status=$lt_dlunknown
8293   cat > conftest.$ac_ext <<EOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296
8297 #if HAVE_DLFCN_H
8298 #include <dlfcn.h>
8299 #endif
8300
8301 #include <stdio.h>
8302
8303 #ifdef RTLD_GLOBAL
8304 #  define LT_DLGLOBAL           RTLD_GLOBAL
8305 #else
8306 #  ifdef DL_GLOBAL
8307 #    define LT_DLGLOBAL         DL_GLOBAL
8308 #  else
8309 #    define LT_DLGLOBAL         0
8310 #  endif
8311 #endif
8312
8313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314    find out it does not work in some platform. */
8315 #ifndef LT_DLLAZY_OR_NOW
8316 #  ifdef RTLD_LAZY
8317 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8318 #  else
8319 #    ifdef DL_LAZY
8320 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8321 #    else
8322 #      ifdef RTLD_NOW
8323 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8324 #      else
8325 #        ifdef DL_NOW
8326 #          define LT_DLLAZY_OR_NOW      DL_NOW
8327 #        else
8328 #          define LT_DLLAZY_OR_NOW      0
8329 #        endif
8330 #      endif
8331 #    endif
8332 #  endif
8333 #endif
8334
8335 #ifdef __cplusplus
8336 extern "C" void exit (int);
8337 #endif
8338
8339 void fnord() { int i=42;}
8340 int main ()
8341 {
8342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343   int status = $lt_dlunknown;
8344
8345   if (self)
8346     {
8347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8348       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349       /* dlclose (self); */
8350     }
8351
8352     exit (status);
8353 }
8354 EOF
8355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8360     (./conftest; exit; ) 2>/dev/null
8361     lt_status=$?
8362     case x$lt_status in
8363       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8364       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8365       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8366     esac
8367   else :
8368     # compilation failed
8369     lt_cv_dlopen_self=no
8370   fi
8371 fi
8372 rm -fr conftest*
8373
8374
8375 fi
8376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8377 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8378
8379     if test "x$lt_cv_dlopen_self" = xyes; then
8380       LDFLAGS="$LDFLAGS $link_static_flag"
8381       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8382 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8383 if test "${lt_cv_dlopen_self_static+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386           if test "$cross_compiling" = yes; then :
8387   lt_cv_dlopen_self_static=cross
8388 else
8389     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8390   lt_status=$lt_dlunknown
8391   cat > conftest.$ac_ext <<EOF
8392 #line 8392 "configure"
8393 #include "confdefs.h"
8394
8395 #if HAVE_DLFCN_H
8396 #include <dlfcn.h>
8397 #endif
8398
8399 #include <stdio.h>
8400
8401 #ifdef RTLD_GLOBAL
8402 #  define LT_DLGLOBAL           RTLD_GLOBAL
8403 #else
8404 #  ifdef DL_GLOBAL
8405 #    define LT_DLGLOBAL         DL_GLOBAL
8406 #  else
8407 #    define LT_DLGLOBAL         0
8408 #  endif
8409 #endif
8410
8411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8412    find out it does not work in some platform. */
8413 #ifndef LT_DLLAZY_OR_NOW
8414 #  ifdef RTLD_LAZY
8415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8416 #  else
8417 #    ifdef DL_LAZY
8418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8419 #    else
8420 #      ifdef RTLD_NOW
8421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8422 #      else
8423 #        ifdef DL_NOW
8424 #          define LT_DLLAZY_OR_NOW      DL_NOW
8425 #        else
8426 #          define LT_DLLAZY_OR_NOW      0
8427 #        endif
8428 #      endif
8429 #    endif
8430 #  endif
8431 #endif
8432
8433 #ifdef __cplusplus
8434 extern "C" void exit (int);
8435 #endif
8436
8437 void fnord() { int i=42;}
8438 int main ()
8439 {
8440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8441   int status = $lt_dlunknown;
8442
8443   if (self)
8444     {
8445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8447       /* dlclose (self); */
8448     }
8449
8450     exit (status);
8451 }
8452 EOF
8453   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454   (eval $ac_link) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8458     (./conftest; exit; ) 2>/dev/null
8459     lt_status=$?
8460     case x$lt_status in
8461       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8462       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8463       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8464     esac
8465   else :
8466     # compilation failed
8467     lt_cv_dlopen_self_static=no
8468   fi
8469 fi
8470 rm -fr conftest*
8471
8472
8473 fi
8474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8475 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8476     fi
8477
8478     CPPFLAGS="$save_CPPFLAGS"
8479     LDFLAGS="$save_LDFLAGS"
8480     LIBS="$save_LIBS"
8481     ;;
8482   esac
8483
8484   case $lt_cv_dlopen_self in
8485   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8486   *) enable_dlopen_self=unknown ;;
8487   esac
8488
8489   case $lt_cv_dlopen_self_static in
8490   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8491   *) enable_dlopen_self_static=unknown ;;
8492   esac
8493 fi
8494
8495
8496 if test "$enable_shared" = yes && test "$GCC" = yes; then
8497   case $archive_cmds in
8498   *'~'*)
8499     # FIXME: we may have to deal with multi-command sequences.
8500     ;;
8501   '$CC '*)
8502     # Test whether the compiler implicitly links with -lc since on some
8503     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8504     # to ld, don't add -lc before -lgcc.
8505     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8507     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   $rm conftest*
8511     echo 'static int dummy;' > conftest.$ac_ext
8512
8513     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514   (eval $ac_compile) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; then
8518       soname=conftest
8519       lib=conftest
8520       libobjs=conftest.$ac_objext
8521       deplibs=
8522       wl=$lt_cv_prog_cc_wl
8523       compiler_flags=-v
8524       linker_flags=-v
8525       verstring=
8526       output_objdir=.
8527       libname=conftest
8528       save_allow_undefined_flag=$allow_undefined_flag
8529       allow_undefined_flag=
8530       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8531   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }
8535       then
8536         lt_cv_archive_cmds_need_lc=no
8537       else
8538         lt_cv_archive_cmds_need_lc=yes
8539       fi
8540       allow_undefined_flag=$save_allow_undefined_flag
8541     else
8542       cat conftest.err 1>&5
8543     fi
8544 fi
8545
8546     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8547 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8548     ;;
8549   esac
8550 fi
8551 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8552
8553 # The second clause should only fire when bootstrapping the
8554 # libtool distribution, otherwise you forgot to ship ltmain.sh
8555 # with your package, and you will get complaints that there are
8556 # no rules to generate ltmain.sh.
8557 if test -f "$ltmain"; then
8558   :
8559 else
8560   # If there is no Makefile yet, we rely on a make rule to execute
8561   # `config.status --recheck' to rerun these tests and create the
8562   # libtool script then.
8563   test -f Makefile && make "$ltmain"
8564 fi
8565
8566 if test -f "$ltmain"; then
8567   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8568   $rm -f "${ofile}T"
8569
8570   echo creating $ofile
8571
8572   # Now quote all the things that may contain metacharacters while being
8573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8574   # variables and quote the copies for generation of the libtool script.
8575   for var in echo old_CC old_CFLAGS SED \
8576     AR AR_FLAGS CC LD LN_S NM SHELL \
8577     reload_flag reload_cmds wl \
8578     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8579     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8580     library_names_spec soname_spec \
8581     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8582     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8583     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8584     old_striplib striplib file_magic_cmd export_symbols_cmds \
8585     deplibs_check_method allow_undefined_flag no_undefined_flag \
8586     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8587     global_symbol_to_c_name_address \
8588     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8590     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8591
8592     case $var in
8593     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8594     old_postinstall_cmds | old_postuninstall_cmds | \
8595     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8596     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8597     postinstall_cmds | postuninstall_cmds | \
8598     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8599       # Double-quote double-evaled strings.
8600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8601       ;;
8602     *)
8603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8604       ;;
8605     esac
8606   done
8607
8608   cat <<__EOF__ > "${ofile}T"
8609 #! $SHELL
8610
8611 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8612 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8613 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8614 #
8615 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8616 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8617 #
8618 # This program is free software; you can redistribute it and/or modify
8619 # it under the terms of the GNU General Public License as published by
8620 # the Free Software Foundation; either version 2 of the License, or
8621 # (at your option) any later version.
8622 #
8623 # This program is distributed in the hope that it will be useful, but
8624 # WITHOUT ANY WARRANTY; without even the implied warranty of
8625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8626 # General Public License for more details.
8627 #
8628 # You should have received a copy of the GNU General Public License
8629 # along with this program; if not, write to the Free Software
8630 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8631 #
8632 # As a special exception to the GNU General Public License, if you
8633 # distribute this file as part of a program that contains a
8634 # configuration script generated by Autoconf, you may include it under
8635 # the same distribution terms that you use for the rest of that program.
8636
8637 # A sed that does not truncate output.
8638 SED=$lt_SED
8639
8640 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8641 Xsed="${SED} -e s/^X//"
8642
8643 # The HP-UX ksh and POSIX shell print the target directory to stdout
8644 # if CDPATH is set.
8645 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8646
8647 # ### BEGIN LIBTOOL CONFIG
8648
8649 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8650
8651 # Shell to use when invoking shell scripts.
8652 SHELL=$lt_SHELL
8653
8654 # Whether or not to build shared libraries.
8655 build_libtool_libs=$enable_shared
8656
8657 # Whether or not to build static libraries.
8658 build_old_libs=$enable_static
8659
8660 # Whether or not to add -lc for building shared libraries.
8661 build_libtool_need_lc=$need_lc
8662
8663 # Whether or not to optimize for fast installation.
8664 fast_install=$enable_fast_install
8665
8666 # The host system.
8667 host_alias=$host_alias
8668 host=$host
8669
8670 # An echo program that does not interpret backslashes.
8671 echo=$lt_echo
8672
8673 # The archiver.
8674 AR=$lt_AR
8675 AR_FLAGS=$lt_AR_FLAGS
8676
8677 # The default C compiler.
8678 CC=$lt_CC
8679
8680 # Is the compiler the GNU C compiler?
8681 with_gcc=$GCC
8682
8683 # The linker used to build libraries.
8684 LD=$lt_LD
8685
8686 # Whether we need hard or soft links.
8687 LN_S=$lt_LN_S
8688
8689 # A BSD-compatible nm program.
8690 NM=$lt_NM
8691
8692 # A symbol stripping program
8693 STRIP=$STRIP
8694
8695 # Used to examine libraries when file_magic_cmd begins "file"
8696 MAGIC_CMD=$MAGIC_CMD
8697
8698 # Used on cygwin: DLL creation program.
8699 DLLTOOL="$DLLTOOL"
8700
8701 # Used on cygwin: object dumper.
8702 OBJDUMP="$OBJDUMP"
8703
8704 # Used on cygwin: assembler.
8705 AS="$AS"
8706
8707 # The name of the directory that contains temporary libtool files.
8708 objdir=$objdir
8709
8710 # How to create reloadable object files.
8711 reload_flag=$lt_reload_flag
8712 reload_cmds=$lt_reload_cmds
8713
8714 # How to pass a linker flag through the compiler.
8715 wl=$lt_wl
8716
8717 # Object file suffix (normally "o").
8718 objext="$ac_objext"
8719
8720 # Old archive suffix (normally "a").
8721 libext="$libext"
8722
8723 # Executable file suffix (normally "").
8724 exeext="$exeext"
8725
8726 # Additional compiler flags for building library objects.
8727 pic_flag=$lt_pic_flag
8728 pic_mode=$pic_mode
8729
8730 # Does compiler simultaneously support -c and -o options?
8731 compiler_c_o=$lt_compiler_c_o
8732
8733 # Can we write directly to a .lo ?
8734 compiler_o_lo=$lt_compiler_o_lo
8735
8736 # Must we lock files when doing compilation ?
8737 need_locks=$lt_need_locks
8738
8739 # Do we need the lib prefix for modules?
8740 need_lib_prefix=$need_lib_prefix
8741
8742 # Do we need a version for libraries?
8743 need_version=$need_version
8744
8745 # Whether dlopen is supported.
8746 dlopen_support=$enable_dlopen
8747
8748 # Whether dlopen of programs is supported.
8749 dlopen_self=$enable_dlopen_self
8750
8751 # Whether dlopen of statically linked programs is supported.
8752 dlopen_self_static=$enable_dlopen_self_static
8753
8754 # Compiler flag to prevent dynamic linking.
8755 link_static_flag=$lt_link_static_flag
8756
8757 # Compiler flag to turn off builtin functions.
8758 no_builtin_flag=$lt_no_builtin_flag
8759
8760 # Compiler flag to allow reflexive dlopens.
8761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8762
8763 # Compiler flag to generate shared objects directly from archives.
8764 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8765
8766 # Compiler flag to generate thread-safe objects.
8767 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8768
8769 # Library versioning type.
8770 version_type=$version_type
8771
8772 # Format of library name prefix.
8773 libname_spec=$lt_libname_spec
8774
8775 # List of archive names.  First name is the real one, the rest are links.
8776 # The last name is the one that the linker finds with -lNAME.
8777 library_names_spec=$lt_library_names_spec
8778
8779 # The coded name of the library, if different from the real name.
8780 soname_spec=$lt_soname_spec
8781
8782 # Commands used to build and install an old-style archive.
8783 RANLIB=$lt_RANLIB
8784 old_archive_cmds=$lt_old_archive_cmds
8785 old_postinstall_cmds=$lt_old_postinstall_cmds
8786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8787
8788 # Create an old-style archive from a shared archive.
8789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8790
8791 # Create a temporary old-style archive to link instead of a shared archive.
8792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8793
8794 # Commands used to build and install a shared archive.
8795 archive_cmds=$lt_archive_cmds
8796 archive_expsym_cmds=$lt_archive_expsym_cmds
8797 postinstall_cmds=$lt_postinstall_cmds
8798 postuninstall_cmds=$lt_postuninstall_cmds
8799
8800 # Commands to strip libraries.
8801 old_striplib=$lt_old_striplib
8802 striplib=$lt_striplib
8803
8804 # Method to check whether dependent libraries are shared objects.
8805 deplibs_check_method=$lt_deplibs_check_method
8806
8807 # Command to use when deplibs_check_method == file_magic.
8808 file_magic_cmd=$lt_file_magic_cmd
8809
8810 # Flag that allows shared libraries with undefined symbols to be built.
8811 allow_undefined_flag=$lt_allow_undefined_flag
8812
8813 # Flag that forces no undefined symbols.
8814 no_undefined_flag=$lt_no_undefined_flag
8815
8816 # Commands used to finish a libtool library installation in a directory.
8817 finish_cmds=$lt_finish_cmds
8818
8819 # Same as above, but a single script fragment to be evaled but not shown.
8820 finish_eval=$lt_finish_eval
8821
8822 # Take the output of nm and produce a listing of raw symbols and C names.
8823 global_symbol_pipe=$lt_global_symbol_pipe
8824
8825 # Transform the output of nm in a proper C declaration
8826 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8827
8828 # Transform the output of nm in a C name address pair
8829 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8830
8831 # This is the shared library runtime path variable.
8832 runpath_var=$runpath_var
8833
8834 # This is the shared library path variable.
8835 shlibpath_var=$shlibpath_var
8836
8837 # Is shlibpath searched before the hard-coded library search path?
8838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8839
8840 # How to hardcode a shared library path into an executable.
8841 hardcode_action=$hardcode_action
8842
8843 # Whether we should hardcode library paths into libraries.
8844 hardcode_into_libs=$hardcode_into_libs
8845
8846 # Flag to hardcode \$libdir into a binary during linking.
8847 # This must work even if \$libdir does not exist.
8848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8849
8850 # Whether we need a single -rpath flag with a separated argument.
8851 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8852
8853 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8854 # resulting binary.
8855 hardcode_direct=$hardcode_direct
8856
8857 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8858 # resulting binary.
8859 hardcode_minus_L=$hardcode_minus_L
8860
8861 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8862 # the resulting binary.
8863 hardcode_shlibpath_var=$hardcode_shlibpath_var
8864
8865 # Variables whose values should be saved in libtool wrapper scripts and
8866 # restored at relink time.
8867 variables_saved_for_relink="$variables_saved_for_relink"
8868
8869 # Whether libtool must link a program against all its dependency libraries.
8870 link_all_deplibs=$link_all_deplibs
8871
8872 # Compile-time system search path for libraries
8873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8874
8875 # Run-time system search path for libraries
8876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8877
8878 # Fix the shell variable \$srcfile for the compiler.
8879 fix_srcfile_path="$fix_srcfile_path"
8880
8881 # Set to yes if exported symbols are required.
8882 always_export_symbols=$always_export_symbols
8883
8884 # The commands to list exported symbols.
8885 export_symbols_cmds=$lt_export_symbols_cmds
8886
8887 # The commands to extract the exported symbol list from a shared archive.
8888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8889
8890 # Symbols that should not be listed in the preloaded symbols.
8891 exclude_expsyms=$lt_exclude_expsyms
8892
8893 # Symbols that must always be exported.
8894 include_expsyms=$lt_include_expsyms
8895
8896 # ### END LIBTOOL CONFIG
8897
8898 __EOF__
8899
8900   case $host_os in
8901   aix3*)
8902     cat <<\EOF >> "${ofile}T"
8903
8904 # AIX sometimes has problems with the GCC collect2 program.  For some
8905 # reason, if we set the COLLECT_NAMES environment variable, the problems
8906 # vanish in a puff of smoke.
8907 if test "X${COLLECT_NAMES+set}" != Xset; then
8908   COLLECT_NAMES=
8909   export COLLECT_NAMES
8910 fi
8911 EOF
8912     ;;
8913   esac
8914
8915   case $host_os in
8916   cygwin* | mingw* | pw32* | os2*)
8917     cat <<'EOF' >> "${ofile}T"
8918       # This is a source program that is used to create dlls on Windows
8919       # Don't remove nor modify the starting and closing comments
8920 # /* ltdll.c starts here */
8921 # #define WIN32_LEAN_AND_MEAN
8922 # #include <windows.h>
8923 # #undef WIN32_LEAN_AND_MEAN
8924 # #include <stdio.h>
8925 #
8926 # #ifndef __CYGWIN__
8927 # #  ifdef __CYGWIN32__
8928 # #    define __CYGWIN__ __CYGWIN32__
8929 # #  endif
8930 # #endif
8931 #
8932 # #ifdef __cplusplus
8933 # extern "C" {
8934 # #endif
8935 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8936 # #ifdef __cplusplus
8937 # }
8938 # #endif
8939 #
8940 # #ifdef __CYGWIN__
8941 # #include <cygwin/cygwin_dll.h>
8942 # DECLARE_CYGWIN_DLL( DllMain );
8943 # #endif
8944 # HINSTANCE __hDllInstance_base;
8945 #
8946 # BOOL APIENTRY
8947 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8948 # {
8949 #   __hDllInstance_base = hInst;
8950 #   return TRUE;
8951 # }
8952 # /* ltdll.c ends here */
8953         # This is a source program that is used to create import libraries
8954         # on Windows for dlls which lack them. Don't remove nor modify the
8955         # starting and closing comments
8956 # /* impgen.c starts here */
8957 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8958 #
8959 #  This file is part of GNU libtool.
8960 #
8961 #  This program is free software; you can redistribute it and/or modify
8962 #  it under the terms of the GNU General Public License as published by
8963 #  the Free Software Foundation; either version 2 of the License, or
8964 #  (at your option) any later version.
8965 #
8966 #  This program is distributed in the hope that it will be useful,
8967 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8968 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8969 #  GNU General Public License for more details.
8970 #
8971 #  You should have received a copy of the GNU General Public License
8972 #  along with this program; if not, write to the Free Software
8973 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8974 #  */
8975 #
8976 # #include <stdio.h>            /* for printf() */
8977 # #include <unistd.h>           /* for open(), lseek(), read() */
8978 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8979 # #include <string.h>           /* for strdup() */
8980 #
8981 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8982 # #ifndef O_BINARY
8983 # #define O_BINARY 0
8984 # #endif
8985 #
8986 # static unsigned int
8987 # pe_get16 (fd, offset)
8988 #      int fd;
8989 #      int offset;
8990 # {
8991 #   unsigned char b[2];
8992 #   lseek (fd, offset, SEEK_SET);
8993 #   read (fd, b, 2);
8994 #   return b[0] + (b[1]<<8);
8995 # }
8996 #
8997 # static unsigned int
8998 # pe_get32 (fd, offset)
8999 #     int fd;
9000 #     int offset;
9001 # {
9002 #   unsigned char b[4];
9003 #   lseek (fd, offset, SEEK_SET);
9004 #   read (fd, b, 4);
9005 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9006 # }
9007 #
9008 # static unsigned int
9009 # pe_as32 (ptr)
9010 #      void *ptr;
9011 # {
9012 #   unsigned char *b = ptr;
9013 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9014 # }
9015 #
9016 # int
9017 # main (argc, argv)
9018 #     int argc;
9019 #     char *argv[];
9020 # {
9021 #     int dll;
9022 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9023 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
9024 #     unsigned long name_rvas, nexp;
9025 #     unsigned char *expdata, *erva;
9026 #     char *filename, *dll_name;
9027 #
9028 #     filename = argv[1];
9029 #
9030 #     dll = open(filename, O_RDONLY|O_BINARY);
9031 #     if (dll < 1)
9032 #       return 1;
9033 #
9034 #     dll_name = filename;
9035 #
9036 #     for (i=0; filename[i]; i++)
9037 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
9038 #           dll_name = filename + i +1;
9039 #
9040 #     pe_header_offset = pe_get32 (dll, 0x3c);
9041 #     opthdr_ofs = pe_header_offset + 4 + 20;
9042 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
9043 #
9044 #     if (num_entries < 1) /* no exports */
9045 #       return 1;
9046 #
9047 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
9048 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
9049 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9050 #     secptr = (pe_header_offset + 4 + 20 +
9051 #             pe_get16 (dll, pe_header_offset + 4 + 16));
9052 #
9053 #     expptr = 0;
9054 #     for (i = 0; i < nsections; i++)
9055 #     {
9056 #       char sname[8];
9057 #       unsigned long secptr1 = secptr + 40 * i;
9058 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9059 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9060 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9061 #       lseek(dll, secptr1, SEEK_SET);
9062 #       read(dll, sname, 8);
9063 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
9064 #       {
9065 #           expptr = fptr + (export_rva - vaddr);
9066 #           if (export_rva + export_size > vaddr + vsize)
9067 #               export_size = vsize - (export_rva - vaddr);
9068 #           break;
9069 #       }
9070 #     }
9071 #
9072 #     expdata = (unsigned char*)malloc(export_size);
9073 #     lseek (dll, expptr, SEEK_SET);
9074 #     read (dll, expdata, export_size);
9075 #     erva = expdata - export_rva;
9076 #
9077 #     nexp = pe_as32 (expdata+24);
9078 #     name_rvas = pe_as32 (expdata+32);
9079 #
9080 #     printf ("EXPORTS\n");
9081 #     for (i = 0; i<nexp; i++)
9082 #     {
9083 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9084 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9085 #     }
9086 #
9087 #     return 0;
9088 # }
9089 # /* impgen.c ends here */
9090
9091 EOF
9092     ;;
9093   esac
9094
9095   # We use sed instead of cat because bash on DJGPP gets confused if
9096   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9097   # text mode, it properly converts lines to CR/LF.  This bash problem
9098   # is reportedly fixed, but why not run on old versions too?
9099   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9100
9101   mv -f "${ofile}T" "$ofile" || \
9102     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9103   chmod +x "$ofile"
9104 fi
9105
9106
9107
9108
9109
9110 # This can be used to rebuild libtool when needed
9111 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9112
9113 # Always use our own libtool.
9114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9115
9116 # Prevent multiple expansion
9117
9118
9119
9120
9121 echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
9122 echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6
9123 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-lws2_32  $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134
9135
9136 int
9137 main ()
9138 {
9139 main ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_lib_ws2_32_main=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_lib_ws2_32_main=no
9172 fi
9173 rm -f conftest.err conftest.$ac_objext \
9174       conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
9178 echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6
9179 if test $ac_cv_lib_ws2_32_main = yes; then
9180   cat >>confdefs.h <<_ACEOF
9181 #define HAVE_LIBWS2_32 1
9182 _ACEOF
9183
9184   LIBS="-lws2_32 $LIBS"
9185
9186 fi
9187
9188
9189 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
9190 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
9191 if test "${ac_cv_lib_socket_main+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lsocket  $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202
9203
9204 int
9205 main ()
9206 {
9207 main ();
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214   (eval $ac_link) 2>conftest.er1
9215   ac_status=$?
9216   grep -v '^ *+' conftest.er1 >conftest.err
9217   rm -f conftest.er1
9218   cat conftest.err >&5
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); } &&
9221          { ac_try='test -z "$ac_c_werror_flag"
9222                          || test ! -s conftest.err'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; } &&
9228          { ac_try='test -s conftest$ac_exeext'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; }; then
9234   ac_cv_lib_socket_main=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 ac_cv_lib_socket_main=no
9240 fi
9241 rm -f conftest.err conftest.$ac_objext \
9242       conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9244 fi
9245 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
9246 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
9247 if test $ac_cv_lib_socket_main = yes; then
9248   cat >>confdefs.h <<_ACEOF
9249 #define HAVE_LIBSOCKET 1
9250 _ACEOF
9251
9252   LIBS="-lsocket $LIBS"
9253
9254 fi
9255
9256
9257 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9258 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
9259 if test "${ac_cv_lib_nsl_main+set}" = set; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262   ac_check_lib_save_LIBS=$LIBS
9263 LIBS="-lnsl  $LIBS"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271
9272 int
9273 main ()
9274 {
9275 main ();
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282   (eval $ac_link) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"
9290                          || test ! -s conftest.err'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest$ac_exeext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_lib_nsl_main=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_cv_lib_nsl_main=no
9308 fi
9309 rm -f conftest.err conftest.$ac_objext \
9310       conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
9314 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
9315 if test $ac_cv_lib_nsl_main = yes; then
9316   cat >>confdefs.h <<_ACEOF
9317 #define HAVE_LIBNSL 1
9318 _ACEOF
9319
9320   LIBS="-lnsl $LIBS"
9321
9322 fi
9323
9324
9325 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
9326 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
9327 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330   ac_check_lib_save_LIBS=$LIBS
9331 LIBS="-lpthread  $LIBS"
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338
9339 /* Override any gcc2 internal prototype to avoid an error.  */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344    builtin and then its argument prototype would still apply.  */
9345 char pthread_create ();
9346 int
9347 main ()
9348 {
9349 pthread_create ();
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356   (eval $ac_link) 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } &&
9363          { ac_try='test -z "$ac_c_werror_flag"
9364                          || test ! -s conftest.err'
9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366   (eval $ac_try) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; } &&
9370          { ac_try='test -s conftest$ac_exeext'
9371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372   (eval $ac_try) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); }; }; then
9376   ac_cv_lib_pthread_pthread_create=yes
9377 else
9378   echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_lib_pthread_pthread_create=no
9382 fi
9383 rm -f conftest.err conftest.$ac_objext \
9384       conftest$ac_exeext conftest.$ac_ext
9385 LIBS=$ac_check_lib_save_LIBS
9386 fi
9387 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
9388 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
9389 if test $ac_cv_lib_pthread_pthread_create = yes; then
9390   cat >>confdefs.h <<_ACEOF
9391 #define HAVE_LIBPTHREAD 1
9392 _ACEOF
9393
9394   LIBS="-lpthread $LIBS"
9395
9396 else
9397
9398 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
9399 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
9400 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   ac_check_lib_save_LIBS=$LIBS
9404 LIBS="-lc_r  $LIBS"
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 /* Override any gcc2 internal prototype to avoid an error.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 /* We use char because int might match the return type of a gcc2
9417    builtin and then its argument prototype would still apply.  */
9418 char pthread_create ();
9419 int
9420 main ()
9421 {
9422 pthread_create ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429   (eval $ac_link) 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } &&
9436          { ac_try='test -z "$ac_c_werror_flag"
9437                          || test ! -s conftest.err'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; } &&
9443          { ac_try='test -s conftest$ac_exeext'
9444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445   (eval $ac_try) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; }; then
9449   ac_cv_lib_c_r_pthread_create=yes
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 ac_cv_lib_c_r_pthread_create=no
9455 fi
9456 rm -f conftest.err conftest.$ac_objext \
9457       conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
9461 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
9462 if test $ac_cv_lib_c_r_pthread_create = yes; then
9463   cat >>confdefs.h <<_ACEOF
9464 #define HAVE_LIBC_R 1
9465 _ACEOF
9466
9467   LIBS="-lc_r $LIBS"
9468
9469 else
9470   if test ${MINGW} == 'yes' ; then
9471                      LIBS=$LIBS' $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a'
9472                      { echo "$as_me:$LINENO: Using internal version of pthreads!!!" >&5
9473 echo "$as_me: Using internal version of pthreads!!!" >&6;}
9474               else
9475                      { { echo "$as_me:$LINENO: error: Can't compile without pthreads!!!" >&5
9476 echo "$as_me: error: Can't compile without pthreads!!!" >&2;}
9477    { (exit 1); exit 1; }; }
9478               fi
9479
9480 fi
9481
9482
9483 fi
9484
9485 fi
9486
9487 ###############################
9488 # enable GNU source
9489
9490
9491
9492 ###############################
9493 # Checks for header files.
9494 # user space
9495 if test ${UNIX} == 'yes' -o ${WIN} == 'yes' ; then
9496     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9497 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9498 if test "${ac_cv_header_stdc+set}" = set; then
9499   echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501   cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <stdlib.h>
9508 #include <stdarg.h>
9509 #include <string.h>
9510 #include <float.h>
9511
9512 int
9513 main ()
9514 {
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522   (eval $ac_compile) 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } &&
9529          { ac_try='test -z "$ac_c_werror_flag"
9530                          || test ! -s conftest.err'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; } &&
9536          { ac_try='test -s conftest.$ac_objext'
9537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538   (eval $ac_try) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_cv_header_stdc=yes
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_cv_header_stdc=no
9548 fi
9549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9550
9551 if test $ac_cv_header_stdc = yes; then
9552   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9553   cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 #include <string.h>
9560
9561 _ACEOF
9562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9563   $EGREP "memchr" >/dev/null 2>&1; then
9564   :
9565 else
9566   ac_cv_header_stdc=no
9567 fi
9568 rm -f conftest*
9569
9570 fi
9571
9572 if test $ac_cv_header_stdc = yes; then
9573   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9574   cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 #include <stdlib.h>
9581
9582 _ACEOF
9583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9584   $EGREP "free" >/dev/null 2>&1; then
9585   :
9586 else
9587   ac_cv_header_stdc=no
9588 fi
9589 rm -f conftest*
9590
9591 fi
9592
9593 if test $ac_cv_header_stdc = yes; then
9594   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9595   if test "$cross_compiling" = yes; then
9596   :
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 #include <ctype.h>
9605 #if ((' ' & 0x0FF) == 0x020)
9606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9608 #else
9609 # define ISLOWER(c) \
9610                    (('a' <= (c) && (c) <= 'i') \
9611                      || ('j' <= (c) && (c) <= 'r') \
9612                      || ('s' <= (c) && (c) <= 'z'))
9613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9614 #endif
9615
9616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9617 int
9618 main ()
9619 {
9620   int i;
9621   for (i = 0; i < 256; i++)
9622     if (XOR (islower (i), ISLOWER (i))
9623         || toupper (i) != TOUPPER (i))
9624       exit(2);
9625   exit (0);
9626 }
9627 _ACEOF
9628 rm -f conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630   (eval $ac_link) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   :
9640 else
9641   echo "$as_me: program exited with status $ac_status" >&5
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ( exit $ac_status )
9646 ac_cv_header_stdc=no
9647 fi
9648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 fi
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9653 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9654 if test $ac_cv_header_stdc = yes; then
9655
9656 cat >>confdefs.h <<\_ACEOF
9657 #define STDC_HEADERS 1
9658 _ACEOF
9659
9660 fi
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 for ac_header in \
9682     arpa/inet.h fcntl.h stdio.h netdb.h stdlib.h \
9683     string.h sys/ioctl.h sys/time.h unistd.h pthread.h \
9684     sys/types.h sys/sockio.h stdarg.h byteswap.h getopt.h \
9685     ctype.h signal.h stdint.h errno.h
9686 do
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699
9700
9701 #include <$ac_header>
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705   (eval $ac_compile) 2>conftest.er1
9706   ac_status=$?
9707   grep -v '^ *+' conftest.er1 >conftest.err
9708   rm -f conftest.er1
9709   cat conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -z "$ac_c_werror_flag"
9713                          || test ! -s conftest.err'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; } &&
9719          { ac_try='test -s conftest.$ac_objext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   eval "$as_ac_Header=yes"
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 eval "$as_ac_Header=no"
9731 fi
9732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9733 fi
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9737   cat >>confdefs.h <<_ACEOF
9738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9739 _ACEOF
9740
9741 fi
9742
9743 done
9744
9745
9746 for ac_header in sys/socket.h
9747 do
9748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9749 echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760 #ifdef HAVE_SYS_TYPES_H
9761              #include <sys/types.h>
9762            #endif
9763
9764 #include <$ac_header>
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest.$ac_objext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   eval "$as_ac_Header=yes"
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 eval "$as_ac_Header=no"
9794 fi
9795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800   cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9802 _ACEOF
9803
9804 fi
9805
9806 done
9807
9808
9809 for ac_header in netinet/in.h
9810 do
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823 #ifdef HAVE_SYS_TYPES_H
9824              #include <sys/types.h>
9825            #endif
9826
9827 #include <$ac_header>
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831   (eval $ac_compile) 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -z "$ac_c_werror_flag"
9839                          || test ! -s conftest.err'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest.$ac_objext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   eval "$as_ac_Header=yes"
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_Header=no"
9857 fi
9858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863   cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9866
9867 fi
9868
9869 done
9870
9871
9872 for ac_header in net/if.h
9873 do
9874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9875 echo "$as_me:$LINENO: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886 #ifdef HAVE_SYS_TYPES_H
9887              #include <sys/types.h>
9888            #endif
9889            #ifdef HAVE_SYS_SOCKET_H
9890              #include <sys/socket.h>
9891            #endif
9892
9893 #include <$ac_header>
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897   (eval $ac_compile) 2>conftest.er1
9898   ac_status=$?
9899   grep -v '^ *+' conftest.er1 >conftest.err
9900   rm -f conftest.er1
9901   cat conftest.err >&5
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -z "$ac_c_werror_flag"
9905                          || test ! -s conftest.err'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest.$ac_objext'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917   eval "$as_ac_Header=yes"
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 eval "$as_ac_Header=no"
9923 fi
9924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9929   cat >>confdefs.h <<_ACEOF
9930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9931 _ACEOF
9932
9933 fi
9934
9935 done
9936
9937 fi
9938 # win32
9939 if test ${WIN} == 'yes' ; then
9940
9941
9942
9943
9944 for ac_header in \
9945     winsock2.h ws2tcpip.h windows.h w32api/windows.h
9946 do
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 echo "$as_me:$LINENO: checking for $ac_header" >&5
9949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959
9960
9961 #include <$ac_header>
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965   (eval $ac_compile) 2>conftest.er1
9966   ac_status=$?
9967   grep -v '^ *+' conftest.er1 >conftest.err
9968   rm -f conftest.er1
9969   cat conftest.err >&5
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -z "$ac_c_werror_flag"
9973                          || test ! -s conftest.err'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; } &&
9979          { ac_try='test -s conftest.$ac_objext'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   eval "$as_ac_Header=yes"
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 eval "$as_ac_Header=no"
9991 fi
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9993 fi
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9997   cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 _ACEOF
10000
10001 fi
10002
10003 done
10004
10005 fi
10006 # kernel
10007 if test ${CONFIG_ORTE_KERNEL} == 'yes' ; then
10008
10009
10010
10011
10012
10013
10014
10015
10016 for ac_header in \
10017     asm/byteorder.h linux/ctype.h linux/string.h \
10018     linux/module.h linux/if.h linux/socket.h \
10019     linux/time.h linux/types.h
10020 do
10021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10022 echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034
10035 #include <$ac_header>
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039   (eval $ac_compile) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"
10047                          || test ! -s conftest.err'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest.$ac_objext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   eval "$as_ac_Header=yes"
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 eval "$as_ac_Header=no"
10065 fi
10066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10067 fi
10068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10071   cat >>confdefs.h <<_ACEOF
10072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10073 _ACEOF
10074
10075 fi
10076
10077 done
10078
10079
10080 for ac_header in linux/in.h
10081 do
10082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10083 echo "$as_me:$LINENO: checking for $ac_header" >&5
10084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088   cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095     #ifdef HAVE_LINUX_SOCKET_H
10096       #include <linux/socket.h>
10097     #endif
10098
10099
10100 #include <$ac_header>
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104   (eval $ac_compile) 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } &&
10111          { ac_try='test -z "$ac_c_werror_flag"
10112                          || test ! -s conftest.err'
10113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114   (eval $ac_try) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   eval "$as_ac_Header=yes"
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 eval "$as_ac_Header=no"
10130 fi
10131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10132 fi
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10136   cat >>confdefs.h <<_ACEOF
10137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10138 _ACEOF
10139
10140 fi
10141
10142 done
10143
10144 fi
10145 # RTLinux
10146 if test ${USE_RTLINUX} == 'yes' ; then
10147
10148
10149
10150
10151
10152
10153
10154 for ac_header in \
10155     string.h pthread.h \
10156     rtl.h rtl_malloc.h udp.h nic.h time.h
10157 do
10158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170
10171
10172 #include <$ac_header>
10173 _ACEOF
10174 rm -f conftest.$ac_objext
10175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10176   (eval $ac_compile) 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -z "$ac_c_werror_flag"
10184                          || test ! -s conftest.err'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; } &&
10190          { ac_try='test -s conftest.$ac_objext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   eval "$as_ac_Header=yes"
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 eval "$as_ac_Header=no"
10202 fi
10203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10204 fi
10205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10208   cat >>confdefs.h <<_ACEOF
10209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 _ACEOF
10211
10212 fi
10213
10214 done
10215
10216
10217 for ac_header in nictab.h
10218 do
10219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10220 echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231
10232     #ifdef HAVE_UDP_H
10233       #include <udp.h>
10234     #endif
10235     #ifdef HAVE_NIC_H
10236       #include <nic.h>
10237     #endif
10238
10239
10240 #include <$ac_header>
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10244   (eval $ac_compile) 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -z "$ac_c_werror_flag"
10252                          || test ! -s conftest.err'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; } &&
10258          { ac_try='test -s conftest.$ac_objext'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   eval "$as_ac_Header=yes"
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 eval "$as_ac_Header=no"
10270 fi
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 fi
10273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10276   cat >>confdefs.h <<_ACEOF
10277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278 _ACEOF
10279
10280 fi
10281
10282 done
10283
10284
10285 for ac_header in onetd.h
10286 do
10287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300     #ifdef HAVE_LINUX_IF_H
10301       #include <linux/if.h>
10302     #endif
10303     #ifdef HAVE_LINUX_IN_H
10304       #include <linux/in.h>
10305     #endif
10306     #ifdef HAVE_PTHREAD_H
10307       #include <pthread.h>
10308     #endif
10309
10310
10311 #include <$ac_header>
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315   (eval $ac_compile) 2>conftest.er1
10316   ac_status=$?
10317   grep -v '^ *+' conftest.er1 >conftest.err
10318   rm -f conftest.er1
10319   cat conftest.err >&5
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } &&
10322          { ac_try='test -z "$ac_c_werror_flag"
10323                          || test ! -s conftest.err'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; } &&
10329          { ac_try='test -s conftest.$ac_objext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   eval "$as_ac_Header=yes"
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 eval "$as_ac_Header=no"
10341 fi
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 fi
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10347   cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10349 _ACEOF
10350
10351 fi
10352
10353 done
10354
10355 fi
10356 # RTAI
10357 if test ${USE_RTAI} == 'yes' ; then
10358
10359 for ac_header in \
10360     rtnet.h
10361 do
10362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10363 echo "$as_me:$LINENO: checking for $ac_header" >&5
10364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374
10375
10376 #include <$ac_header>
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380   (eval $ac_compile) 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -z "$ac_c_werror_flag"
10388                          || test ! -s conftest.err'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; } &&
10394          { ac_try='test -s conftest.$ac_objext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   eval "$as_ac_Header=yes"
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 eval "$as_ac_Header=no"
10406 fi
10407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10408 fi
10409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412   cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 fi
10417
10418 done
10419
10420 fi
10421
10422 ###############################
10423 # includes
10424 INCLUDES='-I$(top_srcdir)/orte/include -I$(top_builddir)/orte/include'
10425
10426
10427 ###############################
10428 # Checks for typedefs, structures, and compiler characteristics.
10429 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10430 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10431 if test "${ac_cv_c_bigendian+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   # See if sys/param.h defines the BYTE_ORDER macro.
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #include <sys/types.h>
10442 #include <sys/param.h>
10443
10444 int
10445 main ()
10446 {
10447 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10448  bogus endian macros
10449 #endif
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10457   (eval $ac_compile) 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -z "$ac_c_werror_flag"
10465                          || test ! -s conftest.err'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; } &&
10471          { ac_try='test -s conftest.$ac_objext'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; }; then
10477   # It does; now see whether it defined to BIG_ENDIAN or not.
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <sys/types.h>
10485 #include <sys/param.h>
10486
10487 int
10488 main ()
10489 {
10490 #if BYTE_ORDER != BIG_ENDIAN
10491  not big endian
10492 #endif
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500   (eval $ac_compile) 2>conftest.er1
10501   ac_status=$?
10502   grep -v '^ *+' conftest.er1 >conftest.err
10503   rm -f conftest.er1
10504   cat conftest.err >&5
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -z "$ac_c_werror_flag"
10508                          || test ! -s conftest.err'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; } &&
10514          { ac_try='test -s conftest.$ac_objext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_cv_c_bigendian=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 ac_cv_c_bigendian=no
10526 fi
10527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 # It does not; compile a test program.
10533 if test "$cross_compiling" = yes; then
10534   # try to guess the endianness by grepping values into an object file
10535   ac_cv_c_bigendian=unknown
10536   cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10543 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10544 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10545 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10546 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10547 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10548 int
10549 main ()
10550 {
10551  _ascii (); _ebcdic ();
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558   (eval $ac_compile) 2>conftest.er1
10559   ac_status=$?
10560   grep -v '^ *+' conftest.er1 >conftest.err
10561   rm -f conftest.er1
10562   cat conftest.err >&5
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } &&
10565          { ac_try='test -z "$ac_c_werror_flag"
10566                          || test ! -s conftest.err'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; } &&
10572          { ac_try='test -s conftest.$ac_objext'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; }; then
10578   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10579   ac_cv_c_bigendian=yes
10580 fi
10581 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10582   if test "$ac_cv_c_bigendian" = unknown; then
10583     ac_cv_c_bigendian=no
10584   else
10585     # finding both strings is unlikely to happen, but who knows?
10586     ac_cv_c_bigendian=unknown
10587   fi
10588 fi
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 fi
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10595 else
10596   cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 int
10603 main ()
10604 {
10605   /* Are we little or big endian?  From Harbison&Steele.  */
10606   union
10607   {
10608     long l;
10609     char c[sizeof (long)];
10610   } u;
10611   u.l = 1;
10612   exit (u.c[sizeof (long) - 1] == 1);
10613 }
10614 _ACEOF
10615 rm -f conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617   (eval $ac_link) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   ac_cv_c_bigendian=no
10627 else
10628   echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ( exit $ac_status )
10633 ac_cv_c_bigendian=yes
10634 fi
10635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10636 fi
10637 fi
10638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10639 fi
10640 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10641 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10642 case $ac_cv_c_bigendian in
10643   yes)
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define WORDS_BIGENDIAN 1
10647 _ACEOF
10648  ;;
10649   no)
10650      ;;
10651   *)
10652     { { echo "$as_me:$LINENO: error: unknown endianness
10653 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10654 echo "$as_me: error: unknown endianness
10655 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10656    { (exit 1); exit 1; }; } ;;
10657 esac
10658
10659 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10661 if test "${ac_cv_c_const+set}" = set; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664   cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 int
10672 main ()
10673 {
10674 /* FIXME: Include the comments suggested by Paul. */
10675 #ifndef __cplusplus
10676   /* Ultrix mips cc rejects this.  */
10677   typedef int charset[2];
10678   const charset x;
10679   /* SunOS 4.1.1 cc rejects this.  */
10680   char const *const *ccp;
10681   char **p;
10682   /* NEC SVR4.0.2 mips cc rejects this.  */
10683   struct point {int x, y;};
10684   static struct point const zero = {0,0};
10685   /* AIX XL C 1.02.0.0 rejects this.
10686      It does not let you subtract one const X* pointer from another in
10687      an arm of an if-expression whose if-part is not a constant
10688      expression */
10689   const char *g = "string";
10690   ccp = &g + (g ? g-g : 0);
10691   /* HPUX 7.0 cc rejects these. */
10692   ++ccp;
10693   p = (char**) ccp;
10694   ccp = (char const *const *) p;
10695   { /* SCO 3.2v4 cc rejects this.  */
10696     char *t;
10697     char const *s = 0 ? (char *) 0 : (char const *) 0;
10698
10699     *t++ = 0;
10700   }
10701   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10702     int x[] = {25, 17};
10703     const int *foo = &x[0];
10704     ++foo;
10705   }
10706   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10707     typedef const int *iptr;
10708     iptr p = 0;
10709     ++p;
10710   }
10711   { /* AIX XL C 1.02.0.0 rejects this saying
10712        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10713     struct s { int j; const int *ap[3]; };
10714     struct s *b; b->j = 5;
10715   }
10716   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10717     const int foo = 10;
10718   }
10719 #endif
10720
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest.$ac_objext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10727   (eval $ac_compile) 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag"
10735                          || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   ac_cv_c_const=yes
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ac_cv_c_const=no
10753 fi
10754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10755 fi
10756 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10757 echo "${ECHO_T}$ac_cv_c_const" >&6
10758 if test $ac_cv_c_const = no; then
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define const
10762 _ACEOF
10763
10764 fi
10765
10766 echo "$as_me:$LINENO: checking for inline" >&5
10767 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10768 if test "${ac_cv_c_inline+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771   ac_cv_c_inline=no
10772 for ac_kw in inline __inline__ __inline; do
10773   cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 #ifndef __cplusplus
10780 typedef int foo_t;
10781 static $ac_kw foo_t static_foo () {return 0; }
10782 $ac_kw foo_t foo () {return 0; }
10783 #endif
10784
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788   (eval $ac_compile) 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -z "$ac_c_werror_flag"
10796                          || test ! -s conftest.err'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest.$ac_objext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_c_inline=$ac_kw; break
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 fi
10814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10815 done
10816
10817 fi
10818 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10819 echo "${ECHO_T}$ac_cv_c_inline" >&6
10820
10821
10822 case $ac_cv_c_inline in
10823   inline | yes) ;;
10824   *)
10825     case $ac_cv_c_inline in
10826       no) ac_val=;;
10827       *) ac_val=$ac_cv_c_inline;;
10828     esac
10829     cat >>confdefs.h <<_ACEOF
10830 #ifndef __cplusplus
10831 #define inline $ac_val
10832 #endif
10833 _ACEOF
10834     ;;
10835 esac
10836
10837
10838 ###############################
10839 # Checks for library functions.
10840 if test $ac_cv_c_compiler_gnu = yes; then
10841     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10842 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10843 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846     ac_pattern="Autoconf.*'x'"
10847   cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853 #include <sgtty.h>
10854 Autoconf TIOCGETP
10855 _ACEOF
10856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10857   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10858   ac_cv_prog_gcc_traditional=yes
10859 else
10860   ac_cv_prog_gcc_traditional=no
10861 fi
10862 rm -f conftest*
10863
10864
10865   if test $ac_cv_prog_gcc_traditional = no; then
10866     cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872 #include <termio.h>
10873 Autoconf TCGETA
10874 _ACEOF
10875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10876   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10877   ac_cv_prog_gcc_traditional=yes
10878 fi
10879 rm -f conftest*
10880
10881   fi
10882 fi
10883 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10884 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10885   if test $ac_cv_prog_gcc_traditional = yes; then
10886     CC="$CC -traditional"
10887   fi
10888 fi
10889
10890 if test -z ${CONFIG_ORTE_RT} ; then
10891
10892
10893 for ac_func in gethostbyname getopt_long
10894 do
10895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10896 echo "$as_me:$LINENO: checking for $ac_func" >&5
10897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10898 if eval "test \"\${$as_ac_var+set}\" = set"; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10909 #define $ac_func innocuous_$ac_func
10910
10911 /* System header to define __stub macros and hopefully few prototypes,
10912     which can conflict with char $ac_func (); below.
10913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10914     <limits.h> exists even on freestanding compilers.  */
10915
10916 #ifdef __STDC__
10917 # include <limits.h>
10918 #else
10919 # include <assert.h>
10920 #endif
10921
10922 #undef $ac_func
10923
10924 /* Override any gcc2 internal prototype to avoid an error.  */
10925 #ifdef __cplusplus
10926 extern "C"
10927 {
10928 #endif
10929 /* We use char because int might match the return type of a gcc2
10930    builtin and then its argument prototype would still apply.  */
10931 char $ac_func ();
10932 /* The GNU C library defines this for functions which it implements
10933     to always fail with ENOSYS.  Some functions are actually named
10934     something starting with __ and the normal name is an alias.  */
10935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10936 choke me
10937 #else
10938 char (*f) () = $ac_func;
10939 #endif
10940 #ifdef __cplusplus
10941 }
10942 #endif
10943
10944 int
10945 main ()
10946 {
10947 return f != $ac_func;
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954   (eval $ac_link) 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -z "$ac_c_werror_flag"
10962                          || test ! -s conftest.err'
10963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964   (eval $ac_try) 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; } &&
10968          { ac_try='test -s conftest$ac_exeext'
10969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970   (eval $ac_try) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; }; then
10974   eval "$as_ac_var=yes"
10975 else
10976   echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979 eval "$as_ac_var=no"
10980 fi
10981 rm -f conftest.err conftest.$ac_objext \
10982       conftest$ac_exeext conftest.$ac_ext
10983 fi
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10986 if test `eval echo '${'$as_ac_var'}'` = yes; then
10987   cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 _ACEOF
10990
10991 fi
10992 done
10993
10994 fi
10995
10996                                                                                                                                   ac_config_files="$ac_config_files Makefile orte/Makefile orte/liborte/Makefile orte/liborte/rtl/Makefile orte/examples/Makefile orte/examples/hello/Makefile orte/examples/multicast/Makefile orte/examples/reliable/Makefile orte/examples/ping/Makefile orte/examples/spy/Makefile orte/idl-compiler/Makefile orte/libjorte/Makefile orte/manager/Makefile"
10997
10998
10999
11000           ac_config_files="$ac_config_files modtool"
11001 cat >confcache <<\_ACEOF
11002 # This file is a shell script that caches the results of configure
11003 # tests run on this system so they can be shared between configure
11004 # scripts and configure runs, see configure's option --config-cache.
11005 # It is not useful on other systems.  If it contains results you don't
11006 # want to keep, you may remove or edit it.
11007 #
11008 # config.status only pays attention to the cache file if you give it
11009 # the --recheck option to rerun configure.
11010 #
11011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11013 # following values.
11014
11015 _ACEOF
11016
11017 # The following way of writing the cache mishandles newlines in values,
11018 # but we know of no workaround that is simple, portable, and efficient.
11019 # So, don't put newlines in cache variables' values.
11020 # Ultrix sh set writes to stderr and can't be redirected directly,
11021 # and sets the high bit in the cache file unless we assign to the vars.
11022 {
11023   (set) 2>&1 |
11024     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11025     *ac_space=\ *)
11026       # `set' does not quote correctly, so add quotes (double-quote
11027       # substitution turns \\\\ into \\, and sed turns \\ into \).
11028       sed -n \
11029         "s/'/'\\\\''/g;
11030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11031       ;;
11032     *)
11033       # `set' quotes correctly as required by POSIX, so do not add quotes.
11034       sed -n \
11035         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11036       ;;
11037     esac;
11038 } |
11039   sed '
11040      t clear
11041      : clear
11042      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11043      t end
11044      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11045      : end' >>confcache
11046 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11047   if test -w $cache_file; then
11048     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11049     cat confcache >$cache_file
11050   else
11051     echo "not updating unwritable cache $cache_file"
11052   fi
11053 fi
11054 rm -f confcache
11055
11056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11057 # Let make expand exec_prefix.
11058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11059
11060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11062 # trailing colons and then remove the whole line if VPATH becomes empty
11063 # (actually we leave an empty line to preserve line numbers).
11064 if test "x$srcdir" = x.; then
11065   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11066 s/:*\$(srcdir):*/:/;
11067 s/:*\${srcdir}:*/:/;
11068 s/:*@srcdir@:*/:/;
11069 s/^\([^=]*=[     ]*\):*/\1/;
11070 s/:*$//;
11071 s/^[^=]*=[       ]*$//;
11072 }'
11073 fi
11074
11075 DEFS=-DHAVE_CONFIG_H
11076
11077 ac_libobjs=
11078 ac_ltlibobjs=
11079 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11080   # 1. Remove the extension, and $U if already installed.
11081   ac_i=`echo "$ac_i" |
11082          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11083   # 2. Add them.
11084   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11085   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11086 done
11087 LIBOBJS=$ac_libobjs
11088
11089 LTLIBOBJS=$ac_ltlibobjs
11090
11091
11092 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11093   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11094 Usually this means the macro was only invoked conditionally." >&5
11095 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11096 Usually this means the macro was only invoked conditionally." >&2;}
11097    { (exit 1); exit 1; }; }
11098 fi
11099 if test -z "${CONFIG_ORTE_KERNEL_TRUE}" && test -z "${CONFIG_ORTE_KERNEL_FALSE}"; then
11100   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_KERNEL\" was never defined.
11101 Usually this means the macro was only invoked conditionally." >&5
11102 echo "$as_me: error: conditional \"CONFIG_ORTE_KERNEL\" was never defined.
11103 Usually this means the macro was only invoked conditionally." >&2;}
11104    { (exit 1); exit 1; }; }
11105 fi
11106 if test -z "${CONFIG_RTHAL_TRUE}" && test -z "${CONFIG_RTHAL_FALSE}"; then
11107   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RTHAL\" was never defined.
11108 Usually this means the macro was only invoked conditionally." >&5
11109 echo "$as_me: error: conditional \"CONFIG_RTHAL\" was never defined.
11110 Usually this means the macro was only invoked conditionally." >&2;}
11111    { (exit 1); exit 1; }; }
11112 fi
11113 if test -z "${CONFIG_ADEOS_TRUE}" && test -z "${CONFIG_ADEOS_FALSE}"; then
11114   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ADEOS\" was never defined.
11115 Usually this means the macro was only invoked conditionally." >&5
11116 echo "$as_me: error: conditional \"CONFIG_ADEOS\" was never defined.
11117 Usually this means the macro was only invoked conditionally." >&2;}
11118    { (exit 1); exit 1; }; }
11119 fi
11120 if test -z "${CONFIG_RTLINUX_TRUE}" && test -z "${CONFIG_RTLINUX_FALSE}"; then
11121   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RTLINUX\" was never defined.
11122 Usually this means the macro was only invoked conditionally." >&5
11123 echo "$as_me: error: conditional \"CONFIG_RTLINUX\" was never defined.
11124 Usually this means the macro was only invoked conditionally." >&2;}
11125    { (exit 1); exit 1; }; }
11126 fi
11127 if test -z "${USE_RTAI_TRUE}" && test -z "${USE_RTAI_FALSE}"; then
11128   { { echo "$as_me:$LINENO: error: conditional \"USE_RTAI\" was never defined.
11129 Usually this means the macro was only invoked conditionally." >&5
11130 echo "$as_me: error: conditional \"USE_RTAI\" was never defined.
11131 Usually this means the macro was only invoked conditionally." >&2;}
11132    { (exit 1); exit 1; }; }
11133 fi
11134 if test -z "${USE_RTLINUX_TRUE}" && test -z "${USE_RTLINUX_FALSE}"; then
11135   { { echo "$as_me:$LINENO: error: conditional \"USE_RTLINUX\" was never defined.
11136 Usually this means the macro was only invoked conditionally." >&5
11137 echo "$as_me: error: conditional \"USE_RTLINUX\" was never defined.
11138 Usually this means the macro was only invoked conditionally." >&2;}
11139    { (exit 1); exit 1; }; }
11140 fi
11141 if test -z "${CONFIG_ORTE_RT_TRUE}" && test -z "${CONFIG_ORTE_RT_FALSE}"; then
11142   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_RT\" was never defined.
11143 Usually this means the macro was only invoked conditionally." >&5
11144 echo "$as_me: error: conditional \"CONFIG_ORTE_RT\" was never defined.
11145 Usually this means the macro was only invoked conditionally." >&2;}
11146    { (exit 1); exit 1; }; }
11147 fi
11148 if test -z "${CONFIG_ORTE_WIN_TRUE}" && test -z "${CONFIG_ORTE_WIN_FALSE}"; then
11149   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_WIN\" was never defined.
11150 Usually this means the macro was only invoked conditionally." >&5
11151 echo "$as_me: error: conditional \"CONFIG_ORTE_WIN\" was never defined.
11152 Usually this means the macro was only invoked conditionally." >&2;}
11153    { (exit 1); exit 1; }; }
11154 fi
11155 if test -z "${CONFIG_ORTE_CYGWIN_TRUE}" && test -z "${CONFIG_ORTE_CYGWIN_FALSE}"; then
11156   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_CYGWIN\" was never defined.
11157 Usually this means the macro was only invoked conditionally." >&5
11158 echo "$as_me: error: conditional \"CONFIG_ORTE_CYGWIN\" was never defined.
11159 Usually this means the macro was only invoked conditionally." >&2;}
11160    { (exit 1); exit 1; }; }
11161 fi
11162 if test -z "${CONFIG_ORTE_MINGW_TRUE}" && test -z "${CONFIG_ORTE_MINGW_FALSE}"; then
11163   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_MINGW\" was never defined.
11164 Usually this means the macro was only invoked conditionally." >&5
11165 echo "$as_me: error: conditional \"CONFIG_ORTE_MINGW\" was never defined.
11166 Usually this means the macro was only invoked conditionally." >&2;}
11167    { (exit 1); exit 1; }; }
11168 fi
11169 if test -z "${CONFIG_ORTE_UNIX_TRUE}" && test -z "${CONFIG_ORTE_UNIX_FALSE}"; then
11170   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_UNIX\" was never defined.
11171 Usually this means the macro was only invoked conditionally." >&5
11172 echo "$as_me: error: conditional \"CONFIG_ORTE_UNIX\" was never defined.
11173 Usually this means the macro was only invoked conditionally." >&2;}
11174    { (exit 1); exit 1; }; }
11175 fi
11176 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11177   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11178 Usually this means the macro was only invoked conditionally." >&5
11179 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11180 Usually this means the macro was only invoked conditionally." >&2;}
11181    { (exit 1); exit 1; }; }
11182 fi
11183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11184   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11185 Usually this means the macro was only invoked conditionally." >&5
11186 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11187 Usually this means the macro was only invoked conditionally." >&2;}
11188    { (exit 1); exit 1; }; }
11189 fi
11190 if test -z "${CONFIG_ORTE_IDL_TRUE}" && test -z "${CONFIG_ORTE_IDL_FALSE}"; then
11191   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_IDL\" was never defined.
11192 Usually this means the macro was only invoked conditionally." >&5
11193 echo "$as_me: error: conditional \"CONFIG_ORTE_IDL\" was never defined.
11194 Usually this means the macro was only invoked conditionally." >&2;}
11195    { (exit 1); exit 1; }; }
11196 fi
11197 if test -z "${CONFIG_JORTE_TRUE}" && test -z "${CONFIG_JORTE_FALSE}"; then
11198   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_JORTE\" was never defined.
11199 Usually this means the macro was only invoked conditionally." >&5
11200 echo "$as_me: error: conditional \"CONFIG_JORTE\" was never defined.
11201 Usually this means the macro was only invoked conditionally." >&2;}
11202    { (exit 1); exit 1; }; }
11203 fi
11204
11205 : ${CONFIG_STATUS=./config.status}
11206 ac_clean_files_save=$ac_clean_files
11207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11210 cat >$CONFIG_STATUS <<_ACEOF
11211 #! $SHELL
11212 # Generated by $as_me.
11213 # Run this file to recreate the current configuration.
11214 # Compiler output produced by configure, useful for debugging
11215 # configure, is in config.log if it exists.
11216
11217 debug=false
11218 ac_cs_recheck=false
11219 ac_cs_silent=false
11220 SHELL=\${CONFIG_SHELL-$SHELL}
11221 _ACEOF
11222
11223 cat >>$CONFIG_STATUS <<\_ACEOF
11224 ## --------------------- ##
11225 ## M4sh Initialization.  ##
11226 ## --------------------- ##
11227
11228 # Be Bourne compatible
11229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11230   emulate sh
11231   NULLCMD=:
11232   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11233   # is contrary to our usage.  Disable this feature.
11234   alias -g '${1+"$@"}'='"$@"'
11235 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11236   set -o posix
11237 fi
11238 DUALCASE=1; export DUALCASE # for MKS sh
11239
11240 # Support unset when possible.
11241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11242   as_unset=unset
11243 else
11244   as_unset=false
11245 fi
11246
11247
11248 # Work around bugs in pre-3.0 UWIN ksh.
11249 $as_unset ENV MAIL MAILPATH
11250 PS1='$ '
11251 PS2='> '
11252 PS4='+ '
11253
11254 # NLS nuisances.
11255 for as_var in \
11256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11258   LC_TELEPHONE LC_TIME
11259 do
11260   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11261     eval $as_var=C; export $as_var
11262   else
11263     $as_unset $as_var
11264   fi
11265 done
11266
11267 # Required to use basename.
11268 if expr a : '\(a\)' >/dev/null 2>&1; then
11269   as_expr=expr
11270 else
11271   as_expr=false
11272 fi
11273
11274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11275   as_basename=basename
11276 else
11277   as_basename=false
11278 fi
11279
11280
11281 # Name of the executable.
11282 as_me=`$as_basename "$0" ||
11283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11284          X"$0" : 'X\(//\)$' \| \
11285          X"$0" : 'X\(/\)$' \| \
11286          .     : '\(.\)' 2>/dev/null ||
11287 echo X/"$0" |
11288     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11289           /^X\/\(\/\/\)$/{ s//\1/; q; }
11290           /^X\/\(\/\).*/{ s//\1/; q; }
11291           s/.*/./; q'`
11292
11293
11294 # PATH needs CR, and LINENO needs CR and PATH.
11295 # Avoid depending upon Character Ranges.
11296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11299 as_cr_digits='0123456789'
11300 as_cr_alnum=$as_cr_Letters$as_cr_digits
11301
11302 # The user is always right.
11303 if test "${PATH_SEPARATOR+set}" != set; then
11304   echo "#! /bin/sh" >conf$$.sh
11305   echo  "exit 0"   >>conf$$.sh
11306   chmod +x conf$$.sh
11307   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11308     PATH_SEPARATOR=';'
11309   else
11310     PATH_SEPARATOR=:
11311   fi
11312   rm -f conf$$.sh
11313 fi
11314
11315
11316   as_lineno_1=$LINENO
11317   as_lineno_2=$LINENO
11318   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11319   test "x$as_lineno_1" != "x$as_lineno_2" &&
11320   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11321   # Find who we are.  Look in the path if we contain no path at all
11322   # relative or not.
11323   case $0 in
11324     *[\\/]* ) as_myself=$0 ;;
11325     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328   IFS=$as_save_IFS
11329   test -z "$as_dir" && as_dir=.
11330   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11331 done
11332
11333        ;;
11334   esac
11335   # We did not find ourselves, most probably we were run as `sh COMMAND'
11336   # in which case we are not to be found in the path.
11337   if test "x$as_myself" = x; then
11338     as_myself=$0
11339   fi
11340   if test ! -f "$as_myself"; then
11341     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11343    { (exit 1); exit 1; }; }
11344   fi
11345   case $CONFIG_SHELL in
11346   '')
11347     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11349 do
11350   IFS=$as_save_IFS
11351   test -z "$as_dir" && as_dir=.
11352   for as_base in sh bash ksh sh5; do
11353          case $as_dir in
11354          /*)
11355            if ("$as_dir/$as_base" -c '
11356   as_lineno_1=$LINENO
11357   as_lineno_2=$LINENO
11358   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11359   test "x$as_lineno_1" != "x$as_lineno_2" &&
11360   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11361              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11362              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11363              CONFIG_SHELL=$as_dir/$as_base
11364              export CONFIG_SHELL
11365              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11366            fi;;
11367          esac
11368        done
11369 done
11370 ;;
11371   esac
11372
11373   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11374   # uniformly replaced by the line number.  The first 'sed' inserts a
11375   # line-number line before each line; the second 'sed' does the real
11376   # work.  The second script uses 'N' to pair each line-number line
11377   # with the numbered line, and appends trailing '-' during
11378   # substitution so that $LINENO is not a special case at line end.
11379   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11380   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11381   sed '=' <$as_myself |
11382     sed '
11383       N
11384       s,$,-,
11385       : loop
11386       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11387       t loop
11388       s,-$,,
11389       s,^['$as_cr_digits']*\n,,
11390     ' >$as_me.lineno &&
11391   chmod +x $as_me.lineno ||
11392     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11394    { (exit 1); exit 1; }; }
11395
11396   # Don't try to exec as it changes $[0], causing all sort of problems
11397   # (the dirname of $[0] is not the place where we might find the
11398   # original and so on.  Autoconf is especially sensible to this).
11399   . ./$as_me.lineno
11400   # Exit status is that of the last command.
11401   exit
11402 }
11403
11404
11405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11406   *c*,-n*) ECHO_N= ECHO_C='
11407 ' ECHO_T='      ' ;;
11408   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11409   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11410 esac
11411
11412 if expr a : '\(a\)' >/dev/null 2>&1; then
11413   as_expr=expr
11414 else
11415   as_expr=false
11416 fi
11417
11418 rm -f conf$$ conf$$.exe conf$$.file
11419 echo >conf$$.file
11420 if ln -s conf$$.file conf$$ 2>/dev/null; then
11421   # We could just check for DJGPP; but this test a) works b) is more generic
11422   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11423   if test -f conf$$.exe; then
11424     # Don't use ln at all; we don't have any links
11425     as_ln_s='cp -p'
11426   else
11427     as_ln_s='ln -s'
11428   fi
11429 elif ln conf$$.file conf$$ 2>/dev/null; then
11430   as_ln_s=ln
11431 else
11432   as_ln_s='cp -p'
11433 fi
11434 rm -f conf$$ conf$$.exe conf$$.file
11435
11436 if mkdir -p . 2>/dev/null; then
11437   as_mkdir_p=:
11438 else
11439   test -d ./-p && rmdir ./-p
11440   as_mkdir_p=false
11441 fi
11442
11443 as_executable_p="test -f"
11444
11445 # Sed expression to map a string onto a valid CPP name.
11446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11447
11448 # Sed expression to map a string onto a valid variable name.
11449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11450
11451
11452 # IFS
11453 # We need space, tab and new line, in precisely that order.
11454 as_nl='
11455 '
11456 IFS="   $as_nl"
11457
11458 # CDPATH.
11459 $as_unset CDPATH
11460
11461 exec 6>&1
11462
11463 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11464 # report actual input values of CONFIG_FILES etc. instead of their
11465 # values after options handling.  Logging --version etc. is OK.
11466 exec 5>>config.log
11467 {
11468   echo
11469   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11470 ## Running $as_me. ##
11471 _ASBOX
11472 } >&5
11473 cat >&5 <<_CSEOF
11474
11475 This file was extended by orte $as_me 0.3.0, which was
11476 generated by GNU Autoconf 2.59.  Invocation command line was
11477
11478   CONFIG_FILES    = $CONFIG_FILES
11479   CONFIG_HEADERS  = $CONFIG_HEADERS
11480   CONFIG_LINKS    = $CONFIG_LINKS
11481   CONFIG_COMMANDS = $CONFIG_COMMANDS
11482   $ $0 $@
11483
11484 _CSEOF
11485 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11486 echo >&5
11487 _ACEOF
11488
11489 # Files that config.status was made for.
11490 if test -n "$ac_config_files"; then
11491   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11492 fi
11493
11494 if test -n "$ac_config_headers"; then
11495   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11496 fi
11497
11498 if test -n "$ac_config_links"; then
11499   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11500 fi
11501
11502 if test -n "$ac_config_commands"; then
11503   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11504 fi
11505
11506 cat >>$CONFIG_STATUS <<\_ACEOF
11507
11508 ac_cs_usage="\
11509 \`$as_me' instantiates files from templates according to the
11510 current configuration.
11511
11512 Usage: $0 [OPTIONS] [FILE]...
11513
11514   -h, --help       print this help, then exit
11515   -V, --version    print version number, then exit
11516   -q, --quiet      do not print progress messages
11517   -d, --debug      don't remove temporary files
11518       --recheck    update $as_me by reconfiguring in the same conditions
11519   --file=FILE[:TEMPLATE]
11520                    instantiate the configuration file FILE
11521   --header=FILE[:TEMPLATE]
11522                    instantiate the configuration header FILE
11523
11524 Configuration files:
11525 $config_files
11526
11527 Configuration headers:
11528 $config_headers
11529
11530 Configuration commands:
11531 $config_commands
11532
11533 Report bugs to <bug-autoconf@gnu.org>."
11534 _ACEOF
11535
11536 cat >>$CONFIG_STATUS <<_ACEOF
11537 ac_cs_version="\\
11538 orte config.status 0.3.0
11539 configured by $0, generated by GNU Autoconf 2.59,
11540   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11541
11542 Copyright (C) 2003 Free Software Foundation, Inc.
11543 This config.status script is free software; the Free Software Foundation
11544 gives unlimited permission to copy, distribute and modify it."
11545 srcdir=$srcdir
11546 INSTALL="$INSTALL"
11547 _ACEOF
11548
11549 cat >>$CONFIG_STATUS <<\_ACEOF
11550 # If no file are specified by the user, then we need to provide default
11551 # value.  By we need to know if files were specified by the user.
11552 ac_need_defaults=:
11553 while test $# != 0
11554 do
11555   case $1 in
11556   --*=*)
11557     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11558     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11559     ac_shift=:
11560     ;;
11561   -*)
11562     ac_option=$1
11563     ac_optarg=$2
11564     ac_shift=shift
11565     ;;
11566   *) # This is not an option, so the user has probably given explicit
11567      # arguments.
11568      ac_option=$1
11569      ac_need_defaults=false;;
11570   esac
11571
11572   case $ac_option in
11573   # Handling of the options.
11574 _ACEOF
11575 cat >>$CONFIG_STATUS <<\_ACEOF
11576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11577     ac_cs_recheck=: ;;
11578   --version | --vers* | -V )
11579     echo "$ac_cs_version"; exit 0 ;;
11580   --he | --h)
11581     # Conflict between --help and --header
11582     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11583 Try \`$0 --help' for more information." >&5
11584 echo "$as_me: error: ambiguous option: $1
11585 Try \`$0 --help' for more information." >&2;}
11586    { (exit 1); exit 1; }; };;
11587   --help | --hel | -h )
11588     echo "$ac_cs_usage"; exit 0 ;;
11589   --debug | --d* | -d )
11590     debug=: ;;
11591   --file | --fil | --fi | --f )
11592     $ac_shift
11593     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11594     ac_need_defaults=false;;
11595   --header | --heade | --head | --hea )
11596     $ac_shift
11597     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11598     ac_need_defaults=false;;
11599   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11600   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11601     ac_cs_silent=: ;;
11602
11603   # This is an error.
11604   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11605 Try \`$0 --help' for more information." >&5
11606 echo "$as_me: error: unrecognized option: $1
11607 Try \`$0 --help' for more information." >&2;}
11608    { (exit 1); exit 1; }; } ;;
11609
11610   *) ac_config_targets="$ac_config_targets $1" ;;
11611
11612   esac
11613   shift
11614 done
11615
11616 ac_configure_extra_args=
11617
11618 if $ac_cs_silent; then
11619   exec 6>/dev/null
11620   ac_configure_extra_args="$ac_configure_extra_args --silent"
11621 fi
11622
11623 _ACEOF
11624 cat >>$CONFIG_STATUS <<_ACEOF
11625 if \$ac_cs_recheck; then
11626   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11627   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11628 fi
11629
11630 _ACEOF
11631
11632 cat >>$CONFIG_STATUS <<_ACEOF
11633 #
11634 # INIT-COMMANDS section.
11635 #
11636
11637 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11638
11639 _ACEOF
11640
11641
11642
11643 cat >>$CONFIG_STATUS <<\_ACEOF
11644 for ac_config_target in $ac_config_targets
11645 do
11646   case "$ac_config_target" in
11647   # Handling of arguments.
11648   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11649   "orte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;;
11650   "orte/liborte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/liborte/Makefile" ;;
11651   "orte/liborte/rtl/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/liborte/rtl/Makefile" ;;
11652   "orte/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/Makefile" ;;
11653   "orte/examples/hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/hello/Makefile" ;;
11654   "orte/examples/multicast/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/multicast/Makefile" ;;
11655   "orte/examples/reliable/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/reliable/Makefile" ;;
11656   "orte/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/ping/Makefile" ;;
11657   "orte/examples/spy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/spy/Makefile" ;;
11658   "orte/idl-compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/idl-compiler/Makefile" ;;
11659   "orte/libjorte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/libjorte/Makefile" ;;
11660   "orte/manager/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/manager/Makefile" ;;
11661   "modtool" ) CONFIG_FILES="$CONFIG_FILES modtool" ;;
11662   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11663   "orte/include/orte/orte_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte/orte_config.h" ;;
11664   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11666    { (exit 1); exit 1; }; };;
11667   esac
11668 done
11669
11670 # If the user did not use the arguments to specify the items to instantiate,
11671 # then the envvar interface is used.  Set only those that are not.
11672 # We use the long form for the default assignment because of an extremely
11673 # bizarre bug on SunOS 4.1.3.
11674 if $ac_need_defaults; then
11675   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11676   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11677   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11678 fi
11679
11680 # Have a temporary directory for convenience.  Make it in the build tree
11681 # simply because there is no reason to put it here, and in addition,
11682 # creating and moving files from /tmp can sometimes cause problems.
11683 # Create a temporary directory, and hook for its removal unless debugging.
11684 $debug ||
11685 {
11686   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11687   trap '{ (exit 1); exit 1; }' 1 2 13 15
11688 }
11689
11690 # Create a (secure) tmp directory for tmp files.
11691
11692 {
11693   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11694   test -n "$tmp" && test -d "$tmp"
11695 }  ||
11696 {
11697   tmp=./confstat$$-$RANDOM
11698   (umask 077 && mkdir $tmp)
11699 } ||
11700 {
11701    echo "$me: cannot create a temporary directory in ." >&2
11702    { (exit 1); exit 1; }
11703 }
11704
11705 _ACEOF
11706
11707 cat >>$CONFIG_STATUS <<_ACEOF
11708
11709 #
11710 # CONFIG_FILES section.
11711 #
11712
11713 # No need to generate the scripts if there are no CONFIG_FILES.
11714 # This happens for instance when ./config.status config.h
11715 if test -n "\$CONFIG_FILES"; then
11716   # Protect against being on the right side of a sed subst in config.status.
11717   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11718    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11719 s,@SHELL@,$SHELL,;t t
11720 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11721 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11722 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11723 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11724 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11725 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11726 s,@exec_prefix@,$exec_prefix,;t t
11727 s,@prefix@,$prefix,;t t
11728 s,@program_transform_name@,$program_transform_name,;t t
11729 s,@bindir@,$bindir,;t t
11730 s,@sbindir@,$sbindir,;t t
11731 s,@libexecdir@,$libexecdir,;t t
11732 s,@datadir@,$datadir,;t t
11733 s,@sysconfdir@,$sysconfdir,;t t
11734 s,@sharedstatedir@,$sharedstatedir,;t t
11735 s,@localstatedir@,$localstatedir,;t t
11736 s,@libdir@,$libdir,;t t
11737 s,@includedir@,$includedir,;t t
11738 s,@oldincludedir@,$oldincludedir,;t t
11739 s,@infodir@,$infodir,;t t
11740 s,@mandir@,$mandir,;t t
11741 s,@build_alias@,$build_alias,;t t
11742 s,@host_alias@,$host_alias,;t t
11743 s,@target_alias@,$target_alias,;t t
11744 s,@DEFS@,$DEFS,;t t
11745 s,@ECHO_C@,$ECHO_C,;t t
11746 s,@ECHO_N@,$ECHO_N,;t t
11747 s,@ECHO_T@,$ECHO_T,;t t
11748 s,@LIBS@,$LIBS,;t t
11749 s,@ORTE_MAJOR_VERSION@,$ORTE_MAJOR_VERSION,;t t
11750 s,@ORTE_MINOR_VERSION@,$ORTE_MINOR_VERSION,;t t
11751 s,@ORTE_MICRO_VERSION@,$ORTE_MICRO_VERSION,;t t
11752 s,@ORTE_VERSION@,$ORTE_VERSION,;t t
11753 s,@ORTE_INTERFACE_AGE@,$ORTE_INTERFACE_AGE,;t t
11754 s,@ORTE_BINARY_AGE@,$ORTE_BINARY_AGE,;t t
11755 s,@LT_RELEASE@,$LT_RELEASE,;t t
11756 s,@LT_CURRENT@,$LT_CURRENT,;t t
11757 s,@LT_REVISION@,$LT_REVISION,;t t
11758 s,@LT_AGE@,$LT_AGE,;t t
11759 s,@build@,$build,;t t
11760 s,@build_cpu@,$build_cpu,;t t
11761 s,@build_vendor@,$build_vendor,;t t
11762 s,@build_os@,$build_os,;t t
11763 s,@host@,$host,;t t
11764 s,@host_cpu@,$host_cpu,;t t
11765 s,@host_vendor@,$host_vendor,;t t
11766 s,@host_os@,$host_os,;t t
11767 s,@target@,$target,;t t
11768 s,@target_cpu@,$target_cpu,;t t
11769 s,@target_vendor@,$target_vendor,;t t
11770 s,@target_os@,$target_os,;t t
11771 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11772 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11773 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11774 s,@CYGPATH_W@,$CYGPATH_W,;t t
11775 s,@PACKAGE@,$PACKAGE,;t t
11776 s,@VERSION@,$VERSION,;t t
11777 s,@ACLOCAL@,$ACLOCAL,;t t
11778 s,@AUTOCONF@,$AUTOCONF,;t t
11779 s,@AUTOMAKE@,$AUTOMAKE,;t t
11780 s,@AUTOHEADER@,$AUTOHEADER,;t t
11781 s,@MAKEINFO@,$MAKEINFO,;t t
11782 s,@AMTAR@,$AMTAR,;t t
11783 s,@install_sh@,$install_sh,;t t
11784 s,@STRIP@,$STRIP,;t t
11785 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11786 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11787 s,@mkdir_p@,$mkdir_p,;t t
11788 s,@AWK@,$AWK,;t t
11789 s,@SET_MAKE@,$SET_MAKE,;t t
11790 s,@am__leading_dot@,$am__leading_dot,;t t
11791 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11792 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11793 s,@MAINT@,$MAINT,;t t
11794 s,@LINUX_DIR@,$LINUX_DIR,;t t
11795 s,@LINUX_ARCH@,$LINUX_ARCH,;t t
11796 s,@LINUX_AFLAGS@,$LINUX_AFLAGS,;t t
11797 s,@LINUX_LDFLAGS@,$LINUX_LDFLAGS,;t t
11798 s,@LINUX_ARFLAGS@,$LINUX_ARFLAGS,;t t
11799 s,@LINUX_CROSS_COMPILE@,$LINUX_CROSS_COMPILE,;t t
11800 s,@LINUX_KERNELRELEASE@,$LINUX_KERNELRELEASE,;t t
11801 s,@LINUX_CFLAGS@,$LINUX_CFLAGS,;t t
11802 s,@LINUX_CC@,$LINUX_CC,;t t
11803 s,@LINUX_LD@,$LINUX_LD,;t t
11804 s,@LINUX_AS@,$LINUX_AS,;t t
11805 s,@LINUX_MODULE_EXT@,$LINUX_MODULE_EXT,;t t
11806 s,@CONFIG_ORTE_KERNEL@,$CONFIG_ORTE_KERNEL,;t t
11807 s,@CONFIG_ORTE_KERNEL_TRUE@,$CONFIG_ORTE_KERNEL_TRUE,;t t
11808 s,@CONFIG_ORTE_KERNEL_FALSE@,$CONFIG_ORTE_KERNEL_FALSE,;t t
11809 s,@CONFIG_RTHAL_TRUE@,$CONFIG_RTHAL_TRUE,;t t
11810 s,@CONFIG_RTHAL_FALSE@,$CONFIG_RTHAL_FALSE,;t t
11811 s,@CONFIG_ADEOS_TRUE@,$CONFIG_ADEOS_TRUE,;t t
11812 s,@CONFIG_ADEOS_FALSE@,$CONFIG_ADEOS_FALSE,;t t
11813 s,@RTAI_CFLAGS@,$RTAI_CFLAGS,;t t
11814 s,@CONFIG_RTLINUX_TRUE@,$CONFIG_RTLINUX_TRUE,;t t
11815 s,@CONFIG_RTLINUX_FALSE@,$CONFIG_RTLINUX_FALSE,;t t
11816 s,@RTLINUX_CFLAGS@,$RTLINUX_CFLAGS,;t t
11817 s,@RTLINUX_CC@,$RTLINUX_CC,;t t
11818 s,@CONFIG_ORTE_RT@,$CONFIG_ORTE_RT,;t t
11819 s,@USE_RTAI_TRUE@,$USE_RTAI_TRUE,;t t
11820 s,@USE_RTAI_FALSE@,$USE_RTAI_FALSE,;t t
11821 s,@USE_RTLINUX_TRUE@,$USE_RTLINUX_TRUE,;t t
11822 s,@USE_RTLINUX_FALSE@,$USE_RTLINUX_FALSE,;t t
11823 s,@CONFIG_ORTE_RT_TRUE@,$CONFIG_ORTE_RT_TRUE,;t t
11824 s,@CONFIG_ORTE_RT_FALSE@,$CONFIG_ORTE_RT_FALSE,;t t
11825 s,@CONFIG_ORTE_WIN_TRUE@,$CONFIG_ORTE_WIN_TRUE,;t t
11826 s,@CONFIG_ORTE_WIN_FALSE@,$CONFIG_ORTE_WIN_FALSE,;t t
11827 s,@CONFIG_ORTE_CYGWIN_TRUE@,$CONFIG_ORTE_CYGWIN_TRUE,;t t
11828 s,@CONFIG_ORTE_CYGWIN_FALSE@,$CONFIG_ORTE_CYGWIN_FALSE,;t t
11829 s,@CONFIG_ORTE_MINGW_TRUE@,$CONFIG_ORTE_MINGW_TRUE,;t t
11830 s,@CONFIG_ORTE_MINGW_FALSE@,$CONFIG_ORTE_MINGW_FALSE,;t t
11831 s,@CONFIG_ORTE_UNIX_TRUE@,$CONFIG_ORTE_UNIX_TRUE,;t t
11832 s,@CONFIG_ORTE_UNIX_FALSE@,$CONFIG_ORTE_UNIX_FALSE,;t t
11833 s,@moduledir@,$moduledir,;t t
11834 s,@modulePROGRAMS_INSTALL@,$modulePROGRAMS_INSTALL,;t t
11835 s,@CC@,$CC,;t t
11836 s,@CFLAGS@,$CFLAGS,;t t
11837 s,@LDFLAGS@,$LDFLAGS,;t t
11838 s,@CPPFLAGS@,$CPPFLAGS,;t t
11839 s,@ac_ct_CC@,$ac_ct_CC,;t t
11840 s,@EXEEXT@,$EXEEXT,;t t
11841 s,@OBJEXT@,$OBJEXT,;t t
11842 s,@DEPDIR@,$DEPDIR,;t t
11843 s,@am__include@,$am__include,;t t
11844 s,@am__quote@,$am__quote,;t t
11845 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11846 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11847 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11848 s,@CCDEPMODE@,$CCDEPMODE,;t t
11849 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11850 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11851 s,@RANLIB@,$RANLIB,;t t
11852 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11853 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11854 s,@LIBIDL_CFLAGS@,$LIBIDL_CFLAGS,;t t
11855 s,@LIBIDL_LIBS@,$LIBIDL_LIBS,;t t
11856 s,@CONFIG_ORTE_IDL_TRUE@,$CONFIG_ORTE_IDL_TRUE,;t t
11857 s,@CONFIG_ORTE_IDL_FALSE@,$CONFIG_ORTE_IDL_FALSE,;t t
11858 s,@CONFIG_ORTE_IDL@,$CONFIG_ORTE_IDL,;t t
11859 s,@CONFIG_JORTE_TRUE@,$CONFIG_JORTE_TRUE,;t t
11860 s,@CONFIG_JORTE_FALSE@,$CONFIG_JORTE_FALSE,;t t
11861 s,@CONFIG_JORTE@,$CONFIG_JORTE,;t t
11862 s,@LN_S@,$LN_S,;t t
11863 s,@ECHO@,$ECHO,;t t
11864 s,@CPP@,$CPP,;t t
11865 s,@EGREP@,$EGREP,;t t
11866 s,@LIBTOOL@,$LIBTOOL,;t t
11867 s,@INCLUDES@,$INCLUDES,;t t
11868 s,@LIBOBJS@,$LIBOBJS,;t t
11869 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11870 CEOF
11871
11872 _ACEOF
11873
11874   cat >>$CONFIG_STATUS <<\_ACEOF
11875   # Split the substitutions into bite-sized pieces for seds with
11876   # small command number limits, like on Digital OSF/1 and HP-UX.
11877   ac_max_sed_lines=48
11878   ac_sed_frag=1 # Number of current file.
11879   ac_beg=1 # First line for current file.
11880   ac_end=$ac_max_sed_lines # Line after last line for current file.
11881   ac_more_lines=:
11882   ac_sed_cmds=
11883   while $ac_more_lines; do
11884     if test $ac_beg -gt 1; then
11885       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11886     else
11887       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11888     fi
11889     if test ! -s $tmp/subs.frag; then
11890       ac_more_lines=false
11891     else
11892       # The purpose of the label and of the branching condition is to
11893       # speed up the sed processing (if there are no `@' at all, there
11894       # is no need to browse any of the substitutions).
11895       # These are the two extra sed commands mentioned above.
11896       (echo ':t
11897   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11898       if test -z "$ac_sed_cmds"; then
11899         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11900       else
11901         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11902       fi
11903       ac_sed_frag=`expr $ac_sed_frag + 1`
11904       ac_beg=$ac_end
11905       ac_end=`expr $ac_end + $ac_max_sed_lines`
11906     fi
11907   done
11908   if test -z "$ac_sed_cmds"; then
11909     ac_sed_cmds=cat
11910   fi
11911 fi # test -n "$CONFIG_FILES"
11912
11913 _ACEOF
11914 cat >>$CONFIG_STATUS <<\_ACEOF
11915 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11916   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11917   case $ac_file in
11918   - | *:- | *:-:* ) # input from stdin
11919         cat >$tmp/stdin
11920         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11921         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11922   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11923         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11924   * )   ac_file_in=$ac_file.in ;;
11925   esac
11926
11927   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11928   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11930          X"$ac_file" : 'X\(//\)[^/]' \| \
11931          X"$ac_file" : 'X\(//\)$' \| \
11932          X"$ac_file" : 'X\(/\)' \| \
11933          .     : '\(.\)' 2>/dev/null ||
11934 echo X"$ac_file" |
11935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11936           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11937           /^X\(\/\/\)$/{ s//\1/; q; }
11938           /^X\(\/\).*/{ s//\1/; q; }
11939           s/.*/./; q'`
11940   { if $as_mkdir_p; then
11941     mkdir -p "$ac_dir"
11942   else
11943     as_dir="$ac_dir"
11944     as_dirs=
11945     while test ! -d "$as_dir"; do
11946       as_dirs="$as_dir $as_dirs"
11947       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11949          X"$as_dir" : 'X\(//\)[^/]' \| \
11950          X"$as_dir" : 'X\(//\)$' \| \
11951          X"$as_dir" : 'X\(/\)' \| \
11952          .     : '\(.\)' 2>/dev/null ||
11953 echo X"$as_dir" |
11954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11956           /^X\(\/\/\)$/{ s//\1/; q; }
11957           /^X\(\/\).*/{ s//\1/; q; }
11958           s/.*/./; q'`
11959     done
11960     test ! -n "$as_dirs" || mkdir $as_dirs
11961   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11962 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11963    { (exit 1); exit 1; }; }; }
11964
11965   ac_builddir=.
11966
11967 if test "$ac_dir" != .; then
11968   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11969   # A "../" for each directory in $ac_dir_suffix.
11970   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11971 else
11972   ac_dir_suffix= ac_top_builddir=
11973 fi
11974
11975 case $srcdir in
11976   .)  # No --srcdir option.  We are building in place.
11977     ac_srcdir=.
11978     if test -z "$ac_top_builddir"; then
11979        ac_top_srcdir=.
11980     else
11981        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11982     fi ;;
11983   [\\/]* | ?:[\\/]* )  # Absolute path.
11984     ac_srcdir=$srcdir$ac_dir_suffix;
11985     ac_top_srcdir=$srcdir ;;
11986   *) # Relative path.
11987     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11988     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11989 esac
11990
11991 # Do not use `cd foo && pwd` to compute absolute paths, because
11992 # the directories may not exist.
11993 case `pwd` in
11994 .) ac_abs_builddir="$ac_dir";;
11995 *)
11996   case "$ac_dir" in
11997   .) ac_abs_builddir=`pwd`;;
11998   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11999   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12000   esac;;
12001 esac
12002 case $ac_abs_builddir in
12003 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12004 *)
12005   case ${ac_top_builddir}. in
12006   .) ac_abs_top_builddir=$ac_abs_builddir;;
12007   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12008   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12009   esac;;
12010 esac
12011 case $ac_abs_builddir in
12012 .) ac_abs_srcdir=$ac_srcdir;;
12013 *)
12014   case $ac_srcdir in
12015   .) ac_abs_srcdir=$ac_abs_builddir;;
12016   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12017   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12018   esac;;
12019 esac
12020 case $ac_abs_builddir in
12021 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12022 *)
12023   case $ac_top_srcdir in
12024   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12025   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12026   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12027   esac;;
12028 esac
12029
12030
12031   case $INSTALL in
12032   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12033   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12034   esac
12035
12036   if test x"$ac_file" != x-; then
12037     { echo "$as_me:$LINENO: creating $ac_file" >&5
12038 echo "$as_me: creating $ac_file" >&6;}
12039     rm -f "$ac_file"
12040   fi
12041   # Let's still pretend it is `configure' which instantiates (i.e., don't
12042   # use $as_me), people would be surprised to read:
12043   #    /* config.h.  Generated by config.status.  */
12044   if test x"$ac_file" = x-; then
12045     configure_input=
12046   else
12047     configure_input="$ac_file.  "
12048   fi
12049   configure_input=$configure_input"Generated from `echo $ac_file_in |
12050                                      sed 's,.*/,,'` by configure."
12051
12052   # First look for the input files in the build tree, otherwise in the
12053   # src tree.
12054   ac_file_inputs=`IFS=:
12055     for f in $ac_file_in; do
12056       case $f in
12057       -) echo $tmp/stdin ;;
12058       [\\/$]*)
12059          # Absolute (can't be DOS-style, as IFS=:)
12060          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12061 echo "$as_me: error: cannot find input file: $f" >&2;}
12062    { (exit 1); exit 1; }; }
12063          echo "$f";;
12064       *) # Relative
12065          if test -f "$f"; then
12066            # Build tree
12067            echo "$f"
12068          elif test -f "$srcdir/$f"; then
12069            # Source tree
12070            echo "$srcdir/$f"
12071          else
12072            # /dev/null tree
12073            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12074 echo "$as_me: error: cannot find input file: $f" >&2;}
12075    { (exit 1); exit 1; }; }
12076          fi;;
12077       esac
12078     done` || { (exit 1); exit 1; }
12079 _ACEOF
12080 cat >>$CONFIG_STATUS <<_ACEOF
12081   sed "$ac_vpsub
12082 $extrasub
12083 _ACEOF
12084 cat >>$CONFIG_STATUS <<\_ACEOF
12085 :t
12086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12087 s,@configure_input@,$configure_input,;t t
12088 s,@srcdir@,$ac_srcdir,;t t
12089 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12090 s,@top_srcdir@,$ac_top_srcdir,;t t
12091 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12092 s,@builddir@,$ac_builddir,;t t
12093 s,@abs_builddir@,$ac_abs_builddir,;t t
12094 s,@top_builddir@,$ac_top_builddir,;t t
12095 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12096 s,@INSTALL@,$ac_INSTALL,;t t
12097 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12098   rm -f $tmp/stdin
12099   if test x"$ac_file" != x-; then
12100     mv $tmp/out $ac_file
12101   else
12102     cat $tmp/out
12103     rm -f $tmp/out
12104   fi
12105
12106 done
12107 _ACEOF
12108 cat >>$CONFIG_STATUS <<\_ACEOF
12109
12110 #
12111 # CONFIG_HEADER section.
12112 #
12113
12114 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12115 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12116 #
12117 # ac_d sets the value in "#define NAME VALUE" lines.
12118 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12119 ac_dB='[         ].*$,\1#\2'
12120 ac_dC=' '
12121 ac_dD=',;t'
12122 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12123 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12124 ac_uB='$,\1#\2define\3'
12125 ac_uC=' '
12126 ac_uD=',;t'
12127
12128 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12129   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12130   case $ac_file in
12131   - | *:- | *:-:* ) # input from stdin
12132         cat >$tmp/stdin
12133         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12134         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12135   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12136         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12137   * )   ac_file_in=$ac_file.in ;;
12138   esac
12139
12140   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12141 echo "$as_me: creating $ac_file" >&6;}
12142
12143   # First look for the input files in the build tree, otherwise in the
12144   # src tree.
12145   ac_file_inputs=`IFS=:
12146     for f in $ac_file_in; do
12147       case $f in
12148       -) echo $tmp/stdin ;;
12149       [\\/$]*)
12150          # Absolute (can't be DOS-style, as IFS=:)
12151          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12152 echo "$as_me: error: cannot find input file: $f" >&2;}
12153    { (exit 1); exit 1; }; }
12154          # Do quote $f, to prevent DOS paths from being IFS'd.
12155          echo "$f";;
12156       *) # Relative
12157          if test -f "$f"; then
12158            # Build tree
12159            echo "$f"
12160          elif test -f "$srcdir/$f"; then
12161            # Source tree
12162            echo "$srcdir/$f"
12163          else
12164            # /dev/null tree
12165            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12166 echo "$as_me: error: cannot find input file: $f" >&2;}
12167    { (exit 1); exit 1; }; }
12168          fi;;
12169       esac
12170     done` || { (exit 1); exit 1; }
12171   # Remove the trailing spaces.
12172   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12173
12174 _ACEOF
12175
12176 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12177 # `conftest.undefs', that substitutes the proper values into
12178 # config.h.in to produce config.h.  The first handles `#define'
12179 # templates, and the second `#undef' templates.
12180 # And first: Protect against being on the right side of a sed subst in
12181 # config.status.  Protect against being in an unquoted here document
12182 # in config.status.
12183 rm -f conftest.defines conftest.undefs
12184 # Using a here document instead of a string reduces the quoting nightmare.
12185 # Putting comments in sed scripts is not portable.
12186 #
12187 # `end' is used to avoid that the second main sed command (meant for
12188 # 0-ary CPP macros) applies to n-ary macro definitions.
12189 # See the Autoconf documentation for `clear'.
12190 cat >confdef2sed.sed <<\_ACEOF
12191 s/[\\&,]/\\&/g
12192 s,[\\$`],\\&,g
12193 t clear
12194 : clear
12195 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12196 t end
12197 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12198 : end
12199 _ACEOF
12200 # If some macros were called several times there might be several times
12201 # the same #defines, which is useless.  Nevertheless, we may not want to
12202 # sort them, since we want the *last* AC-DEFINE to be honored.
12203 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12204 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12205 rm -f confdef2sed.sed
12206
12207 # This sed command replaces #undef with comments.  This is necessary, for
12208 # example, in the case of _POSIX_SOURCE, which is predefined and required
12209 # on some systems where configure will not decide to define it.
12210 cat >>conftest.undefs <<\_ACEOF
12211 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12212 _ACEOF
12213
12214 # Break up conftest.defines because some shells have a limit on the size
12215 # of here documents, and old seds have small limits too (100 cmds).
12216 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12217 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12218 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12219 echo '  :' >>$CONFIG_STATUS
12220 rm -f conftest.tail
12221 while grep . conftest.defines >/dev/null
12222 do
12223   # Write a limited-size here document to $tmp/defines.sed.
12224   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12225   # Speed up: don't consider the non `#define' lines.
12226   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12227   # Work around the forget-to-reset-the-flag bug.
12228   echo 't clr' >>$CONFIG_STATUS
12229   echo ': clr' >>$CONFIG_STATUS
12230   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12231   echo 'CEOF
12232   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12233   rm -f $tmp/in
12234   mv $tmp/out $tmp/in
12235 ' >>$CONFIG_STATUS
12236   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12237   rm -f conftest.defines
12238   mv conftest.tail conftest.defines
12239 done
12240 rm -f conftest.defines
12241 echo '  fi # grep' >>$CONFIG_STATUS
12242 echo >>$CONFIG_STATUS
12243
12244 # Break up conftest.undefs because some shells have a limit on the size
12245 # of here documents, and old seds have small limits too (100 cmds).
12246 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12247 rm -f conftest.tail
12248 while grep . conftest.undefs >/dev/null
12249 do
12250   # Write a limited-size here document to $tmp/undefs.sed.
12251   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12252   # Speed up: don't consider the non `#undef'
12253   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12254   # Work around the forget-to-reset-the-flag bug.
12255   echo 't clr' >>$CONFIG_STATUS
12256   echo ': clr' >>$CONFIG_STATUS
12257   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12258   echo 'CEOF
12259   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12260   rm -f $tmp/in
12261   mv $tmp/out $tmp/in
12262 ' >>$CONFIG_STATUS
12263   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12264   rm -f conftest.undefs
12265   mv conftest.tail conftest.undefs
12266 done
12267 rm -f conftest.undefs
12268
12269 cat >>$CONFIG_STATUS <<\_ACEOF
12270   # Let's still pretend it is `configure' which instantiates (i.e., don't
12271   # use $as_me), people would be surprised to read:
12272   #    /* config.h.  Generated by config.status.  */
12273   if test x"$ac_file" = x-; then
12274     echo "/* Generated by configure.  */" >$tmp/config.h
12275   else
12276     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12277   fi
12278   cat $tmp/in >>$tmp/config.h
12279   rm -f $tmp/in
12280   if test x"$ac_file" != x-; then
12281     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12282       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12283 echo "$as_me: $ac_file is unchanged" >&6;}
12284     else
12285       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12287          X"$ac_file" : 'X\(//\)[^/]' \| \
12288          X"$ac_file" : 'X\(//\)$' \| \
12289          X"$ac_file" : 'X\(/\)' \| \
12290          .     : '\(.\)' 2>/dev/null ||
12291 echo X"$ac_file" |
12292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12293           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12294           /^X\(\/\/\)$/{ s//\1/; q; }
12295           /^X\(\/\).*/{ s//\1/; q; }
12296           s/.*/./; q'`
12297       { if $as_mkdir_p; then
12298     mkdir -p "$ac_dir"
12299   else
12300     as_dir="$ac_dir"
12301     as_dirs=
12302     while test ! -d "$as_dir"; do
12303       as_dirs="$as_dir $as_dirs"
12304       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12306          X"$as_dir" : 'X\(//\)[^/]' \| \
12307          X"$as_dir" : 'X\(//\)$' \| \
12308          X"$as_dir" : 'X\(/\)' \| \
12309          .     : '\(.\)' 2>/dev/null ||
12310 echo X"$as_dir" |
12311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12313           /^X\(\/\/\)$/{ s//\1/; q; }
12314           /^X\(\/\).*/{ s//\1/; q; }
12315           s/.*/./; q'`
12316     done
12317     test ! -n "$as_dirs" || mkdir $as_dirs
12318   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12320    { (exit 1); exit 1; }; }; }
12321
12322       rm -f $ac_file
12323       mv $tmp/config.h $ac_file
12324     fi
12325   else
12326     cat $tmp/config.h
12327     rm -f $tmp/config.h
12328   fi
12329 # Compute $ac_file's index in $config_headers.
12330 _am_stamp_count=1
12331 for _am_header in $config_headers :; do
12332   case $_am_header in
12333     $ac_file | $ac_file:* )
12334       break ;;
12335     * )
12336       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12337   esac
12338 done
12339 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12340 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341          X$ac_file : 'X\(//\)[^/]' \| \
12342          X$ac_file : 'X\(//\)$' \| \
12343          X$ac_file : 'X\(/\)' \| \
12344          .     : '\(.\)' 2>/dev/null ||
12345 echo X$ac_file |
12346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12348           /^X\(\/\/\)$/{ s//\1/; q; }
12349           /^X\(\/\).*/{ s//\1/; q; }
12350           s/.*/./; q'`/stamp-h$_am_stamp_count
12351 done
12352 _ACEOF
12353 cat >>$CONFIG_STATUS <<\_ACEOF
12354
12355 #
12356 # CONFIG_COMMANDS section.
12357 #
12358 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12359   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12360   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12361   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12362 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12363          X"$ac_dest" : 'X\(//\)[^/]' \| \
12364          X"$ac_dest" : 'X\(//\)$' \| \
12365          X"$ac_dest" : 'X\(/\)' \| \
12366          .     : '\(.\)' 2>/dev/null ||
12367 echo X"$ac_dest" |
12368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12370           /^X\(\/\/\)$/{ s//\1/; q; }
12371           /^X\(\/\).*/{ s//\1/; q; }
12372           s/.*/./; q'`
12373   { if $as_mkdir_p; then
12374     mkdir -p "$ac_dir"
12375   else
12376     as_dir="$ac_dir"
12377     as_dirs=
12378     while test ! -d "$as_dir"; do
12379       as_dirs="$as_dir $as_dirs"
12380       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382          X"$as_dir" : 'X\(//\)[^/]' \| \
12383          X"$as_dir" : 'X\(//\)$' \| \
12384          X"$as_dir" : 'X\(/\)' \| \
12385          .     : '\(.\)' 2>/dev/null ||
12386 echo X"$as_dir" |
12387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12388           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12389           /^X\(\/\/\)$/{ s//\1/; q; }
12390           /^X\(\/\).*/{ s//\1/; q; }
12391           s/.*/./; q'`
12392     done
12393     test ! -n "$as_dirs" || mkdir $as_dirs
12394   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12395 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12396    { (exit 1); exit 1; }; }; }
12397
12398   ac_builddir=.
12399
12400 if test "$ac_dir" != .; then
12401   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12402   # A "../" for each directory in $ac_dir_suffix.
12403   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12404 else
12405   ac_dir_suffix= ac_top_builddir=
12406 fi
12407
12408 case $srcdir in
12409   .)  # No --srcdir option.  We are building in place.
12410     ac_srcdir=.
12411     if test -z "$ac_top_builddir"; then
12412        ac_top_srcdir=.
12413     else
12414        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12415     fi ;;
12416   [\\/]* | ?:[\\/]* )  # Absolute path.
12417     ac_srcdir=$srcdir$ac_dir_suffix;
12418     ac_top_srcdir=$srcdir ;;
12419   *) # Relative path.
12420     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12421     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12422 esac
12423
12424 # Do not use `cd foo && pwd` to compute absolute paths, because
12425 # the directories may not exist.
12426 case `pwd` in
12427 .) ac_abs_builddir="$ac_dir";;
12428 *)
12429   case "$ac_dir" in
12430   .) ac_abs_builddir=`pwd`;;
12431   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12432   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12433   esac;;
12434 esac
12435 case $ac_abs_builddir in
12436 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12437 *)
12438   case ${ac_top_builddir}. in
12439   .) ac_abs_top_builddir=$ac_abs_builddir;;
12440   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12441   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12442   esac;;
12443 esac
12444 case $ac_abs_builddir in
12445 .) ac_abs_srcdir=$ac_srcdir;;
12446 *)
12447   case $ac_srcdir in
12448   .) ac_abs_srcdir=$ac_abs_builddir;;
12449   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12450   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12451   esac;;
12452 esac
12453 case $ac_abs_builddir in
12454 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12455 *)
12456   case $ac_top_srcdir in
12457   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12458   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12459   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12460   esac;;
12461 esac
12462
12463
12464   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12465 echo "$as_me: executing $ac_dest commands" >&6;}
12466   case $ac_dest in
12467     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12468   # Strip MF so we end up with the name of the file.
12469   mf=`echo "$mf" | sed -e 's/:.*$//'`
12470   # Check whether this is an Automake generated Makefile or not.
12471   # We used to match only the files named `Makefile.in', but
12472   # some people rename them; so instead we look at the file content.
12473   # Grep'ing the first line is not enough: some people post-process
12474   # each Makefile.in and add a new line on top of each file to say so.
12475   # So let's grep whole file.
12476   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12477     dirpart=`(dirname "$mf") 2>/dev/null ||
12478 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12479          X"$mf" : 'X\(//\)[^/]' \| \
12480          X"$mf" : 'X\(//\)$' \| \
12481          X"$mf" : 'X\(/\)' \| \
12482          .     : '\(.\)' 2>/dev/null ||
12483 echo X"$mf" |
12484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12486           /^X\(\/\/\)$/{ s//\1/; q; }
12487           /^X\(\/\).*/{ s//\1/; q; }
12488           s/.*/./; q'`
12489   else
12490     continue
12491   fi
12492   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12493   # Extract the definition of DEP_FILES from the Makefile without
12494   # running `make'.
12495   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12496   test -z "$DEPDIR" && continue
12497   # When using ansi2knr, U may be empty or an underscore; expand it
12498   U=`sed -n 's/^U = //p' < "$mf"`
12499   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12500   # We invoke sed twice because it is the simplest approach to
12501   # changing $(DEPDIR) to its actual value in the expansion.
12502   for file in `sed -n '
12503     /^DEP_FILES = .*\\\\$/ {
12504       s/^DEP_FILES = //
12505       :loop
12506         s/\\\\$//
12507         p
12508         n
12509         /\\\\$/ b loop
12510       p
12511     }
12512     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12513        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12514     # Make sure the directory exists.
12515     test -f "$dirpart/$file" && continue
12516     fdir=`(dirname "$file") 2>/dev/null ||
12517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12518          X"$file" : 'X\(//\)[^/]' \| \
12519          X"$file" : 'X\(//\)$' \| \
12520          X"$file" : 'X\(/\)' \| \
12521          .     : '\(.\)' 2>/dev/null ||
12522 echo X"$file" |
12523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12524           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12525           /^X\(\/\/\)$/{ s//\1/; q; }
12526           /^X\(\/\).*/{ s//\1/; q; }
12527           s/.*/./; q'`
12528     { if $as_mkdir_p; then
12529     mkdir -p $dirpart/$fdir
12530   else
12531     as_dir=$dirpart/$fdir
12532     as_dirs=
12533     while test ! -d "$as_dir"; do
12534       as_dirs="$as_dir $as_dirs"
12535       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12537          X"$as_dir" : 'X\(//\)[^/]' \| \
12538          X"$as_dir" : 'X\(//\)$' \| \
12539          X"$as_dir" : 'X\(/\)' \| \
12540          .     : '\(.\)' 2>/dev/null ||
12541 echo X"$as_dir" |
12542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12543           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12544           /^X\(\/\/\)$/{ s//\1/; q; }
12545           /^X\(\/\).*/{ s//\1/; q; }
12546           s/.*/./; q'`
12547     done
12548     test ! -n "$as_dirs" || mkdir $as_dirs
12549   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12550 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12551    { (exit 1); exit 1; }; }; }
12552
12553     # echo "creating $dirpart/$file"
12554     echo '# dummy' > "$dirpart/$file"
12555   done
12556 done
12557  ;;
12558   esac
12559 done
12560 _ACEOF
12561
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12563
12564 { (exit 0); exit 0; }
12565 _ACEOF
12566 chmod +x $CONFIG_STATUS
12567 ac_clean_files=$ac_clean_files_save
12568
12569
12570 # configure is writing to config.log, and then calls config.status.
12571 # config.status does its own redirection, appending to config.log.
12572 # Unfortunately, on DOS this fails, as config.log is still kept open
12573 # by configure, so config.status won't be able to write to it; its
12574 # output is simply discarded.  So we exec the FD to /dev/null,
12575 # effectively closing config.log, so it can be properly (re)opened and
12576 # appended to by config.status.  When coming back to configure, we
12577 # need to make the FD available again.
12578 if test "$no_create" != yes; then
12579   ac_cs_success=:
12580   ac_config_status_args=
12581   test "$silent" = yes &&
12582     ac_config_status_args="$ac_config_status_args --quiet"
12583   exec 5>/dev/null
12584   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12585   exec 5>>config.log
12586   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12587   # would make configure fail if this is the last instruction.
12588   $ac_cs_success || { (exit 1); exit 1; }
12589 fi
12590
12591 chmod +x modtool
12592
12593 # ======================================================================
12594 #               generate orte/include/orte/orte_config.h
12595 # ======================================================================
12596
12597 { echo "$as_me:$LINENO: creating orte/include/orte/orte_config.h" >&5
12598 echo "$as_me: creating orte/include/orte/orte_config.h" >&6;}
12599 sed -e "s/ PACKAGE/ ORTE_PACKAGE/" -e "s/ VERSION/ ORTE_VERSION/" \
12600     orte/include/orte/orte_config.h >orte/include/orte/orte_config.h.new
12601 if cmp -s orte/include/orte/orte_config.h.new orte/include/orte/orte_config.h; then
12602         rm orte/include/orte/orte_config.h.new
12603         { echo "$as_me:$LINENO: orte/include/orte/orte_config.h is unchanged" >&5
12604 echo "$as_me: orte/include/orte/orte_config.h is unchanged" >&6;}
12605 else
12606         mv orte/include/orte/orte_config.h.new orte/include/orte/orte_config.h
12607 fi
12608
12609 echo \
12610 "------------------------------------------------------------------------
12611 Configuration ORTE:
12612
12613   Source code location:       ${srcdir}
12614   Compiler:                   ${CC}
12615   Compiler flags:             ${CFLAGS}
12616   Host System Type:           ${host}
12617
12618   See orte_config.h for future configuration information.
12619
12620   Now you can run
12621   make
12622
12623 ------------------------------------------------------------------------"
12624