]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
Added ldif_countlines()
[openldap] / contrib / ldapc++ / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="examples/main.cpp"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939
940 #
941 # Report the --help message.
942 #
943 if test "$ac_init_help" = "long"; then
944   # Omit some internal or obsolete options to make the list less imposing.
945   # This message is too long to be a string in the A/UX 3.1 sh.
946   cat <<_ACEOF
947 \`configure' configures this package to adapt to many kinds of systems.
948
949 Usage: $0 [OPTION]... [VAR=VALUE]...
950
951 To assign environment variables (e.g., CC, CFLAGS...), specify them as
952 VAR=VALUE.  See below for descriptions of some of the useful variables.
953
954 Defaults for the options are specified in brackets.
955
956 Configuration:
957   -h, --help              display this help and exit
958       --help=short        display options specific to this package
959       --help=recursive    display the short help of all the included packages
960   -V, --version           display version information and exit
961   -q, --quiet, --silent   do not print \`checking...' messages
962       --cache-file=FILE   cache test results in FILE [disabled]
963   -C, --config-cache      alias for \`--cache-file=config.cache'
964   -n, --no-create         do not create output files
965       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
966
967 _ACEOF
968
969   cat <<_ACEOF
970 Installation directories:
971   --prefix=PREFIX         install architecture-independent files in PREFIX
972                           [$ac_default_prefix]
973   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
974                           [PREFIX]
975
976 By default, \`make install' will install all the files in
977 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
978 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979 for instance \`--prefix=\$HOME'.
980
981 For better control, use the options below.
982
983 Fine tuning of the installation directories:
984   --bindir=DIR           user executables [EPREFIX/bin]
985   --sbindir=DIR          system admin executables [EPREFIX/sbin]
986   --libexecdir=DIR       program executables [EPREFIX/libexec]
987   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
988   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
989   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
990   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
991   --libdir=DIR           object code libraries [EPREFIX/lib]
992   --includedir=DIR       C header files [PREFIX/include]
993   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
994   --infodir=DIR          info documentation [PREFIX/info]
995   --mandir=DIR           man documentation [PREFIX/man]
996 _ACEOF
997
998   cat <<\_ACEOF
999
1000 Program names:
1001   --program-prefix=PREFIX            prepend PREFIX to installed program names
1002   --program-suffix=SUFFIX            append SUFFIX to installed program names
1003   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1004
1005 System types:
1006   --build=BUILD     configure for building on BUILD [guessed]
1007   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1008 _ACEOF
1009 fi
1010
1011 if test -n "$ac_init_help"; then
1012
1013   cat <<\_ACEOF
1014
1015 Optional Features:
1016   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1017   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1018   --disable-dependency-tracking Speeds up one-time builds
1019   --enable-dependency-tracking  Do not reject slow dependency extractors
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 --enable-debug
1025
1026 Optional Packages:
1027   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1028   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1029   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1030   --with-pic              try to use only PIC/non-PIC objects default=use both
1031   --with-libldap=DIR          Path to the libldap library /usr/local/lib
1032   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
1033
1034 Some influential environment variables:
1035   CXX         C++ compiler command
1036   CXXFLAGS    C++ compiler flags
1037   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1038               nonstandard directory <lib dir>
1039   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040               headers in a nonstandard directory <include dir>
1041   CC          C compiler command
1042   CFLAGS      C compiler flags
1043   CPP         C preprocessor
1044
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1047
1048 _ACEOF
1049 fi
1050
1051 if test "$ac_init_help" = "recursive"; then
1052   # If there are subdirs, report their specific --help.
1053   ac_popdir=`pwd`
1054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055     test -d $ac_dir || continue
1056     ac_builddir=.
1057
1058 if test "$ac_dir" != .; then
1059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060   # A "../" for each directory in $ac_dir_suffix.
1061   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063   ac_dir_suffix= ac_top_builddir=
1064 fi
1065
1066 case $srcdir in
1067   .)  # No --srcdir option.  We are building in place.
1068     ac_srcdir=.
1069     if test -z "$ac_top_builddir"; then
1070        ac_top_srcdir=.
1071     else
1072        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073     fi ;;
1074   [\\/]* | ?:[\\/]* )  # Absolute path.
1075     ac_srcdir=$srcdir$ac_dir_suffix;
1076     ac_top_srcdir=$srcdir ;;
1077   *) # Relative path.
1078     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1081 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1082 # absolute.
1083 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087
1088     cd $ac_dir
1089     # Check for guested configure; otherwise get Cygnus style configure.
1090     if test -f $ac_srcdir/configure.gnu; then
1091       echo
1092       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1093     elif test -f $ac_srcdir/configure; then
1094       echo
1095       $SHELL $ac_srcdir/configure  --help=recursive
1096     elif test -f $ac_srcdir/configure.ac ||
1097            test -f $ac_srcdir/configure.in; then
1098       echo
1099       $ac_configure --help
1100     else
1101       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1102     fi
1103     cd $ac_popdir
1104   done
1105 fi
1106
1107 test -n "$ac_init_help" && exit 0
1108 if $ac_init_version; then
1109   cat <<\_ACEOF
1110
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1115 _ACEOF
1116   exit 0
1117 fi
1118 exec 5>config.log
1119 cat >&5 <<_ACEOF
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1122
1123 It was created by $as_me, which was
1124 generated by GNU Autoconf 2.57.  Invocation command line was
1125
1126   $ $0 $@
1127
1128 _ACEOF
1129 {
1130 cat <<_ASUNAME
1131 ## --------- ##
1132 ## Platform. ##
1133 ## --------- ##
1134
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1140
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1143
1144 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1145 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1148 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1149 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1150 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1151
1152 _ASUNAME
1153
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155 for as_dir in $PATH
1156 do
1157   IFS=$as_save_IFS
1158   test -z "$as_dir" && as_dir=.
1159   echo "PATH: $as_dir"
1160 done
1161
1162 } >&5
1163
1164 cat >&5 <<_ACEOF
1165
1166
1167 ## ----------- ##
1168 ## Core tests. ##
1169 ## ----------- ##
1170
1171 _ACEOF
1172
1173
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Strip out --silent because we don't want to record it for future runs.
1177 # Also quote any args containing shell meta-characters.
1178 # Make two passes to allow for proper duplicate-argument suppression.
1179 ac_configure_args=
1180 ac_configure_args0=
1181 ac_configure_args1=
1182 ac_sep=
1183 ac_must_keep_next=false
1184 for ac_pass in 1 2
1185 do
1186   for ac_arg
1187   do
1188     case $ac_arg in
1189     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1190     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191     | -silent | --silent | --silen | --sile | --sil)
1192       continue ;;
1193     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1195     esac
1196     case $ac_pass in
1197     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1198     2)
1199       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1200       if test $ac_must_keep_next = true; then
1201         ac_must_keep_next=false # Got value, back to normal.
1202       else
1203         case $ac_arg in
1204           *=* | --config-cache | -C | -disable-* | --disable-* \
1205           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1206           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1207           | -with-* | --with-* | -without-* | --without-* | --x)
1208             case "$ac_configure_args0 " in
1209               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1210             esac
1211             ;;
1212           -* ) ac_must_keep_next=true ;;
1213         esac
1214       fi
1215       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1216       # Get rid of the leading space.
1217       ac_sep=" "
1218       ;;
1219     esac
1220   done
1221 done
1222 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1223 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1224
1225 # When interrupted or exit'd, cleanup temporary files, and complete
1226 # config.log.  We remove comments because anyway the quotes in there
1227 # would cause problems or look ugly.
1228 # WARNING: Be sure not to use single quotes in there, as some shells,
1229 # such as our DU 5.0 friend, will then `close' the trap.
1230 trap 'exit_status=$?
1231   # Save into config.log some information that might help in debugging.
1232   {
1233     echo
1234
1235     cat <<\_ASBOX
1236 ## ---------------- ##
1237 ## Cache variables. ##
1238 ## ---------------- ##
1239 _ASBOX
1240     echo
1241     # The following way of writing the cache mishandles newlines in values,
1242 {
1243   (set) 2>&1 |
1244     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1245     *ac_space=\ *)
1246       sed -n \
1247         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1249       ;;
1250     *)
1251       sed -n \
1252         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1253       ;;
1254     esac;
1255 }
1256     echo
1257
1258     cat <<\_ASBOX
1259 ## ----------------- ##
1260 ## Output variables. ##
1261 ## ----------------- ##
1262 _ASBOX
1263     echo
1264     for ac_var in $ac_subst_vars
1265     do
1266       eval ac_val=$`echo $ac_var`
1267       echo "$ac_var='"'"'$ac_val'"'"'"
1268     done | sort
1269     echo
1270
1271     if test -n "$ac_subst_files"; then
1272       cat <<\_ASBOX
1273 ## ------------- ##
1274 ## Output files. ##
1275 ## ------------- ##
1276 _ASBOX
1277       echo
1278       for ac_var in $ac_subst_files
1279       do
1280         eval ac_val=$`echo $ac_var`
1281         echo "$ac_var='"'"'$ac_val'"'"'"
1282       done | sort
1283       echo
1284     fi
1285
1286     if test -s confdefs.h; then
1287       cat <<\_ASBOX
1288 ## ----------- ##
1289 ## confdefs.h. ##
1290 ## ----------- ##
1291 _ASBOX
1292       echo
1293       sed "/^$/d" confdefs.h | sort
1294       echo
1295     fi
1296     test "$ac_signal" != 0 &&
1297       echo "$as_me: caught signal $ac_signal"
1298     echo "$as_me: exit $exit_status"
1299   } >&5
1300   rm -f core core.* *.core &&
1301   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1302     exit $exit_status
1303      ' 0
1304 for ac_signal in 1 2 13 15; do
1305   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1306 done
1307 ac_signal=0
1308
1309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1310 rm -rf conftest* confdefs.h
1311 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1312 echo >confdefs.h
1313
1314 # Predefined preprocessor variables.
1315
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_NAME "$PACKAGE_NAME"
1318 _ACEOF
1319
1320
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1323 _ACEOF
1324
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1328 _ACEOF
1329
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_STRING "$PACKAGE_STRING"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1338 _ACEOF
1339
1340
1341 # Let the site file select an alternate cache file if it wants to.
1342 # Prefer explicitly selected file to automatically selected ones.
1343 if test -z "$CONFIG_SITE"; then
1344   if test "x$prefix" != xNONE; then
1345     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1346   else
1347     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1348   fi
1349 fi
1350 for ac_site_file in $CONFIG_SITE; do
1351   if test -r "$ac_site_file"; then
1352     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1353 echo "$as_me: loading site script $ac_site_file" >&6;}
1354     sed 's/^/| /' "$ac_site_file" >&5
1355     . "$ac_site_file"
1356   fi
1357 done
1358
1359 if test -r "$cache_file"; then
1360   # Some versions of bash will fail to source /dev/null (special
1361   # files actually), so we avoid doing that.
1362   if test -f "$cache_file"; then
1363     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1364 echo "$as_me: loading cache $cache_file" >&6;}
1365     case $cache_file in
1366       [\\/]* | ?:[\\/]* ) . $cache_file;;
1367       *)                      . ./$cache_file;;
1368     esac
1369   fi
1370 else
1371   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1372 echo "$as_me: creating cache $cache_file" >&6;}
1373   >$cache_file
1374 fi
1375
1376 # Check that the precious variables saved in the cache have kept the same
1377 # value.
1378 ac_cache_corrupted=false
1379 for ac_var in `(set) 2>&1 |
1380                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1381   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1382   eval ac_new_set=\$ac_env_${ac_var}_set
1383   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1384   eval ac_new_val="\$ac_env_${ac_var}_value"
1385   case $ac_old_set,$ac_new_set in
1386     set,)
1387       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1388 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1389       ac_cache_corrupted=: ;;
1390     ,set)
1391       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1392 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1393       ac_cache_corrupted=: ;;
1394     ,);;
1395     *)
1396       if test "x$ac_old_val" != "x$ac_new_val"; then
1397         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1398 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1399         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1400 echo "$as_me:   former value:  $ac_old_val" >&2;}
1401         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1402 echo "$as_me:   current value: $ac_new_val" >&2;}
1403         ac_cache_corrupted=:
1404       fi;;
1405   esac
1406   # Pass precious variables to config.status.
1407   if test "$ac_new_set" = set; then
1408     case $ac_new_val in
1409     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1410       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1411     *) ac_arg=$ac_var=$ac_new_val ;;
1412     esac
1413     case " $ac_configure_args " in
1414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1415       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1416     esac
1417   fi
1418 done
1419 if $ac_cache_corrupted; then
1420   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1421 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1422   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1423 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1424    { (exit 1); exit 1; }; }
1425 fi
1426
1427 ac_ext=c
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451 am__api_version="1.7"
1452 ac_aux_dir=
1453 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1454   if test -f $ac_dir/install-sh; then
1455     ac_aux_dir=$ac_dir
1456     ac_install_sh="$ac_aux_dir/install-sh -c"
1457     break
1458   elif test -f $ac_dir/install.sh; then
1459     ac_aux_dir=$ac_dir
1460     ac_install_sh="$ac_aux_dir/install.sh -c"
1461     break
1462   elif test -f $ac_dir/shtool; then
1463     ac_aux_dir=$ac_dir
1464     ac_install_sh="$ac_aux_dir/shtool install -c"
1465     break
1466   fi
1467 done
1468 if test -z "$ac_aux_dir"; then
1469   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1476
1477 # Find a good install program.  We prefer a C program (faster),
1478 # so one script is as good as another.  But avoid the broken or
1479 # incompatible versions:
1480 # SysV /etc/install, /usr/sbin/install
1481 # SunOS /usr/etc/install
1482 # IRIX /sbin/install
1483 # AIX /bin/install
1484 # AmigaOS /C/install, which installs bootblocks on floppy discs
1485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1488 # ./install, which can be erroneously created by make from ./install.sh.
1489 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1491 if test -z "$INSTALL"; then
1492 if test "${ac_cv_path_install+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498   IFS=$as_save_IFS
1499   test -z "$as_dir" && as_dir=.
1500   # Account for people who put trailing slashes in PATH elements.
1501 case $as_dir/ in
1502   ./ | .// | /cC/* | \
1503   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1504   /usr/ucb/* ) ;;
1505   *)
1506     # OSF1 and SCO ODT 3.0 have their own names for install.
1507     # Don't use installbsd from OSF since it installs stuff as root
1508     # by default.
1509     for ac_prog in ginstall scoinst install; do
1510       for ac_exec_ext in '' $ac_executable_extensions; do
1511         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1512           if test $ac_prog = install &&
1513             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1514             # AIX install.  It has an incompatible calling convention.
1515             :
1516           elif test $ac_prog = install &&
1517             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1518             # program-specific install script used by HP pwplus--don't use.
1519             :
1520           else
1521             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1522             break 3
1523           fi
1524         fi
1525       done
1526     done
1527     ;;
1528 esac
1529 done
1530
1531
1532 fi
1533   if test "${ac_cv_path_install+set}" = set; then
1534     INSTALL=$ac_cv_path_install
1535   else
1536     # As a last resort, use the slow shell script.  We don't cache a
1537     # path for INSTALL within a source directory, because that will
1538     # break other packages using the cache if that directory is
1539     # removed, or if the path is relative.
1540     INSTALL=$ac_install_sh
1541   fi
1542 fi
1543 echo "$as_me:$LINENO: result: $INSTALL" >&5
1544 echo "${ECHO_T}$INSTALL" >&6
1545
1546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1547 # It thinks the first close brace ends the variable substitution.
1548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1549
1550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1551
1552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1553
1554 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1555 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1556 # Just in case
1557 sleep 1
1558 echo timestamp > conftest.file
1559 # Do `set' in a subshell so we don't clobber the current shell's
1560 # arguments.  Must try -L first in case configure is actually a
1561 # symlink; some systems play weird games with the mod time of symlinks
1562 # (eg FreeBSD returns the mod time of the symlink's containing
1563 # directory).
1564 if (
1565    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1566    if test "$*" = "X"; then
1567       # -L didn't work.
1568       set X `ls -t $srcdir/configure conftest.file`
1569    fi
1570    rm -f conftest.file
1571    if test "$*" != "X $srcdir/configure conftest.file" \
1572       && test "$*" != "X conftest.file $srcdir/configure"; then
1573
1574       # If neither matched, then we have a broken ls.  This can happen
1575       # if, for instance, CONFIG_SHELL is bash and it inherits a
1576       # broken ls alias from the environment.  This has actually
1577       # happened.  Such a system could not be considered "sane".
1578       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1579 alias in your environment" >&5
1580 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1581 alias in your environment" >&2;}
1582    { (exit 1); exit 1; }; }
1583    fi
1584
1585    test "$2" = conftest.file
1586    )
1587 then
1588    # Ok.
1589    :
1590 else
1591    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1592 Check your system clock" >&5
1593 echo "$as_me: error: newly created file is older than distributed files!
1594 Check your system clock" >&2;}
1595    { (exit 1); exit 1; }; }
1596 fi
1597 echo "$as_me:$LINENO: result: yes" >&5
1598 echo "${ECHO_T}yes" >&6
1599 test "$program_prefix" != NONE &&
1600   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1601 # Use a double $ so make ignores it.
1602 test "$program_suffix" != NONE &&
1603   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1604 # Double any \ or $.  echo might interpret backslashes.
1605 # By default was `s,x,x', remove it if useless.
1606 cat <<\_ACEOF >conftest.sed
1607 s/[\\$]/&&/g;s/;s,x,x,$//
1608 _ACEOF
1609 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1610 rm conftest.sed
1611
1612
1613 # expand $ac_aux_dir to an absolute path
1614 am_aux_dir=`cd $ac_aux_dir && pwd`
1615
1616 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1617 # Use eval to expand $SHELL
1618 if eval "$MISSING --run true"; then
1619   am_missing_run="$MISSING --run "
1620 else
1621   am_missing_run=
1622   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1623 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1624 fi
1625
1626 for ac_prog in gawk mawk nawk awk
1627 do
1628   # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_AWK+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   if test -n "$AWK"; then
1636   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1637 else
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   for ac_exec_ext in '' $ac_executable_extensions; do
1644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645     ac_cv_prog_AWK="$ac_prog"
1646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647     break 2
1648   fi
1649 done
1650 done
1651
1652 fi
1653 fi
1654 AWK=$ac_cv_prog_AWK
1655 if test -n "$AWK"; then
1656   echo "$as_me:$LINENO: result: $AWK" >&5
1657 echo "${ECHO_T}$AWK" >&6
1658 else
1659   echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663   test -n "$AWK" && break
1664 done
1665
1666 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1667 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1669 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   cat >conftest.make <<\_ACEOF
1673 all:
1674         @echo 'ac_maketemp="$(MAKE)"'
1675 _ACEOF
1676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1677 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1678 if test -n "$ac_maketemp"; then
1679   eval ac_cv_prog_make_${ac_make}_set=yes
1680 else
1681   eval ac_cv_prog_make_${ac_make}_set=no
1682 fi
1683 rm -f conftest.make
1684 fi
1685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1686   echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1688   SET_MAKE=
1689 else
1690   echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692   SET_MAKE="MAKE=${MAKE-make}"
1693 fi
1694
1695  # test to see if srcdir already configured
1696 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1697    test -f $srcdir/config.status; then
1698   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1699 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1700    { (exit 1); exit 1; }; }
1701 fi
1702
1703 # test whether we have cygpath
1704 if test -z "$CYGPATH_W"; then
1705   if (cygpath --version) >/dev/null 2>/dev/null; then
1706     CYGPATH_W='cygpath -w'
1707   else
1708     CYGPATH_W=echo
1709   fi
1710 fi
1711
1712
1713 # Define the identity of the package.
1714  PACKAGE=main
1715  VERSION=0.0.1
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE "$PACKAGE"
1720 _ACEOF
1721
1722
1723 cat >>confdefs.h <<_ACEOF
1724 #define VERSION "$VERSION"
1725 _ACEOF
1726
1727 # Some tools Automake needs.
1728
1729 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1730
1731
1732 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1733
1734
1735 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1736
1737
1738 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1739
1740
1741 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1742
1743
1744 AMTAR=${AMTAR-"${am_missing_run}tar"}
1745
1746 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1747
1748 # Installed binaries are usually stripped using `strip' when the user
1749 # run `make install-strip'.  However `strip' might not be the right
1750 # tool to use in cross-compilation environments, therefore Automake
1751 # will honor the `STRIP' environment variable to overrule this program.
1752 if test "$cross_compiling" != no; then
1753   if test -n "$ac_tool_prefix"; then
1754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1755 set dummy ${ac_tool_prefix}strip; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_STRIP+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$STRIP"; then
1762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 STRIP=$ac_cv_prog_STRIP
1781 if test -n "$STRIP"; then
1782   echo "$as_me:$LINENO: result: $STRIP" >&5
1783 echo "${ECHO_T}$STRIP" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789 fi
1790 if test -z "$ac_cv_prog_STRIP"; then
1791   ac_ct_STRIP=$STRIP
1792   # Extract the first word of "strip", so it can be a program name with args.
1793 set dummy strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   if test -n "$ac_ct_STRIP"; then
1800   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807   for ac_exec_ext in '' $ac_executable_extensions; do
1808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809     ac_cv_prog_ac_ct_STRIP="strip"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815
1816   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1817 fi
1818 fi
1819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1820 if test -n "$ac_ct_STRIP"; then
1821   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1822 echo "${ECHO_T}$ac_ct_STRIP" >&6
1823 else
1824   echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
1828   STRIP=$ac_ct_STRIP
1829 else
1830   STRIP="$ac_cv_prog_STRIP"
1831 fi
1832
1833 fi
1834 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1835
1836 # We need awk for the "check" target.  The system "awk" is bad on
1837 # some platforms.
1838
1839
1840
1841           ac_config_headers="$ac_config_headers src/config.h"
1842
1843
1844
1845 # Find a good install program.  We prefer a C program (faster),
1846 # so one script is as good as another.  But avoid the broken or
1847 # incompatible versions:
1848 # SysV /etc/install, /usr/sbin/install
1849 # SunOS /usr/etc/install
1850 # IRIX /sbin/install
1851 # AIX /bin/install
1852 # AmigaOS /C/install, which installs bootblocks on floppy discs
1853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1856 # ./install, which can be erroneously created by make from ./install.sh.
1857 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1858 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1859 if test -z "$INSTALL"; then
1860 if test "${ac_cv_path_install+set}" = set; then
1861   echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   # Account for people who put trailing slashes in PATH elements.
1869 case $as_dir/ in
1870   ./ | .// | /cC/* | \
1871   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1872   /usr/ucb/* ) ;;
1873   *)
1874     # OSF1 and SCO ODT 3.0 have their own names for install.
1875     # Don't use installbsd from OSF since it installs stuff as root
1876     # by default.
1877     for ac_prog in ginstall scoinst install; do
1878       for ac_exec_ext in '' $ac_executable_extensions; do
1879         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1880           if test $ac_prog = install &&
1881             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1882             # AIX install.  It has an incompatible calling convention.
1883             :
1884           elif test $ac_prog = install &&
1885             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1886             # program-specific install script used by HP pwplus--don't use.
1887             :
1888           else
1889             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1890             break 3
1891           fi
1892         fi
1893       done
1894     done
1895     ;;
1896 esac
1897 done
1898
1899
1900 fi
1901   if test "${ac_cv_path_install+set}" = set; then
1902     INSTALL=$ac_cv_path_install
1903   else
1904     # As a last resort, use the slow shell script.  We don't cache a
1905     # path for INSTALL within a source directory, because that will
1906     # break other packages using the cache if that directory is
1907     # removed, or if the path is relative.
1908     INSTALL=$ac_install_sh
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: $INSTALL" >&5
1912 echo "${ECHO_T}$INSTALL" >&6
1913
1914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915 # It thinks the first close brace ends the variable substitution.
1916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917
1918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1919
1920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921
1922 ac_ext=cc
1923 ac_cpp='$CXXCPP $CPPFLAGS'
1924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1927 if test -n "$ac_tool_prefix"; then
1928   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1929   do
1930     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CXX+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   if test -n "$CXX"; then
1938   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949     break 2
1950   fi
1951 done
1952 done
1953
1954 fi
1955 fi
1956 CXX=$ac_cv_prog_CXX
1957 if test -n "$CXX"; then
1958   echo "$as_me:$LINENO: result: $CXX" >&5
1959 echo "${ECHO_T}$CXX" >&6
1960 else
1961   echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965     test -n "$CXX" && break
1966   done
1967 fi
1968 if test -z "$CXX"; then
1969   ac_ct_CXX=$CXX
1970   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971 do
1972   # Extract the first word of "$ac_prog", so it can be a program name with args.
1973 set dummy $ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$ac_ct_CXX"; then
1980   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_ac_ct_CXX="$ac_prog"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1999 if test -n "$ac_ct_CXX"; then
2000   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2001 echo "${ECHO_T}$ac_ct_CXX" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007   test -n "$ac_ct_CXX" && break
2008 done
2009 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2010
2011   CXX=$ac_ct_CXX
2012 fi
2013
2014
2015 # Provide some information about the compiler.
2016 echo "$as_me:$LINENO:" \
2017      "checking for C++ compiler version" >&5
2018 ac_compiler=`set X $ac_compile; echo $2`
2019 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2020   (eval $ac_compiler --version </dev/null >&5) 2>&5
2021   ac_status=$?
2022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023   (exit $ac_status); }
2024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2025   (eval $ac_compiler -v </dev/null >&5) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2030   (eval $ac_compiler -V </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034
2035 cat >conftest.$ac_ext <<_ACEOF
2036 #line $LINENO "configure"
2037 /* confdefs.h.  */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h.  */
2042
2043 int
2044 main ()
2045 {
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 ac_clean_files_save=$ac_clean_files
2052 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2053 # Try to create an executable without -o first, disregard a.out.
2054 # It will help us diagnose broken compilers, and finding out an intuition
2055 # of exeext.
2056 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2057 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2058 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2059 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2060   (eval $ac_link_default) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; then
2064   # Find the output, starting from the most likely.  This scheme is
2065 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2066 # resort.
2067
2068 # Be careful to initialize this variable, since it used to be cached.
2069 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2070 ac_cv_exeext=
2071 # b.out is created by i960 compilers.
2072 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2073 do
2074   test -f "$ac_file" || continue
2075   case $ac_file in
2076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2077         ;;
2078     conftest.$ac_ext )
2079         # This is the source file.
2080         ;;
2081     [ab].out )
2082         # We found the default executable, but exeext='' is most
2083         # certainly right.
2084         break;;
2085     *.* )
2086         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087         # FIXME: I believe we export ac_cv_exeext for Libtool,
2088         # but it would be cool to find out if it's true.  Does anybody
2089         # maintain Libtool? --akim.
2090         export ac_cv_exeext
2091         break;;
2092     * )
2093         break;;
2094   esac
2095 done
2096 else
2097   echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: C++ compiler cannot create executables
2103 See \`config.log' for more details." >&2;}
2104    { (exit 77); exit 77; }; }
2105 fi
2106
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2110
2111 # Check the compiler produces executables we can run.  If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2114 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118   if { ac_try='./$ac_file'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124     cross_compiling=no
2125   else
2126     if test "$cross_compiling" = maybe; then
2127         cross_compiling=yes
2128     else
2129         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot run C++ compiled programs.
2133 If you meant to cross compile, use \`--host'.
2134 See \`config.log' for more details." >&2;}
2135    { (exit 1); exit 1; }; }
2136     fi
2137   fi
2138 fi
2139 echo "$as_me:$LINENO: result: yes" >&5
2140 echo "${ECHO_T}yes" >&6
2141
2142 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2143 ac_clean_files=$ac_clean_files_save
2144 # Check the compiler produces executables we can run.  If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2147 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2148 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2149 echo "${ECHO_T}$cross_compiling" >&6
2150
2151 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2152 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2154   (eval $ac_link) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; then
2158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2160 # work properly (i.e., refer to `conftest.exe'), while it won't with
2161 # `rm'.
2162 for ac_file in conftest.exe conftest conftest.*; do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2167           export ac_cv_exeext
2168           break;;
2169     * ) break;;
2170   esac
2171 done
2172 else
2173   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2176 See \`config.log' for more details." >&2;}
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 rm -f conftest$ac_cv_exeext
2181 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2182 echo "${ECHO_T}$ac_cv_exeext" >&6
2183
2184 rm -f conftest.$ac_ext
2185 EXEEXT=$ac_cv_exeext
2186 ac_exeext=$EXEEXT
2187 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2188 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2189 if test "${ac_cv_objext+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199
2200 int
2201 main ()
2202 {
2203
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 rm -f conftest.o conftest.obj
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210   (eval $ac_compile) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; then
2214   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2215   case $ac_file in
2216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2217     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218        break;;
2219   esac
2220 done
2221 else
2222   echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6
2236 OBJEXT=$ac_cv_objext
2237 ac_objext=$OBJEXT
2238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250
2251 int
2252 main ()
2253 {
2254 #ifndef __GNUC__
2255        choke me
2256 #endif
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   ac_compiler_gnu=yes
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_compiler_gnu=no
2280 fi
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2283
2284 fi
2285 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2287 GXX=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CXXFLAGS=${CXXFLAGS+set}
2289 ac_save_CXXFLAGS=$CXXFLAGS
2290 CXXFLAGS="-g"
2291 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2292 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2293 if test "${ac_cv_prog_cxx_g+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   ac_cv_prog_cxx_g=yes
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_cv_prog_cxx_g=no
2330 fi
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2334 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2335 if test "$ac_test_CXXFLAGS" = set; then
2336   CXXFLAGS=$ac_save_CXXFLAGS
2337 elif test $ac_cv_prog_cxx_g = yes; then
2338   if test "$GXX" = yes; then
2339     CXXFLAGS="-g -O2"
2340   else
2341     CXXFLAGS="-g"
2342   fi
2343 else
2344   if test "$GXX" = yes; then
2345     CXXFLAGS="-O2"
2346   else
2347     CXXFLAGS=
2348   fi
2349 fi
2350 for ac_declaration in \
2351    ''\
2352    '#include <stdlib.h>' \
2353    'extern "C" void std::exit (int) throw (); using std::exit;' \
2354    'extern "C" void std::exit (int); using std::exit;' \
2355    'extern "C" void exit (int) throw ();' \
2356    'extern "C" void exit (int);' \
2357    'void exit (int);'
2358 do
2359   cat >conftest.$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366 #include <stdlib.h>
2367 $ac_declaration
2368 int
2369 main ()
2370 {
2371 exit (42);
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 continue
2394 fi
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396   cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403 $ac_declaration
2404 int
2405 main ()
2406 {
2407 exit (42);
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   break
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 fi
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2431 done
2432 rm -f conftest*
2433 if test -n "$ac_declaration"; then
2434   echo '#ifdef __cplusplus' >>confdefs.h
2435   echo $ac_declaration      >>confdefs.h
2436   echo '#endif'             >>confdefs.h
2437 fi
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 rm -f .deps 2>/dev/null
2445 mkdir .deps 2>/dev/null
2446 if test -d .deps; then
2447   DEPDIR=.deps
2448 else
2449   # MS-DOS does not allow filenames that begin with a dot.
2450   DEPDIR=_deps
2451 fi
2452 rmdir .deps 2>/dev/null
2453
2454
2455           ac_config_commands="$ac_config_commands depfiles"
2456
2457
2458 am_make=${MAKE-make}
2459 cat > confinc << 'END'
2460 doit:
2461         @echo done
2462 END
2463 # If we don't find an include directive, just comment out the code.
2464 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2465 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2466 am__include="#"
2467 am__quote=
2468 _am_result=none
2469 # First try GNU make style include.
2470 echo "include confinc" > confmf
2471 # We grep out `Entering directory' and `Leaving directory'
2472 # messages which can occur if `w' ends up in MAKEFLAGS.
2473 # In particular we don't look at `^make:' because GNU make might
2474 # be invoked under some other name (usually "gmake"), in which
2475 # case it prints its new name instead of `make'.
2476 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2477    am__include=include
2478    am__quote=
2479    _am_result=GNU
2480 fi
2481 # Now try BSD make style include.
2482 if test "$am__include" = "#"; then
2483    echo '.include "confinc"' > confmf
2484    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2485       am__include=.include
2486       am__quote="\""
2487       _am_result=BSD
2488    fi
2489 fi
2490
2491
2492 echo "$as_me:$LINENO: result: $_am_result" >&5
2493 echo "${ECHO_T}$_am_result" >&6
2494 rm -f confinc confmf
2495
2496 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2497 if test "${enable_dependency_tracking+set}" = set; then
2498   enableval="$enable_dependency_tracking"
2499
2500 fi;
2501 if test "x$enable_dependency_tracking" != xno; then
2502   am_depcomp="$ac_aux_dir/depcomp"
2503   AMDEPBACKSLASH='\'
2504 fi
2505
2506
2507 if test "x$enable_dependency_tracking" != xno; then
2508   AMDEP_TRUE=
2509   AMDEP_FALSE='#'
2510 else
2511   AMDEP_TRUE='#'
2512   AMDEP_FALSE=
2513 fi
2514
2515
2516
2517
2518 depcc="$CXX"  am_compiler_list=
2519
2520 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2521 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2522 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2526   # We make a subdir and do the tests there.  Otherwise we can end up
2527   # making bogus files that we don't know about and never remove.  For
2528   # instance it was reported that on HP-UX the gcc test will end up
2529   # making a dummy file named `D' -- because `-MD' means `put the output
2530   # in D'.
2531   mkdir conftest.dir
2532   # Copy depcomp to subdir because otherwise we won't find it if we're
2533   # using a relative directory.
2534   cp "$am_depcomp" conftest.dir
2535   cd conftest.dir
2536
2537   am_cv_CXX_dependencies_compiler_type=none
2538   if test "$am_compiler_list" = ""; then
2539      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2540   fi
2541   for depmode in $am_compiler_list; do
2542     # We need to recreate these files for each test, as the compiler may
2543     # overwrite some of them when testing with obscure command lines.
2544     # This happens at least with the AIX C compiler.
2545     echo '#include "conftest.h"' > conftest.c
2546     echo 'int i;' > conftest.h
2547     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2548
2549     case $depmode in
2550     nosideeffect)
2551       # after this tag, mechanisms are not by side-effect, so they'll
2552       # only be used when explicitly requested
2553       if test "x$enable_dependency_tracking" = xyes; then
2554         continue
2555       else
2556         break
2557       fi
2558       ;;
2559     none) break ;;
2560     esac
2561     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2562     # mode.  It turns out that the SunPro C++ compiler does not properly
2563     # handle `-M -o', and we need to detect this.
2564     if depmode=$depmode \
2565        source=conftest.c object=conftest.o \
2566        depfile=conftest.Po tmpdepfile=conftest.TPo \
2567        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2568        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2569        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2570       am_cv_CXX_dependencies_compiler_type=$depmode
2571       break
2572     fi
2573   done
2574
2575   cd ..
2576   rm -rf conftest.dir
2577 else
2578   am_cv_CXX_dependencies_compiler_type=none
2579 fi
2580
2581 fi
2582 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2583 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2585
2586
2587
2588 if
2589   test "x$enable_dependency_tracking" != xno \
2590   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2591   am__fastdepCXX_TRUE=
2592   am__fastdepCXX_FALSE='#'
2593 else
2594   am__fastdepCXX_TRUE='#'
2595   am__fastdepCXX_FALSE=
2596 fi
2597
2598
2599 # Check whether --enable-shared or --disable-shared was given.
2600 if test "${enable_shared+set}" = set; then
2601   enableval="$enable_shared"
2602   p=${PACKAGE-default}
2603 case $enableval in
2604 yes) enable_shared=yes ;;
2605 no) enable_shared=no ;;
2606 *)
2607   enable_shared=no
2608   # Look at the argument we got.  We use all the common list separators.
2609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2610   for pkg in $enableval; do
2611     if test "X$pkg" = "X$p"; then
2612       enable_shared=yes
2613     fi
2614   done
2615   IFS="$ac_save_ifs"
2616   ;;
2617 esac
2618 else
2619   enable_shared=yes
2620 fi;
2621 # Check whether --enable-static or --disable-static was given.
2622 if test "${enable_static+set}" = set; then
2623   enableval="$enable_static"
2624   p=${PACKAGE-default}
2625 case $enableval in
2626 yes) enable_static=yes ;;
2627 no) enable_static=no ;;
2628 *)
2629   enable_static=no
2630   # Look at the argument we got.  We use all the common list separators.
2631   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2632   for pkg in $enableval; do
2633     if test "X$pkg" = "X$p"; then
2634       enable_static=yes
2635     fi
2636   done
2637   IFS="$ac_save_ifs"
2638   ;;
2639 esac
2640 else
2641   enable_static=yes
2642 fi;
2643 # Check whether --enable-fast-install or --disable-fast-install was given.
2644 if test "${enable_fast_install+set}" = set; then
2645   enableval="$enable_fast_install"
2646   p=${PACKAGE-default}
2647 case $enableval in
2648 yes) enable_fast_install=yes ;;
2649 no) enable_fast_install=no ;;
2650 *)
2651   enable_fast_install=no
2652   # Look at the argument we got.  We use all the common list separators.
2653   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2654   for pkg in $enableval; do
2655     if test "X$pkg" = "X$p"; then
2656       enable_fast_install=yes
2657     fi
2658   done
2659   IFS="$ac_save_ifs"
2660   ;;
2661 esac
2662 else
2663   enable_fast_install=yes
2664 fi;
2665 # Make sure we can run config.sub.
2666 $ac_config_sub sun4 >/dev/null 2>&1 ||
2667   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2668 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2669    { (exit 1); exit 1; }; }
2670
2671 echo "$as_me:$LINENO: checking build system type" >&5
2672 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2673 if test "${ac_cv_build+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   ac_cv_build_alias=$build_alias
2677 test -z "$ac_cv_build_alias" &&
2678   ac_cv_build_alias=`$ac_config_guess`
2679 test -z "$ac_cv_build_alias" &&
2680   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2681 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2682    { (exit 1); exit 1; }; }
2683 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2684   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2685 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2686    { (exit 1); exit 1; }; }
2687
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2690 echo "${ECHO_T}$ac_cv_build" >&6
2691 build=$ac_cv_build
2692 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2693 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2694 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2695
2696
2697 echo "$as_me:$LINENO: checking host system type" >&5
2698 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2699 if test "${ac_cv_host+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   ac_cv_host_alias=$host_alias
2703 test -z "$ac_cv_host_alias" &&
2704   ac_cv_host_alias=$ac_cv_build_alias
2705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2706   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2707 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2708    { (exit 1); exit 1; }; }
2709
2710 fi
2711 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 echo "${ECHO_T}$ac_cv_host" >&6
2713 host=$ac_cv_host
2714 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2715 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2716 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2717
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -n "$CC"; then
2733   ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6
2755 else
2756   echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758 fi
2759
2760 fi
2761 if test -z "$ac_cv_prog_CC"; then
2762   ac_ct_CC=$CC
2763   # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   if test -n "$ac_ct_CC"; then
2771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778   for ac_exec_ext in '' $ac_executable_extensions; do
2779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780     ac_cv_prog_ac_ct_CC="gcc"
2781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785 done
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6
2793 else
2794   echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 fi
2797
2798   CC=$ac_ct_CC
2799 else
2800   CC="$ac_cv_prog_CC"
2801 fi
2802
2803 if test -z "$CC"; then
2804   if test -n "$ac_tool_prefix"; then
2805   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}cc; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$CC"; then
2813   ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822     ac_cv_prog_CC="${ac_tool_prefix}cc"
2823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833   echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6
2835 else
2836   echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2838 fi
2839
2840 fi
2841 if test -z "$ac_cv_prog_CC"; then
2842   ac_ct_CC=$CC
2843   # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   if test -n "$ac_ct_CC"; then
2851   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858   for ac_exec_ext in '' $ac_executable_extensions; do
2859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860     ac_cv_prog_ac_ct_CC="cc"
2861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865 done
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 echo "${ECHO_T}$ac_ct_CC" >&6
2873 else
2874   echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2876 fi
2877
2878   CC=$ac_ct_CC
2879 else
2880   CC="$ac_cv_prog_CC"
2881 fi
2882
2883 fi
2884 if test -z "$CC"; then
2885   # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   if test -n "$CC"; then
2893   ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895   ac_prog_rejected=no
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901   for ac_exec_ext in '' $ac_executable_extensions; do
2902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904        ac_prog_rejected=yes
2905        continue
2906      fi
2907     ac_cv_prog_CC="cc"
2908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912 done
2913
2914 if test $ac_prog_rejected = yes; then
2915   # We found a bogon in the path, so make sure we never use it.
2916   set dummy $ac_cv_prog_CC
2917   shift
2918   if test $# != 0; then
2919     # We chose a different compiler from the bogus one.
2920     # However, it has the same basename, so the bogon will be chosen
2921     # first if we set CC to just the basename; use the full file name.
2922     shift
2923     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924   fi
2925 fi
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930   echo "$as_me:$LINENO: result: $CC" >&5
2931 echo "${ECHO_T}$CC" >&6
2932 else
2933   echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2935 fi
2936
2937 fi
2938 if test -z "$CC"; then
2939   if test -n "$ac_tool_prefix"; then
2940   for ac_prog in cl
2941   do
2942     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   if test -n "$CC"; then
2950   ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957   for ac_exec_ext in '' $ac_executable_extensions; do
2958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964 done
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970   echo "$as_me:$LINENO: result: $CC" >&5
2971 echo "${ECHO_T}$CC" >&6
2972 else
2973   echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977     test -n "$CC" && break
2978   done
2979 fi
2980 if test -z "$CC"; then
2981   ac_ct_CC=$CC
2982   for ac_prog in cl
2983 do
2984   # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if test -n "$ac_ct_CC"; then
2992   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999   for ac_exec_ext in '' $ac_executable_extensions; do
3000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     ac_cv_prog_ac_ct_CC="$ac_prog"
3002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006 done
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6
3014 else
3015   echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019   test -n "$ac_ct_CC" && break
3020 done
3021
3022   CC=$ac_ct_CC
3023 fi
3024
3025 fi
3026
3027
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032    { (exit 1); exit 1; }; }
3033
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO:" \
3036      "checking for C compiler version" >&5
3037 ac_compiler=`set X $ac_compile; echo $2`
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3039   (eval $ac_compiler --version </dev/null >&5) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3044   (eval $ac_compiler -v </dev/null >&5) 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }
3048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3049   (eval $ac_compiler -V </dev/null >&5) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }
3053
3054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070 #ifndef __GNUC__
3071        choke me
3072 #endif
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080   (eval $ac_compile) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   ac_compiler_gnu=yes
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_compiler_gnu=no
3096 fi
3097 rm -f conftest.$ac_objext conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3099
3100 fi
3101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3103 GCC=`test $ac_compiler_gnu = yes && echo yes`
3104 ac_test_CFLAGS=${CFLAGS+set}
3105 ac_save_CFLAGS=$CFLAGS
3106 CFLAGS="-g"
3107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130   (eval $ac_compile) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136   (eval $ac_try) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; }; then
3140   ac_cv_prog_cc_g=yes
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 ac_cv_prog_cc_g=no
3146 fi
3147 rm -f conftest.$ac_objext conftest.$ac_ext
3148 fi
3149 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3150 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3151 if test "$ac_test_CFLAGS" = set; then
3152   CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154   if test "$GCC" = yes; then
3155     CFLAGS="-g -O2"
3156   else
3157     CFLAGS="-g"
3158   fi
3159 else
3160   if test "$GCC" = yes; then
3161     CFLAGS="-O2"
3162   else
3163     CFLAGS=
3164   fi
3165 fi
3166 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3167 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3168 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   ac_cv_prog_cc_stdc=no
3172 ac_save_CC=$CC
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #include <stdarg.h>
3181 #include <stdio.h>
3182 #include <sys/types.h>
3183 #include <sys/stat.h>
3184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3185 struct buf { int x; };
3186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187 static char *e (p, i)
3188      char **p;
3189      int i;
3190 {
3191   return p[i];
3192 }
3193 static char *f (char * (*g) (char **, int), char **p, ...)
3194 {
3195   char *s;
3196   va_list v;
3197   va_start (v,p);
3198   s = g (p, va_arg (v,int));
3199   va_end (v);
3200   return s;
3201 }
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206 int argc;
3207 char **argv;
3208 int
3209 main ()
3210 {
3211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 # Don't try gcc -ansi; that turns off useful extensions and
3217 # breaks some systems' header files.
3218 # AIX                   -qlanglvl=ansi
3219 # Ultrix and OSF/1      -std1
3220 # HP-UX 10.20 and later -Ae
3221 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3222 # SVR4                  -Xc -D__EXTENSIONS__
3223 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 do
3225   CC="$ac_save_CC $ac_arg"
3226   rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228   (eval $ac_compile) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -s conftest.$ac_objext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_cv_prog_cc_stdc=$ac_arg
3239 break
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 fi
3245 rm -f conftest.$ac_objext
3246 done
3247 rm -f conftest.$ac_ext conftest.$ac_objext
3248 CC=$ac_save_CC
3249
3250 fi
3251
3252 case "x$ac_cv_prog_cc_stdc" in
3253   x|xno)
3254     echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6 ;;
3256   *)
3257     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3259     CC="$CC $ac_cv_prog_cc_stdc" ;;
3260 esac
3261
3262 # Some people use a C++ compiler to compile C.  Since we use `exit',
3263 # in C++ we need to declare it.  In case someone uses the same compiler
3264 # for both compiling C and C++ we need to have the C++ compiler decide
3265 # the declaration of exit, since it's the most demanding environment.
3266 cat >conftest.$ac_ext <<_ACEOF
3267 #ifndef __cplusplus
3268   choke me
3269 #endif
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273   (eval $ac_compile) 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } &&
3277          { ac_try='test -s conftest.$ac_objext'
3278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279   (eval $ac_try) 2>&5
3280   ac_status=$?
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; }; then
3283   for ac_declaration in \
3284    ''\
3285    '#include <stdlib.h>' \
3286    'extern "C" void std::exit (int) throw (); using std::exit;' \
3287    'extern "C" void std::exit (int); using std::exit;' \
3288    'extern "C" void exit (int) throw ();' \
3289    'extern "C" void exit (int);' \
3290    'void exit (int);'
3291 do
3292   cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <stdlib.h>
3300 $ac_declaration
3301 int
3302 main ()
3303 {
3304 exit (42);
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311   (eval $ac_compile) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } &&
3315          { ac_try='test -s conftest.$ac_objext'
3316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317   (eval $ac_try) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   :
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 continue
3327 fi
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329   cat >conftest.$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336 $ac_declaration
3337 int
3338 main ()
3339 {
3340 exit (42);
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347   (eval $ac_compile) 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353   (eval $ac_try) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; }; then
3357   break
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 fi
3363 rm -f conftest.$ac_objext conftest.$ac_ext
3364 done
3365 rm -f conftest*
3366 if test -n "$ac_declaration"; then
3367   echo '#ifdef __cplusplus' >>confdefs.h
3368   echo $ac_declaration      >>confdefs.h
3369   echo '#endif'             >>confdefs.h
3370 fi
3371
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 fi
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384 depcc="$CC"   am_compiler_list=
3385
3386 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3387 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3388 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3392   # We make a subdir and do the tests there.  Otherwise we can end up
3393   # making bogus files that we don't know about and never remove.  For
3394   # instance it was reported that on HP-UX the gcc test will end up
3395   # making a dummy file named `D' -- because `-MD' means `put the output
3396   # in D'.
3397   mkdir conftest.dir
3398   # Copy depcomp to subdir because otherwise we won't find it if we're
3399   # using a relative directory.
3400   cp "$am_depcomp" conftest.dir
3401   cd conftest.dir
3402
3403   am_cv_CC_dependencies_compiler_type=none
3404   if test "$am_compiler_list" = ""; then
3405      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3406   fi
3407   for depmode in $am_compiler_list; do
3408     # We need to recreate these files for each test, as the compiler may
3409     # overwrite some of them when testing with obscure command lines.
3410     # This happens at least with the AIX C compiler.
3411     echo '#include "conftest.h"' > conftest.c
3412     echo 'int i;' > conftest.h
3413     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3414
3415     case $depmode in
3416     nosideeffect)
3417       # after this tag, mechanisms are not by side-effect, so they'll
3418       # only be used when explicitly requested
3419       if test "x$enable_dependency_tracking" = xyes; then
3420         continue
3421       else
3422         break
3423       fi
3424       ;;
3425     none) break ;;
3426     esac
3427     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3428     # mode.  It turns out that the SunPro C++ compiler does not properly
3429     # handle `-M -o', and we need to detect this.
3430     if depmode=$depmode \
3431        source=conftest.c object=conftest.o \
3432        depfile=conftest.Po tmpdepfile=conftest.TPo \
3433        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3434        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3435        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3436       am_cv_CC_dependencies_compiler_type=$depmode
3437       break
3438     fi
3439   done
3440
3441   cd ..
3442   rm -rf conftest.dir
3443 else
3444   am_cv_CC_dependencies_compiler_type=none
3445 fi
3446
3447 fi
3448 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3449 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3450 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3451
3452
3453
3454 if
3455   test "x$enable_dependency_tracking" != xno \
3456   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3457   am__fastdepCC_TRUE=
3458   am__fastdepCC_FALSE='#'
3459 else
3460   am__fastdepCC_TRUE='#'
3461   am__fastdepCC_FALSE=
3462 fi
3463
3464
3465 # Find the correct PATH separator.  Usually this is `:', but
3466 # DJGPP uses `;' like DOS.
3467 if test "X${PATH_SEPARATOR+set}" != Xset; then
3468   UNAME=${UNAME-`uname 2>/dev/null`}
3469   case X$UNAME in
3470     *-DOS) lt_cv_sys_path_separator=';' ;;
3471     *)     lt_cv_sys_path_separator=':' ;;
3472   esac
3473   PATH_SEPARATOR=$lt_cv_sys_path_separator
3474 fi
3475
3476
3477 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3478 if test "${with_gnu_ld+set}" = set; then
3479   withval="$with_gnu_ld"
3480   test "$withval" = no || with_gnu_ld=yes
3481 else
3482   with_gnu_ld=no
3483 fi;
3484 ac_prog=ld
3485 if test "$GCC" = yes; then
3486   # Check if gcc -print-prog-name=ld gives a path.
3487   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3488 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3489   case $host in
3490   *-*-mingw*)
3491     # gcc leaves a trailing carriage return which upsets mingw
3492     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3493   *)
3494     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3495   esac
3496   case $ac_prog in
3497     # Accept absolute paths.
3498     [\\/]* | [A-Za-z]:[\\/]*)
3499       re_direlt='/[^/][^/]*/\.\./'
3500       # Canonicalize the path of ld
3501       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3502       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3503         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3504       done
3505       test -z "$LD" && LD="$ac_prog"
3506       ;;
3507   "")
3508     # If it fails, then pretend we aren't using GCC.
3509     ac_prog=ld
3510     ;;
3511   *)
3512     # If it is relative, then search for the first ld in PATH.
3513     with_gnu_ld=unknown
3514     ;;
3515   esac
3516 elif test "$with_gnu_ld" = yes; then
3517   echo "$as_me:$LINENO: checking for GNU ld" >&5
3518 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3519 else
3520   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3521 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3522 fi
3523 if test "${lt_cv_path_LD+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   if test -z "$LD"; then
3527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3528   for ac_dir in $PATH; do
3529     test -z "$ac_dir" && ac_dir=.
3530     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3531       lt_cv_path_LD="$ac_dir/$ac_prog"
3532       # Check to see if the program is GNU ld.  I'd rather use --version,
3533       # but apparently some GNU ld's only accept -v.
3534       # Break only if it was the GNU/non-GNU ld that we prefer.
3535       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3536         test "$with_gnu_ld" != no && break
3537       else
3538         test "$with_gnu_ld" != yes && break
3539       fi
3540     fi
3541   done
3542   IFS="$ac_save_ifs"
3543 else
3544   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3545 fi
3546 fi
3547
3548 LD="$lt_cv_path_LD"
3549 if test -n "$LD"; then
3550   echo "$as_me:$LINENO: result: $LD" >&5
3551 echo "${ECHO_T}$LD" >&6
3552 else
3553   echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3555 fi
3556 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3557 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3558    { (exit 1); exit 1; }; }
3559 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3560 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3565 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3566   lt_cv_prog_gnu_ld=yes
3567 else
3568   lt_cv_prog_gnu_ld=no
3569 fi
3570 fi
3571 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3573 with_gnu_ld=$lt_cv_prog_gnu_ld
3574
3575
3576 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3578 if test "${lt_cv_ld_reload_flag+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   lt_cv_ld_reload_flag='-r'
3582 fi
3583 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3585 reload_flag=$lt_cv_ld_reload_flag
3586 test -n "$reload_flag" && reload_flag=" $reload_flag"
3587
3588 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3589 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3590 if test "${lt_cv_path_NM+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   if test -n "$NM"; then
3594   # Let the user override the test.
3595   lt_cv_path_NM="$NM"
3596 else
3597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3598   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3599     test -z "$ac_dir" && ac_dir=.
3600     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3601     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3602       # Check to see if the nm accepts a BSD-compat flag.
3603       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3604       #   nm: unknown option "B" ignored
3605       # Tru64's nm complains that /dev/null is an invalid object file
3606       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3607         lt_cv_path_NM="$tmp_nm -B"
3608         break
3609       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3610         lt_cv_path_NM="$tmp_nm -p"
3611         break
3612       else
3613         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3614         continue # so that we can try to find one that supports BSD flags
3615       fi
3616     fi
3617   done
3618   IFS="$ac_save_ifs"
3619   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3620 fi
3621 fi
3622
3623 NM="$lt_cv_path_NM"
3624 echo "$as_me:$LINENO: result: $NM" >&5
3625 echo "${ECHO_T}$NM" >&6
3626
3627 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3628 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3629 if test "${lt_cv_path_SED+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   # Loop through the user's path and test for sed and gsed.
3633 # Then use that list of sed's as ones to test for truncation.
3634 as_executable_p="test -f"
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_prog in sed gsed; do
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3643         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3644       fi
3645     done
3646   done
3647 done
3648
3649   # Create a temporary directory, and hook for its removal unless debugging.
3650 $debug ||
3651 {
3652   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3653   trap '{ (exit 1); exit 1; }' 1 2 13 15
3654 }
3655
3656 # Create a (secure) tmp directory for tmp files.
3657 : ${TMPDIR=/tmp}
3658 {
3659   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3660   test -n "$tmp" && test -d "$tmp"
3661 }  ||
3662 {
3663   tmp=$TMPDIR/sed$$-$RANDOM
3664   (umask 077 && mkdir $tmp)
3665 } ||
3666 {
3667    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3668    { (exit 1); exit 1; }
3669 }
3670   _max=0
3671   _count=0
3672   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3673   # along with /bin/sed that truncates output.
3674   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3675     test ! -f ${_sed} && break
3676     cat /dev/null > "$tmp/sed.in"
3677     _count=0
3678     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3679     # Check for GNU sed and select it if it is found.
3680     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3681       lt_cv_path_SED=${_sed}
3682       break
3683     fi
3684     while true; do
3685       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3686       mv "$tmp/sed.tmp" "$tmp/sed.in"
3687       cp "$tmp/sed.in" "$tmp/sed.nl"
3688       echo >>"$tmp/sed.nl"
3689       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3690       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3691       # 40000 chars as input seems more than enough
3692       test $_count -gt 10 && break
3693       _count=`expr $_count + 1`
3694       if test $_count -gt $_max; then
3695         _max=$_count
3696         lt_cv_path_SED=$_sed
3697       fi
3698     done
3699   done
3700   rm -rf "$tmp"
3701
3702 fi
3703
3704 if test "X$SED" != "X"; then
3705   lt_cv_path_SED=$SED
3706 else
3707   SED=$lt_cv_path_SED
3708 fi
3709 echo "$as_me:$LINENO: result: $SED" >&5
3710 echo "${ECHO_T}$SED" >&6
3711
3712 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3714 LN_S=$as_ln_s
3715 if test "$LN_S" = "ln -s"; then
3716   echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6
3718 else
3719   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3720 echo "${ECHO_T}no, using $LN_S" >&6
3721 fi
3722
3723 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3724 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3725 if test "${lt_cv_deplibs_check_method+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   lt_cv_file_magic_cmd='$MAGIC_CMD'
3729 lt_cv_file_magic_test_file=
3730 lt_cv_deplibs_check_method='unknown'
3731 # Need to set the preceding variable on all platforms that support
3732 # interlibrary dependencies.
3733 # 'none' -- dependencies not supported.
3734 # `unknown' -- same as none, but documents that we really don't know.
3735 # 'pass_all' -- all dependencies passed with no checks.
3736 # 'test_compile' -- check by making test program.
3737 # 'file_magic [[regex]]' -- check by looking for files in library path
3738 # which responds to the $file_magic_cmd with a given egrep regex.
3739 # If you have `file' or equivalent on your system and you're not sure
3740 # whether `pass_all' will *always* work, you probably want this one.
3741
3742 case $host_os in
3743 aix4* | aix5*)
3744   lt_cv_deplibs_check_method=pass_all
3745   ;;
3746
3747 beos*)
3748   lt_cv_deplibs_check_method=pass_all
3749   ;;
3750
3751 bsdi4*)
3752   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3753   lt_cv_file_magic_cmd='/usr/bin/file -L'
3754   lt_cv_file_magic_test_file=/shlib/libc.so
3755   ;;
3756
3757 cygwin* | mingw* | pw32*)
3758   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3759   lt_cv_file_magic_cmd='$OBJDUMP -f'
3760   ;;
3761
3762 darwin* | rhapsody*)
3763   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3764   lt_cv_file_magic_cmd='/usr/bin/file -L'
3765   case "$host_os" in
3766   rhapsody* | darwin1.[012])
3767     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3768     ;;
3769   *) # Darwin 1.3 on
3770     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3771     ;;
3772   esac
3773   ;;
3774
3775 freebsd*)
3776   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3777     case $host_cpu in
3778     i*86 )
3779       # Not sure whether the presence of OpenBSD here was a mistake.
3780       # Let's accept both of them until this is cleared up.
3781       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3782       lt_cv_file_magic_cmd=/usr/bin/file
3783       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3784       ;;
3785     esac
3786   else
3787     lt_cv_deplibs_check_method=pass_all
3788   fi
3789   ;;
3790
3791 gnu*)
3792   lt_cv_deplibs_check_method=pass_all
3793   ;;
3794
3795 hpux10.20*|hpux11*)
3796   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3797   lt_cv_file_magic_cmd=/usr/bin/file
3798   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3799   ;;
3800
3801 irix5* | irix6* | nonstopux*)
3802   case $host_os in
3803   irix5* | nonstopux*)
3804     # this will be overridden with pass_all, but let us keep it just in case
3805     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3806     ;;
3807   *)
3808     case $LD in
3809     *-32|*"-32 ") libmagic=32-bit;;
3810     *-n32|*"-n32 ") libmagic=N32;;
3811     *-64|*"-64 ") libmagic=64-bit;;
3812     *) libmagic=never-match;;
3813     esac
3814     # this will be overridden with pass_all, but let us keep it just in case
3815     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3816     ;;
3817   esac
3818   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 # This must be Linux ELF.
3823 linux*)
3824   case $host_cpu in
3825   alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
3826     lt_cv_deplibs_check_method=pass_all ;;
3827   *)
3828     # glibc up to 2.1.1 does not perform some relocations on ARM
3829     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3830   esac
3831   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3832   ;;
3833
3834 netbsd*)
3835   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3836     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3837   else
3838     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3839   fi
3840   ;;
3841
3842 newos6*)
3843   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3844   lt_cv_file_magic_cmd=/usr/bin/file
3845   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3846   ;;
3847
3848 openbsd*)
3849   lt_cv_file_magic_cmd=/usr/bin/file
3850   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3851   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3852     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3853   else
3854     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3855   fi
3856   ;;
3857
3858 osf3* | osf4* | osf5*)
3859   # this will be overridden with pass_all, but let us keep it just in case
3860   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3861   lt_cv_file_magic_test_file=/shlib/libc.so
3862   lt_cv_deplibs_check_method=pass_all
3863   ;;
3864
3865 sco3.2v5*)
3866   lt_cv_deplibs_check_method=pass_all
3867   ;;
3868
3869 solaris*)
3870   lt_cv_deplibs_check_method=pass_all
3871   lt_cv_file_magic_test_file=/lib/libc.so
3872   ;;
3873
3874 sysv5uw[78]* | sysv4*uw2*)
3875   lt_cv_deplibs_check_method=pass_all
3876   ;;
3877
3878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3879   case $host_vendor in
3880   motorola)
3881     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]'
3882     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3883     ;;
3884   ncr)
3885     lt_cv_deplibs_check_method=pass_all
3886     ;;
3887   sequent)
3888     lt_cv_file_magic_cmd='/bin/file'
3889     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3890     ;;
3891   sni)
3892     lt_cv_file_magic_cmd='/bin/file'
3893     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3894     lt_cv_file_magic_test_file=/lib/libc.so
3895     ;;
3896   siemens)
3897     lt_cv_deplibs_check_method=pass_all
3898     ;;
3899   esac
3900   ;;
3901 esac
3902
3903 fi
3904 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3906 file_magic_cmd=$lt_cv_file_magic_cmd
3907 deplibs_check_method=$lt_cv_deplibs_check_method
3908
3909
3910
3911
3912
3913
3914
3915
3916 # Check for command to grab the raw symbol name followed by C symbol from nm.
3917 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3918 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3919 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922
3923 # These are sane defaults that work on at least a few old systems.
3924 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3925
3926 # Character class describing NM global symbol codes.
3927 symcode='[BCDEGRST]'
3928
3929 # Regexp to match symbols that can be accessed directly from C.
3930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3931
3932 # Transform the above into a raw symbol and a C symbol.
3933 symxfrm='\1 \2\3 \3'
3934
3935 # Transform an extracted symbol line into a proper C declaration
3936 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3937
3938 # Transform an extracted symbol line into symbol name and symbol address
3939 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'"
3940
3941 # Define system-specific variables.
3942 case $host_os in
3943 aix*)
3944   symcode='[BCDT]'
3945   ;;
3946 cygwin* | mingw* | pw32*)
3947   symcode='[ABCDGISTW]'
3948   ;;
3949 hpux*) # Its linker distinguishes data from code symbols
3950   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3951   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'"
3952   ;;
3953 irix* | nonstopux*)
3954   symcode='[BCDEGRST]'
3955   ;;
3956 osf*)
3957   symcode='[BCDEGQRST]'
3958   ;;
3959 solaris* | sysv5*)
3960   symcode='[BDT]'
3961   ;;
3962 sysv4)
3963   symcode='[DFNSTU]'
3964   ;;
3965 esac
3966
3967 # Handle CRLF in mingw tool chain
3968 opt_cr=
3969 case $host_os in
3970 mingw*)
3971   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3972   ;;
3973 esac
3974
3975 # If we're using GNU nm, then use its standard symbol codes.
3976 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3977   symcode='[ABCDGISTW]'
3978 fi
3979
3980 # Try without a prefix undercore, then with it.
3981 for ac_symprfx in "" "_"; do
3982
3983   # Write the raw and C identifiers.
3984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3985
3986   # Check to see that the pipe works correctly.
3987   pipe_works=no
3988   rm -f conftest*
3989   cat > conftest.$ac_ext <<EOF
3990 #ifdef __cplusplus
3991 extern "C" {
3992 #endif
3993 char nm_test_var;
3994 void nm_test_func(){}
3995 #ifdef __cplusplus
3996 }
3997 #endif
3998 int main(){nm_test_var='a';nm_test_func();return(0);}
3999 EOF
4000
4001   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002   (eval $ac_compile) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; then
4006     # Now try to grab the symbols.
4007     nlist=conftest.nm
4008     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4009   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } && test -s "$nlist"; then
4013       # Try sorting and uniquifying the output.
4014       if sort "$nlist" | uniq > "$nlist"T; then
4015         mv -f "$nlist"T "$nlist"
4016       else
4017         rm -f "$nlist"T
4018       fi
4019
4020       # Make sure that we snagged all the symbols we need.
4021       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4022         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4023           cat <<EOF > conftest.$ac_ext
4024 #ifdef __cplusplus
4025 extern "C" {
4026 #endif
4027
4028 EOF
4029           # Now generate the symbol file.
4030           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4031
4032           cat <<EOF >> conftest.$ac_ext
4033 #if defined (__STDC__) && __STDC__
4034 # define lt_ptr void *
4035 #else
4036 # define lt_ptr char *
4037 # define const
4038 #endif
4039
4040 /* The mapping between symbol names and symbols. */
4041 const struct {
4042   const char *name;
4043   lt_ptr address;
4044 }
4045 lt_preloaded_symbols[] =
4046 {
4047 EOF
4048           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4049           cat <<\EOF >> conftest.$ac_ext
4050   {0, (lt_ptr) 0}
4051 };
4052
4053 #ifdef __cplusplus
4054 }
4055 #endif
4056 EOF
4057           # Now try linking the two files.
4058           mv conftest.$ac_objext conftstm.$ac_objext
4059           save_LIBS="$LIBS"
4060           save_CFLAGS="$CFLAGS"
4061           LIBS="conftstm.$ac_objext"
4062           CFLAGS="$CFLAGS$no_builtin_flag"
4063           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064   (eval $ac_link) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } && test -s conftest$ac_exeext; then
4068             pipe_works=yes
4069           fi
4070           LIBS="$save_LIBS"
4071           CFLAGS="$save_CFLAGS"
4072         else
4073           echo "cannot find nm_test_func in $nlist" >&5
4074         fi
4075       else
4076         echo "cannot find nm_test_var in $nlist" >&5
4077       fi
4078     else
4079       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4080     fi
4081   else
4082     echo "$progname: failed program was:" >&5
4083     cat conftest.$ac_ext >&5
4084   fi
4085   rm -f conftest* conftst*
4086
4087   # Do not use the global_symbol_pipe unless it works.
4088   if test "$pipe_works" = yes; then
4089     break
4090   else
4091     lt_cv_sys_global_symbol_pipe=
4092   fi
4093 done
4094
4095 fi
4096
4097 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4099   global_symbol_to_cdecl=
4100   global_symbol_to_c_name_address=
4101 else
4102   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4103   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4104 fi
4105 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4106 then
4107   echo "$as_me:$LINENO: result: failed" >&5
4108 echo "${ECHO_T}failed" >&6
4109 else
4110   echo "$as_me:$LINENO: result: ok" >&5
4111 echo "${ECHO_T}ok" >&6
4112 fi
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4123   CPP=
4124 fi
4125 if test -z "$CPP"; then
4126   if test "${ac_cv_prog_CPP+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129       # Double quotes because CPP needs to be expanded
4130     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4131     do
4132       ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4134 do
4135   # Use a header file that comes with gcc, so configuring glibc
4136   # with a fresh cross-compiler works.
4137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138   # <limits.h> exists even on freestanding compilers.
4139   # On the NeXT, cc -E runs the code through the compiler's parser,
4140   # not just through cpp. "Syntax error" is here to catch this case.
4141   cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #ifdef __STDC__
4149 # include <limits.h>
4150 #else
4151 # include <assert.h>
4152 #endif
4153                      Syntax error
4154 _ACEOF
4155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157   ac_status=$?
4158   grep -v '^ *+' conftest.er1 >conftest.err
4159   rm -f conftest.er1
4160   cat conftest.err >&5
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } >/dev/null; then
4163   if test -s conftest.err; then
4164     ac_cpp_err=$ac_c_preproc_warn_flag
4165   else
4166     ac_cpp_err=
4167   fi
4168 else
4169   ac_cpp_err=yes
4170 fi
4171 if test -z "$ac_cpp_err"; then
4172   :
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177   # Broken: fails on valid input.
4178 continue
4179 fi
4180 rm -f conftest.err conftest.$ac_ext
4181
4182   # OK, works on sane cases.  Now check whether non-existent headers
4183   # can be detected and how.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ac_nonexistent.h>
4192 _ACEOF
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } >/dev/null; then
4201   if test -s conftest.err; then
4202     ac_cpp_err=$ac_c_preproc_warn_flag
4203   else
4204     ac_cpp_err=
4205   fi
4206 else
4207   ac_cpp_err=yes
4208 fi
4209 if test -z "$ac_cpp_err"; then
4210   # Broken: success on invalid input.
4211 continue
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4226   break
4227 fi
4228
4229     done
4230     ac_cv_prog_CPP=$CPP
4231
4232 fi
4233   CPP=$ac_cv_prog_CPP
4234 else
4235   ac_cv_prog_CPP=$CPP
4236 fi
4237 echo "$as_me:$LINENO: result: $CPP" >&5
4238 echo "${ECHO_T}$CPP" >&6
4239 ac_preproc_ok=false
4240 for ac_c_preproc_warn_flag in '' yes
4241 do
4242   # Use a header file that comes with gcc, so configuring glibc
4243   # with a fresh cross-compiler works.
4244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245   # <limits.h> exists even on freestanding compilers.
4246   # On the NeXT, cc -E runs the code through the compiler's parser,
4247   # not just through cpp. "Syntax error" is here to catch this case.
4248   cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #ifdef __STDC__
4256 # include <limits.h>
4257 #else
4258 # include <assert.h>
4259 #endif
4260                      Syntax error
4261 _ACEOF
4262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } >/dev/null; then
4270   if test -s conftest.err; then
4271     ac_cpp_err=$ac_c_preproc_warn_flag
4272   else
4273     ac_cpp_err=
4274   fi
4275 else
4276   ac_cpp_err=yes
4277 fi
4278 if test -z "$ac_cpp_err"; then
4279   :
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284   # Broken: fails on valid input.
4285 continue
4286 fi
4287 rm -f conftest.err conftest.$ac_ext
4288
4289   # OK, works on sane cases.  Now check whether non-existent headers
4290   # can be detected and how.
4291   cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #include <ac_nonexistent.h>
4299 _ACEOF
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302   ac_status=$?
4303   grep -v '^ *+' conftest.er1 >conftest.err
4304   rm -f conftest.er1
4305   cat conftest.err >&5
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } >/dev/null; then
4308   if test -s conftest.err; then
4309     ac_cpp_err=$ac_c_preproc_warn_flag
4310   else
4311     ac_cpp_err=
4312   fi
4313 else
4314   ac_cpp_err=yes
4315 fi
4316 if test -z "$ac_cpp_err"; then
4317   # Broken: success on invalid input.
4318 continue
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323   # Passes both tests.
4324 ac_preproc_ok=:
4325 break
4326 fi
4327 rm -f conftest.err conftest.$ac_ext
4328
4329 done
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then
4333   :
4334 else
4335   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details." >&5
4337 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details." >&2;}
4339    { (exit 1); exit 1; }; }
4340 fi
4341
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347
4348
4349 echo "$as_me:$LINENO: checking for egrep" >&5
4350 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4351 if test "${ac_cv_prog_egrep+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4355     then ac_cv_prog_egrep='grep -E'
4356     else ac_cv_prog_egrep='egrep'
4357     fi
4358 fi
4359 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4360 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4361  EGREP=$ac_cv_prog_egrep
4362
4363
4364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4366 if test "${ac_cv_header_stdc+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #include <stdlib.h>
4377 #include <stdarg.h>
4378 #include <string.h>
4379 #include <float.h>
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391   (eval $ac_compile) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -s conftest.$ac_objext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   ac_cv_header_stdc=yes
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ac_cv_header_stdc=no
4407 fi
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4409
4410 if test $ac_cv_header_stdc = yes; then
4411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4412   cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 #include <string.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423   $EGREP "memchr" >/dev/null 2>&1; then
4424   :
4425 else
4426   ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434   cat >conftest.$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #include <stdlib.h>
4442
4443 _ACEOF
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445   $EGREP "free" >/dev/null 2>&1; then
4446   :
4447 else
4448   ac_cv_header_stdc=no
4449 fi
4450 rm -f conftest*
4451
4452 fi
4453
4454 if test $ac_cv_header_stdc = yes; then
4455   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4456   if test "$cross_compiling" = yes; then
4457   :
4458 else
4459   cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #include <ctype.h>
4467 #if ((' ' & 0x0FF) == 0x020)
4468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4470 #else
4471 # define ISLOWER(c) \
4472                    (('a' <= (c) && (c) <= 'i') \
4473                      || ('j' <= (c) && (c) <= 'r') \
4474                      || ('s' <= (c) && (c) <= 'z'))
4475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4476 #endif
4477
4478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4479 int
4480 main ()
4481 {
4482   int i;
4483   for (i = 0; i < 256; i++)
4484     if (XOR (islower (i), ISLOWER (i))
4485         || toupper (i) != TOUPPER (i))
4486       exit(2);
4487   exit (0);
4488 }
4489 _ACEOF
4490 rm -f conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492   (eval $ac_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497   (eval $ac_try) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   :
4502 else
4503   echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 ( exit $ac_status )
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 fi
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4516 if test $ac_cv_header_stdc = yes; then
4517
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4520 _ACEOF
4521
4522 fi
4523
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535                   inttypes.h stdint.h unistd.h
4536 do
4537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_includes_default
4551
4552 #include <$ac_header>
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556   (eval $ac_compile) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } &&
4560          { ac_try='test -s conftest.$ac_objext'
4561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562   (eval $ac_try) 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; }; then
4566   eval "$as_ac_Header=yes"
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 eval "$as_ac_Header=no"
4572 fi
4573 rm -f conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578   cat >>confdefs.h <<_ACEOF
4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 _ACEOF
4581
4582 fi
4583
4584 done
4585
4586
4587
4588 for ac_header in dlfcn.h
4589 do
4590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592   echo "$as_me:$LINENO: checking for $ac_header" >&5
4593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 fi
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4599 else
4600   # Is the header compilable?
4601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 $ac_includes_default
4611 #include <$ac_header>
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615   (eval $ac_compile) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -s conftest.$ac_objext'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   ac_header_compiler=yes
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_header_compiler=no
4631 fi
4632 rm -f conftest.$ac_objext conftest.$ac_ext
4633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4634 echo "${ECHO_T}$ac_header_compiler" >&6
4635
4636 # Is the header present?
4637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 #include <$ac_header>
4647 _ACEOF
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } >/dev/null; then
4656   if test -s conftest.err; then
4657     ac_cpp_err=$ac_c_preproc_warn_flag
4658   else
4659     ac_cpp_err=
4660   fi
4661 else
4662   ac_cpp_err=yes
4663 fi
4664 if test -z "$ac_cpp_err"; then
4665   ac_header_preproc=yes
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670   ac_header_preproc=no
4671 fi
4672 rm -f conftest.err conftest.$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4674 echo "${ECHO_T}$ac_header_preproc" >&6
4675
4676 # So?  What about this header?
4677 case $ac_header_compiler:$ac_header_preproc in
4678   yes:no )
4679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4683     (
4684       cat <<\_ASBOX
4685 ## ------------------------------------ ##
4686 ## Report this to bug-autoconf@gnu.org. ##
4687 ## ------------------------------------ ##
4688 _ASBOX
4689     ) |
4690       sed "s/^/$as_me: WARNING:     /" >&2
4691     ;;
4692   no:yes )
4693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4699     (
4700       cat <<\_ASBOX
4701 ## ------------------------------------ ##
4702 ## Report this to bug-autoconf@gnu.org. ##
4703 ## ------------------------------------ ##
4704 _ASBOX
4705     ) |
4706       sed "s/^/$as_me: WARNING:     /" >&2
4707     ;;
4708 esac
4709 echo "$as_me:$LINENO: checking for $ac_header" >&5
4710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   eval "$as_ac_Header=$ac_header_preproc"
4715 fi
4716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4718
4719 fi
4720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4721   cat >>confdefs.h <<_ACEOF
4722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729
4730
4731
4732
4733
4734 # Only perform the check for file, if the check method requires it
4735 case $deplibs_check_method in
4736 file_magic*)
4737   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4738     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4739 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   case $MAGIC_CMD in
4744   /*)
4745   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4746   ;;
4747   ?:/*)
4748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4749   ;;
4750   *)
4751   ac_save_MAGIC_CMD="$MAGIC_CMD"
4752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4753   ac_dummy="/usr/bin:$PATH"
4754   for ac_dir in $ac_dummy; do
4755     test -z "$ac_dir" && ac_dir=.
4756     if test -f $ac_dir/${ac_tool_prefix}file; then
4757       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4758       if test -n "$file_magic_test_file"; then
4759         case $deplibs_check_method in
4760         "file_magic "*)
4761           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4762           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4763           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4764             egrep "$file_magic_regex" > /dev/null; then
4765             :
4766           else
4767             cat <<EOF 1>&2
4768
4769 *** Warning: the command libtool uses to detect shared libraries,
4770 *** $file_magic_cmd, produces output that libtool cannot recognize.
4771 *** The result is that libtool may fail to recognize shared libraries
4772 *** as such.  This will affect the creation of libtool libraries that
4773 *** depend on shared libraries, but programs linked with such libtool
4774 *** libraries will work regardless of this problem.  Nevertheless, you
4775 *** may want to report the problem to your system manager and/or to
4776 *** bug-libtool@gnu.org
4777
4778 EOF
4779           fi ;;
4780         esac
4781       fi
4782       break
4783     fi
4784   done
4785   IFS="$ac_save_ifs"
4786   MAGIC_CMD="$ac_save_MAGIC_CMD"
4787   ;;
4788 esac
4789 fi
4790
4791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4792 if test -n "$MAGIC_CMD"; then
4793   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4794 echo "${ECHO_T}$MAGIC_CMD" >&6
4795 else
4796   echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798 fi
4799
4800 if test -z "$lt_cv_path_MAGIC_CMD"; then
4801   if test -n "$ac_tool_prefix"; then
4802     echo "$as_me:$LINENO: checking for file" >&5
4803 echo $ECHO_N "checking for file... $ECHO_C" >&6
4804 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   case $MAGIC_CMD in
4808   /*)
4809   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4810   ;;
4811   ?:/*)
4812   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4813   ;;
4814   *)
4815   ac_save_MAGIC_CMD="$MAGIC_CMD"
4816   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4817   ac_dummy="/usr/bin:$PATH"
4818   for ac_dir in $ac_dummy; do
4819     test -z "$ac_dir" && ac_dir=.
4820     if test -f $ac_dir/file; then
4821       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4822       if test -n "$file_magic_test_file"; then
4823         case $deplibs_check_method in
4824         "file_magic "*)
4825           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4826           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4827           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4828             egrep "$file_magic_regex" > /dev/null; then
4829             :
4830           else
4831             cat <<EOF 1>&2
4832
4833 *** Warning: the command libtool uses to detect shared libraries,
4834 *** $file_magic_cmd, produces output that libtool cannot recognize.
4835 *** The result is that libtool may fail to recognize shared libraries
4836 *** as such.  This will affect the creation of libtool libraries that
4837 *** depend on shared libraries, but programs linked with such libtool
4838 *** libraries will work regardless of this problem.  Nevertheless, you
4839 *** may want to report the problem to your system manager and/or to
4840 *** bug-libtool@gnu.org
4841
4842 EOF
4843           fi ;;
4844         esac
4845       fi
4846       break
4847     fi
4848   done
4849   IFS="$ac_save_ifs"
4850   MAGIC_CMD="$ac_save_MAGIC_CMD"
4851   ;;
4852 esac
4853 fi
4854
4855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4856 if test -n "$MAGIC_CMD"; then
4857   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4858 echo "${ECHO_T}$MAGIC_CMD" >&6
4859 else
4860   echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4862 fi
4863
4864   else
4865     MAGIC_CMD=:
4866   fi
4867 fi
4868
4869   fi
4870   ;;
4871 esac
4872
4873 if test -n "$ac_tool_prefix"; then
4874   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_RANLIB+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   if test -n "$RANLIB"; then
4882   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889   for ac_exec_ext in '' $ac_executable_extensions; do
4890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893     break 2
4894   fi
4895 done
4896 done
4897
4898 fi
4899 fi
4900 RANLIB=$ac_cv_prog_RANLIB
4901 if test -n "$RANLIB"; then
4902   echo "$as_me:$LINENO: result: $RANLIB" >&5
4903 echo "${ECHO_T}$RANLIB" >&6
4904 else
4905   echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6
4907 fi
4908
4909 fi
4910 if test -z "$ac_cv_prog_RANLIB"; then
4911   ac_ct_RANLIB=$RANLIB
4912   # Extract the first word of "ranlib", so it can be a program name with args.
4913 set dummy ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   if test -n "$ac_ct_RANLIB"; then
4920   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_ac_ct_RANLIB="ranlib"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935
4936   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4937 fi
4938 fi
4939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4940 if test -n "$ac_ct_RANLIB"; then
4941   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4942 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4943 else
4944   echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4946 fi
4947
4948   RANLIB=$ac_ct_RANLIB
4949 else
4950   RANLIB="$ac_cv_prog_RANLIB"
4951 fi
4952
4953 if test -n "$ac_tool_prefix"; then
4954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}strip; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_STRIP+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   if test -n "$STRIP"; then
4962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976 done
4977
4978 fi
4979 fi
4980 STRIP=$ac_cv_prog_STRIP
4981 if test -n "$STRIP"; then
4982   echo "$as_me:$LINENO: result: $STRIP" >&5
4983 echo "${ECHO_T}$STRIP" >&6
4984 else
4985   echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6
4987 fi
4988
4989 fi
4990 if test -z "$ac_cv_prog_STRIP"; then
4991   ac_ct_STRIP=$STRIP
4992   # Extract the first word of "strip", so it can be a program name with args.
4993 set dummy strip; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   if test -n "$ac_ct_STRIP"; then
5000   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_prog_ac_ct_STRIP="strip"
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015
5016   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5017 fi
5018 fi
5019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5020 if test -n "$ac_ct_STRIP"; then
5021   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5022 echo "${ECHO_T}$ac_ct_STRIP" >&6
5023 else
5024   echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5026 fi
5027
5028   STRIP=$ac_ct_STRIP
5029 else
5030   STRIP="$ac_cv_prog_STRIP"
5031 fi
5032
5033
5034 enable_dlopen=no
5035 enable_win32_dll=no
5036
5037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5038 if test "${enable_libtool_lock+set}" = set; then
5039   enableval="$enable_libtool_lock"
5040
5041 fi;
5042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5043
5044 # Some flags need to be propagated to the compiler or linker for good
5045 # libtool support.
5046 case $host in
5047 *-*-irix6*)
5048   # Find out which ABI we are using.
5049   echo '#line 5049 "configure"' > conftest.$ac_ext
5050   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; then
5055     case `/usr/bin/file conftest.$ac_objext` in
5056     *32-bit*)
5057       LD="${LD-ld} -32"
5058       ;;
5059     *N32*)
5060       LD="${LD-ld} -n32"
5061       ;;
5062     *64-bit*)
5063       LD="${LD-ld} -64"
5064       ;;
5065     esac
5066   fi
5067   rm -rf conftest*
5068   ;;
5069
5070 *-*-linux*)
5071   # Test if the compiler is 64bit
5072   echo 'int i;' > conftest.$ac_ext
5073   lt_cv_cc_64bit_output=no
5074   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075   (eval $ac_compile) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); }; then
5079     case `/usr/bin/file conftest.$ac_objext` in
5080     *"ELF 64"*)
5081       lt_cv_cc_64bit_output=yes
5082       ;;
5083     esac
5084   fi
5085   rm -rf conftest*
5086   ;;
5087
5088 *-*-sco3.2v5*)
5089   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5090   SAVE_CFLAGS="$CFLAGS"
5091   CFLAGS="$CFLAGS -belf"
5092   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5093 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5094 if test "${lt_cv_cc_needs_belf+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097
5098
5099      ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104
5105      cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112
5113 int
5114 main ()
5115 {
5116
5117   ;
5118   return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123   (eval $ac_link) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } &&
5127          { ac_try='test -s conftest$ac_exeext'
5128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129   (eval $ac_try) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }; }; then
5133   lt_cv_cc_needs_belf=yes
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 lt_cv_cc_needs_belf=no
5139 fi
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5141      ac_ext=c
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147 fi
5148 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5149 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5150   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5151     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5152     CFLAGS="$SAVE_CFLAGS"
5153   fi
5154   ;;
5155
5156
5157 esac
5158
5159 # Sed substitution that helps us do robust quoting.  It backslashifies
5160 # metacharacters that are still active within double-quoted strings.
5161 Xsed='sed -e s/^X//'
5162 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5163
5164 # Same as above, but do not quote variable references.
5165 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5166
5167 # Sed substitution to delay expansion of an escaped shell variable in a
5168 # double_quote_subst'ed string.
5169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5170
5171 # Constants:
5172 rm="rm -f"
5173
5174 # Global variables:
5175 default_ofile=libtool
5176 can_build_shared=yes
5177
5178 # All known linkers require a `.a' archive for static linking (except M$VC,
5179 # which needs '.lib').
5180 libext=a
5181 ltmain="$ac_aux_dir/ltmain.sh"
5182 ofile="$default_ofile"
5183 with_gnu_ld="$lt_cv_prog_gnu_ld"
5184 need_locks="$enable_libtool_lock"
5185
5186 old_CC="$CC"
5187 old_CFLAGS="$CFLAGS"
5188
5189 # Set sane defaults for various variables
5190 test -z "$AR" && AR=ar
5191 test -z "$AR_FLAGS" && AR_FLAGS=cru
5192 test -z "$AS" && AS=as
5193 test -z "$CC" && CC=cc
5194 test -z "$DLLTOOL" && DLLTOOL=dlltool
5195 test -z "$LD" && LD=ld
5196 test -z "$LN_S" && LN_S="ln -s"
5197 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5198 test -z "$NM" && NM=nm
5199 test -z "$OBJDUMP" && OBJDUMP=objdump
5200 test -z "$RANLIB" && RANLIB=:
5201 test -z "$STRIP" && STRIP=:
5202 test -z "$ac_objext" && ac_objext=o
5203
5204 if test x"$host" != x"$build"; then
5205   ac_tool_prefix=${host_alias}-
5206 else
5207   ac_tool_prefix=
5208 fi
5209
5210 case $host_os in
5211 aix3*)
5212   # AIX sometimes has problems with the GCC collect2 program.  For some
5213   # reason, if we set the COLLECT_NAMES environment variable, the problems
5214   # vanish in a puff of smoke.
5215   if test "X${COLLECT_NAMES+set}" != Xset; then
5216     COLLECT_NAMES=
5217     export COLLECT_NAMES
5218   fi
5219   ;;
5220 esac
5221
5222 # Determine commands to create old-style static archives.
5223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5224 old_postinstall_cmds='chmod 644 $oldlib'
5225 old_postuninstall_cmds=
5226
5227 if test -n "$RANLIB"; then
5228   case $host_os in
5229   openbsd*)
5230     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5231     ;;
5232   *)
5233     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5234     ;;
5235   esac
5236   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5237 fi
5238
5239 # Allow CC to be a program name with arguments.
5240 set dummy $CC
5241 compiler="$2"
5242
5243 echo "$as_me:$LINENO: checking for objdir" >&5
5244 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5245 rm -f .libs 2>/dev/null
5246 mkdir .libs 2>/dev/null
5247 if test -d .libs; then
5248   objdir=.libs
5249 else
5250   # MS-DOS does not allow filenames that begin with a dot.
5251   objdir=_libs
5252 fi
5253 rmdir .libs 2>/dev/null
5254 echo "$as_me:$LINENO: result: $objdir" >&5
5255 echo "${ECHO_T}$objdir" >&6
5256
5257
5258
5259 # Check whether --with-pic or --without-pic was given.
5260 if test "${with_pic+set}" = set; then
5261   withval="$with_pic"
5262   pic_mode="$withval"
5263 else
5264   pic_mode=default
5265 fi;
5266 test -z "$pic_mode" && pic_mode=default
5267
5268 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5269 # in isolation, and that seeing it set (from the cache) indicates that
5270 # the associated values are set (in the cache) correctly too.
5271 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5273 if test "${lt_cv_prog_cc_pic+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276    lt_cv_prog_cc_pic=
5277   lt_cv_prog_cc_shlib=
5278   lt_cv_prog_cc_wl=
5279   lt_cv_prog_cc_static=
5280   lt_cv_prog_cc_no_builtin=
5281   lt_cv_prog_cc_can_build_shared=$can_build_shared
5282
5283   if test "$GCC" = yes; then
5284     lt_cv_prog_cc_wl='-Wl,'
5285     lt_cv_prog_cc_static='-static'
5286
5287     case $host_os in
5288     aix*)
5289       # Below there is a dirty hack to force normal static linking with -ldl
5290       # The problem is because libdl dynamically linked with both libc and
5291       # libC (AIX C++ library), which obviously doesn't included in libraries
5292       # list by gcc. This cause undefined symbols with -static flags.
5293       # This hack allows C programs to be linked with "-static -ldl", but
5294       # not sure about C++ programs.
5295       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5296       ;;
5297     amigaos*)
5298       # FIXME: we need at least 68020 code to build shared libraries, but
5299       # adding the `-m68020' flag to GCC prevents building anything better,
5300       # like `-m68040'.
5301       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5302       ;;
5303     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5304       # PIC is the default for these OSes.
5305       ;;
5306     darwin* | rhapsody*)
5307       # PIC is the default on this platform
5308       # Common symbols not allowed in MH_DYLIB files
5309       lt_cv_prog_cc_pic='-fno-common'
5310       ;;
5311     cygwin* | mingw* | pw32* | os2*)
5312       # This hack is so that the source file can tell whether it is being
5313       # built for inclusion in a dll (and should export symbols for example).
5314       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5315       ;;
5316     sysv4*MP*)
5317       if test -d /usr/nec; then
5318          lt_cv_prog_cc_pic=-Kconform_pic
5319       fi
5320       ;;
5321     *)
5322       lt_cv_prog_cc_pic='-fPIC'
5323       ;;
5324     esac
5325   else
5326     # PORTME Check for PIC flags for the system compiler.
5327     case $host_os in
5328     aix3* | aix4* | aix5*)
5329       lt_cv_prog_cc_wl='-Wl,'
5330       # All AIX code is PIC.
5331       if test "$host_cpu" = ia64; then
5332         # AIX 5 now supports IA64 processor
5333         lt_cv_prog_cc_static='-Bstatic'
5334       else
5335         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5336       fi
5337       ;;
5338
5339     hpux9* | hpux10* | hpux11*)
5340       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5341       lt_cv_prog_cc_wl='-Wl,'
5342       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5343       lt_cv_prog_cc_pic='+Z'
5344       ;;
5345
5346     irix5* | irix6* | nonstopux*)
5347       lt_cv_prog_cc_wl='-Wl,'
5348       lt_cv_prog_cc_static='-non_shared'
5349       # PIC (with -KPIC) is the default.
5350       ;;
5351
5352     cygwin* | mingw* | pw32* | os2*)
5353       # This hack is so that the source file can tell whether it is being
5354       # built for inclusion in a dll (and should export symbols for example).
5355       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5356       ;;
5357
5358     newsos6)
5359       lt_cv_prog_cc_pic='-KPIC'
5360       lt_cv_prog_cc_static='-Bstatic'
5361       ;;
5362
5363     osf3* | osf4* | osf5*)
5364       # All OSF/1 code is PIC.
5365       lt_cv_prog_cc_wl='-Wl,'
5366       lt_cv_prog_cc_static='-non_shared'
5367       ;;
5368
5369     sco3.2v5*)
5370       lt_cv_prog_cc_pic='-Kpic'
5371       lt_cv_prog_cc_static='-dn'
5372       lt_cv_prog_cc_shlib='-belf'
5373       ;;
5374
5375     solaris*)
5376       lt_cv_prog_cc_pic='-KPIC'
5377       lt_cv_prog_cc_static='-Bstatic'
5378       lt_cv_prog_cc_wl='-Wl,'
5379       ;;
5380
5381     sunos4*)
5382       lt_cv_prog_cc_pic='-PIC'
5383       lt_cv_prog_cc_static='-Bstatic'
5384       lt_cv_prog_cc_wl='-Qoption ld '
5385       ;;
5386
5387     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5388       lt_cv_prog_cc_pic='-KPIC'
5389       lt_cv_prog_cc_static='-Bstatic'
5390       lt_cv_prog_cc_wl='-Wl,'
5391       ;;
5392
5393     uts4*)
5394       lt_cv_prog_cc_pic='-pic'
5395       lt_cv_prog_cc_static='-Bstatic'
5396       ;;
5397
5398     sysv4*MP*)
5399       if test -d /usr/nec ;then
5400         lt_cv_prog_cc_pic='-Kconform_pic'
5401         lt_cv_prog_cc_static='-Bstatic'
5402       fi
5403       ;;
5404
5405     *)
5406       lt_cv_prog_cc_can_build_shared=no
5407       ;;
5408     esac
5409   fi
5410
5411 fi
5412
5413 if test -z "$lt_cv_prog_cc_pic"; then
5414   echo "$as_me:$LINENO: result: none" >&5
5415 echo "${ECHO_T}none" >&6
5416 else
5417   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5418 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5419
5420   # Check to make sure the pic_flag actually works.
5421   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5422 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5423   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426       save_CFLAGS="$CFLAGS"
5427     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5428     cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435
5436 int
5437 main ()
5438 {
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456         case $host_os in
5457       hpux9* | hpux10* | hpux11*)
5458         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5459         # they create non-PIC objects.  So, if there were any warnings, we
5460         # assume that PIC is not supported.
5461         if test -s conftest.err; then
5462           lt_cv_prog_cc_pic_works=no
5463         else
5464           lt_cv_prog_cc_pic_works=yes
5465         fi
5466         ;;
5467       *)
5468         lt_cv_prog_cc_pic_works=yes
5469         ;;
5470       esac
5471
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476       lt_cv_prog_cc_pic_works=no
5477
5478 fi
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5480     CFLAGS="$save_CFLAGS"
5481
5482 fi
5483
5484
5485   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5486     lt_cv_prog_cc_pic=
5487     lt_cv_prog_cc_can_build_shared=no
5488   else
5489     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5490   fi
5491
5492   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5493 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5494 fi
5495
5496 # Check for any special shared library compilation flags.
5497 if test -n "$lt_cv_prog_cc_shlib"; then
5498   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5499 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5500   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5501   else
5502    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5503 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5504     lt_cv_prog_cc_can_build_shared=no
5505   fi
5506 fi
5507
5508 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5509 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5510 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513     lt_cv_prog_cc_static_works=no
5514   save_LDFLAGS="$LDFLAGS"
5515   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5516   cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523
5524 int
5525 main ()
5526 {
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534   (eval $ac_link) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -s conftest$ac_exeext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   lt_cv_prog_cc_static_works=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 fi
5550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551   LDFLAGS="$save_LDFLAGS"
5552
5553 fi
5554
5555
5556 # Belt *and* braces to stop my trousers falling down:
5557 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5559 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5560
5561 pic_flag="$lt_cv_prog_cc_pic"
5562 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5563 wl="$lt_cv_prog_cc_wl"
5564 link_static_flag="$lt_cv_prog_cc_static"
5565 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5566 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5567
5568
5569 # Check to see if options -o and -c are simultaneously supported by compiler
5570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5572 if test "${lt_cv_compiler_c_o+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575
5576 $rm -r conftest 2>/dev/null
5577 mkdir conftest
5578 cd conftest
5579 echo "int some_variable = 0;" > conftest.$ac_ext
5580 mkdir out
5581 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5582 # that will create temporary files in the current directory regardless of
5583 # the output directory.  Thus, making CWD read-only will cause this test
5584 # to fail, enabling locking or at least warning the user not to do parallel
5585 # builds.
5586 chmod -w .
5587 save_CFLAGS="$CFLAGS"
5588 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5589 compiler_c_o=no
5590 if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5591   # The compiler can only warn and ignore the option if not recognized
5592   # So say no if there are warnings
5593   if test -s out/conftest.err; then
5594     lt_cv_compiler_c_o=no
5595   else
5596     lt_cv_compiler_c_o=yes
5597   fi
5598 else
5599   # Append any errors to the config.log.
5600   cat out/conftest.err 1>&5
5601   lt_cv_compiler_c_o=no
5602 fi
5603 CFLAGS="$save_CFLAGS"
5604 chmod u+w .
5605 $rm conftest* out/*
5606 rmdir out
5607 cd ..
5608 rmdir conftest
5609 $rm -r conftest 2>/dev/null
5610
5611 fi
5612
5613 compiler_c_o=$lt_cv_compiler_c_o
5614 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5615 echo "${ECHO_T}$compiler_c_o" >&6
5616
5617 if test x"$compiler_c_o" = x"yes"; then
5618   # Check to see if we can write to a .lo
5619   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5620 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5621   if test "${lt_cv_compiler_o_lo+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624
5625   lt_cv_compiler_o_lo=no
5626   save_CFLAGS="$CFLAGS"
5627   CFLAGS="$CFLAGS -c -o conftest.lo"
5628   save_objext="$ac_objext"
5629   ac_objext=lo
5630   cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637
5638 int
5639 main ()
5640 {
5641 int some_variable = 0;
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648   (eval $ac_compile) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); } &&
5652          { ac_try='test -s conftest.$ac_objext'
5653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654   (eval $ac_try) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; }; then
5658       # The compiler can only warn and ignore the option if not recognized
5659     # So say no if there are warnings
5660     if test -s conftest.err; then
5661       lt_cv_compiler_o_lo=no
5662     else
5663       lt_cv_compiler_o_lo=yes
5664     fi
5665
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 fi
5671 rm -f conftest.$ac_objext conftest.$ac_ext
5672   ac_objext="$save_objext"
5673   CFLAGS="$save_CFLAGS"
5674
5675 fi
5676
5677   compiler_o_lo=$lt_cv_compiler_o_lo
5678   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5679 echo "${ECHO_T}$compiler_o_lo" >&6
5680 else
5681   compiler_o_lo=no
5682 fi
5683
5684 # Check to see if we can do hard links to lock some files if needed
5685 hard_links="nottested"
5686 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5687   # do not overwrite the value of need_locks provided by the user
5688   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5689 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5690   hard_links=yes
5691   $rm conftest*
5692   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5693   touch conftest.a
5694   ln conftest.a conftest.b 2>&5 || hard_links=no
5695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5696   echo "$as_me:$LINENO: result: $hard_links" >&5
5697 echo "${ECHO_T}$hard_links" >&6
5698   if test "$hard_links" = no; then
5699     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5700 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5701     need_locks=warn
5702   fi
5703 else
5704   need_locks=no
5705 fi
5706
5707 if test "$GCC" = yes; then
5708   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5709   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5711   echo "int some_variable = 0;" > conftest.$ac_ext
5712   save_CFLAGS="$CFLAGS"
5713   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5714   compiler_rtti_exceptions=no
5715   cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722
5723 int
5724 main ()
5725 {
5726 int some_variable = 0;
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733   (eval $ac_compile) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -s conftest.$ac_objext'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; }; then
5743       # The compiler can only warn and ignore the option if not recognized
5744     # So say no if there are warnings
5745     if test -s conftest.err; then
5746       compiler_rtti_exceptions=no
5747     else
5748       compiler_rtti_exceptions=yes
5749     fi
5750
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 fi
5756 rm -f conftest.$ac_objext conftest.$ac_ext
5757   CFLAGS="$save_CFLAGS"
5758   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5759 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5760
5761   if test "$compiler_rtti_exceptions" = "yes"; then
5762     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5763   else
5764     no_builtin_flag=' -fno-builtin'
5765   fi
5766 fi
5767
5768 # See if the linker supports building shared libraries.
5769 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5770 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5771
5772 allow_undefined_flag=
5773 no_undefined_flag=
5774 need_lib_prefix=unknown
5775 need_version=unknown
5776 # when you set need_version to no, make sure it does not cause -set_version
5777 # flags to be left without arguments
5778 archive_cmds=
5779 archive_expsym_cmds=
5780 old_archive_from_new_cmds=
5781 old_archive_from_expsyms_cmds=
5782 export_dynamic_flag_spec=
5783 whole_archive_flag_spec=
5784 thread_safe_flag_spec=
5785 hardcode_into_libs=no
5786 hardcode_libdir_flag_spec=
5787 hardcode_libdir_separator=
5788 hardcode_direct=no
5789 hardcode_minus_L=no
5790 hardcode_shlibpath_var=unsupported
5791 runpath_var=
5792 link_all_deplibs=unknown
5793 always_export_symbols=no
5794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5795 # include_expsyms should be a list of space-separated symbols to be *always*
5796 # included in the symbol list
5797 include_expsyms=
5798 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5800 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5801 # as well as any symbol that contains `d'.
5802 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5804 # platforms (ab)use it in PIC code, but their linkers get confused if
5805 # the symbol is explicitly referenced.  Since portable code cannot
5806 # rely on this symbol name, it's probably fine to never include it in
5807 # preloaded symbol tables.
5808 extract_expsyms_cmds=
5809
5810 case $host_os in
5811 cygwin* | mingw* | pw32*)
5812   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5813   # When not using gcc, we currently assume that we are using
5814   # Microsoft Visual C++.
5815   if test "$GCC" != yes; then
5816     with_gnu_ld=no
5817   fi
5818   ;;
5819 openbsd*)
5820   with_gnu_ld=no
5821   ;;
5822 esac
5823
5824 ld_shlibs=yes
5825 if test "$with_gnu_ld" = yes; then
5826   # If archive_cmds runs LD, not CC, wlarc should be empty
5827   wlarc='${wl}'
5828
5829   # See if GNU ld supports shared libraries.
5830   case $host_os in
5831   aix3* | aix4* | aix5*)
5832     # On AIX, the GNU linker is very broken
5833     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5834     ld_shlibs=no
5835     cat <<EOF 1>&2
5836
5837 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5838 *** to be unable to reliably create shared libraries on AIX.
5839 *** Therefore, libtool is disabling shared libraries support.  If you
5840 *** really care for shared libraries, you may want to modify your PATH
5841 *** so that a non-GNU linker is found, and then restart.
5842
5843 EOF
5844     ;;
5845
5846   amigaos*)
5847     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)'
5848     hardcode_libdir_flag_spec='-L$libdir'
5849     hardcode_minus_L=yes
5850
5851     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5852     # that the semantics of dynamic libraries on AmigaOS, at least up
5853     # to version 4, is to share data among multiple programs linked
5854     # with the same dynamic library.  Since this doesn't match the
5855     # behavior of shared libraries on other platforms, we can use
5856     # them.
5857     ld_shlibs=no
5858     ;;
5859
5860   beos*)
5861     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5862       allow_undefined_flag=unsupported
5863       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5864       # support --undefined.  This deserves some investigation.  FIXME
5865       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5866     else
5867       ld_shlibs=no
5868     fi
5869     ;;
5870
5871   cygwin* | mingw* | pw32*)
5872     # hardcode_libdir_flag_spec is actually meaningless, as there is
5873     # no search path for DLLs.
5874     hardcode_libdir_flag_spec='-L$libdir'
5875     allow_undefined_flag=unsupported
5876     always_export_symbols=yes
5877
5878     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5879       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5880       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5881       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5882       else $CC -o impgen impgen.c ; fi)~
5883       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5884
5885     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5886
5887     # cygwin and mingw dlls have different entry points and sets of symbols
5888     # to exclude.
5889     # FIXME: what about values for MSVC?
5890     dll_entry=__cygwin_dll_entry@12
5891     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5892     case $host_os in
5893     mingw*)
5894       # mingw values
5895       dll_entry=_DllMainCRTStartup@12
5896       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5897       ;;
5898     esac
5899
5900     # mingw and cygwin differ, and it's simplest to just exclude the union
5901     # of the two symbol sets.
5902     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5903
5904     # recent cygwin and mingw systems supply a stub DllMain which the user
5905     # can override, but on older systems we have to supply one (in ltdll.c)
5906     if test "x$lt_cv_need_dllmain" = "xyes"; then
5907       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5908       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~
5909         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5910     else
5911       ltdll_obj=
5912       ltdll_cmds=
5913     fi
5914
5915     # Extract the symbol export list from an `--export-all' def file,
5916     # then regenerate the def file from the symbol export list, so that
5917     # the compiled dll only exports the symbol export list.
5918     # Be careful not to strip the DATA tag left be newer dlltools.
5919     export_symbols_cmds="$ltdll_cmds"'
5920       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5921       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5922
5923     # If the export-symbols file already is a .def file (1st line
5924     # is EXPORTS), use it as is.
5925     # If DATA tags from a recent dlltool are present, honour them!
5926     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5927         cp $export_symbols $output_objdir/$soname-def;
5928       else
5929         echo EXPORTS > $output_objdir/$soname-def;
5930         _lt_hint=1;
5931         cat $export_symbols | while read symbol; do
5932          set dummy \$symbol;
5933          case \$# in
5934            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5935            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5936            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5937          esac;
5938          _lt_hint=`expr 1 + \$_lt_hint`;
5939         done;
5940       fi~
5941       '"$ltdll_cmds"'
5942       $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~
5943       $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~
5944       $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~
5945       $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~
5946       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5947     ;;
5948
5949   netbsd*)
5950     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5951       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5952       wlarc=
5953     else
5954       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5955       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5956     fi
5957     ;;
5958
5959   solaris* | sysv5*)
5960     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5961       ld_shlibs=no
5962       cat <<EOF 1>&2
5963
5964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5965 *** create shared libraries on Solaris systems.  Therefore, libtool
5966 *** is disabling shared libraries support.  We urge you to upgrade GNU
5967 *** binutils to release 2.9.1 or newer.  Another option is to modify
5968 *** your PATH or compiler configuration so that the native linker is
5969 *** used, and then restart.
5970
5971 EOF
5972     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5973       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5975     else
5976       ld_shlibs=no
5977     fi
5978     ;;
5979
5980   sunos4*)
5981     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5982     wlarc=
5983     hardcode_direct=yes
5984     hardcode_shlibpath_var=no
5985     ;;
5986
5987   *)
5988     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5989       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5990       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5991     else
5992       ld_shlibs=no
5993     fi
5994     ;;
5995   esac
5996
5997   if test "$ld_shlibs" = yes; then
5998     runpath_var=LD_RUN_PATH
5999     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6000     export_dynamic_flag_spec='${wl}--export-dynamic'
6001     case $host_os in
6002     cygwin* | mingw* | pw32*)
6003       # dlltool doesn't understand --whole-archive et. al.
6004       whole_archive_flag_spec=
6005       ;;
6006     *)
6007       # ancient GNU ld didn't support --whole-archive et. al.
6008       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6009         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6010       else
6011         whole_archive_flag_spec=
6012       fi
6013       ;;
6014     esac
6015   fi
6016 else
6017   # PORTME fill in a description of your system's linker (not GNU ld)
6018   case $host_os in
6019   aix3*)
6020     allow_undefined_flag=unsupported
6021     always_export_symbols=yes
6022     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'
6023     # Note: this linker hardcodes the directories in LIBPATH if there
6024     # are no directories specified by -L.
6025     hardcode_minus_L=yes
6026     if test "$GCC" = yes && test -z "$link_static_flag"; then
6027       # Neither direct hardcoding nor static linking is supported with a
6028       # broken collect2.
6029       hardcode_direct=unsupported
6030     fi
6031     ;;
6032
6033   aix4* | aix5*)
6034     if test "$host_cpu" = ia64; then
6035       # On IA64, the linker does run time linking by default, so we don't
6036       # have to do anything special.
6037       aix_use_runtimelinking=no
6038       exp_sym_flag='-Bexport'
6039       no_entry_flag=""
6040     else
6041       aix_use_runtimelinking=no
6042
6043       # Test if we are trying to use run time linking or normal
6044       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6045       # need to do runtime linking.
6046       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6047         for ld_flag in $LDFLAGS; do
6048           case $ld_flag in
6049           *-brtl*)
6050             aix_use_runtimelinking=yes
6051             break
6052           ;;
6053           esac
6054         done
6055       esac
6056
6057       exp_sym_flag='-bexport'
6058       no_entry_flag='-bnoentry'
6059     fi
6060
6061     # When large executables or shared objects are built, AIX ld can
6062     # have problems creating the table of contents.  If linking a library
6063     # or program results in "error TOC overflow" add -mminimal-toc to
6064     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6065     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6066
6067     hardcode_direct=yes
6068     archive_cmds=''
6069     hardcode_libdir_separator=':'
6070     if test "$GCC" = yes; then
6071       case $host_os in aix4.[012]|aix4.[012].*)
6072         collect2name=`${CC} -print-prog-name=collect2`
6073         if test -f "$collect2name" && \
6074           strings "$collect2name" | grep resolve_lib_name >/dev/null
6075         then
6076           # We have reworked collect2
6077           hardcode_direct=yes
6078         else
6079           # We have old collect2
6080           hardcode_direct=unsupported
6081           # It fails to find uninstalled libraries when the uninstalled
6082           # path is not listed in the libpath.  Setting hardcode_minus_L
6083           # to unsupported forces relinking
6084           hardcode_minus_L=yes
6085           hardcode_libdir_flag_spec='-L$libdir'
6086           hardcode_libdir_separator=
6087         fi
6088       esac
6089
6090       shared_flag='-shared'
6091     else
6092       # not using gcc
6093       if test "$host_cpu" = ia64; then
6094         shared_flag='${wl}-G'
6095       else
6096         if test "$aix_use_runtimelinking" = yes; then
6097           shared_flag='${wl}-G'
6098         else
6099           shared_flag='${wl}-bM:SRE'
6100         fi
6101       fi
6102     fi
6103
6104     # It seems that -bexpall can do strange things, so it is better to
6105     # generate a list of symbols to export.
6106     always_export_symbols=yes
6107     if test "$aix_use_runtimelinking" = yes; then
6108       # Warning - without using the other runtime loading flags (-brtl),
6109       # -berok will link without error, but may produce a broken library.
6110       allow_undefined_flag='-berok'
6111       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6112       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"
6113     else
6114       if test "$host_cpu" = ia64; then
6115         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6116         allow_undefined_flag="-z nodefs"
6117         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"
6118       else
6119         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6120         # Warning - without using the other run time loading flags,
6121         # -berok will link without error, but may produce a broken library.
6122         allow_undefined_flag='${wl}-berok'
6123         # This is a bit strange, but is similar to how AIX traditionally builds
6124         # it's shared libraries.
6125         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'
6126       fi
6127     fi
6128     ;;
6129
6130   amigaos*)
6131     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)'
6132     hardcode_libdir_flag_spec='-L$libdir'
6133     hardcode_minus_L=yes
6134     # see comment about different semantics on the GNU ld section
6135     ld_shlibs=no
6136     ;;
6137
6138   cygwin* | mingw* | pw32*)
6139     # When not using gcc, we currently assume that we are using
6140     # Microsoft Visual C++.
6141     # hardcode_libdir_flag_spec is actually meaningless, as there is
6142     # no search path for DLLs.
6143     hardcode_libdir_flag_spec=' '
6144     allow_undefined_flag=unsupported
6145     # Tell ltmain to make .lib files, not .a files.
6146     libext=lib
6147     # FIXME: Setting linknames here is a bad hack.
6148     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6149     # The linker will automatically build a .lib file if we build a DLL.
6150     old_archive_from_new_cmds='true'
6151     # FIXME: Should let the user specify the lib program.
6152     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6153     fix_srcfile_path='`cygpath -w "$srcfile"`'
6154     ;;
6155
6156   darwin* | rhapsody*)
6157     case "$host_os" in
6158     rhapsody* | darwin1.[012])
6159       allow_undefined_flag='-undefined suppress'
6160       ;;
6161     *) # Darwin 1.3 on
6162       allow_undefined_flag='-flat_namespace -undefined suppress'
6163       ;;
6164     esac
6165     # FIXME: Relying on posixy $() will cause problems for
6166     #        cross-compilation, but unfortunately the echo tests do not
6167     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6168     #        `"' quotes if we put them in here... so don't!
6169     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)'
6170     # We need to add '_' to the symbols in $export_symbols first
6171     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6172     hardcode_direct=yes
6173     hardcode_shlibpath_var=no
6174     whole_archive_flag_spec='-all_load $convenience'
6175     ;;
6176
6177   freebsd1*)
6178     ld_shlibs=no
6179     ;;
6180
6181   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6182   # support.  Future versions do this automatically, but an explicit c++rt0.o
6183   # does not break anything, and helps significantly (at the cost of a little
6184   # extra space).
6185   freebsd2.2*)
6186     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6187     hardcode_libdir_flag_spec='-R$libdir'
6188     hardcode_direct=yes
6189     hardcode_shlibpath_var=no
6190     ;;
6191
6192   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6193   freebsd2*)
6194     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6195     hardcode_direct=yes
6196     hardcode_minus_L=yes
6197     hardcode_shlibpath_var=no
6198     ;;
6199
6200   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6201   freebsd*)
6202     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6203     hardcode_libdir_flag_spec='-R$libdir'
6204     hardcode_direct=yes
6205     hardcode_shlibpath_var=no
6206     ;;
6207
6208   hpux9* | hpux10* | hpux11*)
6209     case $host_os in
6210     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' ;;
6211     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6212     esac
6213     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6214     hardcode_libdir_separator=:
6215     hardcode_direct=yes
6216     hardcode_minus_L=yes # Not in the search PATH, but as the default
6217                          # location of the library.
6218     export_dynamic_flag_spec='${wl}-E'
6219     ;;
6220
6221   irix5* | irix6* | nonstopux*)
6222     if test "$GCC" = yes; then
6223       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'
6224       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6225     else
6226       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'
6227       hardcode_libdir_flag_spec='-rpath $libdir'
6228     fi
6229     hardcode_libdir_separator=:
6230     link_all_deplibs=yes
6231     ;;
6232
6233   netbsd*)
6234     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6235       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6236     else
6237       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6238     fi
6239     hardcode_libdir_flag_spec='-R$libdir'
6240     hardcode_direct=yes
6241     hardcode_shlibpath_var=no
6242     ;;
6243
6244   newsos6)
6245     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6246     hardcode_direct=yes
6247     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6248     hardcode_libdir_separator=:
6249     hardcode_shlibpath_var=no
6250     ;;
6251
6252   openbsd*)
6253     hardcode_direct=yes
6254     hardcode_shlibpath_var=no
6255     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6256       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6257       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6258       export_dynamic_flag_spec='${wl}-E'
6259     else
6260       case "$host_os" in
6261       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6262         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6263         hardcode_libdir_flag_spec='-R$libdir'
6264         ;;
6265       *)
6266         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6267         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6268         ;;
6269       esac
6270     fi
6271     ;;
6272
6273   os2*)
6274     hardcode_libdir_flag_spec='-L$libdir'
6275     hardcode_minus_L=yes
6276     allow_undefined_flag=unsupported
6277     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'
6278     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6279     ;;
6280
6281   osf3*)
6282     if test "$GCC" = yes; then
6283       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6284       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'
6285     else
6286       allow_undefined_flag=' -expect_unresolved \*'
6287       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'
6288     fi
6289     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6290     hardcode_libdir_separator=:
6291     ;;
6292
6293   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6294     if test "$GCC" = yes; then
6295       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6296       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'
6297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6298     else
6299       allow_undefined_flag=' -expect_unresolved \*'
6300       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'
6301       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6302       $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'
6303
6304       #Both c and cxx compiler support -rpath directly
6305       hardcode_libdir_flag_spec='-rpath $libdir'
6306     fi
6307     hardcode_libdir_separator=:
6308     ;;
6309
6310   sco3.2v5*)
6311     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6312     hardcode_shlibpath_var=no
6313     runpath_var=LD_RUN_PATH
6314     hardcode_runpath_var=yes
6315     export_dynamic_flag_spec='${wl}-Bexport'
6316     ;;
6317
6318   solaris*)
6319     # gcc --version < 3.0 without binutils cannot create self contained
6320     # shared libraries reliably, requiring libgcc.a to resolve some of
6321     # the object symbols generated in some cases.  Libraries that use
6322     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6323     # a copy of libgcc.a into every shared library to guarantee resolving
6324     # such symbols causes other problems:  According to Tim Van Holder
6325     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6326     # (to the application) exception stack for one thing.
6327     no_undefined_flag=' -z defs'
6328     if test "$GCC" = yes; then
6329       case `$CC --version 2>/dev/null` in
6330       [12].*)
6331         cat <<EOF 1>&2
6332
6333 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6334 *** create self contained shared libraries on Solaris systems, without
6335 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6336 *** -no-undefined support, which will at least allow you to build shared
6337 *** libraries.  However, you may find that when you link such libraries
6338 *** into an application without using GCC, you have to manually add
6339 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6340 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6341 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6342
6343 EOF
6344         no_undefined_flag=
6345         ;;
6346       esac
6347     fi
6348     # $CC -shared without GNU ld will not create a library from C++
6349     # object files and a static libstdc++, better avoid it by now
6350     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6351     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6352                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6353     hardcode_libdir_flag_spec='-R$libdir'
6354     hardcode_shlibpath_var=no
6355     case $host_os in
6356     solaris2.[0-5] | solaris2.[0-5].*) ;;
6357     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6358       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6359     esac
6360     link_all_deplibs=yes
6361     ;;
6362
6363   sunos4*)
6364     if test "x$host_vendor" = xsequent; then
6365       # Use $CC to link under sequent, because it throws in some extra .o
6366       # files that make .init and .fini sections work.
6367       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6368     else
6369       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6370     fi
6371     hardcode_libdir_flag_spec='-L$libdir'
6372     hardcode_direct=yes
6373     hardcode_minus_L=yes
6374     hardcode_shlibpath_var=no
6375     ;;
6376
6377   sysv4)
6378     case $host_vendor in
6379       sni)
6380         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6381         hardcode_direct=yes # is this really true???
6382         ;;
6383       siemens)
6384         ## LD is ld it makes a PLAMLIB
6385         ## CC just makes a GrossModule.
6386         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6387         reload_cmds='$CC -r -o $output$reload_objs'
6388         hardcode_direct=no
6389         ;;
6390       motorola)
6391         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6392         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6393         ;;
6394     esac
6395     runpath_var='LD_RUN_PATH'
6396     hardcode_shlibpath_var=no
6397     ;;
6398
6399   sysv4.3*)
6400     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6401     hardcode_shlibpath_var=no
6402     export_dynamic_flag_spec='-Bexport'
6403     ;;
6404
6405   sysv5*)
6406     no_undefined_flag=' -z text'
6407     # $CC -shared without GNU ld will not create a library from C++
6408     # object files and a static libstdc++, better avoid it by now
6409     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6410     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6411                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6412     hardcode_libdir_flag_spec=
6413     hardcode_shlibpath_var=no
6414     runpath_var='LD_RUN_PATH'
6415     ;;
6416
6417   uts4*)
6418     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419     hardcode_libdir_flag_spec='-L$libdir'
6420     hardcode_shlibpath_var=no
6421     ;;
6422
6423   dgux*)
6424     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6425     hardcode_libdir_flag_spec='-L$libdir'
6426     hardcode_shlibpath_var=no
6427     ;;
6428
6429   sysv4*MP*)
6430     if test -d /usr/nec; then
6431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6432       hardcode_shlibpath_var=no
6433       runpath_var=LD_RUN_PATH
6434       hardcode_runpath_var=yes
6435       ld_shlibs=yes
6436     fi
6437     ;;
6438
6439   sysv4.2uw2*)
6440     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6441     hardcode_direct=yes
6442     hardcode_minus_L=no
6443     hardcode_shlibpath_var=no
6444     hardcode_runpath_var=yes
6445     runpath_var=LD_RUN_PATH
6446     ;;
6447
6448   sysv5uw7* | unixware7*)
6449     no_undefined_flag='${wl}-z ${wl}text'
6450     if test "$GCC" = yes; then
6451       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6452     else
6453       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6454     fi
6455     runpath_var='LD_RUN_PATH'
6456     hardcode_shlibpath_var=no
6457     ;;
6458
6459   *)
6460     ld_shlibs=no
6461     ;;
6462   esac
6463 fi
6464 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6465 echo "${ECHO_T}$ld_shlibs" >&6
6466 test "$ld_shlibs" = no && can_build_shared=no
6467
6468 # Check hardcoding attributes.
6469 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6470 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6471 hardcode_action=
6472 if test -n "$hardcode_libdir_flag_spec" || \
6473    test -n "$runpath_var"; then
6474
6475   # We can hardcode non-existant directories.
6476   if test "$hardcode_direct" != no &&
6477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6478      # have to relink, otherwise we might link with an installed library
6479      # when we should be linking with a yet-to-be-installed one
6480      ## test "$hardcode_shlibpath_var" != no &&
6481      test "$hardcode_minus_L" != no; then
6482     # Linking always hardcodes the temporary library directory.
6483     hardcode_action=relink
6484   else
6485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6486     hardcode_action=immediate
6487   fi
6488 else
6489   # We cannot hardcode anything, or else we can only hardcode existing
6490   # directories.
6491   hardcode_action=unsupported
6492 fi
6493 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6494 echo "${ECHO_T}$hardcode_action" >&6
6495
6496 striplib=
6497 old_striplib=
6498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6501   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6502   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6503   echo "$as_me:$LINENO: result: yes" >&5
6504 echo "${ECHO_T}yes" >&6
6505 else
6506   echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6508 fi
6509
6510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6512
6513 # PORTME Fill in your ld.so characteristics
6514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6516 library_names_spec=
6517 libname_spec='lib$name'
6518 soname_spec=
6519 postinstall_cmds=
6520 postuninstall_cmds=
6521 finish_cmds=
6522 finish_eval=
6523 shlibpath_var=
6524 shlibpath_overrides_runpath=unknown
6525 version_type=none
6526 dynamic_linker="$host_os ld.so"
6527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6529
6530 case $host_os in
6531 aix3*)
6532   version_type=linux
6533   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6534   shlibpath_var=LIBPATH
6535
6536   # AIX has no versioning support, so we append a major version to the name.
6537   soname_spec='${libname}${release}.so$major'
6538   ;;
6539
6540 aix4* | aix5*)
6541   version_type=linux
6542   need_lib_prefix=no
6543   need_version=no
6544   hardcode_into_libs=yes
6545   if test "$host_cpu" = ia64; then
6546     # AIX 5 supports IA64
6547     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6548     shlibpath_var=LD_LIBRARY_PATH
6549   else
6550     # With GCC up to 2.95.x, collect2 would create an import file
6551     # for dependence libraries.  The import file would start with
6552     # the line `#! .'.  This would cause the generated library to
6553     # depend on `.', always an invalid library.  This was fixed in
6554     # development snapshots of GCC prior to 3.0.
6555     case $host_os in
6556       aix4 | aix4.[01] | aix4.[01].*)
6557         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6558              echo ' yes '
6559              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6560           :
6561         else
6562           can_build_shared=no
6563         fi
6564         ;;
6565     esac
6566     # AIX (on Power*) has no versioning support, so currently we can
6567     # not hardcode correct soname into executable. Probably we can
6568     # add versioning support to collect2, so additional links can
6569     # be useful in future.
6570     if test "$aix_use_runtimelinking" = yes; then
6571       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6572       # instead of lib<name>.a to let people know that these are not
6573       # typical AIX shared libraries.
6574       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6575     else
6576       # We preserve .a as extension for shared libraries through AIX4.2
6577       # and later when we are not doing run time linking.
6578       library_names_spec='${libname}${release}.a $libname.a'
6579       soname_spec='${libname}${release}.so$major'
6580     fi
6581     shlibpath_var=LIBPATH
6582   fi
6583   hardcode_into_libs=yes
6584   ;;
6585
6586 amigaos*)
6587   library_names_spec='$libname.ixlibrary $libname.a'
6588   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6589   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'
6590   ;;
6591
6592 beos*)
6593   library_names_spec='${libname}.so'
6594   dynamic_linker="$host_os ld.so"
6595   shlibpath_var=LIBRARY_PATH
6596   ;;
6597
6598 bsdi4*)
6599   version_type=linux
6600   need_version=no
6601   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6602   soname_spec='${libname}${release}.so$major'
6603   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6604   shlibpath_var=LD_LIBRARY_PATH
6605   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6606   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6607   export_dynamic_flag_spec=-rdynamic
6608   # the default ld.so.conf also contains /usr/contrib/lib and
6609   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6610   # libtool to hard-code these into programs
6611   ;;
6612
6613 cygwin* | mingw* | pw32*)
6614   version_type=windows
6615   need_version=no
6616   need_lib_prefix=no
6617   case $GCC,$host_os in
6618   yes,cygwin*)
6619     library_names_spec='$libname.dll.a'
6620     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6621     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6622       dldir=$destdir/`dirname \$dlpath`~
6623       test -d \$dldir || mkdir -p \$dldir~
6624       $install_prog .libs/$dlname \$dldir/$dlname'
6625     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6626       dlpath=$dir/\$dldll~
6627        $rm \$dlpath'
6628     ;;
6629   yes,mingw*)
6630     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6631     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6632     ;;
6633   yes,pw32*)
6634     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6635     ;;
6636   *)
6637     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6638     ;;
6639   esac
6640   dynamic_linker='Win32 ld.exe'
6641   # FIXME: first we should search . and the directory the executable is in
6642   shlibpath_var=PATH
6643   ;;
6644
6645 darwin* | rhapsody*)
6646   dynamic_linker="$host_os dyld"
6647   version_type=darwin
6648   need_lib_prefix=no
6649   need_version=no
6650   # FIXME: Relying on posixy $() will cause problems for
6651   #        cross-compilation, but unfortunately the echo tests do not
6652   #        yet detect zsh echo's removal of \ escapes.
6653   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)'
6654   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6655   shlibpath_overrides_runpath=yes
6656   shlibpath_var=DYLD_LIBRARY_PATH
6657   ;;
6658
6659 freebsd1*)
6660   dynamic_linker=no
6661   ;;
6662
6663 freebsd*)
6664   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6665   version_type=freebsd-$objformat
6666   case $version_type in
6667     freebsd-elf*)
6668       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6669       need_version=no
6670       need_lib_prefix=no
6671       ;;
6672     freebsd-*)
6673       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6674       need_version=yes
6675       ;;
6676   esac
6677   shlibpath_var=LD_LIBRARY_PATH
6678   case $host_os in
6679   freebsd2*)
6680     shlibpath_overrides_runpath=yes
6681     ;;
6682   *)
6683     shlibpath_overrides_runpath=no
6684     hardcode_into_libs=yes
6685     ;;
6686   esac
6687   ;;
6688
6689 gnu*)
6690   version_type=linux
6691   need_lib_prefix=no
6692   need_version=no
6693   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6694   soname_spec='${libname}${release}.so$major'
6695   shlibpath_var=LD_LIBRARY_PATH
6696   hardcode_into_libs=yes
6697   ;;
6698
6699 hpux9* | hpux10* | hpux11*)
6700   # Give a soname corresponding to the major version so that dld.sl refuses to
6701   # link against other versions.
6702   dynamic_linker="$host_os dld.sl"
6703   version_type=sunos
6704   need_lib_prefix=no
6705   need_version=no
6706   shlibpath_var=SHLIB_PATH
6707   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6708   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6709   soname_spec='${libname}${release}.sl$major'
6710   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6711   postinstall_cmds='chmod 555 $lib'
6712   ;;
6713
6714 irix5* | irix6* | nonstopux*)
6715   case $host_os in
6716     nonstopux*) version_type=nonstopux ;;
6717     *)          version_type=irix ;;
6718   esac
6719   need_lib_prefix=no
6720   need_version=no
6721   soname_spec='${libname}${release}.so$major'
6722   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6723   case $host_os in
6724   irix5* | nonstopux*)
6725     libsuff= shlibsuff=
6726     ;;
6727   *)
6728     case $LD in # libtool.m4 will add one of these switches to LD
6729     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6730     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6731     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6732     *) libsuff= shlibsuff= libmagic=never-match;;
6733     esac
6734     ;;
6735   esac
6736   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6737   shlibpath_overrides_runpath=no
6738   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6739   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6740   ;;
6741
6742 # No shared lib support for Linux oldld, aout, or coff.
6743 linux*oldld* | linux*aout* | linux*coff*)
6744   dynamic_linker=no
6745   ;;
6746
6747 # This must be Linux ELF.
6748 linux*)
6749   version_type=linux
6750   need_lib_prefix=no
6751   need_version=no
6752   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6753   soname_spec='${libname}${release}.so$major'
6754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6755   shlibpath_var=LD_LIBRARY_PATH
6756   shlibpath_overrides_runpath=no
6757   # This implies no fast_install, which is unacceptable.
6758   # Some rework will be needed to allow for fast_install
6759   # before this can be enabled.
6760   hardcode_into_libs=yes
6761
6762   case $host_cpu:$lt_cv_cc_64bit_output in
6763   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6764     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
6765     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
6766     ;;
6767   esac
6768
6769   # We used to test for /lib/ld.so.1 and disable shared libraries on
6770   # powerpc, because MkLinux only supported shared libraries with the
6771   # GNU dynamic linker.  Since this was broken with cross compilers,
6772   # most powerpc-linux boxes support dynamic linking these days and
6773   # people can always --disable-shared, the test was removed, and we
6774   # assume the GNU/Linux dynamic linker is in use.
6775   dynamic_linker='GNU/Linux ld.so'
6776   ;;
6777
6778 netbsd*)
6779   version_type=sunos
6780   need_lib_prefix=no
6781   need_version=no
6782   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6783     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6785     dynamic_linker='NetBSD (a.out) ld.so'
6786   else
6787     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6788     soname_spec='${libname}${release}.so$major'
6789     dynamic_linker='NetBSD ld.elf_so'
6790   fi
6791   shlibpath_var=LD_LIBRARY_PATH
6792   shlibpath_overrides_runpath=yes
6793   hardcode_into_libs=yes
6794   ;;
6795
6796 newsos6)
6797   version_type=linux
6798   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6799   shlibpath_var=LD_LIBRARY_PATH
6800   shlibpath_overrides_runpath=yes
6801   ;;
6802
6803 openbsd*)
6804   version_type=sunos
6805   need_lib_prefix=no
6806   need_version=no
6807   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6808     case "$host_os" in
6809     openbsd2.[89] | openbsd2.[89].*)
6810       shlibpath_overrides_runpath=no
6811       ;;
6812     *)
6813       shlibpath_overrides_runpath=yes
6814       ;;
6815     esac
6816   else
6817     shlibpath_overrides_runpath=yes
6818   fi
6819   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6820   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6821   shlibpath_var=LD_LIBRARY_PATH
6822   ;;
6823
6824 os2*)
6825   libname_spec='$name'
6826   need_lib_prefix=no
6827   library_names_spec='$libname.dll $libname.a'
6828   dynamic_linker='OS/2 ld.exe'
6829   shlibpath_var=LIBPATH
6830   ;;
6831
6832 osf3* | osf4* | osf5*)
6833   version_type=osf
6834   need_version=no
6835   soname_spec='${libname}${release}.so$major'
6836   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6837   shlibpath_var=LD_LIBRARY_PATH
6838   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6839   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6840   hardcode_into_libs=yes
6841   ;;
6842
6843 sco3.2v5*)
6844   version_type=osf
6845   soname_spec='${libname}${release}.so$major'
6846   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6847   shlibpath_var=LD_LIBRARY_PATH
6848   ;;
6849
6850 solaris*)
6851   version_type=linux
6852   need_lib_prefix=no
6853   need_version=no
6854   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855   soname_spec='${libname}${release}.so$major'
6856   shlibpath_var=LD_LIBRARY_PATH
6857   shlibpath_overrides_runpath=yes
6858   hardcode_into_libs=yes
6859   # ldd complains unless libraries are executable
6860   postinstall_cmds='chmod +x $lib'
6861   ;;
6862
6863 sunos4*)
6864   version_type=sunos
6865   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6866   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6867   shlibpath_var=LD_LIBRARY_PATH
6868   shlibpath_overrides_runpath=yes
6869   if test "$with_gnu_ld" = yes; then
6870     need_lib_prefix=no
6871   fi
6872   need_version=yes
6873   ;;
6874
6875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6876   version_type=linux
6877   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6878   soname_spec='${libname}${release}.so$major'
6879   shlibpath_var=LD_LIBRARY_PATH
6880   case $host_vendor in
6881     sni)
6882       shlibpath_overrides_runpath=no
6883       need_lib_prefix=no
6884       export_dynamic_flag_spec='${wl}-Blargedynsym'
6885       runpath_var=LD_RUN_PATH
6886       ;;
6887     siemens)
6888       need_lib_prefix=no
6889       ;;
6890     motorola)
6891       need_lib_prefix=no
6892       need_version=no
6893       shlibpath_overrides_runpath=no
6894       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6895       ;;
6896   esac
6897   ;;
6898
6899 uts4*)
6900   version_type=linux
6901   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6902   soname_spec='${libname}${release}.so$major'
6903   shlibpath_var=LD_LIBRARY_PATH
6904   ;;
6905
6906 dgux*)
6907   version_type=linux
6908   need_lib_prefix=no
6909   need_version=no
6910   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6911   soname_spec='${libname}${release}.so$major'
6912   shlibpath_var=LD_LIBRARY_PATH
6913   ;;
6914
6915 sysv4*MP*)
6916   if test -d /usr/nec ;then
6917     version_type=linux
6918     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6919     soname_spec='$libname.so.$major'
6920     shlibpath_var=LD_LIBRARY_PATH
6921   fi
6922   ;;
6923
6924 *)
6925   dynamic_linker=no
6926   ;;
6927 esac
6928 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6929 echo "${ECHO_T}$dynamic_linker" >&6
6930 test "$dynamic_linker" = no && can_build_shared=no
6931
6932 # Report the final consequences.
6933 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6934 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6935 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6936 echo "${ECHO_T}$can_build_shared" >&6
6937
6938 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6939 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6940 test "$can_build_shared" = "no" && enable_shared=no
6941
6942 # On AIX, shared libraries and static libraries use the same namespace, and
6943 # are all built from PIC.
6944 case "$host_os" in
6945 aix3*)
6946   test "$enable_shared" = yes && enable_static=no
6947   if test -n "$RANLIB"; then
6948     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6949     postinstall_cmds='$RANLIB $lib'
6950   fi
6951   ;;
6952
6953 aix4*)
6954   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6955     test "$enable_shared" = yes && enable_static=no
6956   fi
6957   ;;
6958 esac
6959 echo "$as_me:$LINENO: result: $enable_shared" >&5
6960 echo "${ECHO_T}$enable_shared" >&6
6961
6962 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6963 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6964 # Make sure either enable_shared or enable_static is yes.
6965 test "$enable_shared" = yes || enable_static=yes
6966 echo "$as_me:$LINENO: result: $enable_static" >&5
6967 echo "${ECHO_T}$enable_static" >&6
6968
6969 if test "$hardcode_action" = relink; then
6970   # Fast installation is not supported
6971   enable_fast_install=no
6972 elif test "$shlibpath_overrides_runpath" = yes ||
6973      test "$enable_shared" = no; then
6974   # Fast installation is not necessary
6975   enable_fast_install=needless
6976 fi
6977
6978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6979 if test "$GCC" = yes; then
6980   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6981 fi
6982
6983 if test "x$enable_dlopen" != xyes; then
6984   enable_dlopen=unknown
6985   enable_dlopen_self=unknown
6986   enable_dlopen_self_static=unknown
6987 else
6988   lt_cv_dlopen=no
6989   lt_cv_dlopen_libs=
6990
6991   case $host_os in
6992   beos*)
6993     lt_cv_dlopen="load_add_on"
6994     lt_cv_dlopen_libs=
6995     lt_cv_dlopen_self=yes
6996     ;;
6997
6998   cygwin* | mingw* | pw32*)
6999     lt_cv_dlopen="LoadLibrary"
7000     lt_cv_dlopen_libs=
7001    ;;
7002
7003   *)
7004     echo "$as_me:$LINENO: checking for shl_load" >&5
7005 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7006 if test "${ac_cv_func_shl_load+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   cat >conftest.$ac_ext <<_ACEOF
7010 #line $LINENO "configure"
7011 /* confdefs.h.  */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h.  */
7016 /* System header to define __stub macros and hopefully few prototypes,
7017     which can conflict with char shl_load (); below.
7018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7019     <limits.h> exists even on freestanding compilers.  */
7020 #ifdef __STDC__
7021 # include <limits.h>
7022 #else
7023 # include <assert.h>
7024 #endif
7025 /* Override any gcc2 internal prototype to avoid an error.  */
7026 #ifdef __cplusplus
7027 extern "C"
7028 {
7029 #endif
7030 /* We use char because int might match the return type of a gcc2
7031    builtin and then its argument prototype would still apply.  */
7032 char shl_load ();
7033 /* The GNU C library defines this for functions which it implements
7034     to always fail with ENOSYS.  Some functions are actually named
7035     something starting with __ and the normal name is an alias.  */
7036 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7037 choke me
7038 #else
7039 char (*f) () = shl_load;
7040 #endif
7041 #ifdef __cplusplus
7042 }
7043 #endif
7044
7045 int
7046 main ()
7047 {
7048 return f != shl_load;
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055   (eval $ac_link) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } &&
7059          { ac_try='test -s conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   ac_cv_func_shl_load=yes
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 ac_cv_func_shl_load=no
7071 fi
7072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7073 fi
7074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7076 if test $ac_cv_func_shl_load = yes; then
7077   lt_cv_dlopen="shl_load"
7078 else
7079   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-ldld  $LIBS"
7086 cat >conftest.$ac_ext <<_ACEOF
7087 #line $LINENO "configure"
7088 /* confdefs.h.  */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h.  */
7093
7094 /* Override any gcc2 internal prototype to avoid an error.  */
7095 #ifdef __cplusplus
7096 extern "C"
7097 #endif
7098 /* We use char because int might match the return type of a gcc2
7099    builtin and then its argument prototype would still apply.  */
7100 char shl_load ();
7101 int
7102 main ()
7103 {
7104 shl_load ();
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111   (eval $ac_link) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } &&
7115          { ac_try='test -s conftest$ac_exeext'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; }; then
7121   ac_cv_lib_dld_shl_load=yes
7122 else
7123   echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 ac_cv_lib_dld_shl_load=no
7127 fi
7128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7130 fi
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7132 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7133 if test $ac_cv_lib_dld_shl_load = yes; then
7134   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7135 else
7136   echo "$as_me:$LINENO: checking for dlopen" >&5
7137 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7138 if test "${ac_cv_func_dlopen+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149     which can conflict with char dlopen (); below.
7150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151     <limits.h> exists even on freestanding compilers.  */
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 {
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163    builtin and then its argument prototype would still apply.  */
7164 char dlopen ();
7165 /* The GNU C library defines this for functions which it implements
7166     to always fail with ENOSYS.  Some functions are actually named
7167     something starting with __ and the normal name is an alias.  */
7168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7169 choke me
7170 #else
7171 char (*f) () = dlopen;
7172 #endif
7173 #ifdef __cplusplus
7174 }
7175 #endif
7176
7177 int
7178 main ()
7179 {
7180 return f != dlopen;
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187   (eval $ac_link) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_func_dlopen=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_func_dlopen=no
7203 fi
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7207 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7208 if test $ac_cv_func_dlopen = yes; then
7209   lt_cv_dlopen="dlopen"
7210 else
7211   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7212 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   ac_check_lib_save_LIBS=$LIBS
7217 LIBS="-ldl  $LIBS"
7218 cat >conftest.$ac_ext <<_ACEOF
7219 #line $LINENO "configure"
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 /* Override any gcc2 internal prototype to avoid an error.  */
7227 #ifdef __cplusplus
7228 extern "C"
7229 #endif
7230 /* We use char because int might match the return type of a gcc2
7231    builtin and then its argument prototype would still apply.  */
7232 char dlopen ();
7233 int
7234 main ()
7235 {
7236 dlopen ();
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243   (eval $ac_link) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } &&
7247          { ac_try='test -s conftest$ac_exeext'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   ac_cv_lib_dl_dlopen=yes
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258 ac_cv_lib_dl_dlopen=no
7259 fi
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 LIBS=$ac_check_lib_save_LIBS
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7265 if test $ac_cv_lib_dl_dlopen = yes; then
7266   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7267 else
7268   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7269 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   ac_check_lib_save_LIBS=$LIBS
7274 LIBS="-lsvld  $LIBS"
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282
7283 /* Override any gcc2 internal prototype to avoid an error.  */
7284 #ifdef __cplusplus
7285 extern "C"
7286 #endif
7287 /* We use char because int might match the return type of a gcc2
7288    builtin and then its argument prototype would still apply.  */
7289 char dlopen ();
7290 int
7291 main ()
7292 {
7293 dlopen ();
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300   (eval $ac_link) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -s conftest$ac_exeext'
7305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306   (eval $ac_try) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); }; }; then
7310   ac_cv_lib_svld_dlopen=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_lib_svld_dlopen=no
7316 fi
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7319 fi
7320 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7321 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7322 if test $ac_cv_lib_svld_dlopen = yes; then
7323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7324 else
7325   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7326 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   ac_check_lib_save_LIBS=$LIBS
7331 LIBS="-ldld  $LIBS"
7332 cat >conftest.$ac_ext <<_ACEOF
7333 #line $LINENO "configure"
7334 /* confdefs.h.  */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h.  */
7339
7340 /* Override any gcc2 internal prototype to avoid an error.  */
7341 #ifdef __cplusplus
7342 extern "C"
7343 #endif
7344 /* We use char because int might match the return type of a gcc2
7345    builtin and then its argument prototype would still apply.  */
7346 char dld_link ();
7347 int
7348 main ()
7349 {
7350 dld_link ();
7351   ;
7352   return 0;
7353 }
7354 _ACEOF
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357   (eval $ac_link) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } &&
7361          { ac_try='test -s conftest$ac_exeext'
7362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363   (eval $ac_try) 2>&5
7364   ac_status=$?
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); }; }; then
7367   ac_cv_lib_dld_dld_link=yes
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_cv_lib_dld_dld_link=no
7373 fi
7374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7375 LIBS=$ac_check_lib_save_LIBS
7376 fi
7377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7379 if test $ac_cv_lib_dld_dld_link = yes; then
7380   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7381 fi
7382
7383
7384 fi
7385
7386
7387 fi
7388
7389
7390 fi
7391
7392
7393 fi
7394
7395
7396 fi
7397
7398     ;;
7399   esac
7400
7401   if test "x$lt_cv_dlopen" != xno; then
7402     enable_dlopen=yes
7403   else
7404     enable_dlopen=no
7405   fi
7406
7407   case $lt_cv_dlopen in
7408   dlopen)
7409     save_CPPFLAGS="$CPPFLAGS"
7410         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7411
7412     save_LDFLAGS="$LDFLAGS"
7413     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7414
7415     save_LIBS="$LIBS"
7416     LIBS="$lt_cv_dlopen_libs $LIBS"
7417
7418     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7420 if test "${lt_cv_dlopen_self+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423           if test "$cross_compiling" = yes; then :
7424   lt_cv_dlopen_self=cross
7425 else
7426     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7427   lt_status=$lt_dlunknown
7428   cat > conftest.$ac_ext <<EOF
7429 #line 7429 "configure"
7430 #include "confdefs.h"
7431
7432 #if HAVE_DLFCN_H
7433 #include <dlfcn.h>
7434 #endif
7435
7436 #include <stdio.h>
7437
7438 #ifdef RTLD_GLOBAL
7439 #  define LT_DLGLOBAL           RTLD_GLOBAL
7440 #else
7441 #  ifdef DL_GLOBAL
7442 #    define LT_DLGLOBAL         DL_GLOBAL
7443 #  else
7444 #    define LT_DLGLOBAL         0
7445 #  endif
7446 #endif
7447
7448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7449    find out it does not work in some platform. */
7450 #ifndef LT_DLLAZY_OR_NOW
7451 #  ifdef RTLD_LAZY
7452 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7453 #  else
7454 #    ifdef DL_LAZY
7455 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7456 #    else
7457 #      ifdef RTLD_NOW
7458 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7459 #      else
7460 #        ifdef DL_NOW
7461 #          define LT_DLLAZY_OR_NOW      DL_NOW
7462 #        else
7463 #          define LT_DLLAZY_OR_NOW      0
7464 #        endif
7465 #      endif
7466 #    endif
7467 #  endif
7468 #endif
7469
7470 #ifdef __cplusplus
7471 extern "C" void exit (int);
7472 #endif
7473
7474 void fnord() { int i=42;}
7475 int main ()
7476 {
7477   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7478   int status = $lt_dlunknown;
7479
7480   if (self)
7481     {
7482       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7483       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7484       /* dlclose (self); */
7485     }
7486
7487     exit (status);
7488 }
7489 EOF
7490   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491   (eval $ac_link) 2>&5
7492   ac_status=$?
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7495     (./conftest; exit; ) 2>/dev/null
7496     lt_status=$?
7497     case x$lt_status in
7498       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7499       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7500       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7501     esac
7502   else :
7503     # compilation failed
7504     lt_cv_dlopen_self=no
7505   fi
7506 fi
7507 rm -fr conftest*
7508
7509
7510 fi
7511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7513
7514     if test "x$lt_cv_dlopen_self" = xyes; then
7515       LDFLAGS="$LDFLAGS $link_static_flag"
7516       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7518 if test "${lt_cv_dlopen_self_static+set}" = set; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521           if test "$cross_compiling" = yes; then :
7522   lt_cv_dlopen_self_static=cross
7523 else
7524     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7525   lt_status=$lt_dlunknown
7526   cat > conftest.$ac_ext <<EOF
7527 #line 7527 "configure"
7528 #include "confdefs.h"
7529
7530 #if HAVE_DLFCN_H
7531 #include <dlfcn.h>
7532 #endif
7533
7534 #include <stdio.h>
7535
7536 #ifdef RTLD_GLOBAL
7537 #  define LT_DLGLOBAL           RTLD_GLOBAL
7538 #else
7539 #  ifdef DL_GLOBAL
7540 #    define LT_DLGLOBAL         DL_GLOBAL
7541 #  else
7542 #    define LT_DLGLOBAL         0
7543 #  endif
7544 #endif
7545
7546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7547    find out it does not work in some platform. */
7548 #ifndef LT_DLLAZY_OR_NOW
7549 #  ifdef RTLD_LAZY
7550 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7551 #  else
7552 #    ifdef DL_LAZY
7553 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7554 #    else
7555 #      ifdef RTLD_NOW
7556 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7557 #      else
7558 #        ifdef DL_NOW
7559 #          define LT_DLLAZY_OR_NOW      DL_NOW
7560 #        else
7561 #          define LT_DLLAZY_OR_NOW      0
7562 #        endif
7563 #      endif
7564 #    endif
7565 #  endif
7566 #endif
7567
7568 #ifdef __cplusplus
7569 extern "C" void exit (int);
7570 #endif
7571
7572 void fnord() { int i=42;}
7573 int main ()
7574 {
7575   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7576   int status = $lt_dlunknown;
7577
7578   if (self)
7579     {
7580       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7581       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7582       /* dlclose (self); */
7583     }
7584
7585     exit (status);
7586 }
7587 EOF
7588   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589   (eval $ac_link) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7593     (./conftest; exit; ) 2>/dev/null
7594     lt_status=$?
7595     case x$lt_status in
7596       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7597       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7598       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7599     esac
7600   else :
7601     # compilation failed
7602     lt_cv_dlopen_self_static=no
7603   fi
7604 fi
7605 rm -fr conftest*
7606
7607
7608 fi
7609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7611     fi
7612
7613     CPPFLAGS="$save_CPPFLAGS"
7614     LDFLAGS="$save_LDFLAGS"
7615     LIBS="$save_LIBS"
7616     ;;
7617   esac
7618
7619   case $lt_cv_dlopen_self in
7620   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7621   *) enable_dlopen_self=unknown ;;
7622   esac
7623
7624   case $lt_cv_dlopen_self_static in
7625   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7626   *) enable_dlopen_self_static=unknown ;;
7627   esac
7628 fi
7629
7630
7631 if test "$enable_shared" = yes && test "$GCC" = yes; then
7632   case $archive_cmds in
7633   *'~'*)
7634     # FIXME: we may have to deal with multi-command sequences.
7635     ;;
7636   '$CC '*)
7637     # Test whether the compiler implicitly links with -lc since on some
7638     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639     # to ld, don't add -lc before -lgcc.
7640     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7642     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   $rm conftest*
7646     echo 'static int dummy;' > conftest.$ac_ext
7647
7648     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649   (eval $ac_compile) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; then
7653       soname=conftest
7654       lib=conftest
7655       libobjs=conftest.$ac_objext
7656       deplibs=
7657       wl=$lt_cv_prog_cc_wl
7658       compiler_flags=-v
7659       linker_flags=-v
7660       verstring=
7661       output_objdir=.
7662       libname=conftest
7663       save_allow_undefined_flag=$allow_undefined_flag
7664       allow_undefined_flag=
7665       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }
7670       then
7671         lt_cv_archive_cmds_need_lc=no
7672       else
7673         lt_cv_archive_cmds_need_lc=yes
7674       fi
7675       allow_undefined_flag=$save_allow_undefined_flag
7676     else
7677       cat conftest.err 1>&5
7678     fi
7679 fi
7680
7681     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7682 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7683     ;;
7684   esac
7685 fi
7686 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7687
7688 # The second clause should only fire when bootstrapping the
7689 # libtool distribution, otherwise you forgot to ship ltmain.sh
7690 # with your package, and you will get complaints that there are
7691 # no rules to generate ltmain.sh.
7692 if test -f "$ltmain"; then
7693   :
7694 else
7695   # If there is no Makefile yet, we rely on a make rule to execute
7696   # `config.status --recheck' to rerun these tests and create the
7697   # libtool script then.
7698   test -f Makefile && make "$ltmain"
7699 fi
7700
7701 if test -f "$ltmain"; then
7702   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7703   $rm -f "${ofile}T"
7704
7705   echo creating $ofile
7706
7707   # Now quote all the things that may contain metacharacters while being
7708   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7709   # variables and quote the copies for generation of the libtool script.
7710   for var in echo old_CC old_CFLAGS SED \
7711     AR AR_FLAGS CC LD LN_S NM SHELL \
7712     reload_flag reload_cmds wl \
7713     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7714     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7715     library_names_spec soname_spec \
7716     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7717     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7718     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7719     old_striplib striplib file_magic_cmd export_symbols_cmds \
7720     deplibs_check_method allow_undefined_flag no_undefined_flag \
7721     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7722     global_symbol_to_c_name_address \
7723     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7724     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7725     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7726
7727     case $var in
7728     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7729     old_postinstall_cmds | old_postuninstall_cmds | \
7730     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7731     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7732     postinstall_cmds | postuninstall_cmds | \
7733     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7734       # Double-quote double-evaled strings.
7735       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7736       ;;
7737     *)
7738       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7739       ;;
7740     esac
7741   done
7742
7743   cat <<__EOF__ > "${ofile}T"
7744 #! $SHELL
7745
7746 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7747 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7748 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7749 #
7750 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7751 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7752 #
7753 # This program is free software; you can redistribute it and/or modify
7754 # it under the terms of the GNU General Public License as published by
7755 # the Free Software Foundation; either version 2 of the License, or
7756 # (at your option) any later version.
7757 #
7758 # This program is distributed in the hope that it will be useful, but
7759 # WITHOUT ANY WARRANTY; without even the implied warranty of
7760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7761 # General Public License for more details.
7762 #
7763 # You should have received a copy of the GNU General Public License
7764 # along with this program; if not, write to the Free Software
7765 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7766 #
7767 # As a special exception to the GNU General Public License, if you
7768 # distribute this file as part of a program that contains a
7769 # configuration script generated by Autoconf, you may include it under
7770 # the same distribution terms that you use for the rest of that program.
7771
7772 # A sed that does not truncate output.
7773 SED=$lt_SED
7774
7775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7776 Xsed="${SED} -e s/^X//"
7777
7778 # The HP-UX ksh and POSIX shell print the target directory to stdout
7779 # if CDPATH is set.
7780 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7781
7782 # ### BEGIN LIBTOOL CONFIG
7783
7784 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7785
7786 # Shell to use when invoking shell scripts.
7787 SHELL=$lt_SHELL
7788
7789 # Whether or not to build shared libraries.
7790 build_libtool_libs=$enable_shared
7791
7792 # Whether or not to build static libraries.
7793 build_old_libs=$enable_static
7794
7795 # Whether or not to add -lc for building shared libraries.
7796 build_libtool_need_lc=$need_lc
7797
7798 # Whether or not to optimize for fast installation.
7799 fast_install=$enable_fast_install
7800
7801 # The host system.
7802 host_alias=$host_alias
7803 host=$host
7804
7805 # An echo program that does not interpret backslashes.
7806 echo=$lt_echo
7807
7808 # The archiver.
7809 AR=$lt_AR
7810 AR_FLAGS=$lt_AR_FLAGS
7811
7812 # The default C compiler.
7813 CC=$lt_CC
7814
7815 # Is the compiler the GNU C compiler?
7816 with_gcc=$GCC
7817
7818 # The linker used to build libraries.
7819 LD=$lt_LD
7820
7821 # Whether we need hard or soft links.
7822 LN_S=$lt_LN_S
7823
7824 # A BSD-compatible nm program.
7825 NM=$lt_NM
7826
7827 # A symbol stripping program
7828 STRIP=$STRIP
7829
7830 # Used to examine libraries when file_magic_cmd begins "file"
7831 MAGIC_CMD=$MAGIC_CMD
7832
7833 # Used on cygwin: DLL creation program.
7834 DLLTOOL="$DLLTOOL"
7835
7836 # Used on cygwin: object dumper.
7837 OBJDUMP="$OBJDUMP"
7838
7839 # Used on cygwin: assembler.
7840 AS=$lt_AS
7841
7842 # The name of the directory that contains temporary libtool files.
7843 objdir=$objdir
7844
7845 # How to create reloadable object files.
7846 reload_flag=$lt_reload_flag
7847 reload_cmds=$lt_reload_cmds
7848
7849 # How to pass a linker flag through the compiler.
7850 wl=$lt_wl
7851
7852 # Object file suffix (normally "o").
7853 objext="$ac_objext"
7854
7855 # Old archive suffix (normally "a").
7856 libext="$libext"
7857
7858 # Executable file suffix (normally "").
7859 exeext="$exeext"
7860
7861 # Additional compiler flags for building library objects.
7862 pic_flag=$lt_pic_flag
7863 pic_mode=$pic_mode
7864
7865 # Does compiler simultaneously support -c and -o options?
7866 compiler_c_o=$lt_compiler_c_o
7867
7868 # Can we write directly to a .lo ?
7869 compiler_o_lo=$lt_compiler_o_lo
7870
7871 # Must we lock files when doing compilation ?
7872 need_locks=$lt_need_locks
7873
7874 # Do we need the lib prefix for modules?
7875 need_lib_prefix=$need_lib_prefix
7876
7877 # Do we need a version for libraries?
7878 need_version=$need_version
7879
7880 # Whether dlopen is supported.
7881 dlopen_support=$enable_dlopen
7882
7883 # Whether dlopen of programs is supported.
7884 dlopen_self=$enable_dlopen_self
7885
7886 # Whether dlopen of statically linked programs is supported.
7887 dlopen_self_static=$enable_dlopen_self_static
7888
7889 # Compiler flag to prevent dynamic linking.
7890 link_static_flag=$lt_link_static_flag
7891
7892 # Compiler flag to turn off builtin functions.
7893 no_builtin_flag=$lt_no_builtin_flag
7894
7895 # Compiler flag to allow reflexive dlopens.
7896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7897
7898 # Compiler flag to generate shared objects directly from archives.
7899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7900
7901 # Compiler flag to generate thread-safe objects.
7902 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7903
7904 # Library versioning type.
7905 version_type=$version_type
7906
7907 # Format of library name prefix.
7908 libname_spec=$lt_libname_spec
7909
7910 # List of archive names.  First name is the real one, the rest are links.
7911 # The last name is the one that the linker finds with -lNAME.
7912 library_names_spec=$lt_library_names_spec
7913
7914 # The coded name of the library, if different from the real name.
7915 soname_spec=$lt_soname_spec
7916
7917 # Commands used to build and install an old-style archive.
7918 RANLIB=$lt_RANLIB
7919 old_archive_cmds=$lt_old_archive_cmds
7920 old_postinstall_cmds=$lt_old_postinstall_cmds
7921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7922
7923 # Create an old-style archive from a shared archive.
7924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7925
7926 # Create a temporary old-style archive to link instead of a shared archive.
7927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7928
7929 # Commands used to build and install a shared archive.
7930 archive_cmds=$lt_archive_cmds
7931 archive_expsym_cmds=$lt_archive_expsym_cmds
7932 postinstall_cmds=$lt_postinstall_cmds
7933 postuninstall_cmds=$lt_postuninstall_cmds
7934
7935 # Commands to strip libraries.
7936 old_striplib=$lt_old_striplib
7937 striplib=$lt_striplib
7938
7939 # Method to check whether dependent libraries are shared objects.
7940 deplibs_check_method=$lt_deplibs_check_method
7941
7942 # Command to use when deplibs_check_method == file_magic.
7943 file_magic_cmd=$lt_file_magic_cmd
7944
7945 # Flag that allows shared libraries with undefined symbols to be built.
7946 allow_undefined_flag=$lt_allow_undefined_flag
7947
7948 # Flag that forces no undefined symbols.
7949 no_undefined_flag=$lt_no_undefined_flag
7950
7951 # Commands used to finish a libtool library installation in a directory.
7952 finish_cmds=$lt_finish_cmds
7953
7954 # Same as above, but a single script fragment to be evaled but not shown.
7955 finish_eval=$lt_finish_eval
7956
7957 # Take the output of nm and produce a listing of raw symbols and C names.
7958 global_symbol_pipe=$lt_global_symbol_pipe
7959
7960 # Transform the output of nm in a proper C declaration
7961 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7962
7963 # Transform the output of nm in a C name address pair
7964 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7965
7966 # This is the shared library runtime path variable.
7967 runpath_var=$runpath_var
7968
7969 # This is the shared library path variable.
7970 shlibpath_var=$shlibpath_var
7971
7972 # Is shlibpath searched before the hard-coded library search path?
7973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7974
7975 # How to hardcode a shared library path into an executable.
7976 hardcode_action=$hardcode_action
7977
7978 # Whether we should hardcode library paths into libraries.
7979 hardcode_into_libs=$hardcode_into_libs
7980
7981 # Flag to hardcode \$libdir into a binary during linking.
7982 # This must work even if \$libdir does not exist.
7983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7984
7985 # Whether we need a single -rpath flag with a separated argument.
7986 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7987
7988 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7989 # resulting binary.
7990 hardcode_direct=$hardcode_direct
7991
7992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7993 # resulting binary.
7994 hardcode_minus_L=$hardcode_minus_L
7995
7996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7997 # the resulting binary.
7998 hardcode_shlibpath_var=$hardcode_shlibpath_var
7999
8000 # Variables whose values should be saved in libtool wrapper scripts and
8001 # restored at relink time.
8002 variables_saved_for_relink="$variables_saved_for_relink"
8003
8004 # Whether libtool must link a program against all its dependency libraries.
8005 link_all_deplibs=$link_all_deplibs
8006
8007 # Compile-time system search path for libraries
8008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8009
8010 # Run-time system search path for libraries
8011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8012
8013 # Fix the shell variable \$srcfile for the compiler.
8014 fix_srcfile_path="$fix_srcfile_path"
8015
8016 # Set to yes if exported symbols are required.
8017 always_export_symbols=$always_export_symbols
8018
8019 # The commands to list exported symbols.
8020 export_symbols_cmds=$lt_export_symbols_cmds
8021
8022 # The commands to extract the exported symbol list from a shared archive.
8023 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8024
8025 # Symbols that should not be listed in the preloaded symbols.
8026 exclude_expsyms=$lt_exclude_expsyms
8027
8028 # Symbols that must always be exported.
8029 include_expsyms=$lt_include_expsyms
8030
8031 # ### END LIBTOOL CONFIG
8032
8033 __EOF__
8034
8035   case $host_os in
8036   aix3*)
8037     cat <<\EOF >> "${ofile}T"
8038
8039 # AIX sometimes has problems with the GCC collect2 program.  For some
8040 # reason, if we set the COLLECT_NAMES environment variable, the problems
8041 # vanish in a puff of smoke.
8042 if test "X${COLLECT_NAMES+set}" != Xset; then
8043   COLLECT_NAMES=
8044   export COLLECT_NAMES
8045 fi
8046 EOF
8047     ;;
8048   esac
8049
8050   case $host_os in
8051   cygwin* | mingw* | pw32* | os2*)
8052     cat <<'EOF' >> "${ofile}T"
8053       # This is a source program that is used to create dlls on Windows
8054       # Don't remove nor modify the starting and closing comments
8055 # /* ltdll.c starts here */
8056 # #define WIN32_LEAN_AND_MEAN
8057 # #include <windows.h>
8058 # #undef WIN32_LEAN_AND_MEAN
8059 # #include <stdio.h>
8060 #
8061 # #ifndef __CYGWIN__
8062 # #  ifdef __CYGWIN32__
8063 # #    define __CYGWIN__ __CYGWIN32__
8064 # #  endif
8065 # #endif
8066 #
8067 # #ifdef __cplusplus
8068 # extern "C" {
8069 # #endif
8070 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8071 # #ifdef __cplusplus
8072 # }
8073 # #endif
8074 #
8075 # #ifdef __CYGWIN__
8076 # #include <cygwin/cygwin_dll.h>
8077 # DECLARE_CYGWIN_DLL( DllMain );
8078 # #endif
8079 # HINSTANCE __hDllInstance_base;
8080 #
8081 # BOOL APIENTRY
8082 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8083 # {
8084 #   __hDllInstance_base = hInst;
8085 #   return TRUE;
8086 # }
8087 # /* ltdll.c ends here */
8088         # This is a source program that is used to create import libraries
8089         # on Windows for dlls which lack them. Don't remove nor modify the
8090         # starting and closing comments
8091 # /* impgen.c starts here */
8092 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8093 #
8094 #  This file is part of GNU libtool.
8095 #
8096 #  This program is free software; you can redistribute it and/or modify
8097 #  it under the terms of the GNU General Public License as published by
8098 #  the Free Software Foundation; either version 2 of the License, or
8099 #  (at your option) any later version.
8100 #
8101 #  This program is distributed in the hope that it will be useful,
8102 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8103 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8104 #  GNU General Public License for more details.
8105 #
8106 #  You should have received a copy of the GNU General Public License
8107 #  along with this program; if not, write to the Free Software
8108 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8109 #  */
8110 #
8111 # #include <stdio.h>            /* for printf() */
8112 # #include <unistd.h>           /* for open(), lseek(), read() */
8113 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8114 # #include <string.h>           /* for strdup() */
8115 #
8116 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8117 # #ifndef O_BINARY
8118 # #define O_BINARY 0
8119 # #endif
8120 #
8121 # static unsigned int
8122 # pe_get16 (fd, offset)
8123 #      int fd;
8124 #      int offset;
8125 # {
8126 #   unsigned char b[2];
8127 #   lseek (fd, offset, SEEK_SET);
8128 #   read (fd, b, 2);
8129 #   return b[0] + (b[1]<<8);
8130 # }
8131 #
8132 # static unsigned int
8133 # pe_get32 (fd, offset)
8134 #     int fd;
8135 #     int offset;
8136 # {
8137 #   unsigned char b[4];
8138 #   lseek (fd, offset, SEEK_SET);
8139 #   read (fd, b, 4);
8140 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8141 # }
8142 #
8143 # static unsigned int
8144 # pe_as32 (ptr)
8145 #      void *ptr;
8146 # {
8147 #   unsigned char *b = ptr;
8148 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8149 # }
8150 #
8151 # int
8152 # main (argc, argv)
8153 #     int argc;
8154 #     char *argv[];
8155 # {
8156 #     int dll;
8157 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8158 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8159 #     unsigned long name_rvas, nexp;
8160 #     unsigned char *expdata, *erva;
8161 #     char *filename, *dll_name;
8162 #
8163 #     filename = argv[1];
8164 #
8165 #     dll = open(filename, O_RDONLY|O_BINARY);
8166 #     if (dll < 1)
8167 #       return 1;
8168 #
8169 #     dll_name = filename;
8170 #
8171 #     for (i=0; filename[i]; i++)
8172 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8173 #           dll_name = filename + i +1;
8174 #
8175 #     pe_header_offset = pe_get32 (dll, 0x3c);
8176 #     opthdr_ofs = pe_header_offset + 4 + 20;
8177 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8178 #
8179 #     if (num_entries < 1) /* no exports */
8180 #       return 1;
8181 #
8182 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8183 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8184 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8185 #     secptr = (pe_header_offset + 4 + 20 +
8186 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8187 #
8188 #     expptr = 0;
8189 #     for (i = 0; i < nsections; i++)
8190 #     {
8191 #       char sname[8];
8192 #       unsigned long secptr1 = secptr + 40 * i;
8193 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8194 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8195 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8196 #       lseek(dll, secptr1, SEEK_SET);
8197 #       read(dll, sname, 8);
8198 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8199 #       {
8200 #           expptr = fptr + (export_rva - vaddr);
8201 #           if (export_rva + export_size > vaddr + vsize)
8202 #               export_size = vsize - (export_rva - vaddr);
8203 #           break;
8204 #       }
8205 #     }
8206 #
8207 #     expdata = (unsigned char*)malloc(export_size);
8208 #     lseek (dll, expptr, SEEK_SET);
8209 #     read (dll, expdata, export_size);
8210 #     erva = expdata - export_rva;
8211 #
8212 #     nexp = pe_as32 (expdata+24);
8213 #     name_rvas = pe_as32 (expdata+32);
8214 #
8215 #     printf ("EXPORTS\n");
8216 #     for (i = 0; i<nexp; i++)
8217 #     {
8218 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8219 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8220 #     }
8221 #
8222 #     return 0;
8223 # }
8224 # /* impgen.c ends here */
8225
8226 EOF
8227     ;;
8228   esac
8229
8230   # We use sed instead of cat because bash on DJGPP gets confused if
8231   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8232   # text mode, it properly converts lines to CR/LF.  This bash problem
8233   # is reportedly fixed, but why not run on old versions too?
8234   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8235
8236   mv -f "${ofile}T" "$ofile" || \
8237     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8238   chmod +x "$ofile"
8239 fi
8240
8241
8242
8243
8244
8245 # This can be used to rebuild libtool when needed
8246 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8247
8248 # Always use our own libtool.
8249 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8250
8251 # Prevent multiple expansion
8252
8253
8254 # Check whether --enable-debug or --disable-debug was given.
8255 if test "${enable_debug+set}" = set; then
8256   enableval="$enable_debug"
8257
8258         CXXFLAGS="-g -O0 -Wall"
8259     cat >>confdefs.h <<\_ACEOF
8260 #define WITH_DEBUG 1
8261 _ACEOF
8262
8263
8264 else
8265
8266         CXXFLAGS="-O0"
8267
8268
8269 fi;
8270
8271
8272 # Check whether --with-libldap or --without-libldap was given.
8273 if test "${with_libldap+set}" = set; then
8274   withval="$with_libldap"
8275
8276         LIBS="-L$with_libldap $LIBS "
8277
8278 else
8279
8280         LIBS="-L/usr/local/lib $LIBS "
8281
8282
8283 fi;
8284
8285
8286 # Check whether --with-ldap-includes or --without-ldap-includes was given.
8287 if test "${with_ldap_includes+set}" = set; then
8288   withval="$with_ldap_includes"
8289
8290         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
8291
8292 else
8293
8294         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
8295
8296
8297 fi;
8298
8299 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
8300 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
8301 if test "${ac_cv_lib_resolv_main+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-lresolv  $LIBS"
8306 cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313
8314
8315 int
8316 main ()
8317 {
8318 main ();
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325   (eval $ac_link) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -s conftest$ac_exeext'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; }; then
8335   ac_cv_lib_resolv_main=yes
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_cv_lib_resolv_main=no
8341 fi
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
8346 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
8347 if test $ac_cv_lib_resolv_main = yes; then
8348   cat >>confdefs.h <<_ACEOF
8349 #define HAVE_LIBRESOLV 1
8350 _ACEOF
8351
8352   LIBS="-lresolv $LIBS"
8353
8354 fi
8355
8356 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
8357 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
8358 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   ac_check_lib_save_LIBS=$LIBS
8362 LIBS="-llber  $LIBS"
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376    builtin and then its argument prototype would still apply.  */
8377 char ber_strdup ();
8378 int
8379 main ()
8380 {
8381 ber_strdup ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -s conftest$ac_exeext'
8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394   (eval $ac_try) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; }; then
8398   ac_cv_lib_lber_ber_strdup=yes
8399 else
8400   echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8402
8403 ac_cv_lib_lber_ber_strdup=no
8404 fi
8405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8407 fi
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
8409 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
8410 if test $ac_cv_lib_lber_ber_strdup = yes; then
8411
8412         :
8413
8414 else
8415
8416         echo "        didn't find ber_strdup in liblber !";
8417         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
8418         echo "        or try the --with-libldap option.";
8419         exit
8420
8421 fi
8422
8423 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
8424 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
8425 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lldap
8430     -llber
8431      $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439
8440 /* Override any gcc2 internal prototype to avoid an error.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 /* We use char because int might match the return type of a gcc2
8445    builtin and then its argument prototype would still apply.  */
8446 char ldap_add_ext ();
8447 int
8448 main ()
8449 {
8450 ldap_add_ext ();
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -s conftest$ac_exeext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_ldap_ldap_add_ext=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_ldap_ldap_add_ext=no
8473 fi
8474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8475 LIBS=$ac_check_lib_save_LIBS
8476 fi
8477 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
8478 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
8479 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
8480
8481         :
8482
8483 else
8484
8485         echo "        didn't find ldap_add_ext in libldap !";
8486         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
8487         echo "        or try the --with-libldap option.";
8488         exit
8489
8490 fi
8491
8492 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8493 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8494 if test "${ac_cv_header_time+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504 #include <sys/types.h>
8505 #include <sys/time.h>
8506 #include <time.h>
8507
8508 int
8509 main ()
8510 {
8511 if ((struct tm *) 0)
8512 return 0;
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519   (eval $ac_compile) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_cv_header_time=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_cv_header_time=no
8535 fi
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8539 echo "${ECHO_T}$ac_cv_header_time" >&6
8540 if test $ac_cv_header_time = yes; then
8541
8542 cat >>confdefs.h <<\_ACEOF
8543 #define TIME_WITH_SYS_TIME 1
8544 _ACEOF
8545
8546 fi
8547
8548 if test "${ac_cv_header_ldap_h+set}" = set; then
8549   echo "$as_me:$LINENO: checking for ldap.h" >&5
8550 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
8551 if test "${ac_cv_header_ldap_h+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 fi
8554 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
8555 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
8556 else
8557   # Is the header compilable?
8558 echo "$as_me:$LINENO: checking ldap.h usability" >&5
8559 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 $ac_includes_default
8568 #include <ldap.h>
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572   (eval $ac_compile) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -s conftest.$ac_objext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_header_compiler=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_header_compiler=no
8588 fi
8589 rm -f conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8591 echo "${ECHO_T}$ac_header_compiler" >&6
8592
8593 # Is the header present?
8594 echo "$as_me:$LINENO: checking ldap.h presence" >&5
8595 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line $LINENO "configure"
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 #include <ldap.h>
8604 _ACEOF
8605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } >/dev/null; then
8613   if test -s conftest.err; then
8614     ac_cpp_err=$ac_c_preproc_warn_flag
8615   else
8616     ac_cpp_err=
8617   fi
8618 else
8619   ac_cpp_err=yes
8620 fi
8621 if test -z "$ac_cpp_err"; then
8622   ac_header_preproc=yes
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627   ac_header_preproc=no
8628 fi
8629 rm -f conftest.err conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6
8632
8633 # So?  What about this header?
8634 case $ac_header_compiler:$ac_header_preproc in
8635   yes:no )
8636     { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
8639 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
8640     (
8641       cat <<\_ASBOX
8642 ## ------------------------------------ ##
8643 ## Report this to bug-autoconf@gnu.org. ##
8644 ## ------------------------------------ ##
8645 _ASBOX
8646     ) |
8647       sed "s/^/$as_me: WARNING:     /" >&2
8648     ;;
8649   no:yes )
8650     { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
8651 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
8652     { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
8653 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
8654     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
8655 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
8656     (
8657       cat <<\_ASBOX
8658 ## ------------------------------------ ##
8659 ## Report this to bug-autoconf@gnu.org. ##
8660 ## ------------------------------------ ##
8661 _ASBOX
8662     ) |
8663       sed "s/^/$as_me: WARNING:     /" >&2
8664     ;;
8665 esac
8666 echo "$as_me:$LINENO: checking for ldap.h" >&5
8667 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_ldap_h+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   ac_cv_header_ldap_h=$ac_header_preproc
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
8675
8676 fi
8677
8678
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686 #include <ldap.h>
8687
8688 _ACEOF
8689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8690   $EGREP "ldap_add_ext" >/dev/null 2>&1; then
8691
8692         :
8693
8694 else
8695
8696         echo "        didn't find ldap_add_ext in ldap.h!";
8697         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
8698         echo "        or try --with-ldap-includes option.";
8699         exit
8700
8701 fi
8702 rm -f conftest*
8703
8704 if test "${ac_cv_header_lber_h+set}" = set; then
8705   echo "$as_me:$LINENO: checking for lber.h" >&5
8706 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
8707 if test "${ac_cv_header_lber_h+set}" = set; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 fi
8710 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
8712 else
8713   # Is the header compilable?
8714 echo "$as_me:$LINENO: checking lber.h usability" >&5
8715 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 $ac_includes_default
8724 #include <lber.h>
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728   (eval $ac_compile) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -s conftest.$ac_objext'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; }; then
8738   ac_header_compiler=yes
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743 ac_header_compiler=no
8744 fi
8745 rm -f conftest.$ac_objext conftest.$ac_ext
8746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8747 echo "${ECHO_T}$ac_header_compiler" >&6
8748
8749 # Is the header present?
8750 echo "$as_me:$LINENO: checking lber.h presence" >&5
8751 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 #include <lber.h>
8760 _ACEOF
8761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } >/dev/null; then
8769   if test -s conftest.err; then
8770     ac_cpp_err=$ac_c_preproc_warn_flag
8771   else
8772     ac_cpp_err=
8773   fi
8774 else
8775   ac_cpp_err=yes
8776 fi
8777 if test -z "$ac_cpp_err"; then
8778   ac_header_preproc=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783   ac_header_preproc=no
8784 fi
8785 rm -f conftest.err conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8787 echo "${ECHO_T}$ac_header_preproc" >&6
8788
8789 # So?  What about this header?
8790 case $ac_header_compiler:$ac_header_preproc in
8791   yes:no )
8792     { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
8793 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8794     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
8796     (
8797       cat <<\_ASBOX
8798 ## ------------------------------------ ##
8799 ## Report this to bug-autoconf@gnu.org. ##
8800 ## ------------------------------------ ##
8801 _ASBOX
8802     ) |
8803       sed "s/^/$as_me: WARNING:     /" >&2
8804     ;;
8805   no:yes )
8806     { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
8807 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
8808     { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
8809 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
8812     (
8813       cat <<\_ASBOX
8814 ## ------------------------------------ ##
8815 ## Report this to bug-autoconf@gnu.org. ##
8816 ## ------------------------------------ ##
8817 _ASBOX
8818     ) |
8819       sed "s/^/$as_me: WARNING:     /" >&2
8820     ;;
8821 esac
8822 echo "$as_me:$LINENO: checking for lber.h" >&5
8823 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
8824 if test "${ac_cv_header_lber_h+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   ac_cv_header_lber_h=$ac_header_preproc
8828 fi
8829 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
8830 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
8831
8832 fi
8833
8834
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 #include <lber.h>
8843
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846   $EGREP "ber_strdup" >/dev/null 2>&1; then
8847
8848         :
8849
8850 else
8851
8852         echo "        didn't find ber_strdup in lber.h!";
8853         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
8854         echo "        or try --with-ldap-includes option.";
8855         exit
8856
8857 fi
8858 rm -f conftest*
8859
8860
8861
8862
8863                               ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
8864 cat >confcache <<\_ACEOF
8865 # This file is a shell script that caches the results of configure
8866 # tests run on this system so they can be shared between configure
8867 # scripts and configure runs, see configure's option --config-cache.
8868 # It is not useful on other systems.  If it contains results you don't
8869 # want to keep, you may remove or edit it.
8870 #
8871 # config.status only pays attention to the cache file if you give it
8872 # the --recheck option to rerun configure.
8873 #
8874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8876 # following values.
8877
8878 _ACEOF
8879
8880 # The following way of writing the cache mishandles newlines in values,
8881 # but we know of no workaround that is simple, portable, and efficient.
8882 # So, don't put newlines in cache variables' values.
8883 # Ultrix sh set writes to stderr and can't be redirected directly,
8884 # and sets the high bit in the cache file unless we assign to the vars.
8885 {
8886   (set) 2>&1 |
8887     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8888     *ac_space=\ *)
8889       # `set' does not quote correctly, so add quotes (double-quote
8890       # substitution turns \\\\ into \\, and sed turns \\ into \).
8891       sed -n \
8892         "s/'/'\\\\''/g;
8893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8894       ;;
8895     *)
8896       # `set' quotes correctly as required by POSIX, so do not add quotes.
8897       sed -n \
8898         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8899       ;;
8900     esac;
8901 } |
8902   sed '
8903      t clear
8904      : clear
8905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8906      t end
8907      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8908      : end' >>confcache
8909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8910   if test -w $cache_file; then
8911     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8912     cat confcache >$cache_file
8913   else
8914     echo "not updating unwritable cache $cache_file"
8915   fi
8916 fi
8917 rm -f confcache
8918
8919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8920 # Let make expand exec_prefix.
8921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8922
8923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8925 # trailing colons and then remove the whole line if VPATH becomes empty
8926 # (actually we leave an empty line to preserve line numbers).
8927 if test "x$srcdir" = x.; then
8928   ac_vpsub='/^[         ]*VPATH[        ]*=/{
8929 s/:*\$(srcdir):*/:/;
8930 s/:*\${srcdir}:*/:/;
8931 s/:*@srcdir@:*/:/;
8932 s/^\([^=]*=[    ]*\):*/\1/;
8933 s/:*$//;
8934 s/^[^=]*=[      ]*$//;
8935 }'
8936 fi
8937
8938 DEFS=-DHAVE_CONFIG_H
8939
8940 ac_libobjs=
8941 ac_ltlibobjs=
8942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8943   # 1. Remove the extension, and $U if already installed.
8944   ac_i=`echo "$ac_i" |
8945          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8946   # 2. Add them.
8947   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8948   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8949 done
8950 LIBOBJS=$ac_libobjs
8951
8952 LTLIBOBJS=$ac_ltlibobjs
8953
8954
8955 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8956   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8957 Usually this means the macro was only invoked conditionally." >&5
8958 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8959 Usually this means the macro was only invoked conditionally." >&2;}
8960    { (exit 1); exit 1; }; }
8961 fi
8962 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8963   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8964 Usually this means the macro was only invoked conditionally." >&5
8965 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8966 Usually this means the macro was only invoked conditionally." >&2;}
8967    { (exit 1); exit 1; }; }
8968 fi
8969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8970   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8971 Usually this means the macro was only invoked conditionally." >&5
8972 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8973 Usually this means the macro was only invoked conditionally." >&2;}
8974    { (exit 1); exit 1; }; }
8975 fi
8976
8977 : ${CONFIG_STATUS=./config.status}
8978 ac_clean_files_save=$ac_clean_files
8979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8982 cat >$CONFIG_STATUS <<_ACEOF
8983 #! $SHELL
8984 # Generated by $as_me.
8985 # Run this file to recreate the current configuration.
8986 # Compiler output produced by configure, useful for debugging
8987 # configure, is in config.log if it exists.
8988
8989 debug=false
8990 ac_cs_recheck=false
8991 ac_cs_silent=false
8992 SHELL=\${CONFIG_SHELL-$SHELL}
8993 _ACEOF
8994
8995 cat >>$CONFIG_STATUS <<\_ACEOF
8996 ## --------------------- ##
8997 ## M4sh Initialization.  ##
8998 ## --------------------- ##
8999
9000 # Be Bourne compatible
9001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9002   emulate sh
9003   NULLCMD=:
9004   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9005   # is contrary to our usage.  Disable this feature.
9006   alias -g '${1+"$@"}'='"$@"'
9007 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9008   set -o posix
9009 fi
9010
9011 # Support unset when possible.
9012 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9013   as_unset=unset
9014 else
9015   as_unset=false
9016 fi
9017
9018
9019 # Work around bugs in pre-3.0 UWIN ksh.
9020 $as_unset ENV MAIL MAILPATH
9021 PS1='$ '
9022 PS2='> '
9023 PS4='+ '
9024
9025 # NLS nuisances.
9026 for as_var in \
9027   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9028   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9029   LC_TELEPHONE LC_TIME
9030 do
9031   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9032     eval $as_var=C; export $as_var
9033   else
9034     $as_unset $as_var
9035   fi
9036 done
9037
9038 # Required to use basename.
9039 if expr a : '\(a\)' >/dev/null 2>&1; then
9040   as_expr=expr
9041 else
9042   as_expr=false
9043 fi
9044
9045 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9046   as_basename=basename
9047 else
9048   as_basename=false
9049 fi
9050
9051
9052 # Name of the executable.
9053 as_me=`$as_basename "$0" ||
9054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9055          X"$0" : 'X\(//\)$' \| \
9056          X"$0" : 'X\(/\)$' \| \
9057          .     : '\(.\)' 2>/dev/null ||
9058 echo X/"$0" |
9059     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9060           /^X\/\(\/\/\)$/{ s//\1/; q; }
9061           /^X\/\(\/\).*/{ s//\1/; q; }
9062           s/.*/./; q'`
9063
9064
9065 # PATH needs CR, and LINENO needs CR and PATH.
9066 # Avoid depending upon Character Ranges.
9067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9070 as_cr_digits='0123456789'
9071 as_cr_alnum=$as_cr_Letters$as_cr_digits
9072
9073 # The user is always right.
9074 if test "${PATH_SEPARATOR+set}" != set; then
9075   echo "#! /bin/sh" >conf$$.sh
9076   echo  "exit 0"   >>conf$$.sh
9077   chmod +x conf$$.sh
9078   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9079     PATH_SEPARATOR=';'
9080   else
9081     PATH_SEPARATOR=:
9082   fi
9083   rm -f conf$$.sh
9084 fi
9085
9086
9087   as_lineno_1=$LINENO
9088   as_lineno_2=$LINENO
9089   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9090   test "x$as_lineno_1" != "x$as_lineno_2" &&
9091   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9092   # Find who we are.  Look in the path if we contain no path at all
9093   # relative or not.
9094   case $0 in
9095     *[\\/]* ) as_myself=$0 ;;
9096     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   test -z "$as_dir" && as_dir=.
9101   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9102 done
9103
9104        ;;
9105   esac
9106   # We did not find ourselves, most probably we were run as `sh COMMAND'
9107   # in which case we are not to be found in the path.
9108   if test "x$as_myself" = x; then
9109     as_myself=$0
9110   fi
9111   if test ! -f "$as_myself"; then
9112     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9113 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9114    { (exit 1); exit 1; }; }
9115   fi
9116   case $CONFIG_SHELL in
9117   '')
9118     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9120 do
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123   for as_base in sh bash ksh sh5; do
9124          case $as_dir in
9125          /*)
9126            if ("$as_dir/$as_base" -c '
9127   as_lineno_1=$LINENO
9128   as_lineno_2=$LINENO
9129   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9130   test "x$as_lineno_1" != "x$as_lineno_2" &&
9131   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9132              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9133              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9134              CONFIG_SHELL=$as_dir/$as_base
9135              export CONFIG_SHELL
9136              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9137            fi;;
9138          esac
9139        done
9140 done
9141 ;;
9142   esac
9143
9144   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9145   # uniformly replaced by the line number.  The first 'sed' inserts a
9146   # line-number line before each line; the second 'sed' does the real
9147   # work.  The second script uses 'N' to pair each line-number line
9148   # with the numbered line, and appends trailing '-' during
9149   # substitution so that $LINENO is not a special case at line end.
9150   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9151   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9152   sed '=' <$as_myself |
9153     sed '
9154       N
9155       s,$,-,
9156       : loop
9157       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9158       t loop
9159       s,-$,,
9160       s,^['$as_cr_digits']*\n,,
9161     ' >$as_me.lineno &&
9162   chmod +x $as_me.lineno ||
9163     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9164 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9165    { (exit 1); exit 1; }; }
9166
9167   # Don't try to exec as it changes $[0], causing all sort of problems
9168   # (the dirname of $[0] is not the place where we might find the
9169   # original and so on.  Autoconf is especially sensible to this).
9170   . ./$as_me.lineno
9171   # Exit status is that of the last command.
9172   exit
9173 }
9174
9175
9176 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9177   *c*,-n*) ECHO_N= ECHO_C='
9178 ' ECHO_T='      ' ;;
9179   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9180   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9181 esac
9182
9183 if expr a : '\(a\)' >/dev/null 2>&1; then
9184   as_expr=expr
9185 else
9186   as_expr=false
9187 fi
9188
9189 rm -f conf$$ conf$$.exe conf$$.file
9190 echo >conf$$.file
9191 if ln -s conf$$.file conf$$ 2>/dev/null; then
9192   # We could just check for DJGPP; but this test a) works b) is more generic
9193   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9194   if test -f conf$$.exe; then
9195     # Don't use ln at all; we don't have any links
9196     as_ln_s='cp -p'
9197   else
9198     as_ln_s='ln -s'
9199   fi
9200 elif ln conf$$.file conf$$ 2>/dev/null; then
9201   as_ln_s=ln
9202 else
9203   as_ln_s='cp -p'
9204 fi
9205 rm -f conf$$ conf$$.exe conf$$.file
9206
9207 if mkdir -p . 2>/dev/null; then
9208   as_mkdir_p=:
9209 else
9210   as_mkdir_p=false
9211 fi
9212
9213 as_executable_p="test -f"
9214
9215 # Sed expression to map a string onto a valid CPP name.
9216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9217
9218 # Sed expression to map a string onto a valid variable name.
9219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9220
9221
9222 # IFS
9223 # We need space, tab and new line, in precisely that order.
9224 as_nl='
9225 '
9226 IFS="   $as_nl"
9227
9228 # CDPATH.
9229 $as_unset CDPATH
9230
9231 exec 6>&1
9232
9233 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9234 # report actual input values of CONFIG_FILES etc. instead of their
9235 # values after options handling.  Logging --version etc. is OK.
9236 exec 5>>config.log
9237 {
9238   echo
9239   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9240 ## Running $as_me. ##
9241 _ASBOX
9242 } >&5
9243 cat >&5 <<_CSEOF
9244
9245 This file was extended by $as_me, which was
9246 generated by GNU Autoconf 2.57.  Invocation command line was
9247
9248   CONFIG_FILES    = $CONFIG_FILES
9249   CONFIG_HEADERS  = $CONFIG_HEADERS
9250   CONFIG_LINKS    = $CONFIG_LINKS
9251   CONFIG_COMMANDS = $CONFIG_COMMANDS
9252   $ $0 $@
9253
9254 _CSEOF
9255 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9256 echo >&5
9257 _ACEOF
9258
9259 # Files that config.status was made for.
9260 if test -n "$ac_config_files"; then
9261   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9262 fi
9263
9264 if test -n "$ac_config_headers"; then
9265   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9266 fi
9267
9268 if test -n "$ac_config_links"; then
9269   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9270 fi
9271
9272 if test -n "$ac_config_commands"; then
9273   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9274 fi
9275
9276 cat >>$CONFIG_STATUS <<\_ACEOF
9277
9278 ac_cs_usage="\
9279 \`$as_me' instantiates files from templates according to the
9280 current configuration.
9281
9282 Usage: $0 [OPTIONS] [FILE]...
9283
9284   -h, --help       print this help, then exit
9285   -V, --version    print version number, then exit
9286   -q, --quiet      do not print progress messages
9287   -d, --debug      don't remove temporary files
9288       --recheck    update $as_me by reconfiguring in the same conditions
9289   --file=FILE[:TEMPLATE]
9290                    instantiate the configuration file FILE
9291   --header=FILE[:TEMPLATE]
9292                    instantiate the configuration header FILE
9293
9294 Configuration files:
9295 $config_files
9296
9297 Configuration headers:
9298 $config_headers
9299
9300 Configuration commands:
9301 $config_commands
9302
9303 Report bugs to <bug-autoconf@gnu.org>."
9304 _ACEOF
9305
9306 cat >>$CONFIG_STATUS <<_ACEOF
9307 ac_cs_version="\\
9308 config.status
9309 configured by $0, generated by GNU Autoconf 2.57,
9310   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9311
9312 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9313 Free Software Foundation, Inc.
9314 This config.status script is free software; the Free Software Foundation
9315 gives unlimited permission to copy, distribute and modify it."
9316 srcdir=$srcdir
9317 INSTALL="$INSTALL"
9318 _ACEOF
9319
9320 cat >>$CONFIG_STATUS <<\_ACEOF
9321 # If no file are specified by the user, then we need to provide default
9322 # value.  By we need to know if files were specified by the user.
9323 ac_need_defaults=:
9324 while test $# != 0
9325 do
9326   case $1 in
9327   --*=*)
9328     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9329     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9330     ac_shift=:
9331     ;;
9332   -*)
9333     ac_option=$1
9334     ac_optarg=$2
9335     ac_shift=shift
9336     ;;
9337   *) # This is not an option, so the user has probably given explicit
9338      # arguments.
9339      ac_option=$1
9340      ac_need_defaults=false;;
9341   esac
9342
9343   case $ac_option in
9344   # Handling of the options.
9345 _ACEOF
9346 cat >>$CONFIG_STATUS <<\_ACEOF
9347   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9348     ac_cs_recheck=: ;;
9349   --version | --vers* | -V )
9350     echo "$ac_cs_version"; exit 0 ;;
9351   --he | --h)
9352     # Conflict between --help and --header
9353     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9354 Try \`$0 --help' for more information." >&5
9355 echo "$as_me: error: ambiguous option: $1
9356 Try \`$0 --help' for more information." >&2;}
9357    { (exit 1); exit 1; }; };;
9358   --help | --hel | -h )
9359     echo "$ac_cs_usage"; exit 0 ;;
9360   --debug | --d* | -d )
9361     debug=: ;;
9362   --file | --fil | --fi | --f )
9363     $ac_shift
9364     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9365     ac_need_defaults=false;;
9366   --header | --heade | --head | --hea )
9367     $ac_shift
9368     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9369     ac_need_defaults=false;;
9370   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9371   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9372     ac_cs_silent=: ;;
9373
9374   # This is an error.
9375   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9376 Try \`$0 --help' for more information." >&5
9377 echo "$as_me: error: unrecognized option: $1
9378 Try \`$0 --help' for more information." >&2;}
9379    { (exit 1); exit 1; }; } ;;
9380
9381   *) ac_config_targets="$ac_config_targets $1" ;;
9382
9383   esac
9384   shift
9385 done
9386
9387 ac_configure_extra_args=
9388
9389 if $ac_cs_silent; then
9390   exec 6>/dev/null
9391   ac_configure_extra_args="$ac_configure_extra_args --silent"
9392 fi
9393
9394 _ACEOF
9395 cat >>$CONFIG_STATUS <<_ACEOF
9396 if \$ac_cs_recheck; then
9397   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9398   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9399 fi
9400
9401 _ACEOF
9402
9403 cat >>$CONFIG_STATUS <<_ACEOF
9404 #
9405 # INIT-COMMANDS section.
9406 #
9407
9408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9409
9410 _ACEOF
9411
9412
9413
9414 cat >>$CONFIG_STATUS <<\_ACEOF
9415 for ac_config_target in $ac_config_targets
9416 do
9417   case "$ac_config_target" in
9418   # Handling of arguments.
9419   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9420   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9421   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
9422   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9423   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9424   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9426    { (exit 1); exit 1; }; };;
9427   esac
9428 done
9429
9430 # If the user did not use the arguments to specify the items to instantiate,
9431 # then the envvar interface is used.  Set only those that are not.
9432 # We use the long form for the default assignment because of an extremely
9433 # bizarre bug on SunOS 4.1.3.
9434 if $ac_need_defaults; then
9435   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9436   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9437   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9438 fi
9439
9440 # Have a temporary directory for convenience.  Make it in the build tree
9441 # simply because there is no reason to put it here, and in addition,
9442 # creating and moving files from /tmp can sometimes cause problems.
9443 # Create a temporary directory, and hook for its removal unless debugging.
9444 $debug ||
9445 {
9446   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9447   trap '{ (exit 1); exit 1; }' 1 2 13 15
9448 }
9449
9450 # Create a (secure) tmp directory for tmp files.
9451
9452 {
9453   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9454   test -n "$tmp" && test -d "$tmp"
9455 }  ||
9456 {
9457   tmp=./confstat$$-$RANDOM
9458   (umask 077 && mkdir $tmp)
9459 } ||
9460 {
9461    echo "$me: cannot create a temporary directory in ." >&2
9462    { (exit 1); exit 1; }
9463 }
9464
9465 _ACEOF
9466
9467 cat >>$CONFIG_STATUS <<_ACEOF
9468
9469 #
9470 # CONFIG_FILES section.
9471 #
9472
9473 # No need to generate the scripts if there are no CONFIG_FILES.
9474 # This happens for instance when ./config.status config.h
9475 if test -n "\$CONFIG_FILES"; then
9476   # Protect against being on the right side of a sed subst in config.status.
9477   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9478    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9479 s,@SHELL@,$SHELL,;t t
9480 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9481 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9482 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9483 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9484 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9485 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9486 s,@exec_prefix@,$exec_prefix,;t t
9487 s,@prefix@,$prefix,;t t
9488 s,@program_transform_name@,$program_transform_name,;t t
9489 s,@bindir@,$bindir,;t t
9490 s,@sbindir@,$sbindir,;t t
9491 s,@libexecdir@,$libexecdir,;t t
9492 s,@datadir@,$datadir,;t t
9493 s,@sysconfdir@,$sysconfdir,;t t
9494 s,@sharedstatedir@,$sharedstatedir,;t t
9495 s,@localstatedir@,$localstatedir,;t t
9496 s,@libdir@,$libdir,;t t
9497 s,@includedir@,$includedir,;t t
9498 s,@oldincludedir@,$oldincludedir,;t t
9499 s,@infodir@,$infodir,;t t
9500 s,@mandir@,$mandir,;t t
9501 s,@build_alias@,$build_alias,;t t
9502 s,@host_alias@,$host_alias,;t t
9503 s,@target_alias@,$target_alias,;t t
9504 s,@DEFS@,$DEFS,;t t
9505 s,@ECHO_C@,$ECHO_C,;t t
9506 s,@ECHO_N@,$ECHO_N,;t t
9507 s,@ECHO_T@,$ECHO_T,;t t
9508 s,@LIBS@,$LIBS,;t t
9509 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9510 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9511 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9512 s,@CYGPATH_W@,$CYGPATH_W,;t t
9513 s,@PACKAGE@,$PACKAGE,;t t
9514 s,@VERSION@,$VERSION,;t t
9515 s,@ACLOCAL@,$ACLOCAL,;t t
9516 s,@AUTOCONF@,$AUTOCONF,;t t
9517 s,@AUTOMAKE@,$AUTOMAKE,;t t
9518 s,@AUTOHEADER@,$AUTOHEADER,;t t
9519 s,@MAKEINFO@,$MAKEINFO,;t t
9520 s,@AMTAR@,$AMTAR,;t t
9521 s,@install_sh@,$install_sh,;t t
9522 s,@STRIP@,$STRIP,;t t
9523 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9524 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9525 s,@AWK@,$AWK,;t t
9526 s,@SET_MAKE@,$SET_MAKE,;t t
9527 s,@CXX@,$CXX,;t t
9528 s,@CXXFLAGS@,$CXXFLAGS,;t t
9529 s,@LDFLAGS@,$LDFLAGS,;t t
9530 s,@CPPFLAGS@,$CPPFLAGS,;t t
9531 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9532 s,@EXEEXT@,$EXEEXT,;t t
9533 s,@OBJEXT@,$OBJEXT,;t t
9534 s,@DEPDIR@,$DEPDIR,;t t
9535 s,@am__include@,$am__include,;t t
9536 s,@am__quote@,$am__quote,;t t
9537 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9538 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9539 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9540 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9541 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9542 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9543 s,@build@,$build,;t t
9544 s,@build_cpu@,$build_cpu,;t t
9545 s,@build_vendor@,$build_vendor,;t t
9546 s,@build_os@,$build_os,;t t
9547 s,@host@,$host,;t t
9548 s,@host_cpu@,$host_cpu,;t t
9549 s,@host_vendor@,$host_vendor,;t t
9550 s,@host_os@,$host_os,;t t
9551 s,@CC@,$CC,;t t
9552 s,@CFLAGS@,$CFLAGS,;t t
9553 s,@ac_ct_CC@,$ac_ct_CC,;t t
9554 s,@CCDEPMODE@,$CCDEPMODE,;t t
9555 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9556 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9557 s,@LN_S@,$LN_S,;t t
9558 s,@ECHO@,$ECHO,;t t
9559 s,@RANLIB@,$RANLIB,;t t
9560 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9561 s,@CPP@,$CPP,;t t
9562 s,@EGREP@,$EGREP,;t t
9563 s,@LIBTOOL@,$LIBTOOL,;t t
9564 s,@LIBOBJS@,$LIBOBJS,;t t
9565 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9566 CEOF
9567
9568 _ACEOF
9569
9570   cat >>$CONFIG_STATUS <<\_ACEOF
9571   # Split the substitutions into bite-sized pieces for seds with
9572   # small command number limits, like on Digital OSF/1 and HP-UX.
9573   ac_max_sed_lines=48
9574   ac_sed_frag=1 # Number of current file.
9575   ac_beg=1 # First line for current file.
9576   ac_end=$ac_max_sed_lines # Line after last line for current file.
9577   ac_more_lines=:
9578   ac_sed_cmds=
9579   while $ac_more_lines; do
9580     if test $ac_beg -gt 1; then
9581       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9582     else
9583       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9584     fi
9585     if test ! -s $tmp/subs.frag; then
9586       ac_more_lines=false
9587     else
9588       # The purpose of the label and of the branching condition is to
9589       # speed up the sed processing (if there are no `@' at all, there
9590       # is no need to browse any of the substitutions).
9591       # These are the two extra sed commands mentioned above.
9592       (echo ':t
9593   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9594       if test -z "$ac_sed_cmds"; then
9595         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9596       else
9597         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9598       fi
9599       ac_sed_frag=`expr $ac_sed_frag + 1`
9600       ac_beg=$ac_end
9601       ac_end=`expr $ac_end + $ac_max_sed_lines`
9602     fi
9603   done
9604   if test -z "$ac_sed_cmds"; then
9605     ac_sed_cmds=cat
9606   fi
9607 fi # test -n "$CONFIG_FILES"
9608
9609 _ACEOF
9610 cat >>$CONFIG_STATUS <<\_ACEOF
9611 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9612   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9613   case $ac_file in
9614   - | *:- | *:-:* ) # input from stdin
9615         cat >$tmp/stdin
9616         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9617         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9618   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9620   * )   ac_file_in=$ac_file.in ;;
9621   esac
9622
9623   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9624   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9626          X"$ac_file" : 'X\(//\)[^/]' \| \
9627          X"$ac_file" : 'X\(//\)$' \| \
9628          X"$ac_file" : 'X\(/\)' \| \
9629          .     : '\(.\)' 2>/dev/null ||
9630 echo X"$ac_file" |
9631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9633           /^X\(\/\/\)$/{ s//\1/; q; }
9634           /^X\(\/\).*/{ s//\1/; q; }
9635           s/.*/./; q'`
9636   { if $as_mkdir_p; then
9637     mkdir -p "$ac_dir"
9638   else
9639     as_dir="$ac_dir"
9640     as_dirs=
9641     while test ! -d "$as_dir"; do
9642       as_dirs="$as_dir $as_dirs"
9643       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9645          X"$as_dir" : 'X\(//\)[^/]' \| \
9646          X"$as_dir" : 'X\(//\)$' \| \
9647          X"$as_dir" : 'X\(/\)' \| \
9648          .     : '\(.\)' 2>/dev/null ||
9649 echo X"$as_dir" |
9650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9652           /^X\(\/\/\)$/{ s//\1/; q; }
9653           /^X\(\/\).*/{ s//\1/; q; }
9654           s/.*/./; q'`
9655     done
9656     test ! -n "$as_dirs" || mkdir $as_dirs
9657   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9659    { (exit 1); exit 1; }; }; }
9660
9661   ac_builddir=.
9662
9663 if test "$ac_dir" != .; then
9664   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9665   # A "../" for each directory in $ac_dir_suffix.
9666   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9667 else
9668   ac_dir_suffix= ac_top_builddir=
9669 fi
9670
9671 case $srcdir in
9672   .)  # No --srcdir option.  We are building in place.
9673     ac_srcdir=.
9674     if test -z "$ac_top_builddir"; then
9675        ac_top_srcdir=.
9676     else
9677        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9678     fi ;;
9679   [\\/]* | ?:[\\/]* )  # Absolute path.
9680     ac_srcdir=$srcdir$ac_dir_suffix;
9681     ac_top_srcdir=$srcdir ;;
9682   *) # Relative path.
9683     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9684     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9685 esac
9686 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9687 # absolute.
9688 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9689 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9690 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9691 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9692
9693
9694   case $INSTALL in
9695   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9696   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9697   esac
9698
9699   if test x"$ac_file" != x-; then
9700     { echo "$as_me:$LINENO: creating $ac_file" >&5
9701 echo "$as_me: creating $ac_file" >&6;}
9702     rm -f "$ac_file"
9703   fi
9704   # Let's still pretend it is `configure' which instantiates (i.e., don't
9705   # use $as_me), people would be surprised to read:
9706   #    /* config.h.  Generated by config.status.  */
9707   if test x"$ac_file" = x-; then
9708     configure_input=
9709   else
9710     configure_input="$ac_file.  "
9711   fi
9712   configure_input=$configure_input"Generated from `echo $ac_file_in |
9713                                      sed 's,.*/,,'` by configure."
9714
9715   # First look for the input files in the build tree, otherwise in the
9716   # src tree.
9717   ac_file_inputs=`IFS=:
9718     for f in $ac_file_in; do
9719       case $f in
9720       -) echo $tmp/stdin ;;
9721       [\\/$]*)
9722          # Absolute (can't be DOS-style, as IFS=:)
9723          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9724 echo "$as_me: error: cannot find input file: $f" >&2;}
9725    { (exit 1); exit 1; }; }
9726          echo $f;;
9727       *) # Relative
9728          if test -f "$f"; then
9729            # Build tree
9730            echo $f
9731          elif test -f "$srcdir/$f"; then
9732            # Source tree
9733            echo $srcdir/$f
9734          else
9735            # /dev/null tree
9736            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9737 echo "$as_me: error: cannot find input file: $f" >&2;}
9738    { (exit 1); exit 1; }; }
9739          fi;;
9740       esac
9741     done` || { (exit 1); exit 1; }
9742 _ACEOF
9743 cat >>$CONFIG_STATUS <<_ACEOF
9744   sed "$ac_vpsub
9745 $extrasub
9746 _ACEOF
9747 cat >>$CONFIG_STATUS <<\_ACEOF
9748 :t
9749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9750 s,@configure_input@,$configure_input,;t t
9751 s,@srcdir@,$ac_srcdir,;t t
9752 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9753 s,@top_srcdir@,$ac_top_srcdir,;t t
9754 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9755 s,@builddir@,$ac_builddir,;t t
9756 s,@abs_builddir@,$ac_abs_builddir,;t t
9757 s,@top_builddir@,$ac_top_builddir,;t t
9758 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9759 s,@INSTALL@,$ac_INSTALL,;t t
9760 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9761   rm -f $tmp/stdin
9762   if test x"$ac_file" != x-; then
9763     mv $tmp/out $ac_file
9764   else
9765     cat $tmp/out
9766     rm -f $tmp/out
9767   fi
9768
9769 done
9770 _ACEOF
9771 cat >>$CONFIG_STATUS <<\_ACEOF
9772
9773 #
9774 # CONFIG_HEADER section.
9775 #
9776
9777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9779 #
9780 # ac_d sets the value in "#define NAME VALUE" lines.
9781 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9782 ac_dB='[        ].*$,\1#\2'
9783 ac_dC=' '
9784 ac_dD=',;t'
9785 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9786 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9787 ac_uB='$,\1#\2define\3'
9788 ac_uC=' '
9789 ac_uD=',;t'
9790
9791 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9792   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9793   case $ac_file in
9794   - | *:- | *:-:* ) # input from stdin
9795         cat >$tmp/stdin
9796         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9797         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9798   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9799         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9800   * )   ac_file_in=$ac_file.in ;;
9801   esac
9802
9803   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9804 echo "$as_me: creating $ac_file" >&6;}
9805
9806   # First look for the input files in the build tree, otherwise in the
9807   # src tree.
9808   ac_file_inputs=`IFS=:
9809     for f in $ac_file_in; do
9810       case $f in
9811       -) echo $tmp/stdin ;;
9812       [\\/$]*)
9813          # Absolute (can't be DOS-style, as IFS=:)
9814          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9815 echo "$as_me: error: cannot find input file: $f" >&2;}
9816    { (exit 1); exit 1; }; }
9817          echo $f;;
9818       *) # Relative
9819          if test -f "$f"; then
9820            # Build tree
9821            echo $f
9822          elif test -f "$srcdir/$f"; then
9823            # Source tree
9824            echo $srcdir/$f
9825          else
9826            # /dev/null tree
9827            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9828 echo "$as_me: error: cannot find input file: $f" >&2;}
9829    { (exit 1); exit 1; }; }
9830          fi;;
9831       esac
9832     done` || { (exit 1); exit 1; }
9833   # Remove the trailing spaces.
9834   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
9835
9836 _ACEOF
9837
9838 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9839 # `conftest.undefs', that substitutes the proper values into
9840 # config.h.in to produce config.h.  The first handles `#define'
9841 # templates, and the second `#undef' templates.
9842 # And first: Protect against being on the right side of a sed subst in
9843 # config.status.  Protect against being in an unquoted here document
9844 # in config.status.
9845 rm -f conftest.defines conftest.undefs
9846 # Using a here document instead of a string reduces the quoting nightmare.
9847 # Putting comments in sed scripts is not portable.
9848 #
9849 # `end' is used to avoid that the second main sed command (meant for
9850 # 0-ary CPP macros) applies to n-ary macro definitions.
9851 # See the Autoconf documentation for `clear'.
9852 cat >confdef2sed.sed <<\_ACEOF
9853 s/[\\&,]/\\&/g
9854 s,[\\$`],\\&,g
9855 t clear
9856 : clear
9857 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9858 t end
9859 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9860 : end
9861 _ACEOF
9862 # If some macros were called several times there might be several times
9863 # the same #defines, which is useless.  Nevertheless, we may not want to
9864 # sort them, since we want the *last* AC-DEFINE to be honored.
9865 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9866 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9867 rm -f confdef2sed.sed
9868
9869 # This sed command replaces #undef with comments.  This is necessary, for
9870 # example, in the case of _POSIX_SOURCE, which is predefined and required
9871 # on some systems where configure will not decide to define it.
9872 cat >>conftest.undefs <<\_ACEOF
9873 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9874 _ACEOF
9875
9876 # Break up conftest.defines because some shells have a limit on the size
9877 # of here documents, and old seds have small limits too (100 cmds).
9878 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9879 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9880 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9881 echo '  :' >>$CONFIG_STATUS
9882 rm -f conftest.tail
9883 while grep . conftest.defines >/dev/null
9884 do
9885   # Write a limited-size here document to $tmp/defines.sed.
9886   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9887   # Speed up: don't consider the non `#define' lines.
9888   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
9889   # Work around the forget-to-reset-the-flag bug.
9890   echo 't clr' >>$CONFIG_STATUS
9891   echo ': clr' >>$CONFIG_STATUS
9892   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9893   echo 'CEOF
9894   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9895   rm -f $tmp/in
9896   mv $tmp/out $tmp/in
9897 ' >>$CONFIG_STATUS
9898   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9899   rm -f conftest.defines
9900   mv conftest.tail conftest.defines
9901 done
9902 rm -f conftest.defines
9903 echo '  fi # grep' >>$CONFIG_STATUS
9904 echo >>$CONFIG_STATUS
9905
9906 # Break up conftest.undefs because some shells have a limit on the size
9907 # of here documents, and old seds have small limits too (100 cmds).
9908 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9909 rm -f conftest.tail
9910 while grep . conftest.undefs >/dev/null
9911 do
9912   # Write a limited-size here document to $tmp/undefs.sed.
9913   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9914   # Speed up: don't consider the non `#undef'
9915   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9916   # Work around the forget-to-reset-the-flag bug.
9917   echo 't clr' >>$CONFIG_STATUS
9918   echo ': clr' >>$CONFIG_STATUS
9919   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9920   echo 'CEOF
9921   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9922   rm -f $tmp/in
9923   mv $tmp/out $tmp/in
9924 ' >>$CONFIG_STATUS
9925   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9926   rm -f conftest.undefs
9927   mv conftest.tail conftest.undefs
9928 done
9929 rm -f conftest.undefs
9930
9931 cat >>$CONFIG_STATUS <<\_ACEOF
9932   # Let's still pretend it is `configure' which instantiates (i.e., don't
9933   # use $as_me), people would be surprised to read:
9934   #    /* config.h.  Generated by config.status.  */
9935   if test x"$ac_file" = x-; then
9936     echo "/* Generated by configure.  */" >$tmp/config.h
9937   else
9938     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9939   fi
9940   cat $tmp/in >>$tmp/config.h
9941   rm -f $tmp/in
9942   if test x"$ac_file" != x-; then
9943     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9944       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9945 echo "$as_me: $ac_file is unchanged" >&6;}
9946     else
9947       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9949          X"$ac_file" : 'X\(//\)[^/]' \| \
9950          X"$ac_file" : 'X\(//\)$' \| \
9951          X"$ac_file" : 'X\(/\)' \| \
9952          .     : '\(.\)' 2>/dev/null ||
9953 echo X"$ac_file" |
9954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9956           /^X\(\/\/\)$/{ s//\1/; q; }
9957           /^X\(\/\).*/{ s//\1/; q; }
9958           s/.*/./; q'`
9959       { if $as_mkdir_p; then
9960     mkdir -p "$ac_dir"
9961   else
9962     as_dir="$ac_dir"
9963     as_dirs=
9964     while test ! -d "$as_dir"; do
9965       as_dirs="$as_dir $as_dirs"
9966       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9968          X"$as_dir" : 'X\(//\)[^/]' \| \
9969          X"$as_dir" : 'X\(//\)$' \| \
9970          X"$as_dir" : 'X\(/\)' \| \
9971          .     : '\(.\)' 2>/dev/null ||
9972 echo X"$as_dir" |
9973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9975           /^X\(\/\/\)$/{ s//\1/; q; }
9976           /^X\(\/\).*/{ s//\1/; q; }
9977           s/.*/./; q'`
9978     done
9979     test ! -n "$as_dirs" || mkdir $as_dirs
9980   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9982    { (exit 1); exit 1; }; }; }
9983
9984       rm -f $ac_file
9985       mv $tmp/config.h $ac_file
9986     fi
9987   else
9988     cat $tmp/config.h
9989     rm -f $tmp/config.h
9990   fi
9991 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9992 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9993 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9994          X$ac_file : 'X\(//\)[^/]' \| \
9995          X$ac_file : 'X\(//\)$' \| \
9996          X$ac_file : 'X\(/\)' \| \
9997          .     : '\(.\)' 2>/dev/null ||
9998 echo X$ac_file |
9999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10001           /^X\(\/\/\)$/{ s//\1/; q; }
10002           /^X\(\/\).*/{ s//\1/; q; }
10003           s/.*/./; q'`/stamp-h$_am_stamp_count
10004 done
10005 _ACEOF
10006 cat >>$CONFIG_STATUS <<\_ACEOF
10007
10008 #
10009 # CONFIG_COMMANDS section.
10010 #
10011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10012   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10013   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10014   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10016          X"$ac_dest" : 'X\(//\)[^/]' \| \
10017          X"$ac_dest" : 'X\(//\)$' \| \
10018          X"$ac_dest" : 'X\(/\)' \| \
10019          .     : '\(.\)' 2>/dev/null ||
10020 echo X"$ac_dest" |
10021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10023           /^X\(\/\/\)$/{ s//\1/; q; }
10024           /^X\(\/\).*/{ s//\1/; q; }
10025           s/.*/./; q'`
10026   ac_builddir=.
10027
10028 if test "$ac_dir" != .; then
10029   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10030   # A "../" for each directory in $ac_dir_suffix.
10031   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10032 else
10033   ac_dir_suffix= ac_top_builddir=
10034 fi
10035
10036 case $srcdir in
10037   .)  # No --srcdir option.  We are building in place.
10038     ac_srcdir=.
10039     if test -z "$ac_top_builddir"; then
10040        ac_top_srcdir=.
10041     else
10042        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10043     fi ;;
10044   [\\/]* | ?:[\\/]* )  # Absolute path.
10045     ac_srcdir=$srcdir$ac_dir_suffix;
10046     ac_top_srcdir=$srcdir ;;
10047   *) # Relative path.
10048     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10049     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10050 esac
10051 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10052 # absolute.
10053 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10054 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10055 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10056 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10057
10058
10059   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10060 echo "$as_me: executing $ac_dest commands" >&6;}
10061   case $ac_dest in
10062     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10063   # Strip MF so we end up with the name of the file.
10064   mf=`echo "$mf" | sed -e 's/:.*$//'`
10065   # Check whether this is an Automake generated Makefile or not.
10066   # We used to match only the files named `Makefile.in', but
10067   # some people rename them; so instead we look at the file content.
10068   # Grep'ing the first line is not enough: some people post-process
10069   # each Makefile.in and add a new line on top of each file to say so.
10070   # So let's grep whole file.
10071   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10072     dirpart=`(dirname "$mf") 2>/dev/null ||
10073 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074          X"$mf" : 'X\(//\)[^/]' \| \
10075          X"$mf" : 'X\(//\)$' \| \
10076          X"$mf" : 'X\(/\)' \| \
10077          .     : '\(.\)' 2>/dev/null ||
10078 echo X"$mf" |
10079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10081           /^X\(\/\/\)$/{ s//\1/; q; }
10082           /^X\(\/\).*/{ s//\1/; q; }
10083           s/.*/./; q'`
10084   else
10085     continue
10086   fi
10087   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10088   # Extract the definition of DEP_FILES from the Makefile without
10089   # running `make'.
10090   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10091   test -z "$DEPDIR" && continue
10092   # When using ansi2knr, U may be empty or an underscore; expand it
10093   U=`sed -n -e '/^U = / s///p' < "$mf"`
10094   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10095   # We invoke sed twice because it is the simplest approach to
10096   # changing $(DEPDIR) to its actual value in the expansion.
10097   for file in `sed -n -e '
10098     /^DEP_FILES = .*\\\\$/ {
10099       s/^DEP_FILES = //
10100       :loop
10101         s/\\\\$//
10102         p
10103         n
10104         /\\\\$/ b loop
10105       p
10106     }
10107     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10108        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10109     # Make sure the directory exists.
10110     test -f "$dirpart/$file" && continue
10111     fdir=`(dirname "$file") 2>/dev/null ||
10112 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10113          X"$file" : 'X\(//\)[^/]' \| \
10114          X"$file" : 'X\(//\)$' \| \
10115          X"$file" : 'X\(/\)' \| \
10116          .     : '\(.\)' 2>/dev/null ||
10117 echo X"$file" |
10118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10120           /^X\(\/\/\)$/{ s//\1/; q; }
10121           /^X\(\/\).*/{ s//\1/; q; }
10122           s/.*/./; q'`
10123     { if $as_mkdir_p; then
10124     mkdir -p $dirpart/$fdir
10125   else
10126     as_dir=$dirpart/$fdir
10127     as_dirs=
10128     while test ! -d "$as_dir"; do
10129       as_dirs="$as_dir $as_dirs"
10130       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10132          X"$as_dir" : 'X\(//\)[^/]' \| \
10133          X"$as_dir" : 'X\(//\)$' \| \
10134          X"$as_dir" : 'X\(/\)' \| \
10135          .     : '\(.\)' 2>/dev/null ||
10136 echo X"$as_dir" |
10137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10139           /^X\(\/\/\)$/{ s//\1/; q; }
10140           /^X\(\/\).*/{ s//\1/; q; }
10141           s/.*/./; q'`
10142     done
10143     test ! -n "$as_dirs" || mkdir $as_dirs
10144   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10145 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10146    { (exit 1); exit 1; }; }; }
10147
10148     # echo "creating $dirpart/$file"
10149     echo '# dummy' > "$dirpart/$file"
10150   done
10151 done
10152  ;;
10153   esac
10154 done
10155 _ACEOF
10156
10157 cat >>$CONFIG_STATUS <<\_ACEOF
10158
10159 { (exit 0); exit 0; }
10160 _ACEOF
10161 chmod +x $CONFIG_STATUS
10162 ac_clean_files=$ac_clean_files_save
10163
10164
10165 # configure is writing to config.log, and then calls config.status.
10166 # config.status does its own redirection, appending to config.log.
10167 # Unfortunately, on DOS this fails, as config.log is still kept open
10168 # by configure, so config.status won't be able to write to it; its
10169 # output is simply discarded.  So we exec the FD to /dev/null,
10170 # effectively closing config.log, so it can be properly (re)opened and
10171 # appended to by config.status.  When coming back to configure, we
10172 # need to make the FD available again.
10173 if test "$no_create" != yes; then
10174   ac_cs_success=:
10175   ac_config_status_args=
10176   test "$silent" = yes &&
10177     ac_config_status_args="$ac_config_status_args --quiet"
10178   exec 5>/dev/null
10179   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10180   exec 5>>config.log
10181   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10182   # would make configure fail if this is the last instruction.
10183   $ac_cs_success || { (exit 1); exit 1; }
10184 fi
10185